예제 #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 (SubsiteSalesHelper.DelReturnsApply(text.Split(new char[]
            {
                ','
            }), out num))
            {
                text2 = string.Format(text2, num);
            }
            else
            {
                text2 = string.Format(text2, num) + ",待处理的申请不能删除";
            }
            this.BindReturns();
            this.ShowMsg(text2, true);
        }
        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;
                SubsiteSalesHelper.DelReturnsApply(str.Split(new char[] { ',' }), out num);
                this.BindRefundNote();
                this.ShowMsg(string.Format("成功删除了{0}个退货单", num), true);
            }
        }