Exemple #1
0
        public admincontrol()
        {
            InitializeComponent();
            hmsfac = new HMSFACTORY();
            this.firstnametxt_update.Visibility = System.Windows.Visibility.Hidden;
            this.lastnametxt_update.Visibility  = System.Windows.Visibility.Hidden;
            this.datepicker_update.Visibility   = System.Windows.Visibility.Hidden;
            this.cellno_update.Visibility       = System.Windows.Visibility.Hidden;

            this.usernametxt_update.Visibility    = System.Windows.Visibility.Hidden;
            this.passwordbox_update.Visibility    = System.Windows.Visibility.Hidden;
            this.specialization_update.Visibility = System.Windows.Visibility.Hidden;
            this.salary_update.Visibility         = System.Windows.Visibility.Hidden;
            this.datepicker_update.Visibility     = System.Windows.Visibility.Hidden;
            this.btn_delete.Visibility            = System.Windows.Visibility.Hidden;
            this.btn_update.Visibility            = System.Windows.Visibility.Hidden;
            //this.rbFemale_update.Visibility = System.Windows.Visibility.Hidden;
            //this.rbMale_update.Visibility = System.Windows.Visibility.Hidden;
            //this.delete_btn.Visibility = System.Windows.Visibility.Hidden;
            //this.update_btn.Visibility = System.Windows.Visibility.Hidden;
            this.firstnamelbl.Visibility    = System.Windows.Visibility.Hidden;
            this.lastnamelbl.Visibility     = System.Windows.Visibility.Hidden;
            this.passwordlbl.Visibility     = System.Windows.Visibility.Hidden;
            this.phonelbl.Visibility        = System.Windows.Visibility.Hidden;
            this.salarylbl.Visibility       = System.Windows.Visibility.Hidden;
            this.speciallbl.Visibility      = System.Windows.Visibility.Hidden;
            this.doblbl.Visibility          = System.Windows.Visibility.Hidden;
            this.genderlbl.Visibility       = System.Windows.Visibility.Hidden;
            this.unamelbl.Visibility        = System.Windows.Visibility.Hidden;
            this.rbMale_update.Visibility   = System.Windows.Visibility.Hidden;
            this.rbFemale_update.Visibility = System.Windows.Visibility.Hidden;
        }
        public DoctorPanelUc(User u, login3 login)
        {
            hmsfac = new HMSFACTORY();
            InitializeComponent();
            this.login     = login;
            user           = u;
            docOwner       = hmsfac.getDoctorByUid(user.user_id);
            NewPatientList = hmsfac.getMyPatients(docOwner);
            OldPatientList = hmsfac.getMyOldPatients(docOwner);
            medicineList   = hmsfac.getMedicine();
            presList       = hmsfac.getMyPrescriptions(docOwner);

            patmed_doc.ItemsSource    = medicineList;
            patmed1_doc.ItemsSource   = medicineList;
            patmed2_doc.ItemsSource   = medicineList;
            oldpatmed_doc.ItemsSource = medicineList;
            mypresc_med.ItemsSource   = medicineList;

            patmed_doc.SelectedValuePath    = "med_id";
            patmed_doc.DisplayMemberPath    = "med_name";
            patmed1_doc.SelectedValuePath   = "med_id";
            patmed1_doc.DisplayMemberPath   = "med_name";
            patmed2_doc.DisplayMemberPath   = "med_name";
            patmed2_doc.SelectedValuePath   = "med_id";
            oldpatmed_doc.SelectedValuePath = "med_id";
            oldpatmed_doc.DisplayMemberPath = "med_name";
            mypresc_med.DisplayMemberPath   = "med_name";
            mypresc_med.SelectedValuePath   = "med_id";

            dataGrid_NewPatient.ItemsSource      = NewPatientList;
            dataGrid_MyPrescriptions.ItemsSource = presList;
            dataGrid_OldPatient.ItemsSource      = OldPatientList;
        }
Exemple #3
0
 public AddRoomUc(List <Nurse> nlist, List <Room> rlist, HMSFACTORY hms)
 {
     this.roomlist = rlist;
     InitializeComponent();
     this.hmsfac               = hms;
     this.nurselist            = nlist;
     cboGovernedBy.ItemsSource = nlist;
 }
Exemple #4
0
 public AddPatientUc(List <Patient> patientList)
 {
     InitializeComponent();
     hmsfac           = new HMSFACTORY();
     this.patientList = patientList;
 }
 public AddPharmacistUc()
 {
     InitializeComponent();
     hmsfac = new HMSFACTORY();
     //this.pharmacistlist = pharma;
 }
 public PharmacistPanelUc()
 {
     InitializeComponent();
     hmsfac = new HMSFACTORY();
 }
Exemple #7
0
 public AddNurseUc(List <Nurse> nurselist)
 {
     InitializeComponent();
     this.hmsfac    = new HMSFACTORY();
     this.nurselist = nurselist;
 }
Exemple #8
0
 public AddMedicineUc(List <Medicine> medList)
 {
     InitializeComponent();
     this.medList = medList;
     hmsfac       = new HMSFACTORY();
 }
 public AddDoctorUc(List <Doctor> doclist)
 {
     InitializeComponent();
     hmsfac          = new HMSFACTORY();
     this.doctorlist = doclist;
 }