/// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseWorkFlowBillTemplateEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);;
     this.Id                = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldId]);
     this.Title             = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldTitle]);
     this.Code              = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldCode]);
     this.CategoryCode      = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldCategoryCode]);
     this.Introduction      = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldIntroduction]);
     this.Contents          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldContents]);
     this.TemplateType      = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldTemplateType]);
     this.UseWorkFlow       = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowBillTemplateEntity.FieldUseWorkFlow]);
     this.AddPage           = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldAddPage]);
     this.EditPage          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldEditPage]);
     this.ShowPage          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldShowPage]);
     this.ListPage          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldListPage]);
     this.AdminPage         = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldAdminPage]);
     this.AuditStatus       = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldAuditStatus]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowBillTemplateEntity.FieldDeletionStateCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldDescription]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowBillTemplateEntity.FieldEnabled]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowBillTemplateEntity.FieldSortCode]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowBillTemplateEntity.FieldCreateOn]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldCreateBy]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldCreateUserId]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowBillTemplateEntity.FieldModifiedOn]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldModifiedBy]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowBillTemplateEntity.FieldModifiedUserId]);
     return(this);
 }
示例#2
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BasePermissionItemEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionItemEntity.FieldId]);
     this.ParentId          = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionItemEntity.FieldParentId]);
     this.Code              = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionItemEntity.FieldCode]);
     this.FullName          = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionItemEntity.FieldFullName]);
     this.CategoryCode      = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionItemEntity.FieldCategoryCode]);
     this.IsScope           = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionItemEntity.FieldIsScope]);
     this.IsPublic          = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionItemEntity.FieldIsPublic]);
     this.AllowEdit         = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionItemEntity.FieldAllowEdit]);
     this.AllowDelete       = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionItemEntity.FieldAllowDelete]);
     this.LastCall          = BaseBusinessLogic.ConvertToDateTime(dataReader[BasePermissionItemEntity.FieldLastCall]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionItemEntity.FieldEnabled]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionItemEntity.FieldDeletionStateCode]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionItemEntity.FieldSortCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionItemEntity.FieldDescription]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BasePermissionItemEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionItemEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionItemEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BasePermissionItemEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionItemEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionItemEntity.FieldModifiedBy]);
     return(this);
 }
示例#3
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseItemsEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                = BaseBusinessLogic.ConvertToInt(dataReader[BaseItemsEntity.FieldId]);
     this.ParentId          = BaseBusinessLogic.ConvertToInt(dataReader[BaseItemsEntity.FieldParentId]);
     this.Code              = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldCode]);
     this.FullName          = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldFullName]);
     this.TargetTable       = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldTargetTable]);
     this.IsTree            = BaseBusinessLogic.ConvertToInt(dataReader[BaseItemsEntity.FieldIsTree]);
     this.UseItemCode       = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldUseItemCode]);
     this.UseItemName       = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldUseItemName]);
     this.UseItemValue      = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldUseItemValue]);
     this.AllowEdit         = BaseBusinessLogic.ConvertToInt(dataReader[BaseItemsEntity.FieldAllowEdit]);
     this.AllowDelete       = BaseBusinessLogic.ConvertToInt(dataReader[BaseItemsEntity.FieldAllowDelete]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseItemsEntity.FieldDeletionStateCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldDescription]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseItemsEntity.FieldEnabled]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseItemsEntity.FieldSortCode]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseItemsEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseItemsEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseItemsEntity.FieldModifiedBy]);
     return(this);
 }
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseWorkFlowHistoryEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);;
     this.Id                = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowHistoryEntity.FieldId]);
     this.CurrentFlowId     = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldCurrentFlowId]);
     this.WorkFlowId        = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowHistoryEntity.FieldWorkFlowId]);
     this.ActivityId        = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowHistoryEntity.FieldActivityId]);
     this.ActivityFullName  = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldActivityFullName]);
     this.ToDepartmentId    = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldToDepartmentId]);
     this.ToDepartmentName  = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldToDepartmentName]);
     this.ToUserId          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldToUserId]);
     this.ToUserRealName    = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldToUserRealName]);
     this.ToRoleId          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldToRoleId]);
     this.ToRoleRealName    = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldToRoleRealName]);
     this.AuditUserId       = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldAuditUserId]);
     this.AuditUserCode     = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldAuditUserCode]);
     this.AuditUserRealName = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldAuditUserRealName]);
     this.SendDate          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowHistoryEntity.FieldSendDate]);
     this.AuditDate         = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowHistoryEntity.FieldAuditDate]);
     this.AuditIdea         = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldAuditIdea]);
     this.AuditStatus       = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldAuditStatus]);
     this.AuditStatusName   = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldAuditStatusName]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowHistoryEntity.FieldSortCode]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowHistoryEntity.FieldEnabled]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowHistoryEntity.FieldDeletionStateCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldDescription]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowHistoryEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowHistoryEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowHistoryEntity.FieldModifiedBy]);
     return(this);
 }
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dr">数据流</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     this.GetFromExpand(dr);
     this.Id                = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldId]);
     this.ContactId         = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldContactId]);
     this.Category          = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldCategory]);
     this.ReceiverId        = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldReceiverId]);
     this.ReceiverRealName  = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldReceiverRealName]);
     this.IsNew             = BaseBusinessLogic.ConvertToInt(dr[BaseContactDetailsEntity.FieldIsNew]);
     this.NewComment        = BaseBusinessLogic.ConvertToInt(dr[BaseContactDetailsEntity.FieldNewComment]);
     this.Replied           = BaseBusinessLogic.ConvertToInt(dr[BaseContactDetailsEntity.FieldReplied]);
     this.LastViewIP        = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldLastViewIP]);
     this.LastViewDate      = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldLastViewDate]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dr[BaseContactDetailsEntity.FieldEnabled]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseContactDetailsEntity.FieldDeletionStateCode]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dr[BaseContactDetailsEntity.FieldSortCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldDescription]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dr[BaseContactDetailsEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dr[BaseContactDetailsEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dr[BaseContactDetailsEntity.FieldModifiedBy]);
     return(this);
 }
