Beispiel #1
0
        private void btDel_Click(object sender, System.EventArgs e)
        {
            CMSMStruct.MaterialSStruct mssold = (CMSMStruct.MaterialSStruct)Session["mssold"];
            if (mssold.strBatchNo == "" || mssold.strMaterialCode == "")
            {
                this.SetErrorMsgPageBydir("获取原材料批次和编号错误!");
                return;
            }

            if (!ms1.CancelMaterial(mssold))
            {
                this.SetErrorMsgPageBydir("原材料作废失败,请重试!");
                return;
            }
            else
            {
                this.SetSuccMsgPageBydir("原材料作废成功!", "");
                return;
            }
        }