Esempio n. 1
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dr">数据流</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id             = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldId]);
     CompanyId      = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldCompanyId]);
     CompanyName    = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldCompanyName]);
     DepartmentId   = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldDepartmentId]);
     DepartmentName = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldDepartmentName]);
     UserId         = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldUserId]);
     UserName       = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldUserName]);
     CheckInDay     = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldCheckInDay]);
     AMStartTime    = BaseBusinessLogic.ConvertToNullableDateTime(dr[HRCheckInEntity.FieldAMStartTime]);
     AMStartIp      = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldAMStartIp]);
     AMEndTime      = BaseBusinessLogic.ConvertToNullableDateTime(dr[HRCheckInEntity.FieldAMEndTime]);
     AMEndIp        = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldAMEndIp]);
     PMStartTime    = BaseBusinessLogic.ConvertToNullableDateTime(dr[HRCheckInEntity.FieldPMStartTime]);
     PMStartIp      = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldPMStartIp]);
     PMEndTime      = BaseBusinessLogic.ConvertToNullableDateTime(dr[HRCheckInEntity.FieldPMEndTime]);
     PMEndIp        = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldPMEndIp]);
     NightStartTime = BaseBusinessLogic.ConvertToNullableDateTime(dr[HRCheckInEntity.FieldNightStartTime]);
     NightStartIp   = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldNightStartIp]);
     NightEndTime   = BaseBusinessLogic.ConvertToNullableDateTime(dr[HRCheckInEntity.FieldNightEndTime]);
     NightEndIp     = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldNightEndIp]);
     CreateOn       = BaseBusinessLogic.ConvertToNullableDateTime(dr[HRCheckInEntity.FieldCreateOn]);
     CreateUserId   = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldCreateUserId]);
     CreateBy       = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldCreateBy]);
     ModifiedOn     = BaseBusinessLogic.ConvertToNullableDateTime(dr[HRCheckInEntity.FieldModifiedOn]);
     ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldModifiedUserId]);
     ModifiedBy     = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldModifiedBy]);
     Description    = BaseBusinessLogic.ConvertToString(dr[HRCheckInEntity.FieldDescription]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 2
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     Id = BaseBusinessLogic.ConvertToDecimal(dr[BaseOrganize_ExpressEntity.FieldID]);
     Not_Dispatch_Range    = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldNot_Dispatch_Range]);
     Scan_Select           = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganize_ExpressEntity.FieldScan_Select]);
     Site_Prior            = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganize_ExpressEntity.FieldSite_Prior]);
     ModifiedUserId        = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldModifiedUserId]);
     Private_Remark        = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldPrivate_Remark]);
     Public_Remark         = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldPublic_Remark]);
     Dispatch_Time_Limit   = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldDispatch_Time_Limit]);
     Agent_Money_Limited   = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganize_ExpressEntity.FieldAgent_Money_Limited]);
     CreateBy              = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldCreateBy]);
     Default_Send_Place    = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldDefault_Send_Place]);
     CreateOn              = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganize_ExpressEntity.FieldCreateOn]);
     Dispatch_Range        = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldDispatch_Range]);
     Allow_ToPayment       = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganize_ExpressEntity.FieldAllow_ToPayment]);
     CreateUserId          = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldCreateUserId]);
     Allow_Agent_Money     = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganize_ExpressEntity.FieldAllow_Agent_Money]);
     ModifiedOn            = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganize_ExpressEntity.FieldModifiedOn]);
     Dispatch_OutRange_Fee = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganize_ExpressEntity.FieldDispatch_OutRange_Fee]);
     Currency              = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldCurrency]);
     Dispatch_Range_Fee    = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganize_ExpressEntity.FieldDispatch_Range_Fee]);
     ModifiedBy            = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldModifiedBy]);
     Dispatch_Money_Desc   = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldDispatch_Money_Desc]);
     WebSiteName           = BaseBusinessLogic.ConvertToString(dr[BaseOrganize_ExpressEntity.FieldWebSiteName]);
     return(this);
 }
