public FrmChuongTrinhViewQL()
        {
            InitializeComponent();
            IDField = CHUONG_TRINH.CT_ID;
            DisplayField = CHUONG_TRINH.NOI_DUNG;
            Alias = "CT.";
            ASCSortClause = "ct.category,ct.noi_dung";
            _UsingCheckFiler = false;
            _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
            _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
            _UseParentDeleteEvent = false;
            _fix = new PhieuQuanLyBandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);

            BarButtonItemPrintNew = AppCtrl.InitPrintGrid(this, false);
            AppCtrl.SetMaskNam(NamSXTu, NamSXDen);
            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
            AppCtrl.AddXemTatCa(this);
            AppCtrl.AddRefresh(this);
            gridViewMaster._SetPermissionElement(BarButtonItemPrintNew, barSubItemExport);

            barButtonItemDelete.ItemClick += barButtonItemDelete_ItemClick;
            Load += frmChuongTrinhViewQL_Load;
        }
 public frmChuongTrinhAdvanceQL()
 {
     InitializeComponent();
     IDField = CHUONG_TRINH.CT_ID;
     DisplayField = CHUONG_TRINH.MA_CT;
     this._UsingCheckFiler = false;
     _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
     _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
     Fix = new PhieuQuanLyBandedFix(this);
     AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
     checkListCol = AppCtrl.AddTuyBienCot(this.barManager1, this.MainBar, gridViewMaster,
         new GridColumn[] { Col_CT_ThoiHanBangQuyen },
     Col_CT_NoiDung.Name, Col_CT_TenGoc.Name, Col_CT_TietMuc.Name, Col_CT_Nuoc.Name, Col_CT_NamSX.Name,
     Col_CT_BanQuyenThuoc.Name, Col_CT_BanQuyenDIDEnd.Name, Col_CT_BanQuyenDTNNEnd.Name, Col_CT_BanQuyenHTV.Name);
     AppCtrl.InitPrintGrid(this, false);
     //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
     AppCtrl.FormatButtonTimKiem(this);
     AppCtrl.AddXemTatCa(this);
     AppCtrl.AddRefresh(this);
     filterControl1.FilterChanged += delegate(object sender, FilterChangedEventArgs e)
     {
         if (e.Action == FilterChangedAction.ClearAll ||
             (e.Action == FilterChangedAction.RemoveNode && filterControl1.FilterString == ""))
         {
             gridViewMaster.ClearColumnsFilter();
         }
     };
 }
        public frmPostMasterDeletedQL()
        {
            InitializeComponent();
            IDField = CHUONG_TRINH_POST_MASTER.CTPM_ID;
            DisplayField = "TenPostMaster";
            this._UsingCheckFiler = false;
            this.ASCSortClause = "ct.category,ct.noi_dung";
            _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
            _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
            _UseParentDeleteEvent = false;
            Fix = new PhieuQuanLyBandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi, "Post/Master", gridViewMaster,
                new GridColumn[] { },Col_PM_TenChuongTrinh.Name, Col_PM_TietMuc.Name,COl_PM_Category.Name,
                Col_PM_PostMaster.Name, Col_PM_LoaiLuu.Name, Col_PM_TongTap.Name, Col_PM_TTHD.Name, Col_PM_ThoiLuongChung.Name);
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi, "Biên mục", gridViewDetail,
               new GridColumn[] { },
              Col_BM_TapSo.Name, Col_BM_TenTap.Name, Col_BM_MaBang.Name, Col_BM_SoBang.Name, Col_BM_ThongSo.Name, Col_BM_SoDKCBHD.Name, Col_BM_NoiLuuTru.Name);

               barButtonItemPrintNew= AppCtrl.InitPrintGrid(this, false);
            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
            AppCtrl.AddXemTatCa(this);
            AppCtrl.AddRefresh(this);

            BorderGrid(xtraTabControlDetail, false);
            BorderGrid(groupControlPM, true);
            gridViewMaster._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);
            gridViewDetail._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);
            splitContainerControl1.SplitterPositionChanged += new System.EventHandler(splitContainerControl1_SplitterPositionChanged);
            gridViewDetail.Click += new System.EventHandler(gridView_Click);
            gridViewMaster.Click += new System.EventHandler(gridView_Click);
            gridViewDetail.RowCellClick += new RowCellClickEventHandler(gridViewDetail_RowCellClick);
            barButtonItemAdd.Caption = "&Thêm PM";

            gridViewMaster.ViewCaption = "Post/Master(Cấp 2)";
            SetCaption("PM");

            barButtonItemRestore.Glyph = FrameworkParams.imageStore.GetImage2020("Restore.png");
            barButtonItemDeleteRealy.Glyph = barButtonItemDelete.Glyph;
            barButtonItemDeleteRealy.Enabled = false;
            barButtonItemRestore.Enabled = false;

            barButtonItemDelete.Glyph = FWImageDic.REMOVE_IMAGE20;
            barButtonItem4.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;//Xem trước
            barButtonItemDelete.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            barButtonItemUpdate.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            barButtonItemAdd.Visibility = BarItemVisibility.Never;

            gridViewMaster.RowCountChanged += new EventHandler(gridViewMaster_RowCountChanged);

            barButtonItemRestore.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(barButtonItemRestore_ItemClick);
            barButtonItemDeleteRealy.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(barButtonItemDeleteRealy_ItemClick);
            gridViewMaster.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridViewMaster_FocusedRowChanged);
        }
        public FrmChuongTrinhMultiQL()
        {
            InitializeComponent();
            IDField = CHUONG_TRINH.CT_ID;
            DisplayField = CHUONG_TRINH.MA_CT;
            _UsingCheckFiler = false;
            ASCSortClause = "ct.category,ct.noi_dung";
            _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
            _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
            _UseParentDeleteEvent = false;
            _fix = new PhieuQuanLyBandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            AppCtrl.AddTuyBienCot(barManager1, barSubItemCotHienThi,"Chương trình", gridViewMaster,
                new GridColumn[]{}, Col_CT_Category.Name,
            Col_CT_NoiDung.Name, Col_CT_TenGoc.Name, Col_CT_TietMuc.Name, Col_CT_Nuoc.Name,Col_CT_NamSX.Name,Col_CT_HetHanBQ.Name,
            Col_CT_BanQuyenThuoc.Name,Col_CT_BanQuyenDIDEnd.Name,Col_CT_BanQuyenDTNNEnd.Name,Col_CT_BanQuyenHTV.Name
            ,Col_CT_PhatSongChinh.Name,Col_CT_PhatSongLai.Name,Col_CT_PhanLoaiDrama.Name,Col_CT_ReleaseDate.Name,Col_CT_ReleaseRun.Name,Col_CT_ReleaseRule.Name);
            AppCtrl.AddTuyBienCot(barManager1, barSubItemCotHienThi, "Post/Master", gridViewDetail,
                new GridColumn[] { },
                Col_PM_PostMaster.Name, Col_PM_LoaiLuu.Name, Col_PM_TongTap.Name,Col_PM_TTHD.Name,Col_PM_ThoiLuongChung.Name,Col_PM_TienDo.Name);
            AppCtrl.AddTuyBienCot(barManager1, barSubItemCotHienThi, "Biên mục", gridViewBienMuc,
               new GridColumn[] { },
              Col_BM_TapSo.Name, Col_BM_TenTap.Name,Col_BM_MaBang.Name,Col_BM_SoBang.Name,Col_BM_ThongSo.Name,Col_BM_SoDKCBHD.Name,Col_BM_NoiLuuTru.Name);
            BarButtonItemPrintNew = AppCtrl.InitPrintGrid(this, false);
            AppCtrl.SetMaskNam(NamSXTu, NamSXDen);
            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
            AppCtrl.AddXemTatCa(this);
            AppCtrl.AddRefresh(this);

            BorderGrid(groupControlPM, false);
            BorderGrid(groupControlBM, false);
            BorderGrid(groupControlCT, true);

            gridViewMaster._SetPermissionElement(BarButtonItemPrintNew, barSubItemExport);
            gridViewDetail._SetPermissionElement(BarButtonItemPrintNew, barSubItemExport);
            gridViewBienMuc._SetPermissionElement(BarButtonItemPrintNew, barSubItemExport);

            gridViewDetail.FocusedRowChanged += gridViewDetail_FocusedRowChanged;
            splitContainerControl1.SplitterPositionChanged += splitContainerControl1_SplitterPositionChanged;
            gridViewDetail.RowCountChanged += gridViewDetail_RowCountChanged;
            gridViewMaster.Click += gridView_Click;
            gridViewDetail.Click += gridView_Click;
            gridViewBienMuc.Click += gridView_Click;
            gridViewDetail.RowCellClick += gridViewDetail_RowCellClick;
            gridViewBienMuc.RowCellClick += gridViewDetail_RowCellClick;
            barButtonItemDelete.ItemClick += barButtonItemDelete_ItemClick;
            barButtonItemAdd.Caption = "&Thêm CT";
            SetCaption("CT");
            gridViewMaster.ViewCaption = "Chương trình (Cấp 1)";
        }