示例#6
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseCommentEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);;
     this.Id                = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldId]);
     this.DepartmentId      = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldDepartmentId]);
     this.DepartmentName    = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldDepartmentName]);
     this.ParentId          = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldParentId]);
     this.CategoryCode      = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldCategoryCode]);
     this.ObjectId          = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldObjectId]);
     this.TargetURL         = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldTargetURL]);
     this.Title             = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldTitle]);
     this.Contents          = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldContents]);
     this.IPAddress         = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldIPAddress]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseCommentEntity.FieldDeletionStateCode]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseCommentEntity.FieldEnabled]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldDescription]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseCommentEntity.FieldSortCode]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseCommentEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseCommentEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseCommentEntity.FieldModifiedBy]);
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dataRow">数据行</param>
 public BaseMessageEntity GetFrom(DataRow dataRow)
 {
     this.GetFromExpand(dataRow);
     this.Id                     = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldId]);
     this.ParentId               = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldParentId]);
     this.ReceiverDepartmentId   = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldReceiverDepartmentId]);
     this.ReceiverDepartmentName = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldReceiverDepartmentName]);
     this.ReceiverId             = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldReceiverId]);
     this.ReceiverRealName       = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldReceiverRealName]);
     this.FunctionCode           = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldFunctionCode]);
     this.CategoryCode           = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldCategoryCode]);
     this.ObjectId               = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldObjectId]);
     this.Title                  = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldTitle]);
     this.Contents               = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldContents]);
     this.IsNew                  = BaseBusinessLogic.ConvertToInt(dataRow[BaseMessageEntity.FieldIsNew]);
     this.ReadCount              = BaseBusinessLogic.ConvertToInt(dataRow[BaseMessageEntity.FieldReadCount]);
     this.ReadDate               = BaseBusinessLogic.ConvertToDateTime(dataRow[BaseMessageEntity.FieldReadDate]);
     this.TargetURL              = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldTargetURL]);
     this.IPAddress              = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldIPAddress]);
     this.CreateDepartmentId     = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldCreateDepartmentId]);
     this.CreateDepartmentName   = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldCreateDepartmentName]);
     this.DeletionStateCode      = BaseBusinessLogic.ConvertToInt(dataRow[BaseMessageEntity.FieldDeletionStateCode]);
     this.Enabled                = BaseBusinessLogic.ConvertToInt(dataRow[BaseMessageEntity.FieldEnabled]);
     this.Description            = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldDescription]);
     this.SortCode               = BaseBusinessLogic.ConvertToInt(dataRow[BaseMessageEntity.FieldSortCode]);
     this.CreateOn               = BaseBusinessLogic.ConvertToDateTime(dataRow[BaseMessageEntity.FieldCreateOn]);
     this.CreateUserId           = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldCreateUserId]);
     this.CreateBy               = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldCreateBy]);
     this.ModifiedOn             = BaseBusinessLogic.ConvertToDateTime(dataRow[BaseMessageEntity.FieldModifiedOn]);
     this.ModifiedUserId         = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldModifiedUserId]);
     this.ModifiedBy             = BaseBusinessLogic.ConvertToString(dataRow[BaseMessageEntity.FieldModifiedBy]);
     return(this);
 }
示例#8
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseContactEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                  = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldId]);
     this.ParentId            = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldParentId]);
     this.Title               = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldTitle]);
     this.Contents            = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldContents]);
     this.Priority            = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldPriority]);
     this.SendCount           = BaseBusinessLogic.ConvertToInt(dataReader[BaseContactEntity.FieldSendCount]);
     this.ReadCount           = BaseBusinessLogic.ConvertToInt(dataReader[BaseContactEntity.FieldReadCount]);
     this.IsOpen              = BaseBusinessLogic.ConvertToInt(dataReader[BaseContactEntity.FieldIsOpen]);
     this.CommentUserId       = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldCommentUserId]);
     this.CommentUserRealName = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldCommentUserRealName]);
     this.CommentDate         = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseContactEntity.FieldCommentDate]);
     this.DeletionStateCode   = BaseBusinessLogic.ConvertToInt(dataReader[BaseContactEntity.FieldDeletionStateCode]);
     this.Enabled             = BaseBusinessLogic.ConvertToInt(dataReader[BaseContactEntity.FieldEnabled]);
     this.SortCode            = BaseBusinessLogic.ConvertToInt(dataReader[BaseContactEntity.FieldSortCode]);
     this.Description         = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldDescription]);
     this.CreateOn            = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseContactEntity.FieldCreateOn]);
     this.CreateUserId        = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldCreateUserId]);
     this.CreateBy            = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldCreateBy]);
     this.ModifiedOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseContactEntity.FieldModifiedOn]);
     this.ModifiedUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldModifiedUserId]);
     this.ModifiedBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseContactEntity.FieldModifiedBy]);
     return(this);
 }
