| | |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_QuartzJob; |
| | | using WIDESEAWCS_QuartzJob.Models; |
| | | using WIDESEAWCS_QuartzJob.Service; |
| | | |
| | |
| | | public string urlQueryinventory = WIDESEAWCS_Core.Helper.AppSettings.Configuration["urlQueryinventory"]; |
| | | public string urlEmptyOutbound = WIDESEAWCS_Core.Helper.AppSettings.Configuration["urlEmptyOutbound"]; |
| | | public string urlRawmaterialout = WIDESEAWCS_Core.Helper.AppSettings.Configuration["urlRawmaterialout"]; |
| | | public string urlPalletQueryinventory = WIDESEAWCS_Core.Helper.AppSettings.Configuration["urlPalletQueryinventory"]; |
| | | /// <summary> |
| | | /// æ¥æ¶WMSä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | |
| | | /// <returns></returns> |
| | | public WebResponseContent ToPlatform(string palletCode) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | GenerateInv generate = new GenerateInv() |
| | | { |
| | | SourceAddress = "", |
| | | PalletCode = palletCode |
| | | }; |
| | | |
| | | return content = HttpHelper.Post<WebResponseContent>($"{urlQueryinventory}", generate); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | throw; |
| | | } |
| | | |
| | | /*WebResponseContent content = new WebResponseContent(); |
| | | GenerateInv generate = new GenerateInv() |
| | | { |
| | | SourceAddress ="", |
| | | SourceAddress = "", |
| | | PalletCode = palletCode |
| | | }; |
| | | |
| | | return content = HttpHelper.Post<WebResponseContent>($"{urlQueryinventory}", generate); |
| | | content = HttpHelper.Post<WebResponseContent>($"{urlQueryinventory}", generate); |
| | | if (content != null) |
| | | { |
| | | if (content.Status) |
| | | { |
| | | return content; |
| | | } |
| | | } |
| | | return content = WebResponseContent.Instance.Error();*/ |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | public WebResponseContent RequestWMSTask4() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | |
| | | return content = HttpHelper.Get<WebResponseContent>($"{urlPalletQueryinventory}"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content = WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// æ ¹æ®æ·±åºä½åwmsç³è¯·å¤ææµ
åºä½æ¯å¦æè´§ï¼æ¯å¦éè¦è¿è¡ç§»åºæä½ |
| | | /// </summary> |