Пример #5
0
        public frmListCanhBaoQL()
        {
            InitializeComponent();
            IDField = CHUONG_TRINH.CT_ID;
            DisplayField = CHUONG_TRINH.MA_CT;
            this._UsingCheckFiler = false;
            this.ASCSortClause = "ct.category,ct.noi_dung";
            _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
            _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
            _UseParentDeleteEvent = false;
            _UsingExportToFileItem = false;
            Fix = new PhieuQuanLyBandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            AppCtrl.SetAutoHideEmptyBand(gridViewMuonTra);
            AppCtrl.SetAutoHideEmptyBand(gridViewSoRun);
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi, "Bản quyền", gridViewMaster,
                new GridColumn[] { }, Col_CT_Category.Name,
            Col_CT_NoiDung.Name, Col_CT_TenGoc.Name, Col_CT_TietMuc.Name, Col_CT_Nuoc.Name, Col_CT_NamSX.Name, Col_CT_Category.Name,
            Col_CT_BanQuyenThuoc.Name, Col_CT_BanQuyenDIDEnd.Name, Col_CT_BanQuyenDTNNEnd.Name, Col_CT_BanQuyenHTV.Name
            );
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi, "Số Run", gridViewSoRun,
               new GridColumn[] { }, Col_RUN_Category.Name,
               Col_RUN_TenCT.Name, Col_RUN_TenGoc.Name, Col_RUN_TietMuc.Name, Col_RUN_NuocSX.Name, Col_RUN_NamSX.Name, Col_CT_Category.Name,
              Col_RUN_TongSoRun.Name, Col_RUN_SoRunDaPhat.Name, Col_RUN_SoRunConLai.Name);
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi, "Mượn trả", gridViewMuonTra,
               new GridColumn[] { }, Col_MT_MaPhieu.Name, Col_MT_NgayMuon.Name, Col_MT_NguoiMuon.Name,
               Col_MT_NgayTra.Name, Col_MT_MucDich.Name,
               Col_MT_CongTyMuon.Name, Col_MT_BoPhanMuon.Name, Col_MT_NgayTao.Name,
               Col_MT_PhongBan.Name);

            barButtonItemPrint.Visibility = BarItemVisibility.Never;
               // AppCtrl.InitPrintGrid(this, true);

            //  AppCtrl.FormatButtonTimKiem(this);
            // AppCtrl.AddXemTatCa(this);
            //AppCtrl.AddRefresh(this);
            gridViewMaster._SetPermissionElement(barButtonItemIn, barSubItemExort);
            gridViewSoRun._SetPermissionElement(barButtonItemIn, barSubItemExort);
            gridViewMaster._SetPermissionElement(barButtonItemIn, barSubItemExort);
            gridViewSoRun.RowClick += new RowClickEventHandler(gridViewSoRun_RowClick);
            gridViewMuonTra.RowClick += new RowClickEventHandler(gridViewMuonTra_RowClick);
            gridViewSoRun.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridViewSoRun_FocusedRowChanged);

            gridViewMuonTra.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridViewMuonTra_FocusedRowChanged);
            this.Load += new EventHandler(frmListCanhBaoQL_Load);
        }
 public frmPostMasterDeletedQL()
 {
     InitializeComponent();
     IDField = CHUONG_TRINH_POST_MASTER.CTPM_ID;
     DisplayField = "TenPostMaster";
     this._UsingCheckFiler = false;
     _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
     _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
     Fix = new PhieuQuanLyBandedFix(this);
     AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
     checkListCol = AppCtrl.AddTuyBienCot(this.barManager1, this.MainBar, gridViewMaster,
           new GridColumn[] { Col_PM_MaChuongTrinh },
           Col_PM_TenChuongTrinh.Name, Col_PM_TietMuc.Name, Col_PM_PostMaster.Name,
       Col_PM_LoaiLuu.Name, Col_PM_PopUp.Name, Col_PM_ThanhLy.Name, Col_PM_TongTap.Name);
     AppCtrl.InitPrintGrid(this, false);
     //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
     AppCtrl.FormatButtonTimKiem(this);
     AppCtrl.AddXemTatCa(this);
     AppCtrl.AddRefresh(this);
 }
