iqc
lu
2025-04-04 ab7a8593d324f8d6cb4a4a8d93628fa0a4882706
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs
@@ -12,10 +12,12 @@
    {
        string _webServiceName = "MesQaItemsDetect01Manager/";
        private string dt01Guid = "";
        public Frm_MesQaItemsDetect01Input(string _dt01Guid)
        bool isEdit = false;
        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 +59,8 @@
            {
                e.Appearance.BackColor = Color.LightGray;
            }
            e.Column.OptionsColumn.ReadOnly = !isEdit;
        }
        private void GvMx1_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e)
@@ -95,7 +99,8 @@
                    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,"");
                    }
@@ -121,6 +126,7 @@
            bool _bl = ckCol(view.FocusedColumn.FieldName, _maxYbs);
            if (!_bl)
                e.Cancel = true;
        }
        private void getModel()