Merge branch 'develop' into release/eni_7.2.7
This commit is contained in:
commit
f11397645c
@ -192,6 +192,10 @@ namespace ENI2
|
|||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual int SelectedTabIndex { get; set; } = -1;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region event handling for control content changes (signal dirty etc)
|
#region event handling for control content changes (signal dirty etc)
|
||||||
|
|
||||||
protected void RegisterTextboxChange(TextBox textBox, Message.NotificationClass notificationClass)
|
protected void RegisterTextboxChange(TextBox textBox, Message.NotificationClass notificationClass)
|
||||||
@ -345,9 +349,7 @@ namespace ENI2
|
|||||||
GlobalStructures.FilterCombobox(cmb, e.Key);
|
GlobalStructures.FilterCombobox(cmb, e.Key);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region IHighlightControlContainer implementation
|
#region IHighlightControlContainer implementation
|
||||||
|
|
||||||
|
|||||||
@ -485,6 +485,7 @@ namespace ENI2
|
|||||||
{
|
{
|
||||||
|
|
||||||
Util.UIHelper.SetBusyState();
|
Util.UIHelper.SetBusyState();
|
||||||
|
int currentMainTabIndex = -1;
|
||||||
|
|
||||||
if (this.detailView.Children[0] is DetailBaseControl currentControl)
|
if (this.detailView.Children[0] is DetailBaseControl currentControl)
|
||||||
{
|
{
|
||||||
@ -499,10 +500,24 @@ namespace ENI2
|
|||||||
// ggf. hat sich die Ticketnr geändert..
|
// ggf. hat sich die Ticketnr geändert..
|
||||||
DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(currentControl.Core);
|
DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(currentControl.Core);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.DetailControl_RequestReload(this.Core.Id.Value);
|
currentMainTabIndex = currentControl.SelectedTabIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.DetailControl_RequestReload(this.Core.Id.Value);
|
||||||
|
|
||||||
|
System.Action<int> SetTabAction = (int x) =>
|
||||||
|
{
|
||||||
|
// this hopefully happens *after* the view was completely reloaded
|
||||||
|
if (this.detailView.Children[0] is DetailBaseControl currentNewControl)
|
||||||
|
{
|
||||||
|
currentNewControl.SelectedTabIndex = x;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (currentMainTabIndex >= 0)
|
||||||
|
Dispatcher.BeginInvoke(SetTabAction, currentMainTabIndex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SaveMessage(Message message)
|
private void SaveMessage(Message message)
|
||||||
@ -553,6 +568,7 @@ namespace ENI2
|
|||||||
{
|
{
|
||||||
|
|
||||||
Util.UIHelper.SetBusyState();
|
Util.UIHelper.SetBusyState();
|
||||||
|
int currentMainTabIndex = -1;
|
||||||
|
|
||||||
foreach (Message message in this._messages)
|
foreach (Message message in this._messages)
|
||||||
{
|
{
|
||||||
@ -563,13 +579,30 @@ namespace ENI2
|
|||||||
if (currentControl is OverViewDetailControl)
|
if (currentControl is OverViewDetailControl)
|
||||||
{
|
{
|
||||||
// ggf. hat sich die Ticketnr geändert..
|
// ggf. hat sich die Ticketnr geändert..
|
||||||
DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(currentControl.Core);
|
DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(currentControl.Core);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currentMainTabIndex = currentControl.SelectedTabIndex;
|
||||||
|
Trace.WriteLine($"Last selected tab index: {currentMainTabIndex}");
|
||||||
|
|
||||||
this.buttonSaveAll.Visibility = Visibility.Hidden;
|
this.buttonSaveAll.Visibility = Visibility.Hidden;
|
||||||
this.buttonSave.Visibility = Visibility.Hidden;
|
this.buttonSave.Visibility = Visibility.Hidden;
|
||||||
|
|
||||||
|
this.DetailControl_RequestReload(this.Core.Id.Value);
|
||||||
|
|
||||||
|
System.Action<int> SetTabAction = (int x) =>
|
||||||
|
{
|
||||||
|
// this hopefully happens *after* the view was completely reloaded
|
||||||
|
if (this.detailView.Children[0] is DetailBaseControl currentNewControl)
|
||||||
|
{
|
||||||
|
currentNewControl.SelectedTabIndex = x;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if(currentMainTabIndex >= 0)
|
||||||
|
Dispatcher.BeginInvoke(SetTabAction, currentMainTabIndex);
|
||||||
}
|
}
|
||||||
this.DetailControl_RequestReload(this.Core.Id.Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DetailControl_NotificationClassChanged(Message.NotificationClass? notificationClass)
|
private void DetailControl_NotificationClassChanged(Message.NotificationClass? notificationClass)
|
||||||
|
|||||||
@ -244,7 +244,13 @@ namespace ENI2.DetailViewControls
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int SelectedTabIndex
|
||||||
|
{
|
||||||
|
get { return this.mainFrame.SelectedIndex; }
|
||||||
|
set { this.mainFrame.SelectedIndex = value; }
|
||||||
|
}
|
||||||
|
|
||||||
#region Grid copy handlers
|
#region Grid copy handlers
|
||||||
|
|
||||||
|
|||||||
@ -197,6 +197,12 @@ namespace ENI2.DetailViewControls
|
|||||||
this._initialized = true;
|
this._initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int SelectedTabIndex
|
||||||
|
{
|
||||||
|
get { return this.tabControlPositions.SelectedIndex; }
|
||||||
|
set { this.tabControlPositions.SelectedIndex = value; }
|
||||||
|
}
|
||||||
|
|
||||||
#region SetEnabled
|
#region SetEnabled
|
||||||
|
|
||||||
public override void SetEnabled(bool enabled)
|
public override void SetEnabled(bool enabled)
|
||||||
|
|||||||
@ -130,6 +130,12 @@ namespace ENI2.DetailViewControls
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int SelectedTabIndex
|
||||||
|
{
|
||||||
|
get { return this.mainFrame.SelectedIndex; }
|
||||||
|
set { this.mainFrame.SelectedIndex = value; }
|
||||||
|
}
|
||||||
|
|
||||||
#region SetEnabled
|
#region SetEnabled
|
||||||
|
|
||||||
public override void SetEnabled(bool enabled)
|
public override void SetEnabled(bool enabled)
|
||||||
|
|||||||
@ -116,6 +116,12 @@ namespace ENI2.DetailViewControls
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int SelectedTabIndex
|
||||||
|
{
|
||||||
|
get { return this.mainFrame.SelectedIndex; }
|
||||||
|
set { this.mainFrame.SelectedIndex = value; }
|
||||||
|
}
|
||||||
|
|
||||||
#region SetEnabled
|
#region SetEnabled
|
||||||
|
|
||||||
public override void SetEnabled(bool enabled)
|
public override void SetEnabled(bool enabled)
|
||||||
|
|||||||
@ -187,6 +187,12 @@ namespace ENI2.DetailViewControls
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int SelectedTabIndex
|
||||||
|
{
|
||||||
|
get { return this.mainFrame.SelectedIndex; }
|
||||||
|
set { this.mainFrame.SelectedIndex = value; }
|
||||||
|
}
|
||||||
|
|
||||||
#region Waste receipt grid event handler
|
#region Waste receipt grid event handler
|
||||||
|
|
||||||
private async void DataGridWasteReceipt_CreateRequested()
|
private async void DataGridWasteReceipt_CreateRequested()
|
||||||
|
|||||||
@ -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>5</ApplicationRevision>
|
<ApplicationRevision>7</ApplicationRevision>
|
||||||
<ApplicationVersion>7.2.7.5</ApplicationVersion>
|
<ApplicationVersion>7.2.7.7</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||||
|
|||||||
@ -1184,7 +1184,7 @@
|
|||||||
<value>Category</value>
|
<value>Category</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="textColumsOfIBC" xml:space="preserve">
|
<data name="textColumsOfIBC" xml:space="preserve">
|
||||||
<value>Columns "o" of OBC Code (value 15.19)</value>
|
<value>Columns "o" of IBC Code (value 15.19)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="textContainerNo" xml:space="preserve">
|
<data name="textContainerNo" xml:space="preserve">
|
||||||
<value>Container No.</value>
|
<value>Container No.</value>
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
</col:ArrayList>
|
</col:ArrayList>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
<GroupBox Name="portCallGroupBox" Header="{x:Static p:Resources.text2PortCall}">
|
<GroupBox Name="portCallGroupBox" Header="{x:Static p:Resources.text2PortCall}">
|
||||||
<TabControl>
|
<TabControl x:Name="mainTabControl">
|
||||||
<TabItem Header="{x:Static p:Resources.textTab21}">
|
<TabItem Header="{x:Static p:Resources.textTab21}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
|
|||||||
@ -204,15 +204,10 @@ namespace ENI2.SheetDisplayControls
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CheckBoxValidExemption_Checked(object sender, RoutedEventArgs e)
|
public override int SelectedTabIndex
|
||||||
{
|
{
|
||||||
bool on = !(this.checkBoxValidExemption.IsChecked ?? false);
|
get { return this.mainTabControl.SelectedIndex; }
|
||||||
this.checkBoxAccurateCorrectDetails.IsEnabled = on;
|
set { this.mainTabControl.SelectedIndex = value; }
|
||||||
this.locodeCtrlLastWastePort.IsEnabled = on;
|
|
||||||
this.datePickerDateLastDisposal.IsEnabled = on;
|
|
||||||
this.textBoxWasteDisposalServiceProviders.IsEnabled = on;
|
|
||||||
this.gridWasteControls.IsEnabled = on;
|
|
||||||
this.dataGridWaste.IsEnabled = on;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SetEnabled(bool enabled)
|
public override void SetEnabled(bool enabled)
|
||||||
@ -270,7 +265,17 @@ namespace ENI2.SheetDisplayControls
|
|||||||
this.RegisterTextboxChange(this.textBoxWasteDisposalServiceProviders, Message.NotificationClass.WAS);
|
this.RegisterTextboxChange(this.textBoxWasteDisposalServiceProviders, Message.NotificationClass.WAS);
|
||||||
this.RegisterDatePickerChange(this.datePickerDateLastDisposal, Message.NotificationClass.WAS);
|
this.RegisterDatePickerChange(this.datePickerDateLastDisposal, Message.NotificationClass.WAS);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CheckBoxValidExemption_Checked(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
bool on = !(this.checkBoxValidExemption.IsChecked ?? false);
|
||||||
|
this.checkBoxAccurateCorrectDetails.IsEnabled = on;
|
||||||
|
this.locodeCtrlLastWastePort.IsEnabled = on;
|
||||||
|
this.datePickerDateLastDisposal.IsEnabled = on;
|
||||||
|
this.textBoxWasteDisposalServiceProviders.IsEnabled = on;
|
||||||
|
this.gridWasteControls.IsEnabled = on;
|
||||||
|
this.dataGridWaste.IsEnabled = on;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buttonSearchPortArea_Click(object sender, RoutedEventArgs e)
|
private void buttonSearchPortArea_Click(object sender, RoutedEventArgs e)
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="1050" d:DesignWidth="800">
|
d:DesignHeight="1050" d:DesignWidth="800">
|
||||||
<GroupBox Name="shipDataGroupBox" Header="{x:Static p:Resources.text3PreArrival}">
|
<GroupBox Name="shipDataGroupBox" Header="{x:Static p:Resources.text3PreArrival}">
|
||||||
<TabControl>
|
<TabControl x:Name="mainTabControl">
|
||||||
<TabItem Header="{x:Static p:Resources.textTab51}">
|
<TabItem Header="{x:Static p:Resources.textTab51}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
@ -148,15 +148,16 @@
|
|||||||
<TextBlock FontSize="18" VerticalAlignment="Bottom" Text="{x:Static p:Resources.text52SSCEC}" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2"/>
|
<TextBlock FontSize="18" VerticalAlignment="Bottom" Text="{x:Static p:Resources.text52SSCEC}" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2"/>
|
||||||
|
|
||||||
<Label HorizontalContentAlignment="Right" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textMDHSimplification}" Name="label_MDHSimplificationAvailable" Margin="0,0,10,0"/>
|
<Label HorizontalContentAlignment="Right" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textMDHSimplification}" Name="label_MDHSimplificationAvailable" Margin="0,0,10,0"/>
|
||||||
<CheckBox Name="checkSimplification" IsChecked="{Binding MDHSimplification}" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center"/>
|
<CheckBox Name="checkSimplification" IsChecked="{Binding MDHSimplification}" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Checked="checkSimplification_Checked" Unchecked="checkSimplification_Checked"/>
|
||||||
<Label HorizontalContentAlignment="Right" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textPortOfHealth}" Name="label_PortOfHealth" Margin="0,0,10,0"/>
|
<Label HorizontalContentAlignment="Right" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textPortOfHealth}" Name="label_PortOfHealth" Margin="0,0,10,0"/>
|
||||||
<enictrl:LocodeControl x:Name="locodePortWhereHealthDeclarationWasGiven" Grid.Row="2" Grid.Column="1" LocodeValue="{Binding PortOfCallWhereCompleteMDHNotified, Mode=TwoWay}" IsEnabled="{Binding ElementName=checkSimplification, Path=IsChecked}" />
|
<enictrl:LocodeControl x:Name="locodePortWhereHealthDeclarationWasGiven" Grid.Row="2" Grid.Column="1" LocodeValue="{Binding PortOfCallWhereCompleteMDHNotified, Mode=TwoWay}" IsEnabled="{Binding ElementName=checkSimplification, Path=IsChecked}" />
|
||||||
<Label HorizontalContentAlignment="Right" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textSanitaryControlExemption}" Name="label_SanitaryControlExemption" Margin="0,0,10,0"/>
|
<Label HorizontalContentAlignment="Right" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textSanitaryControlExemption}" Name="label_SanitaryControlExemption" Margin="0,0,10,0"/>
|
||||||
<CheckBox Name="checkBoxSanitaryControlExemption" IsChecked="{Binding ValidSanitaryControlExemptionOrCertificateOnBoard}" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" IsEnabled="{Binding ElementName=checkSimplification, Path=IsChecked, Converter={util:InverseBooleanConverter}}"/>
|
<CheckBox Name="checkBoxSanitaryControlExemption" IsChecked="{Binding ValidSanitaryControlExemptionOrCertificateOnBoard}" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center"
|
||||||
|
IsEnabled="{Binding ElementName=checkSimplification, Path=IsChecked, Converter={util:InverseBooleanConverter}}" Checked="checkSimplification_Checked" Unchecked="checkSimplification_Checked"/>
|
||||||
<Label HorizontalContentAlignment="Right" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textPlaceOfIssue}" Name="label_PlaceOfIssue" Margin="0,0,10,0"/>
|
<Label HorizontalContentAlignment="Right" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textPlaceOfIssue}" Name="label_PlaceOfIssue" Margin="0,0,10,0"/>
|
||||||
<TextBox Name="textBoxPlaceOfIssue" Grid.Row="4" Grid.Column="1" MaxLength="100" Text="{Binding PlaceOfIssue, Converter={util:TrimStringConverter}}" Margin="2" IsEnabled="{Binding ElementName=checkSimplification, Path=IsChecked, Converter={util:InverseBooleanConverter}}"/>
|
<TextBox Name="textBoxPlaceOfIssue" Grid.Row="4" Grid.Column="1" MaxLength="100" Text="{Binding PlaceOfIssue, Converter={util:TrimStringConverter}}" Margin="2" />
|
||||||
<Label HorizontalContentAlignment="Right" Grid.Row="5" Grid.Column="0" Content="{x:Static p:Resources.textDateOfIssue}" Name="label_DateOfIssue" Margin="0,0,10,0"/>
|
<Label HorizontalContentAlignment="Right" Grid.Row="5" Grid.Column="0" Content="{x:Static p:Resources.textDateOfIssue}" Name="label_DateOfIssue" Margin="0,0,10,0"/>
|
||||||
<DatePicker Name="datePickerDateOfIssue" Grid.Row="5" Grid.Column="1" SelectedDate="{Binding DateOfIssue, Mode=TwoWay}" Margin="2" ContextMenu="{DynamicResource ClearContextMenu}" DisplayDateStart="1/1/1900" DisplayDateEnd="12/31/2199" PreviewKeyUp="DateTimePicker_PreviewKeyUpDate" IsEnabled="{Binding ElementName=checkSimplification, Path=IsChecked, Converter={util:InverseBooleanConverter}}">
|
<DatePicker Name="datePickerDateOfIssue" Grid.Row="5" Grid.Column="1" SelectedDate="{Binding DateOfIssue, Mode=TwoWay}" Margin="2" ContextMenu="{DynamicResource ClearContextMenu}" DisplayDateStart="1/1/1900" DisplayDateEnd="12/31/2199" PreviewKeyUp="DateTimePicker_PreviewKeyUpDate" >
|
||||||
<DatePicker.BlackoutDates>
|
<DatePicker.BlackoutDates>
|
||||||
<CalendarDateRange Start="1/1/0001" End="12/31/1799"/>
|
<CalendarDateRange Start="1/1/0001" End="12/31/1799"/>
|
||||||
<CalendarDateRange Start="1/1/2199" End="1/1/9999"/>
|
<CalendarDateRange Start="1/1/2199" End="1/1/9999"/>
|
||||||
|
|||||||
@ -123,6 +123,12 @@ namespace ENI2.SheetDisplayControls
|
|||||||
this.shipDataGroupBox.IsEnabled = enabled;
|
this.shipDataGroupBox.IsEnabled = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int SelectedTabIndex
|
||||||
|
{
|
||||||
|
get { return this.mainTabControl.SelectedIndex; }
|
||||||
|
set { this.mainTabControl.SelectedIndex = value; }
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region event handler
|
#region event handler
|
||||||
@ -176,6 +182,12 @@ namespace ENI2.SheetDisplayControls
|
|||||||
// 5.4
|
// 5.4
|
||||||
this.RegisterComboboxIndexChange(this.comboBoxTankerHullConfig, Message.NotificationClass.PRE72H);
|
this.RegisterComboboxIndexChange(this.comboBoxTankerHullConfig, Message.NotificationClass.PRE72H);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkSimplification_Checked(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
this.textBoxPlaceOfIssue.IsEnabled = !(this.checkSimplification.IsChecked ?? false) && (checkBoxSanitaryControlExemption.IsChecked ?? false);
|
||||||
|
this.datePickerDateOfIssue.IsEnabled = !(this.checkSimplification.IsChecked ?? false) && (checkBoxSanitaryControlExemption.IsChecked ?? false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
d:DesignHeight="1150" d:DesignWidth="800">
|
d:DesignHeight="1150" d:DesignWidth="800">
|
||||||
|
|
||||||
<GroupBox Name="voyageGroupBox" Header="{x:Static p:Resources.textVoyage}">
|
<GroupBox Name="voyageGroupBox" Header="{x:Static p:Resources.textVoyage}">
|
||||||
<TabControl>
|
<TabControl x:Name="mainTabControl">
|
||||||
<TabItem Header="{x:Static p:Resources.textTab11}">
|
<TabItem Header="{x:Static p:Resources.textTab11}">
|
||||||
<ScrollViewer PreviewMouseWheel="ScrollViewer_PreviewMouseWheel">
|
<ScrollViewer PreviewMouseWheel="ScrollViewer_PreviewMouseWheel">
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|||||||
@ -199,6 +199,12 @@ namespace ENI2.SheetDisplayControls
|
|||||||
this.voyageGroupBox.IsEnabled = enabled;
|
this.voyageGroupBox.IsEnabled = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int SelectedTabIndex
|
||||||
|
{
|
||||||
|
get { return this.mainTabControl.SelectedIndex; }
|
||||||
|
set { this.mainTabControl.SelectedIndex = value; }
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region event handler
|
#region event handler
|
||||||
|
|||||||
@ -25,14 +25,14 @@ namespace bsmd.database
|
|||||||
{ }
|
{ }
|
||||||
|
|
||||||
#region Properties
|
#region Properties
|
||||||
|
|
||||||
[Validation(ValidationCode.NOT_NULL)]
|
[Validation(ValidationCode.NOT_NULL)]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? NoDPGOnBoardOnArrival { get; set; }
|
public bool? NoDPGOnBoardOnArrival { get; set; } = true;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? DPGManifestOnBoardOnArrival { get; set; }
|
public bool? DPGManifestOnBoardOnArrival { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
@ -40,7 +40,7 @@ namespace bsmd.database
|
|||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? MOUBaltic { get; set; }
|
public bool? MOUBaltic { get; set; } = false;
|
||||||
|
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? DPGClassificationIMDG { get; set; }
|
public bool? DPGClassificationIMDG { get; set; }
|
||||||
|
|||||||
@ -35,7 +35,7 @@ namespace bsmd.database
|
|||||||
|
|
||||||
public byte? Flashpoint { get; set; }
|
public byte? Flashpoint { get; set; }
|
||||||
|
|
||||||
public bool? SpecRef15_19 { get; set; }
|
public bool? SpecRef15_19 { get; set; } = false;
|
||||||
|
|
||||||
public bool? MHB { get; set; }
|
public bool? MHB { get; set; }
|
||||||
|
|
||||||
|
|||||||
@ -155,7 +155,7 @@ namespace bsmd.database
|
|||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? SpecRef15_19 { get; set; }
|
public bool? SpecRef15_19 { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[MaxLength(255)]
|
[MaxLength(255)]
|
||||||
|
|||||||
@ -114,7 +114,7 @@ namespace bsmd.database
|
|||||||
[ShowReport]
|
[ShowReport]
|
||||||
[Validation(ValidationCode.NOT_NULL)]
|
[Validation(ValidationCode.NOT_NULL)]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? MarinePollutant { get; set; }
|
public bool? MarinePollutant { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[Validation(ValidationCode.NOT_NULL)]
|
[Validation(ValidationCode.NOT_NULL)]
|
||||||
@ -130,12 +130,12 @@ namespace bsmd.database
|
|||||||
[ShowReport]
|
[ShowReport]
|
||||||
[Validation(ValidationCode.NOT_NULL)]
|
[Validation(ValidationCode.NOT_NULL)]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? LimitedQuantities { get; set; }
|
public bool? LimitedQuantities { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[Validation(ValidationCode.NOT_NULL)]
|
[Validation(ValidationCode.NOT_NULL)]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? ExceptedQuantities { get; set; }
|
public bool? ExceptedQuantities { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
@ -154,7 +154,7 @@ namespace bsmd.database
|
|||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? GeneralCargoIBC { get; set; }
|
public bool? GeneralCargoIBC { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[MaxLength(24)]
|
[MaxLength(24)]
|
||||||
|
|||||||
@ -58,7 +58,7 @@ namespace bsmd.database
|
|||||||
[ShowReport]
|
[ShowReport]
|
||||||
[Validation(ValidationCode.NOT_NULL)]
|
[Validation(ValidationCode.NOT_NULL)]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? MHB { get; set; }
|
public bool? MHB { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[MaxLength(4)]
|
[MaxLength(4)]
|
||||||
|
|||||||
@ -58,7 +58,7 @@ namespace bsmd.database
|
|||||||
[Validation(ValidationCode.NOT_NULL)]
|
[Validation(ValidationCode.NOT_NULL)]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
[DataMember]
|
[DataMember]
|
||||||
public byte? FumigatedBulkCargo { get; set; }
|
public byte? FumigatedBulkCargo { get; set; } = 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ENI-2 Edit Value für Checkbox (OMG!)
|
/// ENI-2 Edit Value für Checkbox (OMG!)
|
||||||
|
|||||||
@ -119,7 +119,7 @@ namespace bsmd.database
|
|||||||
[ReportDisplayName("In transit")]
|
[ReportDisplayName("In transit")]
|
||||||
[Validation(ValidationCode.NOT_NULL)]
|
[Validation(ValidationCode.NOT_NULL)]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? PassengerInTransit { get; set; }
|
public bool? PassengerInTransit { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[ReportDisplayName("Issuing state")]
|
[ReportDisplayName("Issuing state")]
|
||||||
|
|||||||
@ -78,11 +78,11 @@ namespace bsmd.database
|
|||||||
|
|
||||||
[LookupName("PRE72H.IsDueToInspection")]
|
[LookupName("PRE72H.IsDueToInspection")]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? IsDueToInspection { get; set; }
|
public bool? IsDueToInspection { get; set; } = false;
|
||||||
|
|
||||||
[LookupName("PRE72H.PossibleAnchorage")]
|
[LookupName("PRE72H.PossibleAnchorage")]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? PossibleAnchorage { get; set; }
|
public bool? PossibleAnchorage { get; set; } = false;
|
||||||
|
|
||||||
public override string Subtitle
|
public override string Subtitle
|
||||||
{
|
{
|
||||||
|
|||||||
@ -49,7 +49,7 @@ namespace bsmd.database
|
|||||||
[ShowReport]
|
[ShowReport]
|
||||||
[Validation2(ValidationCode.NOT_NULL)]
|
[Validation2(ValidationCode.NOT_NULL)]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? PortOfCallLast30DaysCrewMembersJoined { get; set; }
|
public bool? PortOfCallLast30DaysCrewMembersJoined { get; set; } = false;
|
||||||
|
|
||||||
public string Identifier { get; set; }
|
public string Identifier { get; set; }
|
||||||
|
|
||||||
|
|||||||
@ -77,7 +77,7 @@ namespace bsmd.database
|
|||||||
[Validation2(ValidationCode.NOT_NULL)]
|
[Validation2(ValidationCode.NOT_NULL)]
|
||||||
[LookupName("SEC.ValidISSCOnBoard")]
|
[LookupName("SEC.ValidISSCOnBoard")]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? ValidISSCOnBoard { get; set; }
|
public bool? ValidISSCOnBoard { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[LookupName("SEC.ReasonsForNoValidISSC")]
|
[LookupName("SEC.ReasonsForNoValidISSC")]
|
||||||
@ -122,7 +122,7 @@ namespace bsmd.database
|
|||||||
[Validation2(ValidationCode.NOT_NULL)]
|
[Validation2(ValidationCode.NOT_NULL)]
|
||||||
[LookupName("SEC.ApprovedSecurityPlanOnBoard")]
|
[LookupName("SEC.ApprovedSecurityPlanOnBoard")]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? ApprovedSecurityPlanOnBoard { get; set; }
|
public bool? ApprovedSecurityPlanOnBoard { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[Validation(ValidationCode.NOT_NULL)]
|
[Validation(ValidationCode.NOT_NULL)]
|
||||||
@ -148,7 +148,7 @@ namespace bsmd.database
|
|||||||
public string MatterToReport { get; set; }
|
public string MatterToReport { get; set; }
|
||||||
|
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? KielCanalPassagePlanned { get; set; }
|
public bool? KielCanalPassagePlanned { get; set; } = false;
|
||||||
|
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public DateTime? KielCanalPassagePlannedIncomming { get; set; }
|
public DateTime? KielCanalPassagePlannedIncomming { get; set; }
|
||||||
|
|||||||
@ -122,7 +122,7 @@ namespace bsmd.database
|
|||||||
[Validation2(ValidationCode.NOT_NULL)]
|
[Validation2(ValidationCode.NOT_NULL)]
|
||||||
[LookupName("WAS.ConfirmationOfCorrectness")]
|
[LookupName("WAS.ConfirmationOfCorrectness")]
|
||||||
[ENI2Validation]
|
[ENI2Validation]
|
||||||
public bool? ConfirmationOfCorrectness { get; set; }
|
public bool? ConfirmationOfCorrectness { get; set; } = false;
|
||||||
|
|
||||||
[ShowReport]
|
[ShowReport]
|
||||||
[Validation2(ValidationCode.NOT_NULL)]
|
[Validation2(ValidationCode.NOT_NULL)]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user