/// <summary> /// Empty Constructor /// </summary> public Project() { this.id = 0; this.name = ""; this.builder = new Builder(); this.status = new ProjectStatus(); this.tenderForm = new TenderForm(); this.enterpriseForm = new EnterpriseForm(); this.executive = new User(); enterpriseList = false; copy = false; }
/// <summary> /// Constructor, that accepts an existing Enterprise Form /// </summary> /// <param name="abbreviation">string</param> /// <param name="form">string</param> public EnterpriseForm(EnterpriseForm form) { if (form != null) { this.abbreviation = form.Abbreviation; this.name = form.Name; } else { this.abbreviation = ""; this.name = ""; } }
/// <summary> /// Constructor that receives data from an existing Indexed Project /// </summary> /// <param name="indexProject">IndexedProject</param> public Project(IndexedProject indexProject) { this.id = indexProject.Id; this.caseId = indexProject.CaseId; this.name = indexProject.Name; this.builder = indexProject.Builder; this.status = indexProject.Status; this.tenderForm = indexProject.TenderForm; this.enterpriseForm = indexProject.EnterpriseForm; this.executive = indexProject.Executive; this.enterpriseList = indexProject.EnterpriseList; this.copy = indexProject.Copy; }
/// <summary> /// Constructor to add project from Db to List /// </summary> /// <param name="id">int</param> /// <param name="caseId">int</param> /// <param name="name">string</param> /// <param name="builder">string</param> /// <param name="status">int</param> /// <param name="tenderForm">int</param> /// <param name="enterpriseForm">int</param> /// <param name="executive">int</param> /// <param name="enterPriseList">bool</param> /// <param name="copy">bool</param> public Project(int id, int caseId, string name, Builder builder, ProjectStatus status, TenderForm tenderForm, EnterpriseForm enterpriseForm, User executive, bool enterpriseList, bool copy = false) { this.id = id; this.caseId = caseId; this.name = name; this.builder = builder; this.status = status; this.tenderForm = tenderForm; this.enterpriseForm = enterpriseForm; this.executive = executive; this.enterpriseList = enterpriseList; this.copy = copy; }
/// <summary> /// Constructor that receives data from an existing Project /// </summary> /// <param name="project"></param> public Project(Project project) { this.id = project.Id; this.caseId = project.CaseId; this.name = project.Name; this.builder = project.Builder; this.status = project.Status; this.tenderForm = project.TenderForm; this.enterpriseForm = project.EnterpriseForm; this.executive = project.Executive; this.enterpriseList = project.EnterpriseList; this.copy = project.Copy; }
/// <summary> /// Constructor, to create an Indexable EnterpriseForm /// </summary> /// <param name="index">int</param> /// <param name="form">EnterpriseForm</param> public IndexedEnterpriseForm(int index, EnterpriseForm form) : base(form) { this.index = index; }