public frmBC_BangGiaChiTiet()
        {
            InitializeComponent();
            grvBangGia = new GtidXtraGridView(grcBangGia);
            grvBangGia.OptionsView.ColumnAutoWidth   = false;
            grvBangGia.OptionsView.ShowAutoFilterRow = true;
            grvBangGia.OptionsView.ShowViewCaption   = true;
            grvChinhSach = new GtidXtraGridView(grcBangGia);
            grvChinhSach.OptionsView.ColumnAutoWidth = false;
            grvChinhSach.OptionsView.ShowGroupPanel  = false;
            grvSanPhamKem = new GtidXtraGridView(grcBangGia);
            grvSanPhamKem.OptionsView.ColumnAutoWidth = false;
            grvSanPhamKem.OptionsView.ShowGroupPanel  = false;
            grvSieuThi = new GtidXtraGridView(grcBangGia);
            grvSieuThi.OptionsView.ColumnAutoWidth = false;
            grvSieuThi.OptionsView.ShowGroupPanel  = false;
            grvDoiTuong = new GtidXtraGridView(grcBangGia);
            grvDoiTuong.OptionsView.ColumnAutoWidth = false;
            grvDoiTuong.OptionsView.ShowGroupPanel  = false;
            grvKhuyenMai = new GtidXtraGridView(grcBangGia);
            grvKhuyenMai.OptionsView.ColumnAutoWidth = false;
            grvKhuyenMai.OptionsView.ShowGroupPanel  = false;
            grvThanhToan = new GtidXtraGridView(grcBangGia);
            grvThanhToan.OptionsView.ColumnAutoWidth = false;
            grvThanhToan.OptionsView.ShowGroupPanel  = false;
            grvThoiGian = new GtidXtraGridView(grcBangGia);
            grvThoiGian.OptionsView.ColumnAutoWidth = false;
            grvThoiGian.OptionsView.ShowGroupPanel  = false;

            grcBangGia.MainView = grvBangGia;

            grcBangGia.LevelTree.RelationName = "BangGia";
            chinhSachNode = grcBangGia.LevelTree.Nodes.Add("ChinhSach", grvChinhSach);
            chinhSachNode.Nodes.Add("SanPhamKem", grvSanPhamKem);
            chinhSachNode.Nodes.Add("SieuThi", grvSieuThi);
            chinhSachNode.Nodes.Add("DoiTuong", grvDoiTuong);
            chinhSachNode.Nodes.Add("KhuyenMai", grvKhuyenMai);
            chinhSachNode.Nodes.Add("ThanhToan", grvThanhToan);
            chinhSachNode.Nodes.Add("ThoiGian", grvThoiGian);

            grvBangGia.MasterRowGetRelationName           += grvBangGia_MasterRowGetRelationName;
            grvBangGia.MasterRowGetRelationDisplayCaption += grvBangGia_MasterRowGetRelationDisplayCaption;
            grvBangGia.MasterRowGetRelationCount          += grvBangGia_MasterRowGetRelationCount;
            grvBangGia.MasterRowGetChildList += grvBangGia_MasterRowGetChildList;
            grvBangGia.MasterRowEmpty        += grvBangGia_MasterRowEmpty;

            grvChinhSach.MasterRowGetRelationName           += grvChinhSach_MasterRowGetRelationName;
            grvChinhSach.MasterRowGetRelationDisplayCaption += grvChinhSach_MasterRowGetRelationDisplayCaption;
            grvChinhSach.MasterRowGetRelationCount          += grvChinhSach_MasterRowGetRelationCount;
            grvChinhSach.MasterRowGetChildList += grvChinhSach_MasterRowGetChildList;
            grvChinhSach.MasterRowEmpty        += grvChinhSach_MasterRowEmpty;
        }
Esempio n. 2
0
        public frmBC_LichSuThayDoiGia()
        {
            InitializeComponent();
            GtidXtraGridView grvLichSu       = new GtidXtraGridView(grcLichSu);
            GtidXtraGridView grvLichSuDetail = new GtidXtraGridView(grcLichSu);

            grcLichSu.MainView = grvLichSu;

            grcLichSu.LevelTree.RelationName = "LichSu";
            grcLichSu.LevelTree.Nodes.Add("LichSuDetail", grvLichSuDetail);
            grvLichSu.MasterRowEmpty                     += new MasterRowEmptyEventHandler(grvLichSu_MasterRowEmpty);
            grvLichSu.MasterRowGetRelationCount          += new MasterRowGetRelationCountEventHandler(grvLichSu_MasterRowGetRelationCount);
            grvLichSu.MasterRowGetRelationName           += new MasterRowGetRelationNameEventHandler(grvLichSu_MasterRowGetRelationName);
            grvLichSu.MasterRowGetRelationDisplayCaption += new MasterRowGetRelationNameEventHandler(grvLichSu_MasterRowGetRelationDisplayCaption);
            grvLichSu.MasterRowGetChildList              += new MasterRowGetChildListEventHandler(grvLichSu_MasterRowGetChildList);
        }