Ejemplo n.º 1
0
 private void txtmemno_KeyDown(object sender, KeyEventArgs e)
 {
     var bl = new BlInsuranceCustomer();
     bl.GetInscustomersRowByPolicyNo(txtfno.Text);
     if (bl.dr != null)
     {
         txtfno.Text = bl.dr.FILENO;
         txtname.Text = bl.dr.PATNAME;
         txtcompname.Text = bl.dr.CUSTNO;
         cutomerpayment.Text = bl.dr.CUSTSHARE.ToString();
         Tid = bl.dr.TID;
     }
 }
Ejemplo n.º 2
0
 private void txtvisitno_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab)
     {
         if (txtvisitno.EditValue != null)
         {
             var bl = new BlInsuranceCustomer();
             bl.GetInscustomersRowByPolicyNo(txtvisitno.Text);
             if (bl.dr != null)
             {
                  if(!bl.dr.IsPATNAMENull())
                      txtpatname.Text = bl.dr.PATNAME;
                 if(!bl.dr.IsCUSTSHARENull())
                      cutomerpayment.EditValue = bl.dr.CUSTSHARE;
             }
         }  
     }
 }