예제 #1
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));
     }
 }
예제 #2
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));
     }
 }