Exemplo n.º 1
0
 /// <summary>
 /// 从数据流读取
 /// </summary>
 /// <param name="dataReader">数据流</param>
 public BaseBusinessCardEntity GetFrom(IDataReader dataReader)
 {
     this.Id             = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldId]);
     this.FullName       = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldFullName]);
     this.Title          = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldTitle]);
     this.Company        = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldCompany]);
     this.Phone          = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldPhone]);
     this.Postalcode     = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldPostalcode]);
     this.Mobile         = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldMobile]);
     this.Address        = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldAddress]);
     this.Email          = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldEmail]);
     this.OfficePhone    = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldOfficePhone]);
     this.QQ             = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldQQ]);
     this.Fax            = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldFax]);
     this.Web            = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldWeb]);
     this.BankName       = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldBankName]);
     this.BankAccount    = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldBankAccount]);
     this.TaxAccount     = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldTaxAccount]);
     this.Personal       = BaseBusinessLogic.ConvertIntToBoolean(dataReader[BaseBusinessCardTable.FieldPersonal]);
     this.Description    = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldDescription]);
     this.SortCode       = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldSortCode]);
     this.CreateUserId   = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldCreateUserId]);
     this.CreateOn       = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldCreateOn]);
     this.ModifiedUserId = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldModifiedUserId]);
     this.ModifiedOn     = BaseBusinessLogic.ConvertToString(dataReader[BaseBusinessCardTable.FieldModifiedOn]);
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dataRow">数据行</param>
 /// <returns>BaseParameterEntity</returns>
 public BaseParameterEntity GetFrom(DataRow dataRow)
 {
     this.GetFromExpand(dataRow);
     this.Id               = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldId]);
     this.CategoryId       = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldCategoryId]);
     this.ParameterId      = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldParameterId]);
     this.ParameterCode    = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldParameterCode]);
     this.ParameterContent = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldParameterContent]);
     this.Worked           = BaseBusinessLogic.ConvertIntToBoolean(dataRow[BaseParameterEntity.FieldWorked]);
     this.Enabled          = BaseBusinessLogic.ConvertIntToBoolean(dataRow[BaseParameterEntity.FieldEnabled]);
     this.SortCode         = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldSortCode]);
     this.Description      = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldDescription]);
     this.CreateUserId     = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldCreateUserId]);
     this.CreateOn         = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldCreateOn]);
     this.ModifiedUserId   = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldModifiedUserId]);
     this.ModifiedOn       = BaseBusinessLogic.ConvertToString(dataRow[BaseParameterEntity.FieldModifiedOn]);
     return(this);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 从数据行读取
 /// </summary>
 /// <param name="dataRow">数据行</param>
 /// <returns>实体类</returns>
 public BaseNoteEntity GetFrom(DataRow dataRow)
 {
     this.GetFromExpand(dataRow);
     this.Id                = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldId]);
     this.Title             = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldTitle]);
     this.CategoryId        = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldCategoryId]);
     this.CategoryFullName  = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldCategoryFullName]);
     this.Color             = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldColor]);
     this.Content           = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldContent]);
     this.Enabled           = BaseBusinessLogic.ConvertIntToBoolean(dataRow[BaseNoteEntity.FieldEnabled]);
     this.Important         = BaseBusinessLogic.ConvertIntToBoolean(dataRow[BaseNoteEntity.FieldImportant]);
     this.DeletionStateCode = BaseBusinessLogic.ConvertIntToBoolean(dataRow[BaseNoteEntity.FieldDeletionStateCode]);
     this.SortCode          = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldSortCode]);
     this.CreateUserId      = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldCreateUserId]);
     this.CreateOn          = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldCreateOn]);
     this.ModifiedUserId    = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldModifiedUserId]);
     this.ModifiedOn        = BaseBusinessLogic.ConvertToString(dataRow[BaseNoteEntity.FieldModifiedOn]);
     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);
 }
Exemplo n.º 5
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);
 }