Esempio 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();
            }
        }
Esempio 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();
            }
        }
Esempio 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    = "";
                }
            }
        }
Esempio n. 4
0
        private void DM_KhachHang_ListToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SearchCustomer frmSearch = new SearchCustomer();

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

            frmSearch.ShowDialog();
        }