public frmTKChiTietTrenThuocTinh() { InitializeComponent(); timkiem = new AppGridTimKiemBienMuc(gridViewMaster); IDField = BIEN_MUC.BM_ID; DisplayField = BIEN_MUC.MA_BANG; new PhieuQuanLy10BandedFix(this); AppCtrl.SetAutoHideEmptyBand(gridViewMaster); error = new DXErrorProvider(); gridViewMaster.CustomColumnGroup += new DevExpress.XtraGrid.Views.Base.CustomColumnSortEventHandler(gridViewMaster_CustomColumnGroup); gridViewMaster.CustomDrawGroupRow += new DevExpress.XtraGrid.Views.Base.RowObjectCustomDrawEventHandler(gridViewMaster_CustomDrawGroupRow); AppCtrl.InitPrintGrid(this,false); AppCtrl.FormatButtonTimKiem(this); AppCtrl.AddRefresh(this); gridViewMaster.ClearGrouping(); gridViewMaster.ClearSorting(); gridViewMaster.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] { new DevExpress.XtraGrid.Columns.GridColumnSortInfo(timkiem.CotNoiDung , DevExpress.Data.ColumnSortOrder.Ascending), new DevExpress.XtraGrid.Columns.GridColumnSortInfo(timkiem.CotSoTap, DevExpress.Data.ColumnSortOrder.Ascending)}); gridViewMaster.CustomSummaryExists += new DevExpress.Data.CustomSummaryExistEventHandler(gridViewMaster_CustomSummaryExists); gridControlMaster.EmbeddedNavigator.ForeColor = Color.Red; Font f =gridControlMaster.EmbeddedNavigator.Font; gridControlMaster.EmbeddedNavigator.Font = new Font(f, FontStyle.Bold); gridViewMaster.ColumnFilterChanged += new EventHandler(gridViewMaster_ColumnFilterChanged); gridViewMaster.ShowGridMenu += new DevExpress.XtraGrid.Views.Grid.GridMenuEventHandler(gridViewMaster_ShowGridMenu); }
public frmBienMucAdvanceQL() { InitializeComponent(); TimKiem = new AppGridTimKiemBienMuc(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, checkListCol); 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."; }
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); }
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); }
public frmTimKiemDonGian() { 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); //_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."; }
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); }
public frmTKChiTietTrenThuocTinhAdvance() { InitializeComponent(); timkiem = new AppGridTimKiemBienMuc(gridViewMaster); IDField = BIEN_MUC.BM_ID; DisplayField = BIEN_MUC.MA_BANG; new PhieuQuanLy10BandedFix(this); AppCtrl.SetAutoHideEmptyBand(gridViewMaster); error = new DXErrorProvider(); gridViewMaster.CustomColumnGroup += new DevExpress.XtraGrid.Views.Base.CustomColumnSortEventHandler(gridViewMaster_CustomColumnGroup); gridViewMaster.CustomDrawGroupRow += new DevExpress.XtraGrid.Views.Base.RowObjectCustomDrawEventHandler(gridViewMaster_CustomDrawGroupRow); AppCtrl.InitPrintGrid(this,false); AppCtrl.FormatButtonTimKiem(this); gridViewMaster.ClearGrouping(); gridViewMaster.ClearSorting(); gridViewMaster.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] { new DevExpress.XtraGrid.Columns.GridColumnSortInfo(timkiem.CotNoiDung , DevExpress.Data.ColumnSortOrder.Ascending), new DevExpress.XtraGrid.Columns.GridColumnSortInfo(timkiem.CotSoTap, DevExpress.Data.ColumnSortOrder.Ascending)}); 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."; gridViewMaster.CustomSummaryExists += new DevExpress.Data.CustomSummaryExistEventHandler(gridViewMaster_CustomSummaryExists); gridControlMaster.EmbeddedNavigator.ForeColor = Color.Red; Font f = gridControlMaster.EmbeddedNavigator.Font; gridControlMaster.EmbeddedNavigator.Font = new Font(f, FontStyle.Bold); gridViewMaster.ColumnFilterChanged += new EventHandler(gridViewMaster_ColumnFilterChanged); gridViewMaster.ShowGridMenu += new DevExpress.XtraGrid.Views.Grid.GridMenuEventHandler(gridViewMaster_ShowGridMenu); }
private void Init(bool multiSelect) { InitializeComponent(); this.MultiSelect = multiSelect; TimKiem = new AppGridTimKiemBienMuc(gridViewMaster); IDField = BIEN_MUC.BM_ID; new TimPopupBandedFix(this); AppCtrl.SetAutoHideEmptyBand(gridViewMaster); checkListCol = TimKiem.AddTuyBienCotSeachPopup(barManager1, MainBar); AppCtrl.InitPrintGrid(this, false); AppCtrl.SetMaskNam(NamSXTu, NamSXDen); //AppCtrl.SetTenYear(NamSXTu, NamSXDen); AppCtrl.FormatButtonTimKiem(this); AppCtrl.AddXemTatCa(this, checkListCol,BIEN_MUC.FILTER_STRING); AppCtrl.AddRefresh(this); this.WindowState = System.Windows.Forms.FormWindowState.Normal; this.MinimumSize = new System.Drawing.Size(400, 300); this.Size = new System.Drawing.Size(800, 500); }