From 7b439679bb037a218439e9eeebf9bb2ba44fab7a Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 27 五月 2025 10:42:09 +0800 Subject: [PATCH] 检验项目 --- DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs | 30 +++++++++++++++++++++++++++--- 1 files changed, 27 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs b/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs index 3ffbf41..204ac5b 100644 --- a/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs +++ b/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs @@ -40,13 +40,22 @@ toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; + toolBarMenu1.xlsInService = "XlsInItemJyxm&" + strType; + //绫诲瀷锛宨qc,ipqc宸℃锛宨pqc棣栨鏌�,fqc锛宨qc鐨勬牱鍝佸�奸粯璁や负5锛屽叾瀹冧负1 txt_ftype.Text = strType; if (strType == "iqc") dfValue = 5; + //濡傛灉鏄痠pqc宸℃锛屾樉绀哄伐浣� if (strType != "ipqc宸℃") { gvMx1.Columns["stationName"].Visible = false; } + //濡傛灉鏄痠pqc棣栨锛屾樉绀鸿璇� + if (strType != "ipqc棣栨") + { + gvMx1.Columns["isRzxx"].Visible = false; + } + //鏂拌鍒濆鍊� this.gvMx1.InitNewRow += (s, e) => { this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue); @@ -248,6 +257,13 @@ private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) { toolBarMenu1.isSetBtn = false; + string _orgId = txt_fSubsidiary.GetId(); + if (string.IsNullOrEmpty(_orgId)) + { + MsgHelper.Warning("璇烽�夋嫨浣跨敤缁勭粐锛�"); + txt_fSubsidiary.Focus(); + return; + } string _ItemId = txt_itemId.GetId(); if (string.IsNullOrEmpty(_ItemId)) { @@ -309,6 +325,7 @@ string _Fstand = row["Fstand"].ToString(); string _FupAllow = row["FupAllow"].ToString(); string _FdownAllow = row["FdownAllow"].ToString(); + bool _isRzxx = (row["isRzxx"].ToString() == "1" ? true : false); //鍋囧涓変釜閮戒负绌洪�氳繃 if (string.IsNullOrEmpty(_Fstand) && string.IsNullOrEmpty(_FupAllow) && string.IsNullOrEmpty(_FdownAllow)) { @@ -349,6 +366,7 @@ FdownAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FdownAllow"].ToString()), ypsl = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["ypsl"].ToString()), stationName = row["stationName"].ToString(), + isRzxx = _isRzxx, }); } } @@ -439,7 +457,10 @@ MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } - + /// <summary> + /// 璇诲彇瀹炰綋 + /// </summary> + /// <param name="strGuid"></param> private void getModel(string strGuid) { bool isEdit = false; @@ -639,8 +660,6 @@ { MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } - - } /// <summary> /// 璇诲彇妫�楠屽伐鍏� @@ -748,6 +767,11 @@ gvMx1.SetRowCellValue(dataIndex, "sampleSizeName", _txt); } } + /// <summary> + /// 绉诲嚭鏄庣粏 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { gvMx1.CloseEditor(); -- Gitblit v1.9.3