|  |  |  | 
|---|
|  |  |  | { | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | if (task.TaskType == TaskTypeEnum.Outbound.ObjToInt() || task.TaskType == TaskTypeEnum.OutEmpty.ObjToInt() || task.TaskType == TaskTypeEnum.OutAllocate.ObjToInt()) | 
|---|
|  |  |  | if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OutbondGroup) | 
|---|
|  |  |  | task.CurrentAddress = GetAGVAddress(task.CurrentAddress); | 
|---|
|  |  |  | else | 
|---|
|  |  |  | task.NextAddress = GetAGVAddress(task.NextAddress); | 
|---|
|  |  |  | AgvTaskDTO taskDTO = new AgvTaskDTO() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TaskCode = task.AgvTaskNum, | 
|---|
|  |  |  | ReqCode = DateTime.Now.ToString("yyyyMMdd") + task.AgvTaskNum, | 
|---|
|  |  |  | ReqCode = DateTime.Now.ToString("yyMMdd") + task.AgvTaskNum, | 
|---|
|  |  |  | TaskTyp = task.TaskType < TaskTypeEnum.Inbound.ObjToInt() ? "FLC" : "FLR", | 
|---|
|  |  |  | ctnrCode = task.PalletCode, | 
|---|
|  |  |  | PositionCodePath = new List<CodePath>() | 
|---|