From ccc1b0d541d8f3bdd2bcb72dd0b5533e68b886d5 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 09 六月 2025 09:53:37 +0800 Subject: [PATCH] 采购明细报表 --- DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs index 70f8b1c..f7499da 100644 --- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs +++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs @@ -12,10 +12,18 @@ { string _webServiceName = "MesQaItemsDetect01Manager/"; private string dt01Guid = ""; - public Frm_MesQaItemsDetect01Input(string _dt01Guid) + bool isEdit = false; + + /// <summary> + /// + /// </summary> + /// <param name="_dt01Guid">MES_QA_ITEMS_DETECT_01琛℅Uidance</param> + /// <param name="_blEdit">鏄惁鍙紪杈�</param> + public Frm_MesQaItemsDetect01Input(string _dt01Guid, bool _blEdit) { InitializeComponent(); this.dt01Guid = _dt01Guid; + this.isEdit = _blEdit; Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); getModel(); gvMx1.CellValueChanged += GvMx1_CellValueChanged; @@ -57,6 +65,8 @@ { e.Appearance.BackColor = Color.LightGray; } + + e.Column.OptionsColumn.ReadOnly = !isEdit; } private void GvMx1_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) @@ -95,9 +105,10 @@ string _outMsg = _rtn.rtnData.outMsg; string _outSum = _rtn.rtnData.outSum; if (string.IsNullOrEmpty(_outSum)) _outSum = "-1"; - if (int.Parse(_outSum) < 0) { + if (int.Parse(_outSum) < 0) + { Gs.DevApp.ToolBox.MsgHelper.ShowError(_outMsg); - gvMx1.SetRowCellValue(rowHandle, dtCol,""); + gvMx1.SetRowCellValue(rowHandle, dtCol, ""); } if (_strYbNo == "鏍锋湰鏁�") getModel(); @@ -121,6 +132,7 @@ bool _bl = ckCol(view.FocusedColumn.FieldName, _maxYbs); if (!_bl) e.Cancel = true; + } private void getModel() -- Gitblit v1.9.3