Esempio n. 1
0
 public EditViewModel(ProjectFirmaModels.Models.ProjectStatus projectStatus)
 {
     ProjectStatusName        = projectStatus.ProjectStatusName;
     ProjectStatusDisplayName = projectStatus.ProjectStatusDisplayName;
     ProjectStatusDescription = projectStatus.ProjectStatusDescription;
     ProjectStatusColor       = projectStatus.ProjectStatusColor;
 }
Esempio n. 2
0
 public void UpdateModel(ProjectFirmaModels.Models.ProjectStatus projectStatus, FirmaSession currentFirmaSession)
 {
     projectStatus.ProjectStatusName        = ProjectStatusName;
     projectStatus.ProjectStatusDisplayName = ProjectStatusDisplayName;
     projectStatus.ProjectStatusDescription = ProjectStatusDescription;
     projectStatus.ProjectStatusColor       = ProjectStatusColor;
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectProjectStatus(Project project, ProjectStatus projectStatus, DateTime projectProjectStatusUpdateDate, string projectProjectStatusComment, Person projectProjectStatusCreatePerson, DateTime projectProjectStatusCreateDate, bool isFinalStatusUpdate) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectProjectStatusID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectID = project.ProjectID;
     this.Project   = project;
     project.ProjectProjectStatuses.Add(this);
     this.ProjectStatusID = projectStatus.ProjectStatusID;
     this.ProjectStatus   = projectStatus;
     projectStatus.ProjectProjectStatuses.Add(this);
     this.ProjectProjectStatusUpdateDate     = projectProjectStatusUpdateDate;
     this.ProjectProjectStatusComment        = projectProjectStatusComment;
     this.ProjectProjectStatusCreatePersonID = projectProjectStatusCreatePerson.PersonID;
     this.ProjectProjectStatusCreatePerson   = projectProjectStatusCreatePerson;
     projectProjectStatusCreatePerson.ProjectProjectStatusesWhereYouAreTheProjectProjectStatusCreatePerson.Add(this);
     this.ProjectProjectStatusCreateDate = projectProjectStatusCreateDate;
     this.IsFinalStatusUpdate            = isFinalStatusUpdate;
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectProjectStatus CreateNewBlank(Project project, ProjectStatus projectStatus, Person projectProjectStatusCreatePerson)
 {
     return(new ProjectProjectStatus(project, projectStatus, default(DateTime), default(string), projectProjectStatusCreatePerson, default(DateTime), default(bool)));
 }
Esempio n. 5
0
 public ProjectStatusJson(ProjectFirmaModels.Models.ProjectStatus projectStatus)
 {
     Color                    = projectStatus.ProjectStatusColor;
     ProjectStatusID          = projectStatus.ProjectStatusID;
     ProjectStatusDisplayName = projectStatus.ProjectStatusDisplayName;
 }