Пример #7
0
 public frmChuongTrinhQL()
 {
     InitializeComponent();
     IDField = CHUONG_TRINH.CT_ID;
     DisplayField = CHUONG_TRINH.MA_CT;
     this._UsingCheckFiler = false;
     _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
     _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
     Fix = new PhieuQuanLyBandedFix(this);
     AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
     checkListCol = AppCtrl.AddTuyBienCot(this.barManager1, this.MainBar, gridViewMaster,
         new GridColumn[]{Col_CT_ThoiHanBangQuyen},
     Col_CT_NoiDung.Name, Col_CT_TenGoc.Name, Col_CT_TietMuc.Name, Col_CT_Nuoc.Name,Col_CT_NamSX.Name,
     Col_CT_BanQuyenThuoc.Name,Col_CT_BanQuyenDIDEnd.Name,Col_CT_BanQuyenDTNNEnd.Name,Col_CT_BanQuyenHTV.Name);
     AppCtrl.InitPrintGrid(this, false);
     AppCtrl.SetMaskNam(NamSXTu, NamSXDen);
     //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
     AppCtrl.FormatButtonTimKiem(this);
     AppCtrl.AddXemTatCa(this);
     AppCtrl.AddRefresh(this);
 }
Пример #8
0
        public frmMuonTraQL()
        {
            InitializeComponent();
            IDField = PHIEU_MUON_TRA.PMT_ID;
            DisplayField = PHIEU_MUON_TRA.MA_PMT;

            this._UsingCheckFiler = false;
            _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
            _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
            _UseParentDeleteEvent = false;
            Fix = new PhieuQuanLyBandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);

            barButtonItemPrintNew = AppCtrl.InitPrintGrid(this, false);

            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
            AppCtrl.AddXemTatCa(this);
            AppCtrl.AddRefresh(this);
            gridViewMaster._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);
            TreeDes._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);
            barButtonItemDelete.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(barButtonItemDelete_ItemClick);
        }
        public frmPostMasterSearchQL()
        {
            InitializeComponent();
            IDField = CHUONG_TRINH_POST_MASTER.CTPM_ID;
            DisplayField = "TenPostMaster";
            this._UsingCheckFiler = false;
            this.ASCSortClause = "ct.category,ct.noi_dung";
            _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
            _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
            _UseParentDeleteEvent = false;
            Fix = new PhieuQuanLyBandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi, "Post/Master", gridViewMaster,
                new GridColumn[] { },Col_PM_TenChuongTrinh.Name, Col_PM_TietMuc.Name,Col_PM_Category.Name,
                Col_PM_PostMaster.Name, Col_PM_LoaiLuu.Name, Col_PM_TongTap.Name, Col_PM_TTHD.Name, Col_PM_ThoiLuongChung.Name,Col_PM_TienDo.Name);
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi, "Biên mục", gridViewDetail,
               new GridColumn[] { },
              Col_BM_TapSo.Name, Col_BM_TenTap.Name, Col_BM_MaBang.Name, Col_BM_SoBang.Name, Col_BM_ThongSo.Name, Col_BM_SoDKCBHD.Name, Col_BM_NoiLuuTru.Name);

               barButtonItemPrintNew= AppCtrl.InitPrintGrid(this, false);
            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
               BarButtonItem ItemXemTatCa =  AppCtrl.AddXemTatCa(this);
               gridViewMaster._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);
               gridViewDetail._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);

               ItemXemTatCa.ItemClick += delegate(object sender, ItemClickEventArgs e)
               {
               dockPanelSimple.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
               dockPanelAdvance.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
               filterControl1.FilterString = "";
               barCheckItemNangCao.Checked = false;
               barCheckItemDonGian.Checked = false;
               };
            AppCtrl.AddRefresh(this);
            barButtonItemThongKe.Glyph = HelpImage.getImage1616("navTinhTrangHangTonKho.png");
            BorderGrid(xtraTabControlDetail, false);
            BorderGrid(groupControlPM, true);

            filterControl1.FilterChanged += delegate(object sender, FilterChangedEventArgs e)
            {
                if (e.Action == FilterChangedAction.ClearAll ||
                    (e.Action == FilterChangedAction.RemoveNode && filterControl1.FilterString == ""))
                {
                    gridViewMaster.ClearColumnsFilter();
                }
            };

            splitContainerControl1.SplitterPositionChanged += new System.EventHandler(splitContainerControl1_SplitterPositionChanged);
            gridViewDetail.Click += new System.EventHandler(gridView_Click);
            gridViewMaster.Click += new System.EventHandler(gridView_Click);
            gridViewDetail.RowCellClick += new RowCellClickEventHandler(gridViewDetail_RowCellClick); barButtonItemDelete.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(barButtonItemDelete_ItemClick);
            barButtonItemAdd.Caption = "&Thêm PM";

            gridViewMaster.ViewCaption = "Post/Master(Cấp 2)";
            SetCaption("PM");
            VisibleDock();
            popupControlContainerFilter.Popup += new EventHandler(popupControlContainerFilter_Popup);
            barCheckItemDonGian.ItemClick += new ItemClickEventHandler(barCheckItemDonGian_ItemClick);
            barCheckItemNangCao.ItemClick += new ItemClickEventHandler(barCheckItemNangCao_ItemClick);
            barButtonItemThongKe.ItemClick += new ItemClickEventHandler(barButtonItemThongke_ItemClick);
            barButtonItemThongKe.Appearance.ForeColor = System.Drawing.Color.Blue;
            barButtonItemThongKe.Appearance.Font = new System.Drawing.Font(barButtonItemThongKe.Appearance.Font, System.Drawing.FontStyle.Bold);
            barButtonItemThongKe.Appearance.Options.UseFont = true;
            barButtonItemThongKe.Appearance.Options.UseForeColor = true;
        }
        public frmChuongTrinhSearchMultiQL()
        {
            InitializeComponent();
            IDField = CHUONG_TRINH.CT_ID;
            DisplayField = CHUONG_TRINH.MA_CT;
            this._UsingCheckFiler = false;
            _msgConfirmBeforeDelete = AppConst.ConfirmDeleteChuongTrinhQL;
            _msgNotifyDeleteFail = AppConst.DeleteFailChuongTrinhQL;
            _UseParentDeleteEvent = false;
            this.ASCSortClause = "ct.category,ct.noi_dung";
            Fix = new PhieuQuanLyBandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi,"Chương trình", gridViewMaster,
                new GridColumn[]{},
            Col_CT_NoiDung.Name, Col_CT_TenGoc.Name, Col_CT_TietMuc.Name, Col_CT_Nuoc.Name,Col_CT_NamSX.Name,
            Col_CT_BanQuyenThuoc.Name,Col_CT_BanQuyenDIDEnd.Name,Col_CT_BanQuyenDTNNEnd.Name,Col_CT_BanQuyenHTV.Name
            ,Col_CT_PhatSongChinh.Name,Col_CT_PhatSongLai.Name);
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi, "Post/Master", gridViewDetail,
                new GridColumn[] { },Col_CT_Category.Name,
                Col_PM_PostMaster.Name, Col_PM_LoaiLuu.Name, Col_PM_TongTap.Name,Col_PM_TTHD.Name,Col_PM_ThoiLuongChung.Name,Col_PM_TienDo.Name);
            AppCtrl.AddTuyBienCot(this.barManager1, this.barSubItemCotHienThi, "Biên mục", gridViewBienMuc,
               new GridColumn[] { },
              Col_BM_TapSo.Name, Col_BM_TenTap.Name,Col_BM_MaBang.Name,Col_BM_SoBang.Name,Col_BM_ThongSo.Name,Col_BM_SoDKCBHD.Name,Col_BM_NoiLuuTru.Name);
              barButtonItemPrintNew=  AppCtrl.InitPrintGrid(this, true);
            AppCtrl.SetMaskNam(NamSXTu, NamSXDen);
            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
            AppCtrl.FormatButtonTimKiem(this.barButtonItemThongKe);
            BarButtonItem ItemXemTatCa = AppCtrl.AddXemTatCa(this);
            ItemXemTatCa.ItemClick += delegate(object sender, ItemClickEventArgs e)
            {
                dockPanelSimple.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
                dockPanelAdvance.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
                filterControl1.FilterString = "";
                barCheckItemNangCao.Checked = false;
                barCheckItemDonGian.Checked = false;
            };
            AppCtrl.AddRefresh(this);

            BorderGrid(groupControlPM, false);
            BorderGrid(groupControlBM, false);
            BorderGrid(groupControlCT, true);
            gridViewMaster._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);
            gridViewDetail._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);
            gridViewBienMuc._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);
            filterControl1.FilterChanged += delegate(object sender, FilterChangedEventArgs e)
            {
                if (e.Action == FilterChangedAction.ClearAll ||
                    (e.Action == FilterChangedAction.RemoveNode && filterControl1.FilterString == ""))
                {
                    gridViewMaster.ClearColumnsFilter();
                }
            };

            gridViewDetail.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridViewDetail_FocusedRowChanged);
            splitContainerControl1.SplitterPositionChanged += new System.EventHandler(splitContainerControl1_SplitterPositionChanged);
            gridViewDetail.RowCountChanged += new System.EventHandler(gridViewDetail_RowCountChanged);
            gridViewMaster.Click += new System.EventHandler(gridView_Click);
            gridViewDetail.Click += new System.EventHandler(gridView_Click);
            gridViewBienMuc.Click += new System.EventHandler(gridView_Click);
            gridViewDetail.RowCellClick += new RowCellClickEventHandler(gridViewDetail_RowCellClick);
            gridViewBienMuc.RowCellClick += new RowCellClickEventHandler(gridViewDetail_RowCellClick);
            barButtonItemDelete.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(barButtonItemDelete_ItemClick);
            barButtonItemAdd.Caption = "&Thêm CT";
            SetCaption("CT");
            gridViewMaster.ViewCaption = "Chương trình (Cấp 1)";
            VisibleDock();
            popupControlContainerFilter.Popup += new EventHandler(popupControlContainerFilter_Popup);
            barCheckItemDonGian.ItemClick += new ItemClickEventHandler(barCheckItemDonGian_ItemClick);
            barCheckItemNangCao.ItemClick += new ItemClickEventHandler(barCheckItemNangCao_ItemClick);

            barButtonItemThongKe.PaintStyle = BarItemPaintStyle.CaptionGlyph;
            barButtonItemThongKe.Glyph = HelpImage.getImage1616("navTinhTrangHangTonKho.png");
        }