//单个删除与批量删除员工 protected void deleteworker() { string ids = Request["ids"]; //单个删除 if (ids == null) { int wid = Int32.Parse(Request["wid"]); if (workerService.Delete(wid)) { Response.Write(true); Response.End(); } else { Response.Write(false); Response.End(); } } else //批量删除 { if (workerService.DeleteList(ids)) { Response.Write(true); Response.End(); } else { Response.Write(false); Response.End(); } } }