示例#9
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     ID                     = BaseBusinessLogic.ConvertToDecimal(dr[TAB_EMPLOYEEEntity.Field_ID]);
     OWNER_SITE             = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_OWNER_SITE]);
     TRANSFER_ADD_FEE       = BaseBusinessLogic.ConvertToDecimal(dr[TAB_EMPLOYEEEntity.Field_TRANSFER_ADD_FEE]);
     EMPLOYEE_CODE          = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_EMPLOYEE_CODE]);
     OWNER_RANGE            = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_OWNER_RANGE]);
     CARDNUM                = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_CARDNUM]);
     BL_DISPATCH_GAIN       = BaseBusinessLogic.ConvertToDecimal(dr[TAB_EMPLOYEEEntity.Field_BL_DISPATCH_GAIN]);
     BL_SEND_GAIN           = BaseBusinessLogic.ConvertToDecimal(dr[TAB_EMPLOYEEEntity.Field_BL_SEND_GAIN]);
     ID_CARD                = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_ID_CARD]);
     UPDATETIME             = BaseBusinessLogic.ConvertToDateTime(dr[TAB_EMPLOYEEEntity.Field_UPDATETIME]);
     BAR_PASSWORD           = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_BAR_PASSWORD]);
     EMPLOYEE_TYPE          = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_EMPLOYEE_TYPE]);
     DISPATCH__ADD_FEE      = BaseBusinessLogic.ConvertToDecimal(dr[TAB_EMPLOYEEEntity.Field_DISPATCH__ADD_FEE]);
     DEPT_NAME              = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_DEPT_NAME]);
     ADDRESS                = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_ADDRESS]);
     PHONE                  = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_PHONE]);
     EMPLOYEE_NAME          = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_EMPLOYEE_NAME]);
     DELETIONSTATECODE      = BaseBusinessLogic.ConvertToDecimal(dr[TAB_EMPLOYEEEntity.Field_DELETIONSTATECODE]);
     GROUP_NAME             = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_GROUP_NAME]);
     DISPATCH_ADD_FEE_OPERA = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_DISPATCH_ADD_FEE_OPERA]);
     TRANSFER_ADD_FEE_OPERA = BaseBusinessLogic.ConvertToString(dr[TAB_EMPLOYEEEntity.Field_TRANSFER_ADD_FEE_OPERA]);
     return(this);
 }
示例#10
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public virtual BaseNewsEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     Id                = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldId]);
     FolderId          = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldFolderId]);
     DepartmentId      = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldDepartmentId]);
     DepartmentName    = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldDepartmentName]);
     CategoryCode      = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldCategoryCode]);
     Code              = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldCode]);
     Title             = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldTitle]);
     FilePath          = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldFilePath]);
     Introduction      = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldIntroduction]);
     Contents          = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldContents]);
     Source            = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldSource]);
     Keywords          = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldKeywords]);
     FileSize          = BaseBusinessLogic.ConvertToInt(dataReader[BaseNewsEntity.FieldFileSize]);
     ImageUrl          = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldImageUrl]);
     SubPage           = BaseBusinessLogic.ConvertToInt(dataReader[BaseNewsEntity.FieldSubPage]);
     HomePage          = BaseBusinessLogic.ConvertToInt(dataReader[BaseNewsEntity.FieldHomePage]);
     AuditStatus       = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldAuditStatus]);
     ReadCount         = BaseBusinessLogic.ConvertToInt(dataReader[BaseNewsEntity.FieldReadCount]);
     DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseNewsEntity.FieldDeletionStateCode]);
     Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldDescription]);
     Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseNewsEntity.FieldEnabled]);
     SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseNewsEntity.FieldSortCode]);
     CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseNewsEntity.FieldCreateOn]);
     CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldCreateBy]);
     CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldCreateUserId]);
     ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseNewsEntity.FieldModifiedOn]);
     ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldModifiedBy]);
     ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseNewsEntity.FieldModifiedUserId]);
     return(this);
 }
示例#11
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseWorkFlowProcessEntity GetFrom(IDataReader dataReader)
 {
     this.Id                = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowProcessEntity.FieldId]);
     this.UserId            = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldUserId]);
     this.OrganizeId        = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldOrganizeId]);
     this.BillTemplateId    = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldBillTemplateId]);
     this.AuditCategoryCode = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldAuditCategoryCode]);
     this.CallBackClass     = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldCallBackClass]);
     this.CallBackTable     = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldCallBackTable]);
     this.CategoryCode      = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldCategoryCode]);
     this.Code              = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldCode]);
     this.FullName          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldFullName]);
     this.Contents          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldContents]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowProcessEntity.FieldSortCode]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowProcessEntity.FieldEnabled]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowProcessEntity.FieldDeletionStateCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldDescription]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowProcessEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowProcessEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowProcessEntity.FieldModifiedBy]);
     return(this);
 }
示例#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);
 }
