//private void btnCancelFreeShip_Click(object sender, System.EventArgs e) //{ // throw new System.NotImplementedException(); //} private void btnDelete_Click(object sender, System.EventArgs e) { string str = base.Request.Form["CheckBoxGroup"]; if (string.IsNullOrEmpty(str)) { this.ShowMsg("请先选择要删除的商品", false); } else { //得到当前登录用户所在区域 ManagerInfo currentManager = ManagerHelper.GetCurrentManager();//当前登录用户信息 string[] strIds = str.Split(','); str = string.Empty; for (int i = 0; i < strIds.Length; i++) { if (i == strIds.Length - 1) { str += "'" + strIds[i] + "'"; } else { str += "'" + strIds[i] + "',"; } } if (ManagerHelper.DeleteAgentProduct(str, currentManager.UserId)) { this.ShowMsg("成功删除了选择的商品", true); this.BindProducts(); } else { this.ShowMsg("删除商品失败,未知错误", false); } } }