From 06d6ba0da4d9036bf3eeab8a7cbef8df89565606 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周一, 16 12月 2024 17:19:05 +0800 Subject: [PATCH] BZ01 齐包优化 --- CC/iWareCC_ASRS/FormCC.cs | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/CC/iWareCC_ASRS/FormCC.cs b/CC/iWareCC_ASRS/FormCC.cs index bf2ba72..7d9b439 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> /// 鍏ㄥ眬-閰嶇疆鎶ヨ淇℃伅鍒楄〃 @@ -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