/// <summary> /// 删除员工部门 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DeleteDepartment(long id) { sys_resource_department_dal dptDal = new sys_resource_department_dal(); var dpt = dptDal.FindById(id); if (dpt == null) { return(false); } dptDal.Delete(dpt); return(true); }
public bool DeleteResource(long id, long userId) { sys_resource_department_dal srdDal = new sys_resource_department_dal(); var oldResDep = srdDal.FindById(id); if (oldResDep == null) { return(true); } srdDal.Delete(oldResDep); OperLogBLL.OperLogDelete <sys_resource_department>(oldResDep, oldResDep.id, userId, OPER_LOG_OBJ_CATE.SYS_RESOURCE_DEPARTMENT, ""); return(true); }