cnf
2025-09-01 8c7ac11905cc442d9cf8920de01dc5ef29179987
DevApp/Gs.DevApp/DevFrm/Ck/UcBlcl.cs
@@ -91,6 +91,16 @@
                    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) =>
                {
@@ -310,6 +320,8 @@
            gridViews.Add(gvMx1);
            UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true, gridViews);
            Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1);
            //增加时,默认组织
            string deftOrg = UtilityHelper.GetFirstOrg(txt_orgId);
        }
        /// <summary>
@@ -371,22 +383,25 @@
                        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