diff --git a/ProcessManageUI/MainWindow.xaml.cs b/ProcessManageUI/MainWindow.xaml.cs index 59bf5e3..2ecc61b 100644 --- a/ProcessManageUI/MainWindow.xaml.cs +++ b/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("name"); + Class = Gram.Select("Type='" + type_id + "' and min<=" + (int)gram + " and max>" + (int)gram + "").First().Field("Class"); + TANK = Gram.Select("Type='" + type_id + "' and min<=" + (int)gram + " and max>" + (int)gram + "").First().Field("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") +