示例#13
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseOrganizeEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                = BaseBusinessLogic.ConvertToInt(dataReader[BaseOrganizeEntity.FieldId]);
     this.ParentId          = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldParentId]);
     this.Code              = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldCode]);
     this.ShortName         = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldShortName]);
     this.FullName          = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldFullName]);
     this.Category          = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldCategory]);
     this.Layer             = BaseBusinessLogic.ConvertToInt(dataReader[BaseOrganizeEntity.FieldLayer]);
     this.OuterPhone        = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldOuterPhone]);
     this.InnerPhone        = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldInnerPhone]);
     this.Fax               = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldFax]);
     this.Postalcode        = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldPostalcode]);
     this.Address           = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldAddress]);
     this.Web               = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldWeb]);
     this.IsInnerOrganize   = BaseBusinessLogic.ConvertToInt(dataReader[BaseOrganizeEntity.FieldIsInnerOrganize]);
     this.Bank              = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldBank]);
     this.BankAccount       = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldBankAccount]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseOrganizeEntity.FieldDeletionStateCode]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseOrganizeEntity.FieldEnabled]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseOrganizeEntity.FieldSortCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldDescription]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseOrganizeEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseOrganizeEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseOrganizeEntity.FieldModifiedBy]);
     return(this);
 }
示例#14
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseUserAddressEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldId]);
     this.UserId            = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldUserId]);
     this.RealName          = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldRealName]);
     this.ProvinceId        = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldProvinceId]);
     this.Province          = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldProvince]);
     this.CityId            = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldCityId]);
     this.City              = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldCity]);
     this.AreaId            = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldAreaId]);
     this.Area              = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldArea]);
     this.Address           = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldAddress]);
     this.PostCode          = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldPostCode]);
     this.Phone             = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldPhone]);
     this.Fax               = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldFax]);
     this.Mobile            = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldMobile]);
     this.Email             = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldEmail]);
     this.DeliverCategory   = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldDeliverCategory]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseUserAddressEntity.FieldSortCode]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseUserAddressEntity.FieldDeletionStateCode]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseUserAddressEntity.FieldEnabled]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldDescription]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseUserAddressEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseUserAddressEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseUserAddressEntity.FieldModifiedBy]);
     return(this);
 }
示例#15
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseModuleEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);;
     this.Id                    = BaseBusinessLogic.ConvertToInt(dataReader[BaseModuleEntity.FieldId]);
     this.ParentId              = BaseBusinessLogic.ConvertToInt(dataReader[BaseModuleEntity.FieldParentId]);
     this.Code                  = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldCode]);
     this.FullName              = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldFullName]);
     this.Category              = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldCategory]);
     this.ImageIndex            = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldImageIndex]);
     this.SelectedImageIndex    = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldSelectedImageIndex]);
     this.NavigateUrl           = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldNavigateUrl]);
     this.Target                = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldTarget]);
     this.FormName              = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldFormName]);
     this.AssemblyName          = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldAssemblyName]);
     this.PermissionItemCode    = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldPermissionItemCode]);
     this.PermissionScopeTables = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldPermissionScopeTables]);
     this.SortCode              = BaseBusinessLogic.ConvertToInt(dataReader[BaseModuleEntity.FieldSortCode]);
     this.Enabled               = BaseBusinessLogic.ConvertToInt(dataReader[BaseModuleEntity.FieldEnabled]);
     this.DeletionStateCode     = BaseBusinessLogic.ConvertToInt(dataReader[BaseModuleEntity.FieldDeletionStateCode]);
     this.IsPublic              = BaseBusinessLogic.ConvertToInt(dataReader[BaseModuleEntity.FieldIsPublic]);
     this.Expand                = BaseBusinessLogic.ConvertToInt(dataReader[BaseModuleEntity.FieldExpand]);
     this.AllowEdit             = BaseBusinessLogic.ConvertToInt(dataReader[BaseModuleEntity.FieldAllowEdit]);
     this.AllowDelete           = BaseBusinessLogic.ConvertToInt(dataReader[BaseModuleEntity.FieldAllowDelete]);
     this.Description           = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldDescription]);
     this.CreateOn              = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseModuleEntity.FieldCreateOn]);
     this.CreateUserId          = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldCreateUserId]);
     this.CreateBy              = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldCreateBy]);
     this.ModifiedOn            = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseModuleEntity.FieldModifiedOn]);
     this.ModifiedUserId        = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldModifiedUserId]);
     this.ModifiedBy            = BaseBusinessLogic.ConvertToString(dataReader[BaseModuleEntity.FieldModifiedBy]);
     return(this);
 }
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseWorkFlowActivityEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                  = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowActivityEntity.FieldId]);
     this.WorkFlowId          = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowActivityEntity.FieldWorkFlowId]);
     this.Code                = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldCode]);
     this.FullName            = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldFullName]);
     this.AuditDepartmentId   = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldAuditDepartmentId]);
     this.AuditDepartmentName = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldAuditDepartmentName]);
     this.AuditUserId         = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldAuditUserId]);
     this.AuditUserCode       = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldAuditUserCode]);
     this.AuditUserRealName   = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldAuditUserRealName]);
     this.AuditRoleId         = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldAuditRoleId]);
     this.AuditRoleRealName   = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldAuditRoleRealName]);
     this.ActivityType        = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldActivityType]);
     this.AllowPrint          = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowActivityEntity.FieldAllowPrint]);
     this.AllowEditDocuments  = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowActivityEntity.FieldAllowEditDocuments]);
     this.SortCode            = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowActivityEntity.FieldSortCode]);
     this.Enabled             = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowActivityEntity.FieldEnabled]);
     this.DeletionStateCode   = BaseBusinessLogic.ConvertToInt(dataReader[BaseWorkFlowActivityEntity.FieldDeletionStateCode]);
     this.Description         = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldDescription]);
     this.CreateOn            = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowActivityEntity.FieldCreateOn]);
     this.CreateUserId        = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldCreateUserId]);
     this.CreateBy            = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldCreateBy]);
     this.ModifiedOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseWorkFlowActivityEntity.FieldModifiedOn]);
     this.ModifiedUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldModifiedUserId]);
     this.ModifiedBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseWorkFlowActivityEntity.FieldModifiedBy]);
     return(this);
 }
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dr">数据流</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     this.GetFromExpand(dr);
     this.Id               = BaseBusinessLogic.ConvertToString(dr[BaseContactTargetEntity.FieldId]);
     this.ContactId        = BaseBusinessLogic.ConvertToString(dr[BaseContactTargetEntity.FieldContactId]);
     this.Category         = BaseBusinessLogic.ConvertToString(dr[BaseContactTargetEntity.FieldCategory]);
     this.ReceiverId       = BaseBusinessLogic.ConvertToString(dr[BaseContactTargetEntity.FieldReceiverId]);
     this.ReceiverRealName = BaseBusinessLogic.ConvertToString(dr[BaseContactTargetEntity.FieldReceiverRealName]);
     this.CreateOn         = BaseBusinessLogic.ConvertToDateTime(dr[BaseContactTargetEntity.FieldCreateOn]);
     this.CreateUserId     = BaseBusinessLogic.ConvertToString(dr[BaseContactTargetEntity.FieldCreateUserId]);
     this.CreateBy         = BaseBusinessLogic.ConvertToString(dr[BaseContactTargetEntity.FieldCreateBy]);
     return(this);
 }
