Ejemplo n.º 1
0
 private void autoCompleteUC1_SelectedValueChanged(object sender, object e)
 {
     try
     {
         trn_eye_exam_hdr eye = _PatientRegis.trn_eye_exam_hdrs.FirstOrDefault();
         if (eye != null)
         {
             if (e == null)
             {
                 eye.teh_doctor_code    = null;
                 eye.teh_doctor_license = null;
                 eye.teh_doctor_name_en = null;
                 eye.teh_doctor_name_th = null;
             }
             else
             {
                 eye.teh_doctor_code    = ((DoctorProfile)e).SSUSR_Initials;
                 eye.teh_doctor_license = ((DoctorProfile)e).CTPCP_SMCNo;
                 DoctorName dn = obj.GetDoctorName(((DoctorProfile)e).CTPCP_Desc);
                 eye.teh_doctor_name_en = dn.NameEN;
                 eye.teh_doctor_name_th = dn.NameTH;
             }
         }
     }
     catch (Exception ex)
     {
         Program.MessageError(this.Name, "autoCompleteUC1_SelectedValueChanged", ex, false);
     }
 }
Ejemplo n.º 2
0
 private void autoCompleteUC1_SelectedValueChanged(object sender, object e)
 {
     try
     {
         trn_doctor_ekg ekg = bsDoctorEKG.OfType <trn_doctor_ekg>().FirstOrDefault();
         if (ekg != null)
         {
             if (e == null)
             {
                 ekg.trek_cardiologist_code    = null;
                 ekg.trek_cardiologist_license = null;
                 ekg.trek_cardiologist_name_en = null;
                 ekg.trek_cardiologist_name_th = null;
             }
             else
             {
                 ekg.trek_cardiologist_code    = ((DoctorProfile)e).SSUSR_Initials;
                 ekg.trek_cardiologist_license = ((DoctorProfile)e).CTPCP_SMCNo;
                 DoctorName dn = obj.GetDoctorName(((DoctorProfile)e).CTPCP_Desc);
                 ekg.trek_cardiologist_name_en = dn.NameEN;
                 ekg.trek_cardiologist_name_th = dn.NameTH;
             }
         }
     }
     catch (Exception ex)
     {
         Program.MessageError(this.Name, "autoCompleteUC1_SelectedValueChanged", ex, false);
     }
 }
Ejemplo n.º 3
0
 private void autoCompleteUC1_SelectedValueChanged(object sender, object e)
 {
     try
     {
         trn_audiometric_hdr patientAudio = bsPatientAudio.OfType <trn_audiometric_hdr>().FirstOrDefault();
         if (patientAudio != null)
         {
             if (e == null)
             {
                 txtDoctorCode.Text              = "";
                 patientAudio.tdh_doctor_code    = null;
                 patientAudio.tdh_doctor_license = null;
                 patientAudio.tdh_doctor_name_en = null;
                 patientAudio.tdh_doctor_name_th = null;
             }
             else
             {
                 txtDoctorCode.Text              = ((DoctorProfile)e).SSUSR_Initials;
                 patientAudio.tdh_doctor_code    = ((DoctorProfile)e).SSUSR_Initials;
                 patientAudio.tdh_doctor_license = ((DoctorProfile)e).CTPCP_SMCNo;
                 DoctorName dn = obj.GetDoctorName(((DoctorProfile)e).CTPCP_Desc);
                 patientAudio.tdh_doctor_name_en = dn.NameEN;
                 patientAudio.tdh_doctor_name_th = dn.NameTH;
             }
         }
     }
     catch (Exception ex)
     {
         Program.MessageError(this.Name, "autoCompleteUC1_SelectedValueChanged", ex, false);
     }
 }
Ejemplo n.º 4
0
        private void autoCompleteUC1_SelectedValueChanged(object sender, object e)
        {
            try
            {
                trn_abi_hdr abi = bsPatientABI.OfType <trn_abi_hdr>().FirstOrDefault();

                if (abi != null)
                {
                    if (e == null)
                    {
                        abi.tah_doctor_code    = null;
                        abi.tah_doctor_license = null;
                        abi.tah_doctor_name_en = null;
                        abi.tah_doctor_name_th = null;
                    }
                    else
                    {
                        abi.tah_doctor_code    = ((DoctorProfile)e).SSUSR_Initials;
                        abi.tah_doctor_license = ((DoctorProfile)e).CTPCP_SMCNo;
                        DoctorName dn = obj.GetDoctorName(((DoctorProfile)e).CTPCP_Desc);
                        abi.tah_doctor_name_en = dn.NameEN;
                        abi.tah_doctor_name_th = dn.NameTH;
                    }
                }
            }
            catch (Exception ex)
            {
                Program.MessageError(this.Name, "autoCompleteUC1_SelectedValueChanged", ex, false);
            }
        }
Ejemplo n.º 5
0
 private void autoCompleteUC1_SelectedValueChanged(object sender, object e)
 {
     try
     {
         trn_obstetric_chief pap = bsObstetricChief.OfType <trn_obstetric_chief>().FirstOrDefault();
         if (pap != null)
         {
             if (e == null)
             {
                 pap.toc_doc_code       = null;
                 pap.toc_doc_name       = null;
                 pap.toc_doctor_license = null;
                 pap.toc_doctor_name_en = null;
                 pap.toc_doctor_name_th = null;
             }
             else
             {
                 pap.toc_doc_code       = ((DoctorProfile)e).SSUSR_Initials;
                 pap.toc_doc_name       = ((DoctorProfile)e).CTPCP_Desc;
                 pap.toc_doctor_license = ((DoctorProfile)e).CTPCP_SMCNo;
                 DoctorName dn = obj.GetDoctorName(((DoctorProfile)e).CTPCP_Desc);
                 pap.toc_doctor_name_en = dn.NameEN;
                 pap.toc_doctor_name_th = dn.NameTH;
             }
         }
     }
     catch (Exception ex)
     {
         Program.MessageError(this.Name, "autoCompleteUC1_SelectedValueChanged", ex, false);
     }
 }
Ejemplo n.º 6
0
 private void frmListDoctor_Load(object sender, System.EventArgs e)
 {
     if (DoctorID.Trim() != "")
     {
         txtDoctor.Tag  = DoctorID.Trim();
         txtDoctor.Text = DoctorName.Trim();
         PatientID      = "";
         PatientName    = "";
     }
     else
     {
         DoctorID    = "";
         DoctorName  = "";
         PatientID   = "";
         PatientName = "";
     }
     if (this.LoginInfo != null)
     {
         txtDoctor.Tag  = this.LoginInfo.m_strEmpID;
         txtDoctor.Text = this.LoginInfo.m_strEmpName;
         PatientID      = "";
         PatientName    = "";
         txtPatient_KeyDown(null, new KeyEventArgs(Keys.Enter));
     }
 }
Ejemplo n.º 7
0
 private void lsvDoctor_DoubleClick(object sender, EventArgs e)
 {
     if (lsvDoctor.SelectedItems.Count > 0)
     {
         int CurrIndex = lsvDoctor.SelectedItems[0].Index;
         DoctorID       = ((DataTable)lsvDoctor.Tag).Rows[CurrIndex]["EMPID_CHR"].ToString().Trim();
         DoctorName     = ((DataTable)lsvDoctor.Tag).Rows[CurrIndex]["LASTNAME_VCHR"].ToString().Trim();
         txtDoctor.Text = DoctorName.Trim();
         txtDoctor.Tag  = DoctorID.Trim();
         lsvDoctor.Hide();
         txtPatient_KeyDown(null, new KeyEventArgs(Keys.Enter));
     }
 }