Example #1
0
        protected 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;
            }
            text = "'" + text.Replace(",", "','") + "'";
            int num = SubsiteSalesHelper.DeleteOrders(text);

            this.BindOrders();
            this.ShowMsg(string.Format("成功删除了{0}个订单", num), true);
        }
Example #2
0
        protected void lkbtnDeleteCheck_Click(object sender, EventArgs e)
        {
            string str = "";

            if (!string.IsNullOrEmpty(base.Request["CheckBoxGroup"]))
            {
                str = base.Request["CheckBoxGroup"];
            }
            if (str.Length <= 0)
            {
                ShowMsg("请选要删除的订单", false);
            }
            else
            {
                int num = SubsiteSalesHelper.DeleteOrders("'" + str.Replace(",", "','") + "'");
                BindOrders();
                ShowMsg(string.Format("成功删除了{0}个订单", num), true);
            }
        }