From ce701f953bd952bf8303ccb93520a8a3af33860e Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期四, 21 八月 2025 13:45:42 +0800 Subject: [PATCH] iqc称重 --- DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs index e5fee83..a28607c 100644 --- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs +++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs @@ -26,10 +26,20 @@ /// <summary> /// 瀹氭椂鍒锋柊 /// </summary> - System.Timers.Timer timer = new System.Timers.Timer(1000); + System.Timers.Timer timer; + public Frm_MesQaItemsDetect01() { InitializeComponent(); + + #region 璁剧疆鏃堕棿 + int int32 = 3000; + string _vanishingSeconds = ConfigurationManager.AppSettings["IqcGetWeight"]; + if (!string.IsNullOrEmpty(_vanishingSeconds)) + int32 = int.Parse(_vanishingSeconds); + timer = new System.Timers.Timer(int32); + #endregion + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; @@ -93,7 +103,7 @@ } catch (Exception ex) { - + LoggerHelper.WriteInfoLog("WorkWeight/GetIqcWeight:" + ex.Message); } }; timer.AutoReset = true; // 璁剧疆涓簍rue琛ㄧず閲嶅鎵ц锛宖alse琛ㄧず鎵ц涓�娆″悗鍋滄 @@ -168,7 +178,7 @@ }; try { - var strReturn = UtilityHelper.HttpPost("", "WorkWeight/EditIqc", JsonConvert.SerializeObject(_obj), false); + var strReturn = UtilityHelper.HttpPost("", "WorkWeight/EditIqcWeight", JsonConvert.SerializeObject(_obj), false); var dd = UtilityHelper.ReturnToDynamic(strReturn); if (dd.rtnCode <= 0) { -- Gitblit v1.9.3