щас добавлю дату Артёма
This commit is contained in:
parent
a3edd285d7
commit
d7fdaccf6d
@ -201,40 +201,15 @@ namespace AppView
|
|||||||
new ColumnConfig { Width = 70f, PropertyName = "SupplyDateTime" },
|
new ColumnConfig { Width = 70f, PropertyName = "SupplyDateTime" },
|
||||||
};
|
};
|
||||||
|
|
||||||
/*ComponentDocumentWithTableHeaderDataConfig<ProviderViewModel> config = new()
|
|
||||||
{
|
|
||||||
Data = providersList,
|
|
||||||
Headers = new()
|
|
||||||
{
|
|
||||||
(0, 0, "Идентификатор", "Id"),
|
|
||||||
(1, 0, "Название", "Name"),
|
|
||||||
(2, 0, "Тип организации", "Type"),
|
|
||||||
(3, 0, "Дата поставки", "SupplyDateTime"),
|
|
||||||
},
|
|
||||||
Header = "Отчет по всем поставщикам",
|
|
||||||
UseUnion = false,
|
|
||||||
ColumnsRowsWidth = new()
|
|
||||||
{
|
|
||||||
(10,10),
|
|
||||||
(10,10),
|
|
||||||
(10,10),
|
|
||||||
(10,10),
|
|
||||||
},
|
|
||||||
ColumnsRowsDataCount = new()
|
|
||||||
};*/
|
|
||||||
|
|
||||||
SaveFileDialog saveFileDialog = new()
|
SaveFileDialog saveFileDialog = new()
|
||||||
{
|
{
|
||||||
Filter = "Excel Files|*.xlsx"
|
Filter = "Excel Files|*.xlsx"
|
||||||
};
|
};
|
||||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
//config.FilePath = saveFileDialog.FileName;
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
componentWithSettings.GenerateExcelDocument(saveFileDialog.FileName, "Отчет по всем поставщикам", columnConfigs, 25f, 35f, providersList);
|
componentWithSettings.GenerateExcelDocument(saveFileDialog.FileName, "Отчет по всем поставщикам", columnConfigs, 25f, 35f, providersList);
|
||||||
//componentDocumentWithTableMultiHeaderExcel.CreateDoc(config);
|
|
||||||
MessageBox.Show(
|
MessageBox.Show(
|
||||||
"Excel-документ успешно сохранен.",
|
"Excel-документ успешно сохранен.",
|
||||||
"Успех",
|
"Успех",
|
||||||
|
Loading…
Reference in New Issue
Block a user