From f02d3a8ffc05a10a64859b2a16d5d43c8abb0fb9 Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期一, 23 三月 2026 11:13:36 +0800
Subject: [PATCH] 北京回长沙的最终版
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/UpdateState.cs | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/UpdateState.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/UpdateState.cs"
index ff6e8df..81a79bb 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/UpdateState.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/UpdateState.cs"
@@ -7,6 +7,7 @@
using WIDESEA.Core.Services;
using WIDESEA.Core.Utilities;
using WIDESEA.Entity.DomainModels;
+using WIDESEA.Services.IRepositories;
using WIDESEA.Services.Repositories;
namespace WIDESEA.Services.IServices
@@ -84,6 +85,17 @@
taskinfo.task_type == TaskType.TaskType_Box_Pallet_Measure_Back.ToString()) &&
(taskState.Contains("_Measure") || taskState == TaskState.TaskState_RGV_Received.ToString()))
{
+ try
+ {
+ Dt_container_detail tempdetail = Dt_container_detailRepository.Instance.Find(x => x.containerdtl_goodsCode == taskinfo.task_sn).FirstOrDefault();
+ tempdetail.containerdtl_text1 = "鏈祴閲�";
+ Dt_container_detailRepository.Instance.Update(tempdetail, true);
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+
//璇存槑瑕佸噯澶囧洖搴撲簡锛屽皢浠诲姟绫诲瀷鏀逛负娴嬮噺鍥炲簱
if (taskinfo.task_state == TaskState.TaskState_Measure_Back_Line_Wait_Executing.ToString())
{
@@ -91,6 +103,22 @@
Dt_taskinfoRepository.Instance.Update(taskinfo, true);
}
+ if(taskinfo.task_state == TaskState.TaskState_Measure_Back_Line_Executing.ToString())
+ {
+ taskinfo.task_type = TaskType.TaskType_Box_Pallet_Measure_Back.ToString();
+
+ taskinfo.task_endstation = taskinfo.task_beginstation;
+ taskinfo.task_beginstation = "10301";
+ taskinfo.task_tolocationid = taskinfo.task_fromlocationid;
+ taskinfo.task_fromlocationid = taskinfo.task_endstation;
+
+ taskinfo.task_state = TaskState.TaskState_Measure_Back_Line_Executing.ToString();
+ taskinfo.task_dispatchertime = DateTime.Now;
+
+ Dt_taskinfoRepository.Instance.Update(taskinfo, true);
+ }
+
+
Dt_locationinfo locationinfo = Dt_locationinfoRepository.Instance.FindFirst(x => x.location_id == taskinfo.task_fromlocationid);
if (locationinfo != null)
{
--
Gitblit v1.9.3