/// <summary> /// 将部门设置成假删除状态 /// </summary> /// <param name="depId"></param> /// <returns></returns> public bool SetDepDeleteState(int depId) { CODep dep = this.GetDepById(depId, false); dep.DepState = COEnum.DepStateEnum.Delete; this._BaseCODepRep.Update(dep); this.InitDepUsers(depId, new List <CODepUserRelate>()); return(true); }
public CODep GetDepById(int depId, bool isLoadUserInfo) { CODep dep = this._BaseCODepRep.Get(depId); if (isLoadUserInfo) { dep.UserCol = this._BaseCODepRep.GetUserInDep(depId); } return(dep); }