Пример #1
0
 public WorkingDaysForm(DBCommunication.DBCommunicationAdmin _db)
 {
     InitializeComponent();
     _DB           = _db;
     _working_time = _DB.GetWorkingTime();
     WorkingTimeGridControl.DataSource = _working_time;
 }
Пример #2
0
 public NonWorkingDaysForm(DBCommunication.DBCommunicationAdmin _db)
 {
     InitializeComponent();
     _DB             = _db;
     _nonWorkingdays = _DB.GetNonWorkingDays();
     NonWorkingDaysGridControl.DataSource = _nonWorkingdays;
 }
Пример #3
0
 public PatientInfoForm(DBCommunication.DBCommunicationAdmin _db, int patientID)
 {
     InitializeComponent();
     _patientInfo = new List <PatientInfo>();
     _DB          = _db;
     _patientInfo = _DB.GetPatientInfoID(patientID);
     //PatientInfoGridControl.DataSource = _patientInfo;
     if (_patientInfo != null)
     {
         if (_patientInfo.Count > 0)
         {
             patientInfo            = (PatientInfo)_patientInfo[0];
             Father_nameLBL.Text    = patientInfo.Father_name;
             Mother_nameLBL.Text    = patientInfo.Mother_name;
             AddressLBL.Text        = patientInfo.Address;
             PhoneLBL.Text          = patientInfo.Phone;
             MobileLBL.Text         = patientInfo.Mobile;
             UCIDLBL.Text           = patientInfo.UCID;
             RelationShipCB.Checked = patientInfo.Relationship_status;
             SmokreCB.Checked       = patientInfo.Smoker;
         }
         else
         {
             XtraMessageBox.Show("No information!");
         }
     }
 }
Пример #4
0
 public ChangePAsswordFormDcs(DBCommunication.DBCommunicationAdmin _db, int doctorID)
 {
     InitializeComponent();
     _DB     = _db;
     doctor  = doctorID;
     _doctor = _DB.GetDoctorID(doctor);
     dr      = _doctor[0];
 }
Пример #5
0
 public AgreedTermForPatientFormD(DBCommunication.DBCommunicationAdmin _db, int patientID)
 {
     InitializeComponent();
     _DB         = _db;
     patient     = patientID;
     _agreedTerm = _DB.GetAgreedTermForPatient(patient);
     AgreedTermGridControl.DataSource = _agreedTerm;
 }
Пример #6
0
 public ReferralFormD(DBCommunication.DBCommunicationAdmin _db, int doctorId, int patientID)
 {
     InitializeComponent();
     _DB       = _db;
     patient   = patientID;
     doctro    = doctorId;
     _referral = _DB.GetReferralForPatient(patient);
     ReferralGridControl.DataSource = _referral;
 }
Пример #7
0
 public AgreedTermAllFormD(DBCommunication.DBCommunicationAdmin _db, int doctorID)
 {
     InitializeComponent();
     _DB         = _db;
     doctor      = doctorID;
     _patient    = _DB.GetPatient();
     _agreedTerm = _DB.AgreedTemForDoctor(doctor);
     AgreedTermGridControl.DataSource = _agreedTerm;
 }
Пример #8
0
 public DiagnoseFormD(DBCommunication.DBCommunicationAdmin _db, int doctorID, int patientID)
 {
     InitializeComponent();
     _DB        = _db;
     patient    = patientID;
     doctor     = doctorID;
     _diagnosis = _DB.GetDiagnosisForPatient(patientID);
     DiagnosisGridControl.DataSource = _diagnosis;
 }
Пример #9
0
 public VisitDoctorFormD(DBCommunication.DBCommunicationAdmin _db, int doctorID, int patientID)
 {
     InitializeComponent();
     _DB          = _db;
     doctor       = doctorID;
     patient      = patientID;
     _vistiDoctor = _DB.GetVistiDoctorForPatient(patientID);
     VisitDoctorGridControl.DataSource = _vistiDoctor;
 }
