| | |
| | | //ç©æç±»å |
| | | materialCode = materialCode, |
| | | externalOrderNo = order.Out_no, |
| | | outOrderType = order.Out_type, |
| | | outOrderType = order.Out_type == "6" ? "30" : "10", |
| | | priority = 1, |
| | | Is_cancel = 0, |
| | | details = order.Details.Select(d => new ToeOutdiInDetail |
| | |
| | | _materielInfoService = materielInfoService; |
| | | } |
| | | //æ¯é1ç§æ§è¡ä¸æ¬¡ |
| | | [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = true, SkipWhileExecuting = true)] |
| | | [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = false, SkipWhileExecuting = true)] |
| | | public void Run() |
| | | { |
| | | _materielInfoService.GetMedicineGoodsInfom(); |
| | | _materielInfoService.ProductSynchronous(); |
| | | Console.WriteLine($"ç©æä¿¡æ¯ä»»å¡æ§è¡ç»æï¼{DateTime.Now}"); |
| | | } |
| | | } |
| | |
| | | using Pomelo.AspNetCore.TimedJob; |
| | | using WIDESEA_ISquareCabinServices; |
| | | using WIDESEA_IWMsInfoServices; |
| | | |
| | | namespace WIDESEA_WMSServer |
| | | { |
| | | public class InOrderJob : Job |
| | | { |
| | | private readonly IBusiness _business; |
| | | public InOrderJob(IBusiness business) |
| | | private readonly IMaterielInfoService _materielInfoService; |
| | | public InOrderJob(IBusiness business, IMaterielInfoService materielInfoService) |
| | | { |
| | | _business = business; |
| | | _materielInfoService = materielInfoService; |
| | | } |
| | | //æ¯é1ç§æ§è¡ä¸æ¬¡ |
| | | [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = true, SkipWhileExecuting = true)] |
| | | public void Run() |
| | | { |
| | | _materielInfoService.GetMedicineGoodsInfom(); |
| | | _business.GetInOrder(); |
| | | _business.GetOutOrder(); |
| | | //_business.EdiIn(); |
| | | //_business.CompleteAllOrders(); |
| | | _business.CompleteAllOrders(); |
| | | _business.CompleteAllOutOrders(); |
| | | Console.WriteLine($"ERP任塿§è¡ç»æï¼{DateTime.Now}"); |
| | |
| | | using Pomelo.AspNetCore.TimedJob; |
| | | using WIDESEA_ISquareCabinServices; |
| | | using WIDESEA_IWMsInfoServices; |
| | | |
| | | namespace WIDESEA_WMSServer |
| | | { |
| | | public class OutOrderJob : Job |
| | | { |
| | | private readonly IBusiness _business; |
| | | public OutOrderJob(IBusiness business) |
| | | private readonly IMaterielInfoService _materielInfoService; |
| | | public OutOrderJob(IBusiness business, IMaterielInfoService materielInfoService) |
| | | { |
| | | _business = business; |
| | | _materielInfoService = materielInfoService; |
| | | } |
| | | //æ¯é1ç§æ§è¡ä¸æ¬¡ |
| | | [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = true, SkipWhileExecuting = true)] |
| | | public void Run() |
| | | { |
| | | //è·å䏿¸¸åºåºåæ°æ® |
| | | |
| | | |
| | | _materielInfoService.ProductSynchronous(); |
| | | _business.EdiIn(); |
| | | _business.EdiOut(); |
| | | |
| | | |
| | | Console.WriteLine($"WCS任塿§è¡ç»æï¼{DateTime.Now}"); |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | createSocket("ws://127.0.0.1:9296/" + _userInfo.userName); |
| | | createSocket("ws://172.16.1.4:9296/" + _userInfo.userName); |
| | | |
| | | Object.assign(_config.$tabs, { open: open, close: close }); |
| | | |