| | |
| | | { |
| | | RGVName = "RGV03"; |
| | | } |
| | | int targetStation = 0; |
| | | if (childDeviceCode == "1004" || childDeviceCode == "1039" || childDeviceCode == "1040" || childDeviceCode == "1013" || childDeviceCode == "1014") |
| | | { |
| | | targetStation = 14; |
| | | } |
| | | else if (childDeviceCode == "1015" || childDeviceCode == "1016" || childDeviceCode == "1027" || childDeviceCode == "1028" || childDeviceCode == "1029" || childDeviceCode == "1030") |
| | | { |
| | | targetStation = 1; |
| | | } |
| | | else |
| | | { |
| | | targetStation = 0; |
| | | } |
| | | Dt_Task task = new Dt_Task() |
| | | { |
| | | TaskNum = _taskRepository.GetTaskNo().Result, |
| | |
| | | Floor = stationManager.stationFloor, |
| | | RGVName = RGVName, |
| | | SourceStation = stationManager.remark, |
| | | TargetStation = 0, |
| | | TargetStation = targetStation, |
| | | }; |
| | | |
| | | _taskRepository.AddData(task); |