Exemple #1
0
 private void txtfno_KeyDown(object sender, KeyEventArgs e)
 {
     var bl = new BlInsuranceCustomer();
     bl.GetInscustomersRowByFileNo(txtfno.Text);
     if (bl.dr != null)
     {
         txtmemno.Text = bl.dr.POLICYNO.ToString();
         txtname.Text = bl.dr.PATNAME;
         txtcompname.Text = bl.dr.CUSTNO;
         cutomerpayment.Text = bl.dr.CUSTSHARE.ToString();
         Tid = bl.dr.TID;
     }
 }
Exemple #2
0
 private void txtfileno_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab)
     {
         if (txtfileno.EditValue != null)
         {
             var bl = new BlInsuranceCustomer();
             bl.GetInscustomersRowByFileNo(txtfileno.Text);
             if (bl.dr != null)
             {
                 if(!bl.dr.IsPOLICYNONull())
                      txtvisitno.Text = bl.dr.POLICYNO.ToString();
                 if (!bl.dr.IsPATNAMENull())
                     txtpatname.Text = bl.dr.PATNAME;
                 if (!bl.dr.IsCUSTSHARENull())
                     cutomerpayment.EditValue = bl.dr.CUSTSHARE;
             }
         }
     }
 }