| | |
| | | private void InitializeComponent() |
| | | { |
| | | components = new Container(); |
| | | ComponentResourceManager resources = new ComponentResourceManager(typeof(XhsProjectMgrPage)); |
| | | DevExpress.XtraTreeList.StyleFormatConditions.TreeListFormatRule treeListFormatRule1 = new DevExpress.XtraTreeList.StyleFormatConditions.TreeListFormatRule(); |
| | | DevExpress.XtraEditors.FormatConditionRuleIconSet formatConditionRuleIconSet1 = new DevExpress.XtraEditors.FormatConditionRuleIconSet(); |
| | | DevExpress.XtraEditors.FormatConditionIconSet formatConditionIconSet1 = new DevExpress.XtraEditors.FormatConditionIconSet(); |
| | | DevExpress.XtraEditors.FormatConditionIconSetIcon formatConditionIconSetIcon1 = new DevExpress.XtraEditors.FormatConditionIconSetIcon(); |
| | | DevExpress.XtraEditors.FormatConditionIconSetIcon formatConditionIconSetIcon2 = new DevExpress.XtraEditors.FormatConditionIconSetIcon(); |
| | | DevExpress.XtraEditors.FormatConditionIconSetIcon formatConditionIconSetIcon3 = new DevExpress.XtraEditors.FormatConditionIconSetIcon(); |
| | | DevExpress.XtraEditors.FormatConditionIconSetIcon formatConditionIconSetIcon4 = new DevExpress.XtraEditors.FormatConditionIconSetIcon(); |
| | | DevExpress.XtraEditors.FormatConditionIconSetIcon formatConditionIconSetIcon5 = new DevExpress.XtraEditors.FormatConditionIconSetIcon(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | EditorButtonImageOptions editorButtonImageOptions1 = new EditorButtonImageOptions(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | ComponentResourceManager resources = new ComponentResourceManager(typeof(XhsProjectMgrPage)); |
| | | EditorButtonImageOptions editorButtonImageOptions2 = new EditorButtonImageOptions(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | ColModelState = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | repositoryItemImageComboBox1 = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox(); |
| | | svgImageCollection1 = new DevExpress.Utils.SvgImageCollection(components); |
| | |
| | | barBtnCollpseAll = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnSearch = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnRefresh = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnAddBimfaceFile = new DevExpress.XtraBars.BarButtonItem(); |
| | | ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); |
| | | ribPageGroupForBasic = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | ribPageGroupForOperation = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | |
| | | colDescription = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | ColViewBimface = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); |
| | | colCreateTime = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | xhsProjectMgrViewModelBindingSource = new BindingSource(components); |
| | | panelControl1 = new DevExpress.XtraEditors.PanelControl(); |
| | | panelControl1 = new PanelControl(); |
| | | svgImg32 = new DevExpress.Utils.SvgImageCollection(components); |
| | | ((ISupportInitialize)repositoryItemImageComboBox1).BeginInit(); |
| | | ((ISupportInitialize)svgImageCollection1).BeginInit(); |
| | |
| | | ColModelState.FieldName = "ModelState"; |
| | | ColModelState.Name = "ColModelState"; |
| | | ColModelState.Visible = true; |
| | | ColModelState.VisibleIndex = 7; |
| | | ColModelState.VisibleIndex = 8; |
| | | ColModelState.Width = 20; |
| | | // |
| | | // repositoryItemImageComboBox1 |
| | | // |
| | | repositoryItemImageComboBox1.AutoHeight = false; |
| | | repositoryItemImageComboBox1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); |
| | | serializableAppearanceObject1.Options.UseTextOptions = true; |
| | | serializableAppearanceObject1.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | serializableAppearanceObject2.Options.UseTextOptions = true; |
| | | serializableAppearanceObject2.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; |
| | | serializableAppearanceObject3.Options.UseTextOptions = true; |
| | | serializableAppearanceObject3.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; |
| | | serializableAppearanceObject4.Options.UseTextOptions = true; |
| | | serializableAppearanceObject4.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; |
| | | repositoryItemImageComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Ellipsis, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | repositoryItemImageComboBox1.HtmlImages = svgImageCollection1; |
| | | repositoryItemImageComboBox1.Name = "repositoryItemImageComboBox1"; |
| | | repositoryItemImageComboBox1.SmallImages = svgImageCollection1; |
| | | // |
| | | // svgImageCollection1 |
| | | // |
| | | svgImageCollection1.Add("bo_security_permission", "image://svgimages/business objects/bo_security_permission.svg"); |
| | | svgImageCollection1.Add("alignverticalleft", "image://svgimages/align/alignverticalleft.svg"); |
| | | svgImageCollection1.Add("up", "image://svgimages/actions/up.svg"); |
| | | svgImageCollection1.Add("productquickcomparisons", "image://svgimages/outlook inspired/productquickcomparisons.svg"); |
| | | svgImageCollection1.Add("finishmerge", "image://svgimages/snap/finishmerge.svg"); |
| | | svgImageCollection1.Add("arrangegroups", "image://svgimages/snap/arrangegroups.svg"); |
| | | svgImageCollection1.Add("bo_validation", "image://svgimages/business objects/bo_validation.svg"); |
| | | svgImageCollection1.Add("charttype_line3dstacked", "image://svgimages/chart/charttype_line3dstacked.svg"); |
| | | svgImageCollection1.Add("bo_security_permission_member", "image://svgimages/business objects/bo_security_permission_member.svg"); |
| | | svgImageCollection1.Add("relations", "image://svgimages/dashboards/relations.svg"); |
| | | svgImageCollection1.Add("bo_security_permission_type", "image://svgimages/business objects/bo_security_permission_type.svg"); |
| | | svgImageCollection1.Add("security_warningcircled2", "image://svgimages/icon builder/security_warningcircled2.svg"); |
| | | // |
| | | // ribbonControl1 |
| | | // |
| | | ribbonControl1.ExpandCollapseItem.Id = 0; |
| | | ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnAdd, barBtnEdit, barBtnDelete, barBtnInfo, barBtnViewHydro, barBtnViewBimface, barBtnPublish, barBtnDeprecated, barCkTreeLine, barBtnExpandAll, barBtnCollpseAll, barBtnSearch, barBtnRefresh }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnAdd, barBtnEdit, barBtnDelete, barBtnInfo, barBtnViewHydro, barBtnViewBimface, barBtnPublish, barBtnDeprecated, barCkTreeLine, barBtnExpandAll, barBtnCollpseAll, barBtnSearch, barBtnRefresh, BtnAddBimfaceFile }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 14; |
| | | ribbonControl1.MaxItemId = 15; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | | ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 }); |
| | | ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; |
| | |
| | | barBtnRefresh.Name = "barBtnRefresh"; |
| | | barBtnRefresh.ItemClick += barBtnRefresh_ItemClick; |
| | | // |
| | | // BtnAddBimfaceFile |
| | | // |
| | | BtnAddBimfaceFile.Caption = "导入文件"; |
| | | BtnAddBimfaceFile.Id = 14; |
| | | BtnAddBimfaceFile.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnAddBimfaceFile.ImageOptions.SvgImage"); |
| | | BtnAddBimfaceFile.Name = "BtnAddBimfaceFile"; |
| | | BtnAddBimfaceFile.ItemClick += BtnAddBimfaceFile_ItemClick; |
| | | // |
| | | // ribbonPage1 |
| | | // |
| | | ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribPageGroupForBasic, ribPageGroupForOperation, ribPageGroupForHydro, ribPageGroupBimface, ribPageGroupForMore }); |
| | |
| | | ribPageGroupForBasic.ItemLinks.Add(barBtnAdd); |
| | | ribPageGroupForBasic.ItemLinks.Add(barBtnEdit); |
| | | ribPageGroupForBasic.ItemLinks.Add(barBtnDelete); |
| | | ribPageGroupForBasic.ItemLinks.Add(BtnAddBimfaceFile); |
| | | ribPageGroupForBasic.ItemLinks.Add(barBtnInfo); |
| | | ribPageGroupForBasic.Name = "ribPageGroupForBasic"; |
| | | ribPageGroupForBasic.Text = "基础"; |
| | |
| | | // |
| | | treeList1.Appearance.HeaderPanel.Options.UseTextOptions = true; |
| | | treeList1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | treeList1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; |
| | | treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colNO, colName, colAddress, colCustomer, colFlags, colTagName, colDescription, ColModelState, ColViewBimface }); |
| | | treeList1.BorderStyle = BorderStyles.NoBorder; |
| | | treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colNO, colName, colAddress, colCustomer, colFlags, colTagName, colDescription, ColModelState, ColViewBimface, colCreateTime }); |
| | | treeList1.DataSource = xhsProjectMgrViewModelBindingSource; |
| | | treeList1.Dock = DockStyle.Fill; |
| | | treeListFormatRule1.Column = ColModelState; |
| | | treeListFormatRule1.Name = "Format0"; |
| | | formatConditionRuleIconSet1.AllowAnimation = DevExpress.Utils.DefaultBoolean.False; |
| | | formatConditionIconSet1.CategoryName = "Ratings"; |
| | | formatConditionIconSetIcon1.PredefinedName = "Rating5_1.png"; |
| | | formatConditionIconSetIcon1.Value = new decimal(new int[] { 80, 0, 0, 0 }); |
| | | formatConditionIconSetIcon1.ValueComparison = DevExpress.XtraEditors.FormatConditionComparisonType.GreaterOrEqual; |
| | | formatConditionIconSetIcon2.PredefinedName = "Rating5_2.png"; |
| | | formatConditionIconSetIcon2.Value = new decimal(new int[] { 60, 0, 0, 0 }); |
| | | formatConditionIconSetIcon2.ValueComparison = DevExpress.XtraEditors.FormatConditionComparisonType.GreaterOrEqual; |
| | | formatConditionIconSetIcon3.PredefinedName = "Rating5_3.png"; |
| | | formatConditionIconSetIcon3.Value = new decimal(new int[] { 40, 0, 0, 0 }); |
| | | formatConditionIconSetIcon3.ValueComparison = DevExpress.XtraEditors.FormatConditionComparisonType.GreaterOrEqual; |
| | | formatConditionIconSetIcon4.PredefinedName = "Rating5_4.png"; |
| | | formatConditionIconSetIcon4.Value = new decimal(new int[] { 20, 0, 0, 0 }); |
| | | formatConditionIconSetIcon4.ValueComparison = DevExpress.XtraEditors.FormatConditionComparisonType.GreaterOrEqual; |
| | | formatConditionIconSetIcon5.PredefinedName = "Rating5_5.png"; |
| | | formatConditionIconSetIcon5.ValueComparison = DevExpress.XtraEditors.FormatConditionComparisonType.GreaterOrEqual; |
| | | formatConditionIconSet1.Icons.Add(formatConditionIconSetIcon1); |
| | | formatConditionIconSet1.Icons.Add(formatConditionIconSetIcon2); |
| | | formatConditionIconSet1.Icons.Add(formatConditionIconSetIcon3); |
| | | formatConditionIconSet1.Icons.Add(formatConditionIconSetIcon4); |
| | | formatConditionIconSet1.Icons.Add(formatConditionIconSetIcon5); |
| | | formatConditionIconSet1.Name = "Ratings5"; |
| | | formatConditionIconSet1.ValueType = DevExpress.XtraEditors.FormatConditionValueType.Percent; |
| | | formatConditionRuleIconSet1.IconSet = formatConditionIconSet1; |
| | | treeListFormatRule1.Rule = formatConditionRuleIconSet1; |
| | | treeList1.FormatRules.Add(treeListFormatRule1); |
| | | treeList1.Location = new Point(0, 1); |
| | | treeList1.MenuManager = ribbonControl1; |
| | | treeList1.Name = "treeList1"; |
| | |
| | | colNO.Name = "colNO"; |
| | | colNO.Visible = true; |
| | | colNO.VisibleIndex = 0; |
| | | colNO.Width = 87; |
| | | // |
| | | // colName |
| | | // |
| | | colName.AppearanceCell.Options.UseTextOptions = true; |
| | | colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colName.FieldName = "Name"; |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 1; |
| | | colName.Width = 167; |
| | | // |
| | | // colAddress |
| | | // |
| | | colAddress.AppearanceCell.Options.UseTextOptions = true; |
| | | colAddress.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colAddress.FieldName = "Address"; |
| | | colAddress.Name = "colAddress"; |
| | | colAddress.Visible = true; |
| | | colAddress.VisibleIndex = 2; |
| | | colAddress.VisibleIndex = 7; |
| | | colAddress.Width = 257; |
| | | // |
| | | // colCustomer |
| | | // |
| | | colCustomer.AppearanceCell.Options.UseTextOptions = true; |
| | | colCustomer.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colCustomer.FieldName = "Customer"; |
| | | colCustomer.Name = "colCustomer"; |
| | | colCustomer.Visible = true; |
| | | colCustomer.VisibleIndex = 5; |
| | | colCustomer.Width = 127; |
| | | // |
| | | // colFlags |
| | | // |
| | | colFlags.AppearanceCell.Options.UseTextOptions = true; |
| | | colFlags.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colFlags.FieldName = "Flags"; |
| | | colFlags.Name = "colFlags"; |
| | | colFlags.Visible = true; |
| | | colFlags.VisibleIndex = 3; |
| | | colFlags.Width = 57; |
| | | // |
| | | // colTagName |
| | | // |
| | | colTagName.AppearanceCell.Options.UseTextOptions = true; |
| | | colTagName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colTagName.FieldName = "TagName"; |
| | | colTagName.Name = "colTagName"; |
| | | colTagName.Visible = true; |
| | | colTagName.VisibleIndex = 4; |
| | | colTagName.Width = 58; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.AppearanceCell.Options.UseTextOptions = true; |
| | | colDescription.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 6; |
| | | colDescription.Width = 57; |
| | | // |
| | | // ColViewBimface |
| | | // |
| | | ColViewBimface.Caption = "查看方案管理"; |
| | | ColViewBimface.AppearanceCell.Options.UseTextOptions = true; |
| | | ColViewBimface.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | ColViewBimface.Caption = "查看方案"; |
| | | ColViewBimface.ColumnEdit = repositoryItemButtonEdit1; |
| | | ColViewBimface.Name = "ColViewBimface"; |
| | | ColViewBimface.OptionsColumn.AllowEdit = false; |
| | | ColViewBimface.Visible = true; |
| | | ColViewBimface.VisibleIndex = 8; |
| | | ColViewBimface.VisibleIndex = 9; |
| | | ColViewBimface.Width = 20; |
| | | // |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | repositoryItemButtonEdit1.AutoHeight = false; |
| | | editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); |
| | | editorButtonImageOptions1.SvgImageSize = new Size(25, 25); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | editorButtonImageOptions2.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions2.SvgImage"); |
| | | editorButtonImageOptions2.SvgImageSize = new Size(25, 25); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
| | | repositoryItemButtonEdit1.TextEditStyle = TextEditStyles.HideTextEditor; |
| | | // |
| | | // colCreateTime |
| | | // |
| | | colCreateTime.AppearanceCell.Options.UseTextOptions = true; |
| | | colCreateTime.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colCreateTime.Caption = "创建时间"; |
| | | colCreateTime.FieldName = "CreateTime"; |
| | | colCreateTime.Name = "colCreateTime"; |
| | | colCreateTime.Visible = true; |
| | | colCreateTime.VisibleIndex = 2; |
| | | colCreateTime.Width = 125; |
| | | // |
| | | // xhsProjectMgrViewModelBindingSource |
| | | // |
| | |
| | | // |
| | | // panelControl1 |
| | | // |
| | | panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; |
| | | panelControl1.BorderStyle = BorderStyles.NoBorder; |
| | | panelControl1.Controls.Add(treeList1); |
| | | panelControl1.Dock = DockStyle.Fill; |
| | | panelControl1.Location = new Point(0, 101); |
| | |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox repositoryItemImageComboBox1; |
| | | private DevExpress.Utils.SvgImageCollection svgImageCollection1; |
| | | private DevExpress.XtraBars.BarButtonItem BtnAddBimfaceFile; |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn colCreateTime; |
| | | } |
| | | } |