Report sieht gut aus (WAS_RCPT)
This commit is contained in:
parent
9328998ff0
commit
b18fa5c21b
@ -516,6 +516,7 @@ namespace ENI2.Report
|
||||
private static void CreateCrewTable(Document document, Message message)
|
||||
{
|
||||
Table table = AddGrayTable(document);
|
||||
table.Format.Font.Size = 9;
|
||||
|
||||
Column column = table.AddColumn();
|
||||
column.Width = Unit.FromCentimeter(1);
|
||||
@ -575,6 +576,7 @@ namespace ENI2.Report
|
||||
private static void CreatePassengerTable(Document document, Message message)
|
||||
{
|
||||
Table table = AddGrayTable(document);
|
||||
table.Format.Font.Size = 9;
|
||||
|
||||
Column column = table.AddColumn();
|
||||
column.Width = Unit.FromCentimeter(0.8);
|
||||
@ -1178,7 +1180,60 @@ namespace ENI2.Report
|
||||
{
|
||||
foreach (WAS_RCPT was_rpct in message.Elements)
|
||||
{
|
||||
document.LastSection.AddParagraph("");
|
||||
|
||||
Table table = AddGrayTable(document);
|
||||
table.AddColumn(290);
|
||||
table.AddColumn(200);
|
||||
|
||||
Row row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Identification number");
|
||||
row.Cells[1].AddParagraph(was_rpct.IdentificationNumber);
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Port reception facility name");
|
||||
row.Cells[1].AddParagraph(was_rpct.PortReceptionFacilityName);
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Port reception facility provider name");
|
||||
row.Cells[1].AddParagraph(was_rpct.PortReceptionFacilityProviderName);
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Waste delivery from");
|
||||
row.Cells[1].AddParagraph(was_rpct.WasteDeliveryDateFrom.HasValue ? was_rpct.WasteDeliveryDateFrom.ToString() : "");
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Waste delivery to");
|
||||
row.Cells[1].AddParagraph(was_rpct.WasteDeliveryDateTo.HasValue ? was_rpct.WasteDeliveryDateTo.ToString() : "");
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Treatment facility provider");
|
||||
row.Cells[1].AddParagraph(was_rpct.TreatmentFacilityProviderText);
|
||||
|
||||
if (was_rpct.WasteReceived.Count > 0)
|
||||
{
|
||||
Paragraph p = new Paragraph();
|
||||
p.AddText("Waste received");
|
||||
p.Format.SpaceBefore = Unit.FromCentimeter(0.3);
|
||||
document.LastSection.Add(p);
|
||||
|
||||
Table wrTable = AddGrayTable(document);
|
||||
wrTable.Format.Font.Size = 9;
|
||||
wrTable.AddColumn(60);
|
||||
wrTable.AddColumn(160);
|
||||
wrTable.AddColumn(210);
|
||||
wrTable.AddColumn(60);
|
||||
|
||||
row = wrTable.AddRow();
|
||||
row.Cells[0].AddParagraph("Code");
|
||||
row.Cells[1].AddParagraph("Waste");
|
||||
row.Cells[2].AddParagraph("Description");
|
||||
row.Cells[3].AddParagraph("Amount");
|
||||
|
||||
foreach (WasteReceived wasteReceived in was_rpct.WasteReceived)
|
||||
{
|
||||
row = wrTable.AddRow();
|
||||
row.Cells[0].AddParagraph(wasteReceived.WasteCode);
|
||||
row.Cells[1].AddParagraph(WAS.WasteCodeDict[wasteReceived.WasteCode]);
|
||||
row.Cells[2].AddParagraph(wasteReceived.WasteDescription ?? "");
|
||||
row.Cells[3].AddParagraph(wasteReceived.AmountWasteReceived_MTQ.HasValue ? wasteReceived.AmountWasteReceived_MTQ.Value.ToString("N3") : "");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user