From 2ca90a404fa1ab94eb6374f50c6ddd47a2b7f0e6 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期四, 31 七月 2025 17:23:57 +0800 Subject: [PATCH] 删除有问题的TCP旧代码, 优化事务处理和ERP数据模型 --- dispatch/NDC.cs | 16 +++++----------- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/dispatch/NDC.cs b/dispatch/NDC.cs index 1974369..d0b34e9 100644 --- a/dispatch/NDC.cs +++ b/dispatch/NDC.cs @@ -1,15 +1,12 @@ 锘縰sing HH.WCS.Mobox3.DSZSH.util; - using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; using System.Xml; -namespace HH.WCS.Mobox3.DSZSH.dispatch -{ - public class NDC - { +namespace HH.WCS.Mobox3.DSZSH.dispatch { + public class NDC { private static HostToAGV callClient = null; static NDC() { callClient = new HostToAGV(); @@ -70,8 +67,7 @@ sb.Append("/></Req>"); return sb.ToString(); } - public static AGVResult AddNewOrder(int ts, Dictionary<string, string> param) - { + public static AGVResult AddNewOrder(int ts, Dictionary<string, string> param) { //< Req >< Order TS = '1' Pri = '1' No = 'TN2302020001' Ext1 = '' Ext2 = '' N_CNTR_COUNT = '' >< Param Name = 'From' Value = '2' />< Param Name = 'To' Value = '1' /></ Order ></ Req > var bufin = GetReqStr(ts, param); @@ -152,12 +148,10 @@ var json = JsonConvert.SerializeXmlNode(xml); return JsonConvert.DeserializeObject<AGVResult>(json); } - public class AGVResult - { + public class AGVResult { public Res Res { get; set; } } - public class Res - { + public class Res { public int ErrCode { get; set; } public string ErrInfo { get; set; } } -- Gitblit v1.9.1