Esempio n. 3
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowProcessEntity.FieldId]);
     UserId            = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldUserId]);
     OrganizeId        = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldOrganizeId]);
     BillTemplateId    = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldBillTemplateId]);
     AuditCategoryCode = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldAuditCategoryCode]);
     CallBackClass     = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldCallBackClass]);
     CallBackTable     = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldCallBackTable]);
     CategoryCode      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldCategoryCode]);
     Code              = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldCode]);
     FullName          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldFullName]);
     Contents          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldContents]);
     CommitmentDays    = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowProcessEntity.FieldCommitmentDays]);
     EnterConstraint   = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowActivityEntity.FieldEnterConstraint]);
     SortCode          = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowProcessEntity.FieldSortCode]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowProcessEntity.FieldEnabled]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowProcessEntity.FieldDeletionStateCode]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldDescription]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowProcessEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowProcessEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldModifiedBy]);
     CallBackAssembly  = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowProcessEntity.FieldCallBackAssembly]);
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldId]);
     Title             = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldTitle]);
     Code              = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldCode]);
     CategoryCode      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldCategoryCode]);
     Introduction      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldIntroduction]);
     Contents          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldContents]);
     TemplateType      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldTemplateType]);
     UseWorkFlow       = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowBillTemplateEntity.FieldUseWorkFlow]);
     AddPage           = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldAddPage]);
     EditPage          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldEditPage]);
     ShowPage          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldShowPage]);
     ListPage          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldListPage]);
     AdminPage         = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldAdminPage]);
     AuditStatus       = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldAuditStatus]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowBillTemplateEntity.FieldDeletionStateCode]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldDescription]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowBillTemplateEntity.FieldEnabled]);
     SortCode          = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowBillTemplateEntity.FieldSortCode]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowBillTemplateEntity.FieldCreateOn]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldCreateBy]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldCreateUserId]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowBillTemplateEntity.FieldModifiedOn]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldModifiedBy]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowBillTemplateEntity.FieldModifiedUserId]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 5
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldId]);
     DepartmentId      = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldDepartmentId]);
     DepartmentName    = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldDepartmentName]);
     ParentId          = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldParentId]);
     CategoryCode      = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldCategoryCode]);
     ObjectId          = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldObjectId]);
     TargetURL         = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldTargetURL]);
     Title             = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldTitle]);
     Contents          = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldContents]);
     IPAddress         = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldIPAddress]);
     Worked            = BaseBusinessLogic.ConvertToInt(dr[BaseCommentEntity.FieldWorked]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseCommentEntity.FieldDeletionStateCode]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseCommentEntity.FieldEnabled]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldDescription]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseCommentEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseCommentEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseCommentEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 6
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                     = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldId]);
     ParentId               = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldParentId]);
     ReceiverDepartmentId   = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldReceiverDepartmentId]);
     ReceiverDepartmentName = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldReceiverDepartmentName]);
     ReceiverId             = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldReceiverId]);
     ReceiverRealName       = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldReceiverRealName]);
     FunctionCode           = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldFunctionCode]);
     CategoryCode           = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldCategoryCode]);
     ObjectId               = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldObjectId]);
     Title                  = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldTitle]);
     Contents               = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldContents]);
     QQ                     = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldQQ]);
     Email                  = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldEmail]);
     Telephone              = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldTelephone]);
     IsNew                  = BaseBusinessLogic.ConvertToInt(dr[BaseMessageEntity.FieldIsNew]);
     ReadCount              = BaseBusinessLogic.ConvertToInt(dr[BaseMessageEntity.FieldReadCount]);
     ReadDate               = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseMessageEntity.FieldReadDate]);
     TargetURL              = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldTargetURL]);
     IPAddress              = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldIPAddress]);
     DeletionStateCode      = BaseBusinessLogic.ConvertToInt(dr[BaseMessageEntity.FieldDeletionStateCode]);
     CreateCompanyId        = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldCreateCompanyId]);
     CreateCompanyName      = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldCreateCompanyName]);
     CreateDepartmentId     = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldCreateDepartmentId]);
     CreateDepartmentName   = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldCreateDepartmentName]);
     CreateUserId           = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldCreateUserId]);
     CreateBy               = BaseBusinessLogic.ConvertToString(dr[BaseMessageEntity.FieldCreateBy]);
     CreateOn               = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseMessageEntity.FieldCreateOn]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 7
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToInt(dr[BaseDepartmentEntity.FieldId]);
     ParentId          = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldParentId]);
     Code              = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldCode]);
     FullName          = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldFullName]);
     ShortName         = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldShortName]);
     CategoryCode      = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldCategoryCode]);
     OuterPhone        = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldOuterPhone]);
     InnerPhone        = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldInnerPhone]);
     Fax               = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldFax]);
     Manager           = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldManager]);
     ManagerMobile     = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldManagerMobile]);
     ManagerQQ         = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldManagerQQ]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseDepartmentEntity.FieldDeletionStateCode]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseDepartmentEntity.FieldEnabled]);
     SortCode          = BaseBusinessLogic.ConvertToInt(dr[BaseDepartmentEntity.FieldSortCode]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldDescription]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseDepartmentEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseDepartmentEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldModifiedBy]);
     ParentName        = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldParentName]);
     CompanyId         = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldCompanyId]);
     CompanyName       = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldCompanyName]);
     CompanyCode       = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldCompanyCode]);
     CategoryName      = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldCategoryName]);
     ParentCode        = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldParentCode]);
     ManagerId         = BaseBusinessLogic.ConvertToString(dr[BaseDepartmentEntity.FieldManagerId]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 8
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldId]);
     UserId            = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldUserId]);
     RealName          = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldRealName]);
     ProvinceId        = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldProvinceId]);
     Province          = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldProvince]);
     CityId            = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldCityId]);
     City              = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldCity]);
     AreaId            = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldAreaId]);
     Area              = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldArea]);
     Address           = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldAddress]);
     PostCode          = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldPostCode]);
     Phone             = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldPhone]);
     Fax               = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldFax]);
     Mobile            = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldMobile]);
     Email             = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldEmail]);
     DeliverCategory   = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldDeliverCategory]);
     SortCode          = BaseBusinessLogic.ConvertToInt(dr[BaseUserAddressEntity.FieldSortCode]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseUserAddressEntity.FieldDeletionStateCode]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseUserAddressEntity.FieldEnabled]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldDescription]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserAddressEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserAddressEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseUserAddressEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     Id = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldId]);
     ResourceCategory  = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldResourceCategory]);
     ResourceId        = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldResourceId]);
     PermissionId      = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldPermissionId]);
     AllData           = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldAllData]);
     Province          = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldProvince]);
     City              = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldCity]);
     District          = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldDistrict]);
     Street            = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldStreet]);
     UserCompany       = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserCompany]);
     UserSubCompany    = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserSubCompany]);
     UserDepartment    = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserDepartment]);
     UserSubDepartment = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserSubDepartment]);
     UserWorkgroup     = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserWorkgroup]);
     OnlyOwnData       = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldOnlyOwnData]);
     NotAllowed        = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldNotAllowed]);
     ByDetails         = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldByDetails]);
     ContainChild      = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldContainChild]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldEnabled]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldDeletionStateCode]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldDescription]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeScopeEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeScopeEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldModifiedBy]);
     return(this);
 }