Пример #10
0
 public PatientForm(DBCommunication.DBCommunicationAdmin _db)
 {
     InitializeComponent();
     _DB      = _db;
     _patient = _DB.GetPatient();
     PatientGridControl.DataSource = _patient;
     _doctor = _DB.GetDoctor();
     DoctorLE.Properties.DataSource    = _doctor;
     DoctorLE.Properties.DisplayMember = "Surname";
     DoctorLE.Properties.ValueMember   = "ID";
 }
Пример #11
0
 public DoctorForm(DBCommunication.DBCommunicationAdmin _db)
 {
     InitializeComponent();
     _DB     = _db;
     _doctor = _DB.GetDoctor();
     DoctorGridControl.DataSource = _doctor;
     _working_time = _DB.GetWorkingTime();
     WorkingTimeLE.Properties.DataSource    = _working_time;
     WorkingTimeLE.Properties.DisplayMember = "Odd_Even";
     WorkingTimeLE.Properties.ValueMember   = "ID";
 }
Пример #12
0
        public PatientInfoForm(DBCommunication.DBCommunicationAdmin _db)
        {
            InitializeComponent();
            _DB          = _db;
            _patientInfo = _DB.GetPatientInfo();
            PatientInfoGridControl.DataSource = _patientInfo;

            _patient = _DB.GetPatient();
            PatientLE.Properties.DataSource    = _patient;
            PatientLE.Properties.DisplayMember = "Surname";
            PatientLE.Properties.ValueMember   = "ID";
        }
Пример #13
0
 public EditPatientFormD(DBCommunication.DBCommunicationAdmin _db, int patientID)
 {
     InitializeComponent();
     _DB            = _db;
     pat            = patientID;
     _ptaient       = _DB.GetPatientID(pat);
     patient        = _ptaient[0];
     NameTE.Text    = patient.Name;
     SurnameTE.Text = patient.Surname;
     EmailTE.Text   = patient.Email;
     ContactTE.Text = patient.Contact;
 }
Пример #14
0
        public PrescriptionFormD(DBCommunication.DBCommunicationAdmin _db, int doctorID, int patientID)
        {
            InitializeComponent();
            _DB           = _db;
            _prescription = _DB.GetPrescriptionForPatient(patientID);
            PresciptionGridControl.DataSource = _prescription;

            _doctor = _DB.GetDoctor();


            _patient = _DB.GetPatient();

            patient = patientID;

            doctor = doctorID;
        }
Пример #15
0
        public ReferralFormcs(DBCommunication.DBCommunicationAdmin _db)
        {
            InitializeComponent();

            _DB       = _db;
            _referral = _DB.GetReferral();
            ReferralGridControl.DataSource = _referral;

            _doctor = _DB.GetDoctor();
            DoctorLE.Properties.DataSource = _doctor;

            _patient = _DB.GetPatient();
            PatientLE.Properties.DataSource = _patient;

            DoctorLE.Properties.DisplayMember = "Surname";
            DoctorLE.Properties.ValueMember   = "ID";

            PatientLE.Properties.DisplayMember = "Surname";
            PatientLE.Properties.ValueMember   = "ID";
        }
Пример #16
0
        public PrescriptionForm(DBCommunication.DBCommunicationAdmin _db)
        {
            InitializeComponent();
            _DB           = _db;
            _prescription = _DB.GetPrescription();
            PresciptionGridControl.DataSource = _prescription;

            _doctor = _DB.GetDoctor();
            DoctorLE.Properties.DataSource = _doctor;

            _patient = _DB.GetPatient();
            PatientLE.Properties.DataSource = _patient;

            DoctorLE.Properties.DisplayMember = "Surname";
            DoctorLE.Properties.ValueMember   = "ID";

            PatientLE.Properties.DisplayMember = "Surname";
            PatientLE.Properties.ValueMember   = "ID";

            DateTE.DateTime = DateTime.Now;
        }
Пример #17
0
 public AddPatientFormD(DBCommunication.DBCommunicationAdmin _db, int doctorID)
 {
     InitializeComponent();
     _DB    = _db;
     doctor = doctorID;
 }
