Ejemplo n.º 1
0
        private void frmVe_Load(object sender, EventArgs e)
        {
            if (!DuLieuTaoSan.Q.VeAdmin)
            {
                GVGD.Columns.Remove(colEmail);
                GVGD.Columns.Remove(colDienThoaiKhachHang);
            }

            rLoaiKhach.DataSource     = DuLieuTaoSan.LoaiKhachHang_Ve();
            rTrangThai.DataSource     = DuLieuTaoSan.LoaiGiaoDich_Ve(true);
            rHinHThuc.DataSource      = DuLieuTaoSan.HinhThuc_Ve_TatCa();
            rHoaDon.DataSource        = DuLieuTaoSan.HinhThucHoaDon();
            btnExportExcel.Visibility = DuLieuTaoSan.Q.VeExcel ? BarItemVisibility.Always : BarItemVisibility.Never;
            btnThem.Visibility        = DuLieuTaoSan.Q.VeThemSua ? BarItemVisibility.Always : BarItemVisibility.Never;
            btnXoa.Visibility         = DuLieuTaoSan.Q.VeXoa ? BarItemVisibility.Always : BarItemVisibility.Never;
            btnHoan.Visibility        = DuLieuTaoSan.Q.TheoDoiHoanAdmin ? BarItemVisibility.Always : BarItemVisibility.Never;

            tuyenBayOBindingSource.DataSource = new D_TUYENBAY().DuLieu();
            nganHangOBindingSource.DataSource = new D_NGANHANG().All();
            hangBayOBindingSource.DataSource  = new D_HANGBAY().DuLieu();
            nCCOBindingSource.DataSource      = new D_NHACUNGCAP().DuLieu_GiaoDich();
            _ListKhoaNgayO = new D_KHOANGAY().DuLieu();
            DuLieu();
        }