示例#1
0
        private void bteDoiTuongCha_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmLookUp_KhachHang frmLookUpKhachHang = new frmLookUp_KhachHang("%%");

            if (frmLookUpKhachHang.ShowDialog() == DialogResult.OK)
            {
                bteDoiTuongCha.Tag  = frmLookUpKhachHang.SelectedItem;
                bteDoiTuongCha.Text = frmLookUpKhachHang.SelectedItem.TenDoiTuong;
            }
        }
示例#2
0
        private void bteDoiTuongCha_DoubleClick(object sender, EventArgs e)
        {
            frmLookUp_KhachHang frmLookUp = new frmLookUp_KhachHang(String.Format("%{0}%", bteDoiTuongCha.Text));

            if (frmLookUp.ShowDialog() == DialogResult.OK)
            {
                bteDoiTuongCha.Tag  = frmLookUp.SelectedItem;
                bteDoiTuongCha.Text = frmLookUp.SelectedItem.TenDoiTuong;
                txtMa.Text          = frmLookUp.SelectedItem.MaDoiTuong;
            }
        }
示例#3
0
        private void bteDoiTuongCha_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmLookUp_KhachHang frmLookUp = new frmLookUp_KhachHang(String.Format("%{0}%", bteDoiTuongCha.Text));

            if (frmLookUp.ShowDialog() == DialogResult.OK)
            {
                bteDoiTuongCha.Tag  = frmLookUp.SelectedItem;
                bteDoiTuongCha.Text = frmLookUp.SelectedItem.TenDoiTuong;
                txtMa.Text          = frmLookUp.SelectedItem.MaDoiTuong;
            }
        }
示例#4
0
 private void bteDoiTuongCha_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         frmLookUp_KhachHang frmLookUpKhachHang = new frmLookUp_KhachHang("%%");
         if (frmLookUpKhachHang.ShowDialog() == DialogResult.OK)
         {
             bteDoiTuongCha.Tag  = frmLookUpKhachHang.SelectedItem;
             bteDoiTuongCha.Text = frmLookUpKhachHang.SelectedItem.TenDoiTuong;
         }
     }
 }
示例#5
0
 private void bteDoiTuongCha_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         frmLookUp_KhachHang frmLookUp = new frmLookUp_KhachHang(String.Format("%{0}%", bteDoiTuongCha.Text));
         if (frmLookUp.ShowDialog() == DialogResult.OK)
         {
             bteDoiTuongCha.Tag  = frmLookUp.SelectedItem;
             bteDoiTuongCha.Text = frmLookUp.SelectedItem.TenDoiTuong;
             txtMa.Text          = frmLookUp.SelectedItem.MaDoiTuong;
         }
     }
 }