|  |  | 
 |  |  | #endregion << ç æ¬ æ³¨ é >> | 
 |  |  |  | 
 |  |  | using AutoMapper; | 
 |  |  | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; | 
 |  |  | using Quartz; | 
 |  |  | using System; | 
 |  |  | using System.Collections.Generic; | 
 |  |  | using System.Linq; | 
 |  |  | using System.Reflection; | 
 |  |  | using System.Text; | 
 |  |  | using System.Threading.Tasks; | 
 |  |  | using WIDESEAWCS_Common.TaskEnum; | 
 |  |  | using WIDESEAWCS_Core; | 
 |  |  | using WIDESEAWCS_Core.Helper; | 
 |  |  | 
 |  |  | using WIDESEAWCS_ITaskInfoService; | 
 |  |  | using WIDESEAWCS_Model.Models; | 
 |  |  | using WIDESEAWCS_QuartzJob; | 
 |  |  | using WIDESEAWCS_QuartzJob.DTO; | 
 |  |  | using WIDESEAWCS_QuartzJob.Service; | 
 |  |  | using WIDESEAWCS_Tasks.ConveyorLineJob; | 
 |  |  |  | 
 |  |  | 
 |  |  |                 Creater = "system", | 
 |  |  |                 CurrentAddress = currentAddress, | 
 |  |  |                 SourceAddress = currentAddress, | 
 |  |  |                 TaskState = (int)TaskInStatusEnum.InNew, | 
 |  |  |                 TaskState = targetAddress != "WaitBind" ? (int)TaskInStatusEnum.InNew : (int)TaskInStatusEnum.InPending, | 
 |  |  |                 TaskType = (int)TaskInboundTypeEnum.Inbound, | 
 |  |  |                 Grade = 1, | 
 |  |  |                 PalletCode = palletCode, | 
 |  |  |                 TargetAddress = targetAddress, | 
 |  |  |                 NextAddress = targetAddress, | 
 |  |  |                 Roadway = $"{taskType}AGV", | 
 |  |  |                 WMSId =  0,  | 
 |  |  |                 WMSId = 0, | 
 |  |  |                 Remark = remark | 
 |  |  |             }; | 
 |  |  |         } |