示例#18
0
        /// <summary>
        /// 从数据行读取
        /// </summary>
        /// <param name="dr">数据行</param>
        protected override BaseEntity GetFrom(IDataRow dr)
        {
            GetFromExpand(dr);
            ID                = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_ID]);
            COMPUT_ID         = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_COMPUT_ID]);
            EMPLOYEE_CODE     = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_EMPLOYEE_CODE]);
            OWNER_ROLE        = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_OWNER_ROLE]);
            BL_REC_PLACARD    = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_BL_REC_PLACARD]);
            USER_SITE         = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_USER_SITE]);
            ROLEID            = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_ROLEID]);
            MODIFIER          = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_MODIFIER]);
            USER_WEBPOWER     = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_USER_WEBPOWER]);
            OWNER_CENTER      = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_OWNER_CENTER]);
            MODIFIER_CODE     = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_MODIFIER_CODE]);
            CREATE_SITE       = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_CREATE_SITE]);
            IM_NAME           = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_IM_NAME]);
            USER_PART         = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_USER_PART]);
            BL_CHECK_COMPUTER = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_BL_CHECK_COMPUTER]);
            DEPT_NAME         = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_DEPT_NAME]);
            //USER_PASSWORD = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_USER_PASSWORD]);
            USER_PASSWD       = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_USER_PASSWD]);
            CALL_CENTER_ID    = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_CALL_CENTER_ID]);
            EMPLOYEE_NAME     = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_EMPLOYEE_NAME]);
            DELETIONSTATECODE = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_DELETIONSTATECODE]);
            OWNER_GROUP       = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_OWNER_GROUP]);
            MODIFY_SITE       = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_MODIFY_SITE]);
            BL_LOCK_FLAG      = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_BL_LOCK_FLAG]);
            OWNER_SITE        = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_OWNER_SITE]);
            CREATE_DATE       = BaseBusinessLogic.ConvertToDateTime(dr[TAB_USER_Entity.Field_CREATE_DATE]);
            CREATE_USER       = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_CREATE_USER]);
            USER_NAME         = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_USER_NAME]);
            REMARK            = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_REMARK]);
            BL_AO             = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_BL_AO]);
            BL_TYPE           = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_BL_TYPE]);
            LOGINNAME         = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_LOGINNAME]);
            OWNER_GROUP       = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_OWNER_GROUP]);
            MOBILE            = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_MOBILE]);
            ONLY_USER_NAME    = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_ONLY_USER_NAME]);
            ID_CARD           = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_ID_CARD]);
            MODIFIER_DATE     = BaseBusinessLogic.ConvertToDateTime(dr[TAB_USER_Entity.Field_MODIFIER_DATE]);


            CHECK_NAME_DATE = BaseBusinessLogic.ConvertToDateTime(dr[TAB_USER_Entity.Field_CHECK_NAME_DATE]);
            BL_CHECK_NAME   = BaseBusinessLogic.ConvertToDecimal(dr[TAB_USER_Entity.Field_BL_CHECK_NAME]);
            POSITION_NAME   = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_POSITION_NAME]);
            REAL_NAME       = BaseBusinessLogic.ConvertToString(dr[TAB_USER_Entity.Field_REAL_NAME]);
            USER_DATE       = BaseBusinessLogic.ConvertToDateTime(dr[TAB_USER_Entity.Field_USER_DATE]);
            return(this);
        }
