Работает компонент другого дибила
This commit is contained in:
parent
3df672c516
commit
a3edd285d7
2
WinForm/AppView/FormMain.Designer.cs
generated
2
WinForm/AppView/FormMain.Designer.cs
generated
@ -43,6 +43,7 @@
|
|||||||
componentDocumentWithChartBarWord = new ComponentsLibraryNet60.DocumentWithChart.ComponentDocumentWithChartBarWord(components);
|
componentDocumentWithChartBarWord = new ComponentsLibraryNet60.DocumentWithChart.ComponentDocumentWithChartBarWord(components);
|
||||||
pdfGeneratorControl = new PdfFormsLibrary.PdfGeneratorControl(components);
|
pdfGeneratorControl = new PdfFormsLibrary.PdfGeneratorControl(components);
|
||||||
circleDiagram = new WinFormsLibrary.CircleDiagram(components);
|
circleDiagram = new WinFormsLibrary.CircleDiagram(components);
|
||||||
|
componentWithSettings = new WinFormsLibrary.not_visual.ComponentWithSettings(components);
|
||||||
contextMenuStrip.SuspendLayout();
|
contextMenuStrip.SuspendLayout();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
@ -143,5 +144,6 @@
|
|||||||
private ToolStripMenuItem открытьСправочникToolStripMenuItem;
|
private ToolStripMenuItem открытьСправочникToolStripMenuItem;
|
||||||
private PdfFormsLibrary.PdfGeneratorControl pdfGeneratorControl;
|
private PdfFormsLibrary.PdfGeneratorControl pdfGeneratorControl;
|
||||||
private WinFormsLibrary.CircleDiagram circleDiagram;
|
private WinFormsLibrary.CircleDiagram circleDiagram;
|
||||||
|
private WinFormsLibrary.not_visual.ComponentWithSettings componentWithSettings;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -22,6 +22,7 @@ using PdfFormsLibrary.Helpers;
|
|||||||
using WinFormsLibrary.SupportClasses;
|
using WinFormsLibrary.SupportClasses;
|
||||||
using WinFormsLibrary.SupportClasses.Enums;
|
using WinFormsLibrary.SupportClasses.Enums;
|
||||||
using DataBaseImplement.Models;
|
using DataBaseImplement.Models;
|
||||||
|
using WinFormsLibrary.not_visual;
|
||||||
|
|
||||||
namespace AppView
|
namespace AppView
|
||||||
{
|
{
|
||||||
@ -192,7 +193,15 @@ namespace AppView
|
|||||||
provider.SupplyDateTime = provider.SupplyDate.ToString();
|
provider.SupplyDateTime = provider.SupplyDate.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
ComponentDocumentWithTableHeaderDataConfig<ProviderViewModel> config = new()
|
var columnConfigs = new List<ColumnConfig>
|
||||||
|
{
|
||||||
|
new ColumnConfig { Width = 50f, PropertyName = "Id" },
|
||||||
|
new ColumnConfig { Width = 50f, PropertyName = "Name" },
|
||||||
|
new ColumnConfig { Width = 50f, PropertyName = "Type" },
|
||||||
|
new ColumnConfig { Width = 70f, PropertyName = "SupplyDateTime" },
|
||||||
|
};
|
||||||
|
|
||||||
|
/*ComponentDocumentWithTableHeaderDataConfig<ProviderViewModel> config = new()
|
||||||
{
|
{
|
||||||
Data = providersList,
|
Data = providersList,
|
||||||
Headers = new()
|
Headers = new()
|
||||||
@ -212,7 +221,7 @@ namespace AppView
|
|||||||
(10,10),
|
(10,10),
|
||||||
},
|
},
|
||||||
ColumnsRowsDataCount = new()
|
ColumnsRowsDataCount = new()
|
||||||
};
|
};*/
|
||||||
|
|
||||||
SaveFileDialog saveFileDialog = new()
|
SaveFileDialog saveFileDialog = new()
|
||||||
{
|
{
|
||||||
@ -220,12 +229,12 @@ namespace AppView
|
|||||||
};
|
};
|
||||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
config.FilePath = saveFileDialog.FileName;
|
//config.FilePath = saveFileDialog.FileName;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
componentWithSettings.GenerateExcelDocument(saveFileDialog.FileName, "Отчет по всем поставщикам", columnConfigs, 25f, 35f, providersList);
|
||||||
componentDocumentWithTableMultiHeaderExcel.CreateDoc(config);
|
//componentDocumentWithTableMultiHeaderExcel.CreateDoc(config);
|
||||||
MessageBox.Show(
|
MessageBox.Show(
|
||||||
"Excel-документ успешно сохранен.",
|
"Excel-документ успешно сохранен.",
|
||||||
"Успех",
|
"Успех",
|
||||||
|
@ -75,4 +75,7 @@
|
|||||||
<metadata name="circleDiagram.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="circleDiagram.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>456, 54</value>
|
<value>456, 54</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="componentWithSettings.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>582, 54</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
Loading…
Reference in New Issue
Block a user