From fa43bc9d26c7b9ec2b07e2d3e1a7f07abe68da5b Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 15 五月 2025 14:46:59 +0800 Subject: [PATCH] 导入 --- DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs b/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs index 3ffbf41..237b7be 100644 --- a/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs +++ b/DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs @@ -40,13 +40,17 @@ 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; } + //鏂拌鍒濆鍊� this.gvMx1.InitNewRow += (s, e) => { this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue); @@ -248,6 +252,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)) { @@ -439,7 +450,10 @@ MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } - + /// <summary> + /// 璇诲彇瀹炰綋 + /// </summary> + /// <param name="strGuid"></param> private void getModel(string strGuid) { bool isEdit = false; @@ -639,8 +653,6 @@ { MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } - - } /// <summary> /// 璇诲彇妫�楠屽伐鍏� @@ -748,6 +760,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