Пример #1
0
        public frmBienMucQL()
        {
            InitializeComponent();
            IDField = BIEN_MUC.BM_ID;
            DisplayField = BIEN_MUC.TEN_TAP;
            _UseParentDeleteEvent = false;
            Fix = new PhieuQuanLy10BandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            AppCtrl.AddTuyBienCot(this.barManager1, this.MainBar, 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_BanQuyenThuoc.Name, Col_CT_BanQuyenDIDEnd.Name, Col_CT_BanQuyenDTNNEnd.Name, Col_CT_BanQuyenHTV.Name
            , Col_CT_PhatSongChinh.Name, Col_CT_PhatSongLai.Name, Col_PM_PostMaster.Name,
            Col_PM_LoaiLuu.Name, Col_PM_TongTap.Name,
            Col_PM_TTHD.Name, Col_PM_ThoiLuongChung.Name, Col_BM_TapSo.Name, Col_BM_TenTap.Name
               );
               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);

            barButtonItemAddNext.Glyph = FrameworkParams.imageStore.GetImage2020("btnAddNext.png");
            _msgConfirmBeforeDelete = "Bạn có muốn 'Xóa' biên mục đang chọn?";
            _msgNotifyDeleteFail = "Thao tác 'Xóa' biên mục \"{0}\" thực hiện không thành công. Vui lòng kiểm tra lại dữ liệu.";
            barButtonItemAddNext.Enabled = false;
            gridViewMaster.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridViewMaster_FocusedRowChanged);
            gridViewMaster.ViewCaption = "Danh sách biên mục";
            this.barButtonItemDelete.ItemClick += new ItemClickEventHandler(barButtonItemDelete_ItemClick);
        }
Пример #2
0
        public FrmChiTietLPSQL()
        {
            InitializeComponent();
            IDField = QL_LICH_PHAT_SONG.LPS_ID;
            DisplayField = QL_LICH_PHAT_SONG.TEN_CT;
            _UsingCheckFiler = false;
            _UseSplitControlEvent = false;
            //_UseParentUpdateEvent = false;
            _UseParentDeleteEvent = false;
            ASCSortClause = "lpsct.ngay_phat_song,lps.gio_phat_song";
            _msgConfirmBeforeDelete = "Bạn có chắc là muốn xóa lịch phát sóng đang chọn?";
            _msgNotifyDeleteFail = "Xóa lịch phát sóng không thành công, vui lòng kiểm tra lại dữ liệu!";

            _fix = new PhieuQuanLy10BandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            AppCtrl.AddTuyBienCot(barManager1, barSubItemCotHienThi, "Lịch phát sóng", gridViewMaster,
                new GridColumn[] { }, Col_LPS_KenhPhat.Name, Col_LPS_NgayPhat.Name, Col_LPS_GioPhat.Name, Col_LPS_TapSo.Name,
                Col_LPS_ThoiLuong.Name,
                Col_LPS_TenChuongTrinh.Name, Col_LPS_TietMuc.Name, Col_LPS_Category.Name, Col_LPS_ThongTinThem.Name
               );

            BarButtonItemPrintNew = AppCtrl.InitPrintGrid(this, false);
            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
            AppCtrl.AddXemTatCa(this);
            AppCtrl.AddRefresh(this);
            gridViewMaster._SetPermissionElement(BarButtonItemPrintNew, barSubItemExport);
            barButtonItemDelete.ItemClick += barButtonItemDelete_ItemClick;
            splitContainerControl1.SplitterPositionChanged += splitContainerControl1_SplitterPositionChanged;
        }
