Beispiel #1
0
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(AccomplishmentsDashboardFundingDisplayType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.AccomplishmentsDashboardFundingDisplayTypeID == AccomplishmentsDashboardFundingDisplayTypeID);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static TenantAttribute CreateNewBlank(TaxonomyLevel taxonomyLevel, TaxonomyLevel associatePerfomanceMeasureTaxonomyLevel, AccomplishmentsDashboardFundingDisplayType accomplishmentsDashboardFundingDisplayType, BudgetType budgetType)
 {
     return(new TenantAttribute(default(DbGeometry), default(int), default(string), default(string), default(bool), taxonomyLevel, associatePerfomanceMeasureTaxonomyLevel, default(bool), default(bool), accomplishmentsDashboardFundingDisplayType, default(bool), default(bool), default(bool), default(bool), default(string), default(string), budgetType, default(bool), default(bool), default(bool), default(bool), default(bool), default(bool), default(bool), default(bool), default(bool), default(bool), default(bool), default(bool), default(bool), default(bool)));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public TenantAttribute(DbGeometry defaultBoundingBox, int minimumYear, string tenantShortDisplayName, string toolDisplayName, bool showProposalsToThePublic, TaxonomyLevel taxonomyLevel, TaxonomyLevel associatePerfomanceMeasureTaxonomyLevel, bool isActive, bool projectExternalDataSourceEnabled, AccomplishmentsDashboardFundingDisplayType accomplishmentsDashboardFundingDisplayType, bool accomplishmentsDashboardIncludeReportingOrganizationType, bool showLeadImplementerLogoOnFactSheet, bool enableAccomplishmentsDashboard, bool enableSecondaryProjectTaxonomyLeaf, string keystoneOpenIDClientIdentifier, string keystoneOpenIDClientSecret, BudgetType budgetType, bool canManageCustomAttributes, bool excludeTargetedFundingOrganizations, bool useProjectTimeline, bool enableEvaluations, bool enableProjectCategories, bool enableReports, bool enableMatchmaker, bool matchmakerAlgorithmIncludesProjectGeospatialAreas, bool areGeospatialAreasExternallySourced, bool showPhotoCreditOnFactSheet, bool trackAccomplishments, bool showExpectedPerformanceMeasuresOnFactSheet, bool enableStatusUpdates, bool enableSolicitations) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.TenantAttributeID        = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.DefaultBoundingBox       = defaultBoundingBox;
     this.MinimumYear              = minimumYear;
     this.TenantShortDisplayName   = tenantShortDisplayName;
     this.ToolDisplayName          = toolDisplayName;
     this.ShowProposalsToThePublic = showProposalsToThePublic;
     this.TaxonomyLevelID          = taxonomyLevel.TaxonomyLevelID;
     this.AssociatePerfomanceMeasureTaxonomyLevelID = associatePerfomanceMeasureTaxonomyLevel.TaxonomyLevelID;
     this.IsActive = isActive;
     this.ProjectExternalDataSourceEnabled                         = projectExternalDataSourceEnabled;
     this.AccomplishmentsDashboardFundingDisplayTypeID             = accomplishmentsDashboardFundingDisplayType.AccomplishmentsDashboardFundingDisplayTypeID;
     this.AccomplishmentsDashboardIncludeReportingOrganizationType = accomplishmentsDashboardIncludeReportingOrganizationType;
     this.ShowLeadImplementerLogoOnFactSheet                       = showLeadImplementerLogoOnFactSheet;
     this.EnableAccomplishmentsDashboard     = enableAccomplishmentsDashboard;
     this.EnableSecondaryProjectTaxonomyLeaf = enableSecondaryProjectTaxonomyLeaf;
     this.KeystoneOpenIDClientIdentifier     = keystoneOpenIDClientIdentifier;
     this.KeystoneOpenIDClientSecret         = keystoneOpenIDClientSecret;
     this.BudgetTypeID = budgetType.BudgetTypeID;
     this.CanManageCustomAttributes           = canManageCustomAttributes;
     this.ExcludeTargetedFundingOrganizations = excludeTargetedFundingOrganizations;
     this.UseProjectTimeline      = useProjectTimeline;
     this.EnableEvaluations       = enableEvaluations;
     this.EnableProjectCategories = enableProjectCategories;
     this.EnableReports           = enableReports;
     this.EnableMatchmaker        = enableMatchmaker;
     this.MatchmakerAlgorithmIncludesProjectGeospatialAreas = matchmakerAlgorithmIncludesProjectGeospatialAreas;
     this.AreGeospatialAreasExternallySourced = areGeospatialAreasExternallySourced;
     this.ShowPhotoCreditOnFactSheet          = showPhotoCreditOnFactSheet;
     this.TrackAccomplishments = trackAccomplishments;
     this.ShowExpectedPerformanceMeasuresOnFactSheet = showExpectedPerformanceMeasuresOnFactSheet;
     this.EnableStatusUpdates = enableStatusUpdates;
     this.EnableSolicitations = enableSolicitations;
 }