This commit is contained in:
Максим Яковлев 2024-10-23 16:25:39 +04:00
parent e3da66cd20
commit 9b3a6d5607
2 changed files with 10 additions and 1 deletions

View File

@ -111,6 +111,7 @@ namespace Forms
strings.Add($"{item.Name} : {item.FurnitureType}");
}
largeTextComponent.CreateDocument(path, $"Отчет за {DateTime.Now.Year}", strings);
MessageBox.Show("Отчет готов");
}
}
@ -139,6 +140,7 @@ namespace Forms
Data = list,
};
componentDocumentWithTableMultiHeaderExcel.CreateDoc<ProviderViewModel>(conf);
MessageBox.Show("Отчет готов");
}
private void createToolStripMenuItem_Click(object sender, EventArgs e)
@ -175,6 +177,7 @@ namespace Forms
Data = chart,
};
componentDocumentWithChartPieWord.CreateDoc(conf);
MessageBox.Show("Отчет готов");
}
}
}

View File

@ -50,7 +50,13 @@ namespace Forms
});
textBoxFurnitureType.Text = view.FurnitureType;
textBoxName.Text = view.Name;
if (view.DateLastDelivery != "Поставок не было") controlInputNullableDate.Value = Convert.ToDateTime(view.DateLastDelivery);
if (view.DateLastDelivery != "Поставок не было") {
controlInputNullableDate.Value = Convert.ToDateTime(view.DateLastDelivery);
}
else
{
controlInputNullableDate.Value = null;
}
controlSelectedComboBoxList.SelectedElement = view!.OrganisationType;
isEdited = false;
}