/// <summary> /// 删除操作 /// </summary> /// <param name="id">删除ID</param> /// <returns></returns> private string DeleteData(string id) { //返回信息 string msg = string.Empty; //实例化业务层 BIndividual bllBIndividual = new BIndividual(); string[] workPlanIds = { "" }; //判断删除是批量还是单个删除 if (id.Contains(',')) { workPlanIds = id.Split(','); } else { workPlanIds[0] = id; } //删除操作 if (bllBIndividual.DelWorkPlan(workPlanIds)) { msg = UtilsCommons.AjaxReturnJson("true", "删除成功"); } else { msg = UtilsCommons.AjaxReturnJson("false", "删除失败"); } //删除操作 return(msg); }