示例#19
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseUserRoleEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                = BaseBusinessLogic.ConvertToInt(dataReader[BaseUserRoleEntity.FieldId]);
     this.UserId            = BaseBusinessLogic.ConvertToInt(dataReader[BaseUserRoleEntity.FieldUserId]);
     this.RoleId            = BaseBusinessLogic.ConvertToInt(dataReader[BaseUserRoleEntity.FieldRoleId]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseUserRoleEntity.FieldEnabled]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseUserRoleEntity.FieldDescription]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseUserRoleEntity.FieldDeletionStateCode]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseUserRoleEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseUserRoleEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseUserRoleEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseUserRoleEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseUserRoleEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseUserRoleEntity.FieldModifiedBy]);
     return(this);
 }
示例#20
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dataRow">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     this.GetFromExpand(dr);
     this.Id                  = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldId]);
     this.ParentId            = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldParentId]);
     this.Title               = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldTitle]);
     this.Color               = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldColor]);
     this.Style               = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldStyle]);
     this.Contents            = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldContents]);
     this.CategoryCode        = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldCategoryCode]);
     this.LabelMark           = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldLabelMark]);
     this.Priority            = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldPriority]);
     this.SendCount           = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldSendCount]);
     this.ReadCount           = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldReadCount]);
     this.Source              = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldSource]);
     this.IsOpen              = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldIsOpen]);
     this.IPAddress           = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldIPAddress]);
     this.AllowComments       = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldAllowComments]);
     this.ReplyCount          = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldReplyCount]);
     this.MustRead            = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldMustRead]);
     this.MustReply           = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldMustReply]);
     this.CommentUserId       = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldCommentUserId]);
     this.CommentUserRealName = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldCommentUserRealName]);
     this.CancelTopDay        = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldCancelTopDay]);
     this.CommentDate         = BaseBusinessLogic.ConvertToDateTime(dr[BaseContactEntity.FieldCommentDate]);
     this.DeletionStateCode   = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldDeletionStateCode]);
     this.Enabled             = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldEnabled]);
     this.AuditUserId         = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldAuditUserId]);
     this.AuditUserRealName   = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldAuditUserRealName]);
     this.AuditStatus         = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldAuditStatus]);
     this.SortCode            = BaseBusinessLogic.ConvertToInt(dr[BaseContactEntity.FieldSortCode]);
     this.Description         = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldDescription]);
     this.CreateOn            = BaseBusinessLogic.ConvertToDateTime(dr[BaseContactEntity.FieldCreateOn]);
     this.CreateUserId        = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldCreateUserId]);
     this.CreateBy            = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldCreateBy]);
     this.CreateDepartment    = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldCreateDepartment]);
     this.CreateCompany       = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldCreateCompany]);
     this.CreateCompanyId     = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldCreateCompanyId]);
     this.ModifiedOn          = BaseBusinessLogic.ConvertToDateTime(dr[BaseContactEntity.FieldModifiedOn]);
     this.ModifiedUserId      = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldModifiedUserId]);
     this.ModifiedBy          = BaseBusinessLogic.ConvertToString(dr[BaseContactEntity.FieldModifiedBy]);
     return(this);
 }
示例#21
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BasePermissionEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionEntity.FieldId]);
     this.ResourceId = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionEntity.FieldResourceId]);
     this.ResourceCategory = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionEntity.FieldResourceCategory]);
     this.PermissionId = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionEntity.FieldPermissionItemId]);
     this.PermissionConstraint = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionEntity.FieldPermissionConstraint]);
     this.Enabled = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionEntity.FieldEnabled]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BasePermissionEntity.FieldDeletionStateCode]);
     this.Description = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionEntity.FieldDescription]);
     this.CreateOn = BaseBusinessLogic.ConvertToDateTime(dataReader[BasePermissionEntity.FieldCreateOn]);
     this.CreateBy = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionEntity.FieldCreateBy]);
     this.CreateUserId = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionEntity.FieldCreateUserId]);
     this.ModifiedOn = BaseBusinessLogic.ConvertToDateTime(dataReader[BasePermissionEntity.FieldModifiedOn]);
     this.ModifiedBy = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionEntity.FieldModifiedBy]);
     this.ModifiedUserId = BaseBusinessLogic.ConvertToString(dataReader[BasePermissionEntity.FieldModifiedUserId]);
     return this;
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dataRow">数据行</param>
 public BaseUserOrganizeEntity GetFrom(DataRow dataRow)
 {
     this.GetFromExpand(dataRow);
     this.Id                = BaseBusinessLogic.ConvertToInt(dataRow[BaseUserOrganizeEntity.FieldId]);
     this.UserId            = BaseBusinessLogic.ConvertToInt(dataRow[BaseUserOrganizeEntity.FieldUserId]);
     this.CompanyId         = BaseBusinessLogic.ConvertToInt(dataRow[BaseUserOrganizeEntity.FieldCompanyId]);
     this.DepartmentId      = BaseBusinessLogic.ConvertToInt(dataRow[BaseUserOrganizeEntity.FieldDepartmentId]);
     this.WorkgroupId       = BaseBusinessLogic.ConvertToInt(dataRow[BaseUserOrganizeEntity.FieldWorkgroupId]);
     this.RoleId            = BaseBusinessLogic.ConvertToInt(dataRow[BaseUserOrganizeEntity.FieldRoleId]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataRow[BaseUserOrganizeEntity.FieldEnabled]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataRow[BaseUserOrganizeEntity.FieldDescription]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataRow[BaseUserOrganizeEntity.FieldDeletionStateCode]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataRow[BaseUserOrganizeEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataRow[BaseUserOrganizeEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataRow[BaseUserOrganizeEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataRow[BaseUserOrganizeEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataRow[BaseUserOrganizeEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataRow[BaseUserOrganizeEntity.FieldModifiedBy]);
     return(this);
 }
示例#23
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseSequenceEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id             = BaseBusinessLogic.ConvertToString(dataReader[BaseSequenceEntity.FieldId]);
     this.FullName       = BaseBusinessLogic.ConvertToString(dataReader[BaseSequenceEntity.FieldFullName]);
     this.Prefix         = BaseBusinessLogic.ConvertToString(dataReader[BaseSequenceEntity.FieldPrefix]);
     this.Separator      = BaseBusinessLogic.ConvertToString(dataReader[BaseSequenceEntity.FieldSeparator]);
     this.Sequence       = BaseBusinessLogic.ConvertToInt(dataReader[BaseSequenceEntity.FieldSequence]);
     this.Reduction      = BaseBusinessLogic.ConvertToInt(dataReader[BaseSequenceEntity.FieldReduction]);
     this.Step           = BaseBusinessLogic.ConvertToInt(dataReader[BaseSequenceEntity.FieldStep]);
     this.IsVisible      = BaseBusinessLogic.ConvertToInt(dataReader[BaseSequenceEntity.FieldIsVisible]);
     this.Description    = BaseBusinessLogic.ConvertToString(dataReader[BaseSequenceEntity.FieldDescription]);
     this.CreateOn       = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseSequenceEntity.FieldCreateOn]);
     this.CreateUserId   = BaseBusinessLogic.ConvertToString(dataReader[BaseSequenceEntity.FieldCreateUserId]);
     this.CreateBy       = BaseBusinessLogic.ConvertToString(dataReader[BaseSequenceEntity.FieldCreateBy]);
     this.ModifiedOn     = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseSequenceEntity.FieldModifiedOn]);
     this.ModifiedUserId = BaseBusinessLogic.ConvertToString(dataReader[BaseSequenceEntity.FieldModifiedUserId]);
     this.ModifiedBy     = BaseBusinessLogic.ConvertToString(dataReader[BaseSequenceEntity.FieldModifiedBy]);
     return(this);
 }
