コード例 #1
0
ファイル: COOrgans.cs プロジェクト: vebin/qMISPlat
        /// <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);
        }
コード例 #2
0
ファイル: COOrgans.cs プロジェクト: vebin/qMISPlat
        public CODep GetDepById(int depId, bool isLoadUserInfo)
        {
            CODep dep = this._BaseCODepRep.Get(depId);

            if (isLoadUserInfo)
            {
                dep.UserCol = this._BaseCODepRep.GetUserInDep(depId);
            }
            return(dep);
        }