kazelee
7 天以前 2ca90a404fa1ab94eb6374f50c6ddd47a2b7f0e6
dispatch/NDC.cs
@@ -1,15 +1,12 @@
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();
@@ -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; }
        }