| | |
| | | public static string CreateTransferInUrl |
| | | { get; set; } = ApiConfig.IsTestServer ? Cache.SysParam["CreateTransferInUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["CreateTransferInUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/TransferIn/Create |
| | | |
| | | |
| | | /// <summary> |
| | | /// 新增收货单-来源ASN单接口 |
| | | /// </summary> |
| | |
| | | Logger.Interface.Info($"U9C登录token: {input.token}"); |
| | | } |
| | | } |
| | | List<CreateRcvBySrcASNParam> param = new() { |
| | | new() { |
| | | aSNToRcvTransDTOs = new(){ |
| | | new(){ |
| | | TransQty=new() { |
| | | m_amount1= input.CurRevQty, |
| | | m_uOM1 = new() { |
| | | UOMMain = "1002212260110007", |
| | | UOMMain_SKey=new(){ |
| | | ID="1002212260110007", |
| | | }, |
| | | UOMSub_SKey = new(){ |
| | | ID="1002212260110007", |
| | | } |
| | | }, |
| | | }, |
| | | ASNLineKey=input.ASNLineKey, |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | List<CreateRcvBySrcASNParam> param = new(); |
| | | param.Add(input.CreateRcvBySrcASNParam); |
| | | var response = await HttpHelper.PostAsync(CreateRcvBySrcASNUrl, JsonConvert.SerializeObject(param), new Dictionary<string, string>() { { "token", input.token } }); |
| | | var result = JsonConvert.DeserializeObject<U9CResult2>(response.Message); |
| | | if (result != null) |
| | |
| | | { |
| | | BusinessDate = DateTime.Now, |
| | | Supplier = new() { m_code = input.Supplier }, |
| | | RcvDocType = new() { m_code = "RCV01" }, |
| | | RcvDocType = new() { m_code = input.RcvDocType }, |
| | | RcvLines= input.RcvLines, |
| | | }, |
| | | OtherID = "WMS" |