From eedfab0cc6288b09227ee6970c8071114dd831de Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期四, 11 九月 2025 18:52:55 +0800 Subject: [PATCH] 首检 --- DevApp/Gs.DevApp/DevFrm/Ck/UcBlcl.cs | 37 ++++++++++++++++++++++++++----------- 1 files changed, 26 insertions(+), 11 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/UcBlcl.cs b/DevApp/Gs.DevApp/DevFrm/Ck/UcBlcl.cs index 1564021..880d0a9 100644 --- a/DevApp/Gs.DevApp/DevFrm/Ck/UcBlcl.cs +++ b/DevApp/Gs.DevApp/DevFrm/Ck/UcBlcl.cs @@ -91,6 +91,16 @@ return; } var frm = new UcBlclSelect(txt_aboutGuid.GetId(), this.txt_orgId.GetId()); + + if (txt_bl017.Text.Trim() == "鐢熶骇琛ユ枡") + { + frm = new UcBlclSelect(txt_aboutGuid.GetId(), this.txt_orgId.GetId(), txt_bl017.Text.Trim()); + } + else + { + frm = new UcBlclSelect(txt_aboutGuid.GetId(), this.txt_orgId.GetId()); + + } //璧嬪�肩粰鏄庣粏琛� frm.UpdateParent += (ss, ee) => { @@ -310,6 +320,8 @@ gridViews.Add(gvMx1); UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true, gridViews); Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); + //澧炲姞鏃讹紝榛樿缁勭粐 + string deftOrg = UtilityHelper.GetFirstOrg(txt_orgId); } /// <summary> @@ -371,22 +383,25 @@ return; } - if (decimal.TryParse(row["bld007"].ToString(), out decimal msl) && - decimal.TryParse(row["kbsl"].ToString(), out decimal kbsl)) + if (txt_bl017.Text.Trim()=="鐢熶骇琛ユ枡") { - if (msl > kbsl) + if (decimal.TryParse(row["bld007"].ToString(), out decimal msl) && + decimal.TryParse(row["kbsl"].ToString(), out decimal kbsl)) { + if (msl > kbsl) + { + MsgHelper.ShowError("" + + "鐢宠鏁伴噺涓嶈兘澶т簬鍙ˉ鏁伴噺锛�"); + return; + } + } + else + { + // 瑙f瀽澶辫触鐨勫鐞� MsgHelper.ShowError("" + - "鐢宠鏁伴噺涓嶈兘澶т簬鍙ˉ鏁伴噺锛�"); + "杈撳叆鐨勪笉鏄湁鏁堟暟瀛楋紒"); return; } - } - else - { - // 瑙f瀽澶辫触鐨勫鐞� - MsgHelper.ShowError("" + - "杈撳叆鐨勪笉鏄湁鏁堟暟瀛楋紒"); - return; } _obj.list.Add(new -- Gitblit v1.9.3