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

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

            frmSearch.ShowDialog();
        }