From a022ac509f831606e774993a39ab60740e5a60ac Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 04 六月 2025 14:58:24 +0800 Subject: [PATCH] 称重 --- DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs new file mode 100644 index 0000000..1f4ef45 --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs @@ -0,0 +1,43 @@ +锘縰sing DevExpress.XtraEditors; +using Gs.DevApp.ToolBox; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Gs.DevApp.DevFrm +{ + public partial class Frm_XunJianDetect01Show : DevExpress.XtraEditors.XtraForm + { + public Frm_XunJianDetect01Show() + { + InitializeComponent(); + btnSave.Click += (s, e) => + { + if (txt_fBegDate.Text.Length <= 0) + { + Gs.DevApp.ToolBox.MsgHelper.ShowInformation("鏃ユ湡涓嶈兘涓虹┖锛�"); + txt_fBegDate.Focus(); + return; + } + string str = txt_fBegDate.Text.Trim(); + UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = str }); + Close(); + }; + btnCancel.Click += (s, e) => + { + this.Close(); + }; + } + + /// <summary> + /// 閫夋嫨鍚庣殑鍥炶皟浜嬩欢 + /// </summary> + public event EventHandler<UpdateParentEventArgs> UpdateParent; + } +} \ No newline at end of file -- Gitblit v1.9.3