public static void addID(QueryBuilder filter, string opLeft, PLMultiChoiceGrid input) { if (!input._IsNotCheckAnyOrCheckedAll) { filter.addID(opLeft, input._GetSelectedIds()); } }
/// <summary> /// Required method for Designer support - do not modify /// </summary> protected void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmTNSSaleCppScrQL)); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); this.barManager1 = new DevExpress.XtraBars.BarManager(this.components); this.MainBar = new DevExpress.XtraBars.Bar(); this.barButtonItemAdd = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItemXem = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItemDelete = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItemUpdate = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItemPrint = new DevExpress.XtraBars.BarButtonItem(); this.popupMenu1 = new DevExpress.XtraBars.PopupMenu(this.components); this.barButtonItem4 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItemCommit = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItemNoCommit = new DevExpress.XtraBars.BarButtonItem(); this.barSubItem1 = new DevExpress.XtraBars.BarSubItem(); this.barButtonItemSearch = new DevExpress.XtraBars.BarButtonItem(); this.popupMenuFilter = new DevExpress.XtraBars.PopupMenu(this.components); this.barCheckItemFilter = new DevExpress.XtraBars.BarCheckItem(); this.barButtonItemClose = new DevExpress.XtraBars.BarButtonItem(); this.barDockControlTop = new DevExpress.XtraBars.BarDockControl(); this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl(); this.barDockControlRight = new DevExpress.XtraBars.BarDockControl(); this.barStaticItem1 = new DevExpress.XtraBars.BarStaticItem(); this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem3 = new DevExpress.XtraBars.BarButtonItem(); this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl(); this.gridControlMaster = new DevExpress.XtraGrid.GridControl(); this.gridViewMaster = new DevExpress.XtraGrid.Views.Grid.PLGridView(); this.colName = new DevExpress.XtraGrid.Columns.GridColumn(); this.colTuNgay = new DevExpress.XtraGrid.Columns.GridColumn(); this.colDenNgay = new DevExpress.XtraGrid.Columns.GridColumn(); this.colNgayLap = new DevExpress.XtraGrid.Columns.GridColumn(); this.colGhiChu = new DevExpress.XtraGrid.Columns.GridColumn(); this.colTenFile = new DevExpress.XtraGrid.Columns.GridColumn(); this.colTarget = new DevExpress.XtraGrid.Columns.GridColumn(); this.colThiTruong = new DevExpress.XtraGrid.Columns.GridColumn(); this.colNguoiThem = new DevExpress.XtraGrid.Columns.GridColumn(); this.xtraTabControlDetail = new DevExpress.XtraTab.XtraTabControl(); this.xtraTabPageDetail = new DevExpress.XtraTab.XtraTabPage(); this.popupControlContainerFilter = new DevExpress.XtraBars.PopupControlContainer(this.components); this.Target = new ProtocolVN.App.VideoLibrary.PLMultiChoiceGrid(); this.ThiTruong = new ProtocolVN.App.VideoLibrary.PLMultiChoiceGrid(); this.PhongBan = new ProtocolVN.Framework.Win.PLDMTreeMultiChoice(); this.labelControl3 = new DevExpress.XtraEditors.LabelControl(); this.DenNam = new DevExpress.XtraEditors.SpinEdit(); this.DenThang = new DevExpress.XtraEditors.SpinEdit(); this.TuNam = new DevExpress.XtraEditors.SpinEdit(); this.TuThang = new DevExpress.XtraEditors.SpinEdit(); this.labelControl7 = new DevExpress.XtraEditors.LabelControl(); this.labelControl8 = new DevExpress.XtraEditors.LabelControl(); this.labelControl6 = new DevExpress.XtraEditors.LabelControl(); this.labelControl5 = new DevExpress.XtraEditors.LabelControl(); this.plLabel5 = new DevExpress.XtraEditors.LabelControl(); this.NguoiLap = new ProtocolVN.Framework.Win.PLMultiCombobox(); this.NgayLap = new ProtocolVN.Framework.Win.Trial.PLDateSelection(); this.TenFile = new ProtocolVN.App.VideoLibrary.PLTextEditAutocomplete(); this.TenNguon = new ProtocolVN.App.VideoLibrary.PLTextEditAutocomplete(); this.plLabel3 = new DevExpress.XtraEditors.LabelControl(); this.plLabel1 = new DevExpress.XtraEditors.LabelControl(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.plLabel2 = new DevExpress.XtraEditors.LabelControl(); this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenuFilter)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit(); this.splitContainerControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridControlMaster)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridViewMaster)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControlDetail)).BeginInit(); this.xtraTabControlDetail.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.popupControlContainerFilter)).BeginInit(); this.popupControlContainerFilter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.DenNam.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.DenThang.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.TuNam.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.TuThang.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.NguoiLap.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.TenFile.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.TenNguon.Properties)).BeginInit(); this.SuspendLayout(); // // barManager1 // this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] { this.MainBar}); this.barManager1.DockControls.Add(this.barDockControlTop); this.barManager1.DockControls.Add(this.barDockControlBottom); this.barManager1.DockControls.Add(this.barDockControlLeft); this.barManager1.DockControls.Add(this.barDockControlRight); this.barManager1.Form = this; this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.barButtonItemAdd, this.barButtonItemDelete, this.barButtonItemUpdate, this.barButtonItemPrint, this.barStaticItem1, this.barButtonItem1, this.barButtonItem2, this.barButtonItemCommit, this.barButtonItemNoCommit, this.barSubItem1, this.barButtonItemXem, this.barButtonItemSearch, this.barButtonItemClose, this.barCheckItemFilter, this.barButtonItem3, this.barButtonItem4}); this.barManager1.MaxItemId = 43; // // MainBar // this.MainBar.BarName = "MainBar"; this.MainBar.DockCol = 0; this.MainBar.DockRow = 0; this.MainBar.DockStyle = DevExpress.XtraBars.BarDockStyle.Top; this.MainBar.FloatLocation = new System.Drawing.Point(39, 133); this.MainBar.FloatSize = new System.Drawing.Size(72, 73); this.MainBar.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.Caption, this.barButtonItemAdd, "&Thêm", true), new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemXem), new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemDelete), new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemUpdate), new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemPrint), new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemCommit, true), new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemNoCommit), new DevExpress.XtraBars.LinkPersistInfo(this.barSubItem1, true), new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemSearch, true), new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemClose, true)}); this.MainBar.OptionsBar.AllowQuickCustomization = false; this.MainBar.OptionsBar.DrawDragBorder = false; this.MainBar.OptionsBar.RotateWhenVertical = false; this.MainBar.OptionsBar.UseWholeRow = true; this.MainBar.Text = "Custom 1"; // // barButtonItemAdd // this.barButtonItemAdd.Caption = "Thêm"; this.barButtonItemAdd.Id = 0; this.barButtonItemAdd.Name = "barButtonItemAdd"; this.barButtonItemAdd.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // barButtonItemXem // this.barButtonItemXem.Caption = "X&em"; this.barButtonItemXem.Id = 24; this.barButtonItemXem.Name = "barButtonItemXem"; this.barButtonItemXem.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // barButtonItemDelete // this.barButtonItemDelete.Caption = "&Xóa"; this.barButtonItemDelete.Id = 1; this.barButtonItemDelete.Name = "barButtonItemDelete"; this.barButtonItemDelete.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // barButtonItemUpdate // this.barButtonItemUpdate.Caption = "&Sửa"; this.barButtonItemUpdate.Id = 2; this.barButtonItemUpdate.Name = "barButtonItemUpdate"; this.barButtonItemUpdate.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // barButtonItemPrint // this.barButtonItemPrint.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown; this.barButtonItemPrint.Caption = "&In"; this.barButtonItemPrint.DropDownControl = this.popupMenu1; this.barButtonItemPrint.Id = 3; this.barButtonItemPrint.Name = "barButtonItemPrint"; this.barButtonItemPrint.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // popupMenu1 // this.popupMenu1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem4)}); this.popupMenu1.Manager = this.barManager1; this.popupMenu1.Name = "popupMenu1"; // // barButtonItem4 // this.barButtonItem4.Caption = "Xem trước"; this.barButtonItem4.Id = 33; this.barButtonItem4.Name = "barButtonItem4"; // // barButtonItemCommit // this.barButtonItemCommit.Caption = "&Duyệt"; this.barButtonItemCommit.Id = 17; this.barButtonItemCommit.Name = "barButtonItemCommit"; this.barButtonItemCommit.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // barButtonItemNoCommit // this.barButtonItemNoCommit.Caption = "&Không duyệt"; this.barButtonItemNoCommit.Id = 18; this.barButtonItemNoCommit.Name = "barButtonItemNoCommit"; this.barButtonItemNoCommit.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // barSubItem1 // this.barSubItem1.Caption = "Nghiệp vụ"; this.barSubItem1.Id = 20; this.barSubItem1.Name = "barSubItem1"; this.barSubItem1.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // barButtonItemSearch // this.barButtonItemSearch.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown; this.barButtonItemSearch.Caption = "Tì&m kiếm"; this.barButtonItemSearch.DropDownControl = this.popupMenuFilter; this.barButtonItemSearch.Id = 27; this.barButtonItemSearch.Name = "barButtonItemSearch"; this.barButtonItemSearch.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // popupMenuFilter // this.popupMenuFilter.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.barCheckItemFilter)}); this.popupMenuFilter.Manager = this.barManager1; this.popupMenuFilter.Name = "popupMenuFilter"; // // barCheckItemFilter // this.barCheckItemFilter.Caption = "Điều &kiện lọc"; this.barCheckItemFilter.Checked = true; this.barCheckItemFilter.Id = 29; this.barCheckItemFilter.Name = "barCheckItemFilter"; this.barCheckItemFilter.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // barButtonItemClose // this.barButtonItemClose.Caption = "Đón&g"; this.barButtonItemClose.Id = 28; this.barButtonItemClose.Name = "barButtonItemClose"; this.barButtonItemClose.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // // barDockControlTop // this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top; this.barDockControlTop.Location = new System.Drawing.Point(0, 0); this.barDockControlTop.Size = new System.Drawing.Size(1187, 24); // // barDockControlBottom // this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.barDockControlBottom.Location = new System.Drawing.Point(0, 497); this.barDockControlBottom.Size = new System.Drawing.Size(1187, 0); // // barDockControlLeft // this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left; this.barDockControlLeft.Location = new System.Drawing.Point(0, 24); this.barDockControlLeft.Size = new System.Drawing.Size(0, 473); // // barDockControlRight // this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right; this.barDockControlRight.Location = new System.Drawing.Point(1187, 24); this.barDockControlRight.Size = new System.Drawing.Size(0, 473); // // barStaticItem1 // this.barStaticItem1.AutoSize = DevExpress.XtraBars.BarStaticItemSize.None; this.barStaticItem1.Border = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; this.barStaticItem1.Id = 13; this.barStaticItem1.Name = "barStaticItem1"; this.barStaticItem1.TextAlignment = System.Drawing.StringAlignment.Near; this.barStaticItem1.Width = 100; // // barButtonItem1 // this.barButtonItem1.Caption = "barButtonItem1"; this.barButtonItem1.Id = 14; this.barButtonItem1.Name = "barButtonItem1"; // // barButtonItem2 // this.barButtonItem2.Caption = "barButtonItem2"; this.barButtonItem2.Id = 15; this.barButtonItem2.Name = "barButtonItem2"; // // barButtonItem3 // this.barButtonItem3.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown; this.barButtonItem3.Caption = "In"; this.barButtonItem3.Id = 30; this.barButtonItem3.Name = "barButtonItem3"; // // splitContainerControl1 // this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainerControl1.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.Panel2; this.splitContainerControl1.Location = new System.Drawing.Point(0, 102); this.splitContainerControl1.Name = "splitContainerControl1"; this.splitContainerControl1.Panel1.Controls.Add(this.gridControlMaster); this.splitContainerControl1.Panel1.Text = "splitContainerControl1_Panel1"; this.splitContainerControl1.Panel2.CaptionLocation = DevExpress.Utils.Locations.Left; this.splitContainerControl1.Panel2.ShowCaption = true; this.splitContainerControl1.Panel2.Text = "splitContainerControl1_Panel2"; this.splitContainerControl1.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Panel1; this.splitContainerControl1.Size = new System.Drawing.Size(1187, 395); this.splitContainerControl1.SplitterPosition = 368; this.splitContainerControl1.TabIndex = 4; this.splitContainerControl1.Text = "splitContainerControl1"; // // gridControlMaster // this.gridControlMaster.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("gridControlMaster.BackgroundImage"))); this.gridControlMaster.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.gridControlMaster.Dock = System.Windows.Forms.DockStyle.Fill; this.gridControlMaster.Location = new System.Drawing.Point(0, 0); this.gridControlMaster.MainView = this.gridViewMaster; this.gridControlMaster.Name = "gridControlMaster"; this.gridControlMaster.Size = new System.Drawing.Size(1187, 395); this.gridControlMaster.TabIndex = 0; this.gridControlMaster.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridViewMaster}); // // gridViewMaster // this.gridViewMaster.Appearance.FooterPanel.Options.UseTextOptions = true; this.gridViewMaster.Appearance.FooterPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.gridViewMaster.Appearance.HeaderPanel.Options.UseTextOptions = true; this.gridViewMaster.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.gridViewMaster.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colName, this.colTuNgay, this.colDenNgay, this.colNgayLap, this.colGhiChu, this.colTenFile, this.colTarget, this.colThiTruong, this.colNguoiThem}); this.gridViewMaster.GridControl = this.gridControlMaster; this.gridViewMaster.GroupPanelText = "Di chuyển tiêu đề vào đây để gom nhóm theo cột tiêu đề"; this.gridViewMaster.IndicatorWidth = 40; this.gridViewMaster.Name = "gridViewMaster"; this.gridViewMaster.OptionsLayout.Columns.AddNewColumns = false; this.gridViewMaster.OptionsNavigation.AutoFocusNewRow = true; this.gridViewMaster.OptionsNavigation.EnterMoveNextColumn = true; this.gridViewMaster.OptionsPrint.UsePrintStyles = true; this.gridViewMaster.OptionsSelection.MultiSelect = true; this.gridViewMaster.OptionsView.EnableAppearanceEvenRow = true; this.gridViewMaster.OptionsView.EnableAppearanceOddRow = true; this.gridViewMaster.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom; this.gridViewMaster.OptionsView.ShowFooter = true; this.gridViewMaster.OptionsView.ShowGroupedColumns = true; this.gridViewMaster.OptionsView.ShowViewCaption = true; this.gridViewMaster.ViewCaption = "DANH SÁCH FILE NGUỒN CPP"; // // colName // this.colName.Caption = "Tên nguồn"; this.colName.Name = "colName"; this.colName.OptionsColumn.AllowEdit = false; this.colName.OptionsColumn.AllowFocus = false; this.colName.OptionsColumn.ReadOnly = true; this.colName.Visible = true; this.colName.VisibleIndex = 0; this.colName.Width = 63; // // colTuNgay // this.colTuNgay.Caption = "Từ tháng"; this.colTuNgay.Name = "colTuNgay"; this.colTuNgay.OptionsColumn.AllowEdit = false; this.colTuNgay.OptionsColumn.AllowFocus = false; this.colTuNgay.OptionsColumn.ReadOnly = true; this.colTuNgay.Visible = true; this.colTuNgay.VisibleIndex = 4; this.colTuNgay.Width = 56; // // colDenNgay // this.colDenNgay.Caption = "Đến tháng"; this.colDenNgay.Name = "colDenNgay"; this.colDenNgay.OptionsColumn.AllowEdit = false; this.colDenNgay.OptionsColumn.AllowFocus = false; this.colDenNgay.OptionsColumn.AllowMove = false; this.colDenNgay.OptionsColumn.ReadOnly = true; this.colDenNgay.Visible = true; this.colDenNgay.VisibleIndex = 5; this.colDenNgay.Width = 63; // // colNgayLap // this.colNgayLap.Caption = "Ngày thêm"; this.colNgayLap.Name = "colNgayLap"; this.colNgayLap.Visible = true; this.colNgayLap.VisibleIndex = 6; this.colNgayLap.Width = 64; // // colGhiChu // this.colGhiChu.Caption = "Ghi chú"; this.colGhiChu.Name = "colGhiChu"; this.colGhiChu.Visible = true; this.colGhiChu.VisibleIndex = 8; this.colGhiChu.Width = 47; // // colTenFile // this.colTenFile.Caption = "Tên file"; this.colTenFile.Name = "colTenFile"; this.colTenFile.Visible = true; this.colTenFile.VisibleIndex = 1; this.colTenFile.Width = 47; // // colTarget // this.colTarget.Caption = "Target"; this.colTarget.Name = "colTarget"; this.colTarget.Visible = true; this.colTarget.VisibleIndex = 2; this.colTarget.Width = 44; // // colThiTruong // this.colThiTruong.Caption = "Thị trường"; this.colThiTruong.Name = "colThiTruong"; this.colThiTruong.Visible = true; this.colThiTruong.VisibleIndex = 3; this.colThiTruong.Width = 62; // // colNguoiThem // this.colNguoiThem.Caption = "Người thêm"; this.colNguoiThem.Name = "colNguoiThem"; this.colNguoiThem.Visible = true; this.colNguoiThem.VisibleIndex = 7; this.colNguoiThem.Width = 67; // // xtraTabControlDetail // this.xtraTabControlDetail.Location = new System.Drawing.Point(1141, 13); this.xtraTabControlDetail.Name = "xtraTabControlDetail"; this.xtraTabControlDetail.SelectedTabPage = this.xtraTabPageDetail; this.xtraTabControlDetail.Size = new System.Drawing.Size(20, 13); this.xtraTabControlDetail.TabIndex = 0; this.xtraTabControlDetail.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.xtraTabPageDetail}); this.xtraTabControlDetail.Visible = false; // // xtraTabPageDetail // this.xtraTabPageDetail.Name = "xtraTabPageDetail"; this.xtraTabPageDetail.Size = new System.Drawing.Size(13, 0); this.xtraTabPageDetail.Text = "Chi tiết"; // // popupControlContainerFilter // this.popupControlContainerFilter.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; this.popupControlContainerFilter.Controls.Add(this.Target); this.popupControlContainerFilter.Controls.Add(this.ThiTruong); this.popupControlContainerFilter.Controls.Add(this.PhongBan); this.popupControlContainerFilter.Controls.Add(this.labelControl3); this.popupControlContainerFilter.Controls.Add(this.DenNam); this.popupControlContainerFilter.Controls.Add(this.DenThang); this.popupControlContainerFilter.Controls.Add(this.TuNam); this.popupControlContainerFilter.Controls.Add(this.TuThang); this.popupControlContainerFilter.Controls.Add(this.labelControl7); this.popupControlContainerFilter.Controls.Add(this.labelControl8); this.popupControlContainerFilter.Controls.Add(this.labelControl6); this.popupControlContainerFilter.Controls.Add(this.labelControl5); this.popupControlContainerFilter.Controls.Add(this.xtraTabControlDetail); this.popupControlContainerFilter.Controls.Add(this.plLabel5); this.popupControlContainerFilter.Controls.Add(this.NguoiLap); this.popupControlContainerFilter.Controls.Add(this.NgayLap); this.popupControlContainerFilter.Controls.Add(this.TenFile); this.popupControlContainerFilter.Controls.Add(this.TenNguon); this.popupControlContainerFilter.Controls.Add(this.plLabel3); this.popupControlContainerFilter.Controls.Add(this.plLabel1); this.popupControlContainerFilter.Controls.Add(this.labelControl2); this.popupControlContainerFilter.Controls.Add(this.labelControl1); this.popupControlContainerFilter.Controls.Add(this.plLabel2); this.popupControlContainerFilter.Dock = System.Windows.Forms.DockStyle.Top; this.popupControlContainerFilter.Location = new System.Drawing.Point(0, 24); this.popupControlContainerFilter.Manager = this.barManager1; this.popupControlContainerFilter.Name = "popupControlContainerFilter"; this.popupControlContainerFilter.Size = new System.Drawing.Size(1187, 78); this.popupControlContainerFilter.TabIndex = 0; this.popupControlContainerFilter.Visible = false; // // Target // this.Target.Location = new System.Drawing.Point(397, 3); this.Target.Name = "Target"; this.Target.Size = new System.Drawing.Size(275, 20); this.Target.TabIndex = 259; // // ThiTruong // this.ThiTruong.Location = new System.Drawing.Point(397, 27); this.ThiTruong.Name = "ThiTruong"; this.ThiTruong.Size = new System.Drawing.Size(275, 20); this.ThiTruong.TabIndex = 258; // // PhongBan // this.PhongBan.Location = new System.Drawing.Point(397, 51); this.PhongBan.Name = "PhongBan"; this.PhongBan.Size = new System.Drawing.Size(275, 20); this.PhongBan.TabIndex = 242; // // labelControl3 // this.labelControl3.Location = new System.Drawing.Point(342, 55); this.labelControl3.Name = "labelControl3"; this.labelControl3.Size = new System.Drawing.Size(51, 13); this.labelControl3.TabIndex = 243; this.labelControl3.Text = "Phòng ban"; this.labelControl3.ToolTip = "Phòng ban (Cấp 1)"; // // DenNam // this.DenNam.EditValue = new decimal(new int[] { 1900, 0, 0, 0}); this.DenNam.Location = new System.Drawing.Point(276, 53); this.DenNam.Name = "DenNam"; this.DenNam.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.DenNam.Properties.Mask.EditMask = "d"; this.DenNam.Properties.MaxValue = new decimal(new int[] { 9999, 0, 0, 0}); this.DenNam.Properties.MinValue = new decimal(new int[] { 1900, 0, 0, 0}); this.DenNam.Size = new System.Drawing.Size(55, 20); this.DenNam.TabIndex = 237; // // DenThang // this.DenThang.EditValue = new decimal(new int[] { 1, 0, 0, 0}); this.DenThang.Location = new System.Drawing.Point(205, 52); this.DenThang.Name = "DenThang"; this.DenThang.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.DenThang.Properties.Mask.EditMask = "d"; this.DenThang.Properties.MaxValue = new decimal(new int[] { 12, 0, 0, 0}); this.DenThang.Properties.MinValue = new decimal(new int[] { 1, 0, 0, 0}); this.DenThang.Size = new System.Drawing.Size(55, 20); this.DenThang.TabIndex = 238; // // TuNam // this.TuNam.EditValue = new decimal(new int[] { 1900, 0, 0, 0}); this.TuNam.Location = new System.Drawing.Point(126, 52); this.TuNam.Name = "TuNam"; this.TuNam.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.TuNam.Properties.Mask.EditMask = "d"; this.TuNam.Properties.MaxValue = new decimal(new int[] { 9999, 0, 0, 0}); this.TuNam.Properties.MinValue = new decimal(new int[] { 1900, 0, 0, 0}); this.TuNam.Size = new System.Drawing.Size(47, 20); this.TuNam.TabIndex = 240; // // TuThang // this.TuThang.EditValue = new decimal(new int[] { 1, 0, 0, 0}); this.TuThang.Location = new System.Drawing.Point(68, 51); this.TuThang.Name = "TuThang"; this.TuThang.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.TuThang.Properties.Mask.EditMask = "d"; this.TuThang.Properties.MaxValue = new decimal(new int[] { 12, 0, 0, 0}); this.TuThang.Properties.MinValue = new decimal(new int[] { 1, 0, 0, 0}); this.TuThang.Size = new System.Drawing.Size(47, 20); this.TuThang.TabIndex = 239; // // labelControl7 // this.labelControl7.Location = new System.Drawing.Point(179, 56); this.labelControl7.Name = "labelControl7"; this.labelControl7.Size = new System.Drawing.Size(20, 13); this.labelControl7.TabIndex = 236; this.labelControl7.Text = "Đến"; this.labelControl7.Click += new System.EventHandler(this.labelControl7_Click); // // labelControl8 // this.labelControl8.Location = new System.Drawing.Point(266, 56); this.labelControl8.Name = "labelControl8"; this.labelControl8.Size = new System.Drawing.Size(4, 13); this.labelControl8.TabIndex = 232; this.labelControl8.Text = "/"; // // labelControl6 // this.labelControl6.Location = new System.Drawing.Point(117, 55); this.labelControl6.Name = "labelControl6"; this.labelControl6.Size = new System.Drawing.Size(4, 13); this.labelControl6.TabIndex = 235; this.labelControl6.Text = "/"; // // labelControl5 // this.labelControl5.Location = new System.Drawing.Point(12, 54); this.labelControl5.Name = "labelControl5"; this.labelControl5.Size = new System.Drawing.Size(44, 13); this.labelControl5.TabIndex = 234; this.labelControl5.Text = "Từ tháng"; // // plLabel5 // this.plLabel5.Location = new System.Drawing.Point(678, 7); this.plLabel5.Name = "plLabel5"; this.plLabel5.Size = new System.Drawing.Size(55, 13); this.plLabel5.TabIndex = 199; this.plLabel5.Text = "Người thêm"; // // NguoiLap // this.NguoiLap.DataSource = null; this.NguoiLap.DisplayField = null; this.NguoiLap.Location = new System.Drawing.Point(740, 6); this.NguoiLap.Name = "NguoiLap"; this.NguoiLap.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.NguoiLap.Size = new System.Drawing.Size(284, 20); this.NguoiLap.TabIndex = 198; this.NguoiLap.ValueField = null; // // NgayLap // this.NgayLap.Caption = "Từ ngày 25/07/2012 đến ngày 01/08/2012"; this.NgayLap.Default = ProtocolVN.Framework.Win.Trial.SelectionTypes.FromDateToDate; this.NgayLap.FirstFrom = new System.DateTime(2012, 7, 25, 9, 3, 40, 103); this.NgayLap.FirstTo = new System.DateTime(2012, 8, 1, 9, 3, 40, 103); this.NgayLap.FromDate = new System.DateTime(2012, 7, 25, 9, 3, 40, 103); this.NgayLap.Location = new System.Drawing.Point(739, 31); this.NgayLap.Name = "NgayLap"; this.NgayLap.ReturnType = ProtocolVN.Framework.Win.Trial.TimeType.Date; this.NgayLap.SecondFrom = new System.DateTime(2012, 7, 25, 9, 3, 40, 103); this.NgayLap.SecondTo = new System.DateTime(2012, 8, 1, 9, 3, 40, 103); this.NgayLap.SelectedType = ProtocolVN.Framework.Win.Trial.SelectionTypes.FromDateToDate; this.NgayLap.Size = new System.Drawing.Size(285, 20); this.NgayLap.TabIndex = 195; this.NgayLap.ToDate = new System.DateTime(2012, 8, 1, 9, 3, 40, 103); this.NgayLap.Types = ((ProtocolVN.Framework.Win.Trial.SelectionTypes)(((((((((ProtocolVN.Framework.Win.Trial.SelectionTypes.OneDate | ProtocolVN.Framework.Win.Trial.SelectionTypes.OneMonth) | ProtocolVN.Framework.Win.Trial.SelectionTypes.OneQuarter) | ProtocolVN.Framework.Win.Trial.SelectionTypes.OneYear) | ProtocolVN.Framework.Win.Trial.SelectionTypes.SixMonths) | ProtocolVN.Framework.Win.Trial.SelectionTypes.FromDateToDate) | ProtocolVN.Framework.Win.Trial.SelectionTypes.FromMonthToMonth) | ProtocolVN.Framework.Win.Trial.SelectionTypes.FromQuarterToQuarter) | ProtocolVN.Framework.Win.Trial.SelectionTypes.FromYearToYear))); // // TenFile // this.TenFile._DataSource = null; this.TenFile._GetField = null; this.TenFile.Location = new System.Drawing.Point(68, 26); this.TenFile.Name = "TenFile"; this.TenFile.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo, "", 0, true, false, false, DevExpress.XtraEditors.ImageLocation.Default, null, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, "", null, null, false)}); this.TenFile.Properties.CloseUpKey = new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None); this.TenFile.Size = new System.Drawing.Size(263, 20); this.TenFile.TabIndex = 194; // // TenNguon // this.TenNguon._DataSource = null; this.TenNguon._GetField = null; this.TenNguon.Location = new System.Drawing.Point(69, 3); this.TenNguon.MenuManager = this.barManager1; this.TenNguon.Name = "TenNguon"; this.TenNguon.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo, "", 0, true, false, false, DevExpress.XtraEditors.ImageLocation.Default, null, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject2, "", null, null, false)}); this.TenNguon.Properties.CloseUpKey = new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None); this.TenNguon.Size = new System.Drawing.Size(263, 20); this.TenNguon.TabIndex = 194; // // plLabel3 // this.plLabel3.Location = new System.Drawing.Point(679, 34); this.plLabel3.Name = "plLabel3"; this.plLabel3.Size = new System.Drawing.Size(52, 13); this.plLabel3.TabIndex = 192; this.plLabel3.Text = "Ngày thêm"; // // plLabel1 // this.plLabel1.Location = new System.Drawing.Point(12, 29); this.plLabel1.Name = "plLabel1"; this.plLabel1.Size = new System.Drawing.Size(35, 13); this.plLabel1.TabIndex = 188; this.plLabel1.Text = "Tên file"; // // labelControl2 // this.labelControl2.Location = new System.Drawing.Point(340, 30); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(50, 13); this.labelControl2.TabIndex = 188; this.labelControl2.Text = "Thị trường"; // // labelControl1 // this.labelControl1.Location = new System.Drawing.Point(340, 6); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(32, 13); this.labelControl1.TabIndex = 188; this.labelControl1.Text = "Target"; // // plLabel2 // this.plLabel2.Location = new System.Drawing.Point(12, 6); this.plLabel2.Name = "plLabel2"; this.plLabel2.Size = new System.Drawing.Size(51, 13); this.plLabel2.TabIndex = 188; this.plLabel2.Text = "Tên nguồn"; // // gridColumn8 // this.gridColumn8.Caption = "VAT(%)"; this.gridColumn8.Name = "gridColumn8"; this.gridColumn8.Visible = true; this.gridColumn8.VisibleIndex = 5; // // gridColumn6 // this.gridColumn6.Caption = "VAT(%)"; this.gridColumn6.Name = "gridColumn6"; this.gridColumn6.Visible = true; this.gridColumn6.VisibleIndex = 5; this.gridColumn6.Width = 96; // // FrmTNSSaleCppScrQL // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1187, 497); this.Controls.Add(this.splitContainerControl1); this.Controls.Add(this.popupControlContainerFilter); this.Controls.Add(this.barDockControlLeft); this.Controls.Add(this.barDockControlRight); this.Controls.Add(this.barDockControlBottom); this.Controls.Add(this.barDockControlTop); this.Name = "FrmTNSSaleCppScrQL"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Quản lý file nguồn CPP"; ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenuFilter)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit(); this.splitContainerControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gridControlMaster)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridViewMaster)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControlDetail)).EndInit(); this.xtraTabControlDetail.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.popupControlContainerFilter)).EndInit(); this.popupControlContainerFilter.ResumeLayout(false); this.popupControlContainerFilter.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.DenNam.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.DenThang.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.TuNam.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.TuThang.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.NguoiLap.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.TenFile.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.TenNguon.Properties)).EndInit(); this.ResumeLayout(false); }
private static void InitPlMultiChoiceGrid(PLMultiChoiceGrid input, string tableDm, string displayField, string usingTable, string foreignField,PLMultiChoiceGrid.InitGridColumns initCols) { string sql = string.Format(@"select * from {0} dm where exists(select first 1 1 from {1} ct where ct.{2}=dm.id) order by name", tableDm, usingTable, foreignField); var ds = HelpDB.getDBService().LoadDataSet(sql, tableDm); if (ds != null && ds.Tables.Count > 0) { input._Init(ds.Tables[0], "ID", displayField,initCols); input._GridView.BestFitColumns(); input._PopupContainerControl.AutoSizeMode = AutoSizeMode.GrowOnly; input._PopupContainerControl.AutoSize = true; input._GridView.OptionsView.ShowAutoFilterRow = true; input._GridView.BestFitColumns(); } }
public static string GetMultiValues(PLMultiChoiceGrid multi) { string strIDs = multi._GetSelectedIdsStr(); if (strIDs == "(-1)") return ""; strIDs = strIDs.TrimStart('(').TrimEnd(')'); strIDs = "," + strIDs + ","; return strIDs; }
private static void InitCtrlKenhPhat(PLMultiChoiceGrid input, string usingTable, string foreignField) { string sql = string.Format(@"select * from {0} dth where exists(select first 1 1 from {1} ct where ct.{2}=dth.id) order by name", DMDaiTruyenHinh.TABLE_MAP, usingTable, foreignField); var ds = HelpDB.getDBService().LoadDataSet(sql, TNS_PROGRAMS_GRID_SCR.TABLE_NAME); if (ds != null && ds.Tables.Count > 0) { input._Init(ds.Tables[0], "ID", "NAME", InitColKenhPhat); input._GridView.BestFitColumns(); input._PopupContainerControl.AutoSizeMode = AutoSizeMode.GrowOnly; input._PopupContainerControl.AutoSize = true; input._GridView.OptionsView.ShowAutoFilterRow = true; input._GridView.BestFitColumns(); } }
private static void InitCtrlThiTruong(PLMultiChoiceGrid input, string usingTable, string foreignField) { InitPlMultiChoiceGrid(input, DMTnsThiTruong.TABLE_MAP, "DISPLAY_NAME", usingTable, foreignField, InitColThiTruong); }
public static void InitCtrlThiTruongRev(PLMultiChoiceGrid input) { InitCtrlThiTruong(input, TNS_SALE_REV_SCR.TABLE_NAME, TNS_SALE_REV_SCR.THI_TRUONG); }
public static void InitFileNguon(PLMultiChoiceGrid fileNguon) { const string sql = @"select scr.pgs_id,scr.name,scr.tu_ngay,scr.den_ngay,scr.ghi_chu,scr.nguoi_tao,scr.ngay_tao,scr.cong_ty from tns_programs_grid_scr scr where (scr.is_delete='N' or scr.is_delete is null) order by scr.ngay_tao desc,scr.name"; var ds = HelpDB.getDBService().LoadDataSet(sql, TNS_PROGRAMS_GRID_SCR.TABLE_NAME); if (ds != null && ds.Tables.Count > 0) { fileNguon._Init(ds.Tables[0], "PGS_ID", "NAME", InitColumnCtr); fileNguon._GridView.BestFitColumns(); fileNguon._PopupContainerControl.AutoSizeMode = AutoSizeMode.GrowOnly; fileNguon._PopupContainerControl.AutoSize = true; fileNguon._GridView.OptionsView.ShowAutoFilterRow = true; } }
public static void InitCtrlSectorRev(PLMultiChoiceGrid input) { InitPlMultiChoiceGrid(input, DMTnsSector.TABLE_MAP, "NAME", TNS_SALE_REV_SCR_CT.TABLE_NAME, TNS_SALE_REV_SCR_CT.SECTOR, InitColSector); }
public static void InitCtrlTargetRev(PLMultiChoiceGrid input) { InitCtrlTarget(input, TNS_SALE_REV_SCR.TABLE_NAME, TNS_SALE_REV_SCR.TARGET); }
public static void InitCtrlKenhPhatRev(PLMultiChoiceGrid input) { InitCtrlKenhPhat(input, TNS_SALE_REV_SCR_CT.TABLE_NAME, TNS_SALE_REV_SCR_CT.KENH_PHAT); }
public static void InitCtrlGroupRev(PLMultiChoiceGrid input) { InitPlMultiChoiceGrid(input, DMTnsGroup.TABLE_MAP, "NAME", TNS_SALE_REV_SCR_CT.TABLE_NAME, "\""+TNS_SALE_REV_SCR_CT.GROUP+"\"", InitColGroup); }
public static void InitCtrlBrandRev(PLMultiChoiceGrid input) { InitPlMultiChoiceGrid(input, DMTnsBrand.TABLE_MAP, "NAME", TNS_SALE_REV_SCR_CT.TABLE_NAME, TNS_SALE_REV_SCR_CT.BRAND, InitColBrand); }
public static void InitCtrlAgencyRev(PLMultiChoiceGrid input) { InitPlMultiChoiceGrid(input, DMTnsAgency.TABLE_MAP, "NAME", TNS_SALE_REV_SCR_CT.TABLE_NAME, TNS_SALE_REV_SCR_CT.AGENCY,InitColAgency ); }
public static void InitCtrlAdvertiserRev(PLMultiChoiceGrid input) { InitPlMultiChoiceGrid(input, DMTnsAdvertiser.TABLE_MAP, "NAME", TNS_SALE_REV_SCR_CT.TABLE_NAME, TNS_SALE_REV_SCR_CT.ADVERTISER, InitColAdvertiser); }