示例#24
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseFileEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                = BaseBusinessLogic.ConvertToString(dataReader[BaseFileEntity.FieldId]);
     this.FolderId          = BaseBusinessLogic.ConvertToString(dataReader[BaseFileEntity.FieldFolderId]);
     this.FileName          = BaseBusinessLogic.ConvertToString(dataReader[BaseFileEntity.FieldFileName]);
     this.FilePath          = BaseBusinessLogic.ConvertToString(dataReader[BaseFileEntity.FieldFilePath]);
     this.FileSize          = BaseBusinessLogic.ConvertToInt(dataReader[BaseFileEntity.FieldFileSize]);
     this.ReadCount         = BaseBusinessLogic.ConvertToInt(dataReader[BaseFileEntity.FieldReadCount]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseFileEntity.FieldDeletionStateCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseFileEntity.FieldDescription]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseFileEntity.FieldEnabled]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseFileEntity.FieldSortCode]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseFileEntity.FieldCreateOn]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseFileEntity.FieldCreateBy]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseFileEntity.FieldCreateUserId]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseFileEntity.FieldModifiedOn]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseFileEntity.FieldModifiedBy]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseFileEntity.FieldModifiedUserId]);
     return(this);
 }
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dr">数据行</param>
 protected override BaseEntity GetFrom(IDataRow dr)
 {
     GetFromExpand(dr);
     ModifiedOn        = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserIdentityAuditEntity.FieldModifiedOn]);
     IdcardPhotoHand   = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldIdcardPhotoHand]);
     OrganizeFullname  = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldOrganizeFullname]);
     CreateOn          = BaseBusinessLogic.ConvertToDateTime(dr[BaseUserIdentityAuditEntity.FieldCreateOn]);
     AuditDate         = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseUserIdentityAuditEntity.FieldAuditDate]);
     AuditStatus       = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldAuditStatus]);
     InterfaceDayLimit = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseUserIdentityAuditEntity.FieldInterfaceDayLimit]);
     NickName          = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldNickName]);
     UserRealName      = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldUserRealName]);
     Idcard            = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldIdcard]);
     AuditUserId       = BaseBusinessLogic.ConvertToNullableDecimal(dr[BaseUserIdentityAuditEntity.FieldAuditUserId]);
     Id                = BaseBusinessLogic.ConvertToDecimal(dr[BaseUserIdentityAuditEntity.FieldId]);
     AuditIdea         = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldAuditIdea]);
     AuditUserRealName = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldAuditUserRealName]);
     OrganizeId        = BaseBusinessLogic.ConvertToDecimal(dr[BaseUserIdentityAuditEntity.FieldOrganizeId]);
     AuditUserNickName = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldAuditUserNickName]);
     IdcardPhotoFront  = BaseBusinessLogic.ConvertToString(dr[BaseUserIdentityAuditEntity.FieldIdcardPhotoFront]);
     return(this);
 }