Пример #3
0
        public frmBienMucSearchQL()
        {
            InitializeComponent();
            IDField = BIEN_MUC.BM_ID;
            DisplayField = BIEN_MUC.TEN_TAP;
            _UseParentDeleteEvent = false;
            this.ASCSortClause = "ct.category,ct.noi_dung";
            Fix = new PhieuQuanLy10BandedFix(this);

            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            AppCtrl.AddTuyBienCot(this.barManager1, this.MainBar, 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_BanQuyenThuoc.Name, Col_CT_BanQuyenDIDEnd.Name, Col_CT_BanQuyenDTNNEnd.Name, Col_CT_BanQuyenHTV.Name
            , Col_CT_PhatSongChinh.Name, Col_CT_PhatSongLai.Name, Col_PM_PostMaster.Name,
            Col_PM_LoaiLuu.Name, Col_PM_TongTap.Name,
            Col_PM_TTHD.Name, Col_PM_ThoiLuongChung.Name, Col_BM_TapSo.Name, Col_BM_TenTap.Name
               );
            barButtonItemPrintNew = AppCtrl.InitPrintGrid(this, false);
            AppCtrl.SetMaskNam(NamSXTu, NamSXDen);
            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
            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);
            gridViewMaster._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);

            barButtonItemAddNext.Glyph = FrameworkParams.imageStore.GetImage2020("btnAddNext.png");
            _msgConfirmBeforeDelete = "Bạn có muốn 'Xóa' biên mục đang chọn?";
            _msgNotifyDeleteFail = "Thao tác 'Xóa' biên mục \"{0}\" thực hiện không thành công. Vui lòng kiểm tra lại dữ liệu.";
            barButtonItemAddNext.Enabled = false;
            gridViewMaster.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridViewMaster_FocusedRowChanged);
            gridViewMaster.ViewCaption = "Danh sách biên mục";
            this.barButtonItemDelete.ItemClick += new ItemClickEventHandler(barButtonItemDelete_ItemClick);
            VisibleDock();
            barButtonItemThongKe.Glyph = HelpImage.getImage1616("navTinhTrangHangTonKho.png");
            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 frmBienMucAdvanceQL()
        {
            InitializeComponent();
            TimKiem = new AppBienMucGridTemplate(gridViewMaster);
            IDField = BIEN_MUC.BM_ID;
            DisplayField = BIEN_MUC.MA_BANG;
            Fix = new PhieuQuanLy10BandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);

            BandedGridColumn colBanQuyen = new BandedGridColumn();//Cột dùng để lọc, ko hiện trên lưới
            colBanQuyen.Caption = TimKiem.CotThoiHanBanQuyen.Caption;
            gridViewMaster.Columns.Add(colBanQuyen);
            TimKiem.gridBandNguonGoc.Columns.Add(colBanQuyen);
            HelpGridColumn.CotDateEdit(colBanQuyen, BIEN_MUC.THOI_HAN_BAN_QUYEN);

            BandedGridColumn colIsBanQuyen = new BandedGridColumn();//Cột dùng để lọc, ko hiện trên lưới
            colIsBanQuyen.Caption = "Thời hạn bản quyền (loại)";
            gridViewMaster.Columns.Add(colIsBanQuyen);
            TimKiem.gridBandNguonGoc.Columns.Add(colIsBanQuyen);
            AppCtrl.InitCotBanQuyen(colIsBanQuyen, BIEN_MUC.IS_THOI_HAN_BAN_QUYEN);

            checkListCol = TimKiem.AddTuyBienCot(this.barManager1, MainBar, colBanQuyen,colIsBanQuyen);

            AppCtrl.InitPrintGrid(this,false);
            AppCtrl.FormatButtonTimKiem(this);
            BarButtonItem xemtatCa = AppCtrl.AddXemTatCa(this);
            xemtatCa.ItemClick += delegate(object sender, ItemClickEventArgs e)
            {
                popupControlContainerFilter.Visible = true;
                dockPanel1.Visibility = DevExpress.XtraBars.Docking.DockVisibility.AutoHide;
                dockPanel1.HideSliding();
                filterControl1.SetDefaultColumn(null);
                filterControl1.FilterString = null;
                filterControl1.SetDefaultColumn(filterControl1.FilterColumns[BIEN_MUC.TIET_MUC]);
            };
            filterControl1.FilterChanged += delegate(object sender, FilterChangedEventArgs e)
            {
                if (e.Action == FilterChangedAction.ClearAll ||
                    (e.Action == FilterChangedAction.RemoveNode && filterControl1.FilterString == ""))
                {
                    gridViewMaster.ClearColumnsFilter();
                }
            };
            this.dockManager1.Load += new EventHandler(dockManager1_Load);

            _msgConfirmBeforeDelete = "Bạn có muốn 'Xóa' biên mục đang chọn?";
            _msgNotifyDeleteFail = "Thao tác 'Xóa' biên mục \"{0}\" thực hiện không thành công. Vui lòng kiểm tra lại dữ liệu.";
        }
Пример #5
0
 public frmBienMucDeletedQL()
 {
     InitializeComponent();
     TimKiem = new AppGridTimKiemBienMuc(gridViewMaster);
     IDField = BIEN_MUC.BM_ID;
     DisplayField = BIEN_MUC.MA_BANG;
     Fix = new PhieuQuanLy10BandedFix(this);
     AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
     checkListCol = TimKiem.AddTuyBienCot(barManager1, MainBar);
     AppCtrl.InitPrintGrid(this,false);
     AppCtrl.SetMaskNam(NamSXTu, NamSXDen);
        // AppCtrl.SetTenYear(NamSXTu, NamSXDen);
     AppCtrl.FormatButtonTimKiem(this);
     AppCtrl.AddXemTatCa(this,checkListCol);
     AppCtrl.AddRefresh(this);
 }
Пример #6
0
        public frmQLKhoLuuHD()
        {
            InitializeComponent();
            TimKiem = new AppGridTimKiemBienMuc(gridViewMaster);
            IDField = BIEN_MUC.BM_ID;
            DisplayField =BIEN_MUC.MA_BANG;
            this._UsingExportToFileItem = true;
            fix = new PhieuQuanLy10BandedFix(this);
               // PMSupport.SetTitle(this, Status);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            checkListCol = AppCtrl.AddTuyBienCot(this.barManager1, this.MainBar, gridViewMaster, TimKiem.CotTietMuc.Name,
                TimKiem.CotMaBang.Name, TimKiem.CotSoTap.Name, TimKiem.CotTongTap.Name, TimKiem.CotNoiLuuTru.Name, TimKiem.CotNgayNhap.Name, TimKiem.CotTTDinhKem.Name);

            AppCtrl.InitPrintGrid(this,false);
            AppCtrl.FormatButtonTimKiem(this);
            AppCtrl.AddXemTatCa(this,checkListCol);
            AppCtrl.AddRefresh(this);
        }
