From 2e44301eda2efb4b61e6dc53d4fff668229f7321 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期三, 17 九月 2025 22:05:27 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs b/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs index 5679160..9259423 100644 --- a/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs +++ b/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs @@ -43,12 +43,13 @@ /// <param name="_fGx">宸ュ簭</param> /// <param name="_fBc">鐝</param> /// <param name="_strinOther">鐩墠涓虹數妫�璺緞</param> - public Frm_Work01(string _fGx, string _fBc, string _strinOther) + /// <param name="chkWater">鏄惁姘存</param> + public Frm_Work01(string _fGx, string _fBc, string _strinOther, int chkWater = 0) { InitializeComponent(); try { - string _vanishingSeconds = ConfigurationManager.AppSettings["IsWater"]; + string _vanishingSeconds = chkWater.ToString(); if (!string.IsNullOrEmpty(_vanishingSeconds)) isWater = _vanishingSeconds; } @@ -107,7 +108,15 @@ }; btnBad.Click += (s, e) => { - string _collectGuid =""; + int idx = tabMx.SelectedTabPageIndex; + if (idx > 0) + { + Toast vm = new Toast(-1, "~宸插府浣犲垏鎹㈠埌銆愯壇鍝佹槑缁嗐��,璇烽噸鏂版搷浣渵"); + vm.Show(); + tabMx.SelectedTabPageIndex = 0; + return; + } + string _collectGuid = ""; string _collCode = ""; var dr = gvMx1.GetFocusedDataRow(); if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) @@ -421,25 +430,25 @@ { ziduan = "t007", wenben = "鎺ュ湴缁撴灉", - visibleIndex = -1, + visibleIndex = 1, }); _lst.Add(new { ziduan = "t009", wenben = "浜よ�愮粨鏋�", - visibleIndex = -1, + visibleIndex = 1, }); _lst.Add(new { ziduan = "t010", wenben = "娉勬紡缁撴灉", - visibleIndex = -1, + visibleIndex = 1, }); _lst.Add(new { ziduan = "t011", wenben = "鍔熺巼缁撴灉", - visibleIndex = -1, + visibleIndex = 1, }); } if (txt_gx.Text.Trim() == fGxShouJian) -- Gitblit v1.9.3