示例#26
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dataRow">数据行</param>
 public BaseFolderEntity GetFrom(DataRow dataRow)
 {
     this.GetFromExpand(dataRow);
     this.Id                = BaseBusinessLogic.ConvertToString(dataRow[BaseFolderEntity.FieldId]);
     this.ParentId          = BaseBusinessLogic.ConvertToString(dataRow[BaseFolderEntity.FieldParentId]);
     this.FolderName        = BaseBusinessLogic.ConvertToString(dataRow[BaseFolderEntity.FieldFolderName]);
     this.StateCode         = BaseBusinessLogic.ConvertToString(dataRow[BaseFolderEntity.FieldStateCode]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataRow[BaseFolderEntity.FieldSortCode]);
     this.AllowEdit         = BaseBusinessLogic.ConvertToInt(dataRow[BaseFolderEntity.FieldAllowEdit]);
     this.AllowDelete       = BaseBusinessLogic.ConvertToInt(dataRow[BaseFolderEntity.FieldAllowDelete]);
     this.IsPublic          = BaseBusinessLogic.ConvertToInt(dataRow[BaseFolderEntity.FieldIsPublic]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataRow[BaseFolderEntity.FieldEnabled]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataRow[BaseFolderEntity.FieldDeletionStateCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataRow[BaseFolderEntity.FieldDescription]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataRow[BaseFolderEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataRow[BaseFolderEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataRow[BaseFolderEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataRow[BaseFolderEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataRow[BaseFolderEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataRow[BaseFolderEntity.FieldModifiedBy]);
     return(this);
 }
示例#27
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseTableColumnsEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                = BaseBusinessLogic.ConvertToInt(dataReader[BaseTableColumnsEntity.FieldId]);
     this.TableCode         = BaseBusinessLogic.ConvertToString(dataReader[BaseTableColumnsEntity.FieldTableCode]);
     this.ColumnCode        = BaseBusinessLogic.ConvertToString(dataReader[BaseTableColumnsEntity.FieldColumnCode]);
     this.ColumnName        = BaseBusinessLogic.ConvertToString(dataReader[BaseTableColumnsEntity.FieldColumnName]);
     this.IsPublic          = BaseBusinessLogic.ConvertToInt(dataReader[BaseTableColumnsEntity.FieldIsPublic]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseTableColumnsEntity.FieldEnabled]);
     this.AllowEdit         = BaseBusinessLogic.ConvertToInt(dataReader[BaseTableColumnsEntity.FieldAllowEdit]);
     this.AllowDelete       = BaseBusinessLogic.ConvertToInt(dataReader[BaseTableColumnsEntity.FieldAllowDelete]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseTableColumnsEntity.FieldDeletionStateCode]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseTableColumnsEntity.FieldSortCode]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseTableColumnsEntity.FieldDescription]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseTableColumnsEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseTableColumnsEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseTableColumnsEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseTableColumnsEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseTableColumnsEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseTableColumnsEntity.FieldModifiedBy]);
     return(this);
 }
示例#28
0
        /// <summary>
        /// 从数据行读取
        /// </summary>
        /// <param name="dr">数据行</param>
        protected override BaseEntity GetFrom(IDataRow dr)
        {
            Id = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldId]);

            // 2016-02-14 吉日嘎拉 改进日志的记录数据、把一些核心参数记录下来。
            TaskId       = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldTaskId]);
            Service      = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldService]);
            CompanyId    = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldCompanyId]);
            ElapsedTicks = BaseBusinessLogic.ConvertToInt(dr[BaseLogEntity.FieldElapsedTicks]);
            StartTime    = BaseBusinessLogic.ConvertToDateTime(dr[BaseLogEntity.FieldStartTime]);
            UserId       = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldUserId]);
            UserRealName = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldUserRealName]);
            Parameters   = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldParameters]);
            UrlReferrer  = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldUrlReferrer]);
            WebUrl       = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldWebUrl]);
            ClientIP     = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldClientIP]);
            ServerIP     = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldServerIP]);
            Description  = BaseBusinessLogic.ConvertToString(dr[BaseLogEntity.FieldDescription]);

            // 获取扩展属性
            GetFromExpand(dr);
            return(this);
        }
示例#29
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseRoleEntity GetFrom(IDataReader dataReader)
 {
     this.GetFromExpand(dataReader);
     this.Id                = BaseBusinessLogic.ConvertToInt(dataReader[BaseRoleEntity.FieldId]);
     this.SystemId          = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldSystemId]);
     this.OrganizeId        = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldOrganizeId]);
     this.Code              = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldCode]);
     this.RealName          = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldRealName]);
     this.CategoryCode      = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldCategoryCode]);
     this.AllowEdit         = BaseBusinessLogic.ConvertToInt(dataReader[BaseRoleEntity.FieldAllowEdit]);
     this.AllowDelete       = BaseBusinessLogic.ConvertToInt(dataReader[BaseRoleEntity.FieldAllowDelete]);
     this.IsVisible         = BaseBusinessLogic.ConvertToInt(dataReader[BaseRoleEntity.FieldIsVisible]);
     this.SortCode          = BaseBusinessLogic.ConvertToInt(dataReader[BaseRoleEntity.FieldSortCode]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertToInt(dataReader[BaseRoleEntity.FieldDeletionStateCode]);
     this.Enabled           = BaseBusinessLogic.ConvertToInt(dataReader[BaseRoleEntity.FieldEnabled]);
     this.Description       = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldDescription]);
     this.CreateOn          = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseRoleEntity.FieldCreateOn]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldCreateUserId]);
     this.CreateBy          = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldCreateBy]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToDateTime(dataReader[BaseRoleEntity.FieldModifiedOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldModifiedUserId]);
     this.ModifiedBy        = BaseBusinessLogic.ConvertToString(dataReader[BaseRoleEntity.FieldModifiedBy]);
     return(this);
 }
示例#30
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);
 }