From 164f2cf0a8d85a2ebd2955f8f322d5f6bb4d3857 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周一, 23 12月 2024 09:23:58 +0800 Subject: [PATCH] 22 --- CC/iWareCC_ASRS/FormCC.cs | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) diff --git a/CC/iWareCC_ASRS/FormCC.cs b/CC/iWareCC_ASRS/FormCC.cs index bf2ba72..b6db60b 100644 --- a/CC/iWareCC_ASRS/FormCC.cs +++ b/CC/iWareCC_ASRS/FormCC.cs @@ -21,6 +21,7 @@ using System.Collections.Generic; using System.Data; using System.Data.Entity.Core.Metadata.Edm; +using System.Diagnostics; using System.Drawing; using System.Linq; using System.Linq.Expressions; @@ -37,6 +38,10 @@ { public partial class FormCC : Form { + /// <summary> + /// 鍏ㄥ眬-269浣嶇疆鏈�鏂版壂鎻忕殑鏉夸欢鏁版嵁锛堟牸寮� 鍖呭彿|Upi|鏃堕棿鐐癸級 + /// </summary> + public static string Globle_269_LastPackageUpi = ""; /// <summary> /// 鍏ㄥ眬-閰嶇疆鎶ヨ淇℃伅鍒楄〃 @@ -245,7 +250,7 @@ new Thread(PushPackageCodeToMes.Handler).Start(); new Thread(PushPaperCutToMes.Handler).Start(); - new Thread(DataProcess_ValidateQiTao.Handler).Start(); + //new Thread(DataProcess_ValidateQiTao.Handler).Start(); //*/ #endregion @@ -259,7 +264,7 @@ } private void FormCC_Load(object sender, EventArgs e) { - + /* @@ -614,15 +619,21 @@ { while (true) { - Thread.Sleep(2000);//1绉掗挓璇诲彇涓�娆� + Thread.Sleep(3000);//1绉掗挓璇诲彇涓�娆� try { if (stationServiceClient == null) { continue; } - /* + + Stopwatch main = new Stopwatch(); + main.Start(); + iWareCC.StationService.DeviceWarningInfo[] waringList = await stationServiceClient.GetWaringInfoListAsync((int)EDevice.Station, configDeviceWarningList.wmsConfigDeviceWarnings.ToArray()); + + main.Stop(); + var milliseconds = main.ElapsedMilliseconds; //-- 鎿嶄綔鏃堕棿锛堟绉掞級 //鏄剧ず鎶ヨ淇℃伅 List<String> warningCodeList = new List<string>(); @@ -1241,13 +1252,13 @@ - - - - + + + + -- Gitblit v1.9.3