Esempio n. 10
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);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id = BaseBusinessLogic.ConvertToDecimal(dr[BaseOrganizeExpressEntity.FieldID]);
     NotDispatchRange    = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldNotDispatchRange]);
     ScanSelect          = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeExpressEntity.FieldScanSelect]);
     SitePrior           = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeExpressEntity.FieldSitePrior]);
     ModifiedUserId      = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldModifiedUserId]);
     PrivateRemark       = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldPrivateRemark]);
     PublicRemark        = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldPublicRemark]);
     DispatchTimeLimit   = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldDispatchTimeLimit]);
     AgentMoneyLimited   = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeExpressEntity.FieldAgentMoneyLimited]);
     CreateBy            = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldCreateBy]);
     DefaultSendPlace    = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldDefaultSendPlace]);
     CreateOn            = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeExpressEntity.FieldCreateOn]);
     DispatchRange       = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldDispatchRange]);
     AllowToPayment      = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeExpressEntity.FieldAllowToPayment]);
     CreateUserId        = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldCreateUserId]);
     AllowAgentMoney     = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeExpressEntity.FieldAllowAgentMoney]);
     ModifiedOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeExpressEntity.FieldModifiedOn]);
     DispatchOutRangeFee = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeExpressEntity.FieldDispatchOutRangeFee]);
     Currency            = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldCurrency]);
     DispatchRangeFee    = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeExpressEntity.FieldDispatchRangeFee]);
     ModifiedBy          = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldModifiedBy]);
     DispatchMoneyDesc   = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldDispatchMoneyDesc]);
     WebSiteName         = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldWebSiteName]);
     WebEnabled          = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeExpressEntity.FieldWebEnabled]);
     InternalDispatch    = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeExpressEntity.FieldInternalDispatch]);
     IsTransferCenter    = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeExpressEntity.FieldIsTransferCenter]);
     IsErpOpen           = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeExpressEntity.FieldIsErpOpen]);
     IsReceiveOrder      = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeExpressEntity.FieldIsReceiveOrder]);
     IsReceiveComplain   = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeExpressEntity.FieldIsReceiveComplain]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 12
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id              = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldId]);
     CompanyId       = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldCompanyId]);
     CompanyCode     = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldCompanyCode]);
     CompanyName     = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldCompanyName]);
     DepartmentName  = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldDepartmentName]);
     DbCode          = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldDbCode]);
     DataCategory    = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldDataCategory]);
     FullName        = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldFullName]);
     FilePath        = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldFilePath]);
     FileName        = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldFileName]);
     ProcessingStart = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseExportDataEntity.FieldProcessingStart]);
     ProcessingEnd   = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseExportDataEntity.FieldProcessingEnd]);
     ExportSql       = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldExportSql]);
     Permission      = BaseBusinessLogic.ConvertToInt(dr[BaseExportDataEntity.FieldPermission]);
     ExportState     = BaseBusinessLogic.ConvertToInt(dr[BaseExportDataEntity.FieldExportState]);
     SeverAddress    = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldSeverAddress]);
     Description     = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldDescription]);
     CreateOn        = BaseBusinessLogic.ConvertToDateTime(dr[BaseExportDataEntity.FieldCreateOn]);
     CreateUserId    = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldCreateUserId]);
     CreateBy        = BaseBusinessLogic.ConvertToString(dr[BaseExportDataEntity.FieldCreateBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 13
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.ConvertToInt(dr[BaseMessageRecentEntity.FieldId]);
     UserId         = BaseBusinessLogic.ConvertToInt(dr[BaseMessageRecentEntity.FieldUserId]);
     TargetCategory = BaseBusinessLogic.ConvertToString(dr[BaseMessageRecentEntity.FieldTargetCategory]);
     TargetId       = BaseBusinessLogic.ConvertToString(dr[BaseMessageRecentEntity.FieldTargetId]);
     RealName       = BaseBusinessLogic.ConvertToString(dr[BaseMessageRecentEntity.FieldRealName]);
     CompanyName    = BaseBusinessLogic.ConvertToString(dr[BaseMessageRecentEntity.FieldCompanyName]);
     DepartmentName = BaseBusinessLogic.ConvertToString(dr[BaseMessageRecentEntity.FieldDepartmentName]);
     ModifiedOn     = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseMessageRecentEntity.FieldModifiedOn]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 15
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     ID               = BaseBusinessLogic.ConvertToDecimal(dr[BaseStaff_ExpressEntity.FieldID]);
     ModifiedOn       = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseStaff_ExpressEntity.FieldModifiedOn]);
     TRANSFER_ADD_FEE = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseStaff_ExpressEntity.FieldTRANSFER_ADD_FEE]);
     OWNER_RANGE      = BaseBusinessLogic.ConvertToString(dr[BaseStaff_ExpressEntity.FieldOWNER_RANGE]);
     ModifiedUserId   = BaseBusinessLogic.ConvertToString(dr[BaseStaff_ExpressEntity.FieldModifiedUserId]);
     DISPATCH_ADD_FEE = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseStaff_ExpressEntity.FieldDISPATCH_ADD_FEE]);
     ModifiedBy       = BaseBusinessLogic.ConvertToString(dr[BaseStaff_ExpressEntity.FieldModifiedBy]);
     CreateBy         = BaseBusinessLogic.ConvertToString(dr[BaseStaff_ExpressEntity.FieldCreateBy]);
     CreateOn         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseStaff_ExpressEntity.FieldCreateOn]);
     CreateUserId     = BaseBusinessLogic.ConvertToString(dr[BaseStaff_ExpressEntity.FieldCreateUserId]);
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id         = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeLogOnEntity.FieldId]);
     Agree      = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeLogOnEntity.FieldAgree]);
     Oppose     = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeLogOnEntity.FieldOppose]);
     FirstVisit = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeLogOnEntity.FieldFirstVisit]);
     LastVisit  = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeLogOnEntity.FieldLastVisit]);
     LogOnCount = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeLogOnEntity.FieldLogOnCount]);
     ShowCount  = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeLogOnEntity.FieldShowCount]);
     UserOnLine = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeLogOnEntity.FieldUserOnLine]);
     IPAddress  = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeLogOnEntity.FieldIPAddress]);
     ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeEntity.FieldModifiedOn]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 17
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     Id                = BaseBusinessLogic.ConvertToInt(dr[BaseLanguageEntity.FieldId]);
     LanguageCode      = BaseBusinessLogic.ConvertToString(dr[BaseLanguageEntity.FieldLanguageCode]);
     MessageCode       = BaseBusinessLogic.ConvertToString(dr[BaseLanguageEntity.FieldMessageCode]);
     Caption           = BaseBusinessLogic.ConvertToString(dr[BaseLanguageEntity.FieldCaption]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseLanguageEntity.FieldDeletionStateCode]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseLanguageEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseLanguageEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseLanguageEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseLanguageEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseLanguageEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseLanguageEntity.FieldModifiedBy]);
     return(this);
 }
