添加特殊流程信息
This commit is contained in:
commit
3173e682ef
1 file changed
+5
@@ -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++;
|
||||
|
||||
Reference in new issue
Block a user