| | |
| | | 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> |
| | | /// 保存事件 |
| | |
| | | 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("生效日期不能大于失效日期!"); |
| | |
| | | { |
| | | 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 |
| | | { |
| | |
| | | getModel(rowGuid); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 读取实体 |
| | | /// </summary> |
| | | /// <param name="strGuid"></param> |
| | | private void getModel(string strGuid) |
| | | { |
| | | bool isEdit = false; |
| | |
| | | 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"]) |