bug
lu
2025-06-12 64a6c4193199d15d7ac5aa67a9677df01a37a50d
DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkTechnique.cs
@@ -241,6 +241,7 @@
            List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
            gvList.Add(gvMx1);
            UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false, gvList);
            this.btnCopy.Enabled = true;
        }
        /// <summary>
        /// 保存事件
@@ -266,6 +267,7 @@
                Gs.DevApp.ToolBox.MsgHelper.ShowInformation("生效日期不能为空!");
                txt_fBegDate.Focus(); return;
            }
            txt_fEndDate.DateTime= new DateTime(2099, 1, 1);
            if (txt_fEndDate.Text.Length > 0 && txt_fBegDate.DateTime > txt_fEndDate.DateTime)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowInformation("生效日期不能大于失效日期!");
@@ -292,6 +294,12 @@
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowInformation("请输入正确的重量下限!");
                txt_fMinWeight.Focus(); return;
            }
            //上限不能低于下限
            if (decimal.Parse(txt_fMaxWeight.Text.Trim()) < decimal.Parse(txt_fMinWeight.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowInformation("上限不能低于下限!");
                txt_fMaxWeight.Focus(); return;
            }
            var _obj = new
            {
@@ -364,6 +372,11 @@
            getModel(rowGuid);
        }
        /// <summary>
        /// 读取实体
        /// </summary>
        /// <param name="strGuid"></param>
        private void getModel(string strGuid)
        {
            bool isEdit = false;
@@ -391,6 +404,7 @@
                    List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
                    gvList.Add(gvMx1);
                    UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList);
                    this.btnCopy.Enabled = true;
                    JObject _job = JObject.Parse(strJson);
                    JArray array = new JArray();
                    foreach (var a in _job["rtnData"]["list"])