Ejemplo n.º 1
0
        private void searchKhachHang()
        {
            SearchCustomer frmSearch = new SearchCustomer(true);

            if (frmSearch.ShowDialog(this) == DialogResult.OK)
            {
                this.idKhachHang          = frmSearch.khachHangSelected.idKhachHang;
                this.txtTenKhachHang.Text = frmSearch.khachHangSelected.idKhachHang;

                loadData();
            }
        }
Ejemplo n.º 2
0
        private void btnBrowse_Click(object sender, EventArgs e)
        {
            SearchCustomer frmSearch = new SearchCustomer(true);

            if (frmSearch.ShowDialog(this) == DialogResult.OK)
            {
                this.idKhachHang          = frmSearch.khachHangSelected.idKhachHang;
                this.txtTenKhachHang.Text = frmSearch.khachHangSelected.idKhachHang;

                reloadData();
            }
        }
Ejemplo n.º 3
0
        private void browseKhachHang()
        {
            SearchCustomer frmSearch = new SearchCustomer(true);

            if (frmSearch.ShowDialog(this) == DialogResult.OK)
            {
                this.orderDTO.idKhachHang    = frmSearch.khachHangSelected.idKhachHang;
                this.orderDTO.tenKhachHang   = frmSearch.khachHangSelected.tenKhachHang;
                this.txtTenKhachHang.Text    = frmSearch.khachHangSelected.tenKhachHang;
                this.txtDiaDiemGiaoHang.Text = frmSearch.khachHangSelected.diaChi;
                if (frmSearch.khachHangSelected.listLienHe.Count > 0)
                {
                    this.txtLienHe.Text = frmSearch.khachHangSelected.listLienHe[0].name;
                    this.txtSDT.Text    = frmSearch.khachHangSelected.listLienHe[0].phone;
                }
                else
                {
                    this.txtLienHe.Text = "";
                    this.txtSDT.Text    = "";
                }
            }
        }
Ejemplo n.º 4
0
        private void DM_KhachHang_ListToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SearchCustomer frmSearch = new SearchCustomer();

            frmSearch.ShowDialog(this);
        }
Ejemplo n.º 5
0
        private void lblListKhachHang_Click(object sender, EventArgs e)
        {
            SearchCustomer frmSearch = new SearchCustomer();

            frmSearch.ShowDialog();
        }