private DevExpress.DataAccess.Excel.ExcelDataSource GenerateExcelDataSource() { DevExpress.DataAccess.Excel.ExcelDataSource excelDS = new DevExpress.DataAccess.Excel.ExcelDataSource(); excelDS.FileName = Server.MapPath("App_Data/Categories.xlsx"); excelDS.Name = "CustomExcelDataSource"; DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings() { CellRange = null, WorksheetName = "Sheet" }; DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1) { SkipEmptyRows = true, SkipHiddenColumns = true, SkipHiddenRows = true, UseFirstRowAsHeader = true }; excelDS.SourceOptions = excelSourceOptions1; DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo() { Name = "CategoryID", Type = typeof(double) }; DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo() { Name = "CategoryName", Type = typeof(string) }; DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo() { Name = "Description", Type = typeof(string) }; excelDS.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3 }); excelDS.RebuildResultSchema(); return(excelDS); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.gridControl = new DevExpress.XtraGrid.GridControl(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.gridView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.col来源 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col订单号 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col订单序号 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col品牌名 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col商品条码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col商品款号 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col品类 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col商品名称 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col颜色 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col尺码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col数量 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col收货人 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col联系电话 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col收货地址 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col快递公司 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col运单号 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colSKU编码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col条形码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colPic = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemPictureEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit(); this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.skinRibbonGalleryBarItem = new DevExpress.XtraBars.SkinRibbonGalleryBarItem(); this.skinDropDownButtonItem = new DevExpress.XtraBars.SkinDropDownButtonItem(); this.skinPaletteRibbonGalleryBarItem = new DevExpress.XtraBars.SkinPaletteRibbonGalleryBarItem(); this.btn_loadExcel = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem3 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem4 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem5 = new DevExpress.XtraBars.BarButtonItem(); this.picPath = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit11 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.barButtonItem6 = new DevExpress.XtraBars.BarButtonItem(); this.barEditItem2 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemMemoEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit(); this.chk_ExportSelectOnly = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemCheckEdit2 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit(); this.ribbonPage = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup3 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup4 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.repositoryItemTextEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemTextEdit2 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemTextEdit3 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemTextEdit4 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemTextEdit5 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemTextEdit6 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemTextEdit7 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemTextEdit8 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemTextEdit9 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemRichTextEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemRichTextEdit(); this.repositoryItemTextEdit10 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit(); this.repositoryItemToggleSwitch1 = new DevExpress.XtraEditors.Repository.RepositoryItemToggleSwitch(); this.repositoryItemCheckedComboBoxEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckedComboBoxEdit(); this.barEditItem4 = new DevExpress.XtraBars.BarEditItem(); this.barEditItem5 = new DevExpress.XtraBars.BarEditItem(); this.behaviorManager1 = new DevExpress.Utils.Behaviors.BehaviorManager(this.components); ((System.ComponentModel.ISupportInitialize)(this.gridControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPictureEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit11)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemRichTextEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit10)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemToggleSwitch1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckedComboBoxEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.behaviorManager1)).BeginInit(); this.SuspendLayout(); // // gridControl // this.gridControl.DataSource = this.excelDataSource1; this.gridControl.Dock = System.Windows.Forms.DockStyle.Fill; this.gridControl.Location = new System.Drawing.Point(0, 161); this.gridControl.MainView = this.gridView; this.gridControl.Name = "gridControl"; this.gridControl.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemPictureEdit1 }); this.gridControl.Size = new System.Drawing.Size(1366, 607); this.gridControl.TabIndex = 0; this.gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView }); // // excelDataSource1 // this.excelDataSource1.Name = "excelDataSource1"; excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet1"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // gridView // this.gridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.col来源, this.col订单号, this.col订单序号, this.col品牌名, this.col商品条码, this.col商品款号, this.col品类, this.col商品名称, this.col颜色, this.col尺码, this.col数量, this.col收货人, this.col联系电话, this.col收货地址, this.col快递公司, this.col运单号, this.colSKU编码, this.col条形码, this.colPic }); this.gridView.DetailHeight = 377; this.gridView.GridControl = this.gridControl; this.gridView.GroupSummary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] { new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Count, "数量", null, "总数量 = {0}") }); this.gridView.Name = "gridView"; this.gridView.OptionsPrint.PrintFilterInfo = true; this.gridView.OptionsSelection.MultiSelect = true; this.gridView.RowHeight = 70; this.gridView.CustomDrawGroupRow += new DevExpress.XtraGrid.Views.Base.RowObjectCustomDrawEventHandler(this.gridView_CustomDrawGroupRow); this.gridView.CustomUnboundColumnData += new DevExpress.XtraGrid.Views.Base.CustomColumnDataEventHandler(this.gridView_CustomUnboundColumnData); // // col来源 // this.col来源.FieldName = "来源"; this.col来源.Name = "col来源"; this.col来源.UnboundType = DevExpress.Data.UnboundColumnType.Object; this.col来源.Visible = true; this.col来源.VisibleIndex = 10; this.col来源.Width = 72; // // col订单号 // this.col订单号.FieldName = "订单号"; this.col订单号.Name = "col订单号"; this.col订单号.Visible = true; this.col订单号.VisibleIndex = 11; this.col订单号.Width = 72; // // col订单序号 // this.col订单序号.FieldName = "订单序号"; this.col订单序号.Name = "col订单序号"; this.col订单序号.Visible = true; this.col订单序号.VisibleIndex = 12; this.col订单序号.Width = 72; // // col品牌名 // this.col品牌名.FieldName = "品牌名"; this.col品牌名.Name = "col品牌名"; this.col品牌名.Visible = true; this.col品牌名.VisibleIndex = 4; this.col品牌名.Width = 72; // // col商品条码 // this.col商品条码.FieldName = "商品条码"; this.col商品条码.Name = "col商品条码"; this.col商品条码.Visible = true; this.col商品条码.VisibleIndex = 5; this.col商品条码.Width = 72; // // col商品款号 // this.col商品款号.FieldName = "商品款号"; this.col商品款号.Name = "col商品款号"; this.col商品款号.Visible = true; this.col商品款号.VisibleIndex = 2; this.col商品款号.Width = 71; // // col品类 // this.col品类.FieldName = "品类"; this.col品类.Name = "col品类"; this.col品类.Visible = true; this.col品类.VisibleIndex = 6; this.col品类.Width = 72; // // col商品名称 // this.col商品名称.FieldName = "商品名称"; this.col商品名称.Name = "col商品名称"; this.col商品名称.Visible = true; this.col商品名称.VisibleIndex = 13; this.col商品名称.Width = 70; // // col颜色 // this.col颜色.FieldName = "颜色"; this.col颜色.Name = "col颜色"; this.col颜色.Visible = true; this.col颜色.VisibleIndex = 7; this.col颜色.Width = 52; // // col尺码 // this.col尺码.FieldName = "尺码"; this.col尺码.Name = "col尺码"; this.col尺码.Visible = true; this.col尺码.VisibleIndex = 8; this.col尺码.Width = 52; // // col数量 // this.col数量.FieldName = "数量"; this.col数量.Name = "col数量"; this.col数量.Visible = true; this.col数量.VisibleIndex = 3; this.col数量.Width = 52; // // col收货人 // this.col收货人.FieldName = "收货人"; this.col收货人.Name = "col收货人"; this.col收货人.Visible = true; this.col收货人.VisibleIndex = 14; this.col收货人.Width = 92; // // col联系电话 // this.col联系电话.FieldName = "联系电话"; this.col联系电话.Name = "col联系电话"; this.col联系电话.Visible = true; this.col联系电话.VisibleIndex = 15; this.col联系电话.Width = 92; // // col收货地址 // this.col收货地址.FieldName = "收货地址"; this.col收货地址.Name = "col收货地址"; this.col收货地址.Visible = true; this.col收货地址.VisibleIndex = 16; this.col收货地址.Width = 92; // // col快递公司 // this.col快递公司.FieldName = "快递公司"; this.col快递公司.Name = "col快递公司"; this.col快递公司.Visible = true; this.col快递公司.VisibleIndex = 17; this.col快递公司.Width = 92; // // col运单号 // this.col运单号.FieldName = "运单号"; this.col运单号.Name = "col运单号"; this.col运单号.Visible = true; this.col运单号.VisibleIndex = 9; this.col运单号.Width = 58; // // colSKU编码 // this.colSKU编码.FieldName = "SKU编码"; this.colSKU编码.Name = "colSKU编码"; this.colSKU编码.Visible = true; this.colSKU编码.VisibleIndex = 1; this.colSKU编码.Width = 67; // // col条形码 // this.col条形码.FieldName = "条形码"; this.col条形码.Name = "col条形码"; this.col条形码.Visible = true; this.col条形码.VisibleIndex = 18; this.col条形码.Width = 124; // // colPic // this.colPic.Caption = "图片"; this.colPic.ColumnEdit = this.repositoryItemPictureEdit1; this.colPic.FieldName = "photo"; this.colPic.GroupFormat.FormatString = "{0}"; this.colPic.GroupFormat.FormatType = DevExpress.Utils.FormatType.Custom; this.colPic.Name = "colPic"; this.colPic.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.True; this.colPic.UnboundType = DevExpress.Data.UnboundColumnType.String; this.colPic.Visible = true; this.colPic.VisibleIndex = 0; this.colPic.Width = 180; // // repositoryItemPictureEdit1 // this.repositoryItemPictureEdit1.ExportMode = DevExpress.XtraEditors.Repository.ExportMode.Value; this.repositoryItemPictureEdit1.Name = "repositoryItemPictureEdit1"; this.repositoryItemPictureEdit1.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom; // // ribbonControl // this.ribbonControl.ExpandCollapseItem.Id = 0; this.ribbonControl.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.ribbonControl.ExpandCollapseItem, this.ribbonControl.SearchEditItem, this.skinRibbonGalleryBarItem, this.skinDropDownButtonItem, this.skinPaletteRibbonGalleryBarItem, this.btn_loadExcel, this.barButtonItem1, this.barButtonItem2, this.barButtonItem3, this.barButtonItem4, this.barButtonItem5, this.picPath, this.barButtonItem6, this.barEditItem2, this.chk_ExportSelectOnly }); this.ribbonControl.Location = new System.Drawing.Point(0, 0); this.ribbonControl.MaxItemId = 29; this.ribbonControl.Name = "ribbonControl"; this.ribbonControl.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage, this.ribbonPage1 }); this.ribbonControl.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemTextEdit1, this.repositoryItemTextEdit2, this.repositoryItemTextEdit3, this.repositoryItemTextEdit4, this.repositoryItemTextEdit5, this.repositoryItemTextEdit6, this.repositoryItemTextEdit7, this.repositoryItemTextEdit8, this.repositoryItemTextEdit9, this.repositoryItemRichTextEdit1, this.repositoryItemTextEdit10, this.repositoryItemTextEdit11, this.repositoryItemMemoEdit1, this.repositoryItemCheckEdit1, this.repositoryItemToggleSwitch1, this.repositoryItemCheckedComboBoxEdit1, this.repositoryItemCheckEdit2 }); this.ribbonControl.Size = new System.Drawing.Size(1366, 161); // // skinRibbonGalleryBarItem // this.skinRibbonGalleryBarItem.Caption = "skinRibbonGalleryBarItem"; this.skinRibbonGalleryBarItem.Id = 1; this.skinRibbonGalleryBarItem.Name = "skinRibbonGalleryBarItem"; // // skinDropDownButtonItem // this.skinDropDownButtonItem.Id = 2; this.skinDropDownButtonItem.Name = "skinDropDownButtonItem"; // // skinPaletteRibbonGalleryBarItem // this.skinPaletteRibbonGalleryBarItem.Caption = "skinPaletteRibbonGalleryBarItem"; this.skinPaletteRibbonGalleryBarItem.Id = 3; this.skinPaletteRibbonGalleryBarItem.Name = "skinPaletteRibbonGalleryBarItem"; // // btn_loadExcel // this.btn_loadExcel.Caption = "加载订单数据"; this.btn_loadExcel.Id = 2; this.btn_loadExcel.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btn_loadExcel.ImageOptions.SvgImage"))); this.btn_loadExcel.Name = "btn_loadExcel"; this.btn_loadExcel.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem1_ItemClick); // // barButtonItem1 // this.barButtonItem1.Caption = "当前查询结果"; this.barButtonItem1.Id = 3; this.barButtonItem1.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barButtonItem1.ImageOptions.SvgImage"))); this.barButtonItem1.Name = "barButtonItem1"; this.barButtonItem1.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem1_ItemClick_1); // // barButtonItem2 // this.barButtonItem2.Caption = "带图模式"; this.barButtonItem2.Id = 4; this.barButtonItem2.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barButtonItem2.ImageOptions.SvgImage"))); this.barButtonItem2.Name = "barButtonItem2"; this.barButtonItem2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem2_ItemClick); // // barButtonItem3 // this.barButtonItem3.Caption = "清空数据"; this.barButtonItem3.Id = 5; this.barButtonItem3.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barButtonItem3.ImageOptions.SvgImage"))); this.barButtonItem3.Name = "barButtonItem3"; this.barButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem3_ItemClick); // // barButtonItem4 // this.barButtonItem4.Caption = "搜索"; this.barButtonItem4.Id = 7; this.barButtonItem4.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("barButtonItem4.ImageOptions.Image"))); this.barButtonItem4.ImageOptions.LargeImage = ((System.Drawing.Image)(resources.GetObject("barButtonItem4.ImageOptions.LargeImage"))); this.barButtonItem4.Name = "barButtonItem4"; this.barButtonItem4.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem4_ItemClick); // // barButtonItem5 // this.barButtonItem5.Caption = "清空条件"; this.barButtonItem5.Id = 13; this.barButtonItem5.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("barButtonItem5.ImageOptions.Image"))); this.barButtonItem5.ImageOptions.LargeImage = ((System.Drawing.Image)(resources.GetObject("barButtonItem5.ImageOptions.LargeImage"))); this.barButtonItem5.Name = "barButtonItem5"; this.barButtonItem5.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem5_ItemClick); // // picPath // this.picPath.Caption = "图片存放目录"; this.picPath.Edit = this.repositoryItemTextEdit11; this.picPath.EditWidth = 300; this.picPath.Id = 19; this.picPath.Name = "picPath"; // // repositoryItemTextEdit11 // this.repositoryItemTextEdit11.AutoHeight = false; this.repositoryItemTextEdit11.Name = "repositoryItemTextEdit11"; this.repositoryItemTextEdit11.ReadOnly = true; // // barButtonItem6 // this.barButtonItem6.Caption = "选择图片目录"; this.barButtonItem6.Id = 20; this.barButtonItem6.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("barButtonItem6.ImageOptions.Image"))); this.barButtonItem6.ImageOptions.LargeImage = ((System.Drawing.Image)(resources.GetObject("barButtonItem6.ImageOptions.LargeImage"))); this.barButtonItem6.Name = "barButtonItem6"; this.barButtonItem6.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem6_ItemClick); // // barEditItem2 // this.barEditItem2.Caption = "快递号:"; this.barEditItem2.Edit = this.repositoryItemMemoEdit1; this.barEditItem2.EditWidth = 250; this.barEditItem2.Id = 21; this.barEditItem2.Name = "barEditItem2"; // // repositoryItemMemoEdit1 // this.repositoryItemMemoEdit1.Name = "repositoryItemMemoEdit1"; // // chk_ExportSelectOnly // this.chk_ExportSelectOnly.Caption = "仅导出选中列"; this.chk_ExportSelectOnly.Edit = this.repositoryItemCheckEdit2; this.chk_ExportSelectOnly.Id = 28; this.chk_ExportSelectOnly.Name = "chk_ExportSelectOnly"; this.chk_ExportSelectOnly.EditValueChanged += new System.EventHandler(this.chk_ExportSelectOnly_changed); // // repositoryItemCheckEdit2 // this.repositoryItemCheckEdit2.AutoHeight = false; this.repositoryItemCheckEdit2.Name = "repositoryItemCheckEdit2"; // // ribbonPage // this.ribbonPage.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup1, this.ribbonPageGroup3, this.ribbonPageGroup2 }); this.ribbonPage.Name = "ribbonPage"; this.ribbonPage.Text = "工具栏"; // // ribbonPageGroup1 // this.ribbonPageGroup1.ItemLinks.Add(this.btn_loadExcel); this.ribbonPageGroup1.ItemLinks.Add(this.barButtonItem3); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; this.ribbonPageGroup1.State = DevExpress.XtraBars.Ribbon.RibbonPageGroupState.Expanded; this.ribbonPageGroup1.Text = "基础操作"; // // ribbonPageGroup3 // this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem2); this.ribbonPageGroup3.ItemLinks.Add(this.barButtonItem4); this.ribbonPageGroup3.ItemLinks.Add(this.barButtonItem5); this.ribbonPageGroup3.Name = "ribbonPageGroup3"; this.ribbonPageGroup3.Text = "查询条件"; // // ribbonPageGroup2 // this.ribbonPageGroup2.ItemLinks.Add(this.chk_ExportSelectOnly); this.ribbonPageGroup2.ItemLinks.Add(this.barButtonItem1); this.ribbonPageGroup2.ItemLinks.Add(this.barButtonItem2); this.ribbonPageGroup2.Name = "ribbonPageGroup2"; this.ribbonPageGroup2.Text = "导出"; // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup4 }); this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "其它"; // // ribbonPageGroup4 // this.ribbonPageGroup4.ItemLinks.Add(this.picPath); this.ribbonPageGroup4.ItemLinks.Add(this.barButtonItem6); this.ribbonPageGroup4.Name = "ribbonPageGroup4"; this.ribbonPageGroup4.Text = "图片源配置"; // // repositoryItemTextEdit1 // this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; // // repositoryItemTextEdit2 // this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; // // repositoryItemTextEdit3 // this.repositoryItemTextEdit3.AutoHeight = false; this.repositoryItemTextEdit3.Name = "repositoryItemTextEdit3"; // // repositoryItemTextEdit4 // this.repositoryItemTextEdit4.AutoHeight = false; this.repositoryItemTextEdit4.Name = "repositoryItemTextEdit4"; // // repositoryItemTextEdit5 // this.repositoryItemTextEdit5.AutoHeight = false; this.repositoryItemTextEdit5.Name = "repositoryItemTextEdit5"; // // repositoryItemTextEdit6 // this.repositoryItemTextEdit6.AutoHeight = false; this.repositoryItemTextEdit6.Name = "repositoryItemTextEdit6"; // // repositoryItemTextEdit7 // this.repositoryItemTextEdit7.AutoHeight = false; this.repositoryItemTextEdit7.Name = "repositoryItemTextEdit7"; // // repositoryItemTextEdit8 // this.repositoryItemTextEdit8.AutoHeight = false; this.repositoryItemTextEdit8.Name = "repositoryItemTextEdit8"; // // repositoryItemTextEdit9 // this.repositoryItemTextEdit9.AutoHeight = false; this.repositoryItemTextEdit9.Name = "repositoryItemTextEdit9"; // // repositoryItemRichTextEdit1 // this.repositoryItemRichTextEdit1.Name = "repositoryItemRichTextEdit1"; this.repositoryItemRichTextEdit1.ShowCaretInReadOnly = false; // // repositoryItemTextEdit10 // this.repositoryItemTextEdit10.Name = "repositoryItemTextEdit10"; // // repositoryItemCheckEdit1 // this.repositoryItemCheckEdit1.AutoHeight = false; this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1"; // // repositoryItemToggleSwitch1 // this.repositoryItemToggleSwitch1.AutoHeight = false; this.repositoryItemToggleSwitch1.Name = "repositoryItemToggleSwitch1"; this.repositoryItemToggleSwitch1.OffText = "Off"; this.repositoryItemToggleSwitch1.OnText = "On"; // // repositoryItemCheckedComboBoxEdit1 // this.repositoryItemCheckedComboBoxEdit1.AutoHeight = false; this.repositoryItemCheckedComboBoxEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.repositoryItemCheckedComboBoxEdit1.Name = "repositoryItemCheckedComboBoxEdit1"; // // barEditItem4 // this.barEditItem4.Caption = "barEditItem3"; this.barEditItem4.Edit = this.repositoryItemTextEdit3; this.barEditItem4.Id = 9; this.barEditItem4.Name = "barEditItem4"; // // barEditItem5 // this.barEditItem5.Caption = "barEditItem3"; this.barEditItem5.Edit = this.repositoryItemTextEdit3; this.barEditItem5.Id = 9; this.barEditItem5.Name = "barEditItem5"; // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1366, 768); this.Controls.Add(this.gridControl); this.Controls.Add(this.ribbonControl); this.IconOptions.LargeImage = ((System.Drawing.Image)(resources.GetObject("MainForm.IconOptions.LargeImage"))); this.Name = "MainForm"; this.Ribbon = this.ribbonControl; this.Text = "订单助手"; ((System.ComponentModel.ISupportInitialize)(this.gridControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPictureEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit11)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit9)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemRichTextEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit10)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemToggleSwitch1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckedComboBoxEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.behaviorManager1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Dashboard1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); DevExpress.DashboardCommon.Dimension dimension1 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.GridDimensionColumn gridDimensionColumn1 = new DevExpress.DashboardCommon.GridDimensionColumn(); DevExpress.DashboardCommon.Measure measure1 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.GridMeasureColumn gridMeasureColumn1 = new DevExpress.DashboardCommon.GridMeasureColumn(); DevExpress.DashboardCommon.Measure measure2 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.GridMeasureColumn gridMeasureColumn2 = new DevExpress.DashboardCommon.GridMeasureColumn(); DevExpress.DashboardCommon.Measure measure3 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.GridMeasureColumn gridMeasureColumn3 = new DevExpress.DashboardCommon.GridMeasureColumn(); DevExpress.DashboardCommon.Measure measure4 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.GridMeasureColumn gridMeasureColumn4 = new DevExpress.DashboardCommon.GridMeasureColumn(); DevExpress.DashboardCommon.DashboardLayoutGroup dashboardLayoutGroup1 = new DevExpress.DashboardCommon.DashboardLayoutGroup(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem1 = new DevExpress.DashboardCommon.DashboardLayoutItem(); this.dashboardExcelDataSource1 = new DevExpress.DashboardCommon.DashboardExcelDataSource(); this.gridDashboardItem1 = new DevExpress.DashboardCommon.GridDashboardItem(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // dashboardExcelDataSource1 // this.dashboardExcelDataSource1.ComponentName = "dashboardExcelDataSource1"; this.dashboardExcelDataSource1.FileName = "|DataDirectory|\\Data\\Sales.xlsx"; this.dashboardExcelDataSource1.Name = "Excel Data Source 1"; this.dashboardExcelDataSource1.ResultSchemaSerializable = resources.GetString("dashboardExcelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "Category"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Product"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "State"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "UnitsSoldYTD (Sum)"; fieldInfo4.Type = typeof(double); fieldInfo5.Name = "UnitsSoldYTDTarget (Sum)"; fieldInfo5.Type = typeof(double); fieldInfo6.Name = "RevenueQTD (Sum)"; fieldInfo6.Type = typeof(double); fieldInfo7.Name = "RevenueQTDTarget (Sum)"; fieldInfo7.Type = typeof(double); fieldInfo8.Name = "RevenueYTD (Sum)"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "RevenueYTDTarget (Sum)"; fieldInfo9.Type = typeof(double); this.dashboardExcelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet1"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.dashboardExcelDataSource1.SourceOptions = excelSourceOptions1; // // gridDashboardItem1 // dimension1.DataMember = "Product"; gridDimensionColumn1.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridDimensionColumn1.AddDataItem("Dimension", dimension1); measure1.DataMember = "RevenueQTD (Sum)"; gridMeasureColumn1.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridMeasureColumn1.AddDataItem("Measure", measure1); measure2.DataMember = "RevenueQTDTarget (Sum)"; gridMeasureColumn2.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridMeasureColumn2.AddDataItem("Measure", measure2); measure3.DataMember = "RevenueYTD (Sum)"; gridMeasureColumn3.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridMeasureColumn3.AddDataItem("Measure", measure3); measure4.DataMember = "RevenueYTDTarget (Sum)"; gridMeasureColumn4.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridMeasureColumn4.AddDataItem("Measure", measure4); this.gridDashboardItem1.Columns.AddRange(new DevExpress.DashboardCommon.GridColumnBase[] { gridDimensionColumn1, gridMeasureColumn1, gridMeasureColumn2, gridMeasureColumn3, gridMeasureColumn4 }); this.gridDashboardItem1.ComponentName = "gridDashboardItem1"; this.gridDashboardItem1.DataItemRepository.Clear(); this.gridDashboardItem1.DataItemRepository.Add(dimension1, "DataItem0"); this.gridDashboardItem1.DataItemRepository.Add(measure1, "DataItem1"); this.gridDashboardItem1.DataItemRepository.Add(measure2, "DataItem2"); this.gridDashboardItem1.DataItemRepository.Add(measure3, "DataItem3"); this.gridDashboardItem1.DataItemRepository.Add(measure4, "DataItem4"); this.gridDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.gridDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.gridDashboardItem1.Name = "Grid 1"; this.gridDashboardItem1.ShowCaption = true; // // Dashboard1 // this.DataSources.AddRange(new DevExpress.DashboardCommon.IDashboardDataSource[] { this.dashboardExcelDataSource1 }); this.Items.AddRange(new DevExpress.DashboardCommon.DashboardItem[] { this.gridDashboardItem1 }); dashboardLayoutItem1.DashboardItem = this.gridDashboardItem1; dashboardLayoutItem1.Weight = 49.94753410283316D; dashboardLayoutGroup1.ChildNodes.AddRange(new DevExpress.DashboardCommon.DashboardLayoutNode[] { dashboardLayoutItem1 }); dashboardLayoutGroup1.DashboardItem = null; this.LayoutRoot = dashboardLayoutGroup1; this.Title.Text = "Dashboard"; ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(dimension1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo11 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo12 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.rbCaptionLength = new System.Windows.Forms.RadioButton(); this.rbAlphabeticalSort = new System.Windows.Forms.RadioButton(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.fieldProductName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldExtendedPrice1 = new DevExpress.XtraPivotGrid.PivotGridField(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldProductName1, this.fieldSalesPerson1, this.fieldExtendedPrice1 }); this.pivotGridControl1.Location = new System.Drawing.Point(12, 85); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(528, 464); this.pivotGridControl1.TabIndex = 0; // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.rbCaptionLength); this.groupBox1.Controls.Add(this.rbAlphabeticalSort); this.groupBox1.Location = new System.Drawing.Point(13, 13); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(527, 66); this.groupBox1.TabIndex = 1; this.groupBox1.TabStop = false; this.groupBox1.Text = "Sort Filter Items"; // // rbCaptionLength // this.rbCaptionLength.AutoSize = true; this.rbCaptionLength.Location = new System.Drawing.Point(7, 43); this.rbCaptionLength.Name = "rbCaptionLength"; this.rbCaptionLength.Size = new System.Drawing.Size(113, 17); this.rbCaptionLength.TabIndex = 1; this.rbCaptionLength.TabStop = true; this.rbCaptionLength.Text = "By Caption Length"; this.rbCaptionLength.UseVisualStyleBackColor = true; // // rbAlphabeticalSort // this.rbAlphabeticalSort.AutoSize = true; this.rbAlphabeticalSort.Checked = true; this.rbAlphabeticalSort.Location = new System.Drawing.Point(7, 20); this.rbAlphabeticalSort.Name = "rbAlphabeticalSort"; this.rbAlphabeticalSort.Size = new System.Drawing.Size(91, 17); this.rbAlphabeticalSort.TabIndex = 0; this.rbAlphabeticalSort.TabStop = true; this.rbAlphabeticalSort.Text = "Alphabetically"; this.rbAlphabeticalSort.UseVisualStyleBackColor = true; this.rbAlphabeticalSort.CheckedChanged += new System.EventHandler(this.rbAlphabeticalSort_CheckedChanged); // // excelDataSource1 // this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "CategoryName"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Country"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "FirstName"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "LastName"; fieldInfo4.Type = typeof(string); fieldInfo5.Name = "ProductName"; fieldInfo5.Type = typeof(string); fieldInfo6.Name = "Sales Person"; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "OrderDate"; fieldInfo7.Type = typeof(System.DateTime); fieldInfo8.Name = "OrderID"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "Quantity"; fieldInfo9.Type = typeof(double); fieldInfo10.Name = "Discount"; fieldInfo10.Type = typeof(double); fieldInfo11.Name = "Extended Price"; fieldInfo11.Type = typeof(double); fieldInfo12.Name = "UnitPrice"; fieldInfo12.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10, fieldInfo11, fieldInfo12 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Data"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // fieldProductName1 // this.fieldProductName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldProductName1.AreaIndex = 0; this.fieldProductName1.Caption = "Product Name"; this.fieldProductName1.FieldName = "ProductName"; this.fieldProductName1.Name = "fieldProductName1"; // // fieldSalesPerson1 // this.fieldSalesPerson1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldSalesPerson1.AreaIndex = 0; this.fieldSalesPerson1.Caption = "Sales Person"; this.fieldSalesPerson1.FieldName = "Sales Person"; this.fieldSalesPerson1.Name = "fieldSalesPerson1"; // // fieldExtendedPrice1 // this.fieldExtendedPrice1.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldExtendedPrice1.AreaIndex = 0; this.fieldExtendedPrice1.Caption = "Extended Price"; this.fieldExtendedPrice1.FieldName = "Extended Price"; this.fieldExtendedPrice1.Name = "fieldExtendedPrice1"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(552, 561); this.Controls.Add(this.groupBox1); this.Controls.Add(this.pivotGridControl1); this.Name = "Form1"; this.Text = "Ordered Items in a Filter DropDown List"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.DashboardCommon.Dimension dimension1 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.Measure measure1 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure2 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure3 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.ValueMap valueMap1 = new DevExpress.DashboardCommon.ValueMap(); DevExpress.DashboardCommon.UniformScale uniformScale1 = new DevExpress.DashboardCommon.UniformScale(); DevExpress.DashboardCommon.DeltaMap deltaMap1 = new DevExpress.DashboardCommon.DeltaMap(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SampleDashboard)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); DevExpress.DashboardCommon.Dimension dimension2 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.GridDimensionColumn gridDimensionColumn1 = new DevExpress.DashboardCommon.GridDimensionColumn(); DevExpress.DashboardCommon.Measure measure4 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure5 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.GridDeltaColumn gridDeltaColumn1 = new DevExpress.DashboardCommon.GridDeltaColumn(); DevExpress.DashboardCommon.Dimension dimension3 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.Measure measure6 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.ChartPane chartPane1 = new DevExpress.DashboardCommon.ChartPane(); DevExpress.DashboardCommon.SimpleSeries simpleSeries1 = new DevExpress.DashboardCommon.SimpleSeries(); DevExpress.DashboardCommon.Measure measure7 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure8 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Card card1 = new DevExpress.DashboardCommon.Card(); DevExpress.DashboardCommon.CardStretchedLayoutTemplate cardStretchedLayoutTemplate1 = new DevExpress.DashboardCommon.CardStretchedLayoutTemplate(); DevExpress.DashboardCommon.Measure measure9 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure10 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Card card2 = new DevExpress.DashboardCommon.Card(); DevExpress.DashboardCommon.CardStretchedLayoutTemplate cardStretchedLayoutTemplate2 = new DevExpress.DashboardCommon.CardStretchedLayoutTemplate(); DevExpress.DashboardCommon.Measure measure11 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure12 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Card card3 = new DevExpress.DashboardCommon.Card(); DevExpress.DashboardCommon.CardStretchedLayoutTemplate cardStretchedLayoutTemplate3 = new DevExpress.DashboardCommon.CardStretchedLayoutTemplate(); DevExpress.DashboardCommon.DashboardLayoutGroup dashboardLayoutGroup1 = new DevExpress.DashboardCommon.DashboardLayoutGroup(); DevExpress.DashboardCommon.DashboardLayoutGroup dashboardLayoutGroup2 = new DevExpress.DashboardCommon.DashboardLayoutGroup(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem1 = new DevExpress.DashboardCommon.DashboardLayoutItem(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem2 = new DevExpress.DashboardCommon.DashboardLayoutItem(); DevExpress.DashboardCommon.DashboardLayoutGroup dashboardLayoutGroup3 = new DevExpress.DashboardCommon.DashboardLayoutGroup(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem3 = new DevExpress.DashboardCommon.DashboardLayoutItem(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem4 = new DevExpress.DashboardCommon.DashboardLayoutItem(); this.choroplethMapDashboardItem1 = new DevExpress.DashboardCommon.ChoroplethMapDashboardItem(); this.dashboardExcelDataSource1 = new DevExpress.DashboardCommon.DashboardExcelDataSource(); this.gridDashboardItem1 = new DevExpress.DashboardCommon.GridDashboardItem(); this.chartDashboardItem1 = new DevExpress.DashboardCommon.ChartDashboardItem(); this.cardDashboardItem1 = new DevExpress.DashboardCommon.CardDashboardItem(); ((System.ComponentModel.ISupportInitialize)(this.choroplethMapDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chartDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cardDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure10)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure11)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure12)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // choroplethMapDashboardItem1 // this.choroplethMapDashboardItem1.Area = DevExpress.DashboardCommon.ShapefileArea.USA; dimension1.DataMember = "State"; this.choroplethMapDashboardItem1.AttributeDimension = dimension1; this.choroplethMapDashboardItem1.AttributeName = "NAME"; this.choroplethMapDashboardItem1.ComponentName = "choroplethMapDashboardItem1"; measure1.DataMember = "RevenueYTD (Sum)"; measure2.DataMember = "RevenueYTD (Sum)"; measure3.DataMember = "RevenueYTDTarget (Sum)"; this.choroplethMapDashboardItem1.DataItemRepository.Clear(); this.choroplethMapDashboardItem1.DataItemRepository.Add(dimension1, "DataItem0"); this.choroplethMapDashboardItem1.DataItemRepository.Add(measure1, "DataItem1"); this.choroplethMapDashboardItem1.DataItemRepository.Add(measure2, "DataItem2"); this.choroplethMapDashboardItem1.DataItemRepository.Add(measure3, "DataItem3"); this.choroplethMapDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.choroplethMapDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.choroplethMapDashboardItem1.InteractivityOptions.MasterFilterMode = DevExpress.DashboardCommon.DashboardItemMasterFilterMode.Multiple; valueMap1.Name = "Revenue YTD"; valueMap1.Scale = uniformScale1; valueMap1.ValueName = "Revenue"; valueMap1.AddDataItem("Value", measure1); deltaMap1.ActualValueName = "Revenue"; deltaMap1.DeltaName = "vs Target"; deltaMap1.Name = "Revenue YTD vs Target"; deltaMap1.AddDataItem("ActualValue", measure2); deltaMap1.AddDataItem("TargetValue", measure3); this.choroplethMapDashboardItem1.Maps.AddRange(new DevExpress.DashboardCommon.ChoroplethMap[] { valueMap1, deltaMap1 }); this.choroplethMapDashboardItem1.Name = "Sales by State"; this.choroplethMapDashboardItem1.ShapeTitleAttributeName = "ABBREV"; this.choroplethMapDashboardItem1.ShowCaption = true; this.choroplethMapDashboardItem1.Viewport.BottomLatitude = 22.722765208057595D; this.choroplethMapDashboardItem1.Viewport.CenterPointLatitude = 37.208247632673633D; this.choroplethMapDashboardItem1.Viewport.CenterPointLongitude = -95.848499902568008D; this.choroplethMapDashboardItem1.Viewport.LeftLongitude = -124.70997774915153D; this.choroplethMapDashboardItem1.Viewport.RightLongitude = -66.987022055984482D; this.choroplethMapDashboardItem1.Viewport.TopLatitude = 49.369672064487254D; // // dashboardExcelDataSource1 // this.dashboardExcelDataSource1.ComponentName = "dashboardExcelDataSource1"; this.dashboardExcelDataSource1.FileName = "|DataDirectory|\\Data\\Sales.xlsx"; this.dashboardExcelDataSource1.Name = "Excel Data Source 1"; this.dashboardExcelDataSource1.ResultSchemaSerializable = resources.GetString("dashboardExcelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "Category"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Product"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "State"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "UnitsSoldYTD (Sum)"; fieldInfo4.Type = typeof(double); fieldInfo5.Name = "UnitsSoldYTDTarget (Sum)"; fieldInfo5.Type = typeof(double); fieldInfo6.Name = "RevenueQTD (Sum)"; fieldInfo6.Type = typeof(double); fieldInfo7.Name = "RevenueQTDTarget (Sum)"; fieldInfo7.Type = typeof(double); fieldInfo8.Name = "RevenueYTD (Sum)"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "RevenueYTDTarget (Sum)"; fieldInfo9.Type = typeof(double); this.dashboardExcelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet1"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.dashboardExcelDataSource1.SourceOptions = excelSourceOptions1; // // gridDashboardItem1 // dimension2.DataMember = "Product"; gridDimensionColumn1.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridDimensionColumn1.AddDataItem("Dimension", dimension2); measure4.DataMember = "UnitsSoldYTD (Sum)"; measure5.DataMember = "UnitsSoldYTDTarget (Sum)"; gridDeltaColumn1.Name = "UnitsSold YTD vs Target"; gridDeltaColumn1.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridDeltaColumn1.AddDataItem("ActualValue", measure4); gridDeltaColumn1.AddDataItem("TargetValue", measure5); this.gridDashboardItem1.Columns.AddRange(new DevExpress.DashboardCommon.GridColumnBase[] { gridDimensionColumn1, gridDeltaColumn1 }); this.gridDashboardItem1.ComponentName = "gridDashboardItem1"; this.gridDashboardItem1.DataItemRepository.Clear(); this.gridDashboardItem1.DataItemRepository.Add(dimension2, "DataItem0"); this.gridDashboardItem1.DataItemRepository.Add(measure4, "DataItem1"); this.gridDashboardItem1.DataItemRepository.Add(measure5, "DataItem2"); this.gridDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.gridDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.gridDashboardItem1.Name = "Product Units Sold"; this.gridDashboardItem1.ShowCaption = true; // // chartDashboardItem1 // dimension3.DataMember = "Category"; this.chartDashboardItem1.Arguments.AddRange(new DevExpress.DashboardCommon.Dimension[] { dimension3 }); this.chartDashboardItem1.AxisX.TitleVisible = false; this.chartDashboardItem1.ComponentName = "chartDashboardItem1"; measure6.DataMember = "UnitsSoldYTD (Sum)"; this.chartDashboardItem1.DataItemRepository.Clear(); this.chartDashboardItem1.DataItemRepository.Add(dimension3, "DataItem0"); this.chartDashboardItem1.DataItemRepository.Add(measure6, "DataItem1"); this.chartDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.chartDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.chartDashboardItem1.Name = "Chart 1"; chartPane1.Name = "Pane 1"; chartPane1.PrimaryAxisY.AlwaysShowZeroLevel = true; chartPane1.PrimaryAxisY.ShowGridLines = true; chartPane1.PrimaryAxisY.TitleVisible = true; chartPane1.SecondaryAxisY.AlwaysShowZeroLevel = true; chartPane1.SecondaryAxisY.ShowGridLines = false; chartPane1.SecondaryAxisY.TitleVisible = true; simpleSeries1.AddDataItem("Value", measure6); chartPane1.Series.AddRange(new DevExpress.DashboardCommon.ChartSeries[] { simpleSeries1 }); this.chartDashboardItem1.Panes.AddRange(new DevExpress.DashboardCommon.ChartPane[] { chartPane1 }); this.chartDashboardItem1.Rotated = true; this.chartDashboardItem1.ShowCaption = true; // // cardDashboardItem1 // measure7.DataMember = "RevenueQTD (Sum)"; measure8.DataMember = "RevenueQTDTarget (Sum)"; cardStretchedLayoutTemplate1.BottomValue1.DimensionIndex = 0; cardStretchedLayoutTemplate1.BottomValue1.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.PercentVariation; cardStretchedLayoutTemplate1.BottomValue1.Visible = true; cardStretchedLayoutTemplate1.BottomValue2.DimensionIndex = 0; cardStretchedLayoutTemplate1.BottomValue2.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.AbsoluteVariation; cardStretchedLayoutTemplate1.BottomValue2.Visible = true; cardStretchedLayoutTemplate1.DeltaIndicator.Visible = true; cardStretchedLayoutTemplate1.MainValue.DimensionIndex = 0; cardStretchedLayoutTemplate1.MainValue.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.Title; cardStretchedLayoutTemplate1.MainValue.Visible = true; cardStretchedLayoutTemplate1.Sparkline.Visible = true; cardStretchedLayoutTemplate1.SubValue.DimensionIndex = 0; cardStretchedLayoutTemplate1.SubValue.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.Subtitle; cardStretchedLayoutTemplate1.SubValue.Visible = true; cardStretchedLayoutTemplate1.TopValue.DimensionIndex = 0; cardStretchedLayoutTemplate1.TopValue.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.ActualValue; cardStretchedLayoutTemplate1.TopValue.Visible = true; card1.LayoutTemplate = cardStretchedLayoutTemplate1; card1.AddDataItem("ActualValue", measure7); card1.AddDataItem("TargetValue", measure8); measure9.DataMember = "RevenueYTD (Sum)"; measure10.DataMember = "RevenueYTDTarget (Sum)"; cardStretchedLayoutTemplate2.BottomValue1.DimensionIndex = 0; cardStretchedLayoutTemplate2.BottomValue1.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.PercentVariation; cardStretchedLayoutTemplate2.BottomValue1.Visible = true; cardStretchedLayoutTemplate2.BottomValue2.DimensionIndex = 0; cardStretchedLayoutTemplate2.BottomValue2.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.AbsoluteVariation; cardStretchedLayoutTemplate2.BottomValue2.Visible = true; cardStretchedLayoutTemplate2.DeltaIndicator.Visible = true; cardStretchedLayoutTemplate2.MainValue.DimensionIndex = 0; cardStretchedLayoutTemplate2.MainValue.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.Title; cardStretchedLayoutTemplate2.MainValue.Visible = true; cardStretchedLayoutTemplate2.Sparkline.Visible = true; cardStretchedLayoutTemplate2.SubValue.DimensionIndex = 0; cardStretchedLayoutTemplate2.SubValue.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.Subtitle; cardStretchedLayoutTemplate2.SubValue.Visible = true; cardStretchedLayoutTemplate2.TopValue.DimensionIndex = 0; cardStretchedLayoutTemplate2.TopValue.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.ActualValue; cardStretchedLayoutTemplate2.TopValue.Visible = true; card2.LayoutTemplate = cardStretchedLayoutTemplate2; card2.AddDataItem("ActualValue", measure9); card2.AddDataItem("TargetValue", measure10); measure11.DataMember = "UnitsSoldYTD (Sum)"; measure12.DataMember = "UnitsSoldYTDTarget (Sum)"; cardStretchedLayoutTemplate3.BottomValue1.DimensionIndex = 0; cardStretchedLayoutTemplate3.BottomValue1.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.PercentVariation; cardStretchedLayoutTemplate3.BottomValue1.Visible = true; cardStretchedLayoutTemplate3.BottomValue2.DimensionIndex = 0; cardStretchedLayoutTemplate3.BottomValue2.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.AbsoluteVariation; cardStretchedLayoutTemplate3.BottomValue2.Visible = true; cardStretchedLayoutTemplate3.DeltaIndicator.Visible = true; cardStretchedLayoutTemplate3.MainValue.DimensionIndex = 0; cardStretchedLayoutTemplate3.MainValue.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.Title; cardStretchedLayoutTemplate3.MainValue.Visible = true; cardStretchedLayoutTemplate3.Sparkline.Visible = true; cardStretchedLayoutTemplate3.SubValue.DimensionIndex = 0; cardStretchedLayoutTemplate3.SubValue.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.Subtitle; cardStretchedLayoutTemplate3.SubValue.Visible = true; cardStretchedLayoutTemplate3.TopValue.DimensionIndex = 0; cardStretchedLayoutTemplate3.TopValue.ValueType = DevExpress.DashboardCommon.CardRowDataElementType.ActualValue; cardStretchedLayoutTemplate3.TopValue.Visible = true; card3.LayoutTemplate = cardStretchedLayoutTemplate3; card3.AddDataItem("ActualValue", measure11); card3.AddDataItem("TargetValue", measure12); this.cardDashboardItem1.Cards.AddRange(new DevExpress.DashboardCommon.Card[] { card1, card2, card3 }); this.cardDashboardItem1.ComponentName = "cardDashboardItem1"; this.cardDashboardItem1.DataItemRepository.Clear(); this.cardDashboardItem1.DataItemRepository.Add(measure7, "DataItem0"); this.cardDashboardItem1.DataItemRepository.Add(measure8, "DataItem1"); this.cardDashboardItem1.DataItemRepository.Add(measure9, "DataItem2"); this.cardDashboardItem1.DataItemRepository.Add(measure10, "DataItem3"); this.cardDashboardItem1.DataItemRepository.Add(measure11, "DataItem4"); this.cardDashboardItem1.DataItemRepository.Add(measure12, "DataItem5"); this.cardDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.cardDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.cardDashboardItem1.Name = "Cards 1"; this.cardDashboardItem1.ShowCaption = false; // // SampleDashboard // this.CurrencyCultureName = null; this.DataSources.AddRange(new DevExpress.DashboardCommon.IDashboardDataSource[] { this.dashboardExcelDataSource1 }); this.Items.AddRange(new DevExpress.DashboardCommon.DashboardItem[] { this.choroplethMapDashboardItem1, this.gridDashboardItem1, this.chartDashboardItem1, this.cardDashboardItem1 }); dashboardLayoutItem1.DashboardItem = this.choroplethMapDashboardItem1; dashboardLayoutItem1.Weight = 73.395721925133685D; dashboardLayoutItem2.DashboardItem = this.cardDashboardItem1; dashboardLayoutItem2.Weight = 26.604278074866311D; dashboardLayoutGroup2.ChildNodes.AddRange(new DevExpress.DashboardCommon.DashboardLayoutNode[] { dashboardLayoutItem1, dashboardLayoutItem2 }); dashboardLayoutGroup2.DashboardItem = null; dashboardLayoutGroup2.Orientation = DevExpress.DashboardCommon.DashboardLayoutGroupOrientation.Vertical; dashboardLayoutGroup2.Weight = 62.684365781710916D; dashboardLayoutItem3.DashboardItem = this.gridDashboardItem1; dashboardLayoutItem3.Weight = 48.1283422459893D; dashboardLayoutItem4.DashboardItem = this.chartDashboardItem1; dashboardLayoutItem4.Weight = 51.8716577540107D; dashboardLayoutGroup3.ChildNodes.AddRange(new DevExpress.DashboardCommon.DashboardLayoutNode[] { dashboardLayoutItem3, dashboardLayoutItem4 }); dashboardLayoutGroup3.DashboardItem = null; dashboardLayoutGroup3.Orientation = DevExpress.DashboardCommon.DashboardLayoutGroupOrientation.Vertical; dashboardLayoutGroup3.Weight = 37.315634218289084D; dashboardLayoutGroup1.ChildNodes.AddRange(new DevExpress.DashboardCommon.DashboardLayoutNode[] { dashboardLayoutGroup2, dashboardLayoutGroup3 }); dashboardLayoutGroup1.DashboardItem = null; dashboardLayoutGroup1.Weight = 100D; this.LayoutRoot = dashboardLayoutGroup1; this.Title.Text = "Sample Dashboard"; ((System.ComponentModel.ISupportInitialize)(dimension1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.choroplethMapDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(dimension3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chartDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure9)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure10)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure11)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure12)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cardDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(XtraReport1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand(); this.label12 = new DevExpress.XtraReports.UI.XRLabel(); this.label18 = new DevExpress.XtraReports.UI.XRLabel(); this.label16 = new DevExpress.XtraReports.UI.XRLabel(); this.label15 = new DevExpress.XtraReports.UI.XRLabel(); this.label13 = new DevExpress.XtraReports.UI.XRLabel(); this.label5 = new DevExpress.XtraReports.UI.XRLabel(); this.label8 = new DevExpress.XtraReports.UI.XRLabel(); this.label9 = new DevExpress.XtraReports.UI.XRLabel(); this.label6 = new DevExpress.XtraReports.UI.XRLabel(); this.label7 = new DevExpress.XtraReports.UI.XRLabel(); this.label17 = new DevExpress.XtraReports.UI.XRLabel(); this.label10 = new DevExpress.XtraReports.UI.XRLabel(); this.vendorLogo = new DevExpress.XtraReports.UI.XRPictureBox(); this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand(); this.vendorTable = new DevExpress.XtraReports.UI.XRTable(); this.vendorTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); this.vendorName = new DevExpress.XtraReports.UI.XRTableCell(); this.vendorPhone = new DevExpress.XtraReports.UI.XRTableCell(); this.vendorEmail = new DevExpress.XtraReports.UI.XRTableCell(); this.vendorTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); this.vendorAddress = new DevExpress.XtraReports.UI.XRTableCell(); this.vendorEmptyCell = new DevExpress.XtraReports.UI.XRTableCell(); this.vendorWebsite = new DevExpress.XtraReports.UI.XRTableCell(); this.vendorLogo2 = new DevExpress.XtraReports.UI.XRPictureBox(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.baseControlStyle = new DevExpress.XtraReports.UI.XRControlStyle(); this.evenDetailStyle = new DevExpress.XtraReports.UI.XRControlStyle(); this.oddDetailStyle = new DevExpress.XtraReports.UI.XRControlStyle(); ((System.ComponentModel.ISupportInitialize)(this.vendorTable)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // Detail // this.Detail.HeightF = 688.6154F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 5, 0, 0, 100F); this.Detail.StyleName = "baseControlStyle"; this.Detail.StylePriority.UsePadding = false; this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // TopMargin // this.TopMargin.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.label12, this.label18, this.label16, this.label15, this.label13, this.label5, this.label8, this.label9, this.label6, this.label7, this.label17, this.label10, this.vendorLogo }); this.TopMargin.HeightF = 136.625F; this.TopMargin.Name = "TopMargin"; this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.TopMargin.StylePriority.UseBackColor = false; this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // label12 // this.label12.AutoWidth = true; this.label12.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; this.label12.Font = new System.Drawing.Font("Calibri", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)))); this.label12.LocationFloat = new DevExpress.Utils.PointFloat(538.7982F, 57.1153F); this.label12.Multiline = true; this.label12.Name = "label12"; this.label12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label12.SizeF = new System.Drawing.SizeF(84.27884F, 16.28203F); this.label12.StylePriority.UseBorders = false; this.label12.StylePriority.UseFont = false; this.label12.StylePriority.UseTextAlignment = false; this.label12.Text = "DOB (Age):"; this.label12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; // // label18 // this.label18.Borders = DevExpress.XtraPrinting.BorderSide.None; this.label18.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Italic); this.label18.LocationFloat = new DevExpress.Utils.PointFloat(626.6668F, 89.67929F); this.label18.Multiline = true; this.label18.Name = "label18"; this.label18.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label18.SizeF = new System.Drawing.SizeF(158.3332F, 16.28203F); this.label18.StylePriority.UseBorders = false; this.label18.StylePriority.UseFont = false; this.label18.Text = "08-11-18 14:55:54 PM"; // // label16 // this.label16.Borders = DevExpress.XtraPrinting.BorderSide.None; this.label16.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Italic); this.label16.LocationFloat = new DevExpress.Utils.PointFloat(626.6668F, 73.39725F); this.label16.Multiline = true; this.label16.Name = "label16"; this.label16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label16.SizeF = new System.Drawing.SizeF(158.3332F, 16.28203F); this.label16.StylePriority.UseBorders = false; this.label16.StylePriority.UseFont = false; this.label16.Text = "Dr.Faridon Setna"; // // label15 // this.label15.AutoWidth = true; this.label15.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; this.label15.Font = new System.Drawing.Font("Calibri", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)))); this.label15.LocationFloat = new DevExpress.Utils.PointFloat(538.7982F, 73.39725F); this.label15.Multiline = true; this.label15.Name = "label15"; this.label15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label15.SizeF = new System.Drawing.SizeF(84.27884F, 16.28203F); this.label15.StylePriority.UseBorders = false; this.label15.StylePriority.UseFont = false; this.label15.StylePriority.UseTextAlignment = false; this.label15.Text = "Doctor:"; this.label15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; // // label13 // this.label13.Borders = DevExpress.XtraPrinting.BorderSide.None; this.label13.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Italic); this.label13.LocationFloat = new DevExpress.Utils.PointFloat(626.6668F, 57.11526F); this.label13.Multiline = true; this.label13.Name = "label13"; this.label13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label13.SizeF = new System.Drawing.SizeF(158.3332F, 16.28203F); this.label13.StylePriority.UseBorders = false; this.label13.StylePriority.UseFont = false; this.label13.Text = "03-JUL-71 (47 Years)"; // // label5 // this.label5.AutoWidth = true; this.label5.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; this.label5.Font = new System.Drawing.Font("Calibri", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)))); this.label5.LocationFloat = new DevExpress.Utils.PointFloat(538.7982F, 8.269148F); this.label5.Multiline = true; this.label5.Name = "label5"; this.label5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label5.SizeF = new System.Drawing.SizeF(84.27884F, 16.28203F); this.label5.StylePriority.UseBorders = false; this.label5.StylePriority.UseFont = false; this.label5.StylePriority.UseTextAlignment = false; this.label5.Text = "File No:"; this.label5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; // // label8 // this.label8.Borders = DevExpress.XtraPrinting.BorderSide.None; this.label8.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Italic); this.label8.LocationFloat = new DevExpress.Utils.PointFloat(626.6668F, 8.269148F); this.label8.Multiline = true; this.label8.Name = "label8"; this.label8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label8.SizeF = new System.Drawing.SizeF(96.37225F, 16.28203F); this.label8.StylePriority.UseBorders = false; this.label8.StylePriority.UseFont = false; this.label8.Text = "4472/10"; // // label9 // this.label9.Borders = DevExpress.XtraPrinting.BorderSide.None; this.label9.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Italic); this.label9.LocationFloat = new DevExpress.Utils.PointFloat(626.6668F, 24.55119F); this.label9.Multiline = true; this.label9.Name = "label9"; this.label9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label9.SizeF = new System.Drawing.SizeF(158.3333F, 16.28203F); this.label9.StylePriority.UseBorders = false; this.label9.StylePriority.UseFont = false; this.label9.Text = "Fawad Ahmed Khan"; // // label6 // this.label6.AutoWidth = true; this.label6.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; this.label6.Font = new System.Drawing.Font("Calibri", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)))); this.label6.LocationFloat = new DevExpress.Utils.PointFloat(538.7982F, 24.55119F); this.label6.Multiline = true; this.label6.Name = "label6"; this.label6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label6.SizeF = new System.Drawing.SizeF(84.27884F, 16.28203F); this.label6.StylePriority.UseBorders = false; this.label6.StylePriority.UseFont = false; this.label6.StylePriority.UseTextAlignment = false; this.label6.Text = "Name:"; this.label6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; // // label7 // this.label7.AutoWidth = true; this.label7.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; this.label7.Font = new System.Drawing.Font("Calibri", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)))); this.label7.LocationFloat = new DevExpress.Utils.PointFloat(538.7982F, 40.83322F); this.label7.Multiline = true; this.label7.Name = "label7"; this.label7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label7.SizeF = new System.Drawing.SizeF(84.27884F, 16.28203F); this.label7.StylePriority.UseBorders = false; this.label7.StylePriority.UseFont = false; this.label7.StylePriority.UseTextAlignment = false; this.label7.Text = "Spouse:"; this.label7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; // // label17 // this.label17.AutoWidth = true; this.label17.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; this.label17.Font = new System.Drawing.Font("Calibri", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)))); this.label17.LocationFloat = new DevExpress.Utils.PointFloat(538.7982F, 89.67937F); this.label17.Multiline = true; this.label17.Name = "label17"; this.label17.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label17.SizeF = new System.Drawing.SizeF(84.27884F, 16.28203F); this.label17.StylePriority.UseBorders = false; this.label17.StylePriority.UseFont = false; this.label17.StylePriority.UseTextAlignment = false; this.label17.Text = "Report Date:"; this.label17.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; // // label10 // this.label10.Borders = DevExpress.XtraPrinting.BorderSide.None; this.label10.Font = new System.Drawing.Font("Calibri", 10F, System.Drawing.FontStyle.Italic); this.label10.LocationFloat = new DevExpress.Utils.PointFloat(626.6668F, 40.83322F); this.label10.Multiline = true; this.label10.Name = "label10"; this.label10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.label10.SizeF = new System.Drawing.SizeF(158.3333F, 16.28203F); this.label10.StylePriority.UseBorders = false; this.label10.StylePriority.UseFont = false; this.label10.Text = "Saima Fawad"; // // vendorLogo // this.vendorLogo.Image = ((System.Drawing.Image)(resources.GetObject("vendorLogo.Image"))); this.vendorLogo.ImageAlignment = DevExpress.XtraPrinting.ImageAlignment.TopLeft; this.vendorLogo.LocationFloat = new DevExpress.Utils.PointFloat(7.836518F, 15.31718F); this.vendorLogo.Name = "vendorLogo"; this.vendorLogo.SizeF = new System.Drawing.SizeF(200.9616F, 90.64423F); this.vendorLogo.Sizing = DevExpress.XtraPrinting.ImageSizeMode.Squeeze; this.vendorLogo.StylePriority.UseBorderColor = false; this.vendorLogo.StylePriority.UseBorders = false; this.vendorLogo.StylePriority.UsePadding = false; // // BottomMargin // this.BottomMargin.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.vendorTable, this.vendorLogo2 }); this.BottomMargin.HeightF = 108F; this.BottomMargin.Name = "BottomMargin"; this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.BottomMargin.StyleName = "baseControlStyle"; this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // vendorTable // this.vendorTable.BorderColor = System.Drawing.Color.Gray; this.vendorTable.Borders = DevExpress.XtraPrinting.BorderSide.Left; this.vendorTable.Font = new System.Drawing.Font("Segoe UI", 8F); this.vendorTable.LocationFloat = new DevExpress.Utils.PointFloat(135.6247F, 9.999979F); this.vendorTable.Name = "vendorTable"; this.vendorTable.Padding = new DevExpress.XtraPrinting.PaddingInfo(12, 0, 0, 0, 100F); this.vendorTable.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { this.vendorTableRow1, this.vendorTableRow2 }); this.vendorTable.SizeF = new System.Drawing.SizeF(623.5612F, 80F); this.vendorTable.StylePriority.UseBorderColor = false; this.vendorTable.StylePriority.UseBorders = false; this.vendorTable.StylePriority.UseFont = false; this.vendorTable.StylePriority.UsePadding = false; // // vendorTableRow1 // this.vendorTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { this.vendorName, this.vendorPhone, this.vendorEmail }); this.vendorTableRow1.Name = "vendorTableRow1"; this.vendorTableRow1.Weight = 1.0000282429281655D; // // vendorName // this.vendorName.CanShrink = true; this.vendorName.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); this.vendorName.Name = "vendorName"; this.vendorName.StylePriority.UseFont = false; this.vendorName.StylePriority.UseTextAlignment = false; this.vendorName.Text = "Address"; this.vendorName.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; this.vendorName.Weight = 3.2160869766043354D; // // vendorPhone // this.vendorPhone.CanShrink = true; this.vendorPhone.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); this.vendorPhone.Name = "vendorPhone"; this.vendorPhone.StylePriority.UseFont = false; this.vendorPhone.StylePriority.UseTextAlignment = false; this.vendorPhone.Text = "Phone"; this.vendorPhone.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; this.vendorPhone.Weight = 2.3857055240558696D; // // vendorEmail // this.vendorEmail.CanShrink = true; this.vendorEmail.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); this.vendorEmail.Name = "vendorEmail"; this.vendorEmail.StylePriority.UseFont = false; this.vendorEmail.StylePriority.UseTextAlignment = false; this.vendorEmail.Text = "Fax"; this.vendorEmail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; this.vendorEmail.Weight = 2.8008962503301023D; // // vendorTableRow2 // this.vendorTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { this.vendorAddress, this.vendorEmptyCell, this.vendorWebsite }); this.vendorTableRow2.Name = "vendorTableRow2"; this.vendorTableRow2.Weight = 1.57413724941719D; // // vendorAddress // this.vendorAddress.CanShrink = true; this.vendorAddress.Multiline = true; this.vendorAddress.Name = "vendorAddress"; this.vendorAddress.StylePriority.UseBorders = false; this.vendorAddress.StylePriority.UseTextAlignment = false; this.vendorAddress.Text = "F-6/1, Block-8, KDA Scheme No.5,\r\nClifton, Karachi-75600"; this.vendorAddress.Weight = 3.2160869766043354D; // // vendorEmptyCell // this.vendorEmptyCell.CanShrink = true; this.vendorEmptyCell.Multiline = true; this.vendorEmptyCell.Name = "vendorEmptyCell"; this.vendorEmptyCell.Text = "92 21 35361846\r\n 35361397 \r\n 35810049"; this.vendorEmptyCell.Weight = 2.3857055240558696D; // // vendorWebsite // this.vendorWebsite.CanShrink = true; this.vendorWebsite.Name = "vendorWebsite"; this.vendorWebsite.Text = "021-35361397"; this.vendorWebsite.Weight = 2.8008962503301023D; // // vendorLogo2 // this.vendorLogo2.Image = ((System.Drawing.Image)(resources.GetObject("vendorLogo2.Image"))); this.vendorLogo2.ImageAlignment = DevExpress.XtraPrinting.ImageAlignment.TopLeft; this.vendorLogo2.LocationFloat = new DevExpress.Utils.PointFloat(7.836518F, 9.999979F); this.vendorLogo2.Name = "vendorLogo2"; this.vendorLogo2.SizeF = new System.Drawing.SizeF(105F, 50F); this.vendorLogo2.Sizing = DevExpress.XtraPrinting.ImageSizeMode.Squeeze; this.vendorLogo2.StylePriority.UseBorderColor = false; this.vendorLogo2.StylePriority.UseBorders = false; this.vendorLogo2.StylePriority.UsePadding = false; // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\Users\\HP\\Downloads\\Software review %26 Correction sheet.xlsx"; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = "PFZpZXc+PEZpZWxkIE5hbWU9Ik1vZHVsZSAjIDAxIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9I" + "kNvbHVtbjIiIFR5cGU9IlN0cmluZyIgLz48L1ZpZXc+"; fieldInfo1.Name = "Module # 01"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Column2"; fieldInfo2.Type = typeof(string); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet1"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // baseControlStyle // this.baseControlStyle.Font = new System.Drawing.Font("Segoe UI", 9.75F); this.baseControlStyle.Name = "baseControlStyle"; this.baseControlStyle.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); // // evenDetailStyle // this.evenDetailStyle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(233)))), ((int)(((byte)(234))))); this.evenDetailStyle.Name = "evenDetailStyle"; this.evenDetailStyle.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); // // oddDetailStyle // this.oddDetailStyle.BackColor = System.Drawing.Color.WhiteSmoke; this.oddDetailStyle.Name = "oddDetailStyle"; this.oddDetailStyle.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); // // XtraReport1 // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.Detail, this.TopMargin, this.BottomMargin }); this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] { this.excelDataSource1 }); this.DataSource = this.excelDataSource1; this.Font = new System.Drawing.Font("Segoe UI", 9.75F); this.Margins = new System.Drawing.Printing.Margins(27, 28, 137, 108); this.StyleSheet.AddRange(new DevExpress.XtraReports.UI.XRControlStyle[] { this.baseControlStyle, this.evenDetailStyle, this.oddDetailStyle }); this.Version = "18.1"; ((System.ComponentModel.ISupportInitialize)(this.vendorTable)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo67 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo68 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo69 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo70 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo71 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo72 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo73 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo74 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo75 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo76 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo77 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings7 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions7 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings7); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.checkEdit1 = new DevExpress.XtraEditors.CheckEdit(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.fieldCategoryName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldCountry1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldProductName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldLastName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldOrderDate1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldOrderID1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldQuantity1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldDiscount1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldExtendedPrice1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldUnitPrice1 = new DevExpress.XtraPivotGrid.PivotGridField(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).BeginInit(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.pivotGridControl1.Cursor = System.Windows.Forms.Cursors.Default; this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldCategoryName1, this.fieldCountry1, this.fieldProductName1, this.fieldSalesPerson1, this.fieldLastName1, this.fieldOrderDate1, this.fieldOrderID1, this.fieldQuantity1, this.fieldDiscount1, this.fieldExtendedPrice1, this.fieldUnitPrice1 }); this.pivotGridControl1.Location = new System.Drawing.Point(13, 36); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(767, 378); this.pivotGridControl1.TabIndex = 0; // // checkEdit1 // this.checkEdit1.Location = new System.Drawing.Point(12, 11); this.checkEdit1.Name = "checkEdit1"; this.checkEdit1.Properties.Caption = "Enable custom sorting"; this.checkEdit1.Size = new System.Drawing.Size(132, 18); this.checkEdit1.TabIndex = 2; this.checkEdit1.CheckedChanged += new System.EventHandler(this.checkEdit1_CheckedChanged); // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\Data\\SalesPersonLastNames.xlsx"; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo67.Name = "CategoryName"; fieldInfo67.Type = typeof(string); fieldInfo68.Name = "Country"; fieldInfo68.Type = typeof(string); fieldInfo69.Name = "ProductName"; fieldInfo69.Type = typeof(string); fieldInfo70.Name = "Sales Person"; fieldInfo70.Type = typeof(string); fieldInfo71.Name = "Last Name"; fieldInfo71.Type = typeof(string); fieldInfo72.Name = "OrderDate"; fieldInfo72.Type = typeof(System.DateTime); fieldInfo73.Name = "OrderID"; fieldInfo73.Type = typeof(double); fieldInfo74.Name = "Quantity"; fieldInfo74.Type = typeof(double); fieldInfo75.Name = "Discount"; fieldInfo75.Type = typeof(double); fieldInfo76.Name = "Extended Price"; fieldInfo76.Type = typeof(double); fieldInfo77.Name = "UnitPrice"; fieldInfo77.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo67, fieldInfo68, fieldInfo69, fieldInfo70, fieldInfo71, fieldInfo72, fieldInfo73, fieldInfo74, fieldInfo75, fieldInfo76, fieldInfo77 }); excelWorksheetSettings7.CellRange = null; excelWorksheetSettings7.WorksheetName = "Data"; excelSourceOptions7.ImportSettings = excelWorksheetSettings7; this.excelDataSource1.SourceOptions = excelSourceOptions7; // // fieldCategoryName1 // this.fieldCategoryName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldCategoryName1.AreaIndex = 0; this.fieldCategoryName1.Caption = "Category Name"; this.fieldCategoryName1.FieldName = "CategoryName"; this.fieldCategoryName1.Name = "fieldCategoryName1"; // // fieldCountry1 // this.fieldCountry1.AreaIndex = 0; this.fieldCountry1.Caption = "Country"; this.fieldCountry1.FieldName = "Country"; this.fieldCountry1.Name = "fieldCountry1"; // // fieldProductName1 // this.fieldProductName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldProductName1.AreaIndex = 1; this.fieldProductName1.Caption = "Product Name"; this.fieldProductName1.FieldName = "ProductName"; this.fieldProductName1.Name = "fieldProductName1"; // // fieldSalesPerson1 // this.fieldSalesPerson1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldSalesPerson1.AreaIndex = 0; this.fieldSalesPerson1.Caption = "Sales Person"; this.fieldSalesPerson1.FieldName = "Sales Person"; this.fieldSalesPerson1.Name = "fieldSalesPerson1"; // // fieldLastName1 // this.fieldLastName1.AreaIndex = 1; this.fieldLastName1.Caption = "Last Name"; this.fieldLastName1.FieldName = "Last Name"; this.fieldLastName1.Name = "fieldLastName1"; // // fieldOrderDate1 // this.fieldOrderDate1.AreaIndex = 2; this.fieldOrderDate1.Caption = "OrderDate"; this.fieldOrderDate1.FieldName = "OrderDate"; this.fieldOrderDate1.Name = "fieldOrderDate1"; // // fieldOrderID1 // this.fieldOrderID1.AreaIndex = 3; this.fieldOrderID1.Caption = "Order ID"; this.fieldOrderID1.FieldName = "OrderID"; this.fieldOrderID1.Name = "fieldOrderID1"; // // fieldQuantity1 // this.fieldQuantity1.AreaIndex = 4; this.fieldQuantity1.Caption = "Quantity"; this.fieldQuantity1.FieldName = "Quantity"; this.fieldQuantity1.Name = "fieldQuantity1"; // // fieldDiscount1 // this.fieldDiscount1.AreaIndex = 5; this.fieldDiscount1.Caption = "Discount"; this.fieldDiscount1.FieldName = "Discount"; this.fieldDiscount1.Name = "fieldDiscount1"; // // fieldExtendedPrice1 // this.fieldExtendedPrice1.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldExtendedPrice1.AreaIndex = 0; this.fieldExtendedPrice1.Caption = "Extended Price"; this.fieldExtendedPrice1.FieldName = "Extended Price"; this.fieldExtendedPrice1.Name = "fieldExtendedPrice1"; // // fieldUnitPrice1 // this.fieldUnitPrice1.AreaIndex = 6; this.fieldUnitPrice1.Caption = "Unit Price"; this.fieldUnitPrice1.FieldName = "UnitPrice"; this.fieldUnitPrice1.Name = "fieldUnitPrice1"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(792, 426); this.Controls.Add(this.checkEdit1); this.Controls.Add(this.pivotGridControl1); this.Name = "Form1"; this.Text = "CustomFieldSort Example"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo37 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo38 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo39 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo40 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo41 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo42 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo43 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo44 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo45 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo46 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo47 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo48 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings4 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions4 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings4); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.fieldProductName = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldOrderDate = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldQuantity = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldVariation = new DevExpress.XtraPivotGrid.PivotGridField(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.Cursor = System.Windows.Forms.Cursors.Default; this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldProductName, this.fieldSalesPerson, this.fieldOrderDate, this.fieldQuantity, this.fieldVariation }); this.pivotGridControl1.Location = new System.Drawing.Point(0, 0); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(933, 365); this.pivotGridControl1.TabIndex = 0; this.pivotGridControl1.CustomCellDisplayText += new DevExpress.XtraPivotGrid.PivotCellDisplayTextEventHandler(this.pivotGridControl1_CustomCellDisplayText); // // fieldProductName // this.fieldProductName.AreaIndex = 0; this.fieldProductName.Caption = "Product Name"; this.fieldProductName.FieldName = "ProductName"; this.fieldProductName.Name = "fieldProductName"; // // fieldSalesPerson // this.fieldSalesPerson.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldSalesPerson.AreaIndex = 0; this.fieldSalesPerson.Caption = "Sales Person"; this.fieldSalesPerson.FieldName = "Sales Person"; this.fieldSalesPerson.Name = "fieldSalesPerson"; this.fieldSalesPerson.Width = 200; // // fieldOrderDate // this.fieldOrderDate.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldOrderDate.AreaIndex = 0; this.fieldOrderDate.Caption = "Order Date"; this.fieldOrderDate.FieldName = "OrderDate"; this.fieldOrderDate.GroupInterval = DevExpress.XtraPivotGrid.PivotGroupInterval.DateYear; this.fieldOrderDate.Name = "fieldOrderDate"; this.fieldOrderDate.UnboundFieldName = "fieldOrderDate"; // // fieldQuantity // this.fieldQuantity.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldQuantity.AreaIndex = 0; this.fieldQuantity.Caption = "Quantity"; this.fieldQuantity.FieldName = "Quantity"; this.fieldQuantity.Name = "fieldQuantity"; // // fieldVariation // this.fieldVariation.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldVariation.AreaIndex = 1; this.fieldVariation.Caption = "Variation"; this.fieldVariation.FieldName = "Quantity"; this.fieldVariation.Name = "fieldVariation"; this.fieldVariation.Options.ShowGrandTotal = false; // // excelDataSource1 // this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo37.Name = "CategoryName"; fieldInfo37.Type = typeof(string); fieldInfo38.Name = "Country"; fieldInfo38.Type = typeof(string); fieldInfo39.Name = "FirstName"; fieldInfo39.Type = typeof(string); fieldInfo40.Name = "LastName"; fieldInfo40.Type = typeof(string); fieldInfo41.Name = "ProductName"; fieldInfo41.Type = typeof(string); fieldInfo42.Name = "Sales Person"; fieldInfo42.Type = typeof(string); fieldInfo43.Name = "OrderDate"; fieldInfo43.Type = typeof(System.DateTime); fieldInfo44.Name = "OrderID"; fieldInfo44.Type = typeof(double); fieldInfo45.Name = "Quantity"; fieldInfo45.Type = typeof(double); fieldInfo46.Name = "Discount"; fieldInfo46.Type = typeof(double); fieldInfo47.Name = "Extended Price"; fieldInfo47.Type = typeof(double); fieldInfo48.Name = "UnitPrice"; fieldInfo48.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo37, fieldInfo38, fieldInfo39, fieldInfo40, fieldInfo41, fieldInfo42, fieldInfo43, fieldInfo44, fieldInfo45, fieldInfo46, fieldInfo47, fieldInfo48 }); excelWorksheetSettings4.CellRange = null; excelWorksheetSettings4.WorksheetName = "Data"; excelSourceOptions4.ImportSettings = excelWorksheetSettings4; this.excelDataSource1.SourceOptions = excelSourceOptions4; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(933, 365); this.Controls.Add(this.pivotGridControl1); this.Name = "Form1"; this.Text = "Calculate Variations in Reverse Order"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.DashboardCommon.Dimension dimension1 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.Measure measure1 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.ChartPane chartPane1 = new DevExpress.DashboardCommon.ChartPane(); DevExpress.DashboardCommon.SimpleSeries simpleSeries1 = new DevExpress.DashboardCommon.SimpleSeries(); DevExpress.DashboardCommon.Dimension dimension2 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.DateTimePeriod dateTimePeriod1 = new DevExpress.DashboardCommon.DateTimePeriod(); DevExpress.DashboardCommon.FlowDateTimePeriodLimit flowDateTimePeriodLimit1 = new DevExpress.DashboardCommon.FlowDateTimePeriodLimit(); DevExpress.DashboardCommon.FlowDateTimePeriodLimit flowDateTimePeriodLimit2 = new DevExpress.DashboardCommon.FlowDateTimePeriodLimit(); DevExpress.DashboardCommon.DateTimePeriod dateTimePeriod2 = new DevExpress.DashboardCommon.DateTimePeriod(); DevExpress.DashboardCommon.FlowDateTimePeriodLimit flowDateTimePeriodLimit3 = new DevExpress.DashboardCommon.FlowDateTimePeriodLimit(); DevExpress.DashboardCommon.FlowDateTimePeriodLimit flowDateTimePeriodLimit4 = new DevExpress.DashboardCommon.FlowDateTimePeriodLimit(); DevExpress.DashboardCommon.DateTimePeriod dateTimePeriod3 = new DevExpress.DashboardCommon.DateTimePeriod(); DevExpress.DashboardCommon.FlowDateTimePeriodLimit flowDateTimePeriodLimit5 = new DevExpress.DashboardCommon.FlowDateTimePeriodLimit(); DevExpress.DashboardCommon.FlowDateTimePeriodLimit flowDateTimePeriodLimit6 = new DevExpress.DashboardCommon.FlowDateTimePeriodLimit(); DevExpress.DashboardCommon.DateTimePeriod dateTimePeriod4 = new DevExpress.DashboardCommon.DateTimePeriod(); DevExpress.DashboardCommon.FixedDateTimePeriodLimit fixedDateTimePeriodLimit1 = new DevExpress.DashboardCommon.FixedDateTimePeriodLimit(); DevExpress.DashboardCommon.FixedDateTimePeriodLimit fixedDateTimePeriodLimit2 = new DevExpress.DashboardCommon.FixedDateTimePeriodLimit(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Dashboard1)); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); DevExpress.DashboardCommon.DashboardLayoutGroup dashboardLayoutGroup1 = new DevExpress.DashboardCommon.DashboardLayoutGroup(); DevExpress.DashboardCommon.DashboardLayoutGroup dashboardLayoutGroup2 = new DevExpress.DashboardCommon.DashboardLayoutGroup(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem1 = new DevExpress.DashboardCommon.DashboardLayoutItem(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem2 = new DevExpress.DashboardCommon.DashboardLayoutItem(); this.chartDashboardItem1 = new DevExpress.DashboardCommon.ChartDashboardItem(); this.dateFilterDashboardItem1 = new DevExpress.DashboardCommon.DateFilterDashboardItem(); this.dashboardItemGroup1 = new DevExpress.DashboardCommon.DashboardItemGroup(); this.dashboardExcelDataSource1 = new DevExpress.DashboardCommon.DashboardExcelDataSource(); ((System.ComponentModel.ISupportInitialize)(this.chartDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateFilterDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardItemGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // chartDashboardItem1 // dimension1.DataMember = "OrderDate"; dimension1.DateTimeGroupInterval = DevExpress.DashboardCommon.DateTimeGroupInterval.DayMonthYear; this.chartDashboardItem1.Arguments.AddRange(new DevExpress.DashboardCommon.Dimension[] { dimension1 }); this.chartDashboardItem1.AxisX.TitleVisible = false; this.chartDashboardItem1.ComponentName = "chartDashboardItem1"; measure1.DataMember = "Extended Price"; this.chartDashboardItem1.DataItemRepository.Clear(); this.chartDashboardItem1.DataItemRepository.Add(dimension1, "DataItem0"); this.chartDashboardItem1.DataItemRepository.Add(measure1, "DataItem1"); this.chartDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.chartDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.chartDashboardItem1.Name = ""; chartPane1.Name = "Pane 1"; chartPane1.PrimaryAxisY.AlwaysShowZeroLevel = true; chartPane1.PrimaryAxisY.ShowGridLines = true; chartPane1.PrimaryAxisY.TitleVisible = true; chartPane1.SecondaryAxisY.AlwaysShowZeroLevel = true; chartPane1.SecondaryAxisY.ShowGridLines = false; chartPane1.SecondaryAxisY.TitleVisible = true; simpleSeries1.SeriesType = DevExpress.DashboardCommon.SimpleSeriesType.Line; simpleSeries1.AddDataItem("Value", measure1); chartPane1.Series.AddRange(new DevExpress.DashboardCommon.ChartSeries[] { simpleSeries1 }); this.chartDashboardItem1.Panes.AddRange(new DevExpress.DashboardCommon.ChartPane[] { chartPane1 }); this.chartDashboardItem1.ParentContainer = this.dashboardItemGroup1; this.chartDashboardItem1.ShowCaption = false; // // dateFilterDashboardItem1 // this.dateFilterDashboardItem1.ArrangementMode = DevExpress.DashboardCommon.DateFilterArrangementMode.Vertical; this.dateFilterDashboardItem1.ComponentName = "dateFilterDashboardItem1"; dimension2.DataMember = "OrderDate"; dimension2.DateTimeGroupInterval = DevExpress.DashboardCommon.DateTimeGroupInterval.DayMonthYear; dimension2.UniqueId = "orderDateId"; this.dateFilterDashboardItem1.DataItemRepository.Clear(); this.dateFilterDashboardItem1.DataItemRepository.Add(dimension2, "DataItem0"); this.dateFilterDashboardItem1.DataSource = this.dashboardExcelDataSource1; dateTimePeriod1.End = flowDateTimePeriodLimit1; dateTimePeriod1.Name = "Last Year"; flowDateTimePeriodLimit2.Offset = -1; dateTimePeriod1.Start = flowDateTimePeriodLimit2; flowDateTimePeriodLimit3.Interval = DevExpress.DashboardCommon.DateTimeInterval.Day; flowDateTimePeriodLimit3.Offset = 8; dateTimePeriod2.End = flowDateTimePeriodLimit3; dateTimePeriod2.Name = "Next Seven Days"; flowDateTimePeriodLimit4.Interval = DevExpress.DashboardCommon.DateTimeInterval.Day; flowDateTimePeriodLimit4.Offset = 1; dateTimePeriod2.Start = flowDateTimePeriodLimit4; flowDateTimePeriodLimit5.Interval = DevExpress.DashboardCommon.DateTimeInterval.Day; flowDateTimePeriodLimit5.Offset = 1; dateTimePeriod3.End = flowDateTimePeriodLimit5; dateTimePeriod3.Name = "Month-to-Date"; flowDateTimePeriodLimit6.Interval = DevExpress.DashboardCommon.DateTimeInterval.Month; dateTimePeriod3.Start = flowDateTimePeriodLimit6; fixedDateTimePeriodLimit1.Date = new System.DateTime(2019, 1, 18, 0, 0, 0, 0); dateTimePeriod4.End = fixedDateTimePeriodLimit1; dateTimePeriod4.Name = "Jul 18, 2018 - Jan 18, 2019"; fixedDateTimePeriodLimit2.Date = new System.DateTime(2018, 7, 18, 0, 0, 0, 0); dateTimePeriod4.Start = fixedDateTimePeriodLimit2; this.dateFilterDashboardItem1.DateTimePeriods.AddRange(new DevExpress.DashboardCommon.DateTimePeriod[] { dateTimePeriod1, dateTimePeriod2, dateTimePeriod3, dateTimePeriod4 }); this.dateFilterDashboardItem1.Dimension = dimension2; this.dateFilterDashboardItem1.Name = ""; this.dateFilterDashboardItem1.ParentContainer = this.dashboardItemGroup1; this.dateFilterDashboardItem1.ShowCaption = false; // // dashboardItemGroup1 // this.dashboardItemGroup1.ComponentName = "dashboardItemGroup1"; this.dashboardItemGroup1.InteractivityOptions.IgnoreMasterFilters = true; this.dashboardItemGroup1.InteractivityOptions.IsMasterFilter = false; this.dashboardItemGroup1.Name = "Sales by Date"; this.dashboardItemGroup1.ShowCaption = true; // // dashboardExcelDataSource1 // this.dashboardExcelDataSource1.ComponentName = "dashboardExcelDataSource1"; this.dashboardExcelDataSource1.FileName = "SalesPerson.xlsx"; this.dashboardExcelDataSource1.Name = "Excel Data Source 1"; this.dashboardExcelDataSource1.ResultSchemaSerializable = resources.GetString("dashboardExcelDataSource1.ResultSchemaSerializable"); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Data"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.dashboardExcelDataSource1.SourceOptions = excelSourceOptions1; // // Dashboard1 // this.DataSources.AddRange(new DevExpress.DashboardCommon.IDashboardDataSource[] { this.dashboardExcelDataSource1 }); this.Groups.AddRange(new DevExpress.DashboardCommon.DashboardItemGroup[] { this.dashboardItemGroup1 }); this.Items.AddRange(new DevExpress.DashboardCommon.DashboardItem[] { this.chartDashboardItem1, this.dateFilterDashboardItem1 }); dashboardLayoutItem1.DashboardItem = this.dateFilterDashboardItem1; dashboardLayoutItem1.Weight = 30D; dashboardLayoutItem2.DashboardItem = this.chartDashboardItem1; dashboardLayoutItem2.Weight = 70D; dashboardLayoutGroup2.ChildNodes.AddRange(new DevExpress.DashboardCommon.DashboardLayoutNode[] { dashboardLayoutItem1, dashboardLayoutItem2 }); dashboardLayoutGroup2.DashboardItem = this.dashboardItemGroup1; dashboardLayoutGroup2.Weight = 100D; dashboardLayoutGroup1.ChildNodes.AddRange(new DevExpress.DashboardCommon.DashboardLayoutNode[] { dashboardLayoutGroup2 }); dashboardLayoutGroup1.DashboardItem = null; dashboardLayoutGroup1.Orientation = DevExpress.DashboardCommon.DashboardLayoutGroupOrientation.Vertical; dashboardLayoutGroup1.Weight = 100D; this.LayoutRoot = dashboardLayoutGroup1; this.Title.Text = "Dashboard"; ((System.ComponentModel.ISupportInitialize)(dimension1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chartDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateFilterDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardItemGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo25 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo26 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo27 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo28 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo29 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo30 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo31 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo32 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo33 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo34 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo35 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo36 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings3 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions3 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings3); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.fieldCountry1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldProductName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldCategoryName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldExtendedPrice1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit(); this.splitContainerControl1.SuspendLayout(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldCountry1, this.fieldProductName1, this.fieldCategoryName1, this.fieldExtendedPrice1, this.fieldSalesPerson1 }); this.pivotGridControl1.Location = new System.Drawing.Point(0, 0); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(465, 358); this.pivotGridControl1.TabIndex = 0; this.pivotGridControl1.ShowingCustomizationForm += new DevExpress.XtraPivotGrid.CustomizationFormShowingEventHandler(this.pivotGridControl1_ShowingCustomizationForm); // // excelDataSource1 // this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo25.Name = "CategoryName"; fieldInfo25.Type = typeof(string); fieldInfo26.Name = "Country"; fieldInfo26.Type = typeof(string); fieldInfo27.Name = "FirstName"; fieldInfo27.Type = typeof(string); fieldInfo28.Name = "LastName"; fieldInfo28.Type = typeof(string); fieldInfo29.Name = "ProductName"; fieldInfo29.Type = typeof(string); fieldInfo30.Name = "Sales Person"; fieldInfo30.Type = typeof(string); fieldInfo31.Name = "OrderDate"; fieldInfo31.Type = typeof(System.DateTime); fieldInfo32.Name = "OrderID"; fieldInfo32.Type = typeof(double); fieldInfo33.Name = "Quantity"; fieldInfo33.Type = typeof(double); fieldInfo34.Name = "Discount"; fieldInfo34.Type = typeof(double); fieldInfo35.Name = "Extended Price"; fieldInfo35.Type = typeof(double); fieldInfo36.Name = "UnitPrice"; fieldInfo36.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo25, fieldInfo26, fieldInfo27, fieldInfo28, fieldInfo29, fieldInfo30, fieldInfo31, fieldInfo32, fieldInfo33, fieldInfo34, fieldInfo35, fieldInfo36 }); excelWorksheetSettings3.CellRange = null; excelWorksheetSettings3.WorksheetName = "Data"; excelSourceOptions3.ImportSettings = excelWorksheetSettings3; this.excelDataSource1.SourceOptions = excelSourceOptions3; // // fieldCountry1 // this.fieldCountry1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldCountry1.AreaIndex = 0; this.fieldCountry1.Caption = "Country"; this.fieldCountry1.FieldName = "Country"; this.fieldCountry1.Name = "fieldCountry1"; // // fieldProductName1 // this.fieldProductName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldProductName1.AreaIndex = 1; this.fieldProductName1.Caption = "Product Name"; this.fieldProductName1.FieldName = "ProductName"; this.fieldProductName1.Name = "fieldProductName1"; // // fieldCategoryName1 // this.fieldCategoryName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldCategoryName1.AreaIndex = 0; this.fieldCategoryName1.Caption = "Category Name"; this.fieldCategoryName1.FieldName = "CategoryName"; this.fieldCategoryName1.Name = "fieldCategoryName1"; // // fieldExtendedPrice1 // this.fieldExtendedPrice1.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldExtendedPrice1.AreaIndex = 0; this.fieldExtendedPrice1.Caption = "Extended Price"; this.fieldExtendedPrice1.FieldName = "Extended Price"; this.fieldExtendedPrice1.Name = "fieldExtendedPrice1"; // // fieldSalesPerson1 // this.fieldSalesPerson1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldSalesPerson1.AreaIndex = 1; this.fieldSalesPerson1.Caption = "Sales Person"; this.fieldSalesPerson1.FieldName = "Sales Person"; this.fieldSalesPerson1.Name = "fieldSalesPerson1"; // // splitContainerControl1 // this.splitContainerControl1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238))))); this.splitContainerControl1.Appearance.Options.UseBackColor = true; this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainerControl1.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.Panel2; this.splitContainerControl1.Location = new System.Drawing.Point(0, 0); this.splitContainerControl1.Name = "splitContainerControl1"; this.splitContainerControl1.Panel1.Controls.Add(this.pivotGridControl1); this.splitContainerControl1.Panel1.Text = "Panel1"; this.splitContainerControl1.Panel2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple; this.splitContainerControl1.Panel2.Text = "Panel2"; this.splitContainerControl1.Size = new System.Drawing.Size(681, 358); this.splitContainerControl1.SplitterPosition = 206; this.splitContainerControl1.TabIndex = 1; this.splitContainerControl1.Text = "splitContainerControl1"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(681, 358); this.Controls.Add(this.splitContainerControl1); this.Name = "Form1"; this.Text = "StandaloneCustomForm"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit(); this.splitContainerControl1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo11 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo12 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo13 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo14 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo15 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo16 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo17 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo18 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); DevExpress.DataAccess.Excel.FieldInfo fieldInfo19 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo20 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo21 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo22 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo23 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo24 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo25 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo26 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo27 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo28 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo29 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo30 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo31 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo32 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo33 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo34 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo35 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings2 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions2 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings2); this.excelDataSource2_Sayfa = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.documentManager1 = new DevExpress.XtraBars.Docking2010.DocumentManager(this.components); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.noDocumentsView1 = new DevExpress.XtraBars.Docking2010.Views.NoDocuments.NoDocumentsView(this.components); this.tabbedView1 = new DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView(this.components); this.dockManager1 = new DevExpress.XtraBars.Docking.DockManager(this.components); this.dockPanel1 = new DevExpress.XtraBars.Docking.DockPanel(); this.dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer(); this.accordionControl1 = new DevExpress.XtraBars.Navigation.AccordionControl(); this.accordionControlElement1 = new DevExpress.XtraBars.Navigation.AccordionControlElement(); this.ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonStatusBar1 = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.excelDataSourceArkaSayfa = new DevExpress.DataAccess.Excel.ExcelDataSource(); ((System.ComponentModel.ISupportInitialize)(this.documentManager1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.noDocumentsView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tabbedView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dockManager1)).BeginInit(); this.dockPanel1.SuspendLayout(); this.dockPanel1_Container.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.accordionControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); this.SuspendLayout(); // // excelDataSource2_Sayfa // this.excelDataSource2_Sayfa.FileName = "\\\\10.100.13.124\\yenİ sİstem hakedİş\\2020\\HAKEDİŞ_2020_v5.xlsm"; this.excelDataSource2_Sayfa.Name = "excelDataSource2_Sayfa"; this.excelDataSource2_Sayfa.ResultSchemaSerializable = resources.GetString("excelDataSource2_Sayfa.ResultSchemaSerializable"); fieldInfo1.Name = "Column1"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Column2"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "Column3"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "Column4"; fieldInfo4.Type = typeof(string); fieldInfo5.Name = "Column5"; fieldInfo5.Type = typeof(string); fieldInfo6.Name = "Column6"; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "Column7"; fieldInfo7.Type = typeof(string); fieldInfo8.Name = "Column8"; fieldInfo8.Type = typeof(string); fieldInfo9.Name = "Column9"; fieldInfo9.Type = typeof(string); fieldInfo10.Name = "Column10"; fieldInfo10.Type = typeof(string); fieldInfo11.Name = "Column11"; fieldInfo11.Type = typeof(string); fieldInfo12.Name = "Column12"; fieldInfo12.Type = typeof(string); fieldInfo13.Name = "Column13"; fieldInfo13.Type = typeof(string); fieldInfo14.Name = "Column14"; fieldInfo14.Type = typeof(string); fieldInfo15.Name = "Column15"; fieldInfo15.Type = typeof(string); fieldInfo16.Name = "Column16"; fieldInfo16.Type = typeof(string); fieldInfo17.Name = "Column17"; fieldInfo17.Type = typeof(string); fieldInfo18.Name = "Column18"; fieldInfo18.Type = typeof(string); this.excelDataSource2_Sayfa.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10, fieldInfo11, fieldInfo12, fieldInfo13, fieldInfo14, fieldInfo15, fieldInfo16, fieldInfo17, fieldInfo18 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "2. KAPAK"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; excelSourceOptions1.SkipEmptyRows = false; excelSourceOptions1.SkipHiddenColumns = false; excelSourceOptions1.SkipHiddenRows = false; excelSourceOptions1.UseFirstRowAsHeader = false; this.excelDataSource2_Sayfa.SourceOptions = excelSourceOptions1; // // documentManager1 // this.documentManager1.ClientControl = this.panelControl1; this.documentManager1.View = this.noDocumentsView1; this.documentManager1.ViewCollection.AddRange(new DevExpress.XtraBars.Docking2010.Views.BaseView[] { this.noDocumentsView1, this.tabbedView1 }); // // panelControl1 // this.panelControl1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl1.Location = new System.Drawing.Point(200, 150); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(682, 445); this.panelControl1.TabIndex = 4; // // dockManager1 // this.dockManager1.Form = this; this.dockManager1.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { this.dockPanel1 }); this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.MenuStrip", "System.Windows.Forms.StatusStrip", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl", "DevExpress.XtraBars.Navigation.OfficeNavigationBar", "DevExpress.XtraBars.Navigation.TileNavPane", "DevExpress.XtraBars.TabFormControl", "DevExpress.XtraBars.FluentDesignSystem.FluentDesignFormControl", "DevExpress.XtraBars.ToolbarForm.ToolbarFormControl" }); // // dockPanel1 // this.dockPanel1.Controls.Add(this.dockPanel1_Container); this.dockPanel1.Dock = DevExpress.XtraBars.Docking.DockingStyle.Left; this.dockPanel1.ID = new System.Guid("726589cb-bd89-4638-8712-34d345a99005"); this.dockPanel1.Location = new System.Drawing.Point(0, 150); this.dockPanel1.Name = "dockPanel1"; this.dockPanel1.OriginalSize = new System.Drawing.Size(200, 200); this.dockPanel1.Size = new System.Drawing.Size(200, 445); this.dockPanel1.Text = "dockPanel1"; // // dockPanel1_Container // this.dockPanel1_Container.Controls.Add(this.accordionControl1); this.dockPanel1_Container.Location = new System.Drawing.Point(3, 26); this.dockPanel1_Container.Name = "dockPanel1_Container"; this.dockPanel1_Container.Size = new System.Drawing.Size(193, 416); this.dockPanel1_Container.TabIndex = 0; // // accordionControl1 // this.accordionControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.accordionControl1.Elements.AddRange(new DevExpress.XtraBars.Navigation.AccordionControlElement[] { this.accordionControlElement1 }); this.accordionControl1.Location = new System.Drawing.Point(0, 0); this.accordionControl1.Name = "accordionControl1"; this.accordionControl1.Size = new System.Drawing.Size(193, 416); this.accordionControl1.TabIndex = 0; // // accordionControlElement1 // this.accordionControlElement1.Name = "accordionControlElement1"; this.accordionControlElement1.Text = "accordionControlElement1"; // // ribbonControl1 // this.ribbonControl1.ExpandCollapseItem.Id = 0; this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.ribbonControl1.ExpandCollapseItem, this.ribbonControl1.SearchEditItem, this.barButtonItem1 }); this.ribbonControl1.Location = new System.Drawing.Point(0, 0); this.ribbonControl1.MaxItemId = 2; this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage1 }); this.ribbonControl1.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2019; this.ribbonControl1.Size = new System.Drawing.Size(1068, 150); this.ribbonControl1.StatusBar = this.ribbonStatusBar1; // // barButtonItem1 // this.barButtonItem1.Caption = "barButtonItem1"; this.barButtonItem1.Id = 1; this.barButtonItem1.Name = "barButtonItem1"; this.barButtonItem1.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem1_ItemClick); // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup1 }); this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "ribbonPage1"; // // ribbonPageGroup1 // this.ribbonPageGroup1.ItemLinks.Add(this.barButtonItem1); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; this.ribbonPageGroup1.Text = "ribbonPageGroup1"; // // ribbonStatusBar1 // this.ribbonStatusBar1.Location = new System.Drawing.Point(0, 595); this.ribbonStatusBar1.Name = "ribbonStatusBar1"; this.ribbonStatusBar1.Ribbon = this.ribbonControl1; this.ribbonStatusBar1.Size = new System.Drawing.Size(1068, 27); // // layoutControl1 // this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Right; this.layoutControl1.Location = new System.Drawing.Point(882, 150); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(186, 445); this.layoutControl1.TabIndex = 3; this.layoutControl1.Text = "layoutControl1"; // // layoutControlGroup1 // this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(186, 445); this.layoutControlGroup1.TextVisible = false; // // excelDataSourceArkaSayfa // this.excelDataSourceArkaSayfa.FileName = "\\\\10.100.13.124\\yenİ sİstem hakedİş\\2020\\HAKEDİŞ_2020_v5.xlsm"; this.excelDataSourceArkaSayfa.Name = "excelDataSourceArkaSayfa"; this.excelDataSourceArkaSayfa.ResultSchemaSerializable = resources.GetString("excelDataSourceArkaSayfa.ResultSchemaSerializable"); fieldInfo19.Name = "Column1"; fieldInfo19.Type = typeof(string); fieldInfo20.Name = "Column2"; fieldInfo20.Type = typeof(string); fieldInfo21.Name = "Column3"; fieldInfo21.Type = typeof(string); fieldInfo22.Name = "Column4"; fieldInfo22.Type = typeof(string); fieldInfo23.Name = "Column5"; fieldInfo23.Type = typeof(string); fieldInfo24.Name = "Column6"; fieldInfo24.Type = typeof(string); fieldInfo25.Name = "Column7"; fieldInfo25.Type = typeof(string); fieldInfo26.Name = "Column8"; fieldInfo26.Type = typeof(string); fieldInfo27.Name = "Column9"; fieldInfo27.Type = typeof(string); fieldInfo28.Name = "Column10"; fieldInfo28.Type = typeof(string); fieldInfo29.Name = "Column11"; fieldInfo29.Type = typeof(string); fieldInfo30.Name = "Column12"; fieldInfo30.Type = typeof(string); fieldInfo31.Name = "Column13"; fieldInfo31.Type = typeof(string); fieldInfo32.Name = "Column14"; fieldInfo32.Type = typeof(string); fieldInfo33.Name = "Column15"; fieldInfo33.Type = typeof(string); fieldInfo34.Name = "Column16"; fieldInfo34.Type = typeof(string); fieldInfo35.Name = "Column17"; fieldInfo35.Type = typeof(string); this.excelDataSourceArkaSayfa.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo19, fieldInfo20, fieldInfo21, fieldInfo22, fieldInfo23, fieldInfo24, fieldInfo25, fieldInfo26, fieldInfo27, fieldInfo28, fieldInfo29, fieldInfo30, fieldInfo31, fieldInfo32, fieldInfo33, fieldInfo34, fieldInfo35 }); excelWorksheetSettings2.CellRange = null; excelWorksheetSettings2.WorksheetName = "ARKA SYF"; excelSourceOptions2.ImportSettings = excelWorksheetSettings2; excelSourceOptions2.SkipEmptyRows = false; excelSourceOptions2.SkipHiddenColumns = false; excelSourceOptions2.SkipHiddenRows = false; excelSourceOptions2.UseFirstRowAsHeader = false; this.excelDataSourceArkaSayfa.SourceOptions = excelSourceOptions2; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1068, 622); this.Controls.Add(this.panelControl1); this.Controls.Add(this.layoutControl1); this.Controls.Add(this.dockPanel1); this.Controls.Add(this.ribbonStatusBar1); this.Controls.Add(this.ribbonControl1); this.Name = "Form1"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.documentManager1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.noDocumentsView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tabbedView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dockManager1)).EndInit(); this.dockPanel1.ResumeLayout(false); this.dockPanel1_Container.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.accordionControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(XtraReport2)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.CsvSourceOptions csvSourceOptions1 = new DevExpress.DataAccess.Excel.CsvSourceOptions(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo11 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo12 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo13 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo14 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo15 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo16 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo17 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo18 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo19 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); DevExpress.DataAccess.Json.CustomJsonSource customJsonSource1 = new DevExpress.DataAccess.Json.CustomJsonSource(); DevExpress.DataAccess.Json.JsonSchemaNode jsonSchemaNode1 = new DevExpress.DataAccess.Json.JsonSchemaNode(); DevExpress.DataAccess.Json.JsonSchemaNode jsonSchemaNode2 = new DevExpress.DataAccess.Json.JsonSchemaNode(); DevExpress.XtraCharts.Series series1 = new DevExpress.XtraCharts.Series(); DevExpress.XtraCharts.PieSeriesLabel pieSeriesLabel1 = new DevExpress.XtraCharts.PieSeriesLabel(); DevExpress.XtraCharts.PieSeriesView pieSeriesView1 = new DevExpress.XtraCharts.PieSeriesView(); DevExpress.XtraCharts.ChartTitle chartTitle1 = new DevExpress.XtraCharts.ChartTitle(); DevExpress.XtraCharts.XYDiagram xyDiagram1 = new DevExpress.XtraCharts.XYDiagram(); DevExpress.XtraCharts.Series series2 = new DevExpress.XtraCharts.Series(); DevExpress.XtraCharts.ChartTitle chartTitle2 = new DevExpress.XtraCharts.ChartTitle(); DevExpress.XtraCharts.Series series3 = new DevExpress.XtraCharts.Series(); DevExpress.XtraCharts.PieSeriesLabel pieSeriesLabel2 = new DevExpress.XtraCharts.PieSeriesLabel(); DevExpress.XtraCharts.PieSeriesView pieSeriesView2 = new DevExpress.XtraCharts.PieSeriesView(); DevExpress.XtraCharts.ChartTitle chartTitle3 = new DevExpress.XtraCharts.ChartTitle(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo20 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo21 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.CsvSourceOptions csvSourceOptions2 = new DevExpress.DataAccess.Excel.CsvSourceOptions(); this.excelDataSource3 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.jsonDataSource1 = new DevExpress.DataAccess.Json.JsonDataSource(this.components); this.Title = new DevExpress.XtraReports.UI.XRControlStyle(); this.DetailCaption1 = new DevExpress.XtraReports.UI.XRControlStyle(); this.DetailData1 = new DevExpress.XtraReports.UI.XRControlStyle(); this.DetailData3_Odd = new DevExpress.XtraReports.UI.XRControlStyle(); this.PageInfo = new DevExpress.XtraReports.UI.XRControlStyle(); this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand(); this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand(); this.pageInfo1 = new DevExpress.XtraReports.UI.XRPageInfo(); this.pageInfo2 = new DevExpress.XtraReports.UI.XRPageInfo(); this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); this.label1 = new DevExpress.XtraReports.UI.XRLabel(); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.xrChart2 = new DevExpress.XtraReports.UI.XRChart(); this.xrChart3 = new DevExpress.XtraReports.UI.XRChart(); this.xrChart1 = new DevExpress.XtraReports.UI.XRChart(); this.xrPivotGrid1 = new DevExpress.XtraReports.UI.XRPivotGrid(); this.excelDataSource2 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.xrPivotGridField2 = new DevExpress.XtraReports.UI.PivotGrid.XRPivotGridField(); this.xrPivotGridField4 = new DevExpress.XtraReports.UI.PivotGrid.XRPivotGridField(); this.FolderDate = new DevExpress.XtraReports.Parameters.Parameter(); this.ROI = new DevExpress.XtraReports.Parameters.Parameter(); this.xrPivotGridField1 = new DevExpress.XtraReports.UI.PivotGrid.XRPivotGridField(); ((System.ComponentModel.ISupportInitialize)(this.xrChart2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(series1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesLabel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrChart3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(xyDiagram1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(series2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrChart1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(series3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesLabel2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // excelDataSource3 // this.excelDataSource3.FileName = "C:\\repos\\miles\\SFX Trade Panel\\Archive r3 - May 2018 (updated) -lite\\Strat Trade " + "Files-20180424-170500\\PieChartTotal.csv"; this.excelDataSource3.Name = "excelDataSource3"; this.excelDataSource3.ResultSchemaSerializable = resources.GetString("excelDataSource3.ResultSchemaSerializable"); fieldInfo1.Name = "Items"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Transactions"; fieldInfo2.Type = typeof(double); fieldInfo3.Name = "NetPnl"; fieldInfo3.Type = typeof(double); fieldInfo4.Name = "NetPips"; fieldInfo4.Type = typeof(double); this.excelDataSource3.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4 }); csvSourceOptions1.Culture = new System.Globalization.CultureInfo(""); csvSourceOptions1.DetectNewlineType = true; csvSourceOptions1.DetectValueSeparator = true; csvSourceOptions1.Encoding = ((System.Text.Encoding)(resources.GetObject("csvSourceOptions1.Encoding"))); csvSourceOptions1.NewlineType = DevExpress.DataAccess.Excel.CsvNewlineType.LF; this.excelDataSource3.SourceOptions = csvSourceOptions1; // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\repos\\miles\\SFX Trade Panel\\Archive r3 - May 2018 (updated) -lite\\Strat Trade " + "Files-20180424-170500\\DetailedReportStatement_stratmator_9010_20180424-170000_Tr" + "ade.xlsx"; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo5.Name = "Ticket"; fieldInfo5.Type = typeof(double); fieldInfo6.Name = "Open Time"; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "Type"; fieldInfo7.Type = typeof(string); fieldInfo8.Name = "Size"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "Item"; fieldInfo9.Type = typeof(string); fieldInfo10.Name = "Price"; fieldInfo10.Type = typeof(double); fieldInfo11.Name = "S / L"; fieldInfo11.Type = typeof(double); fieldInfo12.Name = "T / P"; fieldInfo12.Type = typeof(double); fieldInfo13.Name = "Close Time"; fieldInfo13.Type = typeof(string); fieldInfo14.Name = "Column10"; fieldInfo14.Type = typeof(double); fieldInfo15.Name = "Commission"; fieldInfo15.Type = typeof(double); fieldInfo16.Name = "Taxes"; fieldInfo16.Type = typeof(double); fieldInfo17.Name = "Swap"; fieldInfo17.Type = typeof(double); fieldInfo18.Name = "Profit"; fieldInfo18.Type = typeof(double); fieldInfo19.Name = "Comment"; fieldInfo19.Type = typeof(string); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10, fieldInfo11, fieldInfo12, fieldInfo13, fieldInfo14, fieldInfo15, fieldInfo16, fieldInfo17, fieldInfo18, fieldInfo19 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "DetailedReportStatement_stratma"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // jsonDataSource1 // customJsonSource1.Json = "{\'date\': \'dateValue\'}"; this.jsonDataSource1.JsonSource = customJsonSource1; this.jsonDataSource1.Name = "jsonDataSource1"; jsonSchemaNode2.Value = new DevExpress.DataAccess.Json.JsonNode("date", true, DevExpress.DataAccess.Json.JsonNodeType.Property, typeof(string)); jsonSchemaNode1.Nodes.AddRange(new DevExpress.DataAccess.Node <DevExpress.DataAccess.Json.JsonNode>[] { jsonSchemaNode2 }); jsonSchemaNode1.Value = new DevExpress.DataAccess.Json.JsonNode("root", true); this.jsonDataSource1.Schema = jsonSchemaNode1; // // Title // this.Title.BackColor = System.Drawing.Color.Transparent; this.Title.BorderColor = System.Drawing.Color.Black; this.Title.Borders = DevExpress.XtraPrinting.BorderSide.None; this.Title.BorderWidth = 1F; this.Title.Font = new System.Drawing.Font("Arial", 14.25F); this.Title.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(75)))), ((int)(((byte)(75))))); this.Title.Name = "Title"; // // DetailCaption1 // this.DetailCaption1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(75)))), ((int)(((byte)(75))))); this.DetailCaption1.BorderColor = System.Drawing.Color.White; this.DetailCaption1.Borders = DevExpress.XtraPrinting.BorderSide.Left; this.DetailCaption1.BorderWidth = 2F; this.DetailCaption1.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold); this.DetailCaption1.ForeColor = System.Drawing.Color.White; this.DetailCaption1.Name = "DetailCaption1"; this.DetailCaption1.Padding = new DevExpress.XtraPrinting.PaddingInfo(6, 6, 0, 0, 100F); this.DetailCaption1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; // // DetailData1 // this.DetailData1.BorderColor = System.Drawing.Color.Transparent; this.DetailData1.Borders = DevExpress.XtraPrinting.BorderSide.Left; this.DetailData1.BorderWidth = 2F; this.DetailData1.Font = new System.Drawing.Font("Arial", 8.25F); this.DetailData1.ForeColor = System.Drawing.Color.Black; this.DetailData1.Name = "DetailData1"; this.DetailData1.Padding = new DevExpress.XtraPrinting.PaddingInfo(6, 6, 0, 0, 100F); this.DetailData1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; // // DetailData3_Odd // this.DetailData3_Odd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(231))))); this.DetailData3_Odd.BorderColor = System.Drawing.Color.Transparent; this.DetailData3_Odd.Borders = DevExpress.XtraPrinting.BorderSide.None; this.DetailData3_Odd.BorderWidth = 1F; this.DetailData3_Odd.Font = new System.Drawing.Font("Arial", 8.25F); this.DetailData3_Odd.ForeColor = System.Drawing.Color.Black; this.DetailData3_Odd.Name = "DetailData3_Odd"; this.DetailData3_Odd.Padding = new DevExpress.XtraPrinting.PaddingInfo(6, 6, 0, 0, 100F); this.DetailData3_Odd.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; // // PageInfo // this.PageInfo.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold); this.PageInfo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(75)))), ((int)(((byte)(75))))); this.PageInfo.Name = "PageInfo"; this.PageInfo.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); // // TopMargin // this.TopMargin.HeightF = 31F; this.TopMargin.Name = "TopMargin"; // // BottomMargin // this.BottomMargin.Name = "BottomMargin"; // // pageInfo1 // this.pageInfo1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 552.9166F); this.pageInfo1.Name = "pageInfo1"; this.pageInfo1.PageInfo = DevExpress.XtraPrinting.PageInfo.DateTime; this.pageInfo1.SizeF = new System.Drawing.SizeF(313F, 23F); this.pageInfo1.StyleName = "PageInfo"; // // pageInfo2 // this.pageInfo2.LocationFloat = new DevExpress.Utils.PointFloat(454F, 552.9166F); this.pageInfo2.Name = "pageInfo2"; this.pageInfo2.SizeF = new System.Drawing.SizeF(313F, 23F); this.pageInfo2.StyleName = "PageInfo"; this.pageInfo2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; this.pageInfo2.TextFormatString = "Page {0} of {1}"; // // ReportHeader // this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel2, this.xrLabel1, this.label1 }); this.ReportHeader.HeightF = 26.29164F; this.ReportHeader.Name = "ReportHeader"; // // xrLabel2 // this.xrLabel2.BackColor = System.Drawing.Color.White; this.xrLabel2.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] { new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "?ROI") }); this.xrLabel2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold); this.xrLabel2.ForeColor = System.Drawing.Color.Red; this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); this.xrLabel2.Multiline = true; this.xrLabel2.Name = "xrLabel2"; this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel2.SizeF = new System.Drawing.SizeF(70.58334F, 24.19432F); this.xrLabel2.StylePriority.UseBackColor = false; this.xrLabel2.StylePriority.UseFont = false; this.xrLabel2.StylePriority.UseForeColor = false; this.xrLabel2.StylePriority.UseTextAlignment = false; this.xrLabel2.Text = "xrLabel2"; this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; // // xrLabel1 // this.xrLabel1.BackColor = System.Drawing.Color.White; this.xrLabel1.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] { new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "?FolderDate") }); this.xrLabel1.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Italic); this.xrLabel1.ForeColor = System.Drawing.Color.Gray; this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(596.0833F, 0F); this.xrLabel1.Multiline = true; this.xrLabel1.Name = "xrLabel1"; this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel1.SizeF = new System.Drawing.SizeF(179.9167F, 24.19432F); this.xrLabel1.StylePriority.UseBackColor = false; this.xrLabel1.StylePriority.UseFont = false; this.xrLabel1.StylePriority.UseForeColor = false; this.xrLabel1.StylePriority.UseTextAlignment = false; this.xrLabel1.Text = "xrLabel1"; this.xrLabel1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; // // label1 // this.label1.BackColor = System.Drawing.Color.White; this.label1.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold); this.label1.ForeColor = System.Drawing.Color.OrangeRed; this.label1.LocationFloat = new DevExpress.Utils.PointFloat(70.58334F, 0F); this.label1.Name = "label1"; this.label1.SizeF = new System.Drawing.SizeF(490.0833F, 24.19433F); this.label1.StyleName = "Title"; this.label1.StylePriority.UseBackColor = false; this.label1.StylePriority.UseFont = false; this.label1.StylePriority.UseForeColor = false; this.label1.Text = "STRATAGEM FX-DAILY PANEL"; // // Detail // this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrChart2, this.xrChart3, this.xrChart1, this.pageInfo2, this.pageInfo1, this.xrPivotGrid1 }); this.Detail.HeightF = 846.9166F; this.Detail.Name = "Detail"; // // xrChart2 // this.xrChart2.BackColor = System.Drawing.Color.White; this.xrChart2.BorderColor = System.Drawing.Color.Black; this.xrChart2.Borders = DevExpress.XtraPrinting.BorderSide.None; this.xrChart2.DataSource = this.excelDataSource3; this.xrChart2.Legend.Name = "Default Legend"; this.xrChart2.Legend.Visibility = DevExpress.Utils.DefaultBoolean.True; this.xrChart2.LocationFloat = new DevExpress.Utils.PointFloat(313F, 12.66675F); this.xrChart2.Name = "xrChart2"; this.xrChart2.PaletteName = "Aspect"; series1.ArgumentDataMember = "Items"; pieSeriesLabel1.TextPattern = "{V:$0.00}"; series1.Label = pieSeriesLabel1; series1.Name = "Series 1"; series1.ValueDataMembersSerializable = "NetPips"; series1.View = pieSeriesView1; this.xrChart2.SeriesSerializable = new DevExpress.XtraCharts.Series[] { series1 }; this.xrChart2.SizeF = new System.Drawing.SizeF(464F, 294F); this.xrChart2.StylePriority.UseBackColor = false; this.xrChart2.StylePriority.UseBorders = false; chartTitle1.Text = "Realized NetPips"; this.xrChart2.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] { chartTitle1 }); // // xrChart3 // this.xrChart3.BorderColor = System.Drawing.Color.Black; this.xrChart3.Borders = DevExpress.XtraPrinting.BorderSide.None; this.xrChart3.DataSource = this.excelDataSource3; xyDiagram1.AxisX.VisibleInPanesSerializable = "-1"; xyDiagram1.AxisY.VisibleInPanesSerializable = "-1"; xyDiagram1.DefaultPane.EnableAxisXScrolling = DevExpress.Utils.DefaultBoolean.False; xyDiagram1.DefaultPane.EnableAxisXZooming = DevExpress.Utils.DefaultBoolean.False; xyDiagram1.DefaultPane.EnableAxisYScrolling = DevExpress.Utils.DefaultBoolean.False; xyDiagram1.DefaultPane.EnableAxisYZooming = DevExpress.Utils.DefaultBoolean.False; this.xrChart3.Diagram = xyDiagram1; this.xrChart3.Legend.AlignmentHorizontal = DevExpress.XtraCharts.LegendAlignmentHorizontal.Center; this.xrChart3.Legend.AlignmentVertical = DevExpress.XtraCharts.LegendAlignmentVertical.BottomOutside; this.xrChart3.Legend.ItemVisibilityMode = DevExpress.XtraCharts.LegendItemVisibilityMode.AutoGeneratedAndCustom; this.xrChart3.Legend.MarkerMode = DevExpress.XtraCharts.LegendMarkerMode.CheckBox; this.xrChart3.Legend.Name = "Default Legend"; this.xrChart3.Legend.Visibility = DevExpress.Utils.DefaultBoolean.False; this.xrChart3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 319.1667F); this.xrChart3.Name = "xrChart3"; series2.ArgumentDataMember = "Items"; series2.DataSource = this.excelDataSource3; series2.Name = "Series 1"; series2.ShowInLegend = false; series2.ValueDataMembersSerializable = "Transactions"; this.xrChart3.SeriesSerializable = new DevExpress.XtraCharts.Series[] { series2 }; this.xrChart3.SizeF = new System.Drawing.SizeF(294F, 233.75F); chartTitle2.Text = "Transactions"; this.xrChart3.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] { chartTitle2 }); // // xrChart1 // this.xrChart1.BackColor = System.Drawing.Color.White; this.xrChart1.BorderColor = System.Drawing.Color.Black; this.xrChart1.Borders = DevExpress.XtraPrinting.BorderSide.None; this.xrChart1.DataSource = this.excelDataSource3; this.xrChart1.Legend.Name = "Default Legend"; this.xrChart1.Legend.Visibility = DevExpress.Utils.DefaultBoolean.True; this.xrChart1.LocationFloat = new DevExpress.Utils.PointFloat(313F, 319.1667F); this.xrChart1.Name = "xrChart1"; this.xrChart1.PaletteName = "Aspect"; series3.ArgumentDataMember = "Items"; pieSeriesLabel2.TextPattern = "{V:$0.00}"; series3.Label = pieSeriesLabel2; series3.Name = "Series 1"; series3.ValueDataMembersSerializable = "NetPnl"; series3.View = pieSeriesView2; this.xrChart1.SeriesSerializable = new DevExpress.XtraCharts.Series[] { series3 }; this.xrChart1.SizeF = new System.Drawing.SizeF(454F, 294F); this.xrChart1.StylePriority.UseBackColor = false; this.xrChart1.StylePriority.UseBorders = false; chartTitle3.Text = "Realized NetPnL"; this.xrChart1.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] { chartTitle3 }); // // xrPivotGrid1 // this.xrPivotGrid1.Appearance.Cell.Font = new System.Drawing.Font("Tahoma", 8.25F); this.xrPivotGrid1.Appearance.CustomTotalCell.Font = new System.Drawing.Font("Tahoma", 8.25F); this.xrPivotGrid1.Appearance.FieldHeader.BackColor = System.Drawing.Color.White; this.xrPivotGrid1.Appearance.FieldHeader.Font = new System.Drawing.Font("Tahoma", 8.25F); this.xrPivotGrid1.Appearance.FieldHeader.ForeColor = System.Drawing.Color.OrangeRed; this.xrPivotGrid1.Appearance.FieldValue.BackColor = System.Drawing.Color.White; this.xrPivotGrid1.Appearance.FieldValue.Font = new System.Drawing.Font("Tahoma", 8.25F); this.xrPivotGrid1.Appearance.FieldValueGrandTotal.Font = new System.Drawing.Font("Tahoma", 8.25F); this.xrPivotGrid1.Appearance.FieldValueTotal.Font = new System.Drawing.Font("Tahoma", 8.25F); this.xrPivotGrid1.Appearance.GrandTotalCell.Font = new System.Drawing.Font("Tahoma", 8.25F); this.xrPivotGrid1.Appearance.Lines.Font = new System.Drawing.Font("Tahoma", 8.25F); this.xrPivotGrid1.Appearance.TotalCell.Font = new System.Drawing.Font("Tahoma", 8.25F); this.xrPivotGrid1.DataSource = this.excelDataSource2; this.xrPivotGrid1.Fields.AddRange(new DevExpress.XtraReports.UI.PivotGrid.XRPivotGridField[] { this.xrPivotGridField2, this.xrPivotGridField4 }); this.xrPivotGrid1.LocationFloat = new DevExpress.Utils.PointFloat(9.999998F, 10.00001F); this.xrPivotGrid1.Name = "xrPivotGrid1"; this.xrPivotGrid1.OptionsChartDataSource.ProvideDataFieldsOnSeries = true; this.xrPivotGrid1.OptionsPrint.FilterSeparatorBarPadding = 3; this.xrPivotGrid1.OptionsPrint.PrintFilterHeaders = DevExpress.Utils.DefaultBoolean.False; this.xrPivotGrid1.OptionsView.ColumnTotalsLocation = DevExpress.XtraPivotGrid.PivotTotalsLocation.Near; this.xrPivotGrid1.OptionsView.GroupFieldsInCustomizationWindow = false; this.xrPivotGrid1.OptionsView.ShowColumnGrandTotalHeader = false; this.xrPivotGrid1.OptionsView.ShowColumnGrandTotals = false; this.xrPivotGrid1.OptionsView.ShowColumnHeaders = false; this.xrPivotGrid1.OptionsView.ShowColumnTotals = false; this.xrPivotGrid1.OptionsView.ShowFilterHeaders = false; this.xrPivotGrid1.OptionsView.ShowRowGrandTotalHeader = false; this.xrPivotGrid1.OptionsView.ShowRowGrandTotals = false; this.xrPivotGrid1.OptionsView.ShowRowTotals = false; this.xrPivotGrid1.SizeF = new System.Drawing.SizeF(288.4167F, 296.6667F); this.xrPivotGrid1.CustomFieldValueCells += new System.EventHandler <DevExpress.XtraReports.UI.PivotGrid.PivotCustomFieldValueCellsEventArgs>(this.xrPivotGrid1_CustomFieldValueCells); // // excelDataSource2 // this.excelDataSource2.FileName = "C:\\repos\\miles\\SFX Trade Panel\\Archive r3 - May 2018 (updated) -lite\\Strat Trade " + "Files-20180424-170500\\ExecSumReport_stratmator_9010_20180424-170000.csv"; this.excelDataSource2.Name = "excelDataSource2"; this.excelDataSource2.ResultSchemaSerializable = "PFZpZXc+PEZpZWxkIE5hbWU9Ik5hbWUiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0iVmFsdWUiI" + "FR5cGU9IlN0cmluZyIgLz48L1ZpZXc+"; fieldInfo20.Name = "Name"; fieldInfo20.Type = typeof(string); fieldInfo21.Name = "Value"; fieldInfo21.Type = typeof(string); this.excelDataSource2.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo20, fieldInfo21 }); csvSourceOptions2.Culture = new System.Globalization.CultureInfo(""); csvSourceOptions2.DetectNewlineType = true; csvSourceOptions2.DetectValueSeparator = true; csvSourceOptions2.Encoding = ((System.Text.Encoding)(resources.GetObject("csvSourceOptions2.Encoding"))); csvSourceOptions2.UseFirstRowAsHeader = false; this.excelDataSource2.SourceOptions = csvSourceOptions2; // // xrPivotGridField2 // this.xrPivotGridField2.Appearance.FieldHeader.BackColor = System.Drawing.Color.White; this.xrPivotGridField2.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.xrPivotGridField2.AreaIndex = 0; this.xrPivotGridField2.FieldName = "Name"; this.xrPivotGridField2.Name = "xrPivotGridField2"; this.xrPivotGridField2.Options.ShowCustomTotals = false; this.xrPivotGridField2.Options.ShowGrandTotal = false; this.xrPivotGridField2.Options.ShowTotals = false; this.xrPivotGridField2.SummaryDisplayType = DevExpress.Data.PivotGrid.PivotSummaryDisplayType.PercentVariation; this.xrPivotGridField2.Width = 122; // // xrPivotGridField4 // this.xrPivotGridField4.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.xrPivotGridField4.AreaIndex = 1; this.xrPivotGridField4.FieldName = "Value"; this.xrPivotGridField4.Name = "xrPivotGridField4"; this.xrPivotGridField4.Options.ShowCustomTotals = false; this.xrPivotGridField4.Options.ShowGrandTotal = false; this.xrPivotGridField4.Options.ShowTotals = false; this.xrPivotGridField4.Width = 168; // // FolderDate // this.FolderDate.Description = "Date parsed from the folder name"; this.FolderDate.Name = "FolderDate"; this.FolderDate.Type = typeof(int); this.FolderDate.ValueInfo = "0"; // // ROI // this.ROI.Description = "ROI percentage value"; this.ROI.Name = "ROI"; this.ROI.Type = typeof(int); this.ROI.ValueInfo = "0"; // // xrPivotGridField1 // this.xrPivotGridField1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.xrPivotGridField1.AreaIndex = 0; this.xrPivotGridField1.Name = "xrPivotGridField1"; // // XtraReport2 // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.TopMargin, this.BottomMargin, this.ReportHeader, this.Detail }); this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] { this.jsonDataSource1, this.excelDataSource1, this.excelDataSource2, this.excelDataSource3 }); this.DataSource = this.jsonDataSource1; this.Font = new System.Drawing.Font("Arial", 9.75F); this.Margins = new System.Drawing.Printing.Margins(40, 33, 31, 100); this.Parameters.AddRange(new DevExpress.XtraReports.Parameters.Parameter[] { this.FolderDate, this.ROI }); this.StyleSheet.AddRange(new DevExpress.XtraReports.UI.XRControlStyle[] { this.Title, this.DetailCaption1, this.DetailData1, this.DetailData3_Odd, this.PageInfo }); this.Version = "18.2"; ((System.ComponentModel.ISupportInitialize)(pieSeriesLabel1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(series1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrChart2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(xyDiagram1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(series2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrChart3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesLabel2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesView2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(series3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrChart1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo11 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo12 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.fieldCategoryName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldProductName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldExtendedPrice1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.button1 = new System.Windows.Forms.Button(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.Cursor = System.Windows.Forms.Cursors.Default; this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldCategoryName1, this.fieldProductName1, this.fieldSalesPerson1, this.fieldExtendedPrice1 }); this.pivotGridControl1.Location = new System.Drawing.Point(0, 49); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(695, 349); this.pivotGridControl1.TabIndex = 0; // // excelDataSource1 // this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "CategoryName"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Country"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "FirstName"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "LastName"; fieldInfo4.Type = typeof(string); fieldInfo5.Name = "ProductName"; fieldInfo5.Type = typeof(string); fieldInfo6.Name = "Sales Person"; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "OrderDate"; fieldInfo7.Type = typeof(System.DateTime); fieldInfo8.Name = "OrderID"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "Quantity"; fieldInfo9.Type = typeof(double); fieldInfo10.Name = "Discount"; fieldInfo10.Type = typeof(double); fieldInfo11.Name = "Extended Price"; fieldInfo11.Type = typeof(double); fieldInfo12.Name = "UnitPrice"; fieldInfo12.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10, fieldInfo11, fieldInfo12 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Data"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // fieldCategoryName1 // this.fieldCategoryName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldCategoryName1.AreaIndex = 0; this.fieldCategoryName1.Caption = "Category Name"; this.fieldCategoryName1.FieldName = "CategoryName"; this.fieldCategoryName1.Name = "fieldCategoryName1"; // // fieldProductName1 // this.fieldProductName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldProductName1.AreaIndex = 1; this.fieldProductName1.Caption = "Product Name"; this.fieldProductName1.FieldName = "ProductName"; this.fieldProductName1.Name = "fieldProductName1"; // // fieldSalesPerson1 // this.fieldSalesPerson1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldSalesPerson1.AreaIndex = 0; this.fieldSalesPerson1.Caption = "Sales Person"; this.fieldSalesPerson1.FieldName = "Sales Person"; this.fieldSalesPerson1.Name = "fieldSalesPerson1"; // // fieldExtendedPrice1 // this.fieldExtendedPrice1.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldExtendedPrice1.AreaIndex = 0; this.fieldExtendedPrice1.Caption = "Extended Price"; this.fieldExtendedPrice1.FieldName = "Extended Price"; this.fieldExtendedPrice1.Name = "fieldExtendedPrice1"; // // button1 // this.button1.Location = new System.Drawing.Point(12, 12); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(166, 23); this.button1.TabIndex = 1; this.button1.Text = "Export Selected Cells to .XLSX"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // panelControl1 // this.panelControl1.Controls.Add(this.button1); this.panelControl1.Dock = System.Windows.Forms.DockStyle.Top; this.panelControl1.Location = new System.Drawing.Point(0, 0); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(695, 49); this.panelControl1.TabIndex = 2; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(695, 398); this.Controls.Add(this.pivotGridControl1); this.Controls.Add(this.panelControl1); this.Name = "Form1"; this.Text = "How to Export Selected Cells"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form_Traffic_Cell)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.ribbon = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.Grid_Traffic_Cell = new DevExpress.XtraGrid.GridControl(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.col시작_구간 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col종료_구간 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col방향 = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemComboBox1 = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); this.col칸수 = new DevExpress.XtraGrid.Columns.GridColumn(); this.panel1 = new System.Windows.Forms.Panel(); this.CB_Way = new System.Windows.Forms.ComboBox(); this.label5 = new System.Windows.Forms.Label(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton4 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton3 = new DevExpress.XtraEditors.SimpleButton(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.TB_Cell_Count = new System.Windows.Forms.TextBox(); this.TB_End_Index = new System.Windows.Forms.TextBox(); this.TB_Start_Index = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.ribbon)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Grid_Traffic_Cell)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // ribbon // this.ribbon.ExpandCollapseItem.Id = 0; this.ribbon.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.ribbon.ExpandCollapseItem }); this.ribbon.Location = new System.Drawing.Point(0, 0); this.ribbon.MaxItemId = 1; this.ribbon.Name = "ribbon"; this.ribbon.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; this.ribbon.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; this.ribbon.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; this.ribbon.ShowPageHeadersInFormCaption = DevExpress.Utils.DefaultBoolean.False; this.ribbon.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; this.ribbon.ShowQatLocationSelector = false; this.ribbon.ShowToolbarCustomizeItem = false; this.ribbon.Size = new System.Drawing.Size(918, 30); this.ribbon.Toolbar.ShowCustomizeItem = false; // // Grid_Traffic_Cell // this.Grid_Traffic_Cell.DataSource = this.excelDataSource1; this.Grid_Traffic_Cell.Location = new System.Drawing.Point(0, 186); this.Grid_Traffic_Cell.MainView = this.gridView1; this.Grid_Traffic_Cell.MenuManager = this.ribbon; this.Grid_Traffic_Cell.Name = "Grid_Traffic_Cell"; this.Grid_Traffic_Cell.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemComboBox1 }); this.Grid_Traffic_Cell.Size = new System.Drawing.Size(905, 365); this.Grid_Traffic_Cell.TabIndex = 45; this.Grid_Traffic_Cell.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 }); // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\SDI_DATA\\Traffic_Cell.xlsx"; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "시작_구간"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "종료_구간"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "방향"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "칸수"; fieldInfo4.Type = typeof(string); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // gridView1 // this.gridView1.Appearance.HeaderPanel.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.gridView1.Appearance.HeaderPanel.Options.UseFont = true; this.gridView1.Appearance.Row.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.gridView1.Appearance.Row.Options.UseFont = true; this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.col시작_구간, this.col종료_구간, this.col방향, this.col칸수 }); this.gridView1.GridControl = this.Grid_Traffic_Cell; this.gridView1.Name = "gridView1"; this.gridView1.OptionsSelection.MultiSelect = true; this.gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; this.gridView1.OptionsView.ShowGroupPanel = false; // // col시작_구간 // this.col시작_구간.FieldName = "시작_구간"; this.col시작_구간.Name = "col시작_구간"; this.col시작_구간.Visible = true; this.col시작_구간.VisibleIndex = 1; // // col종료_구간 // this.col종료_구간.FieldName = "종료_구간"; this.col종료_구간.Name = "col종료_구간"; this.col종료_구간.Visible = true; this.col종료_구간.VisibleIndex = 2; // // col방향 // this.col방향.ColumnEdit = this.repositoryItemComboBox1; this.col방향.FieldName = "방향"; this.col방향.Name = "col방향"; this.col방향.ShowButtonMode = DevExpress.XtraGrid.Views.Base.ShowButtonModeEnum.ShowAlways; this.col방향.Visible = true; this.col방향.VisibleIndex = 3; // // repositoryItemComboBox1 // this.repositoryItemComboBox1.AutoHeight = false; this.repositoryItemComboBox1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.repositoryItemComboBox1.ButtonsStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; this.repositoryItemComboBox1.Items.AddRange(new object[] { "정방향", "역방향" }); this.repositoryItemComboBox1.Name = "repositoryItemComboBox1"; // // col칸수 // this.col칸수.FieldName = "칸수"; this.col칸수.Name = "col칸수"; this.col칸수.Visible = true; this.col칸수.VisibleIndex = 4; // // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel1.Controls.Add(this.CB_Way); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.simpleButton1); this.panel1.Controls.Add(this.simpleButton4); this.panel1.Controls.Add(this.simpleButton2); this.panel1.Controls.Add(this.simpleButton3); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.TB_Cell_Count); this.panel1.Controls.Add(this.TB_End_Index); this.panel1.Controls.Add(this.TB_Start_Index); this.panel1.Controls.Add(this.label4); this.panel1.Location = new System.Drawing.Point(0, 55); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(905, 119); this.panel1.TabIndex = 48; // // CB_Way // this.CB_Way.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold); this.CB_Way.FormattingEnabled = true; this.CB_Way.Items.AddRange(new object[] { "정방향", "역방향" }); this.CB_Way.Location = new System.Drawing.Point(626, 22); this.CB_Way.Name = "CB_Way"; this.CB_Way.Size = new System.Drawing.Size(84, 29); this.CB_Way.TabIndex = 69; this.CB_Way.Text = "정방향"; // // label5 // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.label5.Location = new System.Drawing.Point(562, 26); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(58, 21); this.label5.TabIndex = 68; this.label5.Text = "방 향 :"; // // simpleButton1 // this.simpleButton1.Appearance.Font = new System.Drawing.Font("맑은 고딕", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.simpleButton1.Appearance.Options.UseFont = true; this.simpleButton1.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D; this.simpleButton1.Location = new System.Drawing.Point(584, 65); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(93, 33); this.simpleButton1.TabIndex = 64; this.simpleButton1.Text = "저장"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // simpleButton4 // this.simpleButton4.Appearance.Font = new System.Drawing.Font("맑은 고딕", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.simpleButton4.Appearance.Options.UseFont = true; this.simpleButton4.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D; this.simpleButton4.Location = new System.Drawing.Point(782, 65); this.simpleButton4.Name = "simpleButton4"; this.simpleButton4.Size = new System.Drawing.Size(93, 33); this.simpleButton4.TabIndex = 63; this.simpleButton4.Text = "닫기"; this.simpleButton4.Click += new System.EventHandler(this.simpleButton4_Click); // // simpleButton2 // this.simpleButton2.Appearance.Font = new System.Drawing.Font("맑은 고딕", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.simpleButton2.Appearance.Options.UseFont = true; this.simpleButton2.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D; this.simpleButton2.Location = new System.Drawing.Point(485, 65); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(93, 33); this.simpleButton2.TabIndex = 62; this.simpleButton2.Text = "추가"; this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); // // simpleButton3 // this.simpleButton3.Appearance.Font = new System.Drawing.Font("맑은 고딕", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.simpleButton3.Appearance.Options.UseFont = true; this.simpleButton3.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D; this.simpleButton3.Location = new System.Drawing.Point(683, 65); this.simpleButton3.Name = "simpleButton3"; this.simpleButton3.Size = new System.Drawing.Size(93, 33); this.simpleButton3.TabIndex = 61; this.simpleButton3.Text = "삭제"; this.simpleButton3.Click += new System.EventHandler(this.simpleButton3_Click); // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.label3.Location = new System.Drawing.Point(720, 29); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(96, 21); this.label3.TabIndex = 60; this.label3.Text = "적용 칸 수 :"; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.label2.Location = new System.Drawing.Point(407, 25); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(90, 21); this.label2.TabIndex = 59; this.label2.Text = "종료 구간 :"; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.label1.Location = new System.Drawing.Point(252, 25); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(90, 21); this.label1.TabIndex = 58; this.label1.Text = "시작 구간 :"; // // TB_Cell_Count // this.TB_Cell_Count.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.TB_Cell_Count.Location = new System.Drawing.Point(822, 26); this.TB_Cell_Count.Name = "TB_Cell_Count"; this.TB_Cell_Count.Size = new System.Drawing.Size(53, 29); this.TB_Cell_Count.TabIndex = 57; this.TB_Cell_Count.Text = "0"; // // TB_End_Index // this.TB_End_Index.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.TB_End_Index.Location = new System.Drawing.Point(503, 22); this.TB_End_Index.Name = "TB_End_Index"; this.TB_End_Index.Size = new System.Drawing.Size(53, 29); this.TB_End_Index.TabIndex = 56; this.TB_End_Index.Text = "0"; // // TB_Start_Index // this.TB_Start_Index.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.TB_Start_Index.Location = new System.Drawing.Point(348, 22); this.TB_Start_Index.Name = "TB_Start_Index"; this.TB_Start_Index.Size = new System.Drawing.Size(53, 29); this.TB_Start_Index.TabIndex = 55; this.TB_Start_Index.Text = "0"; // // label4 // this.label4.AutoSize = true; this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.label4.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.ForeColor = System.Drawing.Color.Yellow; this.label4.Location = new System.Drawing.Point(10, 15); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(209, 34); this.label4.TabIndex = 54; this.label4.Text = "■ 칸 트래픽 설정"; // // Form_Traffic_Cell // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSize = true; this.ClientSize = new System.Drawing.Size(918, 552); this.Controls.Add(this.panel1); this.Controls.Add(this.Grid_Traffic_Cell); this.Controls.Add(this.ribbon); this.Name = "Form_Traffic_Cell"; this.Ribbon = this.ribbon; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SDI_LCS Cell_Traffic"; this.Shown += new System.EventHandler(this.Form_Traffic_Cell_Shown); ((System.ComponentModel.ISupportInitialize)(this.ribbon)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Grid_Traffic_Cell)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox1)).EndInit(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OrderExport.Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo11 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo12 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo13 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo14 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo15 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo16 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo17 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo18 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.gridControl = new DevExpress.XtraGrid.GridControl(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.gridView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.col来源 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col订单号 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col订单序号 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col品牌名 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col商品条码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col商品款号 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col品类 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col商品名称 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col颜色 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col尺码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col数量 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col收货人 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col联系电话 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col收货地址 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col快递公司 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col运单号 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colSKU编码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.col条形码 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colPic = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemPictureEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit(); this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.skinRibbonGalleryBarItem = new DevExpress.XtraBars.SkinRibbonGalleryBarItem(); this.skinDropDownButtonItem = new DevExpress.XtraBars.SkinDropDownButtonItem(); this.skinPaletteRibbonGalleryBarItem = new DevExpress.XtraBars.SkinPaletteRibbonGalleryBarItem(); this.btn_loadExcel = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem3 = new DevExpress.XtraBars.BarButtonItem(); this.barEditItem1 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.barButtonItem4 = new DevExpress.XtraBars.BarButtonItem(); this.barEditItem2 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit2 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.barEditItem3 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit3 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.barEditItem6 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit4 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.barEditItem7 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit5 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.barEditItem8 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit6 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.barButtonItem5 = new DevExpress.XtraBars.BarButtonItem(); this.barEditItem9 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit7 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.barEditItem10 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit8 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.barEditItem11 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit9 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.ribbonPage = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup3 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.barEditItem4 = new DevExpress.XtraBars.BarEditItem(); this.barEditItem5 = new DevExpress.XtraBars.BarEditItem(); this.behaviorManager1 = new DevExpress.Utils.Behaviors.BehaviorManager(this.components); ((System.ComponentModel.ISupportInitialize)(this.gridControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPictureEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.behaviorManager1)).BeginInit(); this.SuspendLayout(); this.gridControl.DataSource = this.excelDataSource1; this.gridControl.Dock = System.Windows.Forms.DockStyle.Fill; this.gridControl.Location = new System.Drawing.Point(0, 160); this.gridControl.MainView = this.gridView; this.gridControl.Name = "gridControl"; this.gridControl.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemPictureEdit1 }); this.gridControl.Size = new System.Drawing.Size(1366, 608); this.gridControl.TabIndex = 0; this.gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView }); this.gridControl.MouseHover += new System.EventHandler(this.gridControl_MouseHover); this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "来源"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "订单号"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "订单序号"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "品牌名"; fieldInfo4.Type = typeof(string); fieldInfo5.Name = "商品条码"; fieldInfo5.Type = typeof(string); fieldInfo6.Name = "商品款号"; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "品类"; fieldInfo7.Type = typeof(string); fieldInfo8.Name = "商品名称"; fieldInfo8.Type = typeof(string); fieldInfo9.Name = "颜色"; fieldInfo9.Type = typeof(string); fieldInfo10.Name = "尺码"; fieldInfo10.Type = typeof(string); fieldInfo11.Name = "数量"; fieldInfo11.Type = typeof(double); fieldInfo12.Name = "收货人"; fieldInfo12.Type = typeof(string); fieldInfo13.Name = "联系电话"; fieldInfo13.Type = typeof(double); fieldInfo14.Name = "收货地址"; fieldInfo14.Type = typeof(string); fieldInfo15.Name = "快递公司"; fieldInfo15.Type = typeof(string); fieldInfo16.Name = "运单号"; fieldInfo16.Type = typeof(string); fieldInfo17.Name = "SKU编码"; fieldInfo17.Type = typeof(string); fieldInfo18.Name = "条形码"; fieldInfo18.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10, fieldInfo11, fieldInfo12, fieldInfo13, fieldInfo14, fieldInfo15, fieldInfo16, fieldInfo17, fieldInfo18 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet1"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; this.gridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.col来源, this.col订单号, this.col订单序号, this.col品牌名, this.col商品条码, this.col商品款号, this.col品类, this.col商品名称, this.col颜色, this.col尺码, this.col数量, this.col收货人, this.col联系电话, this.col收货地址, this.col快递公司, this.col运单号, this.colSKU编码, this.col条形码, this.colPic }); this.gridView.DetailHeight = 377; this.gridView.GridControl = this.gridControl; this.gridView.Name = "gridView"; this.gridView.OptionsSelection.MultiSelect = true; this.gridView.CustomUnboundColumnData += new DevExpress.XtraGrid.Views.Base.CustomColumnDataEventHandler(this.gridView_CustomUnboundColumnData); this.col来源.FieldName = "来源"; this.col来源.Name = "col来源"; this.col来源.UnboundType = DevExpress.Data.UnboundColumnType.Object; this.col来源.Visible = true; this.col来源.VisibleIndex = 0; this.col来源.Width = 33; this.col订单号.FieldName = "订单号"; this.col订单号.Name = "col订单号"; this.col订单号.Visible = true; this.col订单号.VisibleIndex = 1; this.col订单号.Width = 33; this.col订单序号.FieldName = "订单序号"; this.col订单序号.Name = "col订单序号"; this.col订单序号.Visible = true; this.col订单序号.VisibleIndex = 2; this.col订单序号.Width = 33; this.col品牌名.FieldName = "品牌名"; this.col品牌名.Name = "col品牌名"; this.col品牌名.Visible = true; this.col品牌名.VisibleIndex = 3; this.col品牌名.Width = 33; this.col商品条码.FieldName = "商品条码"; this.col商品条码.Name = "col商品条码"; this.col商品条码.Visible = true; this.col商品条码.VisibleIndex = 4; this.col商品条码.Width = 33; this.col商品款号.FieldName = "商品款号"; this.col商品款号.Name = "col商品款号"; this.col商品款号.Visible = true; this.col商品款号.VisibleIndex = 5; this.col商品款号.Width = 33; this.col品类.FieldName = "品类"; this.col品类.Name = "col品类"; this.col品类.Visible = true; this.col品类.VisibleIndex = 6; this.col品类.Width = 33; this.col商品名称.FieldName = "商品名称"; this.col商品名称.Name = "col商品名称"; this.col商品名称.Visible = true; this.col商品名称.VisibleIndex = 7; this.col商品名称.Width = 122; this.col颜色.FieldName = "颜色"; this.col颜色.Name = "col颜色"; this.col颜色.Visible = true; this.col颜色.VisibleIndex = 8; this.col颜色.Width = 24; this.col尺码.FieldName = "尺码"; this.col尺码.Name = "col尺码"; this.col尺码.Visible = true; this.col尺码.VisibleIndex = 9; this.col尺码.Width = 24; this.col数量.FieldName = "数量"; this.col数量.Name = "col数量"; this.col数量.Visible = true; this.col数量.VisibleIndex = 10; this.col数量.Width = 24; this.col收货人.FieldName = "收货人"; this.col收货人.Name = "col收货人"; this.col收货人.Visible = true; this.col收货人.VisibleIndex = 11; this.col收货人.Width = 24; this.col联系电话.FieldName = "联系电话"; this.col联系电话.Name = "col联系电话"; this.col联系电话.Visible = true; this.col联系电话.VisibleIndex = 12; this.col联系电话.Width = 24; this.col收货地址.FieldName = "收货地址"; this.col收货地址.Name = "col收货地址"; this.col收货地址.Visible = true; this.col收货地址.VisibleIndex = 13; this.col收货地址.Width = 24; this.col快递公司.FieldName = "快递公司"; this.col快递公司.Name = "col快递公司"; this.col快递公司.Visible = true; this.col快递公司.VisibleIndex = 14; this.col快递公司.Width = 24; this.col运单号.FieldName = "运单号"; this.col运单号.Name = "col运单号"; this.col运单号.Visible = true; this.col运单号.VisibleIndex = 15; this.col运单号.Width = 24; this.colSKU编码.FieldName = "SKU编码"; this.colSKU编码.Name = "colSKU编码"; this.colSKU编码.Visible = true; this.colSKU编码.VisibleIndex = 16; this.colSKU编码.Width = 24; this.col条形码.FieldName = "条形码"; this.col条形码.Name = "col条形码"; this.col条形码.Visible = true; this.col条形码.VisibleIndex = 17; this.col条形码.Width = 24; this.colPic.Caption = "图片"; this.colPic.ColumnEdit = this.repositoryItemPictureEdit1; this.colPic.FieldName = "photo"; this.colPic.Name = "colPic"; this.colPic.UnboundType = DevExpress.Data.UnboundColumnType.Object; this.colPic.Visible = true; this.colPic.VisibleIndex = 18; this.colPic.Width = 30; this.repositoryItemPictureEdit1.Name = "repositoryItemPictureEdit1"; this.repositoryItemPictureEdit1.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch; this.ribbonControl.ExpandCollapseItem.Id = 0; this.ribbonControl.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.ribbonControl.ExpandCollapseItem, this.ribbonControl.SearchEditItem, this.skinRibbonGalleryBarItem, this.skinDropDownButtonItem, this.skinPaletteRibbonGalleryBarItem, this.btn_loadExcel, this.barButtonItem1, this.barButtonItem2, this.barButtonItem3, this.barEditItem1, this.barButtonItem4, this.barEditItem2, this.barEditItem3, this.barEditItem6, this.barEditItem7, this.barEditItem8, this.barButtonItem5, this.barEditItem9, this.barEditItem10, this.barEditItem11 }); this.ribbonControl.Location = new System.Drawing.Point(0, 0); this.ribbonControl.MaxItemId = 17; this.ribbonControl.Name = "ribbonControl"; this.ribbonControl.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage, this.ribbonPage1 }); this.ribbonControl.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemTextEdit1, this.repositoryItemTextEdit2, this.repositoryItemTextEdit3, this.repositoryItemTextEdit4, this.repositoryItemTextEdit5, this.repositoryItemTextEdit6, this.repositoryItemTextEdit7, this.repositoryItemTextEdit8, this.repositoryItemTextEdit9 }); this.ribbonControl.Size = new System.Drawing.Size(1366, 160); this.skinRibbonGalleryBarItem.Caption = "skinRibbonGalleryBarItem"; this.skinRibbonGalleryBarItem.Id = 1; this.skinRibbonGalleryBarItem.Name = "skinRibbonGalleryBarItem"; this.skinDropDownButtonItem.Id = 2; this.skinDropDownButtonItem.Name = "skinDropDownButtonItem"; this.skinPaletteRibbonGalleryBarItem.Caption = "skinPaletteRibbonGalleryBarItem"; this.skinPaletteRibbonGalleryBarItem.Id = 3; this.skinPaletteRibbonGalleryBarItem.Name = "skinPaletteRibbonGalleryBarItem"; this.btn_loadExcel.Caption = "加载订单数据"; this.btn_loadExcel.Id = 2; this.btn_loadExcel.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btn_loadExcel.ImageOptions.SvgImage"))); this.btn_loadExcel.Name = "btn_loadExcel"; this.btn_loadExcel.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem1_ItemClick); this.barButtonItem1.Caption = "当前查询结果"; this.barButtonItem1.Id = 3; this.barButtonItem1.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barButtonItem1.ImageOptions.SvgImage"))); this.barButtonItem1.Name = "barButtonItem1"; this.barButtonItem2.Caption = "当前汇总结果"; this.barButtonItem2.Id = 4; this.barButtonItem2.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barButtonItem2.ImageOptions.SvgImage"))); this.barButtonItem2.Name = "barButtonItem2"; this.barButtonItem3.Caption = "清空数据"; this.barButtonItem3.Id = 5; this.barButtonItem3.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barButtonItem3.ImageOptions.SvgImage"))); this.barButtonItem3.Name = "barButtonItem3"; this.barButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem3_ItemClick); this.barEditItem1.Caption = "订单号:"; this.barEditItem1.Edit = this.repositoryItemTextEdit1; this.barEditItem1.EditWidth = 150; this.barEditItem1.Id = 6; this.barEditItem1.Name = "barEditItem1"; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.barButtonItem4.Caption = "搜索"; this.barButtonItem4.Id = 7; this.barButtonItem4.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("barButtonItem4.ImageOptions.Image"))); this.barButtonItem4.ImageOptions.LargeImage = ((System.Drawing.Image)(resources.GetObject("barButtonItem4.ImageOptions.LargeImage"))); this.barButtonItem4.Name = "barButtonItem4"; this.barEditItem2.Caption = "快递号:"; this.barEditItem2.Edit = this.repositoryItemTextEdit2; this.barEditItem2.EditWidth = 150; this.barEditItem2.Id = 8; this.barEditItem2.Name = "barEditItem2"; this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.barEditItem3.Caption = "货品名:"; this.barEditItem3.Edit = this.repositoryItemTextEdit3; this.barEditItem3.EditWidth = 150; this.barEditItem3.Id = 9; this.barEditItem3.Name = "barEditItem3"; this.repositoryItemTextEdit3.AutoHeight = false; this.repositoryItemTextEdit3.Name = "repositoryItemTextEdit3"; this.barEditItem6.Caption = "手机:"; this.barEditItem6.Edit = this.repositoryItemTextEdit4; this.barEditItem6.EditWidth = 150; this.barEditItem6.Id = 10; this.barEditItem6.Name = "barEditItem6"; this.repositoryItemTextEdit4.AutoHeight = false; this.repositoryItemTextEdit4.Name = "repositoryItemTextEdit4"; this.barEditItem7.Caption = "姓名:"; this.barEditItem7.Edit = this.repositoryItemTextEdit5; this.barEditItem7.EditWidth = 150; this.barEditItem7.Id = 11; this.barEditItem7.Name = "barEditItem7"; this.repositoryItemTextEdit5.AutoHeight = false; this.repositoryItemTextEdit5.Name = "repositoryItemTextEdit5"; this.barEditItem8.Caption = "昵称:"; this.barEditItem8.Edit = this.repositoryItemTextEdit6; this.barEditItem8.EditWidth = 150; this.barEditItem8.Id = 12; this.barEditItem8.Name = "barEditItem8"; this.repositoryItemTextEdit6.AutoHeight = false; this.repositoryItemTextEdit6.Name = "repositoryItemTextEdit6"; this.barButtonItem5.Caption = "清空条件"; this.barButtonItem5.Id = 13; this.barButtonItem5.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("barButtonItem5.ImageOptions.Image"))); this.barButtonItem5.ImageOptions.LargeImage = ((System.Drawing.Image)(resources.GetObject("barButtonItem5.ImageOptions.LargeImage"))); this.barButtonItem5.Name = "barButtonItem5"; this.barEditItem9.Caption = "颜色:"; this.barEditItem9.Edit = this.repositoryItemTextEdit7; this.barEditItem9.EditWidth = 150; this.barEditItem9.Id = 14; this.barEditItem9.Name = "barEditItem9"; this.repositoryItemTextEdit7.AutoHeight = false; this.repositoryItemTextEdit7.Name = "repositoryItemTextEdit7"; this.barEditItem10.Caption = "数量:"; this.barEditItem10.Edit = this.repositoryItemTextEdit8; this.barEditItem10.EditWidth = 150; this.barEditItem10.Id = 15; this.barEditItem10.Name = "barEditItem10"; this.repositoryItemTextEdit8.AutoHeight = false; this.repositoryItemTextEdit8.Name = "repositoryItemTextEdit8"; this.barEditItem11.Caption = "尺码:"; this.barEditItem11.Edit = this.repositoryItemTextEdit9; this.barEditItem11.EditWidth = 150; this.barEditItem11.Id = 16; this.barEditItem11.Name = "barEditItem11"; this.repositoryItemTextEdit9.AutoHeight = false; this.repositoryItemTextEdit9.Name = "repositoryItemTextEdit9"; this.ribbonPage.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup1, this.ribbonPageGroup3, this.ribbonPageGroup2 }); this.ribbonPage.Name = "ribbonPage"; this.ribbonPage.Text = "工具栏"; this.ribbonPageGroup1.ItemLinks.Add(this.btn_loadExcel); this.ribbonPageGroup1.ItemLinks.Add(this.barButtonItem3); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; this.ribbonPageGroup1.State = DevExpress.XtraBars.Ribbon.RibbonPageGroupState.Expanded; this.ribbonPageGroup1.Text = "基础操作"; this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem2); this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem1); this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem3); this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem6); this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem7); this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem8); this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem9); this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem11); this.ribbonPageGroup3.ItemLinks.Add(this.barEditItem10); this.ribbonPageGroup3.ItemLinks.Add(this.barButtonItem4); this.ribbonPageGroup3.ItemLinks.Add(this.barButtonItem5); this.ribbonPageGroup3.Name = "ribbonPageGroup3"; this.ribbonPageGroup3.Text = "查询条件"; this.ribbonPageGroup2.ItemLinks.Add(this.barButtonItem1); this.ribbonPageGroup2.ItemLinks.Add(this.barButtonItem2); this.ribbonPageGroup2.Name = "ribbonPageGroup2"; this.ribbonPageGroup2.Text = "导出"; this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "其它"; this.barEditItem4.Caption = "barEditItem3"; this.barEditItem4.Edit = this.repositoryItemTextEdit3; this.barEditItem4.Id = 9; this.barEditItem4.Name = "barEditItem4"; this.barEditItem5.Caption = "barEditItem3"; this.barEditItem5.Edit = this.repositoryItemTextEdit3; this.barEditItem5.Id = 9; this.barEditItem5.Name = "barEditItem5"; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1366, 768); this.Controls.Add(this.gridControl); this.Controls.Add(this.ribbonControl); this.IconOptions.LargeImage = ((System.Drawing.Image)(resources.GetObject("Form1.IconOptions.LargeImage"))); this.Name = "Form1"; this.Ribbon = this.ribbonControl; this.Text = "订单助手"; ((System.ComponentModel.ISupportInitialize)(this.gridControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPictureEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit9)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.behaviorManager1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo11 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo12 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.salesPersonBindingSource = new System.Windows.Forms.BindingSource(this.components); this.nwindDataSet = new XtraPivotGrid_UserFolders.nwindDataSet(); this.fieldCountry = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldProductName = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldCategoryName = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldOrderDate = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldQuantity = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldExtendedPrice = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson = new DevExpress.XtraPivotGrid.PivotGridField(); this.salesPersonTableAdapter = new XtraPivotGrid_UserFolders.nwindDataSetTableAdapters.SalesPersonTableAdapter(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.salesPersonBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nwindDataSet)).BeginInit(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldCountry, this.fieldProductName, this.fieldCategoryName, this.fieldOrderDate, this.fieldQuantity, this.fieldExtendedPrice, this.fieldSalesPerson }); this.pivotGridControl1.Location = new System.Drawing.Point(0, 0); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(702, 373); this.pivotGridControl1.TabIndex = 0; // // salesPersonBindingSource // this.salesPersonBindingSource.DataMember = "SalesPerson"; this.salesPersonBindingSource.DataSource = this.nwindDataSet; // // nwindDataSet // this.nwindDataSet.DataSetName = "nwindDataSet"; this.nwindDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // fieldCountry // this.fieldCountry.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldCountry.AreaIndex = 0; this.fieldCountry.Caption = "Country"; this.fieldCountry.FieldName = "Country"; this.fieldCountry.Name = "fieldCountry"; // // fieldProductName // this.fieldProductName.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldProductName.AreaIndex = 1; this.fieldProductName.Caption = "Product Name"; this.fieldProductName.FieldName = "ProductName"; this.fieldProductName.Name = "fieldProductName"; // // fieldCategoryName // this.fieldCategoryName.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldCategoryName.AreaIndex = 0; this.fieldCategoryName.Caption = "Category Name"; this.fieldCategoryName.FieldName = "CategoryName"; this.fieldCategoryName.Name = "fieldCategoryName"; // // fieldOrderDate // this.fieldOrderDate.AreaIndex = 0; this.fieldOrderDate.Caption = "Order Date"; this.fieldOrderDate.FieldName = "OrderDate"; this.fieldOrderDate.Name = "fieldOrderDate"; // // fieldQuantity // this.fieldQuantity.AreaIndex = 1; this.fieldQuantity.Caption = "Quantity"; this.fieldQuantity.FieldName = "Quantity"; this.fieldQuantity.Name = "fieldQuantity"; // // fieldExtendedPrice // this.fieldExtendedPrice.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldExtendedPrice.AreaIndex = 0; this.fieldExtendedPrice.Caption = "Extended Price"; this.fieldExtendedPrice.FieldName = "Extended Price"; this.fieldExtendedPrice.MinWidth = 100; this.fieldExtendedPrice.Name = "fieldExtendedPrice"; this.fieldExtendedPrice.Width = 200; // // fieldSalesPerson // this.fieldSalesPerson.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldSalesPerson.AreaIndex = 1; this.fieldSalesPerson.Caption = "Sales Person"; this.fieldSalesPerson.FieldName = "Sales Person"; this.fieldSalesPerson.Name = "fieldSalesPerson"; // // salesPersonTableAdapter // this.salesPersonTableAdapter.ClearBeforeFill = true; // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\Data\\SalesPerson.xlsx"; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "CategoryName"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Country"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "FirstName"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "LastName"; fieldInfo4.Type = typeof(string); fieldInfo5.Name = "ProductName"; fieldInfo5.Type = typeof(string); fieldInfo6.Name = "Sales Person"; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "OrderDate"; fieldInfo7.Type = typeof(System.DateTime); fieldInfo8.Name = "OrderID"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "Quantity"; fieldInfo9.Type = typeof(double); fieldInfo10.Name = "Discount"; fieldInfo10.Type = typeof(double); fieldInfo11.Name = "Extended Price"; fieldInfo11.Type = typeof(double); fieldInfo12.Name = "UnitPrice"; fieldInfo12.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10, fieldInfo11, fieldInfo12 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Data"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(702, 373); this.Controls.Add(this.pivotGridControl1); this.Name = "Form1"; this.Text = "Customization Window Folders Example"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.salesPersonBindingSource)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nwindDataSet)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo13 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo14 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo15 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo16 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo17 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo18 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo19 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo20 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo21 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo22 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo23 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo24 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings2 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions2 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings2); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.fieldCountry = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldProductName = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldCategoryName = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldExtendedPrice = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson = new DevExpress.XtraPivotGrid.PivotGridField(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldCountry, this.fieldProductName, this.fieldCategoryName, this.fieldExtendedPrice, this.fieldSalesPerson }); this.pivotGridControl1.Location = new System.Drawing.Point(0, 0); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(758, 431); this.pivotGridControl1.TabIndex = 0; // // fieldCountry // this.fieldCountry.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldCountry.AreaIndex = 0; this.fieldCountry.Caption = "Country"; this.fieldCountry.FieldName = "Country"; this.fieldCountry.Name = "fieldCountry"; // // fieldProductName // this.fieldProductName.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldProductName.AreaIndex = 1; this.fieldProductName.Caption = "Product Name"; this.fieldProductName.FieldName = "ProductName"; this.fieldProductName.Name = "fieldProductName"; // // fieldCategoryName // this.fieldCategoryName.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldCategoryName.AreaIndex = 0; this.fieldCategoryName.Caption = "Category Name"; this.fieldCategoryName.FieldName = "CategoryName"; this.fieldCategoryName.Name = "fieldCategoryName"; // // fieldExtendedPrice // this.fieldExtendedPrice.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldExtendedPrice.AreaIndex = 0; this.fieldExtendedPrice.Caption = "Extended Price"; this.fieldExtendedPrice.FieldName = "Extended Price"; this.fieldExtendedPrice.Name = "fieldExtendedPrice"; // // fieldSalesPerson // this.fieldSalesPerson.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldSalesPerson.AreaIndex = 1; this.fieldSalesPerson.Caption = "Sales Person"; this.fieldSalesPerson.FieldName = "Sales Person"; this.fieldSalesPerson.Name = "fieldSalesPerson"; // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\Data\\SalesPerson.xlsx"; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo13.Name = "CategoryName"; fieldInfo13.Type = typeof(string); fieldInfo14.Name = "Country"; fieldInfo14.Type = typeof(string); fieldInfo15.Name = "FirstName"; fieldInfo15.Type = typeof(string); fieldInfo16.Name = "LastName"; fieldInfo16.Type = typeof(string); fieldInfo17.Name = "ProductName"; fieldInfo17.Type = typeof(string); fieldInfo18.Name = "Sales Person"; fieldInfo18.Type = typeof(string); fieldInfo19.Name = "OrderDate"; fieldInfo19.Type = typeof(System.DateTime); fieldInfo20.Name = "OrderID"; fieldInfo20.Type = typeof(double); fieldInfo21.Name = "Quantity"; fieldInfo21.Type = typeof(double); fieldInfo22.Name = "Discount"; fieldInfo22.Type = typeof(double); fieldInfo23.Name = "Extended Price"; fieldInfo23.Type = typeof(double); fieldInfo24.Name = "UnitPrice"; fieldInfo24.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo13, fieldInfo14, fieldInfo15, fieldInfo16, fieldInfo17, fieldInfo18, fieldInfo19, fieldInfo20, fieldInfo21, fieldInfo22, fieldInfo23, fieldInfo24 }); excelWorksheetSettings2.CellRange = null; excelWorksheetSettings2.WorksheetName = "Data"; excelSourceOptions2.ImportSettings = excelWorksheetSettings2; this.excelDataSource1.SourceOptions = excelSourceOptions2; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(758, 431); this.Controls.Add(this.pivotGridControl1); this.Name = "Form1"; this.Text = "Apply Summary Filter Example"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.XtraPivotGrid.PivotGridGroup pivotGridGroup1 = new DevExpress.XtraPivotGrid.PivotGridGroup(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo11 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo12 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.fieldCategoryName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldProductName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldOrderDate1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldExtendedPrice1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.pivotGridField1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl(); this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit(); this.splitContainerControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldCategoryName1, this.fieldProductName1, this.fieldSalesPerson1, this.fieldOrderDate1, this.fieldExtendedPrice1 }); pivotGridGroup1.Caption = "Calendar"; this.pivotGridControl1.Groups.AddRange(new DevExpress.XtraPivotGrid.PivotGridGroup[] { pivotGridGroup1 }); this.pivotGridControl1.Location = new System.Drawing.Point(0, 0); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(590, 406); this.pivotGridControl1.TabIndex = 0; this.pivotGridControl1.CellDoubleClick += new DevExpress.XtraPivotGrid.PivotCellEventHandler(this.pivotGridControl1_CellDoubleClick); // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\Data\\SalesPerson.xlsx"; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "CategoryName"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Country"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "FirstName"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "LastName"; fieldInfo4.Type = typeof(string); fieldInfo5.Name = "ProductName"; fieldInfo5.Type = typeof(string); fieldInfo6.Name = "Sales Person"; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "OrderDate"; fieldInfo7.Type = typeof(System.DateTime); fieldInfo8.Name = "OrderID"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "Quantity"; fieldInfo9.Type = typeof(double); fieldInfo10.Name = "Discount"; fieldInfo10.Type = typeof(double); fieldInfo11.Name = "Extended Price"; fieldInfo11.Type = typeof(double); fieldInfo12.Name = "UnitPrice"; fieldInfo12.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10, fieldInfo11, fieldInfo12 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Data"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // fieldCategoryName1 // this.fieldCategoryName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldCategoryName1.AreaIndex = 0; this.fieldCategoryName1.Caption = "Category Name"; this.fieldCategoryName1.FieldName = "CategoryName"; this.fieldCategoryName1.Name = "fieldCategoryName1"; // // fieldProductName1 // this.fieldProductName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldProductName1.AreaIndex = 1; this.fieldProductName1.Caption = "Product Name"; this.fieldProductName1.FieldName = "ProductName"; this.fieldProductName1.Name = "fieldProductName1"; // // fieldSalesPerson1 // this.fieldSalesPerson1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldSalesPerson1.AreaIndex = 1; this.fieldSalesPerson1.Caption = "Sales Person"; this.fieldSalesPerson1.FieldName = "Sales Person"; this.fieldSalesPerson1.Name = "fieldSalesPerson1"; // // fieldOrderDate1 // this.fieldOrderDate1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldOrderDate1.AreaIndex = 0; this.fieldOrderDate1.Caption = "OrderDate"; this.fieldOrderDate1.FieldName = "OrderDate"; this.fieldOrderDate1.GroupInterval = DevExpress.XtraPivotGrid.PivotGroupInterval.DateYear; this.fieldOrderDate1.Name = "fieldOrderDate1"; this.fieldOrderDate1.UnboundFieldName = "fieldOrderDate1"; // // fieldExtendedPrice1 // this.fieldExtendedPrice1.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldExtendedPrice1.AreaIndex = 0; this.fieldExtendedPrice1.Caption = "Extended Price"; this.fieldExtendedPrice1.FieldName = "Extended Price"; this.fieldExtendedPrice1.Name = "fieldExtendedPrice1"; // // pivotGridField1 // this.pivotGridField1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.pivotGridField1.AreaIndex = 0; this.pivotGridField1.Caption = "Year"; this.pivotGridField1.FieldName = "OrderDate"; this.pivotGridField1.GroupInterval = DevExpress.XtraPivotGrid.PivotGroupInterval.DateYear; this.pivotGridField1.Name = "pivotGridField1"; this.pivotGridField1.UnboundFieldName = "fieldOrderDate"; // // splitContainerControl1 // this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainerControl1.Location = new System.Drawing.Point(0, 0); this.splitContainerControl1.Name = "splitContainerControl1"; this.splitContainerControl1.Panel1.Controls.Add(this.pivotGridControl1); this.splitContainerControl1.Panel1.Text = "Panel1"; this.splitContainerControl1.Panel2.Controls.Add(this.gridControl1); this.splitContainerControl1.Panel2.Text = "Panel2"; this.splitContainerControl1.Size = new System.Drawing.Size(887, 406); this.splitContainerControl1.SplitterPosition = 590; this.splitContainerControl1.TabIndex = 2; this.splitContainerControl1.Text = "splitContainerControl1"; // // gridControl1 // this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.gridControl1.Location = new System.Drawing.Point(0, 0); this.gridControl1.MainView = this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.Size = new System.Drawing.Size(287, 406); this.gridControl1.TabIndex = 0; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 }); // // gridView1 // this.gridView1.GridControl = this.gridControl1; this.gridView1.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Always; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.False; this.gridView1.OptionsBehavior.AllowDeleteRows = DevExpress.Utils.DefaultBoolean.False; this.gridView1.OptionsBehavior.Editable = false; this.gridView1.OptionsBehavior.ReadOnly = true; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(887, 406); this.Controls.Add(this.splitContainerControl1); this.Name = "Form1"; this.Text = "Double click a cell to display the same level data"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit(); this.splitContainerControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmfft)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.zedGraphControl2 = new ZedGraph.ZedGraphControl(); this.zedGraphControl1 = new ZedGraph.ZedGraphControl(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton(); this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripDropDownButton2 = new System.Windows.Forms.ToolStripDropDownButton(); this.supportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.fastFourierTransformToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.nyquistSamplingTheToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.unboundSource1 = new DevExpress.Data.UnboundSource(this.components); this.dataGridViewData = new System.Windows.Forms.DataGridView(); this.textBox1 = new System.Windows.Forms.TextBox(); this.Filepathlabel = new DevExpress.XtraEditors.LabelControl(); this.groupControl1 = new DevExpress.XtraEditors.GroupControl(); this.groupControl2 = new DevExpress.XtraEditors.GroupControl(); this.ColorcomboBox = new DevExpress.XtraEditors.ComboBoxEdit(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.toolStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.unboundSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridViewData)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit(); this.groupControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).BeginInit(); this.groupControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ColorcomboBox.Properties)).BeginInit(); this.SuspendLayout(); // // zedGraphControl2 // this.zedGraphControl2.BackColor = System.Drawing.Color.Aqua; this.zedGraphControl2.EditButtons = System.Windows.Forms.MouseButtons.Left; this.zedGraphControl2.Location = new System.Drawing.Point(12, 423); this.zedGraphControl2.Name = "zedGraphControl2"; this.zedGraphControl2.PanModifierKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Shift | System.Windows.Forms.Keys.None))); this.zedGraphControl2.ScrollGrace = 0D; this.zedGraphControl2.ScrollMaxX = 0D; this.zedGraphControl2.ScrollMaxY = 0D; this.zedGraphControl2.ScrollMaxY2 = 0D; this.zedGraphControl2.ScrollMinX = 0D; this.zedGraphControl2.ScrollMinY = 0D; this.zedGraphControl2.ScrollMinY2 = 0D; this.zedGraphControl2.Size = new System.Drawing.Size(1154, 350); this.zedGraphControl2.TabIndex = 20; // // zedGraphControl1 // this.zedGraphControl1.BackColor = System.Drawing.Color.Aqua; this.zedGraphControl1.EditButtons = System.Windows.Forms.MouseButtons.Left; this.zedGraphControl1.Location = new System.Drawing.Point(12, 77); this.zedGraphControl1.Name = "zedGraphControl1"; this.zedGraphControl1.PanModifierKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Shift | System.Windows.Forms.Keys.None))); this.zedGraphControl1.ScrollGrace = 0D; this.zedGraphControl1.ScrollMaxX = 0D; this.zedGraphControl1.ScrollMaxY = 0D; this.zedGraphControl1.ScrollMaxY2 = 0D; this.zedGraphControl1.ScrollMinX = 0D; this.zedGraphControl1.ScrollMinY = 0D; this.zedGraphControl1.ScrollMinY2 = 0D; this.zedGraphControl1.Size = new System.Drawing.Size(1154, 345); this.zedGraphControl1.TabIndex = 19; // // toolStrip1 // this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripDropDownButton1, this.toolStripDropDownButton2, this.toolStripSeparator1 }); this.toolStrip1.Location = new System.Drawing.Point(9, 10); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(109, 25); this.toolStrip1.TabIndex = 21; // // toolStripDropDownButton1 // this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.openToolStripMenuItem, this.toolStripSeparator2, this.exitToolStripMenuItem }); this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image"))); this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripDropDownButton1.Name = "toolStripDropDownButton1"; this.toolStripDropDownButton1.Size = new System.Drawing.Size(38, 22); this.toolStripDropDownButton1.Text = "File"; // // openToolStripMenuItem // this.openToolStripMenuItem.Name = "openToolStripMenuItem"; this.openToolStripMenuItem.Size = new System.Drawing.Size(103, 22); this.openToolStripMenuItem.Text = "Open"; this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(100, 6); // // exitToolStripMenuItem // this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Size = new System.Drawing.Size(103, 22); this.exitToolStripMenuItem.Text = "Exit"; this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); // // toolStripDropDownButton2 // this.toolStripDropDownButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripDropDownButton2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.supportToolStripMenuItem }); this.toolStripDropDownButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton2.Image"))); this.toolStripDropDownButton2.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripDropDownButton2.Name = "toolStripDropDownButton2"; this.toolStripDropDownButton2.Size = new System.Drawing.Size(53, 22); this.toolStripDropDownButton2.Text = "About"; // // supportToolStripMenuItem // this.supportToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fastFourierTransformToolStripMenuItem, this.nyquistSamplingTheToolStripMenuItem }); this.supportToolStripMenuItem.Name = "supportToolStripMenuItem"; this.supportToolStripMenuItem.Size = new System.Drawing.Size(116, 22); this.supportToolStripMenuItem.Text = "Support"; // // fastFourierTransformToolStripMenuItem // this.fastFourierTransformToolStripMenuItem.Name = "fastFourierTransformToolStripMenuItem"; this.fastFourierTransformToolStripMenuItem.Size = new System.Drawing.Size(215, 22); this.fastFourierTransformToolStripMenuItem.Text = "Fast Fourier Transform"; this.fastFourierTransformToolStripMenuItem.Click += new System.EventHandler(this.fastFourierTransformToolStripMenuItem_Click); // // nyquistSamplingTheToolStripMenuItem // this.nyquistSamplingTheToolStripMenuItem.Name = "nyquistSamplingTheToolStripMenuItem"; this.nyquistSamplingTheToolStripMenuItem.Size = new System.Drawing.Size(215, 22); this.nyquistSamplingTheToolStripMenuItem.Text = "Nyquist sampling theorem"; this.nyquistSamplingTheToolStripMenuItem.Click += new System.EventHandler(this.nyquistSamplingTheToolStripMenuItem_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\Users\\Weitingee\\Desktop\\VibrationProject\\Vibration_FFT_zedgraph\\Test\\npoi2018-" + "04-01 10_15_18.xls"; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = "PFZpZXc+PEZpZWxkIE5hbWU9IjAiIFR5cGU9IkRvdWJsZSIgLz48RmllbGQgTmFtZT0iLTAuMDA0ODgyO" + "DEyNSIgVHlwZT0iRG91YmxlIiAvPjwvVmlldz4="; fieldInfo1.Name = "0"; fieldInfo1.Type = typeof(double); fieldInfo2.Name = "-0.0048828125"; fieldInfo2.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Class"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // dataGridViewData // this.dataGridViewData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridViewData.Location = new System.Drawing.Point(1172, 77); this.dataGridViewData.Name = "dataGridViewData"; this.dataGridViewData.RowTemplate.Height = 24; this.dataGridViewData.Size = new System.Drawing.Size(243, 696); this.dataGridViewData.TabIndex = 22; // // textBox1 // this.textBox1.Location = new System.Drawing.Point(66, 37); this.textBox1.Name = "textBox1"; this.textBox1.ReadOnly = true; this.textBox1.Size = new System.Drawing.Size(465, 21); this.textBox1.TabIndex = 23; // // Filepathlabel // this.Filepathlabel.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.Filepathlabel.Appearance.Options.UseBackColor = true; this.Filepathlabel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; this.Filepathlabel.Location = new System.Drawing.Point(6, 38); this.Filepathlabel.Name = "Filepathlabel"; this.Filepathlabel.Size = new System.Drawing.Size(49, 17); this.Filepathlabel.TabIndex = 24; this.Filepathlabel.Text = "File Path:"; // // groupControl1 // this.groupControl1.Controls.Add(this.Filepathlabel); this.groupControl1.Controls.Add(this.textBox1); this.groupControl1.Location = new System.Drawing.Point(884, 2); this.groupControl1.Name = "groupControl1"; this.groupControl1.Size = new System.Drawing.Size(536, 68); this.groupControl1.TabIndex = 25; this.groupControl1.Text = "Excel path:"; // // groupControl2 // this.groupControl2.Controls.Add(this.ColorcomboBox); this.groupControl2.Controls.Add(this.labelControl1); this.groupControl2.Location = new System.Drawing.Point(630, 2); this.groupControl2.Name = "groupControl2"; this.groupControl2.Size = new System.Drawing.Size(248, 68); this.groupControl2.TabIndex = 26; this.groupControl2.Text = "Line attribute:"; // // ColorcomboBox // this.ColorcomboBox.Location = new System.Drawing.Point(66, 37); this.ColorcomboBox.Name = "ColorcomboBox"; this.ColorcomboBox.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.ColorcomboBox.Properties.Items.AddRange(new object[] { "Bule", "Green", "Beige", "Black", "Brown", "Gray", "Ivory", "Khaki", "Pink", "Purple", "Red", "Silver", "Turquoise", "Violet", "Yellow" }); this.ColorcomboBox.Size = new System.Drawing.Size(177, 20); this.ColorcomboBox.TabIndex = 25; this.ColorcomboBox.SelectedIndexChanged += new System.EventHandler(this.ColorcomboBox_SelectedIndexChanged); // // labelControl1 // this.labelControl1.Appearance.BackColor = System.Drawing.Color.White; this.labelControl1.Appearance.Options.UseBackColor = true; this.labelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; this.labelControl1.Location = new System.Drawing.Point(5, 38); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(53, 17); this.labelControl1.TabIndex = 24; this.labelControl1.Text = "Line color:"; // // simpleButton1 // this.simpleButton1.Location = new System.Drawing.Point(12, 46); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(233, 25); this.simpleButton1.TabIndex = 27; this.simpleButton1.Text = "Clear All Graph"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // frmfft // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1432, 782); this.Controls.Add(this.simpleButton1); this.Controls.Add(this.groupControl2); this.Controls.Add(this.groupControl1); this.Controls.Add(this.dataGridViewData); this.Controls.Add(this.toolStrip1); this.Controls.Add(this.zedGraphControl2); this.Controls.Add(this.zedGraphControl1); this.MaximizeBox = false; this.Name = "frmfft"; this.Text = "frmfft"; this.Load += new System.EventHandler(this.frmfft_Load); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.unboundSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridViewData)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).EndInit(); this.groupControl1.ResumeLayout(false); this.groupControl1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).EndInit(); this.groupControl2.ResumeLayout(false); this.groupControl2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.ColorcomboBox.Properties)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.DashboardCommon.Dimension dimension1 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.Measure measure1 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure2 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure3 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.ValueMap valueMap1 = new DevExpress.DashboardCommon.ValueMap(); DevExpress.DashboardCommon.UniformScale uniformScale1 = new DevExpress.DashboardCommon.UniformScale(); DevExpress.DashboardCommon.DeltaMap deltaMap1 = new DevExpress.DashboardCommon.DeltaMap(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SampleDashboard)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); DevExpress.DashboardCommon.Dimension dimension2 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.GridDimensionColumn gridDimensionColumn1 = new DevExpress.DashboardCommon.GridDimensionColumn(); DevExpress.DashboardCommon.Dimension dimension3 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.GridDimensionColumn gridDimensionColumn2 = new DevExpress.DashboardCommon.GridDimensionColumn(); DevExpress.DashboardCommon.Measure measure4 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure5 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.GridDeltaColumn gridDeltaColumn1 = new DevExpress.DashboardCommon.GridDeltaColumn(); DevExpress.DashboardCommon.DashboardLayoutGroup dashboardLayoutGroup1 = new DevExpress.DashboardCommon.DashboardLayoutGroup(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem1 = new DevExpress.DashboardCommon.DashboardLayoutItem(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem2 = new DevExpress.DashboardCommon.DashboardLayoutItem(); this.choroplethMapDashboardItem1 = new DevExpress.DashboardCommon.ChoroplethMapDashboardItem(); this.dashboardExcelDataSource1 = new DevExpress.DashboardCommon.DashboardExcelDataSource(); this.gridDashboardItem1 = new DevExpress.DashboardCommon.GridDashboardItem(); ((System.ComponentModel.ISupportInitialize)(this.choroplethMapDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // choroplethMapDashboardItem1 // this.choroplethMapDashboardItem1.Area = DevExpress.DashboardCommon.ShapefileArea.USA; dimension1.DataMember = "State"; this.choroplethMapDashboardItem1.AttributeDimension = dimension1; this.choroplethMapDashboardItem1.AttributeName = "NAME"; this.choroplethMapDashboardItem1.ComponentName = "choroplethMapDashboardItem1"; measure1.DataMember = "RevenueYTD (Sum)"; measure2.DataMember = "RevenueYTD (Sum)"; measure3.DataMember = "RevenueYTDTarget (Sum)"; this.choroplethMapDashboardItem1.DataItemRepository.Clear(); this.choroplethMapDashboardItem1.DataItemRepository.Add(dimension1, "DataItem0"); this.choroplethMapDashboardItem1.DataItemRepository.Add(measure1, "DataItem1"); this.choroplethMapDashboardItem1.DataItemRepository.Add(measure2, "DataItem2"); this.choroplethMapDashboardItem1.DataItemRepository.Add(measure3, "DataItem3"); this.choroplethMapDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.choroplethMapDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.choroplethMapDashboardItem1.InteractivityOptions.MasterFilterMode = DevExpress.DashboardCommon.DashboardItemMasterFilterMode.Multiple; valueMap1.Name = "Revenue YTD"; valueMap1.Scale = uniformScale1; valueMap1.ValueName = "Revenue"; valueMap1.AddDataItem("Value", measure1); deltaMap1.ActualValueName = "Revenue"; deltaMap1.DeltaName = "vs Target"; deltaMap1.Name = "Revenue YTD vs Target"; deltaMap1.AddDataItem("ActualValue", measure2); deltaMap1.AddDataItem("TargetValue", measure3); this.choroplethMapDashboardItem1.Maps.AddRange(new DevExpress.DashboardCommon.ChoroplethMap[] { valueMap1, deltaMap1 }); this.choroplethMapDashboardItem1.Name = "Sales by State"; this.choroplethMapDashboardItem1.ShapeTitleAttributeName = "ABBREV"; this.choroplethMapDashboardItem1.ShowCaption = true; this.choroplethMapDashboardItem1.Viewport.BottomLatitude = 25.31399686804809D; this.choroplethMapDashboardItem1.Viewport.CenterPointLatitude = 37.298652216525717D; this.choroplethMapDashboardItem1.Viewport.CenterPointLongitude = -99.1736207753099D; this.choroplethMapDashboardItem1.Viewport.CreateViewerPaddings = false; this.choroplethMapDashboardItem1.Viewport.LeftLongitude = -114.64010379808356D; this.choroplethMapDashboardItem1.Viewport.RightLongitude = -83.707137752536212D; this.choroplethMapDashboardItem1.Viewport.TopLatitude = 47.640614567674412D; // // dashboardExcelDataSource1 // this.dashboardExcelDataSource1.ComponentName = "dashboardExcelDataSource1"; this.dashboardExcelDataSource1.FileName = "|DataDirectory|\\Data\\Sales.xlsx"; this.dashboardExcelDataSource1.Name = "Excel Data Source 1"; this.dashboardExcelDataSource1.ResultSchemaSerializable = resources.GetString("dashboardExcelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "Category"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Product"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "State"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "UnitsSoldYTD (Sum)"; fieldInfo4.Type = typeof(double); fieldInfo5.Name = "UnitsSoldYTDTarget (Sum)"; fieldInfo5.Type = typeof(double); fieldInfo6.Name = "RevenueQTD (Sum)"; fieldInfo6.Type = typeof(double); fieldInfo7.Name = "RevenueQTDTarget (Sum)"; fieldInfo7.Type = typeof(double); fieldInfo8.Name = "RevenueYTD (Sum)"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "RevenueYTDTarget (Sum)"; fieldInfo9.Type = typeof(double); this.dashboardExcelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet1"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.dashboardExcelDataSource1.SourceOptions = excelSourceOptions1; // // gridDashboardItem1 // dimension2.DataMember = "Category"; gridDimensionColumn1.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridDimensionColumn1.AddDataItem("Dimension", dimension2); dimension3.DataMember = "Product"; gridDimensionColumn2.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridDimensionColumn2.AddDataItem("Dimension", dimension3); measure4.DataMember = "UnitsSoldYTD (Sum)"; measure5.DataMember = "UnitsSoldYTDTarget (Sum)"; gridDeltaColumn1.Name = "UnitsSold YTD vs Target"; gridDeltaColumn1.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridDeltaColumn1.AddDataItem("ActualValue", measure4); gridDeltaColumn1.AddDataItem("TargetValue", measure5); this.gridDashboardItem1.Columns.AddRange(new DevExpress.DashboardCommon.GridColumnBase[] { gridDimensionColumn1, gridDimensionColumn2, gridDeltaColumn1 }); this.gridDashboardItem1.ComponentName = "gridDashboardItem1"; this.gridDashboardItem1.DataItemRepository.Clear(); this.gridDashboardItem1.DataItemRepository.Add(dimension3, "DataItem0"); this.gridDashboardItem1.DataItemRepository.Add(measure4, "DataItem1"); this.gridDashboardItem1.DataItemRepository.Add(measure5, "DataItem2"); this.gridDashboardItem1.DataItemRepository.Add(dimension2, "DataItem3"); this.gridDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.gridDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.gridDashboardItem1.Name = "Product Units Sold"; this.gridDashboardItem1.ShowCaption = true; // // SampleDashboard // this.CurrencyCultureName = null; this.DataSources.AddRange(new DevExpress.DashboardCommon.IDashboardDataSource[] { this.dashboardExcelDataSource1 }); this.Items.AddRange(new DevExpress.DashboardCommon.DashboardItem[] { this.choroplethMapDashboardItem1, this.gridDashboardItem1 }); dashboardLayoutItem1.DashboardItem = this.choroplethMapDashboardItem1; dashboardLayoutItem1.Weight = 53.152039555006183D; dashboardLayoutItem2.DashboardItem = this.gridDashboardItem1; dashboardLayoutItem2.Weight = 46.847960444993817D; dashboardLayoutGroup1.ChildNodes.AddRange(new DevExpress.DashboardCommon.DashboardLayoutNode[] { dashboardLayoutItem1, dashboardLayoutItem2 }); dashboardLayoutGroup1.DashboardItem = null; dashboardLayoutGroup1.Weight = 100D; this.LayoutRoot = dashboardLayoutGroup1; this.Title.Text = "Sample Dashboard"; ((System.ComponentModel.ISupportInitialize)(dimension1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.choroplethMapDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(dimension3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
void ImportData(string ImportFileName) { if (string.IsNullOrWhiteSpace(ImportFileName)) { Alit.WinformControls.MessageBox.Show("Please select excel file.", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (!System.IO.File.Exists(ImportFileName)) { Alit.WinformControls.MessageBox.Show("Selected file doesn't exists.", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } string extension = System.IO.Path.GetExtension(ImportFileName).ToUpper(); if (extension != ".XLS" && extension != ".XLSX") { if (Alit.WinformControls.MessageBox.Show(this, "Selected file is not seems to be valid excel file. Do you want to continue ?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.No) { return; } } //-- tAApprovalImportViewModelBindingSource.Clear(); if (extension.ToUpper() != ".XLS" && extension.ToUpper() != ".XLSX") { if (Alit.WinformControls.MessageBox.Show(this, "Selected file is seems to be Not valid excel file. Do you want to continue ?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.No) { return; } } string conStr = string.Empty; if (extension == ".xlsx") { conStr = string.Format(Excel07ConString, ImportFileName, "Yes"); } else { conStr = string.Format(Excel03ConString, ImportFileName, "Yes"); } ShowWaitForm(); try { DevExpress.DataAccess.Excel.ExcelDataSource myExcelSource = new DevExpress.DataAccess.Excel.ExcelDataSource(); myExcelSource.FileName = ImportFileName; DevExpress.DataAccess.Excel.ExcelWorksheetSettings worksheetSettings = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(GetWorkSheetNameByIndex(ImportFileName, 0)); myExcelSource.SourceOptions = new DevExpress.DataAccess.Excel.ExcelSourceOptions(worksheetSettings); myExcelSource.SourceOptions.SkipEmptyRows = true; myExcelSource.SourceOptions.UseFirstRowAsHeader = true; myExcelSource.Fill(); System.Collections.IList list = ((IListSource)myExcelSource).GetList(); DevExpress.DataAccess.Native.Excel.DataView dataView = (DevExpress.DataAccess.Native.Excel.DataView)list; try { #region Decoding Data for (int ri = 0; ri < dataView.Count; ri++) { DevExpress.DataAccess.Native.Excel.ViewRow dsRow = (DevExpress.DataAccess.Native.Excel.ViewRow)dataView[ri]; TAApprovalImportViewModel NewRecord = new TAApprovalImportViewModel() { RowNo = ri + 1 }; //-- object importvalue = null; // Transaction Date (Approval Date) importvalue = dataView.Columns[ImportFileColumnIndex_TransactionDate].GetValue(dsRow); if (importvalue != null) { DateTime dtvalue; if (DateTime.TryParse(importvalue.ToString(), out dtvalue)) { NewRecord.ApprovalDate = dtvalue; } else { NewRecord.ApprovalDateError = importvalue.ToString() + " : invalid value"; } } else { NewRecord.ApprovalDateError = "No value"; } // TransactionNoPrefix importvalue = dataView.Columns[ImportFileColumnIndex_TransactionNoPrefix].GetValue(dsRow); if (importvalue != null) { NewRecord.ApprovalNoPrefixName = importvalue.ToString(); string prefixToCheck = NewRecord.ApprovalNoPrefixName.Trim().ToUpper(); var Prefix = dsApprovalNoPrefix.FirstOrDefault(r => r.TAApprovalNoPrefixName.ToUpper() == prefixToCheck); if (Prefix != null) { NewRecord.ApprovalNoPrefixID = Prefix.TAApprovalNoPrefixID; } else { NewRecord.ApprovalNoPrefixNameError = importvalue.ToString() + " : not found."; } } else { NewRecord.ApprovalNoPrefixNameError = "No value."; } // TransactionNo importvalue = dataView.Columns[ImportFileColumnIndex_TransactionNo].GetValue(dsRow); if (importvalue != null) { int value = 0; if (int.TryParse(importvalue.ToString(), out value)) { NewRecord.ApprovalNo = value; //-- if (NewRecord.ApprovalNoPrefixID != null) { if (DALObj.IsDuplicateRecord(NewRecord.ApprovalNoPrefixID.Value, NewRecord.ApprovalNo.Value, 0)) { NewRecord.ApprovalNo = null; NewRecord.ApprovalNoError = importvalue.ToString() + " : duplicate value can not accepted."; } } } else { NewRecord.ApprovalNoError = importvalue.ToString() + " : invalid value"; } } else { NewRecord.ApprovalNoError = "No value"; } // EmployeeNo importvalue = dataView.Columns[ImportFileColumnIndex_EmployeeNo].GetValue(dsRow); if (importvalue != null) { int value = 0; if (int.TryParse(importvalue.ToString(), out value)) { NewRecord.EmployeeNo = value; var Employee = dsEmployee.FirstOrDefault(r => r.EmployeeNo == NewRecord.EmployeeNo); if (Employee != null) { NewRecord.EmployeeID = Employee.EmployeeID; NewRecord.EmployeeNoPrefixName = Employee.EmployeeNoPrefix; NewRecord.EmployeeName = Employee.EmployeeName; } else { NewRecord.EmployeeNameError = importvalue.ToString() + " : not found"; } } else { NewRecord.EmployeeNameError = importvalue.ToString() + " : invalid value"; } } else { NewRecord.EmployeeNameError = "No value"; } // Approved Date importvalue = dataView.Columns[ImportFileColumnIndex_ApprovedDate].GetValue(dsRow); if (importvalue != null) { DateTime value; if (DateTime.TryParse(importvalue.ToString(), out value)) { NewRecord.ApprovedDate = value; } else { NewRecord.ApprovedDateError = importvalue.ToString() + " : invalid value"; } } else { NewRecord.ApprovedDateError = "No value"; } // ApprovedHours importvalue = dataView.Columns[ImportFileColumnIndex_ApprovedHours].GetValue(dsRow); if (importvalue != null) { decimal value; if (decimal.TryParse(importvalue.ToString(), out value)) { NewRecord.ApprovedHours = value; } else { NewRecord.ApprovedHoursError = importvalue.ToString() + " : invalid value"; } } else { NewRecord.ApprovedHoursError = "No value"; } // ApprovedFor importvalue = dataView.Columns[ImportFileColumnIndex_ApprovedFor].GetValue(dsRow); if (importvalue != null) { int value; if (int.TryParse(importvalue.ToString(), out value) && value >= 1 && value <= 4) { NewRecord.ApprovalTypeID = (eTAApprovalType)(value - 1); } else { NewRecord.ApprovalTypeIDError = importvalue.ToString() + " : invalid value"; } } else { NewRecord.ApprovalTypeIDError = "No value"; } // Remark importvalue = dataView.Columns[ImportFileColumnIndex_Remark].GetValue(dsRow); if (importvalue != null) { NewRecord.Remark = importvalue.ToString(); } //// DocumandLocation //importvalue = dataView.Columns[ImportFileColumnIndex_DocumandLocation].GetValue(dsRow); //if (importvalue != null) //{ // NewRecord.DocumentLocation = importvalue.ToString(); //} //// Check - Valid for Import //if (NewRecord.ApprovalDate != null && NewRecord.ApprovalNoPrefixID != null && NewRecord.ApprovalNo != null && // NewRecord.ApprovalTypeID != null && NewRecord.EmployeeID != null && // NewRecord.ApprovedDate != null && NewRecord.ApprovedHours != null) //{ // NewRecord.ValidForImport = true; //} //else //{ // NewRecord.ValidForImport = false; //} //-- tAApprovalImportViewModelBindingSource.Add(NewRecord); } #endregion } catch (Exception ex) { ex = DAL.CommonFunctions.GetFinalError(ex); CloseWaitForm(); Alit.WinformControls.MessageBox.Show("Error while trying to decode excel file.\r\n" + (ex != null ? ex.Message : ""), MessageBoxButtons.OK, MessageBoxIcon.Error); } } catch (Exception ex) { ex = DAL.CommonFunctions.GetFinalError(ex); CloseWaitForm(); Alit.WinformControls.MessageBox.Show("Error while trying to connect excel file.\r\n" + (ex != null ? ex.Message : ""), MessageBoxButtons.OK, MessageBoxIcon.Error); } CloseWaitForm(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.XtraPivotGrid.PivotGridGroup pivotGridGroup1 = new DevExpress.XtraPivotGrid.PivotGridGroup(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo11 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo12 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.btnSave = new DevExpress.XtraEditors.SimpleButton(); this.btnLoad = new DevExpress.XtraEditors.SimpleButton(); this.fieldFirstName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.btnClear = new DevExpress.XtraEditors.SimpleButton(); this.fieldCategoryName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldProductName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldExtendedPrice1 = new DevExpress.XtraPivotGrid.PivotGridField(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldCategoryName1, this.fieldProductName1, this.fieldSalesPerson1, this.fieldExtendedPrice1 }); this.pivotGridControl1.Groups.AddRange(new DevExpress.XtraPivotGrid.PivotGridGroup[] { pivotGridGroup1 }); this.pivotGridControl1.Location = new System.Drawing.Point(12, 41); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(727, 416); this.pivotGridControl1.TabIndex = 0; // // excelDataSource1 // this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "CategoryName"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Country"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "FirstName"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "LastName"; fieldInfo4.Type = typeof(string); fieldInfo5.Name = "ProductName"; fieldInfo5.Type = typeof(string); fieldInfo6.Name = "Sales Person"; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "OrderDate"; fieldInfo7.Type = typeof(System.DateTime); fieldInfo8.Name = "OrderID"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "Quantity"; fieldInfo9.Type = typeof(double); fieldInfo10.Name = "Discount"; fieldInfo10.Type = typeof(double); fieldInfo11.Name = "Extended Price"; fieldInfo11.Type = typeof(double); fieldInfo12.Name = "UnitPrice"; fieldInfo12.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10, fieldInfo11, fieldInfo12 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Data"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // btnSave // this.btnSave.Location = new System.Drawing.Point(13, 12); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(75, 23); this.btnSave.TabIndex = 1; this.btnSave.Text = "Save"; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // btnLoad // this.btnLoad.Location = new System.Drawing.Point(94, 12); this.btnLoad.Name = "btnLoad"; this.btnLoad.Size = new System.Drawing.Size(75, 23); this.btnLoad.TabIndex = 2; this.btnLoad.Text = "Load"; this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click); // // fieldFirstName1 // this.fieldFirstName1.AreaIndex = 0; this.fieldFirstName1.Caption = "First Name"; this.fieldFirstName1.FieldName = "FirstName"; this.fieldFirstName1.Name = "fieldFirstName1"; // // btnClear // this.btnClear.Location = new System.Drawing.Point(175, 12); this.btnClear.Name = "btnClear"; this.btnClear.Size = new System.Drawing.Size(75, 23); this.btnClear.TabIndex = 3; this.btnClear.Text = "Clear"; this.btnClear.Click += new System.EventHandler(this.btnClear_Click); // // fieldCategoryName1 // this.fieldCategoryName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldCategoryName1.AreaIndex = 0; this.fieldCategoryName1.Caption = "Category Name"; this.fieldCategoryName1.FieldName = "CategoryName"; this.fieldCategoryName1.Name = "fieldCategoryName1"; // // fieldProductName1 // this.fieldProductName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldProductName1.AreaIndex = 1; this.fieldProductName1.Caption = "Product Name"; this.fieldProductName1.FieldName = "ProductName"; this.fieldProductName1.Name = "fieldProductName1"; // // fieldSalesPerson1 // this.fieldSalesPerson1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldSalesPerson1.AreaIndex = 0; this.fieldSalesPerson1.Caption = "Sales Person"; this.fieldSalesPerson1.FieldName = "Sales Person"; this.fieldSalesPerson1.Name = "fieldSalesPerson1"; // // fieldExtendedPrice1 // this.fieldExtendedPrice1.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldExtendedPrice1.AreaIndex = 0; this.fieldExtendedPrice1.Caption = "Extended Price"; this.fieldExtendedPrice1.FieldName = "Extended Price"; this.fieldExtendedPrice1.Name = "fieldExtendedPrice1"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(751, 469); this.Controls.Add(this.btnClear); this.Controls.Add(this.btnLoad); this.Controls.Add(this.btnSave); this.Controls.Add(this.pivotGridControl1); this.Name = "Form1"; this.Text = "RestoreLayoutExample"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.DashboardCommon.Dimension dimension1 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.Measure measure1 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Dimension dimension2 = new DevExpress.DashboardCommon.Dimension(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Dashboard1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); DevExpress.DashboardCommon.DashboardLayoutGroup dashboardLayoutGroup1 = new DevExpress.DashboardCommon.DashboardLayoutGroup(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem1 = new DevExpress.DashboardCommon.DashboardLayoutItem(); this.pieDashboardItem1 = new DevExpress.DashboardCommon.PieDashboardItem(); this.dashboardExcelDataSource1 = new DevExpress.DashboardCommon.DashboardExcelDataSource(); ((System.ComponentModel.ISupportInitialize)(this.pieDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // pieDashboardItem1 // dimension1.DataMember = "Category"; this.pieDashboardItem1.Arguments.AddRange(new DevExpress.DashboardCommon.Dimension[] { dimension1 }); this.pieDashboardItem1.ComponentName = "pieDashboardItem1"; measure1.DataMember = "RevenueQTD (Sum)"; dimension2.DataMember = "State"; this.pieDashboardItem1.DataItemRepository.Clear(); this.pieDashboardItem1.DataItemRepository.Add(measure1, "DataItem1"); this.pieDashboardItem1.DataItemRepository.Add(dimension2, "DataItem0"); this.pieDashboardItem1.DataItemRepository.Add(dimension1, "DataItem2"); this.pieDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.pieDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.pieDashboardItem1.Name = "Pies 1"; this.pieDashboardItem1.SeriesDimensions.AddRange(new DevExpress.DashboardCommon.Dimension[] { dimension2 }); this.pieDashboardItem1.ShowCaption = true; this.pieDashboardItem1.Values.AddRange(new DevExpress.DashboardCommon.Measure[] { measure1 }); // // dashboardExcelDataSource1 // this.dashboardExcelDataSource1.ComponentName = "dashboardExcelDataSource1"; this.dashboardExcelDataSource1.FileName = "|DataDirectory|\\Data\\Sales.xlsx"; this.dashboardExcelDataSource1.Name = "Excel Data Source 1"; this.dashboardExcelDataSource1.ResultSchemaSerializable = resources.GetString("dashboardExcelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "Category"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Product"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "State"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "UnitsSoldYTD (Sum)"; fieldInfo4.Type = typeof(double); fieldInfo5.Name = "UnitsSoldYTDTarget (Sum)"; fieldInfo5.Type = typeof(double); fieldInfo6.Name = "RevenueQTD (Sum)"; fieldInfo6.Type = typeof(double); fieldInfo7.Name = "RevenueQTDTarget (Sum)"; fieldInfo7.Type = typeof(double); fieldInfo8.Name = "RevenueYTD (Sum)"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "RevenueYTDTarget (Sum)"; fieldInfo9.Type = typeof(double); this.dashboardExcelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet1"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.dashboardExcelDataSource1.SourceOptions = excelSourceOptions1; // // Dashboard1 // this.CurrencyCultureName = null; this.DataSources.AddRange(new DevExpress.DashboardCommon.IDashboardDataSource[] { this.dashboardExcelDataSource1 }); this.Items.AddRange(new DevExpress.DashboardCommon.DashboardItem[] { this.pieDashboardItem1 }); dashboardLayoutItem1.DashboardItem = this.pieDashboardItem1; dashboardLayoutItem1.Weight = 42.646071188717258D; dashboardLayoutGroup1.ChildNodes.AddRange(new DevExpress.DashboardCommon.DashboardLayoutNode[] { dashboardLayoutItem1 }); dashboardLayoutGroup1.DashboardItem = null; dashboardLayoutGroup1.Weight = 100D; this.LayoutRoot = dashboardLayoutGroup1; this.Title.Text = "Sales by State - Totals"; ((System.ComponentModel.ISupportInitialize)(dimension1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pieDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.pageHeaderBand1 = new DevExpress.XtraReports.UI.PageHeaderBand(); this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell(); this.pageFooterBand1 = new DevExpress.XtraReports.UI.PageFooterBand(); this.xrPageInfo1 = new DevExpress.XtraReports.UI.XRPageInfo(); this.xrPageInfo2 = new DevExpress.XtraReports.UI.XRPageInfo(); this.reportHeaderBand1 = new DevExpress.XtraReports.UI.ReportHeaderBand(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); this.Title = new DevExpress.XtraReports.UI.XRControlStyle(); this.FieldCaption = new DevExpress.XtraReports.UI.XRControlStyle(); this.PageInfo = new DevExpress.XtraReports.UI.XRControlStyle(); this.DataField = new DevExpress.XtraReports.UI.XRControlStyle(); this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand(); this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLine1 = new DevExpress.XtraReports.UI.XRLine(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // Detail // this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel5, this.xrLabel4, this.xrLabel3, this.xrLabel2 }); this.Detail.HeightF = 23F; this.Detail.Name = "Detail"; this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.Detail.StyleName = "DataField"; this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\Users\\ishan.malik\\Downloads\\Customer Order.xlsx"; this.excelDataSource1.Name = "excelDataSource1"; fieldInfo1.Name = "Product"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Supplier"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "Column3"; fieldInfo3.Selected = false; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "Quantity"; fieldInfo4.Type = typeof(double); fieldInfo5.Name = "Discount"; fieldInfo5.Selected = false; fieldInfo5.Type = typeof(double); fieldInfo6.Name = "Subtotal"; fieldInfo6.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // pageHeaderBand1 // this.pageHeaderBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLine1, this.xrLabel9, this.xrLabel8, this.xrLabel7, this.xrLabel6 }); this.pageHeaderBand1.HeightF = 56.00001F; this.pageHeaderBand1.Name = "pageHeaderBand1"; // // xrTableRow1 // this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { this.xrTableCell1, this.xrTableCell2, this.xrTableCell3 }); this.xrTableRow1.Name = "xrTableRow1"; this.xrTableRow1.Weight = 1D; // // xrTableCell1 // this.xrTableCell1.Name = "xrTableCell1"; this.xrTableCell1.Text = "xrTableCell1"; this.xrTableCell1.Weight = 1D; // // xrTableCell2 // this.xrTableCell2.Name = "xrTableCell2"; this.xrTableCell2.Text = "xrTableCell2"; this.xrTableCell2.Weight = 1D; // // xrTableCell3 // this.xrTableCell3.Name = "xrTableCell3"; this.xrTableCell3.Text = "xrTableCell3"; this.xrTableCell3.Weight = 1D; // // xrTableRow2 // this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { this.xrTableCell4, this.xrTableCell5, this.xrTableCell6 }); this.xrTableRow2.Name = "xrTableRow2"; this.xrTableRow2.Weight = 1D; // // xrTableCell4 // this.xrTableCell4.Name = "xrTableCell4"; this.xrTableCell4.Text = "xrTableCell4"; this.xrTableCell4.Weight = 1D; // // xrTableCell5 // this.xrTableCell5.Name = "xrTableCell5"; this.xrTableCell5.Text = "xrTableCell5"; this.xrTableCell5.Weight = 1D; // // xrTableCell6 // this.xrTableCell6.Name = "xrTableCell6"; this.xrTableCell6.Text = "xrTableCell6"; this.xrTableCell6.Weight = 1D; // // pageFooterBand1 // this.pageFooterBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrPageInfo1, this.xrPageInfo2 }); this.pageFooterBand1.HeightF = 29F; this.pageFooterBand1.Name = "pageFooterBand1"; // // xrPageInfo1 // this.xrPageInfo1.LocationFloat = new DevExpress.Utils.PointFloat(6F, 6F); this.xrPageInfo1.Name = "xrPageInfo1"; this.xrPageInfo1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrPageInfo1.PageInfo = DevExpress.XtraPrinting.PageInfo.DateTime; this.xrPageInfo1.SizeF = new System.Drawing.SizeF(313F, 23F); this.xrPageInfo1.StyleName = "PageInfo"; // // xrPageInfo2 // this.xrPageInfo2.Format = "Page {0} of {1}"; this.xrPageInfo2.LocationFloat = new DevExpress.Utils.PointFloat(331F, 6F); this.xrPageInfo2.Name = "xrPageInfo2"; this.xrPageInfo2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrPageInfo2.SizeF = new System.Drawing.SizeF(313F, 23F); this.xrPageInfo2.StyleName = "PageInfo"; this.xrPageInfo2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; // // reportHeaderBand1 // this.reportHeaderBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel1 }); this.reportHeaderBand1.HeightF = 53F; this.reportHeaderBand1.Name = "reportHeaderBand1"; // // xrLabel1 // this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(6F, 6F); this.xrLabel1.Name = "xrLabel1"; this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel1.SizeF = new System.Drawing.SizeF(638F, 35F); this.xrLabel1.StyleName = "Title"; this.xrLabel1.Text = "Orders"; // // Title // this.Title.BackColor = System.Drawing.Color.Transparent; this.Title.BorderColor = System.Drawing.Color.Black; this.Title.Borders = DevExpress.XtraPrinting.BorderSide.None; this.Title.BorderWidth = 1F; this.Title.Font = new System.Drawing.Font("Times New Roman", 21F); this.Title.ForeColor = System.Drawing.Color.Black; this.Title.Name = "Title"; // // FieldCaption // this.FieldCaption.BackColor = System.Drawing.Color.Transparent; this.FieldCaption.BorderColor = System.Drawing.Color.Black; this.FieldCaption.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; this.FieldCaption.BorderWidth = 1F; this.FieldCaption.Font = new System.Drawing.Font("Times New Roman", 10F); this.FieldCaption.ForeColor = System.Drawing.Color.Black; this.FieldCaption.Name = "FieldCaption"; // // PageInfo // this.PageInfo.BackColor = System.Drawing.Color.Transparent; this.PageInfo.BorderColor = System.Drawing.Color.Black; this.PageInfo.Borders = DevExpress.XtraPrinting.BorderSide.None; this.PageInfo.BorderWidth = 1F; this.PageInfo.Font = new System.Drawing.Font("Arial", 8F); this.PageInfo.ForeColor = System.Drawing.Color.Black; this.PageInfo.Name = "PageInfo"; // // DataField // this.DataField.BackColor = System.Drawing.Color.Transparent; this.DataField.BorderColor = System.Drawing.Color.Black; this.DataField.Borders = DevExpress.XtraPrinting.BorderSide.None; this.DataField.BorderWidth = 1F; this.DataField.Font = new System.Drawing.Font("Arial", 9F); this.DataField.ForeColor = System.Drawing.Color.Black; this.DataField.Name = "DataField"; this.DataField.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); // // topMarginBand1 // this.topMarginBand1.HeightF = 51F; this.topMarginBand1.Name = "topMarginBand1"; // // bottomMarginBand1 // this.bottomMarginBand1.HeightF = 24F; this.bottomMarginBand1.Name = "bottomMarginBand1"; // // xrLabel2 // this.xrLabel2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "Product") }); this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 0F); this.xrLabel2.Name = "xrLabel2"; this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F); this.xrLabel2.SizeF = new System.Drawing.SizeF(182.7083F, 23F); this.xrLabel2.Text = "xrLabel2"; // // xrLabel3 // this.xrLabel3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "Quantity") }); this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(204.4167F, 0F); this.xrLabel3.Name = "xrLabel3"; this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F); this.xrLabel3.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel3.Text = "xrLabel3"; // // xrLabel4 // this.xrLabel4.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "Supplier") }); this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(427.0833F, 0F); this.xrLabel4.Name = "xrLabel4"; this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F); this.xrLabel4.SizeF = new System.Drawing.SizeF(187.5F, 23F); this.xrLabel4.Text = "xrLabel4"; // // xrLabel5 // this.xrLabel5.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "Subtotal") }); this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(315.625F, 0F); this.xrLabel5.Name = "xrLabel5"; this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F); this.xrLabel5.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel5.Text = "xrLabel5"; // // xrLabel6 // this.xrLabel6.Font = new System.Drawing.Font("Times New Roman", 5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Millimeter); this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 10.00001F); this.xrLabel6.Name = "xrLabel6"; this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F); this.xrLabel6.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel6.StylePriority.UseFont = false; this.xrLabel6.Text = "Product"; // // xrLabel7 // this.xrLabel7.Font = new System.Drawing.Font("Times New Roman", 5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Millimeter); this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(204.4167F, 10.00001F); this.xrLabel7.Name = "xrLabel7"; this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel7.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel7.StylePriority.UseFont = false; this.xrLabel7.Text = "Quantity"; // // xrLabel8 // this.xrLabel8.Font = new System.Drawing.Font("Times New Roman", 5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Millimeter); this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(315.625F, 10.00001F); this.xrLabel8.Name = "xrLabel8"; this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel8.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel8.StylePriority.UseFont = false; this.xrLabel8.Text = "SubTotal"; // // xrLabel9 // this.xrLabel9.Font = new System.Drawing.Font("Times New Roman", 5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Millimeter); this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(427.0833F, 10.00001F); this.xrLabel9.Name = "xrLabel9"; this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel9.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel9.StylePriority.UseFont = false; this.xrLabel9.Text = "Supplier"; // // xrLine1 // this.xrLine1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 33.00001F); this.xrLine1.Name = "xrLine1"; this.xrLine1.SizeF = new System.Drawing.SizeF(650F, 23F); // // XtraReport1 // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.Detail, this.pageHeaderBand1, this.pageFooterBand1, this.reportHeaderBand1, this.topMarginBand1, this.bottomMarginBand1 }); this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] { this.excelDataSource1 }); this.DataSource = this.excelDataSource1; this.Margins = new System.Drawing.Printing.Margins(100, 100, 51, 24); this.StyleSheet.AddRange(new DevExpress.XtraReports.UI.XRControlStyle[] { this.Title, this.FieldCaption, this.PageInfo, this.DataField }); this.Version = "15.2"; ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); DevExpress.XtraGrid.GridFormatRule gridFormatRule1 = new DevExpress.XtraGrid.GridFormatRule(); DevExpress.XtraEditors.FormatConditionRuleValue formatConditionRuleValue1 = new DevExpress.XtraEditors.FormatConditionRuleValue(); DevExpress.XtraGrid.GridFormatRule gridFormatRule2 = new DevExpress.XtraGrid.GridFormatRule(); 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(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(F6004ImportForm)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.colCalculable = new DevExpress.XtraGrid.Columns.GridColumn(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.buttonEdit1 = new DevExpress.XtraEditors.ButtonEdit(); this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.f6004BindingSource = new System.Windows.Forms.BindingSource(this.components); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colOrdre = new DevExpress.XtraGrid.Columns.GridColumn(); this.colCodeN = new DevExpress.XtraGrid.Columns.GridColumn(); this.colCodeN1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colLibelle = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colValeurN = new DevExpress.XtraGrid.Columns.GridColumn(); this.colValeurN1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colTypeValeurs = new DevExpress.XtraGrid.Columns.GridColumn(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.ValN_1comboBoxEdit = new DevExpress.XtraEditors.ComboBoxEdit(); this.CodeRubN_1comboBoxEdit = new DevExpress.XtraEditors.ComboBoxEdit(); this.CodeRubNetcomboBoxEdit = new DevExpress.XtraEditors.ComboBoxEdit(); this.ValNetcomboBoxEdit = new DevExpress.XtraEditors.ComboBoxEdit(); this.checkEdit1 = new DevExpress.XtraEditors.CheckEdit(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.CodeRubN_1layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.ValBrutlayoutControlItem = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.f6004BindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ValN_1comboBoxEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.CodeRubN_1comboBoxEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.CodeRubNetcomboBoxEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ValNetcomboBoxEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.CodeRubN_1layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ValBrutlayoutControlItem)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); this.SuspendLayout(); // // colCalculable // this.colCalculable.AppearanceHeader.Options.UseTextOptions = true; this.colCalculable.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colCalculable.Caption = "C"; this.colCalculable.FieldName = "Calculable"; this.colCalculable.Name = "colCalculable"; this.colCalculable.OptionsColumn.AllowEdit = false; this.colCalculable.OptionsColumn.AllowFocus = false; this.colCalculable.OptionsColumn.FixedWidth = true; this.colCalculable.OptionsColumn.ReadOnly = true; this.colCalculable.Width = 29; // // layoutControl1 // this.layoutControl1.Controls.Add(this.buttonEdit1); this.layoutControl1.Controls.Add(this.gridControl1); this.layoutControl1.Controls.Add(this.simpleButton1); this.layoutControl1.Controls.Add(this.ValN_1comboBoxEdit); this.layoutControl1.Controls.Add(this.CodeRubN_1comboBoxEdit); this.layoutControl1.Controls.Add(this.CodeRubNetcomboBoxEdit); this.layoutControl1.Controls.Add(this.ValNetcomboBoxEdit); this.layoutControl1.Controls.Add(this.checkEdit1); this.layoutControl1.Controls.Add(this.simpleButton2); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1224, 162, 450, 400); this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(1098, 513); this.layoutControl1.TabIndex = 1; this.layoutControl1.Text = "layoutControl1"; // // buttonEdit1 // this.buttonEdit1.Location = new System.Drawing.Point(134, 12); this.buttonEdit1.Name = "buttonEdit1"; this.buttonEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.buttonEdit1.Size = new System.Drawing.Size(952, 20); this.buttonEdit1.StyleController = this.layoutControl1; this.buttonEdit1.TabIndex = 11; this.buttonEdit1.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.buttonEdit1_ButtonClick); // // gridControl1 // this.gridControl1.DataSource = this.f6004BindingSource; this.gridControl1.Location = new System.Drawing.Point(24, 182); this.gridControl1.MainView = this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.Size = new System.Drawing.Size(1050, 281); this.gridControl1.TabIndex = 10; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 }); // // f6004BindingSource // this.f6004BindingSource.DataMember = "Lignes"; this.f6004BindingSource.DataSource = typeof(TVS.Module.Liasse.Model.F6004); // // gridView1 // this.gridView1.Appearance.HeaderPanel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.gridView1.Appearance.HeaderPanel.Options.UseFont = true; this.gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; this.gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.gridView1.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colOrdre, this.colCodeN, this.colCodeN1, this.colLibelle, this.gridColumn4, this.colCalculable, this.colValeurN, this.colValeurN1, this.colTypeValeurs }); gridFormatRule1.ApplyToRow = true; gridFormatRule1.Column = this.colCalculable; gridFormatRule1.Name = "Format0"; formatConditionRuleValue1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); formatConditionRuleValue1.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); formatConditionRuleValue1.Appearance.ForeColor = System.Drawing.Color.Blue; formatConditionRuleValue1.Appearance.Options.UseBackColor = true; formatConditionRuleValue1.Appearance.Options.UseFont = true; formatConditionRuleValue1.Appearance.Options.UseForeColor = true; formatConditionRuleValue1.Condition = DevExpress.XtraEditors.FormatCondition.Equal; formatConditionRuleValue1.Value1 = true; gridFormatRule1.Rule = formatConditionRuleValue1; gridFormatRule2.Column = this.colCalculable; gridFormatRule2.ColumnApplyTo = this.colCalculable; gridFormatRule2.Name = "Format1"; formatConditionIconSet1.CategoryName = "Ratings"; formatConditionIconSetIcon1.PredefinedName = "Stars3_1.png"; formatConditionIconSetIcon1.Value = new decimal(new int[] { 67, 0, 0, 0 }); formatConditionIconSetIcon1.ValueComparison = DevExpress.XtraEditors.FormatConditionComparisonType.GreaterOrEqual; formatConditionIconSetIcon2.PredefinedName = "Stars3_2.png"; formatConditionIconSetIcon2.Value = new decimal(new int[] { 33, 0, 0, 0 }); formatConditionIconSetIcon2.ValueComparison = DevExpress.XtraEditors.FormatConditionComparisonType.GreaterOrEqual; formatConditionIconSetIcon3.PredefinedName = "Stars3_3.png"; formatConditionIconSetIcon3.ValueComparison = DevExpress.XtraEditors.FormatConditionComparisonType.GreaterOrEqual; formatConditionIconSet1.Icons.Add(formatConditionIconSetIcon1); formatConditionIconSet1.Icons.Add(formatConditionIconSetIcon2); formatConditionIconSet1.Icons.Add(formatConditionIconSetIcon3); formatConditionIconSet1.Name = "Stars3"; formatConditionIconSet1.ValueType = DevExpress.XtraEditors.FormatConditionValueType.Percent; formatConditionRuleIconSet1.IconSet = formatConditionIconSet1; gridFormatRule2.Rule = formatConditionRuleIconSet1; this.gridView1.FormatRules.Add(gridFormatRule1); this.gridView1.FormatRules.Add(gridFormatRule2); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.ReadOnly = true; this.gridView1.OptionsNavigation.EnterMoveNextColumn = true; this.gridView1.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True; this.gridView1.OptionsView.RowAutoHeight = true; this.gridView1.OptionsView.ShowGroupPanel = false; this.gridView1.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] { new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.colOrdre, DevExpress.Data.ColumnSortOrder.Ascending) }); // // colOrdre // this.colOrdre.Caption = " "; this.colOrdre.FieldName = "Ordre"; this.colOrdre.Name = "colOrdre"; this.colOrdre.OptionsColumn.AllowEdit = false; this.colOrdre.OptionsColumn.AllowFocus = false; this.colOrdre.OptionsColumn.FixedWidth = true; this.colOrdre.OptionsColumn.ReadOnly = true; this.colOrdre.SortMode = DevExpress.XtraGrid.ColumnSortMode.Value; this.colOrdre.Width = 28; // // colCodeN // this.colCodeN.Caption = " Code Rubrique (Net)"; this.colCodeN.FieldName = "CodeN"; this.colCodeN.Name = "colCodeN"; this.colCodeN.OptionsColumn.AllowEdit = false; this.colCodeN.OptionsColumn.AllowFocus = false; this.colCodeN.OptionsColumn.FixedWidth = true; this.colCodeN.OptionsColumn.ReadOnly = true; this.colCodeN.Visible = true; this.colCodeN.VisibleIndex = 0; this.colCodeN.Width = 100; // // colCodeN1 // this.colCodeN1.Caption = " Code Rubrique (Net N-1)"; this.colCodeN1.FieldName = "CodeN1"; this.colCodeN1.Name = "colCodeN1"; this.colCodeN1.OptionsColumn.AllowEdit = false; this.colCodeN1.OptionsColumn.AllowFocus = false; this.colCodeN1.OptionsColumn.FixedWidth = true; this.colCodeN1.OptionsColumn.ReadOnly = true; this.colCodeN1.Visible = true; this.colCodeN1.VisibleIndex = 1; this.colCodeN1.Width = 100; // // colLibelle // this.colLibelle.AppearanceCell.Options.UseTextOptions = true; this.colLibelle.AppearanceCell.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; this.colLibelle.FieldName = "Libelle"; this.colLibelle.Name = "colLibelle"; this.colLibelle.OptionsColumn.AllowEdit = false; this.colLibelle.OptionsColumn.AllowFocus = false; this.colLibelle.OptionsColumn.ReadOnly = true; this.colLibelle.Visible = true; this.colLibelle.VisibleIndex = 2; this.colLibelle.Width = 134; // // gridColumn4 // this.gridColumn4.AppearanceCell.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.gridColumn4.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.gridColumn4.AppearanceCell.Options.UseBackColor = true; this.gridColumn4.AppearanceCell.Options.UseFont = true; this.gridColumn4.AppearanceHeader.Options.UseTextOptions = true; this.gridColumn4.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.gridColumn4.Caption = "C"; this.gridColumn4.FieldName = "gridColumn4"; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.OptionsColumn.AllowEdit = false; this.gridColumn4.OptionsColumn.AllowFocus = false; this.gridColumn4.OptionsColumn.FixedWidth = true; this.gridColumn4.OptionsColumn.ReadOnly = true; this.gridColumn4.UnboundExpression = "Iif([Calculable] = True, \'∑\', \'=\')"; this.gridColumn4.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 3; this.gridColumn4.Width = 20; // // colValeurN // this.colValeurN.Caption = "Net"; this.colValeurN.DisplayFormat.FormatString = "N3"; this.colValeurN.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.colValeurN.FieldName = "ValeurN"; this.colValeurN.Name = "colValeurN"; this.colValeurN.OptionsColumn.AllowEdit = false; this.colValeurN.OptionsColumn.AllowFocus = false; this.colValeurN.OptionsColumn.FixedWidth = true; this.colValeurN.Visible = true; this.colValeurN.VisibleIndex = 4; this.colValeurN.Width = 120; // // colValeurN1 // this.colValeurN1.Caption = "Net N-1"; this.colValeurN1.DisplayFormat.FormatString = "N3"; this.colValeurN1.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.colValeurN1.FieldName = "ValeurN1"; this.colValeurN1.Name = "colValeurN1"; this.colValeurN1.OptionsColumn.FixedWidth = true; this.colValeurN1.Visible = true; this.colValeurN1.VisibleIndex = 5; this.colValeurN1.Width = 120; // // colTypeValeurs // this.colTypeValeurs.FieldName = "TypeValeurs"; this.colTypeValeurs.Name = "colTypeValeurs"; this.colTypeValeurs.OptionsColumn.AllowEdit = false; this.colTypeValeurs.OptionsColumn.AllowFocus = false; this.colTypeValeurs.OptionsColumn.FixedWidth = true; this.colTypeValeurs.OptionsColumn.ReadOnly = true; this.colTypeValeurs.Width = 100; // // simpleButton1 // this.simpleButton1.Location = new System.Drawing.Point(1004, 126); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(82, 22); this.simpleButton1.StyleController = this.layoutControl1; this.simpleButton1.TabIndex = 9; this.simpleButton1.Text = "Aperçu"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // ValN_1comboBoxEdit // this.ValN_1comboBoxEdit.Location = new System.Drawing.Point(436, 90); this.ValN_1comboBoxEdit.Name = "ValN_1comboBoxEdit"; this.ValN_1comboBoxEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.ValN_1comboBoxEdit.Size = new System.Drawing.Size(134, 20); this.ValN_1comboBoxEdit.StyleController = this.layoutControl1; this.ValN_1comboBoxEdit.TabIndex = 8; // // CodeRubN_1comboBoxEdit // this.CodeRubN_1comboBoxEdit.Location = new System.Drawing.Point(146, 90); this.CodeRubN_1comboBoxEdit.Name = "CodeRubN_1comboBoxEdit"; this.CodeRubN_1comboBoxEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.CodeRubN_1comboBoxEdit.Size = new System.Drawing.Size(164, 20); this.CodeRubN_1comboBoxEdit.StyleController = this.layoutControl1; this.CodeRubN_1comboBoxEdit.TabIndex = 6; // // CodeRubNetcomboBoxEdit // this.CodeRubNetcomboBoxEdit.Location = new System.Drawing.Point(146, 66); this.CodeRubNetcomboBoxEdit.Name = "CodeRubNetcomboBoxEdit"; this.CodeRubNetcomboBoxEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.CodeRubNetcomboBoxEdit.Size = new System.Drawing.Size(164, 20); this.CodeRubNetcomboBoxEdit.StyleController = this.layoutControl1; this.CodeRubNetcomboBoxEdit.TabIndex = 4; // // ValNetcomboBoxEdit // this.ValNetcomboBoxEdit.Location = new System.Drawing.Point(436, 66); this.ValNetcomboBoxEdit.Name = "ValNetcomboBoxEdit"; this.ValNetcomboBoxEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.ValNetcomboBoxEdit.Size = new System.Drawing.Size(220, 20); this.ValNetcomboBoxEdit.StyleController = this.layoutControl1; this.ValNetcomboBoxEdit.TabIndex = 1; // // checkEdit1 // this.checkEdit1.Location = new System.Drawing.Point(574, 90); this.checkEdit1.Name = "checkEdit1"; this.checkEdit1.Properties.Caption = "Exercice - 1"; this.checkEdit1.Size = new System.Drawing.Size(82, 19); this.checkEdit1.StyleController = this.layoutControl1; this.checkEdit1.TabIndex = 12; // // simpleButton2 // this.simpleButton2.Location = new System.Drawing.Point(999, 467); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(75, 22); this.simpleButton2.StyleController = this.layoutControl1; this.simpleButton2.TabIndex = 13; this.simpleButton2.Text = "Importer"; this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); // // layoutControlGroup1 // this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem7, this.emptySpaceItem1, this.layoutControlItem9, this.layoutControlGroup2, this.emptySpaceItem2, this.layoutControlGroup3 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "Root"; this.layoutControlGroup1.Size = new System.Drawing.Size(1098, 513); this.layoutControlGroup1.TextVisible = false; // // layoutControlItem7 // this.layoutControlItem7.Control = this.simpleButton1; this.layoutControlItem7.Location = new System.Drawing.Point(992, 114); this.layoutControlItem7.Name = "layoutControlItem7"; this.layoutControlItem7.Size = new System.Drawing.Size(86, 26); this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem7.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 114); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(992, 26); this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem9 // this.layoutControlItem9.Control = this.buttonEdit1; this.layoutControlItem9.Location = new System.Drawing.Point(0, 0); this.layoutControlItem9.Name = "layoutControlItem9"; this.layoutControlItem9.Size = new System.Drawing.Size(1078, 24); this.layoutControlItem9.Text = "Source"; this.layoutControlItem9.TextSize = new System.Drawing.Size(119, 13); // // layoutControlGroup2 // this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem2, this.CodeRubN_1layoutControlItem4, this.ValBrutlayoutControlItem, this.layoutControlItem6, this.layoutControlItem10 }); this.layoutControlGroup2.Location = new System.Drawing.Point(0, 24); this.layoutControlGroup2.Name = "layoutControlGroup2"; this.layoutControlGroup2.Size = new System.Drawing.Size(660, 90); this.layoutControlGroup2.Text = "Liaison des données"; // // layoutControlItem2 // this.layoutControlItem2.Control = this.CodeRubNetcomboBoxEdit; this.layoutControlItem2.Location = new System.Drawing.Point(0, 0); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(290, 24); this.layoutControlItem2.Text = "Code Rubrique (Net)"; this.layoutControlItem2.TextSize = new System.Drawing.Size(119, 13); // // CodeRubN_1layoutControlItem4 // this.CodeRubN_1layoutControlItem4.Control = this.CodeRubN_1comboBoxEdit; this.CodeRubN_1layoutControlItem4.Location = new System.Drawing.Point(0, 24); this.CodeRubN_1layoutControlItem4.Name = "CodeRubN_1layoutControlItem4"; this.CodeRubN_1layoutControlItem4.Size = new System.Drawing.Size(290, 24); this.CodeRubN_1layoutControlItem4.Text = "Code Rubrique (Net N-1)"; this.CodeRubN_1layoutControlItem4.TextSize = new System.Drawing.Size(119, 13); // // ValBrutlayoutControlItem // this.ValBrutlayoutControlItem.Control = this.ValNetcomboBoxEdit; this.ValBrutlayoutControlItem.Location = new System.Drawing.Point(290, 0); this.ValBrutlayoutControlItem.Name = "ValBrutlayoutControlItem"; this.ValBrutlayoutControlItem.Size = new System.Drawing.Size(346, 24); this.ValBrutlayoutControlItem.Text = "Net"; this.ValBrutlayoutControlItem.TextSize = new System.Drawing.Size(119, 13); // // layoutControlItem6 // this.layoutControlItem6.Control = this.ValN_1comboBoxEdit; this.layoutControlItem6.Location = new System.Drawing.Point(290, 24); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new System.Drawing.Size(260, 24); this.layoutControlItem6.Text = "Net N-1"; this.layoutControlItem6.TextSize = new System.Drawing.Size(119, 13); // // layoutControlItem10 // this.layoutControlItem10.Control = this.checkEdit1; this.layoutControlItem10.Location = new System.Drawing.Point(550, 24); this.layoutControlItem10.Name = "layoutControlItem10"; this.layoutControlItem10.Size = new System.Drawing.Size(86, 24); this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem10.TextVisible = false; this.layoutControlItem10.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.Location = new System.Drawing.Point(660, 24); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(418, 90); this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // layoutControlGroup3 // this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem8, this.emptySpaceItem3, this.layoutControlItem11 }); this.layoutControlGroup3.Location = new System.Drawing.Point(0, 140); this.layoutControlGroup3.Name = "layoutControlGroup3"; this.layoutControlGroup3.Size = new System.Drawing.Size(1078, 353); this.layoutControlGroup3.Text = "Apperçu"; // // layoutControlItem8 // this.layoutControlItem8.Control = this.gridControl1; this.layoutControlItem8.Location = new System.Drawing.Point(0, 0); this.layoutControlItem8.Name = "layoutControlItem8"; this.layoutControlItem8.Size = new System.Drawing.Size(1054, 285); this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem8.TextVisible = false; // // emptySpaceItem3 // this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.Location = new System.Drawing.Point(0, 285); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(975, 26); this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem11 // this.layoutControlItem11.Control = this.simpleButton2; this.layoutControlItem11.Location = new System.Drawing.Point(975, 285); this.layoutControlItem11.Name = "layoutControlItem11"; this.layoutControlItem11.Size = new System.Drawing.Size(79, 26); this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem11.TextVisible = false; // // excelDataSource1 // this.excelDataSource1.FileName = ""; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = " Code Rubrique (Brut)"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = " Code Rubrique(Prov/Amort)"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = " Code Rubrique (Net)"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = " Code Rubrique (Net N-1)"; fieldInfo4.Type = typeof(string); fieldInfo5.Name = "Libelle"; fieldInfo5.Type = typeof(string); fieldInfo6.Name = "C"; fieldInfo6.Selected = false; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "Brut"; fieldInfo7.Type = typeof(decimal); fieldInfo8.Name = "Prov / Amort"; fieldInfo8.Type = typeof(decimal); fieldInfo9.Name = "Net"; fieldInfo9.Type = typeof(decimal); fieldInfo10.Name = "Net N-1"; fieldInfo10.Type = typeof(decimal); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // openFileDialog1 // this.openFileDialog1.DefaultExt = "xlsx"; this.openFileDialog1.Filter = "Classeur Excel | *.xlsx"; // // F6004ImportForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1098, 513); this.Controls.Add(this.layoutControl1); this.Name = "F6004ImportForm"; this.Text = "F6004ImportForm"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.f6004BindingSource)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ValN_1comboBoxEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.CodeRubN_1comboBoxEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.CodeRubNetcomboBoxEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ValNetcomboBoxEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.CodeRubN_1layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ValBrutlayoutControlItem)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo10 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo11 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo12 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.fieldProductName = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldOrderDate = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldQuantity = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldQuarter = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldPercent = new DevExpress.XtraPivotGrid.PivotGridField(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.Cursor = System.Windows.Forms.Cursors.Default; this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldProductName, this.fieldSalesPerson, this.fieldOrderDate, this.fieldQuantity, this.fieldQuarter, this.fieldPercent }); this.pivotGridControl1.Location = new System.Drawing.Point(0, 0); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(693, 404); this.pivotGridControl1.TabIndex = 0; // // excelDataSource1 // this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "CategoryName"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Country"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "FirstName"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "LastName"; fieldInfo4.Type = typeof(string); fieldInfo5.Name = "ProductName"; fieldInfo5.Type = typeof(string); fieldInfo6.Name = "Sales Person"; fieldInfo6.Type = typeof(string); fieldInfo7.Name = "OrderDate"; fieldInfo7.Type = typeof(System.DateTime); fieldInfo8.Name = "OrderID"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "Quantity"; fieldInfo9.Type = typeof(double); fieldInfo10.Name = "Discount"; fieldInfo10.Type = typeof(double); fieldInfo11.Name = "Extended Price"; fieldInfo11.Type = typeof(double); fieldInfo12.Name = "UnitPrice"; fieldInfo12.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9, fieldInfo10, fieldInfo11, fieldInfo12 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Data"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.excelDataSource1.SourceOptions = excelSourceOptions1; // // fieldProductName // this.fieldProductName.AreaIndex = 0; this.fieldProductName.Caption = "Product Name"; this.fieldProductName.FieldName = "ProductName"; this.fieldProductName.Name = "fieldProductName"; // // fieldSalesPerson // this.fieldSalesPerson.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldSalesPerson.AreaIndex = 0; this.fieldSalesPerson.Caption = "Sales Person"; this.fieldSalesPerson.FieldName = "Sales Person"; this.fieldSalesPerson.Name = "fieldSalesPerson"; // // fieldOrderDate // this.fieldOrderDate.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldOrderDate.AreaIndex = 0; this.fieldOrderDate.Caption = "Order Date"; this.fieldOrderDate.FieldName = "OrderDate"; this.fieldOrderDate.GroupInterval = DevExpress.XtraPivotGrid.PivotGroupInterval.DateYear; this.fieldOrderDate.Name = "fieldOrderDate"; this.fieldOrderDate.UnboundFieldName = "fieldOrderDate"; // // fieldQuantity // this.fieldQuantity.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldQuantity.AreaIndex = 0; this.fieldQuantity.Caption = "Quantity"; this.fieldQuantity.FieldName = "Quantity"; this.fieldQuantity.Name = "fieldQuantity"; this.fieldQuantity.Options.ShowGrandTotal = false; // // fieldQuarter // this.fieldQuarter.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldQuarter.AreaIndex = 1; this.fieldQuarter.Caption = "Quarter"; this.fieldQuarter.FieldName = "OrderDate"; this.fieldQuarter.GroupInterval = DevExpress.XtraPivotGrid.PivotGroupInterval.DateQuarter; this.fieldQuarter.Name = "fieldQuarter"; this.fieldQuarter.UnboundFieldName = "fieldQuarter"; // // fieldPercent // this.fieldPercent.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldPercent.AreaIndex = 1; this.fieldPercent.Caption = "Diff"; this.fieldPercent.FieldName = "Quantity"; this.fieldPercent.Name = "fieldPercent"; this.fieldPercent.Options.ShowGrandTotal = false; this.fieldPercent.Options.ShowTotals = false; this.fieldPercent.ToolTips.HeaderText = "Percent Difference from Previous Period"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(693, 404); this.Controls.Add(this.pivotGridControl1); this.Name = "Form1"; this.Text = "Percent Difference from Previous Period"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.DashboardCommon.Dimension dimension1 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.Measure measure1 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure2 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure3 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.ValueMap valueMap1 = new DevExpress.DashboardCommon.ValueMap(); DevExpress.DashboardCommon.UniformScale uniformScale1 = new DevExpress.DashboardCommon.UniformScale(); DevExpress.DashboardCommon.DeltaMap deltaMap1 = new DevExpress.DashboardCommon.DeltaMap(); DevExpress.DashboardCommon.Dimension dimension2 = new DevExpress.DashboardCommon.Dimension(); DevExpress.DashboardCommon.GridDimensionColumn gridDimensionColumn1 = new DevExpress.DashboardCommon.GridDimensionColumn(); DevExpress.DashboardCommon.Measure measure4 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.Measure measure5 = new DevExpress.DashboardCommon.Measure(); DevExpress.DashboardCommon.GridDeltaColumn gridDeltaColumn1 = new DevExpress.DashboardCommon.GridDeltaColumn(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SampleDashboard)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo1 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo2 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo3 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo4 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo5 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo6 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo7 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo8 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo9 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings1 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions1 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings1); DevExpress.DashboardCommon.DashboardLayoutGroup dashboardLayoutGroup1 = new DevExpress.DashboardCommon.DashboardLayoutGroup(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem1 = new DevExpress.DashboardCommon.DashboardLayoutItem(); DevExpress.DashboardCommon.DashboardLayoutItem dashboardLayoutItem2 = new DevExpress.DashboardCommon.DashboardLayoutItem(); this.choroplethMapDashboardItem1 = new DevExpress.DashboardCommon.ChoroplethMapDashboardItem(); this.gridDashboardItem1 = new DevExpress.DashboardCommon.GridDashboardItem(); this.dashboardExcelDataSource1 = new DevExpress.DashboardCommon.DashboardExcelDataSource(); ((System.ComponentModel.ISupportInitialize)(this.choroplethMapDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridDashboardItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(measure5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // choroplethMapDashboardItem1 // this.choroplethMapDashboardItem1.Area = DevExpress.DashboardCommon.ShapefileArea.USA; dimension1.DataMember = "State"; this.choroplethMapDashboardItem1.AttributeDimension = dimension1; this.choroplethMapDashboardItem1.AttributeName = "NAME"; this.choroplethMapDashboardItem1.ComponentName = "choroplethMapDashboardItem1"; measure1.DataMember = "RevenueYTD (Sum)"; measure2.DataMember = "RevenueYTD (Sum)"; measure3.DataMember = "RevenueYTDTarget (Sum)"; this.choroplethMapDashboardItem1.DataItemRepository.Clear(); this.choroplethMapDashboardItem1.DataItemRepository.Add(dimension1, "DataItem0"); this.choroplethMapDashboardItem1.DataItemRepository.Add(measure1, "DataItem1"); this.choroplethMapDashboardItem1.DataItemRepository.Add(measure2, "DataItem2"); this.choroplethMapDashboardItem1.DataItemRepository.Add(measure3, "DataItem3"); this.choroplethMapDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.choroplethMapDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.choroplethMapDashboardItem1.InteractivityOptions.MasterFilterMode = DevExpress.DashboardCommon.DashboardItemMasterFilterMode.Multiple; valueMap1.Name = "Revenue YTD"; valueMap1.Scale = uniformScale1; valueMap1.ValueName = "Revenue"; valueMap1.AddDataItem("Value", measure1); deltaMap1.AbsoluteVariationNumericFormat.FormatType = DevExpress.DashboardCommon.DataItemNumericFormatType.Number; deltaMap1.AbsoluteVariationNumericFormat.Precision = 0; deltaMap1.ActualValueName = "Revenue"; deltaMap1.DeltaName = "vs Target"; deltaMap1.Name = "Revenue YTD vs Target"; deltaMap1.PercentOfTargetNumericFormat.FormatType = DevExpress.DashboardCommon.DataItemNumericFormatType.Percent; deltaMap1.PercentVariationNumericFormat.FormatType = DevExpress.DashboardCommon.DataItemNumericFormatType.Percent; deltaMap1.AddDataItem("ActualValue", measure2); deltaMap1.AddDataItem("TargetValue", measure3); this.choroplethMapDashboardItem1.Maps.AddRange(new DevExpress.DashboardCommon.ChoroplethMap[] { valueMap1, deltaMap1 }); this.choroplethMapDashboardItem1.Name = "Sales by State"; this.choroplethMapDashboardItem1.ShapeTitleAttributeName = "ABBREV"; this.choroplethMapDashboardItem1.ShowCaption = true; this.choroplethMapDashboardItem1.Viewport.BottomLatitude = 22.722765208057595D; this.choroplethMapDashboardItem1.Viewport.CenterPointLatitude = 37.208247632673633D; this.choroplethMapDashboardItem1.Viewport.CenterPointLongitude = -95.848499902568008D; this.choroplethMapDashboardItem1.Viewport.LeftLongitude = -124.70997774915153D; this.choroplethMapDashboardItem1.Viewport.RightLongitude = -66.987022055984482D; this.choroplethMapDashboardItem1.Viewport.TopLatitude = 49.369672064487254D; // // gridDashboardItem1 // dimension2.DataMember = "Product"; gridDimensionColumn1.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridDimensionColumn1.AddDataItem("Dimension", dimension2); measure4.DataMember = "UnitsSoldYTD (Sum)"; measure5.DataMember = "UnitsSoldYTDTarget (Sum)"; gridDeltaColumn1.AbsoluteVariationNumericFormat.FormatType = DevExpress.DashboardCommon.DataItemNumericFormatType.Number; gridDeltaColumn1.AbsoluteVariationNumericFormat.Precision = 0; gridDeltaColumn1.Name = "UnitsSold YTD vs Target"; gridDeltaColumn1.PercentOfTargetNumericFormat.FormatType = DevExpress.DashboardCommon.DataItemNumericFormatType.Percent; gridDeltaColumn1.PercentVariationNumericFormat.FormatType = DevExpress.DashboardCommon.DataItemNumericFormatType.Percent; gridDeltaColumn1.WidthType = DevExpress.DashboardCommon.GridColumnFixedWidthType.Weight; gridDeltaColumn1.AddDataItem("ActualValue", measure4); gridDeltaColumn1.AddDataItem("TargetValue", measure5); this.gridDashboardItem1.Columns.AddRange(new DevExpress.DashboardCommon.GridColumnBase[] { gridDimensionColumn1, gridDeltaColumn1 }); this.gridDashboardItem1.ComponentName = "gridDashboardItem1"; this.gridDashboardItem1.DataItemRepository.Clear(); this.gridDashboardItem1.DataItemRepository.Add(dimension2, "DataItem0"); this.gridDashboardItem1.DataItemRepository.Add(measure4, "DataItem1"); this.gridDashboardItem1.DataItemRepository.Add(measure5, "DataItem2"); this.gridDashboardItem1.DataSource = this.dashboardExcelDataSource1; this.gridDashboardItem1.InteractivityOptions.IgnoreMasterFilters = false; this.gridDashboardItem1.Name = "Product Units Sold"; this.gridDashboardItem1.ShowCaption = true; // // dashboardExcelDataSource1 // this.dashboardExcelDataSource1.ComponentName = "dashboardExcelDataSource1"; this.dashboardExcelDataSource1.FileName = "|DataDirectory|\\Data\\Sales.xlsx"; this.dashboardExcelDataSource1.Name = "Excel Data Source 1"; this.dashboardExcelDataSource1.ResultSchemaSerializable = resources.GetString("dashboardExcelDataSource1.ResultSchemaSerializable"); fieldInfo1.Name = "Category"; fieldInfo1.Type = typeof(string); fieldInfo2.Name = "Product"; fieldInfo2.Type = typeof(string); fieldInfo3.Name = "State"; fieldInfo3.Type = typeof(string); fieldInfo4.Name = "UnitsSoldYTD (Sum)"; fieldInfo4.Type = typeof(double); fieldInfo5.Name = "UnitsSoldYTDTarget (Sum)"; fieldInfo5.Type = typeof(double); fieldInfo6.Name = "RevenueQTD (Sum)"; fieldInfo6.Type = typeof(double); fieldInfo7.Name = "RevenueQTDTarget (Sum)"; fieldInfo7.Type = typeof(double); fieldInfo8.Name = "RevenueYTD (Sum)"; fieldInfo8.Type = typeof(double); fieldInfo9.Name = "RevenueYTDTarget (Sum)"; fieldInfo9.Type = typeof(double); this.dashboardExcelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo1, fieldInfo2, fieldInfo3, fieldInfo4, fieldInfo5, fieldInfo6, fieldInfo7, fieldInfo8, fieldInfo9 }); excelWorksheetSettings1.CellRange = null; excelWorksheetSettings1.WorksheetName = "Sheet1"; excelSourceOptions1.ImportSettings = excelWorksheetSettings1; this.dashboardExcelDataSource1.SourceOptions = excelSourceOptions1; // // SampleDashboard // this.CurrencyCultureName = null; this.DataSources.AddRange(new DevExpress.DashboardCommon.IDashboardDataSource[] { this.dashboardExcelDataSource1 }); this.Items.AddRange(new DevExpress.DashboardCommon.DashboardItem[] { this.choroplethMapDashboardItem1, this.gridDashboardItem1 }); dashboardLayoutItem1.DashboardItem = this.choroplethMapDashboardItem1; dashboardLayoutItem1.Weight = 62.659846547314579D; dashboardLayoutItem2.DashboardItem = this.gridDashboardItem1; dashboardLayoutItem2.Weight = 37.340153452685421D; dashboardLayoutGroup1.ChildNodes.AddRange(new DevExpress.DashboardCommon.DashboardLayoutNode[] { dashboardLayoutItem1, dashboardLayoutItem2 }); dashboardLayoutGroup1.DashboardItem = null; this.LayoutRoot = dashboardLayoutGroup1; this.Title.Text = "Sample Dashboard"; ((System.ComponentModel.ISupportInitialize)(dimension1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.choroplethMapDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(dimension2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(measure5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridDashboardItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dashboardExcelDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.DataAccess.Excel.FieldInfo fieldInfo21 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo22 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo23 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo24 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo25 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo26 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo27 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo28 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo29 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.FieldInfo fieldInfo30 = new DevExpress.DataAccess.Excel.FieldInfo(); DevExpress.DataAccess.Excel.ExcelWorksheetSettings excelWorksheetSettings3 = new DevExpress.DataAccess.Excel.ExcelWorksheetSettings(); DevExpress.DataAccess.Excel.ExcelSourceOptions excelSourceOptions3 = new DevExpress.DataAccess.Excel.ExcelSourceOptions(excelWorksheetSettings3); this.pivotGridControl1 = new DevExpress.XtraPivotGrid.PivotGridControl(); this.salesPersonBindingSource = new System.Windows.Forms.BindingSource(this.components); this.excelDataSource1 = new DevExpress.DataAccess.Excel.ExcelDataSource(); this.fieldOrderID1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldCountry1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldFirstName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldLastName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldProductName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldCategoryName1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldOrderDate1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldUnitPrice1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldQuantity1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldDiscount1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldExtendedPrice1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldSalesPerson1 = new DevExpress.XtraPivotGrid.PivotGridField(); this.fieldQuantityDistinctCount = new DevExpress.XtraPivotGrid.PivotGridField(); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.salesPersonBindingSource)).BeginInit(); this.SuspendLayout(); // // pivotGridControl1 // this.pivotGridControl1.DataSource = this.excelDataSource1; this.pivotGridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.pivotGridControl1.Fields.AddRange(new DevExpress.XtraPivotGrid.PivotGridField[] { this.fieldOrderID1, this.fieldCountry1, this.fieldFirstName1, this.fieldLastName1, this.fieldProductName1, this.fieldCategoryName1, this.fieldOrderDate1, this.fieldUnitPrice1, this.fieldQuantity1, this.fieldDiscount1, this.fieldExtendedPrice1, this.fieldSalesPerson1 }); this.pivotGridControl1.Location = new System.Drawing.Point(0, 0); this.pivotGridControl1.Name = "pivotGridControl1"; this.pivotGridControl1.Size = new System.Drawing.Size(775, 447); this.pivotGridControl1.TabIndex = 0; // // excelDataSource1 // this.excelDataSource1.FileName = "C:\\Data\\SalesPerson.xlsx"; this.excelDataSource1.Name = "excelDataSource1"; this.excelDataSource1.ResultSchemaSerializable = resources.GetString("excelDataSource1.ResultSchemaSerializable"); fieldInfo21.Name = "CategoryName"; fieldInfo21.Type = typeof(string); fieldInfo22.Name = "Country"; fieldInfo22.Type = typeof(string); fieldInfo23.Name = "ProductName"; fieldInfo23.Type = typeof(string); fieldInfo24.Name = "Sales Person"; fieldInfo24.Type = typeof(string); fieldInfo25.Name = "OrderDate"; fieldInfo25.Type = typeof(System.DateTime); fieldInfo26.Name = "OrderID"; fieldInfo26.Type = typeof(double); fieldInfo27.Name = "Quantity"; fieldInfo27.Type = typeof(double); fieldInfo28.Name = "Discount"; fieldInfo28.Type = typeof(double); fieldInfo29.Name = "Extended Price"; fieldInfo29.Type = typeof(double); fieldInfo30.Name = "UnitPrice"; fieldInfo30.Type = typeof(double); this.excelDataSource1.Schema.AddRange(new DevExpress.DataAccess.Excel.FieldInfo[] { fieldInfo21, fieldInfo22, fieldInfo23, fieldInfo24, fieldInfo25, fieldInfo26, fieldInfo27, fieldInfo28, fieldInfo29, fieldInfo30 }); excelWorksheetSettings3.CellRange = null; excelWorksheetSettings3.WorksheetName = "Data"; excelSourceOptions3.ImportSettings = excelWorksheetSettings3; this.excelDataSource1.SourceOptions = excelSourceOptions3; // // fieldOrderID1 // this.fieldOrderID1.AreaIndex = 0; this.fieldOrderID1.Caption = "Order ID"; this.fieldOrderID1.FieldName = "OrderID"; this.fieldOrderID1.Name = "fieldOrderID1"; // // fieldCountry1 // this.fieldCountry1.AreaIndex = 1; this.fieldCountry1.Caption = "Country"; this.fieldCountry1.FieldName = "Country"; this.fieldCountry1.Name = "fieldCountry1"; // // fieldFirstName1 // this.fieldFirstName1.AreaIndex = 2; this.fieldFirstName1.Caption = "First Name"; this.fieldFirstName1.FieldName = "FirstName"; this.fieldFirstName1.Name = "fieldFirstName1"; // // fieldLastName1 // this.fieldLastName1.AreaIndex = 3; this.fieldLastName1.Caption = "Last Name"; this.fieldLastName1.FieldName = "LastName"; this.fieldLastName1.Name = "fieldLastName1"; // // fieldProductName1 // this.fieldProductName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldProductName1.AreaIndex = 1; this.fieldProductName1.Caption = "Product Name"; this.fieldProductName1.FieldName = "ProductName"; this.fieldProductName1.Name = "fieldProductName1"; // // fieldCategoryName1 // this.fieldCategoryName1.Area = DevExpress.XtraPivotGrid.PivotArea.RowArea; this.fieldCategoryName1.AreaIndex = 0; this.fieldCategoryName1.Caption = "Category Name"; this.fieldCategoryName1.FieldName = "CategoryName"; this.fieldCategoryName1.Name = "fieldCategoryName1"; // // fieldOrderDate1 // this.fieldOrderDate1.Area = DevExpress.XtraPivotGrid.PivotArea.ColumnArea; this.fieldOrderDate1.AreaIndex = 0; this.fieldOrderDate1.Caption = "OrderDate"; this.fieldOrderDate1.FieldName = "OrderDate"; this.fieldOrderDate1.GroupInterval = DevExpress.XtraPivotGrid.PivotGroupInterval.DateYear; this.fieldOrderDate1.Name = "fieldOrderDate1"; this.fieldOrderDate1.UnboundFieldName = "fieldOrderDate1"; // // fieldUnitPrice1 // this.fieldUnitPrice1.AreaIndex = 4; this.fieldUnitPrice1.Caption = "Unit Price"; this.fieldUnitPrice1.FieldName = "UnitPrice"; this.fieldUnitPrice1.Name = "fieldUnitPrice1"; // // fieldQuantity1 // this.fieldQuantity1.Area = DevExpress.XtraPivotGrid.PivotArea.DataArea; this.fieldQuantity1.AreaIndex = 0; this.fieldQuantity1.Caption = "Quantity"; this.fieldQuantity1.FieldName = "Quantity"; this.fieldQuantity1.Name = "fieldQuantity1"; // // fieldDiscount1 // this.fieldDiscount1.AreaIndex = 5; this.fieldDiscount1.Caption = "Discount"; this.fieldDiscount1.FieldName = "Discount"; this.fieldDiscount1.Name = "fieldDiscount1"; // // fieldExtendedPrice1 // this.fieldExtendedPrice1.AreaIndex = 6; this.fieldExtendedPrice1.Caption = "Extended Price"; this.fieldExtendedPrice1.FieldName = "Extended Price"; this.fieldExtendedPrice1.Name = "fieldExtendedPrice1"; // // fieldSalesPerson1 // this.fieldSalesPerson1.AreaIndex = 7; this.fieldSalesPerson1.Caption = "Sales Person"; this.fieldSalesPerson1.FieldName = "Sales Person"; this.fieldSalesPerson1.Name = "fieldSalesPerson1"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(775, 447); this.Controls.Add(this.pivotGridControl1); this.Name = "Form1"; this.Text = "Custom Summary Distinct Count"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pivotGridControl1)).EndInit(); this.ResumeLayout(false); }