Administrator 2 months ago
parent
commit
e4d0530cc3
  1. 6
      InfoDetail.xaml.cs

6
InfoDetail.xaml.cs

@ -221,6 +221,7 @@ public class InfoMachineItem
public static void Info_data(string dat, string id) public static void Info_data(string dat, string id)
{ {
var data = JsonSerializer.Deserialize<List<Dictionary<string, object>>>(dat)!; var data = JsonSerializer.Deserialize<List<Dictionary<string, object>>>(dat)!;
//助剂原料查询
if (id == "00") if (id == "00")
{ {
foreach (var item in data!) foreach (var item in data!)
@ -258,7 +259,8 @@ public class InfoMachineItem
} }
if (InfoProbuctItems.Count == 0) InfoProbuctItems.Add(new ProbuctItem()); if (InfoProbuctItems.Count == 0) InfoProbuctItems.Add(new ProbuctItem());
} }
else if(id == "10") //染料查询
else if (id == "10")
{ {
foreach (var item in data!) foreach (var item in data!)
{ {
@ -289,6 +291,7 @@ public class InfoMachineItem
} }
if (InfoMachineItems.Count == 0) InfoMachineItems.Add(new InfoMachineItem()); if (InfoMachineItems.Count == 0) InfoMachineItems.Add(new InfoMachineItem());
} }
//染料查询查询化料货架
else if (id == "12") else if (id == "12")
{ {
foreach (var item in data!) foreach (var item in data!)
@ -330,6 +333,7 @@ public class InfoMachineItem
} }
if (InfoMachineItems.Count == 0) InfoMachineItems.Add(new InfoMachineItem()); if (InfoMachineItems.Count == 0) InfoMachineItems.Add(new InfoMachineItem());
} }
//助剂查询
else if (id == "20") else if (id == "20")
{ {
foreach (var item in data!) foreach (var item in data!)

Loading…
Cancel
Save