From f73b812e0d7bc051191151f2625ce02a22ee3c3a Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 13 二月 2025 14:52:09 +0800 Subject: [PATCH] 细节 --- DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs | 64 ++++++++++++++++++++++--------- 1 files changed, 45 insertions(+), 19 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs index 96275cb..9ad47bc 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs @@ -9,7 +9,6 @@ using System.Data; using System.Threading.Tasks; using System.Windows.Forms; - namespace Gs.DevApp.DevFrm { public partial class Frm_MesItemQtrk : DevExpress.XtraEditors.XtraForm @@ -281,34 +280,61 @@ private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) { toolBarMenu1.isSetBtn = false; - string inGys = txt_qt018.GetId(); - string inCjId = txt_qt008.GetId(); - if (string.IsNullOrEmpty(inGys)) + string kcZz = txt_qt022.GetId();//搴撳瓨缁勭粐 + string kcBm = txt_qt009.GetId();//搴撳瓨閮ㄩ棬 + string kcGys = txt_qt018.GetId();//搴撳瓨渚涘簲鍟� + string djLx = txt_qt003.Text.Trim();//鍗曟嵁绫诲瀷 + string kcfx = txt_qt019.Text.Trim();//搴撳瓨鏂瑰悜 + string inHzlx = ucLookHuoZhu1.GetHzLx();//璐т富绫诲瀷 + string inHz = ucLookHuoZhu1.GetHzId();//璐т富 + string inRkyy = txt_qt010.Text.Trim();//鍏ュ簱鍘熷洜 + string kcCk = txt_qt008.GetId();//浠撳簱 + if (string.IsNullOrEmpty(kcZz)) { - Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨渚涘簲鍟嗭紒"); - txt_qt018.Focus(); + Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨搴撳瓨缁勭粐锛�"); + txt_qt022.Focus(); return; } - if (string.IsNullOrEmpty(inCjId)) + if (string.IsNullOrEmpty(inHzlx)) { - Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨浠撳簱锛�"); + Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨璐т富绫诲瀷锛�"); + return; + } + if (string.IsNullOrEmpty(inHz)) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨璐т富锛�"); + return; + } + if (txt_qt003.SelectedIndex < 0) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨鍗曟嵁绫诲瀷锛�"); + txt_qt003.Focus(); + return; + } + if (txt_qt019.SelectedIndex <= 0) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨搴撳瓨鏂瑰悜锛�"); + txt_qt019.Focus(); + return; + } + if (string.IsNullOrEmpty(kcCk)) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨鍙戞枡浠撳簱锛�"); txt_qt008.Focus(); return; } var _obj = new { guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 - kcZz = txt_qt022.GetId(),//搴撳瓨缁勭粐 - kcBm = txt_qt009.GetId(),//搴撳瓨閮ㄩ棬 - kcGys = txt_qt018.GetId(),//搴撳瓨渚涘簲鍟� - kcCk = txt_qt008.GetId(),//搴撳瓨渚涘簲鍟� - inRkyy = txt_qt010.Text.Trim(),//鍏ュ簱鍘熷洜 - djLx = txt_qt003.Text.Trim(),//鍗曟嵁绫诲瀷 - kcfx = txt_qt019.Text.Trim(),//搴撳瓨鏂瑰悜 - hzlx = txt_qt023.Text.Trim(),//璐т富绫诲瀷 - hzzz = txt_qt024.GetId(),//璐т富缁勭粐 - hzkh = txt_qt025.GetId(),//璐т富瀹㈡埛 - hzbm = txt_qt026.GetId(),//璐т富閮ㄩ棬 + kcZz = kcZz,//搴撳瓨缁勭粐 + kcBm = kcBm,//搴撳瓨閮ㄩ棬 + kcGys = kcGys,//搴撳瓨渚涘簲鍟� + kcCk = kcCk,//搴撳瓨浠撳簱 + inRkyy = inRkyy,//鍏ュ簱鍘熷洜 + djLx = djLx,//鍗曟嵁绫诲瀷 + kcfx = kcfx,//搴撳瓨鏂瑰悜 + hzlx = inHzlx,//璐т富绫诲瀷 + inHz = inHz,//璐т富 list = new List<dynamic>(), }; gvMx1.CloseEditor(); -- Gitblit v1.9.3