Esempio n. 1
0
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(ProjectStage other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.ProjectStageID == ProjectStageID);
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectUpdate(ProjectUpdateBatch projectUpdateBatch, ProjectStage projectStage, ProjectLocationSimpleType projectLocationSimpleType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectUpdateID             = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectUpdateBatchID        = projectUpdateBatch.ProjectUpdateBatchID;
     this.ProjectUpdateBatch          = projectUpdateBatch;
     this.ProjectStageID              = projectStage.ProjectStageID;
     this.ProjectLocationSimpleTypeID = projectLocationSimpleType.ProjectLocationSimpleTypeID;
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public Project(ProjectType projectType, ProjectStage projectStage, string projectName, bool isFeatured, ProjectLocationSimpleType projectLocationSimpleType, ProjectApprovalStatus projectApprovalStatus, string fhtProjectNumber) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectID     = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectTypeID = projectType.ProjectTypeID;
     this.ProjectType   = projectType;
     projectType.Projects.Add(this);
     this.ProjectStageID = projectStage.ProjectStageID;
     this.ProjectName    = projectName;
     this.IsFeatured     = isFeatured;
     this.ProjectLocationSimpleTypeID = projectLocationSimpleType.ProjectLocationSimpleTypeID;
     this.ProjectApprovalStatusID     = projectApprovalStatus.ProjectApprovalStatusID;
     this.FhtProjectNumber            = fhtProjectNumber;
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectUpdate CreateNewBlank(ProjectUpdateBatch projectUpdateBatch, ProjectStage projectStage, ProjectLocationSimpleType projectLocationSimpleType)
 {
     return(new ProjectUpdate(projectUpdateBatch, projectStage, projectLocationSimpleType));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public GisUploadSourceOrganization(string gisUploadSourceOrganizationName, bool adjustProjectTypeBasedOnTreatmentTypes, ProjectStage projectStageDefault, bool dataDeriveProjectStage, Organization defaultLeadImplementerOrganization, RelationshipType relationshipTypeForDefaultOrganization, bool importAsDetailedLocationInsteadOfTreatments, bool applyCompletedDateToProject, bool applyStartDateToProject, Program program, bool importAsDetailedLocationInAdditionToTreatments, bool applyStartDateToTreatments, bool applyEndDateToTreatments) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.GisUploadSourceOrganizationID          = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.GisUploadSourceOrganizationName        = gisUploadSourceOrganizationName;
     this.AdjustProjectTypeBasedOnTreatmentTypes = adjustProjectTypeBasedOnTreatmentTypes;
     this.ProjectStageDefaultID  = projectStageDefault.ProjectStageID;
     this.DataDeriveProjectStage = dataDeriveProjectStage;
     this.DefaultLeadImplementerOrganizationID = defaultLeadImplementerOrganization.OrganizationID;
     this.DefaultLeadImplementerOrganization   = defaultLeadImplementerOrganization;
     defaultLeadImplementerOrganization.GisUploadSourceOrganizationsWhereYouAreTheDefaultLeadImplementerOrganization.Add(this);
     this.RelationshipTypeForDefaultOrganizationID = relationshipTypeForDefaultOrganization.RelationshipTypeID;
     this.RelationshipTypeForDefaultOrganization   = relationshipTypeForDefaultOrganization;
     relationshipTypeForDefaultOrganization.GisUploadSourceOrganizationsWhereYouAreTheRelationshipTypeForDefaultOrganization.Add(this);
     this.ImportAsDetailedLocationInsteadOfTreatments = importAsDetailedLocationInsteadOfTreatments;
     this.ApplyCompletedDateToProject = applyCompletedDateToProject;
     this.ApplyStartDateToProject     = applyStartDateToProject;
     this.ProgramID = program.ProgramID;
     this.Program   = program;
     program.GisUploadSourceOrganizations.Add(this);
     this.ImportAsDetailedLocationInAdditionToTreatments = importAsDetailedLocationInAdditionToTreatments;
     this.ApplyStartDateToTreatments = applyStartDateToTreatments;
     this.ApplyEndDateToTreatments   = applyEndDateToTreatments;
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static GisUploadSourceOrganization CreateNewBlank(ProjectStage projectStageDefault, Organization defaultLeadImplementerOrganization, RelationshipType relationshipTypeForDefaultOrganization, Program program)
 {
     return(new GisUploadSourceOrganization(default(string), default(bool), projectStageDefault, default(bool), defaultLeadImplementerOrganization, relationshipTypeForDefaultOrganization, default(bool), default(bool), default(bool), program, default(bool), default(bool), default(bool)));
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static Project CreateNewBlank(ProjectType projectType, ProjectStage projectStage, ProjectLocationSimpleType projectLocationSimpleType, ProjectApprovalStatus projectApprovalStatus)
 {
     return(new Project(projectType, projectStage, default(string), default(bool), projectLocationSimpleType, projectApprovalStatus, default(string)));
 }