Exemple #1
0
        /// <summary>
        /// 初始化属性
        /// </summary>
        /// <param name="row"></param>
        public override void InitProperties(DataRow row)
        {
            base.InitProperties(row);

            this.rank        = ConvertDeptRankCode(Common.GetDataRowTextValue(row, "RANK_CODE"));
            this.customsCode = Common.GetDataRowTextValue(row, "CUSTOMS_CODE");

            this.departmentType  = ConvertDepartmentType(Common.GetDataRowValue(row, "ORG_TYPE", 0));
            ObjectType           = SchemaType.Organizations;
            this.departmentClass = ConvertDepartmentClass(Common.GetDataRowValue(row, "ORG_CLASS", 0));
        }
Exemple #2
0
        /// <summary>
        /// 初始化属性
        /// </summary>
        /// <param name="row"></param>
        public override void InitProperties(DataRow row)
        {
            base.InitProperties(row);

            this.logOnName  = Common.GetDataRowTextValue(row, "LOGON_NAME");
            this.email      = Common.GetDataRowTextValue(row, "E_MAIL");
            this.occupation = Common.GetDataRowTextValue(row, "RANK_NAME");

            this.rank = Common.ConvertUserRankCode(Common.GetDataRowTextValue(row, "RANK_CODE"));

            ObjectType      = SchemaType.Users;
            this.attributes = Common.ConvertUserAttribute(Common.GetDataRowValue(row, "ATTRIBUTES", 0));

            this.isSideline = Common.GetDataRowValue(row, "SIDELINE", 0) == 1;
        }