| | |
| | | |
| | | if (!string.IsNullOrEmpty(boxcode)) |
| | | { |
| | | string sc = device.Communicator.Read<string>("DB900.580.0"); |
| | | string sc = device.Communicator.Read<string>("DB900.578.0"); |
| | | WriteError(device.DeviceName, $"璇诲彇鍊硷細{boxcode},瀵规瘮{sc}"); |
| | | string boxEndCode = ""; |
| | | if (boxcode.LastIndexOf(",PO:") >= 0) |
| | | { |
| | | boxEndCode = "M" + boxcode.Substring(0, boxcode.LastIndexOf(",PO:")) + sc.Substring(sc.IndexOf(",PO:")).Replace("\0", ""); |
| | | } |
| | | else if (boxcode.LastIndexOf(",PO") > 0) |
| | | { |
| | | boxEndCode = "M" + boxcode.Substring(0, boxcode.LastIndexOf(",PO")) + sc.Substring(sc.IndexOf("PO:")).Replace("\0", ""); |
| | | } |
| | | else if (boxcode.LastIndexOf(",P") > 0) |
| | | { |
| | | boxEndCode = "M" + boxcode.Substring(0, boxcode.LastIndexOf(",P")) + sc.Substring(sc.IndexOf("PO:")).Replace("\0", ""); |
| | | } |
| | | |
| | | //鍏ュ簱鐢宠浠诲姟 |