| | |
| | | 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}"); |
| | | |
| | | } |
| | | } |
| | | } |