| | |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseServices; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_IBasicRepository; |
| | | using WIDESEA_IBasicService; |
| | | using WIDESEA_Model.Models; |
| | |
| | | { |
| | | PalletCodes.Add(GetOrderPintCode($"{palletCodeType}PalletCodes",palletCodeType)); |
| | | } |
| | | //content= PrintPallet(PalletCodes); |
| | | foreach(var PalletCode in PalletCodes) |
| | | content= PrintPallet(PalletCodes); |
| | | foreach (var PalletCode in PalletCodes) |
| | | { |
| | | Console.WriteLine(PalletCode); |
| | | } |
| | |
| | | /// <exception cref="InvalidOperationException"></exception> |
| | | public WebResponseContent PrintPallet(List<string> palletCodes) |
| | | { |
| | | var Base = ""; |
| | | var ipAddress = ""; |
| | | if (Base == null || ipAddress == null) |
| | | { |
| | | throw new InvalidOperationException("WMS IP 未配置"); |
| | | } |
| | | var IpAddress = Base + ipAddress; |
| | | //var result = HttpsClient.PostAsync(palletCodes.ToJsonString()).Result; |
| | | //return JsonConvert.DeserializeObject<WebResponseContent>(); |
| | | string url = "http://127.0.0.1:8098/Print/PrintPalletCode"; |
| | | HttpHelper.Post(url, palletCodes.Serialize()); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | } |