Example #1
0
 /// <summary>
 /// Constructor, that accepts data from an existing Project
 /// </summary>
 /// <param name="project"></param>
 public Project(Project project)
 {
     this.id             = project.Id;
     this._case          = project.Case;
     this.builder        = project.Builder;
     this.status         = project.Status;
     this.tenderForm     = project.TenderForm;
     this.enterpriseForm = project.EnterpriseForm;
     this.executive      = project.Executive;
     this.details        = project.Details;
     this.enterpriseList = project.EnterpriseList;
     this.copy           = project.Copy;
 }
Example #2
0
 /// <summary>
 /// Constructor to add a project from Db to List
 /// </summary>
 /// <param name="id">int</param>
 /// <param name="Case">int</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="details">ProjectDetail</param>
 /// <param name="enterPriseList">bool</param>
 /// <param name="copy">bool</param>
 public Project(int id, int Case, Builder builder, ProjectStatus status, TenderForm tenderForm, EnterpriseForm enterpriseForm, User executive, ProjectDetail details, bool enterpriseList, bool copy = false)
 {
     this.id             = id;
     this._case          = Case;
     this.builder        = builder;
     this.status         = status;
     this.tenderForm     = tenderForm;
     this.enterpriseForm = enterpriseForm;
     this.executive      = executive;
     this.details        = details;
     this.enterpriseList = enterpriseList;
     this.copy           = copy;
 }
Example #3
0
 /// <summary>
 /// Constructor to add a new Indexed EnterpriseForm
 /// </summary>
 /// <param name="index">int</param>
 /// <param name="form">EnterpriseForm</param>
 public IndexedEnterpriseForm(int index, EnterpriseForm form) : base(form)
 {
     this.index = index;
 }
Example #4
0
 /// <summary>
 /// Constructor, that accepts data from an existing Enterprise Form
 /// </summary>
 /// <param name="Indexed">IndexedEnterpriseForm</param>
 public EnterpriseForm(EnterpriseForm enterpriseForm)
 {
     this.id   = enterpriseForm.Id;
     this.text = enterpriseForm.Text;
 }