| | |
| | | using 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(); |
| | |
| | | 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); |
| | |
| | | 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; } |
| | | } |