Пример #18
0
        public AgreedTermForm(DBCommunication.DBCommunicationAdmin _db)
        {
            InitializeComponent();
            HideShowElement(false);
            _termAM = new List <Term>();
            _termAM.Add(new Term {
                Time = "08:00:00"
            }); _termAM.Add(new Term {
                Time = "08:15:00"
            }); _termAM.Add(new Term {
                Time = "08:30:00"
            }); _termAM.Add(new Term {
                Time = "08:45:00"
            });
            _termAM.Add(new Term {
                Time = "09:00:00"
            }); _termAM.Add(new Term {
                Time = "09:15:00"
            }); _termAM.Add(new Term {
                Time = "09:30:00"
            }); _termAM.Add(new Term {
                Time = "09:45:00"
            });
            _termAM.Add(new Term {
                Time = "10:00:00"
            }); _termAM.Add(new Term {
                Time = "10:15:00"
            }); _termAM.Add(new Term {
                Time = "10:30:00"
            }); _termAM.Add(new Term {
                Time = "10:45:00"
            });
            _termAM.Add(new Term {
                Time = "11:00:00"
            }); _termAM.Add(new Term {
                Time = "11:15:00"
            }); _termAM.Add(new Term {
                Time = "11:30:00"
            }); _termAM.Add(new Term {
                Time = "11:45:00"
            });
            _termAM.Add(new Term {
                Time = "12:00:00"
            }); _termAM.Add(new Term {
                Time = "12:15:00"
            }); _termAM.Add(new Term {
                Time = "12:30:00"
            }); _termAM.Add(new Term {
                Time = "12:45:00"
            });
            _termAM.Add(new Term {
                Time = "13:00:00"
            }); _termAM.Add(new Term {
                Time = "13:15:00"
            }); _termAM.Add(new Term {
                Time = "13:30:00"
            }); _termAM.Add(new Term {
                Time = "13:45:00"
            });

            _termPM = new List <Term>();
            _termPM.Add(new Term {
                Time = "14:00:00"
            }); _termPM.Add(new Term {
                Time = "14:15:00"
            }); _termPM.Add(new Term {
                Time = "14:30:00"
            }); _termPM.Add(new Term {
                Time = "14:45:00"
            });
            _termPM.Add(new Term {
                Time = "15:00:00"
            }); _termPM.Add(new Term {
                Time = "15:15:00"
            }); _termPM.Add(new Term {
                Time = "15:30:00"
            }); _termPM.Add(new Term {
                Time = "15:45:00"
            });
            _termPM.Add(new Term {
                Time = "16:00:00"
            }); _termPM.Add(new Term {
                Time = "16:15:00"
            }); _termPM.Add(new Term {
                Time = "16:30:00"
            }); _termPM.Add(new Term {
                Time = "16:45:00"
            });
            _termPM.Add(new Term {
                Time = "17:00:00"
            }); _termPM.Add(new Term {
                Time = "17:15:00"
            }); _termPM.Add(new Term {
                Time = "17:30:00"
            }); _termPM.Add(new Term {
                Time = "17:45:00"
            });
            _termPM.Add(new Term {
                Time = "18:00:00"
            }); _termPM.Add(new Term {
                Time = "18:15:00"
            }); _termPM.Add(new Term {
                Time = "18:30:00"
            }); _termPM.Add(new Term {
                Time = "18:45:00"
            });
            _termPM.Add(new Term {
                Time = "19:00:00"
            }); _termPM.Add(new Term {
                Time = "19:15:00"
            }); _termPM.Add(new Term {
                Time = "19:30:00"
            }); _termPM.Add(new Term {
                Time = "19:45:00"
            });


            agreedTerm  = new AgreedTerm();
            _DB         = _db;
            _agreedTerm = _DB.GetAgreedTerm();
            AgreedTermGridControl.DataSource = _agreedTerm;

            _patient = _DB.GetPatient();

            PatientLE.Properties.DataSource    = _patient;
            PatientLE.Properties.DisplayMember = "Name";
            PatientLE.Properties.ValueMember   = "ID";

            _doctor = _DB.GetDoctor();
            DoctorLE.Properties.DataSource    = _doctor;
            DoctorLE.Properties.DisplayMember = "Name";
            DoctorLE.Properties.ValueMember   = "ID";
        }