| | |
| | | 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 |
| | | { |
| | | guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |