Esempio n. 1
0
 public CitiesStatistic(PralnaEntities db)
 {
     this.db = db;
     TotalServicesProvided = 0;
     CitiesStats           = new List <CityStatistic>();
     GraphData             = "";
 }
 public DivisionStatistic(PralnaEntities db, Division division)
 {
     this.db                 = db;
     this.Division           = division;
     WorkplaceStatistics     = new List <WorkplaceStatistic>();
     ServicesProvided        = 0;
     SuccessServicesProvided = 0;
     FailedServicesProvided  = 0;
 }
 public DivisionStatistic(PralnaEntities db, int divisionId)
 {
     this.db             = db;
     this.Division       = db.Divisions.Find(divisionId);
     WorkplaceStatistics = new List <WorkplaceStatistic>();
 }
 public WorkplaceStatistic(PralnaEntities db, WorkPlace workPlace)
 {
     this.db           = db;
     this.WorkPlace    = workPlace;
     WorkersStatistics = new List <WorkerStatistic>();
 }
 public WorkplaceStatistic(PralnaEntities db, int workplaceId)
 {
     this.db           = db;
     this.WorkPlace    = db.WorkPlaces.Find(workplaceId);
     WorkersStatistics = new List <WorkerStatistic>();
 }
 public OrganizationStatistic(PralnaEntities db, Organization someOrganization)
 {
     this.db           = db;
     this.Organization = someOrganization;
     DivisionStatistic = new List <DivisionStatistic>();
 }
Esempio n. 7
0
 public WorkerStatistic(PralnaEntities db, Worker worker)
 {
     this.db     = db;
     this.Worker = worker;
     ServiceData = new List <ServicesData>();
 }
Esempio n. 8
0
 public WorkerStatistic(PralnaEntities db, int workerId)
 {
     this.db     = db;
     this.Worker = db.Workers.Find(workerId);
     ServiceData = new List <ServicesData>();
 }
Esempio n. 9
0
 public CityStatistic(PralnaEntities db, int cityId)
 {
     this.db               = db;
     this.City             = db.Cities.Find(cityId);
     OrganizationStatistic = new List <OrganizationStatistic>();
 }
Esempio n. 10
0
 public CityStatistic(PralnaEntities db, City city)
 {
     this.db               = db;
     this.City             = city;
     OrganizationStatistic = new List <OrganizationStatistic>();
 }