雅琪诺MES智能条码管理系统
zgq
2021-04-16 49f8ed7a0c14f99f78367cf004188c63d8648490
SCM/µ¥¾Ý×ÊÁÏ/Sc_ICMOReportToBarCode.cs
@@ -570,7 +570,38 @@
                    cmdHSaveBill.Enabled = true;
                    return false;
                }
                //
                //销售裁切保存判断损耗数量
                if (HSourceBillType == "生产订单")
                {
                    //当实际米数大于130米则报错不允许保存
                    if (ClsPub.isDoule(txtHSJQty.Text) > 130)
                    {
                        MessageBox.Show("实际米数不能大于130米!");
                        cmdHSaveBill.Enabled = true;
                        return false;
                    }
                    //当实际米数-订单米数大于3米时,则报错不允许保存
                    if (ClsPub.isDoule(txtHSJQty.Text) - ClsPub.isDoule(txtHSYQty.Text) > 3)
                    {
                        MessageBox.Show("实际米数大于订单米数3米以上!");
                        cmdHSaveBill.Enabled = true;
                        return false;
                    }
                    //当实际米数-订单米数大于0.15时,提示损耗过大,是否继续保存
                    if (ClsPub.isDoule(txtHSJQty.Text) - ClsPub.isDoule(txtHSYQty.Text) > 0.15)
                    {
                        if (MessageBox.Show("损耗过大,大于0.15米,是否继续保存?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
                        {
                        }
                        else
                        {
                            cmdHSaveBill.Enabled = true;
                            return false;
                        }
                    }
                }
                //获取数量; é”€å”®è£åˆ‡æ•°é‡ä¸ºè®¢å•数量即源单数量;  
                if (HSourceBillType == "生产订单") //销售裁切
                {