From 327dbcbe3e6ee5fea207422c7792fc35a1027638 Mon Sep 17 00:00:00 2001
From: zongzhibin <zongzhibin@weben-smart.com>
Date: 周二, 26 11月 2024 09:15:24 +0800
Subject: [PATCH] add
---
CC/iWareCC_ASRS/FormCC.cs | 104 +++++++++++++++++++++------------------------------
1 files changed, 43 insertions(+), 61 deletions(-)
diff --git a/CC/iWareCC_ASRS/FormCC.cs b/CC/iWareCC_ASRS/FormCC.cs
index ef4c92f..928fb05 100644
--- a/CC/iWareCC_ASRS/FormCC.cs
+++ b/CC/iWareCC_ASRS/FormCC.cs
@@ -5,6 +5,8 @@
using iWareCC.SrmService;
using iWareCC.StationService;
using iWareCC.ThreadService;
+using iWareCC.ThreadService._03_BZ12_鏈哄櫒浜虹爜鍖呭伐浣峗;
+using iWareCC.ThreadService._04_BZ21_鎼繍鏁村灈鏈哄櫒浜篲;
using iWareCC.WCF;
using iWareCommon.Common.Globle;
using iWareCommon.Utils;
@@ -36,6 +38,11 @@
/// 鍏ㄥ眬鈥旀槸鍚﹀彲浠ヨ繍琛屾墽琛屽嚭搴撴ā寮�
/// </summary>
public static bool IsAllowRunOutMode = false;
+
+ /// <summary>
+ /// 褰撳墠涓嬪彂鍑哄簱浠诲姟鐨勫寘鍙�
+ /// </summary>
+ public static string currHandlerPackageCodeForIssueOutboundTask = "";
/// <summary>
/// 1鍙峰爢鍨涙満鍏ュ簱鍙f壂鐮佸己鍒堕獙璇侀�氳繃
@@ -213,32 +220,34 @@
// rgvService.StartService();
- //澶勭悊銆愪笅鍙戜腑銆戠殑鍑哄簱璁″垝浠诲姟
- // new Thread(OutPlanTaskDecompose.HandlerIssuingTask).Start();
- //浠诲姟鍒嗚В绾跨▼-鍑哄簱
- // new Thread(MainTaskDecompose.HandlerMainTaskDecompose).Start();
+ new Thread(DataProcess_RobotBuffer_ModeChange.Handler).Start();
- //浠诲姟鍒嗚В绾跨▼-缁勭洏鍏ュ簱
- // new Thread(MainTaskDecompose_ZPRK.HandlerMainTaskDecompose_ZPRK).Start();
+ new Thread(DataProcess_RobotBuffer_IssueOutboundTask.Handler).Start();
+
+
+ new Thread(DataProcess_RobotBuffer_AutoQiTaoOutbound.Handler).Start();
new Thread(DataProcess_RobotBuffer_FinishTaskForOutbound.Handler).Start();
- //鑷姩缁勭洏浠诲姟
+
new Thread(DataProcess_RobotBuffer_FinishTask.Handler).Start();
new Thread(DataProcess_BZ01.Handler).Start();
- //閲嶆柊鑾峰彇鍙戝姩鏈轰俊鎭�
+
new Thread(DataProcess_269.Handler).Start();
- //1014搴撲綅杞繍鍒�1020绾跨▼
+
new Thread(DataProcess_BZ39.Handler).Start();
+ new Thread(DataProcess_BZ12.Hander).Start();
+ new Thread(DataProcess_BZ12_FinishTask.Handler).Start();
-
+ new Thread(DataProcess_BZ21.Hander).Start();
+ new Thread(DataProcess_BZ21_FinishTask.Handler).Start();
new Thread(DeleteData).Start();
- new Thread(LineInSacnResult.HandlerLineInSacnResult).Start();
+ new Thread(PrintHandler.Handler).Start();
@@ -967,53 +976,6 @@
#endregion
- #region AGV
-
-
- /// <summary>
- /// 鑾峰彇AGV杞﹁締鍒楄〃
- /// </summary>
- public void GetAgvVehicles()
- {
- while (true)
- {
- try
- {
- if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_AutoQiTaoOutbound && SystemValue.isStartedModel)
- {
- AGVRetModel list = AgvRequestHelper.GetVehicles();
- AgvHandler.SaveAgvData(list);
-
- List<String> warningAddressList = new List<string>();
- if (list.alarms != null && list.alarms.errors != null && list.alarms.errors.Count > 0)
- {
- var waringList = list.alarms.errors;
- if (waringList != null && waringList.Count > 0)
- {
- for (int i = 0; i < waringList.Count; i++)
- {
- DeviceWarningHandler.SaveWarning(EDevice.AGV, iWareCommon.Utils.LogType.DataProcess_RobotBuffer_AutoQiTaoOutbound,
- waringList[i].code, waringList[i].code, waringList[i].desc);//鏂板鎶ヨ
- warningAddressList.Add(waringList[i].code);
- }
- }
- }
- DeviceWarningHandler.AutoCloseWarning(EDevice.AGV, iWareCommon.Utils.LogType.DataProcess_RobotBuffer_AutoQiTaoOutbound, warningAddressList);//鑷姩鍏抽棴鎶ヨ
- this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.Text = "鑾峰彇AGV杞﹁締淇℃伅鎴愬姛";
- }
- }
- catch (Exception ex)
- {
- Log4NetHelper.WriteErrorLog(iWareCommon.Utils.LogType.CCWCFService, "鑾峰彇AGV杞﹁締鍒楄〃 鍑虹幇寮傚父:" + ex.Message, ex);
- this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.Text = "鑾峰彇AGV杞﹁締淇℃伅寮傚父锛�" + ex.Message;
- }
- finally
- {
- Thread.Sleep(5000);//5绉掍竴娆�
- }
- }
- }
- #endregion
#region 鍏朵粬绾跨▼
@@ -1587,6 +1549,8 @@
DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_RobotBuffer_ModeChange, ck_DataProcess_RobotBuffer_ModeChange);
+ DoCommonCheckedChanged(ref SystemValue.isAllowRuning_PrintHandler, ck_PrintHandler);
+
DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_RobotBuffer_FinishTaskForOutbound, checkBox_DataProcess_RobotBuffer_FinishTaskForOutbound);
@@ -1594,15 +1558,13 @@
DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_RobotBuffer_AutoQiTaoOutbound, ckDataProcess_RobotBuffer_AutoQiTaoOutbound);
- DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_RobotBuffer_IssueOutboundTask, ckEmptySalverTransfer);
-
DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_BZ39, ck_DataProcess_BZ39);
DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_BZ01, ck_AutoIssueInStoreTask);
DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_269, ck_DataProcess_269);
- DoCommonCheckedChanged(ref SystemValue.isAllowRuning_Place1014To1020Task, ck_DataProcess_RobotBuffer_IssueOutboundTask);
+ DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_RobotBuffer_IssueOutboundTask, ck_DataProcess_RobotBuffer_IssueOutboundTask);
DoCommonCheckedChanged(ref SystemValue.isAllowRuning_OutTaskRetryToMes, checkBox_OutTaskRetryToMes);
}
@@ -1879,6 +1841,9 @@
this.btn_Start.BackColor = default_btn_Start_Color;//杩樺師棰滆壊
}
}
+
+ this.lbl_RobotMode.Text = "缂撳瓨宀涙満鍣ㄤ汉妯″紡:" + (IsAllowRunOutMode ? "鍑哄簱妯″紡" : "鍏ュ簱妯″紡");
+ this.lbl_currHandlerPackageCodeForIssueOutboundTask.Text = "褰撳墠涓嬪彂鍑哄簱浠诲姟鐨勫寘鍙�:" + currHandlerPackageCodeForIssueOutboundTask;
}
}
@@ -3583,5 +3548,22 @@
{
}
+
+ private void button24_Click(object sender, EventArgs e)
+ {
+ //寮哄埗璇ュ寘鍙峰嚭搴�
+ var packageCode = this.tb_PackageCode.Text.Trim();
+
+ var alertMsg = "";
+ DataProcess_RobotBuffer_ForceOutbound.Handler(packageCode, ref alertMsg);
+ if (!string.IsNullOrEmpty(alertMsg))
+ {
+ MessageBox.Show("閿欒:" + alertMsg);
+ }
+ else
+ {
+ MessageBox.Show("宸插鐞�");
+ }
+ }
}
}
--
Gitblit v1.9.3