| | |
| | | return; |
| | | } |
| | | var frm = new UcBlclSelect(txt_aboutGuid.GetId(), this.txt_orgId.GetId()); |
| | | |
| | | if (txt_bl017.Text.Trim() == "生产补料") |
| | | { |
| | | frm = new UcBlclSelect(txt_aboutGuid.GetId(), this.txt_orgId.GetId(), txt_bl017.Text.Trim()); |
| | | } |
| | | else |
| | | { |
| | | frm = new UcBlclSelect(txt_aboutGuid.GetId(), this.txt_orgId.GetId()); |
| | | |
| | | } |
| | | //赋值给明细表 |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | |
| | | gridViews.Add(gvMx1); |
| | | UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true, gridViews); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); |
| | | //增加时,默认组织 |
| | | string deftOrg = UtilityHelper.GetFirstOrg(txt_orgId); |
| | | |
| | | } |
| | | /// <summary> |
| | |
| | | return; |
| | | } |
| | | |
| | | if (decimal.TryParse(row["bld007"].ToString(), out decimal msl) && |
| | | decimal.TryParse(row["kbsl"].ToString(), out decimal kbsl)) |
| | | if (txt_bl017.Text.Trim()=="生产补料") |
| | | { |
| | | if (msl > kbsl) |
| | | if (decimal.TryParse(row["bld007"].ToString(), out decimal msl) && |
| | | decimal.TryParse(row["kbsl"].ToString(), out decimal kbsl)) |
| | | { |
| | | if (msl > kbsl) |
| | | { |
| | | MsgHelper.ShowError("" + |
| | | "申请数量不能大于可补数量!"); |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | // 解析失败的处理 |
| | | MsgHelper.ShowError("" + |
| | | "申请数量不能大于可补数量!"); |
| | | "输入的不是有效数字!"); |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | // 解析失败的处理 |
| | | MsgHelper.ShowError("" + |
| | | "输入的不是有效数字!"); |
| | | return; |
| | | } |
| | | |
| | | _obj.list.Add(new |