/// <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; }
/// <summary> /// 初始化属性 /// </summary> /// <param name="row"></param> public override void InitProperties(DataRow row) { base.InitProperties(row); this.accessLevel = Common.ConvertUserRankCode(Common.GetDataRowTextValue(row, "ACCESS_LEVEL")); }