Esempio n. 18
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                   = BaseBusinessLogic.ConvertToString(dr[BaseBillPushEntity.FieldId]);
     BillCode             = BaseBusinessLogic.ConvertToString(dr[BaseBillPushEntity.FieldBillCode]);
     PushCategory         = BaseBusinessLogic.ConvertToString(dr[BaseBillPushEntity.FieldPushCategory]);
     PushTarget           = BaseBusinessLogic.ConvertToString(dr[BaseBillPushEntity.FieldPushTarget]);
     PushTime             = BaseBusinessLogic.ConvertToString(dr[BaseBillPushEntity.FieldPushTime]);
     SubscriptionCategory = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseBillPushEntity.FieldSubscriptionCategory]);
     SubscriptionSource   = BaseBusinessLogic.ConvertToString(dr[BaseBillPushEntity.FieldSubscriptionSource]);
     SubscriptionStatus   = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseBillPushEntity.FieldSubscriptionStatus]);
     CreateOn             = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseBillPushEntity.FieldCreateOn]);
     CreateBy             = BaseBusinessLogic.ConvertToString(dr[BaseBillPushEntity.FieldCreateBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 19
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldId]);
     ParentId          = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldParentId]);
     Code              = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldCode]);
     QuickQuery        = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldQuickQuery]);
     SimpleSpelling    = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldSimpleSpelling]);
     Province          = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldProvince]);
     City              = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldCity]);
     District          = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldDistrict]);
     FullName          = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldFullName]);
     ShortName         = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldShortName]);
     Postalcode        = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldPostalcode]);
     DelayDay          = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldDelayDay]);
     Longitude         = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldLongitude]);
     Latitude          = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldLatitude]);
     NetworkOrders     = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldNetworkOrders]);
     ManageCompanyId   = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldManageCompanyId]);
     ManageCompanyCode = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldManageCompanyCode]);
     ManageCompany     = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldManageCompany]);
     Whole             = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldWhole]);
     Receive           = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldReceive]);
     Send              = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldSend]);
     Layer             = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldLayer]);
     Opening           = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldOpening]);
     AllowToPay        = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldAllowToPay]);
     MaxToPayment      = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldMaxToPayment]);
     AllowGoodsPay     = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldAllowGoodsPay]);
     MaxGoodsPayment   = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldMaxGoodsPayment]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldDeletionStateCode]);
     Mark              = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldMark]);
     PrintMark         = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldPrintMark]);
     OutOfRange        = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldOutOfRange]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldDescription]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldEnabled]);
     Statistics        = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldStatistics]);
     SortCode          = BaseBusinessLogic.ConvertToInt(dr[BaseAreaEntity.FieldSortCode]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseAreaEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseAreaEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseAreaEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 20
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToInt(dr[BaseHolidaysEntity.FieldId]);
     Holiday           = BaseBusinessLogic.ConvertToString(dr[BaseHolidaysEntity.FieldHoliday]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseHolidaysEntity.FieldDeletionStateCode]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseHolidaysEntity.FieldEnabled]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseHolidaysEntity.FieldDescription]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseHolidaysEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseHolidaysEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseHolidaysEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseHolidaysEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseHolidaysEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseHolidaysEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 21
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToDecimal(dr[BaseOrganizeGisEntity.FieldId]);
     Latitude          = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeGisEntity.FieldLatitude]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeGisEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeGisEntity.FieldModifiedUserId]);
     RegionLabelEnable = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeGisEntity.FieldRegionLabelEnable]);
     Address           = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeGisEntity.FieldAddress]);
     WebShowEnable     = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseOrganizeGisEntity.FieldWebShowEnable]);
     Longitude         = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeGisEntity.FieldLongitude]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeGisEntity.FieldModifiedBy]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeGisEntity.FieldCreateBy]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeGisEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeGisEntity.FieldCreateUserId]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 22
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     Id                  = BaseBusinessLogic.ConvertToDecimal(dr[BaseTemplateEntity.FieldId]);
     ExpressId           = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseTemplateEntity.FieldExpressId]);
     CreateUserName      = BaseBusinessLogic.ConvertToString(dr[BaseTemplateEntity.FieldCreateUserName]);
     ModifiedUserName    = BaseBusinessLogic.ConvertToString(dr[BaseTemplateEntity.FieldModifiedUserName]);
     CreateOn            = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseTemplateEntity.FieldCreateOn]);
     Length              = BaseBusinessLogic.ConvertToString(dr[BaseTemplateEntity.FieldLength]);
     Remark              = BaseBusinessLogic.ConvertToString(dr[BaseTemplateEntity.FieldRemark]);
     Name                = BaseBusinessLogic.ConvertToString(dr[BaseTemplateEntity.FieldName]);
     ModifiedOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseTemplateEntity.FieldModifiedOn]);
     BackgroundImagePath = BaseBusinessLogic.ConvertToString(dr[BaseTemplateEntity.FieldBackgroundImagePath]);
     Width               = BaseBusinessLogic.ConvertToString(dr[BaseTemplateEntity.FieldWidth]);
     Layer               = BaseBusinessLogic.ConvertToString(dr[BaseTemplateEntity.FieldLayer]);
     FilePath            = BaseBusinessLogic.ConvertToString(dr[BaseTemplateEntity.FieldFilePath]);
     return(this);
 }
