| | |
| | | using WIDESEA_Core.BaseRepository; |
| | | using AutoMapper; |
| | | using Mapster; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace WIDESEA_StorageSocketServices |
| | | { |
| | |
| | | /// <returns></returns> |
| | | private int InsertAGVTask(Dt_Task task) |
| | | { |
| | | string SourceAddress = string.Empty; |
| | | string TargetAddress = string.Empty; |
| | | if (task.TaskType == (int)TaskInboundTypeEnum.Inbound) |
| | | { |
| | | TargetAddress = InsertHyphenEveryTwoChars(task.TargetAddress); |
| | | } |
| | | else if (task.TaskType == (int)TaskOutboundTypeEnum.Outbound) |
| | | { |
| | | SourceAddress = InsertHyphenEveryTwoChars(task.SourceAddress); |
| | | } |
| | | else if (task.TaskType == (int)TaskRelocationTypeEnum.Relocation) |
| | | { |
| | | TargetAddress = InsertHyphenEveryTwoChars(task.TargetAddress); |
| | | SourceAddress = InsertHyphenEveryTwoChars(task.SourceAddress); |
| | | } |
| | | else if (task.TaskType == (int)TaskStationTypeEnum.StationToStation) |
| | | { |
| | | TargetAddress = task.TargetAddress; |
| | | SourceAddress = task.SourceAddress; |
| | | } |
| | | task_call task_Call = new task_call() |
| | | { |
| | | d_task_type = task.TaskType == (int)TaskTypeEnum.Inbound ? 1 : 2, |
| | | d_floor = 1, |
| | | d_involed1 = InsertHyphenEveryTwoChars(task.SourceAddress), |
| | | d_involed2 = InsertHyphenEveryTwoChars(task.TargetAddress), |
| | | d_involed1 = SourceAddress, |
| | | d_involed2 = TargetAddress, |
| | | d_involed5 = task.TaskNum, |
| | | }; |
| | | |