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.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.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.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.textWasteDeliveryDateFrom}" Binding="{Binding WasteDeliveryDateFrom, Converter={util:UtcToLocalDateTimeConverter}}" IsReadOnly="True" Width="Auto" />
|
||||||
<DataGridTextColumn Header="{x:Static p:Resources.textWasteDeliveryDateTo}" Binding="{Binding WasteDeliveryDateTo}" IsReadOnly="True" Width="Auto" />
|
<DataGridTextColumn Header="{x:Static p:Resources.textWasteDeliveryDateTo}" Binding="{Binding WasteDeliveryDateTo, Converter={util:UtcToLocalDateTimeConverter}}" IsReadOnly="True" Width="Auto" />
|
||||||
</DataGrid.Columns>
|
</DataGrid.Columns>
|
||||||
</enictrl:ENIDataGrid>
|
</enictrl:ENIDataGrid>
|
||||||
<Grid Grid.Row="1">
|
<Grid Grid.Row="1">
|
||||||
|
|||||||
@ -36,8 +36,8 @@
|
|||||||
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
|
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
|
||||||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||||
<WebPage>publish.html</WebPage>
|
<WebPage>publish.html</WebPage>
|
||||||
<ApplicationRevision>0</ApplicationRevision>
|
<ApplicationRevision>1</ApplicationRevision>
|
||||||
<ApplicationVersion>7.0.2.0</ApplicationVersion>
|
<ApplicationVersion>7.0.2.1</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||||
|
|||||||
@ -17,7 +17,9 @@
|
|||||||
<RowDefinition Height="56" />
|
<RowDefinition Height="56" />
|
||||||
<RowDefinition Height="28" />
|
<RowDefinition Height="28" />
|
||||||
<RowDefinition Height="28" />
|
<RowDefinition Height="28" />
|
||||||
|
<RowDefinition Height="10" />
|
||||||
|
<RowDefinition Height="28" />
|
||||||
|
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*" />
|
<ColumnDefinition Width="1*" />
|
||||||
@ -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="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"/>
|
<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>
|
</Grid>
|
||||||
</enictrl:EditWindowBase>
|
</enictrl:EditWindowBase>
|
||||||
|
|||||||
@ -52,5 +52,9 @@ namespace ENI2.EditControls
|
|||||||
this.CopyValuesToEntity();
|
this.CopyValuesToEntity();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void buttonAddEntries_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
this.WAS_RCPT.AddMissingWasteReceived();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1100,63 +1100,58 @@ namespace ENI2.Report
|
|||||||
|
|
||||||
Table table = AddGrayTable(document);
|
Table table = AddGrayTable(document);
|
||||||
|
|
||||||
table.AddColumn(290);
|
_ = table.AddColumn(290);
|
||||||
table.AddColumn(200);
|
_ = table.AddColumn(200);
|
||||||
|
|
||||||
Row row = table.AddRow();
|
Row row = table.AddRow();
|
||||||
|
|
||||||
row.Cells[0].AddParagraph("Valid exemption?");
|
_ = row.Cells[0].AddParagraph("Last port where waste or cargo residues were discharged");
|
||||||
row.Cells[1].AddParagraph("Confirmation of correctness");
|
_ = row.Cells[1].AddParagraph(LocodeDB.PortNameFromLocode(was.LastWasteDisposalPort) ?? "");
|
||||||
row = table.AddRow();
|
|
||||||
row.Cells[0].AddParagraph(was.WasteDisposalValidExemption ?? false ? "Yes" : "No");
|
_ = row = table.AddRow();
|
||||||
row.Cells[1].AddParagraph(was.ConfirmationOfCorrectness ?? false ? "Yes" : "No");
|
_ = row.Cells[0].AddParagraph("Date of last disposal");
|
||||||
|
if (was.LastWasteDisposalDate.HasValue)
|
||||||
|
row.Cells[1].AddParagraph(was.LastWasteDisposalDate?.ToShortDateString());
|
||||||
|
|
||||||
row = table.AddRow();
|
row = table.AddRow();
|
||||||
row.Cells[0].AddParagraph("Last port where waste or cargo residues were discharged");
|
_ = row.Cells[0].AddParagraph("Name of waste disposal service provider");
|
||||||
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();
|
|
||||||
for (int i = 0; i < was.WasteDisposalServiceProvider.Count; i++)
|
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 = document.LastSection.AddTable();
|
||||||
table.Rows.VerticalAlignment = VerticalAlignment.Top;
|
table.Rows.VerticalAlignment = VerticalAlignment.Top;
|
||||||
table.Borders.Visible = true;
|
table.Borders.Visible = true;
|
||||||
table.Borders.Color = Colors.LightGray;
|
table.Borders.Color = Colors.LightGray;
|
||||||
|
|
||||||
table.AddColumn(100);
|
table.AddColumn(100);
|
||||||
table.AddColumn(65);
|
table.AddColumn(65);
|
||||||
table.AddColumn(65);
|
table.AddColumn(65);
|
||||||
table.AddColumn(65);
|
table.AddColumn(65);
|
||||||
table.AddColumn(65);
|
table.AddColumn(65);
|
||||||
table.AddColumn(65);
|
table.AddColumn(65);
|
||||||
table.AddColumn(65);
|
table.AddColumn(65);
|
||||||
|
|
||||||
|
|
||||||
row = table.AddRow();
|
row = table.AddRow();
|
||||||
row.Cells[0].AddParagraph("TYPE");
|
_ = row.Cells[0].AddParagraph("TYPE");
|
||||||
row.Cells[1].AddParagraph("Description");
|
_ = row.Cells[1].AddParagraph("Description");
|
||||||
row.Cells[2].AddParagraph("Amount to be disposed");
|
_ = row.Cells[2].AddParagraph("Amount to be disposed");
|
||||||
row.Cells[3].AddParagraph("Maximum dedicated storage capacity on board");
|
_ = row.Cells[3].AddParagraph("Maximum dedicated storage capacity on board");
|
||||||
row.Cells[4].AddParagraph("Amount retained on board");
|
_ = row.Cells[4].AddParagraph("Amount retained on board");
|
||||||
row.Cells[5].AddParagraph("Port of delivery of remaining waste");
|
_ = 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[6].AddParagraph("Estimated waste/cargo residues amount generated between port of call and next port");
|
||||||
|
|
||||||
|
|
||||||
for (int i = 0; i < WAS.WasteCodes.Length; i++)
|
for (int i = 0; i < WAS.WasteCodes.Length; i++)
|
||||||
{
|
{
|
||||||
row = table.AddRow();
|
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))
|
if(Int32.TryParse(WAS.WasteCodes[i], out int wasteCode))
|
||||||
GetWasteForIndex(wasteCode, was, row);
|
GetWasteForIndex(wasteCode, was, row);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void GetWasteForIndex(int index, WAS was, Row row)
|
private static void GetWasteForIndex(int index, WAS was, Row row)
|
||||||
@ -1165,13 +1160,13 @@ namespace ENI2.Report
|
|||||||
{
|
{
|
||||||
if (!waste.WasteType.HasValue) continue; // kaputt!
|
if (!waste.WasteType.HasValue) continue; // kaputt!
|
||||||
if (waste.WasteType.Value == index)
|
if (waste.WasteType.Value == index)
|
||||||
{
|
{
|
||||||
row.Cells[1].AddParagraph(waste.WasteDescription ?? "");
|
_ = row.Cells[1].AddParagraph(waste.WasteDescription ?? "");
|
||||||
row.Cells[2].AddParagraph(waste.WasteDisposalAmount_MTQ.HasValue ? waste.WasteDisposalAmount_MTQ.Value.ToString("N3") : "");
|
_ = 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[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[4].AddParagraph(waste.WasteAmountRetained_MTQ.HasValue ? waste.WasteAmountRetained_MTQ.Value.ToString("N3") : "");
|
||||||
row.Cells[5].AddParagraph(LocodeDB.PortNameFromLocode(waste.WasteDisposalPort) ?? "");
|
_ = row.Cells[5].AddParagraph(LocodeDB.PortNameFromLocode(waste.WasteDisposalPort) ?? "");
|
||||||
row.Cells[6].AddParagraph(waste.WasteAmountGeneratedTillNextPort_MTQ.HasValue ? waste.WasteAmountGeneratedTillNextPort_MTQ.Value.ToString("N3") : "");
|
_ = 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.Cells[1].AddParagraph(was_rpct.PortReceptionFacilityProviderName);
|
||||||
row = table.AddRow();
|
row = table.AddRow();
|
||||||
row.Cells[0].AddParagraph("Waste delivery from");
|
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 = table.AddRow();
|
||||||
row.Cells[0].AddParagraph("Waste delivery to");
|
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 = table.AddRow();
|
||||||
row.Cells[0].AddParagraph("Treatment facility provider");
|
row.Cells[0].AddParagraph("Treatment facility provider");
|
||||||
row.Cells[1].AddParagraph(was_rpct.TreatmentFacilityProviderText);
|
row.Cells[1].AddParagraph(was_rpct.TreatmentFacilityProviderText);
|
||||||
|
|||||||
@ -84,7 +84,7 @@ namespace bsmd.database
|
|||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public int? WasteType { get; set; }
|
public int? WasteType { get; set; }
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[MaxLength(99)]
|
[MaxLength(99)]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public string WasteDescription { get; set; }
|
public string WasteDescription { get; set; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user