Arbeit am UI für WAS_RCPT, part I. Übersetzbar, aber sehr unvollständig
This commit is contained in:
parent
6cea222305
commit
badae00486
@ -11,6 +11,8 @@
|
|||||||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="600" d:DesignWidth="800">
|
d:DesignHeight="600" d:DesignWidth="800">
|
||||||
|
<TabControl Margin="10" Name="mainFrame">
|
||||||
|
<TabItem Header="WAS" Name="tabWAS">
|
||||||
<GroupBox Name="wasGroupBox" Header="{x:Static p:Resources.textWaste}">
|
<GroupBox Name="wasGroupBox" Header="{x:Static p:Resources.textWaste}">
|
||||||
<ScrollViewer PreviewMouseWheel="ScrollViewer_PreviewMouseWheel">
|
<ScrollViewer PreviewMouseWheel="ScrollViewer_PreviewMouseWheel">
|
||||||
<Grid>
|
<Grid>
|
||||||
@ -138,4 +140,48 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem Header="WAS RCPT" Name="tabWAS_RCPT">
|
||||||
|
<GroupBox Name="was_rcptGroupBox" Header="{x:Static p:Resources.textWasteReceipt}">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="80" />
|
||||||
|
<RowDefinition Height="330*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<enictrl:ENIDataGrid x:Name="dataGridWasteReceipt" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||||
|
AutoGenerateColumns="False" Margin="0,5,0,0" Grid.Row="0">
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTextColumn Header="" Binding="{Binding Identifier}" IsReadOnly="True" />
|
||||||
|
<DataGridTextColumn Header="{x:Static p:Resources.textIdentificationNumber}" Binding="{Binding IdentificationNumber}" 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.textTreatmentFacilityProviderName}" Binding="{Binding TreatmentFacilityProviderDisplay}" 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" />
|
||||||
|
</DataGrid.Columns>
|
||||||
|
</enictrl:ENIDataGrid>
|
||||||
|
<enictrl:ENIDataGrid x:Name="dataGridWasteReceived" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||||
|
AutoGenerateColumns="False" Margin="0,5,0,0" Grid.Row="1">
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTextColumn Header="{x:Static p:Resources.textWaste}" Binding="{Binding WasteCode}" IsReadOnly="True" Width="0.1*" />
|
||||||
|
<DataGridTextColumn Header="{x:Static p:Resources.textDescription}" Binding="{Binding WasteDescription}" IsReadOnly="True" Width="0.3*" />
|
||||||
|
<DataGridTemplateColumn IsReadOnly="True" Width="0.15*">
|
||||||
|
<DataGridTemplateColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="{x:Static p:Resources.textAmountWasteReceived_MTQ}" FontSize="10"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.HeaderTemplate>
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock TextAlignment="Center" Text="{Binding AmountWasteReceived_MTQ, StringFormat={}{0:N3}}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
</DataGrid.Columns>
|
||||||
|
|
||||||
|
</enictrl:ENIDataGrid>
|
||||||
|
</Grid>
|
||||||
|
</GroupBox>
|
||||||
|
</TabItem>
|
||||||
|
</TabControl>
|
||||||
</src:DetailBaseControl>
|
</src:DetailBaseControl>
|
||||||
|
|||||||
@ -23,6 +23,7 @@ namespace ENI2.DetailViewControls
|
|||||||
|
|
||||||
private Message _wasMessage;
|
private Message _wasMessage;
|
||||||
private WAS _was;
|
private WAS _was;
|
||||||
|
private Message _wasRcptMessage;
|
||||||
|
|
||||||
private static readonly string[] _wasteDeliveryList =
|
private static readonly string[] _wasteDeliveryList =
|
||||||
{
|
{
|
||||||
@ -91,6 +92,7 @@ namespace ENI2.DetailViewControls
|
|||||||
foreach (Message aMessage in this.Messages)
|
foreach (Message aMessage in this.Messages)
|
||||||
{
|
{
|
||||||
if (aMessage.MessageNotificationClass == Message.NotificationClass.WAS) { this._wasMessage = aMessage; this.ControlMessages.Add(aMessage); }
|
if (aMessage.MessageNotificationClass == Message.NotificationClass.WAS) { this._wasMessage = aMessage; this.ControlMessages.Add(aMessage); }
|
||||||
|
if(aMessage.MessageNotificationClass == Message.NotificationClass.WAS_RCPT) { this._wasRcptMessage = aMessage; this.ControlMessages.Add(aMessage); }
|
||||||
}
|
}
|
||||||
|
|
||||||
#region init WAS
|
#region init WAS
|
||||||
@ -127,8 +129,72 @@ namespace ENI2.DetailViewControls
|
|||||||
this.checkBoxValidExemption.Unchecked += CheckBoxValidExemption_Checked;
|
this.checkBoxValidExemption.Unchecked += CheckBoxValidExemption_Checked;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region init WAS_RCPT
|
||||||
|
|
||||||
|
if(this._wasRcptMessage == null)
|
||||||
|
{
|
||||||
|
this._wasRcptMessage = this.Core.CreateMessage(Message.NotificationClass.WAS_RCPT);
|
||||||
|
this.Messages.Add(this._wasRcptMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.dataGridWasteReceipt.Initialize();
|
||||||
|
this.dataGridWasteReceipt.ItemsSource = this._wasRcptMessage.Elements;
|
||||||
|
this.dataGridWasteReceipt.AddingNewItem += DataGridWasteReceipt_AddingNewItem;
|
||||||
|
this.dataGridWasteReceipt.EditRequested += DataGridWasteReceipt_EditRequested;
|
||||||
|
this.dataGridWasteReceipt.DeleteRequested += DataGridWasteReceipt_DeleteRequested;
|
||||||
|
this.dataGridWasteReceipt.CreateRequested += DataGridWasteReceipt_CreateRequested;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Waste receipt grid event handler
|
||||||
|
|
||||||
|
private void DataGridWasteReceipt_CreateRequested()
|
||||||
|
{
|
||||||
|
EditWasteReceiptDialog epd = new EditWasteReceiptDialog();
|
||||||
|
epd.WAS_RCPT = new WAS_RCPT();
|
||||||
|
epd.WAS_RCPT.MessageHeader = _wasRcptMessage;
|
||||||
|
epd.WAS_RCPT.Identifier = WAS_RCPT.GetNewIdentifier(_wasRcptMessage.Elements);
|
||||||
|
|
||||||
|
epd.AddClicked += () =>
|
||||||
|
{
|
||||||
|
epd.CopyValuesToEntity();
|
||||||
|
if (!this._wasRcptMessage.Elements.Contains(epd.WAS_RCPT))
|
||||||
|
this._wasRcptMessage.Elements.Add(epd.WAS_RCPT);
|
||||||
|
this.dataGridWaste.Items.Refresh();
|
||||||
|
epd.WAS_RCPT = new WAS_RCPT();
|
||||||
|
epd.WAS_RCPT.MessageHeader = _wasRcptMessage;
|
||||||
|
epd.WAS_RCPT.Identifier = WAS_RCPT.GetNewIdentifier(_wasRcptMessage.Elements);
|
||||||
|
this.SublistElementChanged(Message.NotificationClass.WAS_RCPT);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (epd.ShowDialog() ?? false)
|
||||||
|
{
|
||||||
|
if (!this._wasRcptMessage.Elements.Contains(epd.WAS_RCPT))
|
||||||
|
_wasRcptMessage.Elements.Add(epd.WAS_RCPT);
|
||||||
|
this.dataGridWaste.Items.Refresh();
|
||||||
|
this.SublistElementChanged(Message.NotificationClass.WAS_RCPT);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DataGridWasteReceipt_DeleteRequested(DatabaseEntity obj)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DataGridWasteReceipt_EditRequested(DatabaseEntity obj)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DataGridWasteReceipt_AddingNewItem(object sender, AddingNewItemEventArgs e)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Waste grid event handler
|
#region Waste grid event handler
|
||||||
|
|
||||||
private void DataGridWaste_CreateRequested()
|
private void DataGridWaste_CreateRequested()
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||||
<WebPage>publish.html</WebPage>
|
<WebPage>publish.html</WebPage>
|
||||||
<ApplicationRevision>0</ApplicationRevision>
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
<ApplicationVersion>6.9.19.0</ApplicationVersion>
|
<ApplicationVersion>7.0.0.0</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||||
@ -230,6 +230,9 @@
|
|||||||
<Compile Include="Controls\LocodeControl.xaml.cs">
|
<Compile Include="Controls\LocodeControl.xaml.cs">
|
||||||
<DependentUpon>LocodeControl.xaml</DependentUpon>
|
<DependentUpon>LocodeControl.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="EditControls\EditWasteReceiptDialog.xaml.cs">
|
||||||
|
<DependentUpon>EditWasteReceiptDialog.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Excel\ExcelBase.cs" />
|
<Compile Include="Excel\ExcelBase.cs" />
|
||||||
<Compile Include="Excel\ExcelManager.cs" />
|
<Compile Include="Excel\ExcelManager.cs" />
|
||||||
<Compile Include="Excel\ExcelReader.cs" />
|
<Compile Include="Excel\ExcelReader.cs" />
|
||||||
@ -618,6 +621,10 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="EditControls\EditWasteReceiptDialog.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="EditControls\ErrorListDialog.xaml">
|
<Page Include="EditControls\ErrorListDialog.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
|||||||
40
ENI2/EditControls/EditWasteReceiptDialog.xaml
Normal file
40
ENI2/EditControls/EditWasteReceiptDialog.xaml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<enictrl:EditWindowBase x:Class="ENI2.EditControls.EditWasteReceiptDialog"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:ENI2.EditControls"
|
||||||
|
xmlns:enictrl="clr-namespace:ENI2.Controls"
|
||||||
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||||||
|
xmlns:p="clr-namespace:ENI2.Properties"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="{x:Static p:Resources.textWasteReceipt}" Height="340" Width="800" WindowStyle="SingleBorderWindow" Background="AliceBlue">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="28" />
|
||||||
|
<RowDefinition Height="28" />
|
||||||
|
<RowDefinition Height="28" />
|
||||||
|
<RowDefinition Height="56" />
|
||||||
|
<RowDefinition Height="28" />
|
||||||
|
<RowDefinition Height="28" />
|
||||||
|
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*" />
|
||||||
|
<ColumnDefinition Width="2*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Name="labelIdentificationNumber" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textIdentificationNumber}" />
|
||||||
|
<Label Name="labelPortReceptionFacilityName" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textPortReceptionFacilityName}" />
|
||||||
|
<Label Name="labelPortReceptionFacilityProviderName" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textPortReceptionFacilityProviderName}" />
|
||||||
|
<Label Name="labelTreatmentFacilityProvider" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textTreatmentFacilityProviderName}" />
|
||||||
|
<Label Name="labelWasteDeliveryDateFrom" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textWasteDeliveryDateFrom}" />
|
||||||
|
<Label Name="labelWasteDeliveryDateTo" Grid.Row="5" Grid.Column="0" Content="{x:Static p:Resources.textWasteDeliveryDateTo}" />
|
||||||
|
|
||||||
|
<TextBox Name="textIdentificationNumber" Grid.Row="0" Grid.Column="1" Width="auto" MaxLength="20" TextWrapping="Wrap" />
|
||||||
|
<TextBox Name="textBoxPortReceptionFacilityName" Grid.Row="1" Grid.Column="1" Width="auto" MaxLength="70" TextWrapping="Wrap" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</enictrl:EditWindowBase>
|
||||||
73
ENI2/EditControls/EditWasteReceiptDialog.xaml.cs
Normal file
73
ENI2/EditControls/EditWasteReceiptDialog.xaml.cs
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
// Copyright (c) 2017- schick Informatik
|
||||||
|
// Description: Waste receipts bearbeiten..
|
||||||
|
//
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
using bsmd.database;
|
||||||
|
using ENI2.Controls;
|
||||||
|
|
||||||
|
namespace ENI2.EditControls
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for EditWasteReceiptDialog.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class EditWasteReceiptDialog : EditWindowBase
|
||||||
|
{
|
||||||
|
public EditWasteReceiptDialog()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
Loaded += EditWasteReceiptDialog_Loaded;
|
||||||
|
AddClicked += () => { /* this.comboBoxWasteCode.Focus(); */ };
|
||||||
|
}
|
||||||
|
|
||||||
|
public WAS_RCPT WAS_RCPT { get; set; }
|
||||||
|
|
||||||
|
private void EditWasteReceiptDialog_Loaded(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
Dictionary<int, string> codeDict = new Dictionary<int, string>();
|
||||||
|
for (int i = 0; i < WAS.RequiredCodes.Length; i++)
|
||||||
|
{
|
||||||
|
codeDict[WAS.RequiredCodes[i]] = string.Format("{0} - {1}", WAS.RequiredCodes[i], WAS.RequiredTypes[i]);
|
||||||
|
}
|
||||||
|
this.comboBoxWasteCode.ItemsSource = codeDict;
|
||||||
|
this.comboBoxWasteCode.SelectedValue = this.Waste.WasteType;
|
||||||
|
this.textBoxDescription.Text = this.Waste.WasteDescription;
|
||||||
|
this.doubleUpDownAmountWasteDischargedLastPort.Value = this.Waste.WasteDisposedAtLastPort_MTQ;
|
||||||
|
this.doubleUpDownAmountDisposed.Value = this.Waste.WasteDisposalAmount_MTQ;
|
||||||
|
this.doubleUpDownAmountGeneratedTilNextPort.Value = this.Waste.WasteAmountGeneratedTillNextPort_MTQ;
|
||||||
|
this.doubleUpDownAmountRetained.Value = this.Waste.WasteAmountRetained_MTQ;
|
||||||
|
this.doubleUpDownMaxCapacity.Value = this.Waste.WasteCapacity_MTQ;
|
||||||
|
this.locodePortOfDeliveryRemainingWaste.LocodeValue = this.Waste.WasteDisposalPort;
|
||||||
|
*/
|
||||||
|
|
||||||
|
OKClicked += EditWasteReceiptDialog_OKClicked;
|
||||||
|
this.AddVisible = true;
|
||||||
|
}
|
||||||
|
public void CopyValuesToEntity()
|
||||||
|
{
|
||||||
|
// copy back
|
||||||
|
/*
|
||||||
|
if (this.comboBoxWasteCode.SelectedValue != null)
|
||||||
|
this.Waste.WasteType = (int)this.comboBoxWasteCode.SelectedValue;
|
||||||
|
else
|
||||||
|
this.Waste.WasteType = null;
|
||||||
|
this.Waste.WasteDescription = this.textBoxDescription.Text?.Trim();
|
||||||
|
this.Waste.WasteDisposedAtLastPort_MTQ = this.doubleUpDownAmountWasteDischargedLastPort.Value;
|
||||||
|
this.Waste.WasteDisposalAmount_MTQ = this.doubleUpDownAmountDisposed.Value;
|
||||||
|
this.Waste.WasteAmountGeneratedTillNextPort_MTQ = this.doubleUpDownAmountGeneratedTilNextPort.Value;
|
||||||
|
this.Waste.WasteAmountRetained_MTQ = this.doubleUpDownAmountRetained.Value;
|
||||||
|
this.Waste.WasteCapacity_MTQ = this.doubleUpDownMaxCapacity.Value;
|
||||||
|
this.Waste.WasteDisposalPort = this.locodePortOfDeliveryRemainingWaste.LocodeValue;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
private void EditWasteReceiptDialog_OKClicked()
|
||||||
|
{
|
||||||
|
this.CopyValuesToEntity();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
72
ENI2/Properties/Resources.Designer.cs
generated
72
ENI2/Properties/Resources.Designer.cs
generated
@ -850,6 +850,15 @@ namespace ENI2.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Amount waste received (MTQ).
|
||||||
|
/// </summary>
|
||||||
|
public static string textAmountWasteReceived_MTQ {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textAmountWasteReceived_MTQ", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Anchored.
|
/// Looks up a localized string similar to Anchored.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -2389,6 +2398,15 @@ namespace ENI2.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Identification number.
|
||||||
|
/// </summary>
|
||||||
|
public static string textIdentificationNumber {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textIdentificationNumber", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Identifier.
|
/// Looks up a localized string similar to Identifier.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -3676,6 +3694,24 @@ namespace ENI2.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Port reception facility name.
|
||||||
|
/// </summary>
|
||||||
|
public static string textPortReceptionFacilityName {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textPortReceptionFacilityName", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Port reception facility provider name.
|
||||||
|
/// </summary>
|
||||||
|
public static string textPortReceptionFacilityProviderName {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textPortReceptionFacilityProviderName", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Ports of call of the last 30 days.
|
/// Looks up a localized string similar to Ports of call of the last 30 days.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -4630,6 +4666,15 @@ namespace ENI2.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Treatment facility provider name.
|
||||||
|
/// </summary>
|
||||||
|
public static string textTreatmentFacilityProviderName {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textTreatmentFacilityProviderName", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Type.
|
/// Looks up a localized string similar to Type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -4927,6 +4972,24 @@ namespace ENI2.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Waste delivery date from.
|
||||||
|
/// </summary>
|
||||||
|
public static string textWasteDeliveryDateFrom {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textWasteDeliveryDateFrom", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Waste delivery date to.
|
||||||
|
/// </summary>
|
||||||
|
public static string textWasteDeliveryDateTo {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textWasteDeliveryDateTo", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Waste disposal service providers.
|
/// Looks up a localized string similar to Waste disposal service providers.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -4972,6 +5035,15 @@ namespace ENI2.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Waste receipt.
|
||||||
|
/// </summary>
|
||||||
|
public static string textWasteReceipt {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textWasteReceipt", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Waste amount retained on board.
|
/// Looks up a localized string similar to Waste amount retained on board.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -1759,4 +1759,28 @@
|
|||||||
<data name="textExcelExport" xml:space="preserve">
|
<data name="textExcelExport" xml:space="preserve">
|
||||||
<value>Excel export</value>
|
<value>Excel export</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="textAmountWasteReceived_MTQ" xml:space="preserve">
|
||||||
|
<value>Amount waste received (MTQ)</value>
|
||||||
|
</data>
|
||||||
|
<data name="textIdentificationNumber" xml:space="preserve">
|
||||||
|
<value>Identification number</value>
|
||||||
|
</data>
|
||||||
|
<data name="textPortReceptionFacilityName" xml:space="preserve">
|
||||||
|
<value>Port reception facility name</value>
|
||||||
|
</data>
|
||||||
|
<data name="textPortReceptionFacilityProviderName" xml:space="preserve">
|
||||||
|
<value>Port reception facility provider name</value>
|
||||||
|
</data>
|
||||||
|
<data name="textTreatmentFacilityProviderName" xml:space="preserve">
|
||||||
|
<value>Treatment facility provider name</value>
|
||||||
|
</data>
|
||||||
|
<data name="textWasteDeliveryDateFrom" xml:space="preserve">
|
||||||
|
<value>Waste delivery date from</value>
|
||||||
|
</data>
|
||||||
|
<data name="textWasteDeliveryDateTo" xml:space="preserve">
|
||||||
|
<value>Waste delivery date to</value>
|
||||||
|
</data>
|
||||||
|
<data name="textWasteReceipt" xml:space="preserve">
|
||||||
|
<value>Waste receipt</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@ -101,3 +101,12 @@ GO
|
|||||||
ALTER TABLE [dbo].[IMDGPosition]
|
ALTER TABLE [dbo].[IMDGPosition]
|
||||||
ADD [Class7MaxActivity_Unit] TINYINT NULL;
|
ADD [Class7MaxActivity_Unit] TINYINT NULL;
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
PRINT N'Altering [dbo].[PAS]...';
|
||||||
|
|
||||||
|
GO
|
||||||
|
ALTER TABLE [dbo].[PAS]
|
||||||
|
ADD [EmergencyCare] NVARCHAR (255) NULL,
|
||||||
|
[EmergencyContactNumber] NVARCHAR (99) NULL;
|
||||||
|
|
||||||
|
GO
|
||||||
@ -119,6 +119,12 @@ namespace bsmd.database
|
|||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public DateTime? CrewMemberIdentityDocumentExpiryDate { get; set; }
|
public DateTime? CrewMemberIdentityDocumentExpiryDate { get; set; }
|
||||||
|
|
||||||
|
[ENI2Validation]
|
||||||
|
public bool? NotificationSchengen { get; set; }
|
||||||
|
|
||||||
|
[ENI2Validation]
|
||||||
|
public bool? NotificationPAX { get; set; }
|
||||||
|
|
||||||
public string Identifier { get; set; }
|
public string Identifier { get; set; }
|
||||||
|
|
||||||
public string SublistCollectionKey { get { return "crew"; } }
|
public string SublistCollectionKey { get { return "crew"; } }
|
||||||
@ -157,6 +163,8 @@ namespace bsmd.database
|
|||||||
scmd.Parameters.AddWithValue("@P13", this.IsDeparture);
|
scmd.Parameters.AddWithValue("@P13", this.IsDeparture);
|
||||||
scmd.Parameters.AddWithNullableValue("@P14", this.CrewMemberIdentityDocumentIssuingState);
|
scmd.Parameters.AddWithNullableValue("@P14", this.CrewMemberIdentityDocumentIssuingState);
|
||||||
scmd.Parameters.AddWithNullableValue("@P15", this.CrewMemberIdentityDocumentExpiryDate);
|
scmd.Parameters.AddWithNullableValue("@P15", this.CrewMemberIdentityDocumentExpiryDate);
|
||||||
|
scmd.Parameters.AddWithNullableValue("@P16", this.NotificationSchengen);
|
||||||
|
scmd.Parameters.AddWithNullableValue("@P17", this.NotificationPAX);
|
||||||
|
|
||||||
if (this.IsNew)
|
if (this.IsNew)
|
||||||
{
|
{
|
||||||
@ -165,8 +173,8 @@ namespace bsmd.database
|
|||||||
scmd.CommandText = string.Format("INSERT INTO {0} (Id, MessageHeaderId, CrewMemberLastName, CrewMemberFirstName, " +
|
scmd.CommandText = string.Format("INSERT INTO {0} (Id, MessageHeaderId, CrewMemberLastName, CrewMemberFirstName, " +
|
||||||
"CrewMemberPlaceOfBirth, CrewMemberDateOfBirth, CrewMemberGender, CrewMemberNationality,CrewMemberIdentityDocumentType, " +
|
"CrewMemberPlaceOfBirth, CrewMemberDateOfBirth, CrewMemberGender, CrewMemberNationality,CrewMemberIdentityDocumentType, " +
|
||||||
"CrewMemberIdentityDocumentId, CrewMemberVisaNumber, CrewMemberDuty, Identifier, IsDeparture, " +
|
"CrewMemberIdentityDocumentId, CrewMemberVisaNumber, CrewMemberDuty, Identifier, IsDeparture, " +
|
||||||
"CrewMemberIdentityDocumentIssuingState, CrewMemberIdentityDocumentExpiryDate) " +
|
"CrewMemberIdentityDocumentIssuingState, CrewMemberIdentityDocumentExpiryDate, NotificationSchengen, NotificationPAX) " +
|
||||||
"VALUES (@ID, @P1, @P2, @P3, @P4, @P5, @P6, @P7, @P8, @P9, @P10, @P11, @P12, @P13, @P14, @P15 )", this.Tablename);
|
"VALUES (@ID, @P1, @P2, @P3, @P4, @P5, @P6, @P7, @P8, @P9, @P10, @P11, @P12, @P13, @P14, @P15, @P16, @P17 )", this.Tablename);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -175,7 +183,7 @@ namespace bsmd.database
|
|||||||
"CrewMemberPlaceOfBirth = @P4, CrewMemberDateOfBirth = @P5, CrewMemberGender = @P6, CrewMemberNationality = @P7, "+
|
"CrewMemberPlaceOfBirth = @P4, CrewMemberDateOfBirth = @P5, CrewMemberGender = @P6, CrewMemberNationality = @P7, "+
|
||||||
"CrewMemberIdentityDocumentType = @P8, CrewMemberIdentityDocumentId = @P9, CrewMemberVisaNumber = @P10, " +
|
"CrewMemberIdentityDocumentType = @P8, CrewMemberIdentityDocumentId = @P9, CrewMemberVisaNumber = @P10, " +
|
||||||
"CrewMemberDuty = @P11, Identifier = @P12, IsDeparture = @P13, CrewMemberIdentityDocumentIssuingState = @P14, " +
|
"CrewMemberDuty = @P11, Identifier = @P12, IsDeparture = @P13, CrewMemberIdentityDocumentIssuingState = @P14, " +
|
||||||
"CrewMemberIdentityDocumentExpiryDate = @P15 WHERE Id = @ID", this.Tablename);
|
"CrewMemberIdentityDocumentExpiryDate = @P15, NotificationSchengen = @P16, NotificationPAX = @P17 WHERE Id = @ID", this.Tablename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,7 +192,7 @@ namespace bsmd.database
|
|||||||
string query = string.Format("SELECT Id, CrewMemberLastName, CrewMemberFirstName, CrewMemberPlaceOfBirth, " +
|
string query = string.Format("SELECT Id, CrewMemberLastName, CrewMemberFirstName, CrewMemberPlaceOfBirth, " +
|
||||||
"CrewMemberDateOfBirth, CrewMemberGender, CrewMemberNationality, CrewMemberIdentityDocumentType, CrewMemberIdentityDocumentId, " +
|
"CrewMemberDateOfBirth, CrewMemberGender, CrewMemberNationality, CrewMemberIdentityDocumentType, CrewMemberIdentityDocumentId, " +
|
||||||
"CrewMemberVisaNumber, CrewMemberDuty, Identifier, IsDeparture, CrewMemberIdentityDocumentIssuingState, " +
|
"CrewMemberVisaNumber, CrewMemberDuty, Identifier, IsDeparture, CrewMemberIdentityDocumentIssuingState, " +
|
||||||
"CrewMemberIdentityDocumentExpiryDate FROM {0}", this.Tablename);
|
"CrewMemberIdentityDocumentExpiryDate, NotificationSchengen, NotificationPAX FROM {0}", this.Tablename);
|
||||||
|
|
||||||
switch (filter)
|
switch (filter)
|
||||||
{
|
{
|
||||||
@ -226,6 +234,8 @@ namespace bsmd.database
|
|||||||
if (!reader.IsDBNull(12)) crew.IsDeparture = reader.GetBoolean(12);
|
if (!reader.IsDBNull(12)) crew.IsDeparture = reader.GetBoolean(12);
|
||||||
if (!reader.IsDBNull(13)) crew.CrewMemberIdentityDocumentIssuingState = reader.GetString(13);
|
if (!reader.IsDBNull(13)) crew.CrewMemberIdentityDocumentIssuingState = reader.GetString(13);
|
||||||
if (!reader.IsDBNull(14)) crew.CrewMemberIdentityDocumentExpiryDate = reader.GetDateTime(14);
|
if (!reader.IsDBNull(14)) crew.CrewMemberIdentityDocumentExpiryDate = reader.GetDateTime(14);
|
||||||
|
if (!reader.IsDBNull(15)) crew.NotificationSchengen = reader.GetBoolean(15);
|
||||||
|
if (!reader.IsDBNull(16)) crew.NotificationPAX = reader.GetBoolean(16);
|
||||||
|
|
||||||
result.Add(crew);
|
result.Add(crew);
|
||||||
}
|
}
|
||||||
@ -249,7 +259,7 @@ namespace bsmd.database
|
|||||||
string query = string.Format("SELECT Id, CrewMemberLastName, CrewMemberFirstName, CrewMemberPlaceOfBirth, " +
|
string query = string.Format("SELECT Id, CrewMemberLastName, CrewMemberFirstName, CrewMemberPlaceOfBirth, " +
|
||||||
"CrewMemberDateOfBirth, CrewMemberGender, CrewMemberNationality, CrewMemberIdentityDocumentType, CrewMemberIdentityDocumentId, " +
|
"CrewMemberDateOfBirth, CrewMemberGender, CrewMemberNationality, CrewMemberIdentityDocumentType, CrewMemberIdentityDocumentId, " +
|
||||||
"CrewMemberVisaNumber, CrewMemberDuty, Identifier, IsDeparture, CrewMemberIdentityDocumentIssuingState, " +
|
"CrewMemberVisaNumber, CrewMemberDuty, Identifier, IsDeparture, CrewMemberIdentityDocumentIssuingState, " +
|
||||||
"CrewMemberIdentityDocumentExpiryDate FROM {0}", this.Tablename);
|
"CrewMemberIdentityDocumentExpiryDate, NotificationSchengen, NotificationPAX FROM {0}", this.Tablename);
|
||||||
|
|
||||||
switch (filter)
|
switch (filter)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -96,8 +96,9 @@ namespace bsmd.database
|
|||||||
HAZD,
|
HAZD,
|
||||||
AGNT,
|
AGNT,
|
||||||
STO, // DK - only
|
STO, // DK - only
|
||||||
CREWD, // DK - only
|
CREWD,
|
||||||
PASD // DK - only
|
PASD,
|
||||||
|
WAS_RCPT
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum MessageStatus
|
public enum MessageStatus
|
||||||
|
|||||||
@ -128,6 +128,23 @@ namespace bsmd.database
|
|||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public DateTime? PassengerIdentityDocumentExpiryDate { get; set; }
|
public DateTime? PassengerIdentityDocumentExpiryDate { get; set; }
|
||||||
|
|
||||||
|
[ENI2Validation]
|
||||||
|
public bool? NotificationSchengen { get; set; }
|
||||||
|
|
||||||
|
[ENI2Validation]
|
||||||
|
public bool? NotificationPAX { get; set; }
|
||||||
|
|
||||||
|
[ENI2Validation]
|
||||||
|
[ReportDisplayName("Emergency care")]
|
||||||
|
[MaxLength(255)]
|
||||||
|
public string EmergencyCare { get; set; }
|
||||||
|
|
||||||
|
[ENI2Validation]
|
||||||
|
[ReportDisplayName("Emergency contact number")]
|
||||||
|
[MaxLength(99)]
|
||||||
|
public string EmergencyContactNumber { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public string Identifier { get; set; }
|
public string Identifier { get; set; }
|
||||||
|
|
||||||
public string SublistCollectionKey { get { return "pas"; } }
|
public string SublistCollectionKey { get { return "pas"; } }
|
||||||
@ -170,6 +187,10 @@ namespace bsmd.database
|
|||||||
scmd.Parameters.AddWithValue("@P15", this.IsDeparture);
|
scmd.Parameters.AddWithValue("@P15", this.IsDeparture);
|
||||||
scmd.Parameters.AddWithNullableValue("@P16", this.PassengerIdentityDocumentIssuingState);
|
scmd.Parameters.AddWithNullableValue("@P16", this.PassengerIdentityDocumentIssuingState);
|
||||||
scmd.Parameters.AddWithNullableValue("@P17", this.PassengerIdentityDocumentExpiryDate);
|
scmd.Parameters.AddWithNullableValue("@P17", this.PassengerIdentityDocumentExpiryDate);
|
||||||
|
scmd.Parameters.AddWithNullableValue("@P18", this.NotificationSchengen);
|
||||||
|
scmd.Parameters.AddWithNullableValue("@P19", this.NotificationPAX);
|
||||||
|
scmd.Parameters.AddWithNullableValue("@P20", this.EmergencyCare);
|
||||||
|
scmd.Parameters.AddWithNullableValue("@P21", this.EmergencyContactNumber);
|
||||||
|
|
||||||
if (this.IsNew)
|
if (this.IsNew)
|
||||||
{
|
{
|
||||||
@ -178,8 +199,9 @@ namespace bsmd.database
|
|||||||
scmd.CommandText = string.Format("INSERT INTO {0} (Id, MessageHeaderId, PassengerLastName, PassengerFirstName, " +
|
scmd.CommandText = string.Format("INSERT INTO {0} (Id, MessageHeaderId, PassengerLastName, PassengerFirstName, " +
|
||||||
"PassengerPlaceOfBirth, PassengerDateOfBirth, PassengerGender, PassengerNationality, PassengerIdentityDocumentType, " +
|
"PassengerPlaceOfBirth, PassengerDateOfBirth, PassengerGender, PassengerNationality, PassengerIdentityDocumentType, " +
|
||||||
"PassengerIdentityDocumentId, PassengerVisaNumber, PassengerPortOfEmbarkation, PassengerPortOfDisembarkation," +
|
"PassengerIdentityDocumentId, PassengerVisaNumber, PassengerPortOfEmbarkation, PassengerPortOfDisembarkation," +
|
||||||
"PassengerInTransit, Identifier, IsDeparture, PassengerIdentityDocumentIssuingState, PassengerIdentityDocumentExpiryDate) " +
|
"PassengerInTransit, Identifier, IsDeparture, PassengerIdentityDocumentIssuingState, PassengerIdentityDocumentExpiryDate, " +
|
||||||
"VALUES (@ID, @P1, @P2, @P3, @P4, @P5, @P6, @P7, @P8, @P9, @P10, @P11, @P12, @P13, @P14, @P15, @P16, @P17 )",
|
"NotificationSchengen, NotificationSchengen, EmergencyCare, EmergencyContactNumber) " +
|
||||||
|
"VALUES (@ID, @P1, @P2, @P3, @P4, @P5, @P6, @P7, @P8, @P9, @P10, @P11, @P12, @P13, @P14, @P15, @P16, @P17, @P18, @P19, @P20, @P21 )",
|
||||||
this.Tablename);
|
this.Tablename);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -190,7 +212,8 @@ namespace bsmd.database
|
|||||||
"PassengerNationality = @P7, PassengerIdentityDocumentType = @P8, PassengerIdentityDocumentId = @P9, " +
|
"PassengerNationality = @P7, PassengerIdentityDocumentType = @P8, PassengerIdentityDocumentId = @P9, " +
|
||||||
"PassengerVisaNumber = @P10, PassengerPortOfEmbarkation = @P11, PassengerPortOfDisembarkation = @P12, " +
|
"PassengerVisaNumber = @P10, PassengerPortOfEmbarkation = @P11, PassengerPortOfDisembarkation = @P12, " +
|
||||||
"PassengerInTransit = @P13, IsDeparture = @P15, Identifier = @P14, PassengerIdentityDocumentIssuingState = @P16, " +
|
"PassengerInTransit = @P13, IsDeparture = @P15, Identifier = @P14, PassengerIdentityDocumentIssuingState = @P16, " +
|
||||||
"PassengerIdentityDocumentExpiryDate = @P17 WHERE Id = @ID", this.Tablename);
|
"PassengerIdentityDocumentExpiryDate = @P17, NotificationSchengen = @P18, NotificationPAX = @P19, " +
|
||||||
|
"EmergencyCare = @P20, EmergencyContactNumber = @P21 WHERE Id = @ID", this.Tablename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,7 +222,8 @@ namespace bsmd.database
|
|||||||
string query = string.Format("SELECT Id, PassengerLastName, PassengerFirstName, PassengerPlaceOfBirth, " +
|
string query = string.Format("SELECT Id, PassengerLastName, PassengerFirstName, PassengerPlaceOfBirth, " +
|
||||||
"PassengerDateOfBirth, PassengerGender, PassengerNationality, PassengerIdentityDocumentType, PassengerIdentityDocumentId, " +
|
"PassengerDateOfBirth, PassengerGender, PassengerNationality, PassengerIdentityDocumentType, PassengerIdentityDocumentId, " +
|
||||||
"PassengerVisaNumber, PassengerPortOfEmbarkation, PassengerPortOfDisembarkation, PassengerInTransit, Identifier, " +
|
"PassengerVisaNumber, PassengerPortOfEmbarkation, PassengerPortOfDisembarkation, PassengerInTransit, Identifier, " +
|
||||||
"IsDeparture, PassengerIdentityDocumentIssuingState, PassengerIdentityDocumentExpiryDate FROM {0}",
|
"IsDeparture, PassengerIdentityDocumentIssuingState, PassengerIdentityDocumentExpiryDate, NotificationSchengen, " +
|
||||||
|
"NotificationPAX, EmergencyCare, EmergencyContactNumber FROM {0}",
|
||||||
this.Tablename);
|
this.Tablename);
|
||||||
|
|
||||||
switch (filter)
|
switch (filter)
|
||||||
@ -244,6 +268,10 @@ namespace bsmd.database
|
|||||||
if (!reader.IsDBNull(14)) pas.IsDeparture = reader.GetBoolean(14);
|
if (!reader.IsDBNull(14)) pas.IsDeparture = reader.GetBoolean(14);
|
||||||
if (!reader.IsDBNull(15)) pas.PassengerIdentityDocumentIssuingState = reader.GetString(15);
|
if (!reader.IsDBNull(15)) pas.PassengerIdentityDocumentIssuingState = reader.GetString(15);
|
||||||
if (!reader.IsDBNull(16)) pas.PassengerIdentityDocumentExpiryDate = reader.GetDateTime(16);
|
if (!reader.IsDBNull(16)) pas.PassengerIdentityDocumentExpiryDate = reader.GetDateTime(16);
|
||||||
|
if (!reader.IsDBNull(17)) pas.NotificationSchengen = reader.GetBoolean(17);
|
||||||
|
if (!reader.IsDBNull(18)) pas.NotificationPAX = reader.GetBoolean(18);
|
||||||
|
if (!reader.IsDBNull(19)) pas.EmergencyCare = reader.GetString(19);
|
||||||
|
if (!reader.IsDBNull(20)) pas.EmergencyContactNumber = reader.GetString(20);
|
||||||
result.Add(pas);
|
result.Add(pas);
|
||||||
}
|
}
|
||||||
reader.Close();
|
reader.Close();
|
||||||
@ -284,7 +312,8 @@ namespace bsmd.database
|
|||||||
string query = string.Format("SELECT Id, PassengerLastName, PassengerFirstName, PassengerPlaceOfBirth, " +
|
string query = string.Format("SELECT Id, PassengerLastName, PassengerFirstName, PassengerPlaceOfBirth, " +
|
||||||
"PassengerDateOfBirth, PassengerGender, PassengerNationality, PassengerIdentityDocumentType, PassengerIdentityDocumentId, " +
|
"PassengerDateOfBirth, PassengerGender, PassengerNationality, PassengerIdentityDocumentType, PassengerIdentityDocumentId, " +
|
||||||
"PassengerVisaNumber, PassengerPortOfEmbarkation, PassengerPortOfDisembarkation, PassengerInTransit, Identifier, IsDeparture, " +
|
"PassengerVisaNumber, PassengerPortOfEmbarkation, PassengerPortOfDisembarkation, PassengerInTransit, Identifier, IsDeparture, " +
|
||||||
"PassengerIdentityDocumentIssuingState, PassengerIdentityDocumentExpiryDate FROM {0}",
|
"PassengerIdentityDocumentIssuingState, PassengerIdentityDocumentExpiryDate, NotificationSchengen, NotificationPAX, " +
|
||||||
|
"EmergencyCare, EmergencyContactNumber FROM {0}",
|
||||||
this.Tablename);
|
this.Tablename);
|
||||||
|
|
||||||
switch (filter)
|
switch (filter)
|
||||||
|
|||||||
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
[assembly: AssemblyCompany("schick Informatik")]
|
[assembly: AssemblyCompany("schick Informatik")]
|
||||||
[assembly: AssemblyProduct("BSMD NSW interface")]
|
[assembly: AssemblyProduct("BSMD NSW interface")]
|
||||||
[assembly: AssemblyInformationalVersion("6.9.19")]
|
[assembly: AssemblyInformationalVersion("7.0.0")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2014-2022 schick Informatik")]
|
[assembly: AssemblyCopyright("Copyright © 2014-2022 schick Informatik")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
@ -1,4 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("6.9.19.*")]
|
[assembly: AssemblyVersion("7.0.0.*")]
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ namespace bsmd.database
|
|||||||
|
|
||||||
[TypeConverter(typeof(MessageClassConverter<WAS>))]
|
[TypeConverter(typeof(MessageClassConverter<WAS>))]
|
||||||
[JsonConverter(typeof(NoTypeConverterJsonConverter<WAS>))]
|
[JsonConverter(typeof(NoTypeConverterJsonConverter<WAS>))]
|
||||||
public class WAS_RCPT : DatabaseEntity, ISublistContainer
|
public class WAS_RCPT : DatabaseEntity, ISublistContainer, ISublistElement
|
||||||
{
|
{
|
||||||
public WAS_RCPT()
|
public WAS_RCPT()
|
||||||
{
|
{
|
||||||
@ -95,6 +95,14 @@ namespace bsmd.database
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region ISublistElement implementation
|
||||||
|
|
||||||
|
public string Identifier { get; set; }
|
||||||
|
|
||||||
|
public string SublistCollectionKey { get { return "was_rcpt"; } }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region DatabaseEntity implementation
|
#region DatabaseEntity implementation
|
||||||
|
|
||||||
public override void PrepareSave(IDbCommand cmd)
|
public override void PrepareSave(IDbCommand cmd)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user