Browse Source

添加特殊流程信息

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

5
ProcessManageUI/MainWindow.xaml.cs

@ -174,9 +174,13 @@ namespace ProcessManageUI
row.AcceptChanges(); row.AcceptChanges();
} }
string NAME = "Process"; string NAME = "Process";
int Class = 0;
int TANK = 0;
try try
{ {
NAME = Gram.Select("Type='" + type_id + "' and min<=" + (int)gram + " and max>" + (int)gram + "").First().Field<string>("name"); 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) catch (Exception ex)
{ {
@ -185,6 +189,7 @@ namespace ProcessManageUI
} }
string DyelotsBulkedRecipe_updata = "UPDATE [dbo].[DyelotsBulkedRecipe] SET Process ='"+NAME+ string DyelotsBulkedRecipe_updata = "UPDATE [dbo].[DyelotsBulkedRecipe] SET Process ='"+NAME+
"' ,ProductClass='" +Class+ "',MixTankNo='"+ TANK +
"' WHERE Dyelot ='" + Dyelot + "' AND ReDye='" + ReDye + "' AND StepNumber ='" + StepNumber + "'"; "' WHERE Dyelot ='" + Dyelot + "' AND ReDye='" + ReDye + "' AND StepNumber ='" + StepNumber + "'";
SqlCommand DyelotsBulkedRecipe_UP = new SqlCommand(DyelotsBulkedRecipe_updata, conn_SC); SqlCommand DyelotsBulkedRecipe_UP = new SqlCommand(DyelotsBulkedRecipe_updata, conn_SC);
Count++; Count++;

Loading…
Cancel
Save