| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_DTO.WMSInfo; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_QuartzJob; |
| | | using WIDESEAWCS_QuartzJob.Service; |
| | | using WIDESEAWCS_Tasks.ProductionLineJob; |
| | | using WIDESEAWCS_Tasks.StackerCraneJob; |
| | | using static System.Collections.Specialized.BitVector32; |
| | | |
| | | namespace WIDESEAWCS_Tasks |
| | | { |
| | |
| | | try |
| | | { |
| | | OtherDevice ProductionLine = (OtherDevice)context.JobDetail.JobDataMap.Get("JobParams"); |
| | | short[] shorts = { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 }; |
| | | ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO() |
| | | { |
| | | Barcode = "A1001", |
| | | batchNo = "20241212001T1", |
| | | stationCode = "Z1", |
| | | productQty = string.Join(",", shorts), |
| | | traytype = 4 |
| | | }; |
| | | ProductionLineToWMSRequest(MaterielGroupDTO); |
| | | if (ProductionLine != null) |
| | | { |
| | | ProductionLineExtend(ProductionLine); |
| | | switch (ProductionLine.DeviceName) |
| | | { |
| | | case "å
¥åºäº§çº¿": |
| | | ProductionLineIn(ProductionLine); |
| | | break; |
| | | case "åºåºäº§çº¿": |
| | | ProductionLineOut(ProductionLine); |
| | | break; |
| | | default: |
| | | throw new Exception("æªå®ä¹äº§çº¿"); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |