示例#1
0
 private void txt_CusName_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         e.Handled = true;
         if (txt_CusName.Text.Trim().Length != 0)
         {
             Frm_CusinfoShow frmcusinfoshow = new Frm_CusinfoShow();
             frmcusinfoshow.selectCondition = txt_CusName.Text.Trim();
             frmcusinfoshow.ShowDialog();
             if (frmcusinfoshow.Cus_id != "")
             {
                 txt_Cusid.Text   = frmcusinfoshow.Cus_id.Trim();
                 txt_CusName.Text = frmcusinfoshow.Cus_name.Trim();
                 txt_outputDate.Focus();
             }
         }
     }
 }
示例#2
0
 private void txt_CusName_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         e.Handled = true;
         if (txt_CusName.Text.Trim().Length != 0)
         {
             Frm_CusinfoShow frmcusinfoshow = new Frm_CusinfoShow();
             frmcusinfoshow.selectCondition = txt_CusName.Text.Trim();
             frmcusinfoshow.ShowDialog();
             if (frmcusinfoshow.Cus_id != "")
             {
                 txt_CusId.Text   = frmcusinfoshow.Cus_id.Trim();
                 txt_CusName.Text = frmcusinfoshow.Cus_name.Trim();
                 Query_product_offer();
                 txt_CusName.ReadOnly = true;
                 dgv_productPrice.Focus();
             }
         }
     }
 }
 private void txt_cusName_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         e.Handled = true;
         if (txt_QueryCondition.Text.Trim().Length != 0)
         {
             if (rdb_Account_Statement.Checked == true)
             {
                 Frm_CusinfoShow frmcusinfoshow = new Frm_CusinfoShow();
                 frmcusinfoshow.selectCondition = txt_QueryCondition.Text.Trim();
                 frmcusinfoshow.ShowDialog();
                 if (frmcusinfoshow.Cus_id != "")
                 {
                     txt_QueryCondition.Text = frmcusinfoshow.Cus_id.Trim();
                     txt_QueryCondition.Text = frmcusinfoshow.Cus_name.Trim();
                     txt_QueryCondition.Focus();
                 }
             }
         }
     }
 }