/// <summary>
        /// 从数据行读取
        /// </summary>
        /// <param name="dataRow">数据行</param>
        public override void GetFromExpand(IDataRow dr)
        {
            if (dr.ContainsColumn(BaseOrganizeEntity.FieldWeightRatio))
            {
                StatisticalName     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldStatisticalName]);
                WeightRatio         = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldWeightRatio]);
                SendAir             = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldSendAir]);
                CalculateComeFee    = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldCalculateComeFee]);
                CalculateReceiveFee = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldCalculateReceiveFee]);

                BillBalanceSite        = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldBillBalanceSite]);
                LevelTwoTransferCenter = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldLevelTwoTransferCenter]);
                ProvinceSite           = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldProvinceSite]);
                BigArea = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldBigArea]);

                SendFee             = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeEntity.FieldSendFee]);
                LevelTwoTransferFee = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeEntity.FieldLevelTwoTransferFee]);
                BillSubsidy         = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeEntity.FieldBillSubsidy]);

                Master         = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldMaster]);
                MasterMobile   = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldMasterMobile]);
                MasterQQ       = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldMasterQQ]);
                Manager        = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldManager]);
                ManagerMobile  = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldManagerMobile]);
                ManagerQQ      = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldManagerQQ]);
                EmergencyCall  = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldEmergencyCall]);
                BusinessPhone  = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldBusinessPhone]);
                IsCheckBalance = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldIsCheckBalance]);
            }
        }
Example #2
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     if (dr.ContainsColumn(ZtoPrintHistoryEntity.FieldId))
     {
         Id = BaseBusinessLogic.ConvertToDecimal(dr[ZtoPrintHistoryEntity.FieldId]);
     }
     if (dr.ContainsColumn(ZtoPrintHistoryEntity.FieldReceiveCompany))
     {
         ReceiveCompany = BaseBusinessLogic.ConvertToString(dr[ZtoPrintHistoryEntity.FieldReceiveCompany]);
     }
     if (dr.ContainsColumn(ZtoPrintHistoryEntity.FieldReceiveMan))
     {
         ReceiveMan = BaseBusinessLogic.ConvertToString(dr[ZtoPrintHistoryEntity.FieldReceiveMan]);
     }
     if (dr.ContainsColumn(ZtoPrintHistoryEntity.FieldExpressType))
     {
         ExpressType = BaseBusinessLogic.ConvertToNullableDateTime(dr[ZtoPrintHistoryEntity.FieldExpressType]);
     }
     if (dr.ContainsColumn(ZtoPrintHistoryEntity.FieldCreateOn))
     {
         CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[ZtoPrintHistoryEntity.FieldCreateOn]);
     }
     if (dr.ContainsColumn(ZtoPrintHistoryEntity.FieldBillCode))
     {
         BillCode = BaseBusinessLogic.ConvertToString(dr[ZtoPrintHistoryEntity.FieldBillCode]);
     }
     return(this);
 }
Example #3
0
        /// <summary>
        /// 从数据行读取
        /// </summary>
        /// <param name="dr">数据行</param>
        protected override BaseEntity GetFrom(IDataRow dr)
        {
            Id = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldId]);
            // 2016-03-02 吉日嘎拉 防止程序出错,没有这个字段也可以正常运行
            if (dr.ContainsColumn(BaseUserLogOnEntity.FieldCompanyId))
            {
                CompanyId = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldCompanyId]);
            }
            ChangePasswordDate = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldChangePasswordDate]);
            UserPassword       = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldUserPassword]);
            Enabled            = BaseBusinessLogic.ConvertToInt(dr[BaseUserLogOnEntity.FieldEnabled]);
            OpenId             = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldOpenId]);
            OpenIdTimeout      = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldOpenIdTimeout]);
            Salt = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldSalt]);

            /*
             * CommunicationPassword = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldCommunicationPassword]);
             * SignedPassword = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldSignedPassword]);
             * PublicKey = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldPublicKey]);
             */
            AllowStartTime     = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldAllowStartTime]);
            AllowEndTime       = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldAllowEndTime]);
            SystemCode         = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldSystemCode]);
            LockStartDate      = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldLockStartDate]);
            LockEndDate        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldLockEndDate]);
            FirstVisit         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldFirstVisit]);
            PreviousVisit      = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldPreviousVisit]);
            LastVisit          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldLastVisit]);
            MultiUserLogin     = BaseBusinessLogic.ConvertToInt(dr[BaseUserLogOnEntity.FieldMultiUserLogin]);
            CheckIPAddress     = BaseBusinessLogic.ConvertToInt(dr[BaseUserLogOnEntity.FieldCheckIPAddress]);
            LogOnCount         = BaseBusinessLogic.ConvertToInt(dr[BaseUserLogOnEntity.FieldLogOnCount]);
            ShowCount          = BaseBusinessLogic.ConvertToInt(dr[BaseUserLogOnEntity.FieldShowCount]);
            PasswordErrorCount = BaseBusinessLogic.ConvertToInt(dr[BaseUserLogOnEntity.FieldPasswordErrorCount]);
            UserOnLine         = BaseBusinessLogic.ConvertToInt(dr[BaseUserLogOnEntity.FieldUserOnLine]);
            IPAddress          = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldIPAddress]);
            IPAddressName      = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldIPAddressName]);
            MACAddress         = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldMACAddress]);
            ComputerName       = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldComputerName]);
            Question           = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldQuestion]);
            AnswerQuestion     = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldAnswerQuestion]);
            PasswordStrength   = BaseBusinessLogic.ConvertToDecimal(dr[BaseUserLogOnEntity.FieldPasswordStrength]);
            NeedModifyPassword = BaseBusinessLogic.ConvertToInt(dr[BaseUserLogOnEntity.FieldNeedModifyPassword]);
            CreateOn           = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldCreateOn]);
            CreateUserId       = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldCreateUserId]);
            CreateBy           = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldCreateBy]);
            ModifiedOn         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserLogOnEntity.FieldModifiedOn]);
            ModifiedUserId     = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldModifiedUserId]);
            ModifiedBy         = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldModifiedBy]);
            // 获取扩展属性
            GetFromExpand(dr);
            return(this);
        }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldId]);
     // 2016-03-02 吉日嘎拉 防止程序出错,没有这个字段也可以正常运行
     if (dr.ContainsColumn(BaseUserLogOnEntity.FieldCompanyId))
     {
         CompanyId = BaseBusinessLogic.ConvertToString(dr[BaseUserLogOnEntity.FieldCompanyId]);
     }
     Mobile                 = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldMobile]);
     MobileValiated         = BaseBusinessLogic.ConvertToInt(dr[BaseUserContactEntity.FieldMobileValiated]);
     MobileVerificationDate = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserContactEntity.FieldMobileVerificationDate]);
     ShowMobile             = BaseBusinessLogic.ConvertToInt(dr[BaseUserContactEntity.FieldShowMobile]);
     Telephone              = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldTelephone]);
     Extension              = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldExtension]);
     ShortNumber            = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldShortNumber]);
     WW               = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldWW]);
     QQ               = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldQQ]);
     WeChat           = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldWeChat]);
     WeChatOpenId     = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldWeChatOpenId]);
     WeChatValiated   = BaseBusinessLogic.ConvertToInt(dr[BaseUserContactEntity.FieldWeChatValiated]);
     YiXin            = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldYiXin]);
     YiXinValiated    = BaseBusinessLogic.ConvertToInt(dr[BaseUserContactEntity.FieldYiXinValiated]);
     Email            = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldEmail]);
     EmailValiated    = BaseBusinessLogic.ConvertToInt(dr[BaseUserContactEntity.FieldEmailValiated]);
     CompanyMail      = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldCompanyMail]);
     EmergencyContact = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldEmergencyContact]);
     YY               = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldYY]);
     CreateOn         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserContactEntity.FieldCreateOn]);
     CreateUserId     = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldCreateUserId]);
     CreateBy         = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldCreateBy]);
     ModifiedOn       = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserContactEntity.FieldModifiedOn]);
     ModifiedUserId   = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldModifiedUserId]);
     ModifiedBy       = BaseBusinessLogic.ConvertToString(dr[BaseUserContactEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Example #5
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                  = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowStepEntity.FieldId]);
     ProcessId           = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowStepEntity.FieldProcessId]);
     Code                = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldCode]);
     FullName            = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldFullName]);
     AuditDepartmentId   = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldAuditDepartmentId]);
     AuditDepartmentName = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldAuditDepartmentName]);
     AuditUserId         = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldAuditUserId]);
     AuditUserCode       = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldAuditUserCode]);
     AuditUserRealName   = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldAuditUserRealName]);
     AuditRoleId         = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldAuditRoleId]);
     AuditRoleRealName   = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldAuditRoleRealName]);
     if (dr.ContainsColumn(BaseWorkFlowStepEntity.FieldActivityId))
     {
         ActivityId = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowStepEntity.FieldActivityId]);
     }
     else
     {
         ActivityId = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowStepEntity.FieldId]);
     }
     ActivityType       = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldActivityType]);
     AllowPrint         = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowStepEntity.FieldAllowPrint]);
     AllowEditDocuments = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowStepEntity.FieldAllowEditDocuments]);
     SortCode           = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowStepEntity.FieldSortCode]);
     Enabled            = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowStepEntity.FieldEnabled]);
     DeletionStateCode  = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowStepEntity.FieldDeletionStateCode]);
     Description        = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldDescription]);
     CreateOn           = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowStepEntity.FieldCreateOn]);
     CreateUserId       = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldCreateUserId]);
     CreateBy           = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldCreateBy]);
     ModifiedOn         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowStepEntity.FieldModifiedOn]);
     ModifiedUserId     = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldModifiedUserId]);
     ModifiedBy         = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowStepEntity.FieldModifiedBy]);
     return(this);
 }
