YL
2021-11-26 bcf43dd62760da49533a654ee76609238f9933f9
WorkM/Éú²ú¹ÜÀí/Sc_ICMOReportBill.cs
@@ -64,6 +64,8 @@
        public const string ModRightNameMoney= ModRightName + "_Money";
        public const string ModRightNameQty = ModRightName + "_Qty";
        public bool BillChange;                                 //单据修改状态
        public string ERPMode = ""; //ERP模式(WISE、CLOUD)
        public string UpdateSourceInterID = ""; //客户定制化名称扫码生成生产汇报单时是否回填对应条码档案条码源单信息(Y为回填)
        //
        public DBUtility.ClsPub.Enum_BillStatus BillStatus;     //单据状态(新增,修改,浏览,更新单价,变更)
        public Int64 KeyID;                                     //单据主内码
@@ -157,13 +159,16 @@
            //
            if (MessageBox.Show("确定要删除当前单据?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                if (BillOld.DeleteBill(BillOld.omodel.HInterID, ref ClsPub.sExeReturnInfo) != true)
                if (!BillOld.DeleteBillandWMS(BillOld.omodel.HInterID, BillOld.omodel.HBillNo, ERPMode, UpdateSourceInterID, ref DBUtility.ClsPub.sExeReturnInfo))
                {
                    BillChange = true;
                    MessageBox.Show("删除失败,原因:" + ClsPub.sExeReturnInfo, "提示");
                    MessageBox.Show(DBUtility.ClsPub.sExeReturnInfo, "提示");     //失败
                    return;
                }
                MessageBox.Show("删除成功", "提示");
                else
                {
                    MessageBox.Show(DBUtility.ClsPub.sExeReturnInfo, "提示");     //成功
                }
                BillOld = new DAL.ClsSc_ICMOReportBill();
                this.Sub_Next();  //显示下一张单据
                if (BillOld.omodel.HInterID == 0)//若找不到下一张,则显示上一张
@@ -267,6 +272,19 @@
            oSumGrid.oGridsum = grdSum;
            this.Text = ModCaption;     //命名窗体标题
            this.lblCaption.Text = ModCaption;//命名单据标题
            //获取系统参数
            ClsXt_SystemParameter oSystemParameter = new ClsXt_SystemParameter();
            if (oSystemParameter.ShowBill(ref DBUtility.ClsPub.sExeReturnInfo) == false)
            {
                MessageBox.Show("获取系统参数失败!原因:" + DBUtility.ClsPub.sExeReturnInfo, "提示");
                return;
            }
            else
            {
                ERPMode = oSystemParameter.omodel.WMS_WMSStockCtl_ERPMode;
                UpdateSourceInterID = oSystemParameter.omodel.Sc_ICMOReportBill_UpdateSourceInterID;
            }
        }
        //首å¼