Example #1
0
        private void ShowComboBox()
        {
            KhachHangBUL khBUL = new KhachHangBUL();

            cboKhachHang.DataSource    = khBUL.DanhSach();
            cboKhachHang.DisplayMember = "TenKhachHang";
            cboKhachHang.ValueMember   = "MaKhachHang";
        }
Example #2
0
 public frmDatTruoc()
 {
     tieuDeBUL        = new TieuDeBUL();
     phieuDatTruocBUL = new PhieuDatTruocBUL();
     khachHangBUL     = new KhachHangBUL();
     dVDBUL           = new DVDBUL();
     InitializeComponent();
     dgv_dstieude.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     dgv_dskhdat.SelectionMode  = DataGridViewSelectionMode.FullRowSelect;
 }
Example #3
0
        public frmDatTruoc()
        {
            tieuDeBUL        = new TieuDeBUL();
            phieuDatTruocBUL = new PhieuDatTruocBUL();
            khachHangBUL     = new KhachHangBUL();
            dVDBUL           = new DVDBUL();
            InitializeComponent();
            dgv_dstieude.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            dgv_dskhdat.SelectionMode  = DataGridViewSelectionMode.FullRowSelect;

            contextMenu       = new ContextMenuStrip();
            contextMenu.Width = 500;
            contextMenu.Items.Add("Xóa", Image.FromFile(@"../../Image/xoa.JPG"), new EventHandler(Xoa_Click));
            // contextMenu.Items.Add("Cập nhật", Image.FromFile(@"../../Image/Huy.JPG "), new EventHandler(CapNhat_Click));

            this.ContextMenuStrip = contextMenu;
        }
        private void BaoCaoKhachHang_Load(object sender, EventArgs e)
        {
            khbul = new KhachHangBUL();
            phieu = new PhieuThueTraBUL();
            td    = new TieuDeBUL();
            tl    = new TheLoaiBUL();
            dvd   = new DVDBUL();

            List <eKhachHang> ls = khbul.getKhachHangs();

            dgv_dskh.DataSource = ls;
            FormatLaiDataGridviewkh(dgv_dskh);

            txt_totalkhnop.Text  = tongkhno().ToString();
            txt_totaldiatra.Text = tongkhthue().ToString();

            cb_listkh.Items.Add("Tất Cả");
            cb_listkh.Items.Add("Khách hàng quá hạn trả đĩa");
            cb_listkh.Items.Add("Khách hàng nợ phí trễ hạn");
            cb_listkh.SelectedIndex = 0;
        }
Example #5
0
 public QuanLyKhachHang()
 {
     kh = new KhachHangBUL();
     InitializeComponent();
 }