|
|
|
@ -100,10 +100,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass |
|
|
|
{ |
|
|
|
Dictionary<string, object> _dat; |
|
|
|
_dat = SerializeConvert.JsonDeserializeFromString<Dictionary<string, object>>(DAT); |
|
|
|
string te = _dat.GetValue("Work").ToString(); |
|
|
|
int ty =Convert.ToInt16( _dat.GetValue("ReDye")); |
|
|
|
MainWindowViewModel.SQLiteHelpers.Update("WorkOrder", new Dictionary<string, object> { { "State", 111 } }, |
|
|
|
"WorkOrder ='" + te + "' AND ReDye ='" + ty + "'", null); |
|
|
|
"WorkOrder ='" + _dat.GetValue("Work").ToString() + "' AND ReDye ='" + _dat.GetValue("ReDye") + "'", null); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
@ -125,7 +123,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass |
|
|
|
if (x == 0) |
|
|
|
{ |
|
|
|
MainWindowViewModel.SQLiteHelpers.Update("WorkOrder", new Dictionary<string, object> { { "State", 113 } }, |
|
|
|
"WorkOrder ='" + _dat.GetValue("Order") + "' AND ReDye ='" + _dat.GetValue("ReDye") + "'", null); |
|
|
|
"WorkOrder ='" + _dat.GetValue("Work") + "' AND ReDye ='" + _dat.GetValue("ReDye") + "'", null); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) { LogGing.LogGingDATA("[ERR='" + ex + "']=Exception"); MainWindowViewModel.ERR_c++; } |
|
|
|
|