Example #6
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id             = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldId]);
     UserFrom       = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldUserFrom]);
     Code           = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldCode]);
     UserName       = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldUserName]);
     NickName       = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldNickName]);
     RealName       = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldRealName]);
     QuickQuery     = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldQuickQuery]);
     SimpleSpelling = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldSimpleSpelling]);
     SecurityLevel  = BaseBusinessLogic.ConvertToInt(dr[BaseUserEntity.FieldSecurityLevel]);
     WorkCategory   = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldWorkCategory]);
     CompanyId      = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldCompanyId]);
     // 2015-12-29 吉日嘎拉 防止程序出错,没有这个字段也可以正常运行
     if (dr.ContainsColumn(BaseUserEntity.FieldCompanyCode))
     {
         CompanyCode = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldCompanyCode]);
     }
     CompanyName       = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldCompanyName]);
     SubCompanyId      = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldSubCompanyId]);
     SubCompanyName    = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldSubCompanyName]);
     DepartmentId      = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldDepartmentId]);
     DepartmentName    = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldDepartmentName]);
     SubDepartmentId   = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldSubDepartmentId]);
     SubDepartmentName = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldSubDepartmentName]);
     WorkgroupId       = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldWorkgroupId]);
     WorkgroupName     = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldWorkgroupName]);
     IDCard            = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldIDCard]);
     Gender            = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldGender]);
     Birthday          = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldBirthday]);
     Duty               = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldDuty]);
     Title              = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldTitle]);
     Province           = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldProvince]);
     City               = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldCity]);
     District           = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldDistrict]);
     HomeAddress        = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldHomeAddress]);
     Score              = BaseBusinessLogic.ConvertToInt(dr[BaseUserEntity.FieldScore]);
     IsAdministrator    = BaseBusinessLogic.ConvertToBoolean(dr[BaseUserEntity.FieldIsAdministrator]);
     Lang               = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldLang]);
     Theme              = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldTheme]);
     Signature          = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldSignature]);
     IsStaff            = BaseBusinessLogic.ConvertToInt(dr[BaseUserEntity.FieldIsStaff]);
     IsCheckBalance     = BaseBusinessLogic.ConvertToInt(dr[BaseUserEntity.FieldIsCheckBalance]);
     AuditStatus        = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldAuditStatus]);
     ManagerId          = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldManagerId]);
     ManagerAuditStatus = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldManagerAuditStatus]);
     ManagerAuditDate   = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserEntity.FieldManagerAuditDate]);
     IsVisible          = BaseBusinessLogic.ConvertToInt(dr[BaseUserEntity.FieldIsVisible]);
     DeletionStateCode  = BaseBusinessLogic.ConvertToInt(dr[BaseUserEntity.FieldDeletionStateCode]);
     Enabled            = BaseBusinessLogic.ConvertToInt(dr[BaseUserEntity.FieldEnabled]);
     SortCode           = BaseBusinessLogic.ConvertToInt(dr[BaseUserEntity.FieldSortCode]);
     Description        = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldDescription]);
     CreateOn           = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserEntity.FieldCreateOn]);
     CreateUserId       = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldCreateUserId]);
     CreateBy           = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldCreateBy]);
     ModifiedOn         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserEntity.FieldModifiedOn]);
     ModifiedUserId     = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldModifiedUserId]);
     ModifiedBy         = BaseBusinessLogic.ConvertToString(dr[BaseUserEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldUserId))
     {
         UserId = BaseUtil.ConvertToInt(dr[FieldUserId]);
     }
     if (dr.ContainsColumn(FieldUserName))
     {
         UserName = BaseUtil.ConvertToString(dr[FieldUserName]);
     }
     if (dr.ContainsColumn(FieldEmployeeNumber))
     {
         EmployeeNumber = BaseUtil.ConvertToString(dr[FieldEmployeeNumber]);
     }
     if (dr.ContainsColumn(FieldRealName))
     {
         RealName = BaseUtil.ConvertToString(dr[FieldRealName]);
     }
     if (dr.ContainsColumn(FieldChineseName))
     {
         ChineseName = BaseUtil.ConvertToString(dr[FieldChineseName]);
     }
     if (dr.ContainsColumn(FieldEnglishName))
     {
         EnglishName = BaseUtil.ConvertToString(dr[FieldEnglishName]);
     }
     if (dr.ContainsColumn(FieldQuickQuery))
     {
         QuickQuery = BaseUtil.ConvertToString(dr[FieldQuickQuery]);
     }
     if (dr.ContainsColumn(FieldCompanyId))
     {
         CompanyId = BaseUtil.ConvertToInt(dr[FieldCompanyId]);
     }
     if (dr.ContainsColumn(FieldCompanyName))
     {
         CompanyName = BaseUtil.ConvertToString(dr[FieldCompanyName]);
     }
     if (dr.ContainsColumn(FieldSubCompanyId))
     {
         SubCompanyId = BaseUtil.ConvertToInt(dr[FieldSubCompanyId]);
     }
     if (dr.ContainsColumn(FieldSubCompanyName))
     {
         SubCompanyName = BaseUtil.ConvertToString(dr[FieldSubCompanyName]);
     }
     if (dr.ContainsColumn(FieldDepartmentId))
     {
         DepartmentId = BaseUtil.ConvertToInt(dr[FieldDepartmentId]);
     }
     if (dr.ContainsColumn(FieldDepartmentName))
     {
         DepartmentName = BaseUtil.ConvertToString(dr[FieldDepartmentName]);
     }
     if (dr.ContainsColumn(FieldWorkgroupId))
     {
         WorkgroupId = BaseUtil.ConvertToInt(dr[FieldWorkgroupId]);
     }
     if (dr.ContainsColumn(FieldWorkgroupName))
     {
         WorkgroupName = BaseUtil.ConvertToString(dr[FieldWorkgroupName]);
     }
     if (dr.ContainsColumn(FieldDutyId))
     {
         DutyId = BaseUtil.ConvertToInt(dr[FieldDutyId]);
     }
     if (dr.ContainsColumn(FieldGender))
     {
         Gender = BaseUtil.ConvertToString(dr[FieldGender]);
     }
     if (dr.ContainsColumn(FieldBirthday))
     {
         Birthday = BaseUtil.ConvertToNullableDateTime(dr[FieldBirthday]);
     }
     if (dr.ContainsColumn(FieldAge))
     {
         Age = BaseUtil.ConvertToNullableInt(dr[FieldAge]);
     }
     if (dr.ContainsColumn(FieldHeight))
     {
         Height = BaseUtil.ConvertToString(dr[FieldHeight]);
     }
     if (dr.ContainsColumn(FieldWeight))
     {
         Weight = BaseUtil.ConvertToString(dr[FieldWeight]);
     }
     if (dr.ContainsColumn(FieldIdentificationCode))
     {
         IdentificationCode = BaseUtil.ConvertToString(dr[FieldIdentificationCode]);
     }
     if (dr.ContainsColumn(FieldIdCard))
     {
         IdCard = BaseUtil.ConvertToString(dr[FieldIdCard]);
     }
     if (dr.ContainsColumn(FieldNation))
     {
         Nation = BaseUtil.ConvertToString(dr[FieldNation]);
     }
     if (dr.ContainsColumn(FieldEducation))
     {
         Education = BaseUtil.ConvertToString(dr[FieldEducation]);
     }
     if (dr.ContainsColumn(FieldSchool))
     {
         School = BaseUtil.ConvertToString(dr[FieldSchool]);
     }
     if (dr.ContainsColumn(FieldGraduationDate))
     {
         GraduationDate = BaseUtil.ConvertToNullableDateTime(dr[FieldGraduationDate]);
     }
     if (dr.ContainsColumn(FieldMajor))
     {
         Major = BaseUtil.ConvertToString(dr[FieldMajor]);
     }
     if (dr.ContainsColumn(FieldDegree))
     {
         Degree = BaseUtil.ConvertToString(dr[FieldDegree]);
     }
     if (dr.ContainsColumn(FieldTitleId))
     {
         TitleId = BaseUtil.ConvertToString(dr[FieldTitleId]);
     }
     if (dr.ContainsColumn(FieldTitleDate))
     {
         TitleDate = BaseUtil.ConvertToString(dr[FieldTitleDate]);
     }
     if (dr.ContainsColumn(FieldTitleLevel))
     {
         TitleLevel = BaseUtil.ConvertToString(dr[FieldTitleLevel]);
     }
     if (dr.ContainsColumn(FieldWorkingDate))
     {
         WorkingDate = BaseUtil.ConvertToNullableDateTime(dr[FieldWorkingDate]);
     }
     if (dr.ContainsColumn(FieldJoinInDate))
     {
         JoinInDate = BaseUtil.ConvertToNullableDateTime(dr[FieldJoinInDate]);
     }
     if (dr.ContainsColumn(FieldOfficePostCode))
     {
         OfficePostCode = BaseUtil.ConvertToString(dr[FieldOfficePostCode]);
     }
     if (dr.ContainsColumn(FieldOfficeAddress))
     {
         OfficeAddress = BaseUtil.ConvertToString(dr[FieldOfficeAddress]);
     }
     if (dr.ContainsColumn(FieldOfficePhone))
     {
         OfficePhone = BaseUtil.ConvertToString(dr[FieldOfficePhone]);
     }
     if (dr.ContainsColumn(FieldOfficeFax))
     {
         OfficeFax = BaseUtil.ConvertToString(dr[FieldOfficeFax]);
     }
     if (dr.ContainsColumn(FieldHomePostCode))
     {
         HomePostCode = BaseUtil.ConvertToString(dr[FieldHomePostCode]);
     }
     if (dr.ContainsColumn(FieldHomeAddress))
     {
         HomeAddress = BaseUtil.ConvertToString(dr[FieldHomeAddress]);
     }
     if (dr.ContainsColumn(FieldHomePhone))
     {
         HomePhone = BaseUtil.ConvertToString(dr[FieldHomePhone]);
     }
     if (dr.ContainsColumn(FieldHomeFax))
     {
         HomeFax = BaseUtil.ConvertToString(dr[FieldHomeFax]);
     }
     if (dr.ContainsColumn(FieldPlateNumber1))
     {
         PlateNumber1 = BaseUtil.ConvertToString(dr[FieldPlateNumber1]);
     }
     if (dr.ContainsColumn(FieldPlateNumber2))
     {
         PlateNumber2 = BaseUtil.ConvertToString(dr[FieldPlateNumber2]);
     }
     if (dr.ContainsColumn(FieldPlateNumber3))
     {
         PlateNumber3 = BaseUtil.ConvertToString(dr[FieldPlateNumber3]);
     }
     if (dr.ContainsColumn(FieldRewardCard))
     {
         RewardCard = BaseUtil.ConvertToString(dr[FieldRewardCard]);
     }
     if (dr.ContainsColumn(FieldMedicalCard))
     {
         MedicalCard = BaseUtil.ConvertToString(dr[FieldMedicalCard]);
     }
     if (dr.ContainsColumn(FieldUnionMember))
     {
         UnionMember = BaseUtil.ConvertToString(dr[FieldUnionMember]);
     }
     if (dr.ContainsColumn(FieldEmail))
     {
         Email = BaseUtil.ConvertToString(dr[FieldEmail]);
     }
     if (dr.ContainsColumn(FieldMobile))
     {
         Mobile = BaseUtil.ConvertToString(dr[FieldMobile]);
     }
     if (dr.ContainsColumn(FieldQq))
     {
         Qq = BaseUtil.ConvertToString(dr[FieldQq]);
     }
     if (dr.ContainsColumn(FieldWeChat))
     {
         WeChat = BaseUtil.ConvertToString(dr[FieldWeChat]);
     }
     if (dr.ContainsColumn(FieldShortNumber))
     {
         ShortNumber = BaseUtil.ConvertToString(dr[FieldShortNumber]);
     }
     if (dr.ContainsColumn(FieldTelephone))
     {
         Telephone = BaseUtil.ConvertToString(dr[FieldTelephone]);
     }
     if (dr.ContainsColumn(FieldExtension))
     {
         Extension = BaseUtil.ConvertToString(dr[FieldExtension]);
     }
     if (dr.ContainsColumn(FieldEmergencyContact))
     {
         EmergencyContact = BaseUtil.ConvertToString(dr[FieldEmergencyContact]);
     }
     if (dr.ContainsColumn(FieldEmergencyMobile))
     {
         EmergencyMobile = BaseUtil.ConvertToString(dr[FieldEmergencyMobile]);
     }
     if (dr.ContainsColumn(FieldEmergencyTelephone))
     {
         EmergencyTelephone = BaseUtil.ConvertToString(dr[FieldEmergencyTelephone]);
     }
     if (dr.ContainsColumn(FieldNativePlace))
     {
         NativePlace = BaseUtil.ConvertToString(dr[FieldNativePlace]);
     }
     if (dr.ContainsColumn(FieldBankName))
     {
         BankName = BaseUtil.ConvertToString(dr[FieldBankName]);
     }
     if (dr.ContainsColumn(FieldBankAccount))
     {
         BankAccount = BaseUtil.ConvertToString(dr[FieldBankAccount]);
     }
     if (dr.ContainsColumn(FieldBankUserName))
     {
         BankUserName = BaseUtil.ConvertToString(dr[FieldBankUserName]);
     }
     if (dr.ContainsColumn(FieldProvince))
     {
         Province = BaseUtil.ConvertToString(dr[FieldProvince]);
     }
     if (dr.ContainsColumn(FieldCity))
     {
         City = BaseUtil.ConvertToString(dr[FieldCity]);
     }
     if (dr.ContainsColumn(FieldDistrict))
     {
         District = BaseUtil.ConvertToString(dr[FieldDistrict]);
     }
     if (dr.ContainsColumn(FieldCurrentProvince))
     {
         CurrentProvince = BaseUtil.ConvertToString(dr[FieldCurrentProvince]);
     }
     if (dr.ContainsColumn(FieldCurrentCity))
     {
         CurrentCity = BaseUtil.ConvertToString(dr[FieldCurrentCity]);
     }
     if (dr.ContainsColumn(FieldCurrentDistrict))
     {
         CurrentDistrict = BaseUtil.ConvertToString(dr[FieldCurrentDistrict]);
     }
     if (dr.ContainsColumn(FieldParty))
     {
         Party = BaseUtil.ConvertToString(dr[FieldParty]);
     }
     if (dr.ContainsColumn(FieldNationality))
     {
         Nationality = BaseUtil.ConvertToString(dr[FieldNationality]);
     }
     if (dr.ContainsColumn(FieldWorkingProperty))
     {
         WorkingProperty = BaseUtil.ConvertToString(dr[FieldWorkingProperty]);
     }
     if (dr.ContainsColumn(FieldCompetency))
     {
         Competency = BaseUtil.ConvertToString(dr[FieldCompetency]);
     }
     if (dr.ContainsColumn(FieldMarriage))
     {
         Marriage = BaseUtil.ConvertToString(dr[FieldMarriage]);
     }
     if (dr.ContainsColumn(FieldWeddingDate))
     {
         WeddingDate = BaseUtil.ConvertToNullableDateTime(dr[FieldWeddingDate]);
     }
     if (dr.ContainsColumn(FieldDivorceDate))
     {
         DivorceDate = BaseUtil.ConvertToNullableDateTime(dr[FieldDivorceDate]);
     }
     if (dr.ContainsColumn(FieldChild1Birthday))
     {
         Child1Birthday = BaseUtil.ConvertToNullableDateTime(dr[FieldChild1Birthday]);
     }
     if (dr.ContainsColumn(FieldChild2Birthday))
     {
         Child2Birthday = BaseUtil.ConvertToNullableDateTime(dr[FieldChild2Birthday]);
     }
     if (dr.ContainsColumn(FieldChild3Birthday))
     {
         Child3Birthday = BaseUtil.ConvertToNullableDateTime(dr[FieldChild3Birthday]);
     }
     if (dr.ContainsColumn(FieldChild4Birthday))
     {
         Child4Birthday = BaseUtil.ConvertToNullableDateTime(dr[FieldChild4Birthday]);
     }
     if (dr.ContainsColumn(FieldChild5Birthday))
     {
         Child5Birthday = BaseUtil.ConvertToNullableDateTime(dr[FieldChild5Birthday]);
     }
     if (dr.ContainsColumn(FieldIsDimission))
     {
         IsDimission = BaseUtil.ConvertToInt(dr[FieldIsDimission]);
     }
     if (dr.ContainsColumn(FieldDimissionDate))
     {
         DimissionDate = BaseUtil.ConvertToNullableDateTime(dr[FieldDimissionDate]);
     }
     if (dr.ContainsColumn(FieldDimissionCause))
     {
         DimissionCause = BaseUtil.ConvertToString(dr[FieldDimissionCause]);
     }
     if (dr.ContainsColumn(FieldDimissionWhereabouts))
     {
         DimissionWhereabouts = BaseUtil.ConvertToString(dr[FieldDimissionWhereabouts]);
     }
     if (dr.ContainsColumn(FieldExt1))
     {
         Ext1 = BaseUtil.ConvertToString(dr[FieldExt1]);
     }
     if (dr.ContainsColumn(FieldExt2))
     {
         Ext2 = BaseUtil.ConvertToString(dr[FieldExt2]);
     }
     if (dr.ContainsColumn(FieldExt3))
     {
         Ext3 = BaseUtil.ConvertToString(dr[FieldExt3]);
     }
     if (dr.ContainsColumn(FieldExt4))
     {
         Ext4 = BaseUtil.ConvertToString(dr[FieldExt4]);
     }
     if (dr.ContainsColumn(FieldExt5))
     {
         Ext5 = BaseUtil.ConvertToString(dr[FieldExt5]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
Example #8
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     if (dr.ContainsColumn(ZtoUserEntity.FieldId))
     {
         Id = BaseBusinessLogic.ConvertToDecimal(dr[ZtoUserEntity.FieldId]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldPostcode))
     {
         Postcode = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldPostcode]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldRealname))
     {
         Realname = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldRealname]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldCreateUserName))
     {
         CreateUserName = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldCreateUserName]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldCityId))
     {
         CityId = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldCityId]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldModifiedUserName))
     {
         ModifiedUserName = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldModifiedUserName]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldCreateOn))
     {
         CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[ZtoUserEntity.FieldCreateOn]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldDepartment))
     {
         Department = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldDepartment]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldProvince))
     {
         Province = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldProvince]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldCounty))
     {
         County = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldCounty]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldCountyId))
     {
         CountyId = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldCountyId]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldRemark))
     {
         Remark = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldRemark]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldModifiedOn))
     {
         ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[ZtoUserEntity.FieldModifiedOn]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldProvinceId))
     {
         ProvinceId = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldProvinceId]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldCity))
     {
         City = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldCity]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldAddress))
     {
         Address = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldAddress]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldIssendorreceive))
     {
         Issendorreceive = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldIssendorreceive]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldTelePhone))
     {
         TelePhone = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldTelePhone]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldMobile))
     {
         Mobile = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldMobile]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldCompany))
     {
         Company = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldCompany]);
     }
     if (dr.ContainsColumn(ZtoUserEntity.FieldIsDefault))
     {
         IsDefault = BaseBusinessLogic.ConvertToString(dr[ZtoUserEntity.FieldIsDefault]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldUserId))
     {
         UserId = BaseUtil.ConvertToInt(dr[FieldUserId]);
     }
     if (dr.ContainsColumn(FieldCompanyId))
     {
         CompanyId = BaseUtil.ConvertToInt(dr[FieldCompanyId]);
     }
     if (dr.ContainsColumn(FieldSubCompanyId))
     {
         SubCompanyId = BaseUtil.ConvertToInt(dr[FieldSubCompanyId]);
     }
     if (dr.ContainsColumn(FieldDepartmentId))
     {
         DepartmentId = BaseUtil.ConvertToInt(dr[FieldDepartmentId]);
     }
     if (dr.ContainsColumn(FieldSubDepartmentId))
     {
         SubDepartmentId = BaseUtil.ConvertToInt(dr[FieldSubDepartmentId]);
     }
     if (dr.ContainsColumn(FieldWorkgroupId))
     {
         WorkgroupId = BaseUtil.ConvertToInt(dr[FieldWorkgroupId]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldSystemCode))
     {
         SystemCode = BaseUtil.ConvertToString(dr[FieldSystemCode]);
     }
     if (dr.ContainsColumn(FieldUserCompanyId))
     {
         UserCompanyId = BaseUtil.ConvertToInt(dr[FieldUserCompanyId]);
     }
     if (dr.ContainsColumn(FieldUserSubCompanyId))
     {
         UserSubCompanyId = BaseUtil.ConvertToInt(dr[FieldUserSubCompanyId]);
     }
     if (dr.ContainsColumn(FieldFileName))
     {
         FileName = BaseUtil.ConvertToString(dr[FieldFileName]);
     }
     if (dr.ContainsColumn(FieldFileExtension))
     {
         FileExtension = BaseUtil.ConvertToString(dr[FieldFileExtension]);
     }
     if (dr.ContainsColumn(FieldFilePath))
     {
         FilePath = BaseUtil.ConvertToString(dr[FieldFilePath]);
     }
     if (dr.ContainsColumn(FieldFileSize))
     {
         FileSize = BaseUtil.ConvertToNullableInt(dr[FieldFileSize]);
     }
     if (dr.ContainsColumn(FieldRemark))
     {
         Remark = BaseUtil.ConvertToString(dr[FieldRemark]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
Example #11
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldResourceCategory))
     {
         ResourceCategory = BaseUtil.ConvertToString(dr[FieldResourceCategory]);
     }
     if (dr.ContainsColumn(FieldResourceId))
     {
         ResourceId = BaseUtil.ConvertToString(dr[FieldResourceId]);
     }
     if (dr.ContainsColumn(FieldPermissionId))
     {
         PermissionId = BaseUtil.ConvertToNullableInt(dr[FieldPermissionId]);
     }
     if (dr.ContainsColumn(FieldAllData))
     {
         AllData = BaseUtil.ConvertToNullableByteInt(dr[FieldAllData]);
     }
     if (dr.ContainsColumn(FieldProvince))
     {
         Province = BaseUtil.ConvertToNullableByteInt(dr[FieldProvince]);
     }
     if (dr.ContainsColumn(FieldCity))
     {
         City = BaseUtil.ConvertToNullableByteInt(dr[FieldCity]);
     }
     if (dr.ContainsColumn(FieldDistrict))
     {
         District = BaseUtil.ConvertToNullableByteInt(dr[FieldDistrict]);
     }
     if (dr.ContainsColumn(FieldStreet))
     {
         Street = BaseUtil.ConvertToNullableByteInt(dr[FieldStreet]);
     }
     if (dr.ContainsColumn(FieldUserCompany))
     {
         UserCompany = BaseUtil.ConvertToNullableByteInt(dr[FieldUserCompany]);
     }
     if (dr.ContainsColumn(FieldUserSubCompany))
     {
         UserSubCompany = BaseUtil.ConvertToNullableByteInt(dr[FieldUserSubCompany]);
     }
     if (dr.ContainsColumn(FieldUserDepartment))
     {
         UserDepartment = BaseUtil.ConvertToNullableByteInt(dr[FieldUserDepartment]);
     }
     if (dr.ContainsColumn(FieldUserSubDepartment))
     {
         UserSubDepartment = BaseUtil.ConvertToNullableByteInt(dr[FieldUserSubDepartment]);
     }
     if (dr.ContainsColumn(FieldUserWorkgroup))
     {
         UserWorkgroup = BaseUtil.ConvertToNullableByteInt(dr[FieldUserWorkgroup]);
     }
     if (dr.ContainsColumn(FieldOnlyOwnData))
     {
         OnlyOwnData = BaseUtil.ConvertToInt(dr[FieldOnlyOwnData]);
     }
     if (dr.ContainsColumn(FieldNotAllowed))
     {
         NotAllowed = BaseUtil.ConvertToNullableByteInt(dr[FieldNotAllowed]);
     }
     if (dr.ContainsColumn(FieldByDetails))
     {
         ByDetails = BaseUtil.ConvertToNullableByteInt(dr[FieldByDetails]);
     }
     if (dr.ContainsColumn(FieldContainChild))
     {
         ContainChild = BaseUtil.ConvertToInt(dr[FieldContainChild]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
Example #12
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldSystemCode))
     {
         SystemCode = BaseUtil.ConvertToString(dr[FieldSystemCode]);
     }
     if (dr.ContainsColumn(FieldUserId))
     {
         UserId = BaseUtil.ConvertToInt(dr[FieldUserId]);
     }
     if (dr.ContainsColumn(FieldName))
     {
         Name = BaseUtil.ConvertToString(dr[FieldName]);
     }
     if (dr.ContainsColumn(FieldAccessToken))
     {
         AccessToken = BaseUtil.ConvertToString(dr[FieldAccessToken]);
     }
     if (dr.ContainsColumn(FieldRefreshToken))
     {
         RefreshToken = BaseUtil.ConvertToString(dr[FieldRefreshToken]);
     }
     if (dr.ContainsColumn(FieldOpenId))
     {
         OpenId = BaseUtil.ConvertToString(dr[FieldOpenId]);
     }
     if (dr.ContainsColumn(FieldUnionId))
     {
         UnionId = BaseUtil.ConvertToString(dr[FieldUnionId]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldCompanyId))
     {
         CompanyId = BaseUtil.ConvertToInt(dr[FieldCompanyId]);
     }
     if (dr.ContainsColumn(FieldUserId))
     {
         UserId = BaseUtil.ConvertToInt(dr[FieldUserId]);
     }
     if (dr.ContainsColumn(FieldUserName))
     {
         UserName = BaseUtil.ConvertToString(dr[FieldUserName]);
     }
     if (dr.ContainsColumn(FieldRealName))
     {
         RealName = BaseUtil.ConvertToString(dr[FieldRealName]);
     }
     if (dr.ContainsColumn(FieldService))
     {
         Service = BaseUtil.ConvertToString(dr[FieldService]);
     }
     if (dr.ContainsColumn(FieldTaskId))
     {
         TaskId = BaseUtil.ConvertToString(dr[FieldTaskId]);
     }
     if (dr.ContainsColumn(FieldParameters))
     {
         Parameters = BaseUtil.ConvertToString(dr[FieldParameters]);
     }
     if (dr.ContainsColumn(FieldClientIp))
     {
         ClientIp = BaseUtil.ConvertToString(dr[FieldClientIp]);
     }
     if (dr.ContainsColumn(FieldServerIp))
     {
         ServerIp = BaseUtil.ConvertToString(dr[FieldServerIp]);
     }
     if (dr.ContainsColumn(FieldUrlReferrer))
     {
         UrlReferrer = BaseUtil.ConvertToString(dr[FieldUrlReferrer]);
     }
     if (dr.ContainsColumn(FieldWebUrl))
     {
         WebUrl = BaseUtil.ConvertToString(dr[FieldWebUrl]);
     }
     if (dr.ContainsColumn(FieldElapsedTicks))
     {
         ElapsedTicks = BaseUtil.ConvertToNullableDecimal(dr[FieldElapsedTicks]);
     }
     if (dr.ContainsColumn(FieldStartTime))
     {
         StartTime = BaseUtil.ConvertToNullableDateTime(dr[FieldStartTime]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldSystemCode))
     {
         SystemCode = BaseUtil.ConvertToString(dr[FieldSystemCode]);
     }
     if (dr.ContainsColumn(FieldEventId))
     {
         EventId = BaseUtil.ConvertToNullableInt(dr[FieldEventId]);
     }
     if (dr.ContainsColumn(FieldCategory))
     {
         Category = BaseUtil.ConvertToString(dr[FieldCategory]);
     }
     if (dr.ContainsColumn(FieldPriority))
     {
         Priority = BaseUtil.ConvertToNullableInt(dr[FieldPriority]);
     }
     if (dr.ContainsColumn(FieldSeverity))
     {
         Severity = BaseUtil.ConvertToString(dr[FieldSeverity]);
     }
     if (dr.ContainsColumn(FieldTitle))
     {
         Title = BaseUtil.ConvertToString(dr[FieldTitle]);
     }
     if (dr.ContainsColumn(FieldTimestamp))
     {
         Timestamp = BaseUtil.ConvertToNullableDateTime(dr[FieldTimestamp]);
     }
     if (dr.ContainsColumn(FieldMachineName))
     {
         MachineName = BaseUtil.ConvertToString(dr[FieldMachineName]);
     }
     if (dr.ContainsColumn(FieldIpAddress))
     {
         IpAddress = BaseUtil.ConvertToString(dr[FieldIpAddress]);
     }
     if (dr.ContainsColumn(FieldAppDomainName))
     {
         AppDomainName = BaseUtil.ConvertToString(dr[FieldAppDomainName]);
     }
     if (dr.ContainsColumn(FieldProcessId))
     {
         ProcessId = BaseUtil.ConvertToString(dr[FieldProcessId]);
     }
     if (dr.ContainsColumn(FieldProcessName))
     {
         ProcessName = BaseUtil.ConvertToString(dr[FieldProcessName]);
     }
     if (dr.ContainsColumn(FieldThreadName))
     {
         ThreadName = BaseUtil.ConvertToString(dr[FieldThreadName]);
     }
     if (dr.ContainsColumn(FieldWin32ThreadId))
     {
         Win32ThreadId = BaseUtil.ConvertToString(dr[FieldWin32ThreadId]);
     }
     if (dr.ContainsColumn(FieldMessage))
     {
         Message = BaseUtil.ConvertToString(dr[FieldMessage]);
     }
     if (dr.ContainsColumn(FieldFormattedMessage))
     {
         FormattedMessage = BaseUtil.ConvertToString(dr[FieldFormattedMessage]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldUserId))
     {
         UserId = BaseUtil.ConvertToInt(dr[FieldUserId]);
     }
     if (dr.ContainsColumn(FieldUserPassword))
     {
         UserPassword = BaseUtil.ConvertToString(dr[FieldUserPassword]);
     }
     if (dr.ContainsColumn(FieldOpenId))
     {
         OpenId = BaseUtil.ConvertToString(dr[FieldOpenId]);
     }
     if (dr.ContainsColumn(FieldAllowStartTime))
     {
         AllowStartTime = BaseUtil.ConvertToNullableDateTime(dr[FieldAllowStartTime]);
     }
     if (dr.ContainsColumn(FieldAllowEndTime))
     {
         AllowEndTime = BaseUtil.ConvertToNullableDateTime(dr[FieldAllowEndTime]);
     }
     if (dr.ContainsColumn(FieldLockStartTime))
     {
         LockStartTime = BaseUtil.ConvertToNullableDateTime(dr[FieldLockStartTime]);
     }
     if (dr.ContainsColumn(FieldLockEndTime))
     {
         LockEndTime = BaseUtil.ConvertToNullableDateTime(dr[FieldLockEndTime]);
     }
     if (dr.ContainsColumn(FieldFirstVisitTime))
     {
         FirstVisitTime = BaseUtil.ConvertToNullableDateTime(dr[FieldFirstVisitTime]);
     }
     if (dr.ContainsColumn(FieldPreviousVisitTime))
     {
         PreviousVisitTime = BaseUtil.ConvertToNullableDateTime(dr[FieldPreviousVisitTime]);
     }
     if (dr.ContainsColumn(FieldLastVisitTime))
     {
         LastVisitTime = BaseUtil.ConvertToNullableDateTime(dr[FieldLastVisitTime]);
     }
     if (dr.ContainsColumn(FieldChangePasswordTime))
     {
         ChangePasswordTime = BaseUtil.ConvertToNullableDateTime(dr[FieldChangePasswordTime]);
     }
     if (dr.ContainsColumn(FieldLogonCount))
     {
         LogonCount = BaseUtil.ConvertToInt(dr[FieldLogonCount]);
     }
     if (dr.ContainsColumn(FieldConcurrentUser))
     {
         ConcurrentUser = BaseUtil.ConvertToInt(dr[FieldConcurrentUser]);
     }
     if (dr.ContainsColumn(FieldShowCount))
     {
         ShowCount = BaseUtil.ConvertToInt(dr[FieldShowCount]);
     }
     if (dr.ContainsColumn(FieldPasswordErrorCount))
     {
         PasswordErrorCount = BaseUtil.ConvertToInt(dr[FieldPasswordErrorCount]);
     }
     if (dr.ContainsColumn(FieldUserOnline))
     {
         UserOnline = BaseUtil.ConvertToInt(dr[FieldUserOnline]);
     }
     if (dr.ContainsColumn(FieldCheckIpAddress))
     {
         CheckIpAddress = BaseUtil.ConvertToInt(dr[FieldCheckIpAddress]);
     }
     if (dr.ContainsColumn(FieldVerificationCode))
     {
         VerificationCode = BaseUtil.ConvertToString(dr[FieldVerificationCode]);
     }
     if (dr.ContainsColumn(FieldIpAddress))
     {
         IpAddress = BaseUtil.ConvertToString(dr[FieldIpAddress]);
     }
     if (dr.ContainsColumn(FieldMacAddress))
     {
         MacAddress = BaseUtil.ConvertToString(dr[FieldMacAddress]);
     }
     if (dr.ContainsColumn(FieldQuestion))
     {
         Question = BaseUtil.ConvertToString(dr[FieldQuestion]);
     }
     if (dr.ContainsColumn(FieldAnswerQuestion))
     {
         AnswerQuestion = BaseUtil.ConvertToString(dr[FieldAnswerQuestion]);
     }
     if (dr.ContainsColumn(FieldSalt))
     {
         Salt = BaseUtil.ConvertToString(dr[FieldSalt]);
     }
     if (dr.ContainsColumn(FieldOpenIdTimeoutTime))
     {
         OpenIdTimeoutTime = BaseUtil.ConvertToNullableDateTime(dr[FieldOpenIdTimeoutTime]);
     }
     if (dr.ContainsColumn(FieldSystemCode))
     {
         SystemCode = BaseUtil.ConvertToString(dr[FieldSystemCode]);
     }
     if (dr.ContainsColumn(FieldIpAddressName))
     {
         IpAddressName = BaseUtil.ConvertToString(dr[FieldIpAddressName]);
     }
     if (dr.ContainsColumn(FieldPasswordStrength))
     {
         PasswordStrength = BaseUtil.ConvertToNullableByteInt(dr[FieldPasswordStrength]);
     }
     if (dr.ContainsColumn(FieldComputerName))
     {
         ComputerName = BaseUtil.ConvertToString(dr[FieldComputerName]);
     }
     if (dr.ContainsColumn(FieldNeedModifyPassword))
     {
         NeedModifyPassword = BaseUtil.ConvertToInt(dr[FieldNeedModifyPassword]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldTenantId))
     {
         TenantId = BaseUtil.ConvertToInt(dr[FieldTenantId]);
     }
     if (dr.ContainsColumn(FieldCode))
     {
         Code = BaseUtil.ConvertToString(dr[FieldCode]);
     }
     if (dr.ContainsColumn(FieldName))
     {
         Name = BaseUtil.ConvertToString(dr[FieldName]);
     }
     if (dr.ContainsColumn(FieldIsTree))
     {
         IsTree = BaseUtil.ConvertToInt(dr[FieldIsTree]);
     }
     if (dr.ContainsColumn(FieldAllowEdit))
     {
         AllowEdit = BaseUtil.ConvertToInt(dr[FieldAllowEdit]);
     }
     if (dr.ContainsColumn(FieldAllowDelete))
     {
         AllowDelete = BaseUtil.ConvertToInt(dr[FieldAllowDelete]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldUserCompanyId))
     {
         UserCompanyId = BaseUtil.ConvertToInt(dr[FieldUserCompanyId]);
     }
     if (dr.ContainsColumn(FieldUserSubCompanyId))
     {
         UserSubCompanyId = BaseUtil.ConvertToInt(dr[FieldUserSubCompanyId]);
     }
     if (dr.ContainsColumn(FieldFiscalYear))
     {
         FiscalYear = BaseUtil.ConvertToNullableInt(dr[FieldFiscalYear]);
     }
     if (dr.ContainsColumn(FieldFiscalMonth))
     {
         FiscalMonth = BaseUtil.ConvertToNullableByteInt(dr[FieldFiscalMonth]);
     }
     if (dr.ContainsColumn(FieldFiscalDay))
     {
         FiscalDay = BaseUtil.ConvertToNullableByteInt(dr[FieldFiscalDay]);
     }
     if (dr.ContainsColumn(FieldTransactionDate))
     {
         TransactionDate = BaseUtil.ConvertToNullableDateTime(dr[FieldTransactionDate]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldSystemCode))
     {
         SystemCode = BaseUtil.ConvertToString(dr[FieldSystemCode]);
     }
     if (dr.ContainsColumn(FieldSourceType))
     {
         SourceType = BaseUtil.ConvertToString(dr[FieldSourceType]);
     }
     if (dr.ContainsColumn(FieldUserId))
     {
         UserId = BaseUtil.ConvertToInt(dr[FieldUserId]);
     }
     if (dr.ContainsColumn(FieldUserName))
     {
         UserName = BaseUtil.ConvertToString(dr[FieldUserName]);
     }
     if (dr.ContainsColumn(FieldNickName))
     {
         NickName = BaseUtil.ConvertToString(dr[FieldNickName]);
     }
     if (dr.ContainsColumn(FieldRealName))
     {
         RealName = BaseUtil.ConvertToString(dr[FieldRealName]);
     }
     if (dr.ContainsColumn(FieldCompanyId))
     {
         CompanyId = BaseUtil.ConvertToInt(dr[FieldCompanyId]);
     }
     if (dr.ContainsColumn(FieldCompanyName))
     {
         CompanyName = BaseUtil.ConvertToString(dr[FieldCompanyName]);
     }
     if (dr.ContainsColumn(FieldCompanyCode))
     {
         CompanyCode = BaseUtil.ConvertToString(dr[FieldCompanyCode]);
     }
     if (dr.ContainsColumn(FieldProvince))
     {
         Province = BaseUtil.ConvertToString(dr[FieldProvince]);
     }
     if (dr.ContainsColumn(FieldCity))
     {
         City = BaseUtil.ConvertToString(dr[FieldCity]);
     }
     if (dr.ContainsColumn(FieldService))
     {
         Service = BaseUtil.ConvertToString(dr[FieldService]);
     }
     if (dr.ContainsColumn(FieldElapsedTicks))
     {
         ElapsedTicks = BaseUtil.ConvertToInt(dr[FieldElapsedTicks]);
     }
     if (dr.ContainsColumn(FieldTargetApplication))
     {
         TargetApplication = BaseUtil.ConvertToString(dr[FieldTargetApplication]);
     }
     if (dr.ContainsColumn(FieldTargetIp))
     {
         TargetIp = BaseUtil.ConvertToString(dr[FieldTargetIp]);
     }
     if (dr.ContainsColumn(FieldResult))
     {
         Result = BaseUtil.ConvertToInt(dr[FieldResult]);
     }
     if (dr.ContainsColumn(FieldOperationType))
     {
         OperationType = BaseUtil.ConvertToInt(dr[FieldOperationType]);
     }
     if (dr.ContainsColumn(FieldLogonStatus))
     {
         LogonStatus = BaseUtil.ConvertToString(dr[FieldLogonStatus]);
     }
     if (dr.ContainsColumn(FieldLogLevel))
     {
         LogLevel = BaseUtil.ConvertToInt(dr[FieldLogLevel]);
     }
     if (dr.ContainsColumn(FieldIpAddress))
     {
         IpAddress = BaseUtil.ConvertToString(dr[FieldIpAddress]);
     }
     if (dr.ContainsColumn(FieldIpAddressName))
     {
         IpAddressName = BaseUtil.ConvertToString(dr[FieldIpAddressName]);
     }
     if (dr.ContainsColumn(FieldMacAddress))
     {
         MacAddress = BaseUtil.ConvertToString(dr[FieldMacAddress]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldDictionaryId))
     {
         DictionaryId = BaseUtil.ConvertToInt(dr[FieldDictionaryId]);
     }
     if (dr.ContainsColumn(FieldParentId))
     {
         ParentId = BaseUtil.ConvertToInt(dr[FieldParentId]);
     }
     if (dr.ContainsColumn(FieldItemKey))
     {
         ItemKey = BaseUtil.ConvertToString(dr[FieldItemKey]);
     }
     if (dr.ContainsColumn(FieldItemName))
     {
         ItemName = BaseUtil.ConvertToString(dr[FieldItemName]);
     }
     if (dr.ContainsColumn(FieldItemValue))
     {
         ItemValue = BaseUtil.ConvertToString(dr[FieldItemValue]);
     }
     if (dr.ContainsColumn(FieldLanguage))
     {
         Language = BaseUtil.ConvertToString(dr[FieldLanguage]);
     }
     if (dr.ContainsColumn(FieldAllowEdit))
     {
         AllowEdit = BaseUtil.ConvertToInt(dr[FieldAllowEdit]);
     }
     if (dr.ContainsColumn(FieldAllowDelete))
     {
         AllowDelete = BaseUtil.ConvertToInt(dr[FieldAllowDelete]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
Example #20
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldParentId))
     {
         ParentId = BaseUtil.ConvertToInt(dr[FieldParentId]);
     }
     if (dr.ContainsColumn(FieldParentName))
     {
         ParentName = BaseUtil.ConvertToString(dr[FieldParentName]);
     }
     if (dr.ContainsColumn(FieldCode))
     {
         Code = BaseUtil.ConvertToString(dr[FieldCode]);
     }
     if (dr.ContainsColumn(FieldName))
     {
         Name = BaseUtil.ConvertToString(dr[FieldName]);
     }
     if (dr.ContainsColumn(FieldShortName))
     {
         ShortName = BaseUtil.ConvertToString(dr[FieldShortName]);
     }
     if (dr.ContainsColumn(FieldStandardName))
     {
         StandardName = BaseUtil.ConvertToString(dr[FieldStandardName]);
     }
     if (dr.ContainsColumn(FieldStandardCode))
     {
         StandardCode = BaseUtil.ConvertToString(dr[FieldStandardCode]);
     }
     if (dr.ContainsColumn(FieldQuickQuery))
     {
         QuickQuery = BaseUtil.ConvertToString(dr[FieldQuickQuery]);
     }
     if (dr.ContainsColumn(FieldSimpleSpelling))
     {
         SimpleSpelling = BaseUtil.ConvertToString(dr[FieldSimpleSpelling]);
     }
     if (dr.ContainsColumn(FieldCategoryCode))
     {
         CategoryCode = BaseUtil.ConvertToString(dr[FieldCategoryCode]);
     }
     if (dr.ContainsColumn(FieldOuterPhone))
     {
         OuterPhone = BaseUtil.ConvertToString(dr[FieldOuterPhone]);
     }
     if (dr.ContainsColumn(FieldInnerPhone))
     {
         InnerPhone = BaseUtil.ConvertToString(dr[FieldInnerPhone]);
     }
     if (dr.ContainsColumn(FieldFax))
     {
         Fax = BaseUtil.ConvertToString(dr[FieldFax]);
     }
     if (dr.ContainsColumn(FieldPostalCode))
     {
         PostalCode = BaseUtil.ConvertToString(dr[FieldPostalCode]);
     }
     if (dr.ContainsColumn(FieldProvince))
     {
         Province = BaseUtil.ConvertToString(dr[FieldProvince]);
     }
     if (dr.ContainsColumn(FieldCity))
     {
         City = BaseUtil.ConvertToString(dr[FieldCity]);
     }
     if (dr.ContainsColumn(FieldDistrict))
     {
         District = BaseUtil.ConvertToString(dr[FieldDistrict]);
     }
     if (dr.ContainsColumn(FieldCompanyId))
     {
         CompanyId = BaseUtil.ConvertToInt(dr[FieldCompanyId]);
     }
     if (dr.ContainsColumn(FieldCompanyCode))
     {
         CompanyCode = BaseUtil.ConvertToString(dr[FieldCompanyCode]);
     }
     if (dr.ContainsColumn(FieldCompanyName))
     {
         CompanyName = BaseUtil.ConvertToString(dr[FieldCompanyName]);
     }
     if (dr.ContainsColumn(FieldArea))
     {
         Area = BaseUtil.ConvertToString(dr[FieldArea]);
     }
     if (dr.ContainsColumn(FieldCostCenter))
     {
         CostCenter = BaseUtil.ConvertToString(dr[FieldCostCenter]);
     }
     if (dr.ContainsColumn(FieldFinancialCenter))
     {
         FinancialCenter = BaseUtil.ConvertToString(dr[FieldFinancialCenter]);
     }
     if (dr.ContainsColumn(FieldAddress))
     {
         Address = BaseUtil.ConvertToString(dr[FieldAddress]);
     }
     if (dr.ContainsColumn(FieldWeb))
     {
         Web = BaseUtil.ConvertToString(dr[FieldWeb]);
     }
     if (dr.ContainsColumn(FieldBank))
     {
         Bank = BaseUtil.ConvertToString(dr[FieldBank]);
     }
     if (dr.ContainsColumn(FieldBankAccount))
     {
         BankAccount = BaseUtil.ConvertToString(dr[FieldBankAccount]);
     }
     if (dr.ContainsColumn(FieldLayer))
     {
         Layer = BaseUtil.ConvertToNullableInt(dr[FieldLayer]);
     }
     if (dr.ContainsColumn(FieldLongitude))
     {
         Longitude = BaseUtil.ConvertToString(dr[FieldLongitude]);
     }
     if (dr.ContainsColumn(FieldLatitude))
     {
         Latitude = BaseUtil.ConvertToString(dr[FieldLatitude]);
     }
     if (dr.ContainsColumn(FieldContainChildNodes))
     {
         ContainChildNodes = BaseUtil.ConvertToInt(dr[FieldContainChildNodes]);
     }
     if (dr.ContainsColumn(FieldIsInnerOrganization))
     {
         IsInnerOrganization = BaseUtil.ConvertToInt(dr[FieldIsInnerOrganization]);
     }
     if (dr.ContainsColumn(FieldProvinceId))
     {
         ProvinceId = BaseUtil.ConvertToNullableInt(dr[FieldProvinceId]);
     }
     if (dr.ContainsColumn(FieldCityId))
     {
         CityId = BaseUtil.ConvertToNullableInt(dr[FieldCityId]);
     }
     if (dr.ContainsColumn(FieldDistrictId))
     {
         DistrictId = BaseUtil.ConvertToNullableInt(dr[FieldDistrictId]);
     }
     if (dr.ContainsColumn(FieldStreetId))
     {
         StreetId = BaseUtil.ConvertToNullableInt(dr[FieldStreetId]);
     }
     if (dr.ContainsColumn(FieldStreet))
     {
         Street = BaseUtil.ConvertToString(dr[FieldStreet]);
     }
     if (dr.ContainsColumn(FieldCostCenterId))
     {
         CostCenterId = BaseUtil.ConvertToString(dr[FieldCostCenterId]);
     }
     if (dr.ContainsColumn(FieldFinancialCenterId))
     {
         FinancialCenterId = BaseUtil.ConvertToString(dr[FieldFinancialCenterId]);
     }
     if (dr.ContainsColumn(FieldLeader))
     {
         Leader = BaseUtil.ConvertToString(dr[FieldLeader]);
     }
     if (dr.ContainsColumn(FieldLeaderMobile))
     {
         LeaderMobile = BaseUtil.ConvertToString(dr[FieldLeaderMobile]);
     }
     if (dr.ContainsColumn(FieldManager))
     {
         Manager = BaseUtil.ConvertToString(dr[FieldManager]);
     }
     if (dr.ContainsColumn(FieldManagerMobile))
     {
         ManagerMobile = BaseUtil.ConvertToString(dr[FieldManagerMobile]);
     }
     if (dr.ContainsColumn(FieldEmergencyCall))
     {
         EmergencyCall = BaseUtil.ConvertToString(dr[FieldEmergencyCall]);
     }
     if (dr.ContainsColumn(FieldBusinessPhone))
     {
         BusinessPhone = BaseUtil.ConvertToString(dr[FieldBusinessPhone]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
Example #21
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldId))
     {
         Id = BaseBusinessLogic.ConvertToDecimal(dr[ZtoPrintBillEntity.FieldId]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendPostcode))
     {
         SendPostcode = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendPostcode]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldReceiveMan))
     {
         ReceiveMan = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldReceiveMan]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldReceiveProvince))
     {
         ReceiveProvince = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldReceiveProvince]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldCreateUserName))
     {
         CreateUserName = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldCreateUserName]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldModifiedSite))
     {
         ModifiedSite = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldModifiedSite]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldModifiedUserName))
     {
         ModifiedUserName = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldModifiedUserName]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldPaymentType))
     {
         PaymentType = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldPaymentType]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldLength))
     {
         Length = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldLength]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendMan))
     {
         SendMan = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendMan]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldModifiedOn))
     {
         ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[ZtoPrintBillEntity.FieldModifiedOn]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldReceiveAddress))
     {
         ReceiveAddress = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldReceiveAddress]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldReceivePostcode))
     {
         ReceivePostcode = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldReceivePostcode]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldReceivePhone))
     {
         ReceivePhone = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldReceivePhone]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendDepartment))
     {
         SendDepartment = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendDepartment]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendDate))
     {
         SendDate = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendDate]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendProvince))
     {
         SendProvince = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendProvince]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldTranFee))
     {
         TranFee = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldTranFee]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendDeparture))
     {
         SendDeparture = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendDeparture]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendPhone))
     {
         SendPhone = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendPhone]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendCity))
     {
         SendCity = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendCity]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldGoodsName))
     {
         GoodsName = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldGoodsName]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldWeight))
     {
         Weight = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldWeight]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldHeight))
     {
         Height = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldHeight]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldReceiveCounty))
     {
         ReceiveCounty = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldReceiveCounty]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldReceiveDestination))
     {
         ReceiveDestination = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldReceiveDestination]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendCompany))
     {
         SendCompany = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendCompany]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldCreateOn))
     {
         CreateOn = BaseBusinessLogic.ConvertToDateTime(dr[ZtoPrintBillEntity.FieldCreateOn]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldBillCode))
     {
         BillCode = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldBillCode]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldTotalNumber))
     {
         TotalNumber = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldTotalNumber]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldRemark))
     {
         Remark = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldRemark]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldCreateSite))
     {
         CreateSite = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldCreateSite]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendSite))
     {
         SendSite = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendSite]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldWidth))
     {
         Width = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldWidth]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldReceiveCity))
     {
         ReceiveCity = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldReceiveCity]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendAddress))
     {
         SendAddress = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendAddress]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldSendCounty))
     {
         SendCounty = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldSendCounty]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldReceiveCompany))
     {
         ReceiveCompany = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldReceiveCompany]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldBigPen))
     {
         BigPen = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldBigPen]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldOrderNumber))
     {
         OrderNumber = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldOrderNumber]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldExpressId))
     {
         ExpressId = BaseBusinessLogic.ConvertToString(dr[ZtoPrintBillEntity.FieldExpressId]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldToPayMent))
     {
         TOPAYMENT = BaseBusinessLogic.ConvertToDecimal(dr[ZtoPrintBillEntity.FieldToPayMent]);
     }
     if (dr.ContainsColumn(ZtoPrintBillEntity.FieldGoodsPayMent))
     {
         GOODS_PAYMENT = BaseBusinessLogic.ConvertToDecimal(dr[ZtoPrintBillEntity.FieldGoodsPayMent]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldUserCompanyId))
     {
         UserCompanyId = BaseUtil.ConvertToInt(dr[FieldUserCompanyId]);
     }
     if (dr.ContainsColumn(FieldUserSubCompanyId))
     {
         UserSubCompanyId = BaseUtil.ConvertToInt(dr[FieldUserSubCompanyId]);
     }
     if (dr.ContainsColumn(FieldSource))
     {
         Source = BaseUtil.ConvertToString(dr[FieldSource]);
     }
     if (dr.ContainsColumn(FieldMessageType))
     {
         MessageType = BaseUtil.ConvertToString(dr[FieldMessageType]);
     }
     if (dr.ContainsColumn(FieldRecipient))
     {
         Recipient = BaseUtil.ConvertToString(dr[FieldRecipient]);
     }
     if (dr.ContainsColumn(FieldSubject))
     {
         Subject = BaseUtil.ConvertToString(dr[FieldSubject]);
     }
     if (dr.ContainsColumn(FieldBody))
     {
         Body = BaseUtil.ConvertToString(dr[FieldBody]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldUserFrom))
     {
         UserFrom = BaseUtil.ConvertToString(dr[FieldUserFrom]);
     }
     if (dr.ContainsColumn(FieldUserName))
     {
         UserName = BaseUtil.ConvertToString(dr[FieldUserName]);
     }
     if (dr.ContainsColumn(FieldRealName))
     {
         RealName = BaseUtil.ConvertToString(dr[FieldRealName]);
     }
     if (dr.ContainsColumn(FieldNickName))
     {
         NickName = BaseUtil.ConvertToString(dr[FieldNickName]);
     }
     if (dr.ContainsColumn(FieldAvatarUrl))
     {
         AvatarUrl = BaseUtil.ConvertToString(dr[FieldAvatarUrl]);
     }
     if (dr.ContainsColumn(FieldCode))
     {
         Code = BaseUtil.ConvertToString(dr[FieldCode]);
     }
     if (dr.ContainsColumn(FieldEmployeeNumber))
     {
         EmployeeNumber = BaseUtil.ConvertToString(dr[FieldEmployeeNumber]);
     }
     if (dr.ContainsColumn(FieldIdCard))
     {
         IdCard = BaseUtil.ConvertToString(dr[FieldIdCard]);
     }
     if (dr.ContainsColumn(FieldQuickQuery))
     {
         QuickQuery = BaseUtil.ConvertToString(dr[FieldQuickQuery]);
     }
     if (dr.ContainsColumn(FieldSimpleSpelling))
     {
         SimpleSpelling = BaseUtil.ConvertToString(dr[FieldSimpleSpelling]);
     }
     if (dr.ContainsColumn(FieldCompanyId))
     {
         CompanyId = BaseUtil.ConvertToInt(dr[FieldCompanyId]);
     }
     if (dr.ContainsColumn(FieldCompanyCode))
     {
         CompanyCode = BaseUtil.ConvertToString(dr[FieldCompanyCode]);
     }
     if (dr.ContainsColumn(FieldCompanyName))
     {
         CompanyName = BaseUtil.ConvertToString(dr[FieldCompanyName]);
     }
     if (dr.ContainsColumn(FieldSubCompanyId))
     {
         SubCompanyId = BaseUtil.ConvertToInt(dr[FieldSubCompanyId]);
     }
     if (dr.ContainsColumn(FieldSubCompanyName))
     {
         SubCompanyName = BaseUtil.ConvertToString(dr[FieldSubCompanyName]);
     }
     if (dr.ContainsColumn(FieldDepartmentId))
     {
         DepartmentId = BaseUtil.ConvertToInt(dr[FieldDepartmentId]);
     }
     if (dr.ContainsColumn(FieldDepartmentName))
     {
         DepartmentName = BaseUtil.ConvertToString(dr[FieldDepartmentName]);
     }
     if (dr.ContainsColumn(FieldSubDepartmentId))
     {
         SubDepartmentId = BaseUtil.ConvertToInt(dr[FieldSubDepartmentId]);
     }
     if (dr.ContainsColumn(FieldSubDepartmentName))
     {
         SubDepartmentName = BaseUtil.ConvertToString(dr[FieldSubDepartmentName]);
     }
     if (dr.ContainsColumn(FieldWorkgroupId))
     {
         WorkgroupId = BaseUtil.ConvertToInt(dr[FieldWorkgroupId]);
     }
     if (dr.ContainsColumn(FieldWorkgroupName))
     {
         WorkgroupName = BaseUtil.ConvertToString(dr[FieldWorkgroupName]);
     }
     if (dr.ContainsColumn(FieldWorkCategory))
     {
         WorkCategory = BaseUtil.ConvertToString(dr[FieldWorkCategory]);
     }
     if (dr.ContainsColumn(FieldSecurityLevel))
     {
         SecurityLevel = BaseUtil.ConvertToInt(dr[FieldSecurityLevel]);
     }
     if (dr.ContainsColumn(FieldTitle))
     {
         Title = BaseUtil.ConvertToString(dr[FieldTitle]);
     }
     if (dr.ContainsColumn(FieldDuty))
     {
         Duty = BaseUtil.ConvertToString(dr[FieldDuty]);
     }
     if (dr.ContainsColumn(FieldLang))
     {
         Lang = BaseUtil.ConvertToString(dr[FieldLang]);
     }
     if (dr.ContainsColumn(FieldGender))
     {
         Gender = BaseUtil.ConvertToString(dr[FieldGender]);
     }
     if (dr.ContainsColumn(FieldBirthday))
     {
         Birthday = BaseUtil.ConvertToNullableDateTime(dr[FieldBirthday]);
     }
     if (dr.ContainsColumn(FieldScore))
     {
         Score = BaseUtil.ConvertToNullableInt(dr[FieldScore]);
     }
     if (dr.ContainsColumn(FieldFans))
     {
         Fans = BaseUtil.ConvertToNullableInt(dr[FieldFans]);
     }
     if (dr.ContainsColumn(FieldHomeAddress))
     {
         HomeAddress = BaseUtil.ConvertToString(dr[FieldHomeAddress]);
     }
     if (dr.ContainsColumn(FieldSignature))
     {
         Signature = BaseUtil.ConvertToString(dr[FieldSignature]);
     }
     if (dr.ContainsColumn(FieldTheme))
     {
         Theme = BaseUtil.ConvertToString(dr[FieldTheme]);
     }
     if (dr.ContainsColumn(FieldIsStaff))
     {
         IsStaff = BaseUtil.ConvertToInt(dr[FieldIsStaff]);
     }
     if (dr.ContainsColumn(FieldIsVisible))
     {
         IsVisible = BaseUtil.ConvertToInt(dr[FieldIsVisible]);
     }
     if (dr.ContainsColumn(FieldCountry))
     {
         Country = BaseUtil.ConvertToString(dr[FieldCountry]);
     }
     if (dr.ContainsColumn(FieldState))
     {
         State = BaseUtil.ConvertToString(dr[FieldState]);
     }
     if (dr.ContainsColumn(FieldProvince))
     {
         Province = BaseUtil.ConvertToString(dr[FieldProvince]);
     }
     if (dr.ContainsColumn(FieldCity))
     {
         City = BaseUtil.ConvertToString(dr[FieldCity]);
     }
     if (dr.ContainsColumn(FieldDistrict))
     {
         District = BaseUtil.ConvertToString(dr[FieldDistrict]);
     }
     if (dr.ContainsColumn(FieldAuditStatus))
     {
         AuditStatus = BaseUtil.ConvertToString(dr[FieldAuditStatus]);
     }
     if (dr.ContainsColumn(FieldManagerUserId))
     {
         ManagerUserId = BaseUtil.ConvertToInt(dr[FieldManagerUserId]);
     }
     if (dr.ContainsColumn(FieldIsAdministrator))
     {
         IsAdministrator = BaseUtil.ConvertToInt(dr[FieldIsAdministrator]);
     }
     if (dr.ContainsColumn(FieldIsCheckBalance))
     {
         IsCheckBalance = BaseUtil.ConvertToInt(dr[FieldIsCheckBalance]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
Example #24
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldSystemCode))
     {
         SystemCode = BaseUtil.ConvertToString(dr[FieldSystemCode]);
     }
     if (dr.ContainsColumn(FieldParentId))
     {
         ParentId = BaseUtil.ConvertToInt(dr[FieldParentId]);
     }
     if (dr.ContainsColumn(FieldCode))
     {
         Code = BaseUtil.ConvertToString(dr[FieldCode]);
     }
     if (dr.ContainsColumn(FieldName))
     {
         Name = BaseUtil.ConvertToString(dr[FieldName]);
     }
     if (dr.ContainsColumn(FieldCategoryCode))
     {
         CategoryCode = BaseUtil.ConvertToString(dr[FieldCategoryCode]);
     }
     if (dr.ContainsColumn(FieldImageUrl))
     {
         ImageUrl = BaseUtil.ConvertToString(dr[FieldImageUrl]);
     }
     if (dr.ContainsColumn(FieldImageIndex))
     {
         ImageIndex = BaseUtil.ConvertToString(dr[FieldImageIndex]);
     }
     if (dr.ContainsColumn(FieldSelectedImageIndex))
     {
         SelectedImageIndex = BaseUtil.ConvertToString(dr[FieldSelectedImageIndex]);
     }
     if (dr.ContainsColumn(FieldNavigateUrl))
     {
         NavigateUrl = BaseUtil.ConvertToString(dr[FieldNavigateUrl]);
     }
     if (dr.ContainsColumn(FieldTarget))
     {
         Target = BaseUtil.ConvertToString(dr[FieldTarget]);
     }
     if (dr.ContainsColumn(FieldFormName))
     {
         FormName = BaseUtil.ConvertToString(dr[FieldFormName]);
     }
     if (dr.ContainsColumn(FieldAssemblyName))
     {
         AssemblyName = BaseUtil.ConvertToString(dr[FieldAssemblyName]);
     }
     if (dr.ContainsColumn(FieldPermissionScopeTables))
     {
         PermissionScopeTables = BaseUtil.ConvertToString(dr[FieldPermissionScopeTables]);
     }
     if (dr.ContainsColumn(FieldIsMenu))
     {
         IsMenu = BaseUtil.ConvertToInt(dr[FieldIsMenu]);
     }
     if (dr.ContainsColumn(FieldIsPublic))
     {
         IsPublic = BaseUtil.ConvertToInt(dr[FieldIsPublic]);
     }
     if (dr.ContainsColumn(FieldIsExpand))
     {
         IsExpand = BaseUtil.ConvertToInt(dr[FieldIsExpand]);
     }
     if (dr.ContainsColumn(FieldIsScope))
     {
         IsScope = BaseUtil.ConvertToInt(dr[FieldIsScope]);
     }
     if (dr.ContainsColumn(FieldIsVisible))
     {
         IsVisible = BaseUtil.ConvertToInt(dr[FieldIsVisible]);
     }
     if (dr.ContainsColumn(FieldAllowEdit))
     {
         AllowEdit = BaseUtil.ConvertToInt(dr[FieldAllowEdit]);
     }
     if (dr.ContainsColumn(FieldAllowDelete))
     {
         AllowDelete = BaseUtil.ConvertToInt(dr[FieldAllowDelete]);
     }
     if (dr.ContainsColumn(FieldLastCall))
     {
         LastCall = BaseUtil.ConvertToNullableDateTime(dr[FieldLastCall]);
     }
     if (dr.ContainsColumn(FieldWebBrowser))
     {
         WebBrowser = BaseUtil.ConvertToString(dr[FieldWebBrowser]);
     }
     if (dr.ContainsColumn(FieldAuthorizedDays))
     {
         AuthorizedDays = BaseUtil.ConvertToInt(dr[FieldAuthorizedDays]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
Example #25
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldSendPhone))
     {
         SendPhone = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldSendPhone]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldReceiveMan))
     {
         ReceiveMan = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldReceiveMan]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldCreateUserName))
     {
         CreateUserName = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldCreateUserName]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldModifiedSite))
     {
         ModifiedSite = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldModifiedSite]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldModifiedUserName))
     {
         ModifiedUserName = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldModifiedUserName]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldCreateOn))
     {
         CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[ZtoPrintCancelEntity.FieldCreateOn]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldOrderNumber))
     {
         OrderNumber = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldOrderNumber]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldBillCode))
     {
         BillCode = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldBillCode]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldSendMan))
     {
         SendMan = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldSendMan]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldRemark))
     {
         Remark = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldRemark]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldModifiedOn))
     {
         ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[ZtoPrintCancelEntity.FieldModifiedOn]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldCreateSite))
     {
         CreateSite = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldCreateSite]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldReceiveAddress))
     {
         ReceiveAddress = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldReceiveAddress]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldId))
     {
         Id = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldId]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldReceivePhone))
     {
         ReceivePhone = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldReceivePhone]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldSendAddress))
     {
         SendAddress = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldSendAddress]);
     }
     if (dr.ContainsColumn(ZtoPrintCancelEntity.FieldSendProvince))
     {
         SendProvince = BaseBusinessLogic.ConvertToString(dr[ZtoPrintCancelEntity.FieldSendProvince]);
     }
     return(this);
 }
