Exemplo n.º 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            txtMaHD.Focus();
            List <HoaDonBan_DTO> lstNhanVien = HoaDonBan_BLL.LayDSHoaDonBan();

            dataGridViewHDB.DataSource = lstNhanVien;
        }
Exemplo n.º 2
0
        private void HienThiHDLenCombobox()
        {
            List <HoaDonBan_DTO> lstNhaCC = HoaDonBan_BLL.LayDSHoaDonBan();

            cboMaHD.DataSource = lstNhaCC;

            cboMaHD.DisplayMember = "SMaHD";
            cboMaHD.ValueMember   = "SMaHD";
        }
Exemplo n.º 3
0
        private void HienThiDSHoaDonBanDatagrid()
        {
            List <HoaDonBan_DTO> lstNhanVien = HoaDonBan_BLL.LayDSHoaDonBan();

            dataGridViewHDB.DataSource = lstNhanVien;

            dataGridViewHDB.Columns["SMaHD"].HeaderText     = "Mã HD";
            dataGridViewHDB.Columns["SMaNV"].HeaderText     = "Mã Nhân Viên";
            dataGridViewHDB.Columns["SNgayBan"].HeaderText  = "Ngày Bán";
            dataGridViewHDB.Columns["SMaKH"].HeaderText     = "Mã Khách Hàng";
            dataGridViewHDB.Columns["SSoLuong"].HeaderText  = "Số Lượng";
            dataGridViewHDB.Columns["STongTien"].HeaderText = "Tổng Tiền";



            dataGridViewHDB.Columns["SMaHD"].Width     = 70;
            dataGridViewHDB.Columns["SMaNV"].Width     = 100;
            dataGridViewHDB.Columns["SNgayBan"].Width  = 100;
            dataGridViewHDB.Columns["SMaKH"].Width     = 50;
            dataGridViewHDB.Columns["SSoLuong"].Width  = 100;
            dataGridViewHDB.Columns["STongTien"].Width = 100;
        }