| | |
| | | |
| | | using Autofac.Core; |
| | | using AutoMapper; |
| | | using HslCommunication; |
| | | using Magicodes.ExporterAndImporter.Core; |
| | | using Microsoft.AspNetCore.Components.Routing; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.AspNetCore.Mvc.RazorPages; |
| | | using Microsoft.AspNetCore.Routing; |
| | | using NetTaste; |
| | | using Newtonsoft.Json; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime; |
| | |
| | | using SqlSugar; |
| | | using StackExchange.Profiling.Internal; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Diagnostics; |
| | |
| | | using System.Net.NetworkInformation; |
| | | using System.Reflection; |
| | | using System.Reflection.Metadata; |
| | | using System.Reflection.PortableExecutable; |
| | | using System.Runtime.InteropServices; |
| | | using System.Security.Policy; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | |
| | | private readonly ITask_HtyService _task_HtyService; |
| | | private readonly IMapper _mapper; |
| | | private readonly IEquipmentStatusService _equipmentStatus; |
| | | private readonly IAgvStationService _gvStationService; |
| | | |
| | | |
| | | private Dictionary<string, OrderByType> _taskOrderBy = new() |
| | |
| | | |
| | | public List<int> TaskOutboundTypes => typeof(TaskOutboundTypeEnum).GetEnumIndexList(); |
| | | |
| | | public TaskService(ITaskRepository BaseDal, IRouterService routerService, ITaskExecuteDetailService taskExecuteDetailService, ITaskExecuteDetailRepository taskExecuteDetailRepository, IMapper mapper, ITask_HtyService task_HtyService, IRouterRepository routerRepository, IEquipmentStatusService equipmentStatus) : base(BaseDal) |
| | | public TaskService(ITaskRepository BaseDal, IRouterService routerService, ITaskExecuteDetailService taskExecuteDetailService, ITaskExecuteDetailRepository taskExecuteDetailRepository, IMapper mapper, ITask_HtyService task_HtyService, IRouterRepository routerRepository, IEquipmentStatusService equipmentStatus, IAgvStationService agvStationService) : base(BaseDal) |
| | | { |
| | | _routerService = routerService; |
| | | _taskExecuteDetailService = taskExecuteDetailService; |
| | |
| | | _mapper = mapper; |
| | | _routerRepository = routerRepository; |
| | | _equipmentStatus = equipmentStatus; |
| | | _gvStationService = agvStationService; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <returns>è¿åå¤çç»æ</returns> |
| | | public ExpoReverse TaskInstruction(ExpoTaskDTO expoTask) |
| | | { |
| | | |
| | | |
| | | ExpoReverse content = new ExpoReverse(); |
| | | try |
| | | { |
| | |
| | | WriteLog.Write_Log("任塿¥æ¶", "ä»»å¡éå¤", "å¼å¸¸ä»»å¡", $"ä»»å¡å·ï¼{dt_Tasks.TaskNum}éå¤,å
°åç³»ç»ä¸åéå¤ä»»å¡ï¼ï¼ï¼"); |
| | | return content; |
| | | } |
| | | |
| | | |
| | | if (item.type == 1) //å
¥åº |
| | | { |
| | | Dt_Task dt_Task = new Dt_Task(); |
| | |
| | | BaseDal.AddData(dt_Task); |
| | | content.code = 0; |
| | | |
| | | int taskidt= BaseDal.QueryFirst(x=>x.TaskNum== dt_Task.TaskNum).TaskId; |
| | | int taskidt = BaseDal.QueryFirst(x => x.TaskNum == dt_Task.TaskNum).TaskId; |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(taskidt, $"ç³»ç»èªå¨æµç¨ï¼å建任å¡"); |
| | | } |
| | | else if (item.type == 2) //åºåº |
| | | { |
| | | string roadway = ""; |
| | | string CurrentAddress = ""; |
| | | switch (item.startAddress) |
| | | { |
| | | case "1": |
| | | roadway = "RGV110"; |
| | | CurrentAddress = "1101"; |
| | | break; |
| | | case "2": |
| | | roadway = "RGV112"; |
| | | CurrentAddress = "1121"; |
| | | break; |
| | | case "3": |
| | | roadway = "RGV114"; |
| | | CurrentAddress = "1141"; |
| | | break; |
| | | case "4": |
| | | roadway = "RGV115"; |
| | | CurrentAddress = "1151"; |
| | | break; |
| | | } |
| | | |
| | | AGVStation gVStation = _gvStationService.Corridorequipment(roadway); |
| | | |
| | | Dt_Task dt_Task = new Dt_Task(); |
| | | dt_Task.TaskNum = item.taskNo; |
| | |
| | | dt_Task.TaskType = (int)TaskOutboundTypeEnum.Outbound; |
| | | dt_Task.RGVTaskType = (int)RGVTaskTypeEnum.TravelingOnly; //åè´§ |
| | | dt_Task.RGVCurrentexecution = "0"; //ç®åææ |
| | | dt_Task.TaskState = (int)TaskOutStatusEnum.OutNew; //ç®åææ |
| | | dt_Task.TaskState = (int)TaskOutStatusEnum.OutNewLj; //ç®åææ |
| | | dt_Task.SourceAddress = item.startAddress; |
| | | dt_Task.TargetAddress = ""; |
| | | dt_Task.CurrentAddress = CurrentAddress; |
| | | dt_Task.NextAddress = "0"; //ç®åææ |
| | | dt_Task.TargetAddress = "0"; |
| | | dt_Task.CurrentAddress = gVStation.Motherinlaw.ToString(); |
| | | dt_Task.NextAddress = gVStation.ZicheMotherinlaw.ToString(); //ç®åææ |
| | | dt_Task.Grade = item.priority; |
| | | dt_Task.WMSId = 0; //ç®åææ |
| | | BaseDal.AddData(dt_Task); |
| | | content.code = 0; |
| | | |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(dt_Task.TaskId,$"ç³»ç»èªå¨æµç¨ï¼å建任å¡"); |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(dt_Task.TaskId, $"ç³»ç»èªå¨æµç¨ï¼å建任å¡"); |
| | | } |
| | | else |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="deviceNo">设å¤ç¼å·</param> |
| | | /// <returns>è¿åä»»å¡å®ä½å¯¹è±¡ï¼å¯è½ä¸ºnull</returns> |
| | | public Dt_Task QueryStackerCraneTask(string DeviceCode) |
| | | public Dt_Task QueryStackerCraneTask(AGVStation GdMuChe, AGVStation GdZiche) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode, TaskOrderBy); |
| | | if (GdZiche.Station_Area == 3) //3å··éæ¯è½¦ |
| | | { |
| | | Dt_Task dt_Task = BaseDal.QueryFirst(x => x.Roadway == GdMuChe.ChildPosiDeviceCode && x.RGVTaskType == (int)RGVTaskTypeEnum.TravelingOnly && x.TaskState == (int)TaskOutStatusEnum.OutNew, TaskOrderBy); //è·åå°å¯¹åºæ¯è½¦çä»»å¡ |
| | | if (dt_Task != null) |
| | | { |
| | | Dt_Task dt_Task4 = BaseDal.QueryFirst(x => x.RGVTaskType == (int)RGVTaskTypeEnum.TravelingOnly && x.TaskState == (int)TaskOutStatusEnum.OutNew && x.NextAddress == GdZiche.MotherCarDeviceCode.ToString() && x.Grade < dt_Task.Grade, TaskOrderBy); |
| | | |
| | | Dt_Task dt_Taskhcj = BaseDal.QueryFirst(x => x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp && x.TaskState == (int)TaskOutStatusEnum.RGV_OutMothercarFinish && x.CurrentAddress == GdZiche.HCJStorageaddress.ToString() && x.Grade < dt_Task.Grade, TaskOrderBy); |
| | | if (dt_Task4 == null && dt_Taskhcj == null) //å¨ä¸¤ä¸ªç«å°çä»»å¡ä¼å
çº§é½æ£å¸¸ï¼åæ£å¸¸ç§»å¨ |
| | | { |
| | | return dt_Task; |
| | | } |
| | | |
| | | } |
| | | //è·åHCJç«å°ä»»å¡ä¸4å··ä»»å¡ |
| | | |
| | | return null; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public Dt_Task ObtainHCJtask(string curraderr) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp && (x.TaskState == (int)TaskOutStatusEnum.RGV_OutMothercarFinish || x.TaskState == (int)TaskOutStatusEnum.RGV_OutZicheExecuting || x.TaskState == (int)TaskOutStatusEnum.RGV_OutZicheFinish || x.TaskState == (int)TaskOutStatusEnum.RGV_OutZicheReleaseExecuting) && x.CurrentAddress == curraderr, TaskOrderBy); |
| | | } |
| | | public Dt_Task ObtainMuChetask(string Nextaderr) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.RGVTaskType == (int)RGVTaskTypeEnum.TravelingOnly && x.TaskState == (int)TaskOutStatusEnum.OutNew && x.NextAddress == Nextaderr, TaskOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæ¯è½¦æ¯å¦æä»»å¡ï¼è¿è¡å¤æ |
| | | /// </summary> |
| | | public Dt_Task ObtainMuChetaskbool(AGVStation ZicheinnerSide) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.RGVTaskType == (int)RGVTaskTypeEnum.TravelingOnly && (x.TaskState == (int)TaskOutStatusEnum.OutNew || x.TaskType == (int)TaskOutStatusEnum.RGV_OutMothercarExecuting), TaskOrderBy); |
| | | } |
| | | |
| | | public Dt_Task GetChariotTaskBool(string ChildPosiDeviceCode) |
| | | { |
| | | Dt_Task dt_Task2 = BaseDal.QueryFirst(x => x.Roadway == ChildPosiDeviceCode, TaskOrderBy); |
| | | if (dt_Task2 != null) return dt_Task2; |
| | | return null; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åHCJç«å°æ¯å¦æä»»å¡ |
| | | /// </summary> |
| | | public Dt_Task GetHCJTaskBool(string ChildPosiDeviceCode,int HCJaddres) |
| | | { |
| | | Dt_Task dt_Task2 = BaseDal.QueryFirst(x => x.Roadway == ChildPosiDeviceCode && x.CurrentAddress== HCJaddres.ToString(), TaskOrderBy); |
| | | if (dt_Task2 != null) return dt_Task2; |
| | | return null; |
| | | } |
| | | |
| | | public Dt_Task ChildVehicleMission(AGVStation aGVStation) |
| | | { |
| | | Dt_Task dt_Tasks2 = BaseDal.QueryFirst(x => x.Roadway == aGVStation.ChildPosiDeviceCode && x.CurrentAddress == aGVStation.MotherCardeputy.ToString() && x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp, TaskOrderBy); |
| | | if (dt_Tasks2 != null) return dt_Tasks2; |
| | | |
| | | Dt_Task dt_Tasks = BaseDal.QueryFirst(x => x.Roadway == aGVStation.ChildPosiDeviceCode && x.CurrentAddress == aGVStation.MotherCarDeviceCode.ToString() && x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp, TaskOrderBy); |
| | | if (dt_Tasks != null) return dt_Tasks; |
| | | |
| | | Dt_Task dt_Tasks3 = BaseDal.QueryFirst(x => x.Roadway == aGVStation.ChildPosiDeviceCode && x.CurrentAddress == aGVStation.HCJStorageaddress.ToString() && x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp, TaskOrderBy); |
| | | if (dt_Tasks3 != null) return dt_Tasks3; |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public Dt_Task GetFinhuoTask(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && x.TaskState == (int)TaskOutStatusEnum.RGV_OutZicheFinish && x.RGVTaskType == (int)RGVTaskTypeEnum.Placing, TaskOrderBy); |
| | | } |
| | | |
| | | public Dt_Task GetOutkouFinhuoTask(string DeviceCode, string curraderr) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && x.TaskState == (int)TaskOutStatusEnum.RGV_OutPickupFinish && x.RGVTaskType == (int)RGVTaskTypeEnum.Placing && x.NextAddress != "", TaskOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·ååºåºå£å车åè´§ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | /// <param name="curraderr"></param> |
| | | /// <returns></returns> |
| | | public Dt_Task GetOutchachekouFinhuoTask(string DeviceCode, string curraderr) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && x.TaskState == (int)TaskOutStatusEnum.RGV_OutZicheReleaseFinish && x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp && x.CurrentAddress == curraderr, TaskOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
¥åºåè´§ä»»å¡ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | /// <param name="type">1ï¼æ¥æ¾éè¦åè´§çä»»å¡</param> |
| | | public Dt_Task PickupWarehouse(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && x.TaskState == (int)TaskInStatusEnum.RGV_InNew && x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp, TaskOrderBy); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 任塿¥æ¾ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | /// <param name="type">1ï¼æ¥æ¾éè¦åè´§çä»»å¡ 2ï¼æ¥æ¾éè¦æ¾è´§çä»»å¡</param> |
| | | public Dt_Task GetInkouFinhuoTask(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && x.NextAddress != "" && x.TaskState == (int)TaskInStatusEnum.RGV_InPickupFinish && x.RGVTaskType == (int)RGVTaskTypeEnum.Placing, TaskOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¯è½¦ç§»å¨ä»»å¡ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | public Dt_Task MothermachinemovementTask(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && x.TaskState == (int)TaskInStatusEnum.RGV_InZicheReleaseFinish && x.RGVTaskType == (int)RGVTaskTypeEnum.TravelingOnly, TaskOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæ¯è½¦ç§»å¨ä»»å¡åç§»å¨ä¸çä»»å¡ï¼å
¥åºï¼ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | /// <returns></returns> |
| | | public Dt_Task MothermachinemovementTask2(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && (x.TaskState == (int)TaskInStatusEnum.RGV_InZicheReleaseFinish || x.TaskState == (int)TaskInStatusEnum.RGV_InMothercarExecuting || x.RGVTaskType == (int)RGVTaskTypeEnum.TravelingOnly), TaskOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæ¯è½¦ç§»å¨ä»»å¡åç§»å¨ä¸çä»»å¡ï¼åºåºï¼ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | public Dt_Task OutMothermaTask(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && (x.TaskState == (int)TaskOutStatusEnum.OutNew || x.TaskState == (int)TaskOutStatusEnum.RGV_OutMothercarExecuting || x.RGVTaskType == (int)TaskOutStatusEnum.RGV_OutMothercarFinish), TaskOrderBy); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// å车è¿è¡æ¾è´§ä»»å¡ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | public Dt_Task ViceChariotPlacingTask(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && x.TaskState == (int)TaskInStatusEnum.RGV_InZicheFinish && x.RGVTaskType == (int)RGVTaskTypeEnum.Placing, TaskOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å车åè´§ä»»å¡ï¼åè´§HCJä»»å¡ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | public Dt_Task ViceChariotPickupTask(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && x.TaskState == (int)TaskInStatusEnum.RGV_InReleaseFinish && x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp, TaskOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åå车åè´§ä»»å¡ï¼è¿å
¥æ¯è½¦åè´§ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | public Dt_Task OutPickupZiche(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && (x.TaskState == (int)TaskOutStatusEnum.RGV_OutMothercarFinish || x.TaskState == (int)TaskOutStatusEnum.RGV_OutZicheExecuting) && x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp, TaskOrderBy); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 夿æ¯å¦æå车åHCJä»»å¡ï¼æè
卿§è¡çä»»å¡ |
| | | /// </summary> |
| | | /// <param name="DeviceCode"></param> |
| | | public Dt_Task ViceChariotPickupTask2(string DeviceCode) |
| | | { |
| | | return BaseDal.QueryFirst(x => x.Roadway == DeviceCode && (x.TaskState == (int)TaskInStatusEnum.RGV_InReleaseFinish || x.TaskState == (int)TaskInStatusEnum.RGV_InZicheExecuting || x.TaskState == (int)TaskInStatusEnum.RGV_InZicheFinish || x.TaskState == (int)TaskInStatusEnum.RGV_InZicheReleaseExecuting || x.TaskState == (int)TaskInStatusEnum.RGV_InZicheReleaseFinish) && x.RGVTaskType == (int)RGVTaskTypeEnum.PickingUp, TaskOrderBy); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | public WebResponseContent UpdateDeliveryAddress(string NextAddress, int tasktype) |
| | | { |
| | | WebResponseContent webResponse = new WebResponseContent(); |
| | | try |
| | | { |
| | | Dt_Task dt_Task = null; |
| | | if (tasktype == 1) |
| | | { |
| | | dt_Task = BaseDal.QueryFirst(x => x.TaskType == (int)TaskInboundTypeEnum.Inbound && x.NextAddress == "999"); |
| | | |
| | | } |
| | | else |
| | | { |
| | | dt_Task = BaseDal.QueryFirst(x => x.TaskType == (int)TaskOutboundTypeEnum.Outbound && x.NextAddress == "999"); |
| | | } |
| | | if (dt_Task == null) return webResponse.Error("æªæ¾å°éè¦ä¿®æ¹çä»»å¡ï¼æ éä¿®æ¹"); |
| | | dt_Task.NextAddress = NextAddress; |
| | | BaseDal.UpdateData(dt_Task); |
| | | return webResponse.OK("任塿¾è´§å°åä¿®æ¹æå"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return webResponse.Error($"任塿¾è´§å°åä¿®æ¹å¤±è´¥ï¼åå ï¼{ex.Message}"); |
| | | throw; |
| | | } |
| | | } |
| | | |
| | | public WebResponseContent UpdateRGVTasktype(int taskNum, int RGVTasktype) |
| | |
| | | task.ExceptionMessage = message; |
| | | task.ModifyDate = DateTime.Now; |
| | | BaseDal.UpdateData(task); |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(task.TaskId, "æ´æ°ä»»å¡å¼å¸¸ï¼"+task.ExceptionMessage); |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(task.TaskId, "æ´æ°ä»»å¡å¼å¸¸ï¼" + task.ExceptionMessage); |
| | | content = WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | |
| | | string rgvtyperem = _taskExecuteDetailService.GetEnumDescription2(task.RGVTaskType); //åä¸ä¸ªç¶æ |
| | | |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(task.TaskId, App.User.UserId > 0 ? |
| | | $"人工æå¨å°ä»»å¡ç¶æä»ã{oldstaterem}ã跳转å°ã{afterstaterem}ã" |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(task.TaskId, App.User.UserId > 0 ? |
| | | $"人工æå¨å°ä»»å¡ç¶æä»ã{oldstaterem}ã跳转å°ã{afterstaterem}ã" |
| | | : $"ç³»ç»èªå¨æµç¨ï¼ä»»å¡ç¶æä»ã{oldstaterem}ã转å°ã{afterstaterem}ã"); |
| | | |
| | | content = WebResponseContent.Instance.OK(); |
| | |
| | | |
| | | int oldState = task.TaskState; |
| | | Dt_TaskExecuteDetail taskExecuteDetail = null; |
| | | |
| | | |
| | | if (task.CurrentAddress == "1061") |
| | | { |
| | | taskExecuteDetail = _taskExecuteDetailRepository.QueryFirst(x => x.TaskId == task.TaskId && x.TaskState > task.TaskState && x.TaskState > 0, new Dictionary<string, OrderByType> { { nameof(Dt_TaskExecuteDetail.TaskDetailId), OrderByType.Desc } }); |
| | |
| | | taskExecuteDetail = _taskExecuteDetailRepository.QueryFirst(x => x.TaskId == task.TaskId && x.TaskState < task.TaskState && x.TaskState > 0, new Dictionary<string, OrderByType> { { nameof(Dt_TaskExecuteDetail.TaskDetailId), OrderByType.Desc } }); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | if (taskExecuteDetail != null) |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="taskNum">ä»»å¡ç¼å·</param> |
| | | /// <returns>è¿åå¤çç»æ</returns> |
| | | public WebResponseContent UpdateTaskStatus(int taskNum, int Completetype) |
| | | public WebResponseContent UpdateTaskStatus(int taskNum) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | |
| | |
| | | |
| | | try |
| | | { |
| | | if (task.TaskType == (int)TaskInboundTypeEnum.Inbound) |
| | | if (task.TaskType == (int)TaskInboundTypeEnum.Inbound) //æ£å¸¸æµç¨ |
| | | { |
| | | HandleInboundTask(task); |
| | | } |
| | | else if (task.TaskType == (int)TaskInboundTypeEnum.Inbound && (task.NextAddress == "1001" || task.NextAddress == "1002")) |
| | | { |
| | | task.TaskState = (int)TaskInStatusEnum.RGV_InMothercarFinish; |
| | | } |
| | | else if (task.TaskType == (int)TaskOutboundTypeEnum.Outbound) |
| | | { |
| | |
| | | : $"ç³»ç»èªå¨æµç¨ï¼ä»»å¡ç¶æä»ã{oldstaterem}ã转å°ã{afterstaterem}ã"); |
| | | |
| | | |
| | | if (task.TaskState == (int)TaskInStatusEnum.RGV_InMothercarFinish && Completetype==2) //å
¥åºä»»å¡å®æ |
| | | if (task.TaskState == (int)TaskInStatusEnum.RGV_InMothercarFinish) //å
¥åºä»»å¡å®æ |
| | | { |
| | | CompletedManually(task.TaskId, Completetype); |
| | | //AutomaticTaskCompleted(task); //ä»»å¡å®æ |
| | | if (task.NextAddress == "1001" || task.NextAddress == "1002") |
| | | { |
| | | //å¼å¸¸æé¤ä»»å¡æ¶ï¼å¼å¸¸ä¸æ¥ |
| | | } |
| | | else |
| | | { |
| | | //æ£å¸¸ä»»å¡ï¼æ£å¸¸ä¸æ¥ |
| | | } |
| | | |
| | | } |
| | | |
| | | return WebResponseContent.Instance.OK(); |
| | |
| | | break; |
| | | |
| | | case (int)TaskInStatusEnum.RGV_InReleaseExecuting: |
| | | HandleInboundRelease(task); |
| | | HandleInboundRelease(task); //å
¥åºRGVæ¾è´§å®æåï¼ä¿®æ¹ä»»å¡ç¶æå°å车åè´§ä»»å¡ |
| | | break; |
| | | |
| | | case (int)TaskInStatusEnum.RGV_InZicheExecuting: |
| | |
| | | break; |
| | | |
| | | case (int)TaskInStatusEnum.RGV_InZicheReleaseExecuting: |
| | | task.TaskState = (int)TaskInStatusEnum.RGV_InZicheReleaseFinish; |
| | | task.RGVTaskType = (int)RGVTaskTypeEnum.TravelingOnly; |
| | | break; |
| | | |
| | | case (int)TaskInStatusEnum.RGV_InZichemoveExecuting: |
| | | HandleInboundZichemove(task); |
| | | break; |
| | | |
| | | case (int)TaskInStatusEnum.RGV_InMothercarExecuting: |
| | | task.TaskState = (int)TaskInStatusEnum.RGV_InMothercarFinish; |
| | | break; |
| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
¥åºRGVæ¾è´§å®æå |
| | | /// </summary> |
| | | /// <param name="task"></param> |
| | | private void HandleInboundRelease(Dt_Task task) |
| | | { |
| | | task.TaskState = (int)TaskInStatusEnum.RGV_InReleaseFinish; |
| | | task.RGVTaskType = (int)RGVTaskTypeEnum.PickingUp; |
| | | |
| | | var routes = _routerRepository.QueryData(x => |
| | | Dt_Router routes = _routerRepository.QueryFirst(x => |
| | | x.StartPosi == task.NextAddress && |
| | | x.InOutType == 1 && |
| | | x.IsEnd == false |
| | | ); |
| | | |
| | | foreach (var route in routes) |
| | | x.IsEnd == false && x.ChildPosi == task.TargetAddress |
| | | ); |
| | | if (task.TargetAddress != "1" && task.TargetAddress != "2") |
| | | { |
| | | if (route.ChildPosi == task.TargetAddress || |
| | | (int.Parse(route.ChildPosi) > 2 && int.Parse(task.TargetAddress) > 2)) |
| | | { |
| | | task.Roadway = route.ChildPosiDeviceCode; |
| | | task.CurrentAddress = route.StartPosi; |
| | | task.NextAddress = route.NextPosi; |
| | | break; // æ¾å°å¹é
è·¯ç±åéåºå¾ªç¯ |
| | | } |
| | | |
| | | routes = _routerRepository.QueryFirst(x => |
| | | x.StartPosi == task.NextAddress && |
| | | x.InOutType == 1 && |
| | | x.IsEnd == false && x.ChildPosi == "1061" |
| | | ); |
| | | } |
| | | task.Roadway = routes.ChildPosiDeviceCode; |
| | | task.CurrentAddress = routes.StartPosi; |
| | | task.NextAddress = routes.NextPosi; |
| | | } |
| | | |
| | | private void HandleInboundZichemove(Dt_Task task) |
| | | { |
| | | try |
| | | if (task.TargetAddress == "1" || task.TargetAddress == "2") |
| | | { |
| | | Dt_Router dt_Router = null; |
| | | task.TaskState = (int)TaskInStatusEnum.RGV_InZichemoveFinish; |
| | | if (task.TargetAddress == "4" || task.TargetAddress == "3") |
| | | { |
| | | dt_Router = _routerRepository.QueryFirst(x => |
| | | x.StartPosi == task.NextAddress && |
| | | x.InOutType == 1); |
| | | if (task.CurrentAddress != "1061") task.TaskState = (int)TaskInStatusEnum.RGV_InReleaseFinish; |
| | | task.TaskState = (int)TaskInStatusEnum.RGV_InZicheReleaseFinish; |
| | | task.RGVTaskType = (int)RGVTaskTypeEnum.TravelingOnly; |
| | | |
| | | Dt_Router dt_InRouter = _routerRepository.QueryFirst(x => x.IsEnd == true && x.StartPosi == task.NextAddress && x.InOutType == 1); |
| | | task.CurrentAddress = dt_InRouter.StartPosi; |
| | | task.NextAddress = dt_InRouter.NextPosi; |
| | | task.Roadway = dt_InRouter.ChildPosiDeviceCode; |
| | | |
| | | } |
| | | else |
| | | { |
| | | //åè½¦å®æ |
| | | Dt_Router dt_Routernei = _routerRepository.QueryFirst(x => x.StartPosi == task.NextAddress && x.InOutType == 1 && x.ChildPosi == task.TargetAddress && x.IsEnd == false); |
| | | if (dt_Routernei != null) |
| | | { |
| | | task.TaskState = (int)TaskInStatusEnum.RGV_InReleaseFinish; |
| | | task.RGVTaskType = (int)RGVTaskTypeEnum.PickingUp; |
| | | |
| | | task.CurrentAddress = dt_Routernei.StartPosi; |
| | | task.NextAddress = dt_Routernei.NextPosi; |
| | | task.Roadway = dt_Routernei.ChildPosiDeviceCode; |
| | | } |
| | | else |
| | | { |
| | | dt_Router = _routerRepository.QueryFirst(x => |
| | | x.IsEnd == true && |
| | | x.ChildPosi == task.NextAddress && |
| | | x.InOutType == 1); |
| | | Dt_Router dt_Routernei2 = _routerRepository.QueryFirst(x => x.StartPosi == task.NextAddress && x.InOutType == 1 && x.ChildPosi == task.TargetAddress && x.IsEnd==true); |
| | | |
| | | task.TaskState = (int)TaskInStatusEnum.RGV_InZicheReleaseFinish; |
| | | task.RGVTaskType = (int)RGVTaskTypeEnum.TravelingOnly; |
| | | |
| | | task.CurrentAddress = dt_Routernei2.StartPosi; |
| | | task.NextAddress = dt_Routernei2.NextPosi; |
| | | task.Roadway = dt_Routernei2.ChildPosiDeviceCode; |
| | | } |
| | | |
| | | |
| | | if (dt_Router == null) |
| | | throw new InvalidOperationException("æªæ¾å°å¯¹åºçç»æè·¯ç±"); |
| | | |
| | | |
| | | |
| | | task.RGVTaskType = (int)RGVTaskTypeEnum.PickingUp; |
| | | task.CurrentAddress = dt_Router.StartPosi; |
| | | task.NextAddress = dt_Router.NextPosi; |
| | | task.Roadway = dt_Router.ChildPosiDeviceCode; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | throw; |
| | | } |
| | | } |
| | | #endregion |
| | |
| | | switch (task.TaskState) |
| | | { |
| | | case (int)TaskOutStatusEnum.RGV_OutMothercarExecuting: |
| | | Dt_Router dt_Router = _routerRepository.QueryFirst(x => x.StartPosi == task.NextAddress && x.InOutType == 2); |
| | | task.CurrentAddress = dt_Router.StartPosi; |
| | | task.NextAddress = dt_Router.NextPosi; |
| | | task.Roadway = dt_Router.ChildPosiDeviceCode; |
| | | task.TaskState = (int)TaskOutStatusEnum.RGV_OutMothercarFinish; |
| | | task.RGVTaskType = (int)RGVTaskTypeEnum.PickingUp; |
| | | break; |
| | |
| | | task.TaskState = (int)TaskOutStatusEnum.RGV_OutZicheReleaseFinish; |
| | | task.RGVTaskType = (int)RGVTaskTypeEnum.PickingUp; |
| | | task.Roadway = "RGV118"; |
| | | task.CurrentAddress = "1171"; |
| | | task.NextAddress = ""; |
| | | } |
| | | else |
| | | { |
| | |
| | | task.RGVTaskType = (int)RGVTaskTypeEnum.PickingUp; |
| | | task.CurrentAddress = nextRoute.StartPosi; |
| | | task.NextAddress = nextRoute.NextPosi; |
| | | task.Roadway = route.ChildPosiDeviceCode; |
| | | task.Roadway = nextRoute.ChildPosiDeviceCode; |
| | | } |
| | | } |
| | | #endregion |
| | |
| | | #region å
°åè°åæ¥å£å
容 |
| | | |
| | | /// <summary> |
| | | /// æ¥è¯¢RGVç¶æ |
| | | /// æ¥è¯¢RGVç¶æï¼å®æï¼å¾
æµè¯ï¼ |
| | | /// </summary> |
| | | /// <param name="statusquery"></param> |
| | | /// <returns></returns> |
| | |
| | | rGVstatus.msg = "æåWCSæ¥æ¶å°RGVç¼å·ä¸ºç©ºï¼è¯·æ£æ¥"; |
| | | return rGVstatus; |
| | | } |
| | | |
| | | IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == item.rgvTag); |
| | | CommonConveyorLine conveyorLine = (CommonConveyorLine)device; |
| | | DeviceProDTO? deviceProDTO = conveyorLine.DeviceProDTOs.FirstOrDefault(x => x.DeviceChildCode == item.rgvTag && x.DeviceProParamName == "RGVCurrentlocation" && x.DeviceProParamType == "ReadDeviceCommand"); |
| | | if (device == null) |
| | | { |
| | | rGVstatus.code = 1; |
| | | rGVstatus.msg = "æ¥è¯¢çRGVå·²æçº¿"; |
| | | return rGVstatus; |
| | | } |
| | | SpeStackerCrane Commonstacker = (SpeStackerCrane)device; |
| | | |
| | | //å½åä½ç½® |
| | | DeviceProDTO? deviceProDTO = Commonstacker.DeviceProDTOs.FirstOrDefault(x => x.DeviceChildCode == item.rgvTag && x.DeviceProParamName == "RGVCurrentlocation" && x.DeviceProParamType == "RGVCurrentlocation"); |
| | | |
| | | if (item.type == "pick") //åè´§ |
| | | { |
| | | //è·åè®¾å¤ |
| | | //è·ååè´§ç«å°è´§ä½ç«å° |
| | | Dt_Router dt_Router = _routerRepository.QueryFirst(x => x.InOutType == 1 && x.ChildPosiDeviceCode == item.rgvTag && x.IsEnd == true); |
| | | AGVStation aGVStation = _gvStationService.Corridorequipment(item.rgvTag); |
| | | if (aGVStation == null) |
| | | { |
| | | rGVstatus.code = 1; |
| | | rGVstatus.msg = "æªæ¥æ¾å°è¯¥RGV"; |
| | | return rGVstatus; |
| | | } |
| | | |
| | | |
| | | int Currentlocation = conveyorLine.Communicator.Read<short>(deviceProDTO.DeviceProAddress); |
| | | if (Currentlocation == int.Parse(dt_Router.NextPosi)) //为æ è´§ |
| | | int Currentlocation = Commonstacker.Communicator.Read<short>(deviceProDTO.DeviceProAddress); |
| | | if (Currentlocation == aGVStation.Motherinlaw) //æ¯å¦å¨åè´§ä½ |
| | | { |
| | | rGVstatus.code = 0; |
| | | rGVstatus.data = new List<RgvOperation> |
| | | { |
| | | new RgvOperation { rgvTag = item.rgvTag, type = "pick", status = 1 }, |
| | | }; |
| | | { |
| | | new RgvOperation { rgvTag = item.rgvTag, type = "pick", status = 1 }, |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | rGVstatus.code = 0; |
| | | rGVstatus.data = new List<RgvOperation> |
| | | { |
| | | new RgvOperation { rgvTag = item.rgvTag, type = "pick", status = 0 }, |
| | | }; |
| | | { |
| | | new RgvOperation { rgvTag = item.rgvTag, type = "pick", status = 0 }, |
| | | }; |
| | | } |
| | | } |
| | | else if (item.type == "put") //æ¾è´§ |
| | | { |
| | | AGVStation aGVStation = _gvStationService.Corridorequipment(item.rgvTag); |
| | | int Currentlocation = Commonstacker.Communicator.Read<short>(deviceProDTO.DeviceProAddress); |
| | | |
| | | int Currentlocation = conveyorLine.Communicator.Read<short>(deviceProDTO.DeviceProAddress); |
| | | switch (Currentlocation) |
| | | DeviceProDTO? deviceProFh = Commonstacker.DeviceProDTOs.FirstOrDefault(x => x.DeviceChildCode == item.rgvTag && x.DeviceProParamName == "RgvEquipmentStatus" && x.DeviceProParamType == "RgvEquipmentStatus"); |
| | | int Itstock = Commonstacker.Communicator.Read<short>(deviceProFh.DeviceProAddress); |
| | | |
| | | if (aGVStation.Motherinlaw== Currentlocation && Itstock==0) |
| | | { |
| | | case 1101: |
| | | case 1121: |
| | | case 1141: |
| | | case 1151: |
| | | rGVstatus.code = 0; |
| | | rGVstatus.data = new List<RgvOperation> |
| | | rGVstatus.code = 0; |
| | | rGVstatus.data = new List<RgvOperation> |
| | | { |
| | | new RgvOperation { rgvTag = item.rgvTag, type = "put", status = 2 }, |
| | | }; |
| | | break; |
| | | default: |
| | | rGVstatus.code = 0; |
| | | rGVstatus.data = new List<RgvOperation> |
| | | } |
| | | else |
| | | { |
| | | rGVstatus.code = 0; |
| | | rGVstatus.data = new List<RgvOperation> |
| | | { |
| | | new RgvOperation { rgvTag = item.rgvTag, type = "put", status = 0 }, |
| | | }; |
| | | break; |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | if (item.rgvTag == null) |
| | | { |
| | | |
| | | expoReverse.code = 1; |
| | | expoReverse.msg = "æåWCSæ¥æ¶å°RGVç¼å·ä¸ºç©ºï¼è¯·æ£æ¥"; |
| | | return expoReverse; |
| | | } |
| | | |
| | | //æ¥æ¾RGV宿çä»»å¡ |
| | | if (item.type == "pick") //åè´§ |
| | | { |
| | | expoReverse.code = 0; |
| | | if (item.status == 1) //å åæºè¿è¡åè´§ä¸ |
| | | { |
| | | Dt_Task dt_Task = BaseDal.QueryFirst(x => x.TaskType == (int)TaskInboundTypeEnum.Inbound && x.TaskState == (int)TaskInStatusEnum.RGV_InMothercarFinish && x.Roadway == item.rgvTag); |
| | | if (dt_Task == null) |
| | | { |
| | | expoReverse.code = 1; |
| | | expoReverse.msg = "æåWCSæªæ¾å°éè¦åè´§çä»»å¡"; |
| | | return expoReverse; |
| | | } |
| | | dt_Task.TaskState = (int)TaskInStatusEnum.SC_InExecuting; |
| | | BaseDal.UpdateData(dt_Task); |
| | | expoReverse.code = 0; |
| | | } |
| | | else if (item.status == 2) |
| | | { |
| | | Dt_Task dt_Task = BaseDal.QueryFirst(x => x.TaskType == (int)TaskInboundTypeEnum.Inbound && x.TaskState == (int)TaskInStatusEnum.SC_InExecuting && x.Roadway == item.rgvTag); |
| | | if (dt_Task == null) |
| | | { |
| | | expoReverse.code = 1; |
| | | expoReverse.msg = "æåWCSæªæ¾å°éè¦åè´§çä»»å¡"; |
| | | return expoReverse; |
| | | } |
| | | dt_Task.TaskState = (int)TaskInStatusEnum.InFinish; |
| | | AutomaticTaskCompleted(dt_Task); //æé®é¢,çå¾
ä¼å |
| | | BaseDal.DeleteData(dt_Task); |
| | | expoReverse.code = 0; |
| | | } |
| | | |
| | | } |
| | | else if (item.type == "put") //æ¾è´§ |
| | | { |
| | | if (item.status == 2) //å åæºæ§è¡ä¸ |
| | | { |
| | | Dt_Task dt_Task = BaseDal.QueryFirst(x => x.TaskType == (int)TaskOutboundTypeEnum.Outbound && x.TaskState == (int)TaskOutStatusEnum.OutNewLj && x.Roadway == item.rgvTag); |
| | | if (dt_Task != null) |
| | | { |
| | | dt_Task.TaskState = (int)TaskOutStatusEnum.OutNew; |
| | | BaseDal.UpdateData(dt_Task); |
| | | } |
| | | } |
| | | expoReverse.code = 0; |
| | | } |
| | | else |
| | | { |
| | | expoReverse.code = 1; |
| | | expoReverse.msg = $"æåWCSæ¥æ¶çåæ°ç±»åé误ï¼å®é
æ¥æ¶å¼ä¸ºï¼{item.type}"; |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡åæ¶æ¥å£ |
| | | /// ä»»å¡åæ¶æ¥å£(å¾
æµè¯) |
| | | /// </summary> |
| | | /// <param name="sCErrorStatus"></param> |
| | | /// <returns></returns> |
| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ä¿¡æ¯ç¶æä¸ä¼ (åºå®å
¥åºæ¥å£) |
| | | /// ä»»å¡ä¿¡æ¯ç¶æä¸ä¼ (åºå®å
¥åºæ¥å£)å¯è¿è¡æµè¯ 1.彿§è¡è¯¥ä»»å¡çæ¶åï¼ä¸æ¥å
°å任塿§è¡ä¸ |
| | | /// </summary> |
| | | /// <param name="sCErrorStatus"></param> |
| | | /// <returns></returns> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ä¿¡æ¯ç¶æä¸ä¼ (åºå®åºåºæ¥å£) |
| | | /// ä»»å¡ä¿¡æ¯ç¶æä¸ä¼ (åºå®åºåºæ¥å£)å¯è¿è¡æµè¯ |
| | | /// </summary> |
| | | /// <param name="sCErrorStatus"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent TaskResultOut(string taskNo, string finalAddress, int status, string remark) |
| | | { |
| | | WebResponseContent responseContent = new WebResponseContent(); |
| | | TaskfeedbackResponse reception = new TaskfeedbackResponse { data = new List<TaskfeedbackData> { new TaskfeedbackData { taskNo = taskNo, type = 1, finalAddress = finalAddress, status = status, remark = remark } } }; |
| | | |
| | | TaskfeedbackResponse reception = new TaskfeedbackResponse { data = new List<TaskfeedbackData> { new TaskfeedbackData { taskNo = taskNo, type = 2, finalAddress = finalAddress, status = status, remark = remark } } }; |
| | | StkRunStatusReturns LJReturns = HttpHelper.Post<StkRunStatusReturns>(urlLanJianWCSAPI + LanJiantaskResult, reception, "ä»»å¡å馿¥å£"); |
| | | if (LJReturns.code == 0) |
| | | { |
| | |
| | | return responseContent; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 人工æå¨å®æ |
| | | /// èªå¨å®æä»»å¡ |
| | | /// </summary> |
| | | /// <param name="ids"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | public WebResponseContent AutomaticTaskCompleted(Dt_Task dt_task) |
| | | { |
| | | try |
| | | { |
| | | var res = _task_HtyService.AddData(new Dt_Task_hty |
| | | { |
| | | TaskNum = dt_task.TaskNum, |
| | | PalletCode = dt_task.PalletCode, |
| | | Roadway = dt_task.Roadway, |
| | | TaskType = dt_task.TaskType, |
| | | TaskState = dt_task.TaskState, |
| | | SourceAddress = dt_task.SourceAddress, |
| | | TargetAddress = dt_task.TargetAddress, |
| | | CurrentAddress = dt_task.CurrentAddress, |
| | | NextAddress = dt_task.NextAddress, |
| | | WMSId = dt_task.WMSId, |
| | | Dispatchertime = dt_task.Dispatchertime, |
| | | Remark = "èªå¨å®æ", |
| | | Creater = App.User.UserName, |
| | | CreateDate = DateTime.Now, |
| | | RGVTaskType = dt_task.RGVTaskType, |
| | | RGVCurrentexecution = dt_task.RGVCurrentexecution |
| | | }); |
| | | return WebResponseContent.Instance.OK(); |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error("ä»»å¡å®æå¤±è´¥ï¼"); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 人工æå¨å®æ |
| | | /// </summary> |
| | |
| | | { |
| | | db.Ado.BeginTran(); |
| | | |
| | | |
| | | Dt_Task dt_task = BaseDal.QueryData().Where(x => x.TaskId == id).FirstOrDefault(); |
| | | if (dt_task == null) return WebResponseContent.Instance.Error($"æªæ¥è¯¢å°ä»»å¡"); |
| | | string Remark = CompletionType == 1 ? "人工æå¨å®æ" : "èªå¨å®æ"; |
| | | |
| | | |
| | | var res = _task_HtyService.AddData(new Dt_Task_hty |
| | | { |
| | | TaskNum = dt_task.TaskNum, |
| | |
| | | RGVCurrentexecution = dt_task.RGVCurrentexecution |
| | | }; |
| | | var res = _task_HtyService.AddData(dt_Task_Hty); |
| | | if (res.Status == false) { |
| | | if (res.Status == false) |
| | | { |
| | | db.Ado.RollbackTran(); |
| | | return WebResponseContent.Instance.Error("åæ¶ä»»å¡å¤±è´¥ï¼"); |
| | | } |
| | |
| | | );*/ |
| | | |
| | | bool deletetask = BaseDal.DeleteData(dt_task); |
| | | if (!deletetask) { |
| | | if (!deletetask) |
| | | { |
| | | db.Ado.RollbackTran(); |
| | | return WebResponseContent.Instance.Error("å é¤ä»»å¡å¤±è´¥æææä½åæ»ï¼"); |
| | | } |
| | |
| | | case (int)TaskInStatusEnum.RGV_InReleaseFinish: |
| | | case (int)TaskInStatusEnum.RGV_InZicheFinish: |
| | | case (int)TaskInStatusEnum.RGV_InZicheReleaseFinish: |
| | | case (int)TaskInStatusEnum.RGV_InZichemoveFinish: |
| | | //å
¥åºç¶æ |
| | | //åºåºç¶æ |
| | | case (int)TaskOutStatusEnum.OutNew: |
| | |
| | | case (int)TaskInStatusEnum.RGV_InReleaseExecuting: |
| | | case (int)TaskInStatusEnum.RGV_InZicheExecuting: |
| | | case (int)TaskInStatusEnum.RGV_InZicheReleaseExecuting: |
| | | case (int)TaskInStatusEnum.RGV_InZichemoveExecuting: |
| | | case (int)TaskInStatusEnum.RGV_InMothercarExecuting: |
| | | //å
¥åºç¶æ |
| | | //åºåºç¶æ |
| | |
| | | case (int)TaskOutStatusEnum.RGV_OutReleaseExecuting: |
| | | //åºåºç¶æ |
| | | //è°å宿æ¥å£ |
| | | responseContent = UpdateTaskStatus(task.TaskNum, 1); |
| | | responseContent = UpdateTaskStatus(task.TaskNum); |
| | | break; |
| | | case (int)TaskInStatusEnum.RGV_InMothercarFinish: |
| | | return WebResponseContent.Instance.Error("ä»»å¡å·²"); |
| | | return WebResponseContent.Instance.Error("RGVé¨åä»»å¡å·²èµ°ä½,ä¸å¯å¾ä¸æ§è¡"); |
| | | default: |
| | | return WebResponseContent.Instance.Error("ä»»å¡ç¶æéè¯¯ï¼æ§è¡ä¸ä¸æ¥å¤±è´¥"); |
| | | } |