Пример #7
0
        public frmTimKiemDonGian()
        {
            InitializeComponent();
            TimKiem = new AppBienMucGridTemplate(gridViewMaster);
            IDField = BIEN_MUC.BM_ID;
            DisplayField = BIEN_MUC.MA_BANG;
            Fix = new PhieuQuanLy10BandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            checkListCol = TimKiem.AddTuyBienCot(barManager1, MainBar);
            AppCtrl.InitPrintGrid(this,false);
            AppCtrl.SetMaskNam(NamSXTu, NamSXDen);
            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
            AppCtrl.AddXemTatCa(this);
            AppCtrl.AddRefresh(this);

            //_msgConfirmBeforeDelete = "Bạn có muốn 'Xóa' biên mục \"{0}\" ?";
            _msgConfirmBeforeDelete = "Bạn có muốn 'Xóa' biên mục đang chọn?";
            _msgNotifyDeleteFail = "Thao tác 'Xóa' biên mục \"{0}\" thực hiện không thành công. Vui lòng kiểm tra lại dữ liệu.";
        }
Пример #8
0
        private AppGridTimKiemBienMuc TimKiem; //Khai báo cột trong đây

        #endregion Fields

        #region Constructors

        public frmBienMucQL()
        {
            InitializeComponent();
            TimKiem = new AppGridTimKiemBienMuc(gridViewMaster);
            IDField = BIEN_MUC.BM_ID;
            DisplayField = BIEN_MUC.MA_BANG;
            Fix = new PhieuQuanLy10BandedFix(this);
            AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
            checkListCol = TimKiem.AddTuyBienCot(this.barManager1, this.MainBar);
            AppCtrl.InitPrintGrid(this,false);
            AppCtrl.SetMaskNam(NamSXTu, NamSXDen);
            //AppCtrl.SetTenYear(NamSXTu, NamSXDen);
            AppCtrl.FormatButtonTimKiem(this);
            AppCtrl.AddXemTatCa(this,checkListCol);
            AppCtrl.AddRefresh(this);
            barButtonItemAddNext.Glyph = FrameworkParams.imageStore.GetImage2020("btnAddNext.png");
            _msgConfirmBeforeDelete = "Bạn có muốn 'Xóa' biên mục đang chọn?";
            _msgNotifyDeleteFail = "Thao tác 'Xóa' biên mục \"{0}\" thực hiện không thành công. Vui lòng kiểm tra lại dữ liệu.";
            barButtonItemAddNext.Enabled = false;
            gridViewMaster.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridViewMaster_FocusedRowChanged);
        }
Пример #9
0
 public frmQLKhoLuuBetaCam()
 {
     InitializeComponent();
     this.ASCSortClause = "ct.category,ct.noi_dung";
     IDField = CHUONG_TRINH_POST_MASTER.CTPM_ID;
     DisplayField = "TenPostMaster";
     this._UsingExportToFileItem = true;
     fix = new PhieuQuanLy10BandedFix(this);
        // PMSupport.SetTitle(this, Status);
     AppCtrl.SetAutoHideEmptyBand(gridViewMaster);
     AppCtrl.AddTuyBienCot(this.barManager1, this.MainBar, 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_TTHD.Name, Col_PM_ThanhLy.Name, Col_PM_NgayNhapKho.Name, Col_PM_Ke.Name,
          Col_PM_Ngan.Name, Col_PM_Tang.Name);
     barButtonItemPrintNew = AppCtrl.InitPrintGrid(this, false);
     AppCtrl.FormatButtonTimKiem(this);
     AppCtrl.AddXemTatCa(this);
     HelpControlExt.AutoSetTabIndex(this.popupControlContainerFilter.Controls);
     AppCtrl.AddRefresh(this);
     gridViewMaster._SetPermissionElement(barButtonItemPrintNew, barSubItemExport);
 }
Пример #10
0
        public frmTimVetGio()
        {
            InitializeComponent();
            IDField = QL_LICH_PHAT_SONG.LPS_ID;
            DisplayField = QL_LICH_PHAT_SONG.TEN_CT;
            this._UsingCheckFiler = false;
            this._UseSplitControlEvent = false;
            this.ASCSortClause = "lps.ngay_bat_dau,lps.gio_phat_song";
            _msgConfirmBeforeDelete = "Bạn có chắc là muốn xóa lịch phát sóng đang chọn?";
            _msgNotifyDeleteFail = "Xóa lịch phát sóng không thành công, vui lòng kiểm tra lại dữ liệu!";
            this.Text = "Tìm vệt giờ trống";
            Fix = new PhieuQuanLy10BandedFix(this);

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

            splitContainerControl1.SplitterPositionChanged += new System.EventHandler(splitContainerControl1_SplitterPositionChanged);
        }