public WorkingDaysForm(DBCommunication.DBCommunicationAdmin _db) { InitializeComponent(); _DB = _db; _working_time = _DB.GetWorkingTime(); WorkingTimeGridControl.DataSource = _working_time; }
public NonWorkingDaysForm(DBCommunication.DBCommunicationAdmin _db) { InitializeComponent(); _DB = _db; _nonWorkingdays = _DB.GetNonWorkingDays(); NonWorkingDaysGridControl.DataSource = _nonWorkingdays; }
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!"); } } }
public ChangePAsswordFormDcs(DBCommunication.DBCommunicationAdmin _db, int doctorID) { InitializeComponent(); _DB = _db; doctor = doctorID; _doctor = _DB.GetDoctorID(doctor); dr = _doctor[0]; }
public AgreedTermForPatientFormD(DBCommunication.DBCommunicationAdmin _db, int patientID) { InitializeComponent(); _DB = _db; patient = patientID; _agreedTerm = _DB.GetAgreedTermForPatient(patient); AgreedTermGridControl.DataSource = _agreedTerm; }
public ReferralFormD(DBCommunication.DBCommunicationAdmin _db, int doctorId, int patientID) { InitializeComponent(); _DB = _db; patient = patientID; doctro = doctorId; _referral = _DB.GetReferralForPatient(patient); ReferralGridControl.DataSource = _referral; }
public AgreedTermAllFormD(DBCommunication.DBCommunicationAdmin _db, int doctorID) { InitializeComponent(); _DB = _db; doctor = doctorID; _patient = _DB.GetPatient(); _agreedTerm = _DB.AgreedTemForDoctor(doctor); AgreedTermGridControl.DataSource = _agreedTerm; }
public DiagnoseFormD(DBCommunication.DBCommunicationAdmin _db, int doctorID, int patientID) { InitializeComponent(); _DB = _db; patient = patientID; doctor = doctorID; _diagnosis = _DB.GetDiagnosisForPatient(patientID); DiagnosisGridControl.DataSource = _diagnosis; }
public VisitDoctorFormD(DBCommunication.DBCommunicationAdmin _db, int doctorID, int patientID) { InitializeComponent(); _DB = _db; doctor = doctorID; patient = patientID; _vistiDoctor = _DB.GetVistiDoctorForPatient(patientID); VisitDoctorGridControl.DataSource = _vistiDoctor; }
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"; }
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"; }
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"; }
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; }
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; }
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"; }
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; }
public AddPatientFormD(DBCommunication.DBCommunicationAdmin _db, int doctorID) { InitializeComponent(); _DB = _db; doctor = doctorID; }
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"; }