Esempio n. 1
0
 public AddPatientViewModel(AddPatientView patientView)
 {
     this.patientView = patientView;
     ClinicPatient    = new vwClinicPatient();
     GenderList       = genders.GetGenders();
     DoctorList       = doctors.ViewAllDoctors();
 }
 public RegistrationViewModel(RegistrationView registrationView)
 {
     this.registrationView = registrationView;
     User               = new vwUser();
     GenderList         = genders.GetGenders();
     MarriageStatusList = marriageStatus.GetRelationshipStatus();
 }
 public AddEmployeeViewModel(AddEmployee employeeView)
 {
     this.employeeView = employeeView;
     Employee          = new vwEmployee();
     EngagementList    = engagement.GetEngagements();
     GenderList        = genders.GetGenders();
 }
Esempio n. 4
0
 public EditDoctorViewModel(EditDoctorView doctorView, vwClinicDoctor doctorToEdit)
 {
     this.doctorView = doctorView;
     ClinicDoctor    = doctorToEdit;
     GenderList      = genders.GetGenders();
     ShiftList       = shifts.GetShifts();
     ManagerList     = managers.ManagersWhoCanSupervise();
     OldDoctor       = new vwClinicDoctor
     {
         Citizenship                    = doctorToEdit.Citizenship,
         DateOfBirth                    = doctorToEdit.DateOfBirth,
         Gender                         = doctorToEdit.Gender,
         IdentityCardNumber             = doctorToEdit.IdentityCardNumber,
         NameAndSurname                 = doctorToEdit.NameAndSurname,
         Password                       = doctorToEdit.Password,
         Username                       = doctorToEdit.Username,
         BankAccountNumber              = doctorToEdit.BankAccountNumber,
         Department                     = doctorToEdit.Department,
         ResponsibleForPatientAdmission = doctorToEdit.ResponsibleForPatientAdmission,
         Shift           = doctorToEdit.Shift,
         SuperiorManager = doctorToEdit.SuperiorManager,
         UniqueNumber    = doctorToEdit.UniqueNumber,
         Manager         = doctorToEdit.Manager
     };
 }
 public AddDoctorViewModel(AddDoctorView doctorView)
 {
     this.doctorView = doctorView;
     ClinicDoctor    = new vwClinicDoctor();
     GenderList      = genders.GetGenders();
     ShiftList       = shifts.GetShifts();
     ManagerList     = managers.ManagersWhoCanSupervise();
 }
Esempio n. 6
0
 public MaintenanceEditFormViewModel(MaintenanceEditFormView maintenanceView, vwClinicMaintenance maintenanceToEdit)
 {
     this.maintenanceView = maintenanceView;
     ClinicMaintenance    = maintenanceToEdit;
     GenderList           = genders.GetGenders();
     OldMaintenance       = new vwClinicMaintenance
     {
         Citizenship              = maintenanceToEdit.Citizenship,
         DateOfBirth              = maintenanceToEdit.DateOfBirth,
         Gender                   = maintenanceToEdit.Gender,
         IdentityCardNumber       = maintenanceToEdit.IdentityCardNumber,
         NameAndSurname           = maintenanceToEdit.NameAndSurname,
         Password                 = maintenanceToEdit.Password,
         PermissionToExpandClinic = maintenanceToEdit.PermissionToExpandClinic,
         ResponsibleForAccessibilityOfInvalids = maintenanceToEdit.ResponsibleForAccessibilityOfInvalids,
         Username = maintenanceToEdit.Username
     };
 }
 public ManagerEditFormViewModel(ManagerEditFormView managerView, vwClinicManager managerToEdit)
 {
     this.managerView = managerView;
     ClinicManager    = managerToEdit;
     GenderList       = genders.GetGenders();
     OldManager       = new vwClinicManager
     {
         Citizenship        = managerToEdit.Citizenship,
         DateOfBirth        = managerToEdit.DateOfBirth,
         Gender             = managerToEdit.Gender,
         IdentityCardNumber = managerToEdit.IdentityCardNumber,
         NameAndSurname     = managerToEdit.NameAndSurname,
         Password           = managerToEdit.Password,
         Username           = managerToEdit.Username,
         Floor = managerToEdit.Floor,
         MaximumNumberOfSupervisedDoctors = managerToEdit.MaximumNumberOfSupervisedDoctors,
         MinimumNumberOfSupervisedRooms   = managerToEdit.MinimumNumberOfSupervisedRooms,
         NumberOfOmissions = managerToEdit.NumberOfOmissions
     };
 }
Esempio n. 8
0
 public EditPatientViewModel(EditPatientView patientView, vwClinicPatient patientToEdit)
 {
     this.patientView = patientView;
     ClinicPatient    = patientToEdit;
     GenderList       = genders.GetGenders();
     DoctorList       = doctors.ViewAllDoctors();
     OldPatient       = new vwClinicPatient
     {
         Citizenship        = patientToEdit.Citizenship,
         DateOfBirth        = patientToEdit.DateOfBirth,
         Gender             = patientToEdit.Gender,
         IdentityCardNumber = patientToEdit.IdentityCardNumber,
         NameAndSurname     = patientToEdit.NameAndSurname,
         Password           = patientToEdit.Password,
         Username           = patientToEdit.Username,
         ExpirationDateOfHealthInsurance = patientToEdit.ExpirationDateOfHealthInsurance,
         HealthInsuranceCardNumber       = patientToEdit.HealthInsuranceCardNumber,
         UniqueNumberOfSelectedDoctor    = patientToEdit.UniqueNumberOfSelectedDoctor
     };
 }
 public AddManagerViewModel(AddManagerView managerView)
 {
     this.managerView = managerView;
     ClinicManager    = new vwClinicManager();
     GenderList       = genders.GetGenders();
 }
 public AddAdministratorViewModel(AddAdministratorView administratorView)
 {
     this.administratorView = administratorView;
     ClinicAdministrator    = new vwClinicAdministrator();
     GenderList             = genders.GetGenders();
 }
 public MaintenanceAddFormViewModel(MaintenanceAddFormView maintenanceView)
 {
     this.maintenanceView = maintenanceView;
     ClinicMaintenance    = new vwClinicMaintenance();
     GenderList           = genders.GetGenders();
 }