Esempio n. 23
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id             = BaseBusinessLogic.ConvertToString(dr[BaseAreaProvinceMarkEntity.FieldId]);
     AreaId         = BaseBusinessLogic.ConvertToInt(dr[BaseAreaProvinceMarkEntity.FieldAreaId]);
     Area           = BaseBusinessLogic.ConvertToString(dr[BaseAreaProvinceMarkEntity.FieldArea]);
     ProvinceId     = BaseBusinessLogic.ConvertToInt(dr[BaseAreaProvinceMarkEntity.FieldProvinceId]);
     Province       = BaseBusinessLogic.ConvertToString(dr[BaseAreaProvinceMarkEntity.FieldProvince]);
     Mark           = BaseBusinessLogic.ConvertToString(dr[BaseAreaProvinceMarkEntity.FieldMark]);
     Description    = BaseBusinessLogic.ConvertToString(dr[BaseAreaProvinceMarkEntity.FieldDescription]);
     Enabled        = BaseBusinessLogic.ConvertToInt(dr[BaseAreaProvinceMarkEntity.FieldEnabled]);
     CreateOn       = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseAreaProvinceMarkEntity.FieldCreateOn]);
     CreateUserId   = BaseBusinessLogic.ConvertToString(dr[BaseAreaProvinceMarkEntity.FieldCreateUserId]);
     CreateBy       = BaseBusinessLogic.ConvertToString(dr[BaseAreaProvinceMarkEntity.FieldCreateBy]);
     ModifiedOn     = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseAreaProvinceMarkEntity.FieldModifiedOn]);
     ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[BaseAreaProvinceMarkEntity.FieldModifiedUserId]);
     ModifiedBy     = BaseBusinessLogic.ConvertToString(dr[BaseAreaProvinceMarkEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 24
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToInt(dr[BaseModifyRecordEntity.FieldId]);
     TableCode         = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldTableCode]);
     TableDescription  = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldTableDescription]);
     ColumnCode        = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldColumnCode]);
     ColumnDescription = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldColumnDescription]);
     RecordKey         = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldRecordKey]);
     OldKey            = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldOldKey]);
     OldValue          = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldOldValue]);
     NewKey            = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldNewKey]);
     NewValue          = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldNewValue]);
     IPAddress         = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldIPAddress]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseModifyRecordEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseModifyRecordEntity.FieldCreateBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 /// <returns>BaseParameterEntity</returns>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id             = BaseBusinessLogic.ConvertToString(dr[BaseServicesLicenseEntity.FieldId]);
     UserId         = BaseBusinessLogic.ConvertToString(dr[BaseServicesLicenseEntity.FieldUserId]);
     PrivateKey     = BaseBusinessLogic.ConvertToString(dr[BaseServicesLicenseEntity.FieldPrivateKey]);
     PublicKey      = BaseBusinessLogic.ConvertToString(dr[BaseServicesLicenseEntity.FieldPublicKey]);
     StartDate      = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseServicesLicenseEntity.FieldStartDate]);
     EndDate        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseServicesLicenseEntity.FieldEndDate]);
     Enabled        = BaseBusinessLogic.ConvertIntToBoolean(dr[BaseServicesLicenseEntity.FieldEnabled]);
     Description    = BaseBusinessLogic.ConvertToString(dr[BaseServicesLicenseEntity.FieldDescription]);
     CreateUserId   = BaseBusinessLogic.ConvertToString(dr[BaseServicesLicenseEntity.FieldCreateUserId]);
     CreateOn       = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseServicesLicenseEntity.FieldCreateOn]);
     CreateBy       = BaseBusinessLogic.ConvertToString(dr[BaseServicesLicenseEntity.FieldCreateBy]);
     ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[BaseServicesLicenseEntity.FieldModifiedUserId]);
     ModifiedOn     = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseServicesLicenseEntity.FieldModifiedOn]);
     ModifiedBy     = BaseBusinessLogic.ConvertToString(dr[BaseServicesLicenseEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 26
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     Id               = BaseBusinessLogic.ConvertToDecimal(dr[BaseExpressEntity.FieldId]);
     CreateUserName   = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldCreateUserName]);
     CityId           = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldCityId]);
     ModifiedUserName = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldModifiedUserName]);
     CreateOn         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseExpressEntity.FieldCreateOn]);
     County           = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldCounty]);
     CountyId         = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldCountyId]);
     Remark           = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldRemark]);
     Name             = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldName]);
     ModifiedOn       = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseExpressEntity.FieldModifiedOn]);
     ProvinceId       = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldProvinceId]);
     City             = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldCity]);
     Address          = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldAddress]);
     Layer            = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FieldLayer]);
     ShortName        = BaseBusinessLogic.ConvertToString(dr[BaseExpressEntity.FiledShortName]);
     return(this);
 }