Example #26
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldUserId))
     {
         UserId = BaseUtil.ConvertToInt(dr[FieldUserId]);
     }
     if (dr.ContainsColumn(FieldShowEmail))
     {
         ShowEmail = BaseUtil.ConvertToInt(dr[FieldShowEmail]);
     }
     if (dr.ContainsColumn(FieldEmail))
     {
         Email = BaseUtil.ConvertToString(dr[FieldEmail]);
     }
     if (dr.ContainsColumn(FieldEmailValidated))
     {
         EmailValidated = BaseUtil.ConvertToInt(dr[FieldEmailValidated]);
     }
     if (dr.ContainsColumn(FieldShowMobile))
     {
         ShowMobile = BaseUtil.ConvertToNullableByteInt(dr[FieldShowMobile]);
     }
     if (dr.ContainsColumn(FieldMobile))
     {
         Mobile = BaseUtil.ConvertToString(dr[FieldMobile]);
     }
     if (dr.ContainsColumn(FieldMobileValidated))
     {
         MobileValidated = BaseUtil.ConvertToInt(dr[FieldMobileValidated]);
     }
     if (dr.ContainsColumn(FieldMobileValidatedTime))
     {
         MobileValidatedTime = BaseUtil.ConvertToNullableDateTime(dr[FieldMobileValidatedTime]);
     }
     if (dr.ContainsColumn(FieldShortNumber))
     {
         ShortNumber = BaseUtil.ConvertToString(dr[FieldShortNumber]);
     }
     if (dr.ContainsColumn(FieldTelephone))
     {
         Telephone = BaseUtil.ConvertToString(dr[FieldTelephone]);
     }
     if (dr.ContainsColumn(FieldExtension))
     {
         Extension = BaseUtil.ConvertToString(dr[FieldExtension]);
     }
     if (dr.ContainsColumn(FieldQq))
     {
         Qq = BaseUtil.ConvertToString(dr[FieldQq]);
     }
     if (dr.ContainsColumn(FieldWw))
     {
         Ww = BaseUtil.ConvertToString(dr[FieldWw]);
     }
     if (dr.ContainsColumn(FieldIm))
     {
         Im = BaseUtil.ConvertToString(dr[FieldIm]);
     }
     if (dr.ContainsColumn(FieldWeChat))
     {
         WeChat = BaseUtil.ConvertToString(dr[FieldWeChat]);
     }
     if (dr.ContainsColumn(FieldWeChatValidated))
     {
         WeChatValidated = BaseUtil.ConvertToInt(dr[FieldWeChatValidated]);
     }
     if (dr.ContainsColumn(FieldWeChatOpenId))
     {
         WeChatOpenId = BaseUtil.ConvertToString(dr[FieldWeChatOpenId]);
     }
     if (dr.ContainsColumn(FieldCompanyId))
     {
         CompanyId = BaseUtil.ConvertToInt(dr[FieldCompanyId]);
     }
     if (dr.ContainsColumn(FieldCompanyEmail))
     {
         CompanyEmail = BaseUtil.ConvertToString(dr[FieldCompanyEmail]);
     }
     if (dr.ContainsColumn(FieldEmergencyContact))
     {
         EmergencyContact = BaseUtil.ConvertToString(dr[FieldEmergencyContact]);
     }
     if (dr.ContainsColumn(FieldEmergencyMobile))
     {
         EmergencyMobile = BaseUtil.ConvertToString(dr[FieldEmergencyMobile]);
     }
     if (dr.ContainsColumn(FieldEmergencyTelephone))
     {
         EmergencyTelephone = BaseUtil.ConvertToString(dr[FieldEmergencyTelephone]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldSystemCode))
     {
         SystemCode = BaseUtil.ConvertToString(dr[FieldSystemCode]);
     }
     if (dr.ContainsColumn(FieldTableName))
     {
         TableName = BaseUtil.ConvertToString(dr[FieldTableName]);
     }
     if (dr.ContainsColumn(FieldTableDescription))
     {
         TableDescription = BaseUtil.ConvertToString(dr[FieldTableDescription]);
     }
     if (dr.ContainsColumn(FieldColumnName))
     {
         ColumnName = BaseUtil.ConvertToString(dr[FieldColumnName]);
     }
     if (dr.ContainsColumn(FieldColumnDescription))
     {
         ColumnDescription = BaseUtil.ConvertToString(dr[FieldColumnDescription]);
     }
     if (dr.ContainsColumn(FieldRecordKey))
     {
         RecordKey = BaseUtil.ConvertToString(dr[FieldRecordKey]);
     }
     if (dr.ContainsColumn(FieldOldKey))
     {
         OldKey = BaseUtil.ConvertToString(dr[FieldOldKey]);
     }
     if (dr.ContainsColumn(FieldOldValue))
     {
         OldValue = BaseUtil.ConvertToString(dr[FieldOldValue]);
     }
     if (dr.ContainsColumn(FieldNewKey))
     {
         NewKey = BaseUtil.ConvertToString(dr[FieldNewKey]);
     }
     if (dr.ContainsColumn(FieldNewValue))
     {
         NewValue = BaseUtil.ConvertToString(dr[FieldNewValue]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
Example #28
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldSystemCode))
     {
         SystemCode = BaseUtil.ConvertToString(dr[FieldSystemCode]);
     }
     if (dr.ContainsColumn(FieldResourceCategory))
     {
         ResourceCategory = BaseUtil.ConvertToString(dr[FieldResourceCategory]);
     }
     if (dr.ContainsColumn(FieldResourceId))
     {
         ResourceId = BaseUtil.ConvertToString(dr[FieldResourceId]);
     }
     if (dr.ContainsColumn(FieldPermissionId))
     {
         PermissionId = BaseUtil.ConvertToString(dr[FieldPermissionId]);
     }
     if (dr.ContainsColumn(FieldCompanyId))
     {
         CompanyId = BaseUtil.ConvertToInt(dr[FieldCompanyId]);
     }
     if (dr.ContainsColumn(FieldCompanyName))
     {
         CompanyName = BaseUtil.ConvertToString(dr[FieldCompanyName]);
     }
     if (dr.ContainsColumn(FieldPermissionConstraint))
     {
         PermissionConstraint = BaseUtil.ConvertToString(dr[FieldPermissionConstraint]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExtend(dr);
     if (dr.ContainsColumn(FieldId))
     {
         Id = BaseUtil.ConvertToInt(dr[FieldId]);
     }
     if (dr.ContainsColumn(FieldName))
     {
         Name = BaseUtil.ConvertToString(dr[FieldName]);
     }
     if (dr.ContainsColumn(FieldPrefix))
     {
         Prefix = BaseUtil.ConvertToString(dr[FieldPrefix]);
     }
     if (dr.ContainsColumn(FieldDelimiter))
     {
         Delimiter = BaseUtil.ConvertToString(dr[FieldDelimiter]);
     }
     if (dr.ContainsColumn(FieldSequence))
     {
         Sequence = BaseUtil.ConvertToInt(dr[FieldSequence]);
     }
     if (dr.ContainsColumn(FieldReduction))
     {
         Reduction = BaseUtil.ConvertToInt(dr[FieldReduction]);
     }
     if (dr.ContainsColumn(FieldStep))
     {
         Step = BaseUtil.ConvertToInt(dr[FieldStep]);
     }
     if (dr.ContainsColumn(FieldIsVisible))
     {
         IsVisible = BaseUtil.ConvertToInt(dr[FieldIsVisible]);
     }
     if (dr.ContainsColumn(FieldDescription))
     {
         Description = BaseUtil.ConvertToString(dr[FieldDescription]);
     }
     if (dr.ContainsColumn(FieldSortCode))
     {
         SortCode = BaseUtil.ConvertToInt(dr[FieldSortCode]);
     }
     if (dr.ContainsColumn(FieldDeleted))
     {
         Deleted = BaseUtil.ConvertToInt(dr[FieldDeleted]);
     }
     if (dr.ContainsColumn(FieldEnabled))
     {
         Enabled = BaseUtil.ConvertToInt(dr[FieldEnabled]);
     }
     if (dr.ContainsColumn(FieldCreateTime))
     {
         CreateTime = BaseUtil.ConvertToDateTime(dr[FieldCreateTime]);
     }
     if (dr.ContainsColumn(FieldCreateUserId))
     {
         CreateUserId = BaseUtil.ConvertToInt(dr[FieldCreateUserId]);
     }
     if (dr.ContainsColumn(FieldCreateUserName))
     {
         CreateUserName = BaseUtil.ConvertToString(dr[FieldCreateUserName]);
     }
     if (dr.ContainsColumn(FieldCreateBy))
     {
         CreateBy = BaseUtil.ConvertToString(dr[FieldCreateBy]);
     }
     if (dr.ContainsColumn(FieldCreateIp))
     {
         CreateIp = BaseUtil.ConvertToString(dr[FieldCreateIp]);
     }
     if (dr.ContainsColumn(FieldUpdateTime))
     {
         UpdateTime = BaseUtil.ConvertToDateTime(dr[FieldUpdateTime]);
     }
     if (dr.ContainsColumn(FieldUpdateUserId))
     {
         UpdateUserId = BaseUtil.ConvertToInt(dr[FieldUpdateUserId]);
     }
     if (dr.ContainsColumn(FieldUpdateBy))
     {
         UpdateBy = BaseUtil.ConvertToString(dr[FieldUpdateBy]);
     }
     if (dr.ContainsColumn(FieldUpdateUserName))
     {
         UpdateUserName = BaseUtil.ConvertToString(dr[FieldUpdateUserName]);
     }
     if (dr.ContainsColumn(FieldUpdateIp))
     {
         UpdateIp = BaseUtil.ConvertToString(dr[FieldUpdateIp]);
     }
     return(this);
 }
Example #30
0
        /// <summary>
        /// 从数据行读取
        /// </summary>
        /// <param name="dr">数据行</param>
        protected override BaseEntity GetFrom(IDataRow dr)
        {
            Id           = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldId]);
            ParentId     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldParentId]);
            ParentName   = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldParentName]);
            Layer        = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldLayer]);
            Code         = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCode]);
            FullName     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldFullName]);
            ShortName    = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldShortName]);
            StandardName = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldStandardName]);
            StandardCode = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldStandardCode]);

            QuickQuery     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldQuickQuery]);
            SimpleSpelling = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldSimpleSpelling]);
            CategoryCode   = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCategoryCode]);
            OuterPhone     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldOuterPhone]);
            InnerPhone     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldInnerPhone]);
            Fax            = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldFax]);
            Postalcode     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldPostalcode]);

            ProvinceId = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldProvinceId]);
            Province   = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldProvince]);
            CityId     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCityId]);
            City       = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCity]);
            DistrictId = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldDistrictId]);
            District   = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldDistrict]);
            StreetId   = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldStreetId]);
            Street     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldStreet]);

            Address         = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldAddress]);
            Web             = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldWeb]);
            IsInnerOrganize = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldIsInnerOrganize]);
            Bank            = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldBank]);
            BankAccount     = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldBankAccount]);

            CompanyId   = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCompanyId]);
            CompanyCode = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCompanyCode]);
            CompanyName = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCompanyName]);

            if (dr.ContainsColumn(BaseOrganizeEntity.FieldCostCenterId))
            {
                CostCenterId = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCostCenterId]);
            }
            CostCenter = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCostCenter]);
            if (dr.ContainsColumn(BaseOrganizeEntity.FieldFinancialCenterId))
            {
                FinancialCenterId = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldFinancialCenterId]);
            }
            FinancialCenter = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldFinancialCenter]);
            if (dr.ContainsColumn(BaseOrganizeEntity.FieldManageId))
            {
                ManageId = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldManageId]);
            }
            if (dr.ContainsColumn(BaseOrganizeEntity.FieldManageName))
            {
                ManageName = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldManageName]);
            }
            Area           = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldArea]);
            JoiningMethods = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldJoiningMethods]);

            DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldDeletionStateCode]);
            Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldEnabled]);
            SortCode          = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeEntity.FieldSortCode]);
            Description       = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldDescription]);
            CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeEntity.FieldCreateOn]);
            CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCreateUserId]);
            CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldCreateBy]);
            ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeEntity.FieldModifiedOn]);
            ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldModifiedUserId]);
            ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeEntity.FieldModifiedBy]);
            // 获取扩展属性
            GetFromExpand(dr);
            return(this);
        }