From c5f01e9a882b16f534166d033312c5c8ba8d94dd Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期六, 24 一月 2026 14:35:21 +0800
Subject: [PATCH] 离开北京前最后的版本,包含打印机程序
---
项目代码/WCS/WIDESEA_WCSServer/WIDESEA_Services/Services/Taskinfo/Partial/Dt_TaskWCSinfoService.cs | 43 ++++++++++++++++++++++++++++++-------------
1 files changed, 30 insertions(+), 13 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEA_WCSServer/WIDESEA_Services/Services/Taskinfo/Partial/Dt_TaskWCSinfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEA_WCSServer/WIDESEA_Services/Services/Taskinfo/Partial/Dt_TaskWCSinfoService.cs"
index 98b7141..657cbbb 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEA_WCSServer/WIDESEA_Services/Services/Taskinfo/Partial/Dt_TaskWCSinfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEA_WCSServer/WIDESEA_Services/Services/Taskinfo/Partial/Dt_TaskWCSinfoService.cs"
@@ -6,23 +6,24 @@
*鐢ㄦ埛淇℃伅銆佹潈闄愩�佽鑹茬瓑浣跨敤UserContext.Current鎿嶄綔
*Dt_TaskWCSinfoService瀵瑰銆佸垹銆佹敼鏌ャ�佸鍏ャ�佸鍑恒�佸鏍镐笟鍔′唬鐮佹墿灞曞弬鐓erviceFunFilter
*/
-using WIDESEA_Core.BaseProvider;
-using WIDESEA_Core.Extensions.AutofacManager;
-using WIDESEA_Entity.DomainModels;
-using System.Linq;
-using WIDESEA_Core.Utilities;
-using System.Linq.Expressions;
-using WIDESEA_Core.Extensions;
+using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
-using Microsoft.AspNetCore.Http;
-using WIDESEA_Services.IRepositories;
using System;
-using WIDESEA_Common.CutomerModel;
-using WIDESEA_Common;
-using WIDESEA_Services.Repositories;
-using WIDESEA_Common.TaskEnum;
using System.Collections.Generic;
+using System.Linq;
+using System.Linq.Expressions;
+using WIDESEA_Common;
+using WIDESEA_Common.CutomerModel;
+using WIDESEA_Common.TaskEnum;
+using WIDESEA_Common.Tools;
+using WIDESEA_Core.BaseProvider;
+using WIDESEA_Core.Extensions;
+using WIDESEA_Core.Extensions.AutofacManager;
+using WIDESEA_Core.Utilities;
+using WIDESEA_Entity.DomainModels;
+using WIDESEA_Services.IRepositories;
+using WIDESEA_Services.Repositories;
namespace WIDESEA_Services.Services
{
@@ -279,7 +280,23 @@
if (content.Status)
{
wcsInfo.wcstask_state = state;
+ if (state == TaskState.TaskState_Measure_Back_Line_Executing.ToString())
+ {
+ //灏嗕换鍔$被鍨嬫敼涓哄洖搴撲腑
+ wcsInfo.wcstask_type = TaskType.TaskType_Box_Pallet_Measure_Back.ToString();
+ //灏嗕换鍔¤捣濮嬬珯鍙板拰鐩殑绔欏彴瀵硅皟锛屽噯澶囧洖搴�
+
+ wcsInfo.wcstask_endPoint = wcsInfo.wcstask_startPoint;
+ wcsInfo.wcstask_startPoint = "10301";
+ wcsInfo.wcstask_endLocation = wcsInfo.wcstask_startLocation;
+ wcsInfo.wcstask_startLocation = wcsInfo.wcstask_endPoint;
+
+ wcsInfo.wcstask_state = TaskState.TaskState_Measure_Back_Line_Executing.ToString();
+ wcsInfo.wcstask_dispatcherTime = DateTime.Now;
+ }
Dt_TaskWCSinfoRepository.Instance.Update(wcsInfo, true);
+ WriteLog.Info("鎵嬪姩鏇存敼娴嬮噺鐘舵��").Write($"{DateTime.Now}锛氭祴閲忓洖搴撳紓甯革紝鍙嶈浆璐т綅 浠诲姟鍙穥taskNumer},鎵樼洏鍙穥wcsInfo.wcstask_barcode},鍙嶈浆鍚庤捣濮嬬珯鍙般��10301銆�" +
+ $"缁堢偣璐т綅銆恵wcsInfo.wcstask_endLocation}銆�", "鎵嬪姩鏇存敼娴嬮噺鐘舵��");
}
else
{
--
Gitblit v1.9.3