/// <summary> /// 从数据行读取 /// </summary> /// <param name="dr">数据行</param> protected override BaseEntity GetFrom(IDataRow dr) { GetFromExpand(dr); Id = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldId]); ResourceCategory = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldResourceCategory]); ResourceId = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldResourceId]); PermissionId = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldPermissionId]); AllData = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldAllData]); Province = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldProvince]); City = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldCity]); District = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldDistrict]); Street = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldStreet]); UserCompany = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserCompany]); UserSubCompany = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserSubCompany]); UserDepartment = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserDepartment]); UserSubDepartment = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserSubDepartment]); UserWorkgroup = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldUserWorkgroup]); OnlyOwnData = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldOnlyOwnData]); NotAllowed = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldNotAllowed]); ByDetails = BaseBusinessLogic.ConvertToNullableInt(dr[BaseOrganizeScopeEntity.FieldByDetails]); ContainChild = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldContainChild]); Enabled = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldEnabled]); DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseOrganizeScopeEntity.FieldDeletionStateCode]); Description = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldDescription]); CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeScopeEntity.FieldCreateOn]); CreateUserId = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldCreateUserId]); CreateBy = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldCreateBy]); ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseOrganizeScopeEntity.FieldModifiedOn]); ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldModifiedUserId]); ModifiedBy = BaseBusinessLogic.ConvertToString(dr[BaseOrganizeScopeEntity.FieldModifiedBy]); return(this); }
/// <summary> /// 从数据行读取 /// </summary> /// <param name="dr">数据行</param> /// <returns>BaseParameterEntity</returns> protected override BaseEntity GetFrom(IDataRow dr) { Id = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldId]); CategoryCode = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldCategoryCode]); ParameterId = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldParameterId]); ParameterCode = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldParameterCode]); ParameterContent = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldParameterContent]); Worked = BaseBusinessLogic.ConvertIntToBoolean(dr[BaseParameterEntity.FieldWorked]); Enabled = BaseBusinessLogic.ConvertIntToBoolean(dr[BaseParameterEntity.FieldEnabled]); SortCode = BaseBusinessLogic.ConvertToNullableInt(dr[BaseParameterEntity.FieldSortCode]); Description = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldDescription]); CreateUserId = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldCreateUserId]); CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseParameterEntity.FieldCreateOn]); CreateBy = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldCreateBy]); ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldModifiedUserId]); ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseParameterEntity.FieldModifiedOn]); ModifiedBy = BaseBusinessLogic.ConvertToString(dr[BaseParameterEntity.FieldModifiedBy]); // 获取扩展属性 GetFromExpand(dr); return(this); }
/// <summary> /// 从数据行读取 /// </summary> /// <param name="dr">数据行</param> protected override BaseEntity GetFrom(IDataRow dr) { Id = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldId]); ParentId = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldParentId]); Code = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldCode]); FullName = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldFullName]); CategoryCode = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldCategoryCode]); ImageIndex = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldImageIndex]); SelectedImageIndex = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldSelectedImageIndex]); NavigateUrl = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldNavigateUrl]); /// WebBrowser = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldWebBrowser]); ImagUrl = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldImagUrl]); Target = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldTarget]); FormName = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldFormName]); AssemblyName = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldAssemblyName]); // PermissionScopeTables = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldPermissionScopeTables]); AuthorizedDays = BaseBusinessLogic.ConvertToNullableInt(dr[BaseModuleEntity.FieldAuthorizedDays]); SortCode = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldSortCode]); Enabled = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldEnabled]); DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldDeletionStateCode]); IsMenu = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldIsMenu]); IsPublic = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldIsPublic]); IsScope = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldIsScope]); IsVisible = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldIsVisible]); Expand = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldExpand]); AllowEdit = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldAllowEdit]); AllowDelete = BaseBusinessLogic.ConvertToInt(dr[BaseModuleEntity.FieldAllowDelete]); Description = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldDescription]); CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseModuleEntity.FieldCreateOn]); CreateUserId = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldCreateUserId]); CreateBy = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldCreateBy]); ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseModuleEntity.FieldModifiedOn]); ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldModifiedUserId]); ModifiedBy = BaseBusinessLogic.ConvertToString(dr[BaseModuleEntity.FieldModifiedBy]); // 获取扩展属性 GetFromExpand(dr); return(this); }
/// <summary> /// 从数据行读取 /// </summary> /// <param name="dr">数据行</param> protected override BaseEntity GetFrom(IDataRow dr) { GetFromExpand(dr); Id = BaseBusinessLogic.ConvertToInt(dr[BaseStationEntity.FieldId]); OrganizeId = BaseBusinessLogic.ConvertToNullableInt(dr[BaseStationEntity.FieldOrganizeId]); Code = BaseBusinessLogic.ConvertToString(dr[BaseStationEntity.FieldCode]); RealName = BaseBusinessLogic.ConvertToString(dr[BaseStationEntity.FieldRealName]); CategoryCode = BaseBusinessLogic.ConvertToString(dr[BaseStationEntity.FieldCategoryCode]); MacAddress = BaseBusinessLogic.ConvertToString(dr[BaseStationEntity.FieldMacAddress]); UploadTime = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseStationEntity.FieldUploadTime]); DownloadTime = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseStationEntity.FieldDownloadTime]); SortCode = BaseBusinessLogic.ConvertToNullableInt(dr[BaseStationEntity.FieldSortCode]); DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseStationEntity.FieldDeletionStateCode]); Enabled = BaseBusinessLogic.ConvertToInt(dr[BaseStationEntity.FieldEnabled]); Description = BaseBusinessLogic.ConvertToString(dr[BaseStationEntity.FieldDescription]); CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseStationEntity.FieldCreateOn]); CreateUserId = BaseBusinessLogic.ConvertToString(dr[BaseStationEntity.FieldCreateUserId]); CreateBy = BaseBusinessLogic.ConvertToString(dr[BaseStationEntity.FieldCreateBy]); ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseStationEntity.FieldModifiedOn]); ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[BaseStationEntity.FieldModifiedUserId]); ModifiedBy = BaseBusinessLogic.ConvertToString(dr[BaseStationEntity.FieldModifiedBy]); return(this); }
/// <summary> /// 从数据行读取 /// </summary> /// <param name="dataRow">数据行</param> protected override BaseEntity GetFrom(IDataRow dr) { GetFromExpand(dr); UserId = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldUserId]); FullName = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldFullName]); Salary = BaseBusinessLogic.ConvertToNullableDecimal(dr[UserByGUIDEntity.FieldSalary]); Age = BaseBusinessLogic.ConvertToNullableInt(dr[UserByGUIDEntity.FieldAge]); Birthday = BaseBusinessLogic.ConvertToNullableDateTime(dr[UserByGUIDEntity.FieldBirthday]); Photo = BaseBusinessLogic.ConvertToByte(dr[UserByGUIDEntity.FieldPhoto]); AllowEdit = BaseBusinessLogic.ConvertToNullableInt(dr[UserByGUIDEntity.FieldAllowEdit]); AllowDelete = BaseBusinessLogic.ConvertToNullableInt(dr[UserByGUIDEntity.FieldAllowDelete]); Enabled = BaseBusinessLogic.ConvertToInt(dr[UserByGUIDEntity.FieldEnabled]); DeletionStateCode = BaseBusinessLogic.ConvertToNullableInt(dr[UserByGUIDEntity.FieldDeletionStateCode]); SortCode = BaseBusinessLogic.ConvertToInt(dr[UserByGUIDEntity.FieldSortCode]); Description = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldDescription]); CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[UserByGUIDEntity.FieldCreateOn]); CreateUserId = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldCreateUserId]); CreateBy = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldCreateBy]); ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[UserByGUIDEntity.FieldModifiedOn]); ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldModifiedUserId]); ModifiedBy = BaseBusinessLogic.ConvertToString(dr[UserByGUIDEntity.FieldModifiedBy]); return(this); }
/// <summary> /// 从数据行读取 /// </summary> /// <param name="dr">数据行</param> protected override BaseEntity GetFrom(IDataRow dr) { Id = BaseBusinessLogic.ConvertToInt(dr[BaseItemsEntity.FieldId]); ParentId = BaseBusinessLogic.ConvertToNullableInt(dr[BaseItemsEntity.FieldParentId]); Code = BaseBusinessLogic.ConvertToString(dr[BaseItemsEntity.FieldCode]); FullName = BaseBusinessLogic.ConvertToString(dr[BaseItemsEntity.FieldFullName]); TargetTable = BaseBusinessLogic.ConvertToString(dr[BaseItemsEntity.FieldTargetTable]); IsTree = BaseBusinessLogic.ConvertToInt(dr[BaseItemsEntity.FieldIsTree]); AllowEdit = BaseBusinessLogic.ConvertToInt(dr[BaseItemsEntity.FieldAllowEdit]); AllowDelete = BaseBusinessLogic.ConvertToInt(dr[BaseItemsEntity.FieldAllowDelete]); DeletionStateCode = BaseBusinessLogic.ConvertToInt(dr[BaseItemsEntity.FieldDeletionStateCode]); Description = BaseBusinessLogic.ConvertToString(dr[BaseItemsEntity.FieldDescription]); Enabled = BaseBusinessLogic.ConvertToInt(dr[BaseItemsEntity.FieldEnabled]); SortCode = BaseBusinessLogic.ConvertToInt(dr[BaseItemsEntity.FieldSortCode]); CreateOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseItemsEntity.FieldCreateOn]); CreateUserId = BaseBusinessLogic.ConvertToString(dr[BaseItemsEntity.FieldCreateUserId]); CreateBy = BaseBusinessLogic.ConvertToString(dr[BaseItemsEntity.FieldCreateBy]); ModifiedOn = BaseBusinessLogic.ConvertToNullableDateTime(dr[BaseItemsEntity.FieldModifiedOn]); ModifiedUserId = BaseBusinessLogic.ConvertToString(dr[BaseItemsEntity.FieldModifiedUserId]); ModifiedBy = BaseBusinessLogic.ConvertToString(dr[BaseItemsEntity.FieldModifiedBy]); // 获取扩展属性 GetFromExpand(dr); return(this); }