Beispiel #1
0
 public ProcessBaseVm(AdminLevel a, ProcessDetails s, ICalcIndicators c)
 {
     r = new ProcessRepository();
     this.model = r.GetById(s.Id);
     adminLevel = a;
     calc = c;
 }
Beispiel #2
0
 public IntvBaseVm(AdminLevel a, IntvDetails d, ICalcIndicators c)
 {
     r = new IntvRepository();
     this.model = r.GetById(d.Id);
     adminLevel = a;
     calc = c;
 }
 public DiseaseDistroPcVm(AdminLevel a, DiseaseDistroPc s, ICalcIndicators c)
 {
     r = new DiseaseRepository();
     this.model = s;
     adminLevel = a;
     calc = c;
 }
Beispiel #4
0
 public SurveyBaseVm(AdminLevel a, SurveyDetails s, ICalcIndicators c)
 {
     r = new SurveyRepository();
     this.model = r.GetById(s.Id);
     adminLevel = a;
     calc = c;
 }
Beispiel #5
0
 public SurveyBaseVm(AdminLevel a, int typeId, ICalcIndicators c)
 {
     adminLevel = a;
     r = new SurveyRepository();
     model = r.CreateSurvey(typeId);
     calc = c;
 }
Beispiel #6
0
 public IntvBaseVm(AdminLevel a, int typeId, ICalcIndicators c)
 {
     adminLevel = a;
     r = new IntvRepository();
     model = r.CreateIntv(typeId);
     model.AdminLevelId = adminLevel.Id;
     calc = c;
 }
 public DiseaseDistroPcVm(AdminLevel a, int did, ICalcIndicators c)
 {
     adminLevel = a;
     r = new DiseaseRepository();
     model = r.Create((DiseaseType)did);
     model.AdminLevelId = adminLevel.Id;
     calc = c;
 }
Beispiel #8
0
 public ProcessBaseVm(AdminLevel a, int typeId, ICalcIndicators c)
 {
     adminLevel = a;
     r = new ProcessRepository();
     model = r.Create(typeId);
     model.AdminLevelId = adminLevel.Id;
     calc = c;
 }
Beispiel #9
0
 public ProcessBaseVm(AdminLevel a, ProcessBase s, ICalcIndicators c)
 {
     this.model = s;
     adminLevel = a;
     calc = c;
 }