From d3a84592bc645e929a702178497b570275e97ba8 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 28 11月 2024 13:18:44 +0800
Subject: [PATCH] 222
---
CC/iWareCC_ASRS/WmsTask/EmptySalverTransferTask.cs | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/CC/iWareCC_ASRS/WmsTask/EmptySalverTransferTask.cs b/CC/iWareCC_ASRS/WmsTask/EmptySalverTransferTask.cs
index 70020fe..8ce36c5 100644
--- a/CC/iWareCC_ASRS/WmsTask/EmptySalverTransferTask.cs
+++ b/CC/iWareCC_ASRS/WmsTask/EmptySalverTransferTask.cs
@@ -29,11 +29,11 @@
while (true)
{
Thread.Sleep(2000);//浼戠湢2绉掞紝灏嗕紤鐪犲啓鍒板墠闈紝鏄负浜嗕笅闈㈢殑continue鏂规硶鎵ц鍚庝笉鏄剧ず閿欒淇℃伅鐨勬彁绀猴紒锛侊紒銆怑ditBy shaocx,2022-05-24銆�
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer = string.Empty;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound = string.Empty;
bool isHasFinishedCurrentHanlder = false;//鏄惁宸茬粡澶勭悊瀹屼簡绌烘墭鐩樿浆杩愪换鍔�
try
{
- if (SystemValue.isAllowRuning_EmptySalverTransfer && SystemValue.isStartedModel)
+ if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_IssueOutboundTask && SystemValue.isStartedModel)
{
//姝ゅ鍒ゆ柇 1009 1010 1011鐨勭姸鎬�
bool isEmptyPlace_1011 = false, isEmptyPlace_1010 = false, isEmptyPlace_1009 = false;
@@ -77,7 +77,7 @@
{
if (FormCC.RGV_1011_HasCategory_COUNT < SysGloble.MAX_RGV_1011_HasCategory_COUNT)
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "閿欒锛�1011澶勪笉鍏佽鍒涘缓浠诲姟锛�1011鏈夎揣鏃堕棿:" + FormCC.RGV_1011_HasCategory_COUNT
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "閿欒锛�1011澶勪笉鍏佽鍒涘缓浠诲姟锛�1011鏈夎揣鏃堕棿:" + FormCC.RGV_1011_HasCategory_COUNT
+ ",杩樻湭澶т簬璁惧畾鐨勬渶澶ц秴鏃舵椂闂�:" + SysGloble.MAX_RGV_1011_HasCategory_COUNT + SysGloble.SPLIT_STR;
}
else
@@ -93,11 +93,11 @@
var fr = MyExtendHelper.DoHandler(context, store, rgvLocation);
if (fr.result == false)
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "閿欒锛�1011澶勬柊寤轰换鍔″け璐�:" + fr.resMsg + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "閿欒锛�1011澶勬柊寤轰换鍔″け璐�:" + fr.resMsg + SysGloble.SPLIT_STR;
}
else
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "鎴愬姛鍒涘缓1011浠诲姟" + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "鎴愬姛鍒涘缓1011浠诲姟" + SysGloble.SPLIT_STR;
continue;
}
isHasFinishedCurrentHanlder = true;
@@ -165,7 +165,7 @@
if (salverStackCount == 0)
{
//鎶ラ敊
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += ("[妫�娴媇鏍规嵁1009绔欑偣鐨勫厜鐢佃幏鍙栬繑鍥炵珛浣撳簱鐨勬墭鐩樻暟涓�0") + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += ("[妫�娴媇鏍规嵁1009绔欑偣鐨勫厜鐢佃幏鍙栬繑鍥炵珛浣撳簱鐨勬墭鐩樻暟涓�0") + SysGloble.SPLIT_STR;
continue;
}
//浼戠湢5绉�
@@ -174,13 +174,13 @@
if (salverStackCount2 == 0)
{
//鎶ラ敊
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += ("[妫�娴媇鏍规嵁1009绔欑偣鐨勫厜鐢佃幏鍙栬繑鍥炵珛浣撳簱鐨勬墭鐩樻暟涓�0") + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += ("[妫�娴媇鏍规嵁1009绔欑偣鐨勫厜鐢佃幏鍙栬繑鍥炵珛浣撳簱鐨勬墭鐩樻暟涓�0") + SysGloble.SPLIT_STR;
continue;
}
if (salverStackCount != salverStackCount2)
{
//鎶ラ敊
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += ("鏍规嵁1009绔欑偣鐨勫厜鐢碉紝鐩稿樊5绉掕幏鍙栬繑鍥炵珛浣撳簱鐨勬墭鐩樻暟涓嶄竴鑷达紝绗竴娆℃槸" + salverStackCount + "锛岀浜屾鏄�" + salverStackCount2) + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += ("鏍规嵁1009绔欑偣鐨勫厜鐢碉紝鐩稿樊5绉掕幏鍙栬繑鍥炵珛浣撳簱鐨勬墭鐩樻暟涓嶄竴鑷达紝绗竴娆℃槸" + salverStackCount + "锛岀浜屾鏄�" + salverStackCount2) + SysGloble.SPLIT_STR;
continue;
}
@@ -190,11 +190,11 @@
var fr = MyExtendHelper.DoHandler(context, null, rgvLocation);
if (fr.result == false)
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "閿欒锛�1009澶勬柊寤轰换鍔″け璐�:" + fr.resMsg + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "閿欒锛�1009澶勬柊寤轰换鍔″け璐�:" + fr.resMsg + SysGloble.SPLIT_STR;
}
else
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "鎴愬姛鍒涘缓1009浠诲姟" + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "鎴愬姛鍒涘缓1009浠诲姟" + SysGloble.SPLIT_STR;
continue;
}
isHasFinishedCurrentHanlder = true;
@@ -209,7 +209,7 @@
var errMsg = "";
if (!MyExtendHelper.IsAllowSendTaskTo1014ByTPHS(ref errMsg))
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += errMsg + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += errMsg + SysGloble.SPLIT_STR;
continue;
}
@@ -223,7 +223,7 @@
{
if (!MyExtendHelper.IsAllowSendTaskTo1014ByTPHS(ref errMsg))
{//鍐嶆鏍¢獙 銆怑ditBy shaocx,2022-05-18銆�
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += errMsg + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += errMsg + SysGloble.SPLIT_STR;
continue;
}
//鍒ゆ柇1011浣嶇疆鏄惁鏈夊簱瀛橈紝骞朵笖鏄湭閿佸畾鐘舵�侊紝濡傛灉鏄紝灏变笉瑕佸垱寤轰粠绔嬩綋搴撳埌1014鐨勪换鍔′簡銆怑ditBy shaocx,2022-05-18銆�
@@ -232,18 +232,18 @@
if (store1011 != null && store1011.StationId > 0)
//if (store1011 != null && store1011.StationIsLock == false && store1011.StationIsHasTaskDoing == false)
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "1011浣嶇疆鏈夌郴缁熷簱瀛樺瓨鍦紝鍥犳涓嶉渶瑕佸垱寤轰粠绔嬩綋搴撳埌1014鐨勪换鍔°�傘��" + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "1011浣嶇疆鏈夌郴缁熷簱瀛樺瓨鍦紝鍥犳涓嶉渶瑕佸垱寤轰粠绔嬩綋搴撳埌1014鐨勪换鍔°�傘��" + SysGloble.SPLIT_STR;
continue;
}
var fr = MyExtendHelper.DoHandler(context, null, rgvLocation);
if (fr.result == false)
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "閿欒锛氭媶鐩樻満鍏ュ彛1014澶勬柊寤轰粠绔嬩綋搴撳彨鎵樼洏浠诲姟澶辫触:" + fr.resMsg + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "閿欒锛氭媶鐩樻満鍏ュ彛1014澶勬柊寤轰粠绔嬩綋搴撳彨鎵樼洏浠诲姟澶辫触:" + fr.resMsg + SysGloble.SPLIT_STR;
}
else
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "鎴愬姛鍒涘缓鎷嗙洏鏈哄叆鍙�1014澶勬柊寤轰粠绔嬩綋搴撳彨鎵樼洏浠诲姟" + SysGloble.SPLIT_STR;
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "鎴愬姛鍒涘缓鎷嗙洏鏈哄叆鍙�1014澶勬柊寤轰粠绔嬩綋搴撳彨鎵樼洏浠诲姟" + SysGloble.SPLIT_STR;
continue;
}
}
@@ -254,8 +254,8 @@
}
catch (Exception ex)
{
- SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "鍒嗚В绾跨▼鍑虹幇寮傚父:" + ex.Message + SysGloble.SPLIT_STR;
- Log4NetHelper.WriteErrorLog(LogType.EmptySalverTransferTask, "HandlerIssuingTask鍑虹幇寮傚父锛�" + ex.Message, ex);
+ SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "鍒嗚В绾跨▼鍑虹幇寮傚父:" + ex.Message + SysGloble.SPLIT_STR;
+ Log4NetHelper.WriteErrorLog(LogType.DataProcess_RobotBuffer_IssueOutboundTask, "HandlerIssuingTask鍑虹幇寮傚父锛�" + ex.Message, ex);
}
}
--
Gitblit v1.9.3