Esempio n. 27
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id             = BaseBusinessLogic.ConvertToString(dr[BaseSequenceEntity.FieldId]);
     FullName       = BaseBusinessLogic.ConvertToString(dr[BaseSequenceEntity.FieldFullName]);
     Prefix         = BaseBusinessLogic.ConvertToString(dr[BaseSequenceEntity.FieldPrefix]);
     Delimiter      = BaseBusinessLogic.ConvertToString(dr[BaseSequenceEntity.FieldDelimiter]);
     Sequence       = BaseBusinessLogic.ConvertToInt(dr[BaseSequenceEntity.FieldSequence]);
     Reduction      = BaseBusinessLogic.ConvertToInt(dr[BaseSequenceEntity.FieldReduction]);
     Step           = BaseBusinessLogic.ConvertToInt(dr[BaseSequenceEntity.FieldStep]);
     IsVisible      = BaseBusinessLogic.ConvertToInt(dr[BaseSequenceEntity.FieldIsVisible]);
     Description    = BaseBusinessLogic.ConvertToString(dr[BaseSequenceEntity.FieldDescription]);
     CreateOn       = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseSequenceEntity.FieldCreateOn]);
     CreateUserId   = BaseBusinessLogic.ConvertToString(dr[BaseSequenceEntity.FieldCreateUserId]);
     CreateBy       = BaseBusinessLogic.ConvertToString(dr[BaseSequenceEntity.FieldCreateBy]);
     ModifiedOn     = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseSequenceEntity.FieldModifiedOn]);
     ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[BaseSequenceEntity.FieldModifiedUserId]);
     ModifiedBy     = BaseBusinessLogic.ConvertToString(dr[BaseSequenceEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToInt(dr[BaseUserOrganizeEntity.FieldId]);
     UserId            = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldUserId]);
     CompanyId         = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldCompanyId]);
     SubCompanyId      = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldSubCompanyId]);
     DepartmentId      = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldDepartmentId]);
     WorkgroupId       = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldWorkgroupId]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseUserOrganizeEntity.FieldEnabled]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldDescription]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseUserOrganizeEntity.FieldDeletionStateCode]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserOrganizeEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserOrganizeEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseUserOrganizeEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
