Version 7.0.2.1, Testversion mit ein paar Restpunkten in der LT Zeitansicht und dem PDF Report
This commit is contained in:
parent
176602c184
commit
966a311b53
@ -145,8 +145,8 @@
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortReceptionFacilityName}" Binding="{Binding PortReceptionFacilityName}" IsReadOnly="True" Width="Auto" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortReceptionFacilityProviderName}" Binding="{Binding PortReceptionFacilityProviderName}" IsReadOnly="True" Width="Auto" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textTreatmentFacilityProviderName}" Binding="{Binding TreatmentFacilityProviderText}" IsReadOnly="True" Width="Auto" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textWasteDeliveryDateFrom}" Binding="{Binding WasteDeliveryDateFrom}" IsReadOnly="True" Width="Auto" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textWasteDeliveryDateTo}" Binding="{Binding WasteDeliveryDateTo}" IsReadOnly="True" Width="Auto" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textWasteDeliveryDateFrom}" Binding="{Binding WasteDeliveryDateFrom, Converter={util:UtcToLocalDateTimeConverter}}" IsReadOnly="True" Width="Auto" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textWasteDeliveryDateTo}" Binding="{Binding WasteDeliveryDateTo, Converter={util:UtcToLocalDateTimeConverter}}" IsReadOnly="True" Width="Auto" />
|
||||
</DataGrid.Columns>
|
||||
</enictrl:ENIDataGrid>
|
||||
<Grid Grid.Row="1">
|
||||
|
||||
@ -36,8 +36,8 @@
|
||||
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
|
||||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||
<WebPage>publish.html</WebPage>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>7.0.2.0</ApplicationVersion>
|
||||
<ApplicationRevision>1</ApplicationRevision>
|
||||
<ApplicationVersion>7.0.2.1</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
|
||||
@ -17,6 +17,8 @@
|
||||
<RowDefinition Height="56" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="10" />
|
||||
<RowDefinition Height="28" />
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
@ -39,5 +41,7 @@
|
||||
<xctk:DateTimePicker Grid.Row="4" Grid.Column="1" Name="dateTimePickerWasteDeliveryDateFrom" Format="Custom" FormatString="dd.MM.yyyy HH:mm" ShowButtonSpinner="False" VerticalContentAlignment="Center" Margin="2" AllowTextInput="True" ContextMenu="{DynamicResource ClearContextMenu}" TextAlignment="Left" Minimum="1899.12.31 00:00" Maximum="2100.12.31 00:00" PreviewKeyUp="DateTimePicker_PreviewKeyUp"/>
|
||||
<xctk:DateTimePicker Grid.Row="5" Grid.Column="1" Name="dateTimePickerWasteDeliveryDateTo" Format="Custom" FormatString="dd.MM.yyyy HH:mm" ShowButtonSpinner="False" VerticalContentAlignment="Center" Margin="2" AllowTextInput="True" ContextMenu="{DynamicResource ClearContextMenu}" TextAlignment="Left" Minimum="1899.12.31 00:00" Maximum="2100.12.31 00:00" PreviewKeyUp="DateTimePicker_PreviewKeyUp"/>
|
||||
|
||||
<Button x:Name="buttonAddEntries" Grid.Column="1" Grid.Row="7" Margin="2" Click="buttonAddEntries_Click" Width="170" Content="Add waste received entries" HorizontalAlignment="Left"/>
|
||||
|
||||
</Grid>
|
||||
</enictrl:EditWindowBase>
|
||||
|
||||
@ -52,5 +52,9 @@ namespace ENI2.EditControls
|
||||
this.CopyValuesToEntity();
|
||||
}
|
||||
|
||||
private void buttonAddEntries_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.WAS_RCPT.AddMissingWasteReceived();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1100,30 +1100,27 @@ namespace ENI2.Report
|
||||
|
||||
Table table = AddGrayTable(document);
|
||||
|
||||
table.AddColumn(290);
|
||||
table.AddColumn(200);
|
||||
_ = table.AddColumn(290);
|
||||
_ = table.AddColumn(200);
|
||||
|
||||
Row row = table.AddRow();
|
||||
|
||||
row.Cells[0].AddParagraph("Valid exemption?");
|
||||
row.Cells[1].AddParagraph("Confirmation of correctness");
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph(was.WasteDisposalValidExemption ?? false ? "Yes" : "No");
|
||||
row.Cells[1].AddParagraph(was.ConfirmationOfCorrectness ?? false ? "Yes" : "No");
|
||||
_ = row.Cells[0].AddParagraph("Last port where waste or cargo residues were discharged");
|
||||
_ = row.Cells[1].AddParagraph(LocodeDB.PortNameFromLocode(was.LastWasteDisposalPort) ?? "");
|
||||
|
||||
_ = row = table.AddRow();
|
||||
_ = row.Cells[0].AddParagraph("Date of last disposal");
|
||||
if (was.LastWasteDisposalDate.HasValue)
|
||||
row.Cells[1].AddParagraph(was.LastWasteDisposalDate?.ToShortDateString());
|
||||
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Last port where waste or cargo residues were discharged");
|
||||
row.Cells[1].AddParagraph("Date of last disposal");
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph(LocodeDB.PortNameFromLocode(was.LastWasteDisposalPort) ?? "");
|
||||
if(was.LastWasteDisposalDate.HasValue)
|
||||
row.Cells[1].AddParagraph(was.LastWasteDisposalDate?.ToShortDateString());
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Name of waste disposal service provider");
|
||||
row.Cells[1].AddParagraph("Waste disposal order (all, some, none)");
|
||||
row = table.AddRow();
|
||||
_ = row.Cells[0].AddParagraph("Name of waste disposal service provider");
|
||||
for (int i = 0; i < was.WasteDisposalServiceProvider.Count; i++)
|
||||
row.Cells[0].AddParagraph(((WasteDisposalServiceProvider) was.WasteDisposalServiceProvider[i]).WasteDisposalServiceProviderName);
|
||||
row.Cells[1].AddParagraph(((WasteDisposalServiceProvider)was.WasteDisposalServiceProvider[i]).WasteDisposalServiceProviderName);
|
||||
|
||||
row = table.AddRow();
|
||||
_ = row.Cells[0].AddParagraph("Next waste disposal port");
|
||||
_ = row.Cells[1].AddParagraph(LocodeDB.PortNameFromLocode(was.NextWasteDisposalPort) ?? "");
|
||||
|
||||
table = document.LastSection.AddTable();
|
||||
table.Rows.VerticalAlignment = VerticalAlignment.Top;
|
||||
@ -1138,21 +1135,19 @@ namespace ENI2.Report
|
||||
table.AddColumn(65);
|
||||
table.AddColumn(65);
|
||||
|
||||
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("TYPE");
|
||||
row.Cells[1].AddParagraph("Description");
|
||||
row.Cells[2].AddParagraph("Amount to be disposed");
|
||||
row.Cells[3].AddParagraph("Maximum dedicated storage capacity on board");
|
||||
row.Cells[4].AddParagraph("Amount retained on board");
|
||||
row.Cells[5].AddParagraph("Port of delivery of remaining waste");
|
||||
row.Cells[6].AddParagraph("Estimated waste/cargo residues amount generated between port of call and next port");
|
||||
|
||||
_ = row.Cells[0].AddParagraph("TYPE");
|
||||
_ = row.Cells[1].AddParagraph("Description");
|
||||
_ = row.Cells[2].AddParagraph("Amount to be disposed");
|
||||
_ = row.Cells[3].AddParagraph("Maximum dedicated storage capacity on board");
|
||||
_ = row.Cells[4].AddParagraph("Amount retained on board");
|
||||
_ = row.Cells[5].AddParagraph("Port of delivery of remaining waste");
|
||||
_ = row.Cells[6].AddParagraph("Estimated waste/cargo residues amount generated between port of call and next port");
|
||||
|
||||
for (int i = 0; i < WAS.WasteCodes.Length; i++)
|
||||
{
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph(string.Format("{0} {1}", WAS.WasteCodes[i], WAS.WasteCodeDescriptions[i]));
|
||||
_ = row.Cells[0].AddParagraph(string.Format("{0} {1}", WAS.WasteCodes[i], WAS.WasteCodeDescriptions[i]));
|
||||
if(Int32.TryParse(WAS.WasteCodes[i], out int wasteCode))
|
||||
GetWasteForIndex(wasteCode, was, row);
|
||||
}
|
||||
@ -1166,12 +1161,12 @@ namespace ENI2.Report
|
||||
if (!waste.WasteType.HasValue) continue; // kaputt!
|
||||
if (waste.WasteType.Value == index)
|
||||
{
|
||||
row.Cells[1].AddParagraph(waste.WasteDescription ?? "");
|
||||
row.Cells[2].AddParagraph(waste.WasteDisposalAmount_MTQ.HasValue ? waste.WasteDisposalAmount_MTQ.Value.ToString("N3") : "");
|
||||
row.Cells[3].AddParagraph(waste.WasteCapacity_MTQ.HasValue ? waste.WasteCapacity_MTQ.Value.ToString("N3") : "");
|
||||
row.Cells[4].AddParagraph(waste.WasteAmountRetained_MTQ.HasValue ? waste.WasteAmountRetained_MTQ.Value.ToString("N3") : "");
|
||||
row.Cells[5].AddParagraph(LocodeDB.PortNameFromLocode(waste.WasteDisposalPort) ?? "");
|
||||
row.Cells[6].AddParagraph(waste.WasteAmountGeneratedTillNextPort_MTQ.HasValue ? waste.WasteAmountGeneratedTillNextPort_MTQ.Value.ToString("N3") : "");
|
||||
_ = row.Cells[1].AddParagraph(waste.WasteDescription ?? "");
|
||||
_ = row.Cells[2].AddParagraph(waste.WasteDisposalAmount_MTQ.HasValue ? waste.WasteDisposalAmount_MTQ.Value.ToString("N3") : "");
|
||||
_ = row.Cells[3].AddParagraph(waste.WasteCapacity_MTQ.HasValue ? waste.WasteCapacity_MTQ.Value.ToString("N3") : "");
|
||||
_ = row.Cells[4].AddParagraph(waste.WasteAmountRetained_MTQ.HasValue ? waste.WasteAmountRetained_MTQ.Value.ToString("N3") : "");
|
||||
_ = row.Cells[5].AddParagraph(LocodeDB.PortNameFromLocode(waste.WasteDisposalPort) ?? "");
|
||||
_ = row.Cells[6].AddParagraph(waste.WasteAmountGeneratedTillNextPort_MTQ.HasValue ? waste.WasteAmountGeneratedTillNextPort_MTQ.Value.ToString("N3") : "");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1201,10 +1196,10 @@ namespace ENI2.Report
|
||||
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.Cells[1].AddParagraph(was_rpct.WasteDeliveryDateFrom.HasValue ? was_rpct.WasteDeliveryDateFrom.Value.ToLocalTime().ToString() : "");
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Waste delivery to");
|
||||
row.Cells[1].AddParagraph(was_rpct.WasteDeliveryDateTo.HasValue ? was_rpct.WasteDeliveryDateTo.ToString() : "");
|
||||
row.Cells[1].AddParagraph(was_rpct.WasteDeliveryDateTo.HasValue ? was_rpct.WasteDeliveryDateTo.Value.ToLocalTime().ToString() : "");
|
||||
row = table.AddRow();
|
||||
row.Cells[0].AddParagraph("Treatment facility provider");
|
||||
row.Cells[1].AddParagraph(was_rpct.TreatmentFacilityProviderText);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user