protected void btnPrintOrder_Click(object sender, EventArgs e) { string str = ""; if (!string.IsNullOrEmpty(base.Request["CheckBoxGroup"])) { str = base.Request["CheckBoxGroup"]; } if (str.Length <= 0) { ShowMsg("请选要打印的订单", false); } else { string[] orderList = str.Split(new char[] { ',' }); int num = SalesHelper.CreatePrintTask(HiContext.Current.User.Username, DateTime.Now, false, orderList); if (num > 0) { Page.Response.Redirect(Globals.GetAdminAbsolutePath("/Sales/ChoosePrintOrders.aspx?TaskId=" + num)); } else { ShowMsg("创建批量打印快递单任务失败!", false); } } }