Esempio n. 1
0
 private void maicd_Validated(object sender, System.EventArgs e)
 {
     if (maicd.Text != s_maicd)
     {
         if (maicd.Text == "")
         {
             chandoan.Text = "";
         }
         else
         {
             chandoan.Text = m.get_vviet(maicd.Text);
         }
         if (chandoan.Text == "" && maicd.Text != "")
         {
             dllDanhmucMedisoft.frmDMICD10 f = new dllDanhmucMedisoft.frmDMICD10(m, "icd10", maicd.Text, chandoan.Text, true);
             f.ShowDialog();
             if (f.mICD != "")
             {
                 chandoan.Text = f.mTen;
                 maicd.Text    = f.mICD;
             }
         }
         s_maicd = maicd.Text;
     }
 }
Esempio n. 2
0
 private void ma_Validated(object sender, System.EventArgs e)
 {
     ten.Text = m.get_vviet(ma.Text);
     if (ten.Text == "")
     {
         dllDanhmucMedisoft.frmDMICD10 f = new dllDanhmucMedisoft.frmDMICD10(m, "icd10", ma.Text, ten.Text, true);
         f.ShowDialog();
         if (f.mICD != "")
         {
             ten.Text = f.mTen;
             ma.Text  = f.mICD;
         }
     }
 }
Esempio n. 3
0
 private void icd_chinh_Validated(object sender, System.EventArgs e)
 {
     if (icd_chinh.Text != "")
     {
         cd_chinh.Text = m.get_vviet(icd_chinh.Text);
         if (cd_chinh.Text == "" && icd_chinh.Text != "")
         {
             dllDanhmucMedisoft.frmDMICD10 f = new dllDanhmucMedisoft.frmDMICD10(m, "icd10", icd_chinh.Text, cd_chinh.Text, true);
             f.ShowDialog();
             if (f.mICD != "")
             {
                 cd_chinh.Text  = f.mTen;
                 icd_chinh.Text = f.mICD;
             }
         }
     }
 }
Esempio n. 4
0
 private void txtMaicd_Validated(object sender, EventArgs e)
 {
     if (loai != 99)
     {
         if (txtMaicd.Text == "")
         {
             txtChandoan.Text = "";
         }
         else
         {
             txtChandoan.Text = m.get_vviet(txtMaicd.Text).Trim();
         }
         if (txtChandoan.Text == "" && txtMaicd.Text != "")
         {
             dllDanhmucMedisoft.frmDMICD10 f = new dllDanhmucMedisoft.frmDMICD10(m, "icd10", txtMaicd.Text, txtChandoan.Text, true);
             f.ShowDialog();
             if (f.mICD != "")
             {
                 txtChandoan.Text = f.mTen;
                 txtMaicd.Text    = f.mICD;
             }
         }
     }
     else
     {
         if (txtMaicd.Text == "")
         {
             txtChandoan.Text = "";
         }
         else
         {
             try
             {
                 txtChandoan.Text = m.getrowbyid(dtIcd10, "cicd10='" + txtMaicd.Text.Trim() + "'")["vviet"].ToString();
             }
             catch
             {
                 txtChandoan.Text = "";
             }
         }
     }
 }
Esempio n. 5
0
 private void icd_chinh_Validated(object sender, EventArgs e)
 {
     if (icd_chinh.Text == "" && !cd_chinh.Enabled)
     {
         cd_chinh.Text = "";
         butOk.Focus();
         return;
     }
     else if (icd_chinh.Text != "")//s_icd_chinh
     {
         cd_chinh.Text = m.get_vviet(icd_chinh.Text);
         if (cd_chinh.Text == "" && icd_chinh.Text != "")
         {
             dllDanhmucMedisoft.frmDMICD10 f = new dllDanhmucMedisoft.frmDMICD10(m, "icd10", icd_chinh.Text, cd_chinh.Text, true);
             f.ShowDialog();
             if (f.mICD != "")
             {
                 cd_chinh.Text  = f.mTen;
                 icd_chinh.Text = f.mICD;
             }
         }
     }
 }