| | |
| | | barBtnDetail = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnUpdateTagName = new DevExpress.XtraBars.BarButtonItem(); |
| | | barCekSearch = new DevExpress.XtraBars.BarCheckItem(); |
| | | BtnUseStatus = new DevExpress.XtraBars.BarButtonItem(); |
| | | ribbonPage = new DevExpress.XtraBars.Ribbon.RibbonPage(); |
| | | ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | |
| | | colAddress = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colTagName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colUseStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | currentViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)ribbonControl1).BeginInit(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)manufacurerViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)currentViewModelBindingSource).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // ribbonControl1 |
| | | // |
| | | ribbonControl1.DrawGroupsBorderMode = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.EmptyAreaImageOptions.ImagePadding = new Padding(34, 39, 34, 39); |
| | | ribbonControl1.ExpandCollapseItem.Id = 0; |
| | | ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnAdd, barBtnEdit, barBtnRefresh, barBtnDelete, barBtnUpdateSortCode, barBtnDetail, barBtnUpdateTagName, barCekSearch }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnAdd, barBtnEdit, barBtnRefresh, barBtnDelete, barBtnUpdateSortCode, barBtnDetail, barBtnUpdateTagName, barCekSearch, BtnUseStatus }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 28; |
| | | ribbonControl1.Margin = new Padding(3, 4, 3, 4); |
| | | ribbonControl1.MaxItemId = 29; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | | ribbonControl1.OptionsMenuMinWidth = 377; |
| | | ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage }); |
| | | ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; |
| | | ribbonControl1.Size = new Size(818, 77); |
| | | ribbonControl1.Size = new Size(935, 128); |
| | | ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; |
| | | // |
| | | // barBtnAdd |
| | |
| | | barCekSearch.Name = "barCekSearch"; |
| | | barCekSearch.CheckedChanged += barCekSearch_CheckedChanged; |
| | | // |
| | | // BtnUseStatus |
| | | // |
| | | BtnUseStatus.Caption = "使用状态"; |
| | | BtnUseStatus.Id = 28; |
| | | BtnUseStatus.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnUseState.ImageOptions.SvgImage"); |
| | | BtnUseStatus.Name = "BtnUseStatus"; |
| | | BtnUseStatus.ItemClick += BtnUseStatus_ItemClick; |
| | | // |
| | | // ribbonPage |
| | | // |
| | | ribbonPage.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1 }); |
| | |
| | | ribbonPageGroup1.ItemLinks.Add(barBtnUpdateSortCode); |
| | | ribbonPageGroup1.ItemLinks.Add(barCekSearch); |
| | | ribbonPageGroup1.ItemLinks.Add(barBtnRefresh); |
| | | ribbonPageGroup1.ItemLinks.Add(BtnUseStatus); |
| | | ribbonPageGroup1.Name = "ribbonPageGroup1"; |
| | | ribbonPageGroup1.Text = "基础"; |
| | | // |
| | |
| | | // |
| | | gridControl1.DataSource = manufacurerViewModelBindingSource; |
| | | gridControl1.Dock = DockStyle.Fill; |
| | | gridControl1.EmbeddedNavigator.Margin = new Padding(2); |
| | | gridControl1.Location = new Point(0, 77); |
| | | gridControl1.EmbeddedNavigator.Margin = new Padding(2, 3, 2, 3); |
| | | gridControl1.Location = new Point(0, 128); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.Margin = new Padding(2); |
| | | gridControl1.Margin = new Padding(2, 3, 2, 3); |
| | | gridControl1.MenuManager = ribbonControl1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.Size = new Size(818, 604); |
| | | gridControl1.Size = new Size(935, 748); |
| | | gridControl1.TabIndex = 22; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colContacter, colTelephone, colAddress, colTagName, colUseStatus, colSortCode, colDescription }); |
| | | gridView1.DetailHeight = 223; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colContacter, colTelephone, colAddress, colTagName, colUseStatus, colDescription }); |
| | | gridView1.DetailHeight = 287; |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsEditForm.PopupEditFormWidth = 560; |
| | | gridView1.OptionsEditForm.PopupEditFormWidth = 640; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // colName |
| | | // |
| | | colName.FieldName = "Name"; |
| | | colName.MinWidth = 23; |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 0; |
| | | colName.Width = 86; |
| | | // |
| | | // colContacter |
| | | // |
| | | colContacter.FieldName = "Contacter"; |
| | | colContacter.MinWidth = 23; |
| | | colContacter.Name = "colContacter"; |
| | | colContacter.Visible = true; |
| | | colContacter.VisibleIndex = 1; |
| | | colContacter.Width = 86; |
| | | // |
| | | // colTelephone |
| | | // |
| | | colTelephone.FieldName = "Telephone"; |
| | | colTelephone.MinWidth = 23; |
| | | colTelephone.Name = "colTelephone"; |
| | | colTelephone.Visible = true; |
| | | colTelephone.VisibleIndex = 2; |
| | | colTelephone.Width = 86; |
| | | // |
| | | // colAddress |
| | | // |
| | | colAddress.FieldName = "Address"; |
| | | colAddress.MinWidth = 23; |
| | | colAddress.Name = "colAddress"; |
| | | colAddress.Visible = true; |
| | | colAddress.VisibleIndex = 3; |
| | | colAddress.Width = 86; |
| | | // |
| | | // colTagName |
| | | // |
| | | colTagName.FieldName = "TagName"; |
| | | colTagName.MinWidth = 23; |
| | | colTagName.Name = "colTagName"; |
| | | colTagName.Visible = true; |
| | | colTagName.VisibleIndex = 4; |
| | | colTagName.Width = 86; |
| | | // |
| | | // colUseStatus |
| | | // |
| | | colUseStatus.FieldName = "UseStatus"; |
| | | colUseStatus.MinWidth = 23; |
| | | colUseStatus.Name = "colUseStatus"; |
| | | colUseStatus.Visible = true; |
| | | colUseStatus.VisibleIndex = 5; |
| | | // |
| | | // colSortCode |
| | | // |
| | | colSortCode.FieldName = "SortCode"; |
| | | colSortCode.Name = "colSortCode"; |
| | | colSortCode.Visible = true; |
| | | colSortCode.VisibleIndex = 6; |
| | | colUseStatus.Width = 86; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 23; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | colDescription.VisibleIndex = 6; |
| | | colDescription.Width = 86; |
| | | // |
| | | // AssetsManufacturerMainPage |
| | | // |
| | | Appearance.BackColor = SystemColors.Control; |
| | | Appearance.Options.UseBackColor = true; |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | | AutoScaleDimensions = new SizeF(8F, 18F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | Controls.Add(gridControl1); |
| | | Controls.Add(ribbonControl1); |
| | | Margin = new Padding(3, 5, 3, 5); |
| | | Name = "AssetsManufacturerMainPage"; |
| | | Size = new Size(818, 681); |
| | | Size = new Size(935, 876); |
| | | ((ISupportInitialize)ribbonControl1).EndInit(); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)manufacurerViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)currentViewModelBindingSource).EndInit(); |
| | | ResumeLayout(false); |
| | | PerformLayout(); |
| | | } |
| | |
| | | private DevExpress.XtraBars.BarButtonItem barBtnUpdateTagName; |
| | | private DevExpress.XtraBars.BarCheckItem barCekSearch; |
| | | private DevExpress.XtraGrid.GridControl gridControl1; |
| | | private BindingSource currentViewModelBindingSource; |
| | | private GridView gridView1; |
| | | private BindingSource manufacurerViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colName; |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colAddress; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colTagName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colUseStatus; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colSortCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private DevExpress.XtraBars.BarButtonItem BtnUseStatus; |
| | | } |
| | | } |