public ActionResult SaveForm(string keyValue, RoleEntity roleEntity) { roleBLL.SaveForm(keyValue, roleEntity); Erchtms e = new Erchtms(); e.ErchtmsSynchronoous("SaveRole", roleEntity, ""); return(Success("操作成功。")); }
public ActionResult SaveForm(string keyValue, DepartmentEntity departmentEntity) { departmentBLL.SaveForm(keyValue, departmentEntity); Erchtms e = new Erchtms(); e.ErchtmsSynchronoous("SaveDept", departmentEntity, ""); return(Success("操作成功。")); }
public ActionResult RemoveForm(string keyValue) { Erchtms e = new Erchtms(); RoleEntity roleEntity = roleBLL.GetEntity(keyValue); e.ErchtmsSynchronoous("DeleteRole", roleEntity, ""); roleBLL.RemoveForm(keyValue); return(Success("删除成功。")); }
public ActionResult RemoveForm(string keyValue) { if (keyValue == "System") { throw new Exception("当前账户不能删除"); } Erchtms e = new Erchtms(); UserEntity entity = userBLL.GetEntity(keyValue); e.ErchtmsSynchronoous("DeleteUser", entity, entity.Account); userBLL.RemoveForm(keyValue); return(Success("删除成功。")); }
public ActionResult RemoveForm(string keyValue) { Erchtms e = new Erchtms(); DepartmentEntity entity = departmentBLL.GetEntity(keyValue); e.ErchtmsSynchronoous("DeleteDept", entity, ""); if (departmentBLL.RemoveForm(keyValue)) { return(Success("删除成功。")); //删除成功 } else { return(Success("删除失败。")); } }