From 9843b47612ee6ab23e3e36bf74b14c11354997af Mon Sep 17 00:00:00 2001 From: wanshenmean <cathay_xy@163.com> Date: 星期日, 23 三月 2025 15:25:32 +0800 Subject: [PATCH] 1 --- CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs | 46 ++++++---------------------------------------- 1 files changed, 6 insertions(+), 40 deletions(-) diff --git a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs index 4a36e31..a7e487e 100644 --- a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs +++ b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs @@ -341,7 +341,7 @@ private async Task<WebResponseContent> RequestInTask(string palletCode, Dt_StationManager stationManager) { var wmsIpAddrss = GetWmsIpAddress(SysConfigKeyConst.RequestInTask); - var result = await HttpHelper.PostAsync(wmsIpAddrss, new { palletCode = palletCode, EquiCodeMOM = stationManager.stationEquipMOM, Roadways = stationManager.Roadway, area = stationManager.stationArea, Position = stationManager.stationChildCode }.ToJsonString()); + var result = await HttpHelper.PostAsync(wmsIpAddrss, new { palletCode = palletCode, EquiCodeMOM = stationManager.stationEquipMOM, Roadways = stationManager.Roadway, area = stationManager.stationArea, Position = stationManager.stationChildCode, ProductionLine = stationManager.productLine}.ToJsonString()); return JsonConvert.DeserializeObject<WebResponseContent>(result); } @@ -438,6 +438,10 @@ task.NextAddress = stationinfo.stationChildCode; task.SourceAddress = taskDTO.SourceAddress; task.TargetAddress = taskDTO.TargetAddress; + //if (taskDTO.TaskType == (int)TaskOutboundTypeEnum.InToOut) + //{ + // task.TaskState = (int)TaskInStatusEnum.Line_InFinish; + //} } } else if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup) @@ -618,30 +622,6 @@ var task = BaseDal.QueryFirst(x => x.TaskNum == taskNum); if (task == null) return WebResponseContent.Instance.Error($"鏈壘鍒拌浠诲姟淇℃伅,浠诲姟鍙�:銆恵taskNum}銆�"); - //if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OutbondGroup && task.TaskState == (int)TaskOutStatusEnum.SC_OutExecuting) - //{ - // //todo - - //} - //else if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup && task.TaskState == (int)TaskInStatusEnum.SC_InExecuting) - //{ - // //todo 鍚屾鍒癢MS - - // BaseDal.DeleteData(task); - - //} - //else if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.RelocationGroup) - //{ - // //todo 璋冪敤WMS绉诲簱瀹屾垚 - //} - //else if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OtherGroup) - //{ - //} - //else - //{ - // throw new Exception($"浠诲姟绫诲瀷閿欒,鏈壘鍒拌浠诲姟绫诲瀷,浠诲姟鍙�:銆恵taskNum}銆�,浠诲姟绫诲瀷:銆恵task.TaskType}銆�"); - //} - #region WMS鍚屾浠诲姟瀹屾垚 var keys = new Dictionary<string, object>() @@ -671,21 +651,7 @@ BaseDal.DeleteData(task); } - #region 鏇存柊浠诲姟鐘舵�� - - //var updateTask = config.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.UpdateTask)?.ConfigValue; - //if (wmsBase == null || updateTask == null) - //{ - // throw new InvalidOperationException("WMS IP 鏈厤缃�"); - //} - //wmsIpAddress = wmsBase + updateTask; - - //result = HttpHelper.PostAsync(wmsIpAddress, new { TaskNum = task.TaskNum, TaskState = task.TaskState }.ToJsonString()).Result; - //content = JsonConvert.DeserializeObject<WebResponseContent>(result); - - #endregion 鏇存柊浠诲姟鐘舵�� - - //content = WebResponseContent.Instance.OK(); + content.OK(data: task); } catch (Exception ex) { -- Gitblit v1.9.3