щас добавлю дату Артёма

This commit is contained in:
maxnes3 2023-11-02 09:51:51 +04:00
parent a3edd285d7
commit d7fdaccf6d

View File

@ -201,40 +201,15 @@ namespace AppView
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()
{
Filter = "Excel Files|*.xlsx"
};
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
//config.FilePath = saveFileDialog.FileName;
try
{
componentWithSettings.GenerateExcelDocument(saveFileDialog.FileName, "Отчет по всем поставщикам", columnConfigs, 25f, 35f, providersList);
//componentDocumentWithTableMultiHeaderExcel.CreateDoc(config);
MessageBox.Show(
"Excel-документ успешно сохранен.",
"Успех",