public SolicitorFirmByTipstaffRecordViewModel(int SolicitorFirmID, int TipstaffRecordID)
 {
     solicitorFirmID  = SolicitorFirmID;
     tipstaffRecordID = TipstaffRecordID;
     SolicitorFirm    = myDBContextHelper.CurrentContext.SolicitorsFirms.Find(solicitorFirmID);
     TipstaffRecord   = myDBContextHelper.CurrentContext.TipstaffRecord.Find(tipstaffRecordID);
 }
Exemplo n.º 2
0
 public WordFile(TipstaffRecord tipstaffRecord, string serverPath, Template template) //Constructor with variables
 {
     tipstaffRecordID = tipstaffRecord.tipstaffRecordID;
     Path             = string.Format(serverPath + "{0}", tipstaffRecord.tipstaffRecordID);
     fileName         = string.Format("{0}-{1}.doc", template.templateName, tipstaffRecord.UniqueRecordID);
     fullName         = string.Format("{0}\\{1}", Path, fileName);
     //Ensure folder exists to create outoput
     //if (!Directory.Exists(Path)) Directory.CreateDirectory(Path);
 }
 public ApplicantCreationModel(int id)
 {
     tipstaffRecord   = myDBContextHelper.CurrentContext.TipstaffRecord.Find(id);
     tipstaffRecordID = id;
     SalutationList   = new SelectList(myDBContextHelper.CurrentContext.Salutations.Where(x => x.active == true).ToList(), "salutationID", "Detail");
 }