Esempio n. 29
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 /// <returns>BaseParameterEntity</returns>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id               = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldId]);
     CategoryCode     = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldCategoryCode]);
     ParameterId      = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldParameterId]);
     ParameterCode    = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldParameterCode]);
     ParameterContent = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldParameterContent]);
     Worked           = BaseBusinessLogic.ConvertIntToBoolean(dr[BaseParameterEntity.FieldWorked]);
     Enabled          = BaseBusinessLogic.ConvertIntToBoolean(dr[BaseParameterEntity.FieldEnabled]);
     SortCode         = BaseBusinessLogic.ConvertToNullableInt(dr[BaseParameterEntity.FieldSortCode]);
     Description      = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldDescription]);
     CreateUserId     = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldCreateUserId]);
     CreateOn         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseParameterEntity.FieldCreateOn]);
     CreateBy         = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldCreateBy]);
     ModifiedUserId   = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldModifiedUserId]);
     ModifiedOn       = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseParameterEntity.FieldModifiedOn]);
     ModifiedBy       = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     Id                = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldId]);
     CategoryCode      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldCategoryCode]);
     CategoryFullName  = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldCategoryFullName]);
     ObjectId          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldObjectId]);
     ObjectFullName    = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldObjectFullName]);
     ProcessId         = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowCurrentEntity.FieldProcessId]);
     ActivityId        = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowCurrentEntity.FieldActivityId]);
     ActivityCode      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldActivityCode]);
     ActivityFullName  = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldActivityFullName]);
     ActivityType      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowActivityEntity.FieldActivityType]);
     ToDepartmentId    = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldToDepartmentId]);
     ToDepartmentName  = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldToDepartmentName]);
     ToUserId          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldToUserId]);
     ToUserRealName    = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldToUserRealName]);
     ToRoleId          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldToRoleId]);
     ToRoleRealName    = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldToRoleRealName]);
     AuditUserId       = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldAuditUserId]);
     AuditUserCode     = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldAuditUserCode]);
     AuditUserRealName = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldAuditUserRealName]);
     SendDate          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowCurrentEntity.FieldSendDate]);
     AuditDate         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowCurrentEntity.FieldAuditDate]);
     AuditIdea         = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldAuditIdea]);
     AuditStatus       = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldAuditStatus]);
     AuditStatusName   = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldAuditStatusName]);
     SortCode          = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowCurrentEntity.FieldSortCode]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowCurrentEntity.FieldEnabled]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseWorkFlowCurrentEntity.FieldDeletionStateCode]);
     Description       = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldDescription]);
     CreateOn          = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowCurrentEntity.FieldCreateOn]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldCreateUserId]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldCreateBy]);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseWorkFlowCurrentEntity.FieldModifiedOn]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldModifiedUserId]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseWorkFlowCurrentEntity.FieldModifiedBy]);
     // 获取扩展属性
     GetFromExpand(dr);
     return(this);
 }