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; SalesHelper.DelPurchaseRefundApply(str.Split(new char[] { ',' }), out num); this.BindRefund(); string msg = string.Format("成功删除了{0}个退款申请单", num); if (str.Split(new char[] { ',' }).Length != num) { msg = msg + ",待处理退款申请单不能删除"; } this.ShowMsg(msg, true); } }
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; } int num; SalesHelper.DelPurchaseRefundApply(text.Split(new char[] { ',' }), out num); this.BindRefund(); string text2 = string.Format("成功删除了{0}个退款申请单", num); if (text.Split(new char[] { ',' }).Length != num) { text2 += ",待处理退款申请单不能删除"; } this.ShowMsg(text2, true); }