Beispiel #1
0
        private void lkbtnDeleteCheck_Click(object sender, System.EventArgs e)
        {
            string text = "";

            if (!string.IsNullOrEmpty(base.Request["CheckBoxGroup"]))
            {
                text = base.Request["CheckBoxGroup"];
            }
            if (text.Length <= 0)
            {
                this.ShowMsg("请选要删除的换货申请单", false);
                return;
            }
            string text2 = "成功删除了{0}个换货申请单";
            int    num;

            if (SalesHelper.DelPurchaseReplaceApply(text.Split(new char[]
            {
                ','
            }), out num))
            {
                text2 = string.Format(text2, num);
            }
            else
            {
                text2 = string.Format(text2, num) + ",待处理的申请不能删除";
            }
            this.BindReplace();
            this.ShowMsg(text2, true);
        }
Beispiel #2
0
        private void lkbtnDeleteCheck_Click(object sender, EventArgs e)
        {
            string str = "";

            if (!string.IsNullOrEmpty(base.Request["CheckBoxGroup"]))
            {
                str = base.Request["CheckBoxGroup"];
            }
            if (str.Length <= 0)
            {
                this.ShowMsg("请选要删除的换货申请单", false);
            }
            else
            {
                int    num;
                string format = "成功删除了{0}个换货申请单";
                if (SalesHelper.DelPurchaseReplaceApply(str.Split(new char[] { ',' }), out num))
                {
                    format = string.Format(format, num);
                }
                else
                {
                    format = string.Format(format, num) + ",待处理的申请不能删除";
                }
                this.BindReplace();
                this.ShowMsg(format, true);
            }
        }