mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 18:05:40 +02:00
Fix: SRS and LotATC are now proper JSON data in MySQL
This commit is contained in:
@@ -704,7 +704,8 @@ namespace Perun_v1
|
|||||||
}
|
}
|
||||||
|
|
||||||
ExtSRSJson = JsonConvert.SerializeObject(raw_dcssrs);
|
ExtSRSJson = JsonConvert.SerializeObject(raw_dcssrs);
|
||||||
ExtSRSJson = $"{{'type':'100','instance':'{Int32.Parse(con_txt_dcs_instance.Text)}','payload':'{ExtSRSJson}'}}";
|
|
||||||
|
ExtSRSJson = $"{{'type':'100','instance':'{Int32.Parse(con_txt_dcs_instance.Text)}','payload':{ExtSRSJson}}}";
|
||||||
|
|
||||||
ExtSRSUseDefault = false;
|
ExtSRSUseDefault = false;
|
||||||
PerunHelper.LogInfo(ref Globals.AppLogHistory, "SRS data loaded", 3, 0, "100", true);
|
PerunHelper.LogInfo(ref Globals.AppLogHistory, "SRS data loaded", 3, 0, "100", true);
|
||||||
@@ -737,9 +738,8 @@ namespace Perun_v1
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
ExtLotATCJson = System.IO.File.ReadAllText(con_txt_3rd_lotatc.Text);
|
ExtLotATCJson = System.IO.File.ReadAllText(con_txt_3rd_lotatc.Text);
|
||||||
dynamic raw_srs = JsonConvert.DeserializeObject(ExtLotATCJson);
|
|
||||||
|
|
||||||
ExtLotATCJson = $"{{'type':'101','instance':'{Int32.Parse(con_txt_dcs_instance.Text)}','payload':'{ExtLotATCJson}'}}";
|
ExtLotATCJson = $"{{'type':'101','instance':'{Int32.Parse(con_txt_dcs_instance.Text)}','payload':{ExtLotATCJson}}}";
|
||||||
ExtLotATCUseDefault = false;
|
ExtLotATCUseDefault = false;
|
||||||
PerunHelper.LogInfo(ref Globals.AppLogHistory, "LotATC data loaded", 3, 0, "101", true);
|
PerunHelper.LogInfo(ref Globals.AppLogHistory, "LotATC data loaded", 3, 0, "101", true);
|
||||||
ExtLotATCStatus = true;
|
ExtLotATCStatus = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user