Browse Source

添加特殊流程信息

master
sc 3 months ago
parent
commit
3173e682ef
  1. 7
      ProcessManageUI/MainWindow.xaml.cs

7
ProcessManageUI/MainWindow.xaml.cs

@ -174,9 +174,13 @@ namespace ProcessManageUI
row.AcceptChanges();
}
string NAME = "Process";
int Class = 0;
int TANK = 0;
try
{
NAME = Gram.Select("Type='" + type_id + "' and min<=" + (int)gram + " and max>" + (int)gram + "").First().Field<string>("name");
Class = Gram.Select("Type='" + type_id + "' and min<=" + (int)gram + " and max>" + (int)gram + "").First().Field<int>("Class");
TANK = Gram.Select("Type='" + type_id + "' and min<=" + (int)gram + " and max>" + (int)gram + "").First().Field<int>("TANK");
}
catch (Exception ex)
{
@ -185,7 +189,8 @@ namespace ProcessManageUI
}
string DyelotsBulkedRecipe_updata = "UPDATE [dbo].[DyelotsBulkedRecipe] SET Process ='"+NAME+
"'WHERE Dyelot ='" + Dyelot + "' AND ReDye='" + ReDye + "' AND StepNumber ='" + StepNumber + "'";
"' ,ProductClass='" +Class+ "',MixTankNo='"+ TANK +
"' WHERE Dyelot ='" + Dyelot + "' AND ReDye='" + ReDye + "' AND StepNumber ='" + StepNumber + "'";
SqlCommand DyelotsBulkedRecipe_UP = new SqlCommand(DyelotsBulkedRecipe_updata, conn_SC);
Count++;
Datalog.AppendText("\n" + DateTime.Now.ToString("yyyy/MM/dd-HH:mm:ss") +

Loading…
Cancel
Save