예제 #1
0
 /// <summary>
 /// 选择客户名称
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btn_KHMC_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     try
     {
         FrmQB_SELECT_KDXX frm = new FrmQB_SELECT_KDXX();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             this.btn_KHMC.Text = frm.str_NAME;
             frm.Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
예제 #2
0
 private void cbo_cust_name_DoubleClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     try
     {
         FrmQB_SELECT_KDXX frm = new FrmQB_SELECT_KDXX();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             this.cbo_cust_name.Text = frm.str_NAME;
             this.lbl_cust_no.Text   = frm.str_NO;
             frm.Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }