Example #1
0
 /// <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;
 }
Example #2
0
 /// <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;
 }
Example #3
0
 /// <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;
 }
Example #4
0
 /// <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 TenderForm
 /// </summary>
 /// <param name="index">int</param>
 /// <param name="form">TenderForm</param>
 public IndexedTenderForm(int index, TenderForm form) : base(form)
 {
     this.index = index;
 }
 /// <summary>
 /// Method to add a Tender Form
 /// </summary>
 /// <param name="form">TenderForm</param>
 public TenderForm(TenderForm form)
 {
     this.id          = form.Id;
     this.description = form.Description;
 }