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();
}
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,6 +189,7 @@ namespace ProcessManageUI
}
string DyelotsBulkedRecipe_updata = "UPDATE [dbo].[DyelotsBulkedRecipe] SET Process ='"+NAME+
"' ,ProductClass='" +Class+ "',MixTankNo='"+ TANK +
"' WHERE Dyelot ='" + Dyelot + "' AND ReDye='" + ReDye + "' AND StepNumber ='" + StepNumber + "'";
SqlCommand DyelotsBulkedRecipe_UP = new SqlCommand(DyelotsBulkedRecipe_updata, conn_SC);
Count++;

Loading…
Cancel
Save