|
|
|
@ -118,12 +118,14 @@ namespace DyeingComputer.UserClass |
|
|
|
WorkOrder_dat.GetValue("ProgramID").ToString(), |
|
|
|
WorkOrder_dat.GetValue("color").ToString(), |
|
|
|
WorkOrder_dat.GetValue("Dyelot").ToString()); |
|
|
|
if (!dat_w) { client.SendAsync("SC910"); } |
|
|
|
else { client.SendAsync("SC810" + SYSKEY + SYSDAT); MainWindowViewModel.TX++; } |
|
|
|
if (!dat_w) { client.SendAsync("SC910" + "[" + MainWindowViewModel.S01 + "]" + |
|
|
|
WorkOrder_dat.GetValue("WorkOrder").ToString()); } |
|
|
|
else { client.SendAsync("SC810" + "[" + MainWindowViewModel.S01 + "]" + |
|
|
|
WorkOrder_dat.GetValue("WorkOrder").ToString()); MainWindowViewModel.TX++; } |
|
|
|
} |
|
|
|
catch(Exception ex) |
|
|
|
{ |
|
|
|
client.SendAsync("SC990"+ex); |
|
|
|
client.SendAsync("SC990" + "[" + MainWindowViewModel.S01 + "]" + ex); |
|
|
|
} |
|
|
|
} |
|
|
|
else { client.SendAsync("SC999"); } |
|
|
|
@ -137,12 +139,14 @@ namespace DyeingComputer.UserClass |
|
|
|
DataTable WorkOrder_dat; |
|
|
|
WorkOrder_dat = SerializeConvert.JsonDeserializeFromString<DataTable>(SYSDAT); |
|
|
|
bool dat_w = SQLDATA.WorkOderStep(WorkOrder_dat); |
|
|
|
if (!dat_w) { client.SendAsync("SC911"); } |
|
|
|
else { client.SendAsync("SC811" + SYSKEY + SYSDAT); MainWindowViewModel.TX++; } |
|
|
|
if (!dat_w) { client.SendAsync("SC911" + "[" + MainWindowViewModel.S01 + "]" + |
|
|
|
WorkOrder_dat.Select().First().Field<object>("WorkOrder")); } |
|
|
|
else { client.SendAsync("SC811" + "[" + MainWindowViewModel.S01 + "]" + |
|
|
|
WorkOrder_dat.Select().First().Field<object>("WorkOrder")); MainWindowViewModel.TX++; } |
|
|
|
} |
|
|
|
catch |
|
|
|
catch(Exception ex) |
|
|
|
{ |
|
|
|
client.SendAsync("SC991"); |
|
|
|
client.SendAsync("SC991" + "[" + MainWindowViewModel.S01 + "]" + ex); |
|
|
|
} |
|
|
|
} |
|
|
|
else { client.SendAsync("SC999"); } |
|
|
|
|