Umsetzung Gefahrgutseite Zwischenstand
This commit is contained in:
parent
be2b21f460
commit
83722519bd
@ -26,12 +26,12 @@
|
||||
<value>1000</value>
|
||||
</setting>
|
||||
<setting name="LockingServerAddress" serializeAs="String">
|
||||
<value>http://192.168.2.4/LockingService/LockingService.svc</value>
|
||||
<!--value>http://heupferd/bsmd.LockingService/LockingService.svc</value-->
|
||||
<!--value>http://192.168.2.4/LockingService/LockingService.svc</value-->
|
||||
<value>http://heupferd/bsmd.LockingService/LockingService.svc</value>
|
||||
</setting>
|
||||
<setting name="ConnectionString" serializeAs="String">
|
||||
<value>Data Source=192.168.2.12;Initial Catalog=nsw;Uid=dfuser;Pwd=dfpasswd;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False</value>
|
||||
<!--value>Data Source=(localdb)\Projects;Initial Catalog=nsw;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False</value-->
|
||||
<!--value>Data Source=192.168.2.12;Initial Catalog=nsw;Uid=dfuser;Pwd=dfpasswd;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False</value-->
|
||||
<value>Data Source=(localdb)\Projects;Initial Catalog=nsw;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False</value>
|
||||
</setting>
|
||||
</ENI2.Properties.Settings>
|
||||
</applicationSettings>
|
||||
|
||||
@ -120,12 +120,13 @@ namespace ENI2.Controls
|
||||
|
||||
protected void addItem(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.CreateRequested?.Invoke();
|
||||
if(!this.IsReadOnly)
|
||||
this.CreateRequested?.Invoke();
|
||||
}
|
||||
|
||||
protected void deleteItem(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if((this.SelectedItems != null) && (this.SelectedItems.Count == 1))
|
||||
if((this.SelectedItems != null) && (this.SelectedItems.Count == 1) && !this.IsReadOnly)
|
||||
{
|
||||
MessageBoxResult result = MessageBox.Show(Properties.Resources.textAreYouSure, Properties.Resources.textCaptionDeleteConfirm, MessageBoxButton.YesNo, MessageBoxImage.Question);
|
||||
if (result == MessageBoxResult.Yes)
|
||||
@ -140,7 +141,7 @@ namespace ENI2.Controls
|
||||
|
||||
protected void editItem(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if((this.SelectedItems != null) && (this.SelectedItems.Count == 1))
|
||||
if((this.SelectedItems != null) && (this.SelectedItems.Count == 1) && !this.IsReadOnly)
|
||||
{
|
||||
DatabaseEntity selectedEntity = this.SelectedItems[0] as DatabaseEntity;
|
||||
if (selectedEntity != null)
|
||||
@ -150,7 +151,7 @@ namespace ENI2.Controls
|
||||
|
||||
protected void printItem(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if ((this.SelectedItems != null) && (this.SelectedItems.Count == 1))
|
||||
if ((this.SelectedItems != null) && (this.SelectedItems.Count == 1) )
|
||||
{
|
||||
DatabaseEntity selectedEntity = this.SelectedItems[0] as DatabaseEntity;
|
||||
if (selectedEntity != null)
|
||||
@ -183,7 +184,7 @@ namespace ENI2.Controls
|
||||
if (sender != null)
|
||||
{
|
||||
DataGrid grid = sender as DataGrid;
|
||||
if ((grid != null) && (grid.SelectedItems != null) && (grid.SelectedItems.Count == 1))
|
||||
if ((grid != null) && (grid.SelectedItems != null) && (grid.SelectedItems.Count == 1) && !this.IsReadOnly)
|
||||
{
|
||||
DataGridRow dgr = grid.ItemContainerGenerator.ContainerFromItem(grid.SelectedItem) as DataGridRow;
|
||||
DatabaseEntity selectedEntity = grid.SelectedItem as DatabaseEntity;
|
||||
|
||||
@ -6,6 +6,9 @@ using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Data;
|
||||
using System.Linq;
|
||||
using bsmd.database;
|
||||
|
||||
namespace ENI2.Controls
|
||||
{
|
||||
@ -75,5 +78,38 @@ namespace ENI2.Controls
|
||||
OKClicked?.Invoke();
|
||||
}
|
||||
|
||||
#region combobox content filtering
|
||||
|
||||
protected void ComboBox_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
|
||||
{
|
||||
ComboBox cmb = sender as ComboBox;
|
||||
if (cmb == null) return;
|
||||
CollectionView itemsViewOriginal = (CollectionView)CollectionViewSource.GetDefaultView(cmb.ItemsSource);
|
||||
|
||||
itemsViewOriginal.Filter = ((o) =>
|
||||
{
|
||||
bool result = false;
|
||||
if (String.IsNullOrEmpty(cmb.Text))
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(o is System.Collections.Generic.KeyValuePair<string, string>)
|
||||
if(((System.Collections.Generic.KeyValuePair<string, string>)o).Value.StartsWith(cmb.Text, StringComparison.OrdinalIgnoreCase))
|
||||
result = true;
|
||||
if(o is string)
|
||||
if (((string)o).Contains(cmb.Text, StringComparison.OrdinalIgnoreCase)) result = true;
|
||||
}
|
||||
//System.Diagnostics.Trace.WriteLine(string.Format("{0} - {1} - {2}", o, cmb.Text, result));
|
||||
return result;
|
||||
});
|
||||
|
||||
//System.Diagnostics.Trace.WriteLine("---");
|
||||
itemsViewOriginal.Refresh();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ namespace ENI2.Controls
|
||||
// Get instance of current control from sender
|
||||
// and property value from e.NewValue
|
||||
|
||||
if (e.NewValue != null)
|
||||
if ((e.NewValue != null) && (e.NewValue.ToString().Trim() != ""))
|
||||
((LocodeControl)sender).SelectedItem = e.NewValue.ToString();//.Substring(0,5);
|
||||
}
|
||||
|
||||
|
||||
@ -9,6 +9,7 @@ using System.Windows.Controls;
|
||||
using bsmd.database;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace ENI2
|
||||
{
|
||||
@ -212,6 +213,35 @@ namespace ENI2
|
||||
|
||||
#endregion
|
||||
|
||||
#region combobox content filtering
|
||||
|
||||
protected void ComboBox_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
|
||||
{
|
||||
ComboBox cmb = sender as ComboBox;
|
||||
if (cmb == null) return;
|
||||
CollectionView itemsViewOriginal = (CollectionView)CollectionViewSource.GetDefaultView(cmb.ItemsSource);
|
||||
|
||||
itemsViewOriginal.Filter = ((o) =>
|
||||
{
|
||||
bool result = false;
|
||||
if (String.IsNullOrEmpty(cmb.Text))
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
else if(o is string)
|
||||
{
|
||||
if (((string)o).Contains(cmb.Text, StringComparison.OrdinalIgnoreCase)) result = true;
|
||||
}
|
||||
//System.Diagnostics.Trace.WriteLine(string.Format("{0} - {1} - {2}", o, cmb.Text, result));
|
||||
return result;
|
||||
});
|
||||
|
||||
//System.Diagnostics.Trace.WriteLine("---");
|
||||
itemsViewOriginal.Refresh();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
@ -109,6 +109,9 @@ namespace ENI2
|
||||
{
|
||||
// create control instance for display:
|
||||
DetailBaseControl detailControl = (DetailBaseControl)Activator.CreateInstance(mg.MessageGroupControlType);
|
||||
// Spezial-Balkon für die Wiederverwendung von HAZD / HAZA als ein Control (es tut mir leid :D)
|
||||
if (mg.MessageGroupName.Equals(Properties.Resources.textDGDeparture))
|
||||
((DangerousGoodsDetailControl)detailControl).IsDeparture = true;
|
||||
detailControl.Core = _core;
|
||||
detailControl.Messages = _messages;
|
||||
detailControl.LockedByOtherUser = this.LockedByOtherUser;
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
<xctk:DateTimePicker Grid.Column="1" Value="{Binding ATAPortOfCall, Mode=TwoWay}" Name="dateTimePickerATA" Format="Custom" FormatString="dd.MM.yyyy HH:mm" ShowButtonSpinner="False" VerticalContentAlignment="Center" Margin="2" AllowTextInput="False" ContextMenu="{DynamicResource ClearContextMenu}"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Name="tiefaGroupBox" Header="{x:Static p:Resources.textDraughtOnDeparture}" Grid.Row="1">
|
||||
<GroupBox Name="tiefaGroupBox" Header="{x:Static p:Resources.textDraughtOnArrival}" Grid.Row="1">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" />
|
||||
|
||||
@ -5,9 +5,100 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:ENI2.DetailViewControls"
|
||||
xmlns:p="clr-namespace:ENI2.Properties"
|
||||
xmlns:enictrl="clr-namespace:ENI2.Controls"
|
||||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="300">
|
||||
<Grid>
|
||||
|
||||
</Grid>
|
||||
d:DesignHeight="768" d:DesignWidth="1024">
|
||||
<GroupBox Name="groupBoxHAZ">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="10" />
|
||||
<RowDefinition Height="400" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Content="{x:Static p:Resources.textDangerousGoodsOnBoard}" Grid.Column="0" Grid.Row="0" HorizontalContentAlignment="Right" Margin="0,0,10,0"/>
|
||||
<Label Content="{x:Static p:Resources.textVesselClass}" Grid.Column="0" Grid.Row="1" HorizontalContentAlignment="Right" Margin="0,0,10,0"/>
|
||||
<Label Content="{x:Static p:Resources.textDGManifestOnBoard}" Grid.Column="2" Grid.Row="0" HorizontalContentAlignment="Right" Margin="0,0,10,0"/>
|
||||
<Label Content="{x:Static p:Resources.textMoUBalticRoRo}" Grid.Column="2" Grid.Row="1" HorizontalContentAlignment="Right" Margin="0,0,10,0"/>
|
||||
<CheckBox Name="checkBoxDangerousGoodsOnBoard" IsChecked="{Binding NoDPGOnBoardOnArrival}" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center"/>
|
||||
<CheckBox Name="checkBoxDGManifestOnBoard" IsChecked="{Binding DPGManifestOnBoardOnArrival}" Grid.Row="0" Grid.Column="3" VerticalAlignment="Center"/>
|
||||
<CheckBox Name="checkBoxMoUBaltic" IsChecked="{Binding MOUBaltic}" Grid.Row="1" Grid.Column="3" VerticalAlignment="Center"/>
|
||||
<ComboBox Name="comboBoxVesselClass" Grid.Row="1" Grid.Column="1" Margin="2" SelectedIndex="{Binding INFShipClass}"/>
|
||||
<TabControl Name="tabControlPositions" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="5">
|
||||
<TabItem Header="{x:Static p:Resources.textIMDGItems}" Name="tabIMDGItems">
|
||||
<enictrl:ENIDataGrid x:Name="dataGridIMDGItems" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||
SelectionMode="Single" AutoGenerateColumns="False" Margin="0,5,0,0">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textIdentifier}" Binding="{Binding PortOfItineraryName}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textUNNumber}" Binding="{Binding UNNumber}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPackingGroup}" Binding="{Binding PackingGroup}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textProperShippingName}" Binding="{Binding ProperShippingName}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textIMOClassDivision}" Binding="{Binding IMOClass}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textTechnicalName}" Binding="{Binding TechnicalName}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textNetExplosiveMass}" Binding="{Binding NetExplosiveMass_KGM}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textFlashpoint}" Binding="{Binding Flashpoint_CEL}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textRadioNuclideName}" Binding="{Binding Class7NuclideName}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textMaxActivity}" Binding="{Binding Class7MaxActivity_BQL}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textCategory}" Binding="{Binding Class7Category}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textTransportIndex}" Binding="{Binding Class7TransportIndex}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textCriticalSafetyIndex}" Binding="{Binding Class7CSI}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textSubsidiaryRisk}" Binding="{Binding SubsidiaryRiskText}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textControlTemperature}" Binding="{Binding ControlTemperature_CEL}" IsReadOnly="True" Width="80" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textEmergencyTemperature}" Binding="{Binding EmergencyTemperature_CEL}" IsReadOnly="True" Width="80" />
|
||||
<DataGridCheckBoxColumn Header="{x:Static p:Resources.textMarinePollutant}" Binding="{Binding Class7Category}" IsReadOnly="True" Width="80" />
|
||||
</DataGrid.Columns>
|
||||
</enictrl:ENIDataGrid>
|
||||
</TabItem>
|
||||
<TabItem Header="{x:Static p:Resources.textIBCItems}" Name="tabIBCItems">
|
||||
<enictrl:ENIDataGrid x:Name="dataGridIBCItems" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||
SelectionMode="Single" AutoGenerateColumns="False" Margin="0,5,0,0">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortname}" Binding="{Binding PortOfItineraryName, Mode=TwoWay}" IsReadOnly="True" Width="0.3*" />
|
||||
<DataGridTextColumn Binding="{Binding PortOfItineraryLocode, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textETA}" Binding="{Binding PortOfItineraryETA, Mode=TwoWay}" IsReadOnly="True" Width="0.6*" />
|
||||
</DataGrid.Columns>
|
||||
</enictrl:ENIDataGrid>
|
||||
</TabItem>
|
||||
<TabItem Header="{x:Static p:Resources.textIGCItems}" Name="tabIGCItems">
|
||||
<enictrl:ENIDataGrid x:Name="dataGridIGCItems" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||
SelectionMode="Single" AutoGenerateColumns="False" Margin="0,5,0,0">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortname}" Binding="{Binding PortOfItineraryName, Mode=TwoWay}" IsReadOnly="True" Width="0.3*" />
|
||||
<DataGridTextColumn Binding="{Binding PortOfItineraryLocode, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textETA}" Binding="{Binding PortOfItineraryETA, Mode=TwoWay}" IsReadOnly="True" Width="0.6*" />
|
||||
</DataGrid.Columns>
|
||||
</enictrl:ENIDataGrid>
|
||||
</TabItem>
|
||||
<TabItem Header="{x:Static p:Resources.textIMSBCItems}" Name="tabIMSBCItems">
|
||||
<enictrl:ENIDataGrid x:Name="dataGridIMSBCItems" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||
SelectionMode="Single" AutoGenerateColumns="False" Margin="0,5,0,0">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortname}" Binding="{Binding PortOfItineraryName, Mode=TwoWay}" IsReadOnly="True" Width="0.3*" />
|
||||
<DataGridTextColumn Binding="{Binding PortOfItineraryLocode, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textETA}" Binding="{Binding PortOfItineraryETA, Mode=TwoWay}" IsReadOnly="True" Width="0.6*" />
|
||||
</DataGrid.Columns>
|
||||
</enictrl:ENIDataGrid>
|
||||
</TabItem>
|
||||
<TabItem Header="{x:Static p:Resources.textMARPOLItems}" Name="tabMarpolItems">
|
||||
<enictrl:ENIDataGrid x:Name="dataGridMARPOLItems" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||
SelectionMode="Single" AutoGenerateColumns="False" Margin="0,5,0,0">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortname}" Binding="{Binding PortOfItineraryName, Mode=TwoWay}" IsReadOnly="True" Width="0.3*" />
|
||||
<DataGridTextColumn Binding="{Binding PortOfItineraryLocode, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textETA}" Binding="{Binding PortOfItineraryETA, Mode=TwoWay}" IsReadOnly="True" Width="0.6*" />
|
||||
</DataGrid.Columns>
|
||||
</enictrl:ENIDataGrid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</src:DetailBaseControl>
|
||||
|
||||
@ -2,20 +2,10 @@
|
||||
// Description: Für Arrival / Departure
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
using bsmd.database;
|
||||
using ENI2.EditControls;
|
||||
|
||||
namespace ENI2.DetailViewControls
|
||||
{
|
||||
@ -24,9 +14,453 @@ namespace ENI2.DetailViewControls
|
||||
/// </summary>
|
||||
public partial class DangerousGoodsDetailControl : DetailBaseControl
|
||||
{
|
||||
|
||||
private Message _hazMessage;
|
||||
private HAZ haz;
|
||||
|
||||
public DangerousGoodsDetailControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Loaded += DangerousGoodsDetailControl_Loaded;
|
||||
}
|
||||
|
||||
private void DangerousGoodsDetailControl_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.RegisterCheckboxChange(this.checkBoxDangerousGoodsOnBoard, this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
this.RegisterCheckboxChange(this.checkBoxDGManifestOnBoard, this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
this.RegisterCheckboxChange(this.checkBoxMoUBaltic, this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
this.RegisterComboboxIndexChange(this.comboBoxVesselClass, this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
|
||||
public bool IsDeparture { get; set; }
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
foreach (Message aMessage in this.Messages)
|
||||
{
|
||||
if(IsDeparture)
|
||||
if (aMessage.MessageNotificationClass == Message.NotificationClass.HAZD) { this._hazMessage = aMessage; this.ControlMessages.Add(aMessage); }
|
||||
else
|
||||
if (aMessage.MessageNotificationClass == Message.NotificationClass.HAZA) { this._hazMessage = aMessage; this.ControlMessages.Add(aMessage); }
|
||||
}
|
||||
|
||||
#region HAZ
|
||||
|
||||
if (this._hazMessage == null)
|
||||
{
|
||||
this._hazMessage = this.Core.CreateMessage(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
this.Messages.Add(this._hazMessage);
|
||||
}
|
||||
|
||||
HAZ haz = null;
|
||||
if (this._hazMessage.Elements.Count > 0)
|
||||
haz = this._hazMessage.Elements[0] as HAZ;
|
||||
if (haz == null)
|
||||
{
|
||||
haz = new HAZ();
|
||||
haz.MessageCore = this.Core;
|
||||
haz.MessageHeader = this._hazMessage;
|
||||
_hazMessage.Elements.Add(haz);
|
||||
}
|
||||
|
||||
this.haz = haz;
|
||||
this.groupBoxHAZ.DataContext = haz;
|
||||
|
||||
this.dataGridIMDGItems.Initialize();
|
||||
this.dataGridIMDGItems.ItemsSource = this.haz.IMDGPositions;
|
||||
this.dataGridIMDGItems.CreateRequested += DataGridIMDGItems_CreateRequested;
|
||||
this.dataGridIMDGItems.AddingNewItem += DataGridIMDGItems_AddingNewItem;
|
||||
this.dataGridIMDGItems.EditRequested += DataGridIMDGItems_EditRequested;
|
||||
this.dataGridIMDGItems.DeleteRequested += DataGridIMDGItems_DeleteRequested;
|
||||
|
||||
this.dataGridIBCItems.Initialize();
|
||||
this.dataGridIBCItems.ItemsSource = this.haz.IBCPositions;
|
||||
this.dataGridIBCItems.CreateRequested += DataGridIBCItems_CreateRequested;
|
||||
this.dataGridIBCItems.AddingNewItem += DataGridIBCItems_AddingNewItem;
|
||||
this.dataGridIBCItems.EditRequested += DataGridIBCItems_EditRequested;
|
||||
this.dataGridIBCItems.DeleteRequested += DataGridIBCItems_DeleteRequested;
|
||||
|
||||
this.dataGridIGCItems.Initialize();
|
||||
this.dataGridIGCItems.ItemsSource = this.haz.IGCPositions;
|
||||
this.dataGridIGCItems.CreateRequested += DataGridIGCItems_CreateRequested;
|
||||
this.dataGridIGCItems.AddingNewItem += DataGridIGCItems_AddingNewItem;
|
||||
this.dataGridIGCItems.EditRequested += DataGridIGCItems_EditRequested;
|
||||
this.dataGridIGCItems.DeleteRequested += DataGridIGCItems_DeleteRequested;
|
||||
|
||||
this.dataGridIMSBCItems.Initialize();
|
||||
this.dataGridIMSBCItems.ItemsSource = this.haz.IMSBCPositions;
|
||||
this.dataGridIMSBCItems.CreateRequested += DataGridIMSBCItems_CreateRequested;
|
||||
this.dataGridIMSBCItems.AddingNewItem += DataGridIMSBCItems_AddingNewItem;
|
||||
this.dataGridIMSBCItems.EditRequested += DataGridIMSBCItems_EditRequested;
|
||||
this.dataGridIMSBCItems.DeleteRequested += DataGridIMSBCItems_DeleteRequested;
|
||||
|
||||
this.dataGridMARPOLItems.Initialize();
|
||||
this.dataGridMARPOLItems.ItemsSource = this.haz.MARPOLPositions;
|
||||
this.dataGridMARPOLItems.CreateRequested += DataGridMARPOLItems_CreateRequested;
|
||||
this.dataGridMARPOLItems.AddingNewItem += DataGridMARPOLItems_AddingNewItem;
|
||||
this.dataGridMARPOLItems.EditRequested += DataGridMARPOLItems_EditRequested;
|
||||
this.dataGridMARPOLItems.DeleteRequested += DataGridMARPOLItems_DeleteRequested;
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#region MARPOL datagrid handlers
|
||||
|
||||
private void DataGridMARPOLItems_DeleteRequested(DatabaseEntity obj)
|
||||
{
|
||||
MARPOL_Annex_I_Position marpol = obj as MARPOL_Annex_I_Position;
|
||||
if (marpol != null)
|
||||
{
|
||||
// are you sure dialog is in base class
|
||||
this.haz.MARPOLPositions.Remove(marpol);
|
||||
this.dataGridMARPOLItems.Items.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridMARPOLItems_EditRequested(DatabaseEntity obj)
|
||||
{
|
||||
MARPOL_Annex_I_Position marpol = obj as MARPOL_Annex_I_Position;
|
||||
if (marpol != null)
|
||||
{
|
||||
EditMarpolDialog eld = new EditMarpolDialog();
|
||||
eld.MARPOL = marpol;
|
||||
|
||||
eld.AddClicked += () =>
|
||||
{
|
||||
eld.CopyValuesToEntity();
|
||||
haz.MARPOLPositions.Add(eld.MARPOL);
|
||||
this.dataGridMARPOLItems.Items.Refresh();
|
||||
eld.MARPOL = new MARPOL_Annex_I_Position();
|
||||
eld.MARPOL.HAZ = this.haz;
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (eld.ShowDialog() ?? false)
|
||||
{
|
||||
this.dataGridMARPOLItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridMARPOLItems_AddingNewItem(object sender, System.Windows.Controls.AddingNewItemEventArgs e)
|
||||
{
|
||||
this.DataGridMARPOLItems_CreateRequested();
|
||||
}
|
||||
|
||||
private void DataGridMARPOLItems_CreateRequested()
|
||||
{
|
||||
MARPOL_Annex_I_Position marpol = new MARPOL_Annex_I_Position();
|
||||
EditMarpolDialog ebd = new EditMarpolDialog();
|
||||
ebd.MARPOL = marpol;
|
||||
|
||||
ebd.AddClicked += () =>
|
||||
{
|
||||
ebd.CopyValuesToEntity();
|
||||
this.haz.MARPOLPositions.Add(ebd.MARPOL);
|
||||
ebd.MARPOL.HAZ = this.haz;
|
||||
this.dataGridMARPOLItems.Items.Refresh();
|
||||
ebd.MARPOL = new MARPOL_Annex_I_Position();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (ebd.ShowDialog() ?? false)
|
||||
{
|
||||
marpol.HAZ = haz;
|
||||
haz.MARPOLPositions.Add(marpol);
|
||||
this.dataGridMARPOLItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IMSBC datagrid handlers
|
||||
|
||||
private void DataGridIMSBCItems_DeleteRequested(DatabaseEntity obj)
|
||||
{
|
||||
IMSBCPosition imsbc = obj as IMSBCPosition;
|
||||
if (imsbc != null)
|
||||
{
|
||||
// are you sure dialog is in base class
|
||||
this.haz.IMSBCPositions.Remove(imsbc);
|
||||
this.dataGridIMSBCItems.Items.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridIMSBCItems_EditRequested(DatabaseEntity obj)
|
||||
{
|
||||
IMSBCPosition imsbc = obj as IMSBCPosition;
|
||||
if (imsbc != null)
|
||||
{
|
||||
EditIMSBCDialog eld = new EditIMSBCDialog();
|
||||
eld.IMSBC = imsbc;
|
||||
|
||||
eld.AddClicked += () =>
|
||||
{
|
||||
eld.CopyValuesToEntity();
|
||||
haz.IMSBCPositions.Add(eld.IMSBC);
|
||||
this.dataGridIMSBCItems.Items.Refresh();
|
||||
eld.IMSBC = new IMSBCPosition();
|
||||
eld.IMSBC.HAZ = this.haz;
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (eld.ShowDialog() ?? false)
|
||||
{
|
||||
this.dataGridIMSBCItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridIMSBCItems_AddingNewItem(object sender, System.Windows.Controls.AddingNewItemEventArgs e)
|
||||
{
|
||||
this.DataGridIMSBCItems_CreateRequested();
|
||||
}
|
||||
|
||||
private void DataGridIMSBCItems_CreateRequested()
|
||||
{
|
||||
IMSBCPosition imsbc = new IMSBCPosition();
|
||||
EditIMSBCDialog ebd = new EditIMSBCDialog();
|
||||
ebd.IMSBC = imsbc;
|
||||
|
||||
ebd.AddClicked += () =>
|
||||
{
|
||||
ebd.CopyValuesToEntity();
|
||||
this.haz.IMSBCPositions.Add(ebd.IMSBC);
|
||||
ebd.IMSBC.HAZ = this.haz;
|
||||
this.dataGridIMSBCItems.Items.Refresh();
|
||||
ebd.IMSBC = new IMSBCPosition();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (ebd.ShowDialog() ?? false)
|
||||
{
|
||||
imsbc.HAZ = haz;
|
||||
haz.IMSBCPositions.Add(imsbc);
|
||||
this.dataGridIMSBCItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IGC datagrid handlers
|
||||
|
||||
private void DataGridIGCItems_DeleteRequested(DatabaseEntity obj)
|
||||
{
|
||||
IGCPosition igc = obj as IGCPosition;
|
||||
if (igc != null)
|
||||
{
|
||||
// are you sure dialog is in base class
|
||||
this.haz.IGCPositions.Remove(igc);
|
||||
this.dataGridIGCItems.Items.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridIGCItems_EditRequested(DatabaseEntity obj)
|
||||
{
|
||||
IGCPosition igc = obj as IGCPosition;
|
||||
if (igc != null)
|
||||
{
|
||||
EditIGCDialog eld = new EditIGCDialog();
|
||||
eld.IGC = igc;
|
||||
|
||||
eld.AddClicked += () =>
|
||||
{
|
||||
eld.CopyValuesToEntity();
|
||||
haz.IGCPositions.Add(eld.IGC);
|
||||
this.dataGridIGCItems.Items.Refresh();
|
||||
eld.IGC = new IGCPosition();
|
||||
eld.IGC.HAZ = this.haz;
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (eld.ShowDialog() ?? false)
|
||||
{
|
||||
this.dataGridIGCItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridIGCItems_AddingNewItem(object sender, System.Windows.Controls.AddingNewItemEventArgs e)
|
||||
{
|
||||
this.DataGridIGCItems_CreateRequested();
|
||||
}
|
||||
|
||||
private void DataGridIGCItems_CreateRequested()
|
||||
{
|
||||
IGCPosition igc = new IGCPosition();
|
||||
EditIGCDialog ebd = new EditIGCDialog();
|
||||
ebd.IGC = igc;
|
||||
|
||||
ebd.AddClicked += () =>
|
||||
{
|
||||
ebd.CopyValuesToEntity();
|
||||
this.haz.IGCPositions.Add(ebd.IGC);
|
||||
ebd.IGC.HAZ = this.haz;
|
||||
this.dataGridIGCItems.Items.Refresh();
|
||||
ebd.IGC = new IGCPosition();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (ebd.ShowDialog() ?? false)
|
||||
{
|
||||
igc.HAZ = haz;
|
||||
haz.IGCPositions.Add(igc);
|
||||
this.dataGridIGCItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IBC datagrid handlers
|
||||
|
||||
private void DataGridIBCItems_DeleteRequested(DatabaseEntity obj)
|
||||
{
|
||||
IBCPosition ibc = obj as IBCPosition;
|
||||
if (ibc != null)
|
||||
{
|
||||
// are you sure dialog is in base class
|
||||
this.haz.IBCPositions.Remove(ibc);
|
||||
this.dataGridIBCItems.Items.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridIBCItems_EditRequested(DatabaseEntity obj)
|
||||
{
|
||||
IBCPosition ibc = obj as IBCPosition;
|
||||
if (ibc != null)
|
||||
{
|
||||
EditIBCDialog eld = new EditIBCDialog();
|
||||
eld.IBC = ibc;
|
||||
|
||||
eld.AddClicked += () =>
|
||||
{
|
||||
eld.CopyValuesToEntity();
|
||||
haz.IBCPositions.Add(eld.IBC);
|
||||
this.dataGridIBCItems.Items.Refresh();
|
||||
eld.IBC = new IBCPosition();
|
||||
eld.IBC.HAZ = this.haz;
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (eld.ShowDialog() ?? false)
|
||||
{
|
||||
this.dataGridIBCItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridIBCItems_AddingNewItem(object sender, System.Windows.Controls.AddingNewItemEventArgs e)
|
||||
{
|
||||
this.DataGridIBCItems_CreateRequested();
|
||||
}
|
||||
|
||||
private void DataGridIBCItems_CreateRequested()
|
||||
{
|
||||
IBCPosition ibc = new IBCPosition();
|
||||
EditIBCDialog ebd = new EditIBCDialog();
|
||||
ebd.IBC = ibc;
|
||||
|
||||
ebd.AddClicked += () =>
|
||||
{
|
||||
ebd.CopyValuesToEntity();
|
||||
this.haz.IBCPositions.Add(ebd.IBC);
|
||||
ebd.IBC.HAZ = this.haz;
|
||||
this.dataGridIBCItems.Items.Refresh();
|
||||
ebd.IBC = new IBCPosition();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (ebd.ShowDialog() ?? false)
|
||||
{
|
||||
ibc.HAZ = haz;
|
||||
haz.IBCPositions.Add(ibc);
|
||||
this.dataGridIBCItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IMDG datagrid handlers
|
||||
|
||||
private void DataGridIMDGItems_DeleteRequested(DatabaseEntity obj)
|
||||
{
|
||||
IMDGPosition imdg = obj as IMDGPosition;
|
||||
if (imdg != null)
|
||||
{
|
||||
// are you sure dialog is in base class
|
||||
this.haz.IMDGPositions.Remove(imdg);
|
||||
this.dataGridIMDGItems.Items.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridIMDGItems_EditRequested(DatabaseEntity obj)
|
||||
{
|
||||
IMDGPosition imdg = obj as IMDGPosition;
|
||||
if (imdg != null)
|
||||
{
|
||||
EditIMDGDialog eld = new EditIMDGDialog();
|
||||
eld.IMDG = imdg;
|
||||
|
||||
eld.AddClicked += () =>
|
||||
{
|
||||
eld.CopyValuesToEntity();
|
||||
haz.IMDGPositions.Add(eld.IMDG);
|
||||
this.dataGridIMDGItems.Items.Refresh();
|
||||
eld.IMDG = new IMDGPosition();
|
||||
eld.IMDG.HAZ = this.haz;
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (eld.ShowDialog() ?? false)
|
||||
{
|
||||
this.dataGridIMDGItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DataGridIMDGItems_AddingNewItem(object sender, System.Windows.Controls.AddingNewItemEventArgs e)
|
||||
{
|
||||
this.DataGridIMDGItems_CreateRequested();
|
||||
}
|
||||
|
||||
private void DataGridIMDGItems_CreateRequested()
|
||||
{
|
||||
IMDGPosition imdg = new IMDGPosition();
|
||||
EditIMDGDialog ebd = new EditIMDGDialog();
|
||||
ebd.IMDG = imdg;
|
||||
|
||||
ebd.AddClicked += () =>
|
||||
{
|
||||
ebd.CopyValuesToEntity();
|
||||
this.haz.IMDGPositions.Add(ebd.IMDG);
|
||||
ebd.IMDG.HAZ = this.haz;
|
||||
this.dataGridIMDGItems.Items.Refresh();
|
||||
ebd.IMDG = new IMDGPosition();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
};
|
||||
|
||||
if (ebd.ShowDialog() ?? false)
|
||||
{
|
||||
imdg.HAZ = haz;
|
||||
haz.IMDGPositions.Add(imdg);
|
||||
this.dataGridIMDGItems.Items.Refresh();
|
||||
this.SublistElementChanged(this.IsDeparture ? Message.NotificationClass.HAZD : Message.NotificationClass.HAZA);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="600" d:DesignWidth="1024">
|
||||
<TabControl Margin="10" Name="mainFrame">
|
||||
<TabItem Header="{x:Static p:Resources.textSecurityNotification}" Name="tabSecurityNotification">
|
||||
<TabItem Header="{x:Static p:Resources.textMaritimeHealthDeclaration}" Name="tabMaritimeHealthDeclaration">
|
||||
<GroupBox Name="portCallGroupBox" Header="{x:Static p:Resources.textSEC}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
@ -96,7 +96,7 @@
|
||||
SelectionMode="Single" AutoGenerateColumns="False" Margin="0,5,0,0">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortCall}" Binding="{Binding PortOfCallLast30DaysLocode, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textATDPortOfCall}" Binding="{Binding PortOfCallLast30DaysDateOfDeparture, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textATDPortOfCall}" Binding="{Binding PortOfCallLast30DaysDateOfDeparture, StringFormat=d}" IsReadOnly="True" Width="0.1*" />
|
||||
|
||||
<DataGridTemplateColumn IsReadOnly="True" Width="0.1*">
|
||||
<DataGridTemplateColumn.HeaderTemplate>
|
||||
@ -106,7 +106,7 @@
|
||||
</DataGridTemplateColumn.HeaderTemplate>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock TextAlignment="Center" Text="{Binding PortOfCallLast30DaysCrewMembersJoined}" />
|
||||
<CheckBox IsChecked="{Binding PortOfCallLast30DaysCrewMembersJoined}" IsEnabled="False" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
@ -117,16 +117,17 @@
|
||||
<TabItem Header="{x:Static p:Resources.textVisitsInfectedAreas}" Name="tabInfectedAreas">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="3*" />
|
||||
<ColumnDefinition Width="30*" />
|
||||
<ColumnDefinition Width="95*"/>
|
||||
<ColumnDefinition Width="374*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="28"/>
|
||||
<RowDefinition Height="200"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textShipVisitedInfectedArea}" Name="labelHasShipVisited" Margin="0,0,10,0"/>
|
||||
<CheckBox Name="checkBoxHasShipVisited" IsChecked="{Binding MDHSimplification}" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center"/>
|
||||
<enictrl:ENIDataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" x:Name="dataGridInfectedAreas" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textShipVisitedInfectedArea}" Name="labelHasShipVisited" Margin="0,0,10,0" Grid.ColumnSpan="2"/>
|
||||
<CheckBox Name="checkBoxHasShipVisited" IsChecked="{Binding MDHSimplification}" Grid.Row="0" Grid.Column="2" VerticalAlignment="Center" Margin="0,7"/>
|
||||
<enictrl:ENIDataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" x:Name="dataGridInfectedAreas" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||
SelectionMode="Single" AutoGenerateColumns="False" Margin="0,5,0,0">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textInfectedAreaPort}" Binding="{Binding InfectedAreaPort, Mode=TwoWay}" IsReadOnly="True" Width="0.5*" />
|
||||
|
||||
@ -64,6 +64,9 @@ namespace ENI2.DetailViewControls
|
||||
this.dataGridPortOfCallLast30Days.CreateRequested += DataGridPortOfCallLast30Days_CreateRequested;
|
||||
|
||||
this.dataGridInfectedAreas.Initialize();
|
||||
this.dataGridInfectedAreas.IsReadOnly = !(mdh.InfectedAreaVisited ?? false);
|
||||
this.checkBoxHasShipVisited.Checked += CheckBoxHasShipVisited_Checked;
|
||||
this.checkBoxHasShipVisited.Unchecked += CheckBoxHasShipVisited_Checked;
|
||||
this.dataGridInfectedAreas.ItemsSource = mdh.InfectedAreas;
|
||||
this.dataGridInfectedAreas.AddingNewItem += DataGridInfectedAreas_AddingNewItem;
|
||||
this.dataGridInfectedAreas.EditRequested += DataGridInfectedAreas_EditRequested;
|
||||
@ -71,6 +74,9 @@ namespace ENI2.DetailViewControls
|
||||
this.dataGridInfectedAreas.CreateRequested += DataGridInfectedAreas_CreateRequested;
|
||||
|
||||
this.dataGridSanitaryMeasures.Initialize();
|
||||
this.dataGridSanitaryMeasures.IsReadOnly = !(mdh.SanitaryMeasuresApplied ?? false);
|
||||
this.checkBoxSanitaryMeasuresApplied.Checked += CheckBoxSanitaryMeasuresApplied_Checked;
|
||||
this.checkBoxSanitaryMeasuresApplied.Unchecked += CheckBoxSanitaryMeasuresApplied_Checked;
|
||||
this.dataGridSanitaryMeasures.ItemsSource = mdh.SanitaryMeasuresDetails;
|
||||
this.dataGridSanitaryMeasures.AddingNewItem += DataGridSanitaryMeasures_AddingNewItem;
|
||||
this.dataGridSanitaryMeasures.EditRequested += DataGridSanitaryMeasures_EditRequested;
|
||||
@ -81,6 +87,16 @@ namespace ENI2.DetailViewControls
|
||||
|
||||
}
|
||||
|
||||
private void CheckBoxHasShipVisited_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.dataGridInfectedAreas.IsReadOnly = !(this.checkBoxHasShipVisited.IsChecked ?? false);
|
||||
}
|
||||
|
||||
private void CheckBoxSanitaryMeasuresApplied_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.dataGridSanitaryMeasures.IsReadOnly = !(this.checkBoxSanitaryMeasuresApplied.IsChecked ?? false);
|
||||
}
|
||||
|
||||
private void MaritimeHealthDeclarationDetailControl_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="38" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
@ -49,13 +49,13 @@
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textCurrentShipSecLevel}" Name="label_CurrentShipSecLevel" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="5" Grid.Column="0" Content="{x:Static p:Resources.textSimplificationAvailable}" Name="label_SimplificationAvailable" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="6" Grid.Column="0" Content="{x:Static p:Resources.textPortWhereSimplWasGiven}" Name="label_PortWhereSimplWasGiven" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="7" Grid.Column="0" Content="{x:Static p:Resources.textChiefSecurityOfficer}" Name="label_ChiefSecurityOfficer" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" VerticalContentAlignment="Bottom" Grid.Row="7" Grid.Column="0" Content="{x:Static p:Resources.textChiefSecurityOfficer}" Name="label_ChiefSecurityOfficer" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="8" Grid.Column="0" Content="{x:Static p:Resources.textFirstName}" Name="label_FirstName" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="8" Grid.Column="2" Content="{x:Static p:Resources.textLastName}" Name="label_LastName" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="9" Grid.Column="0" Content="{x:Static p:Resources.textPhone}" Name="label_Phone" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="10" Grid.Column="0" Content="{x:Static p:Resources.textEMail}" Name="label_EMail" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="9" Grid.Column="2" Content="{x:Static p:Resources.textFax}" Name="label_Fax" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="12" Grid.Column="0" Content="{x:Static p:Resources.textISSC}" Name="label_ISSC" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" VerticalContentAlignment="Bottom" Grid.Row="12" Grid.Column="0" Content="{x:Static p:Resources.textISSC}" Name="label_ISSC" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="13" Grid.Column="0" Content="{x:Static p:Resources.textValidISSCOnBoard}" Name="label_ValidISSCOnBoard" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="14" Grid.Column="0" Content="{x:Static p:Resources.textISSCType}" Name="label_ISSCType" Margin="0,0,10,0"/>
|
||||
<Label HorizontalContentAlignment="Right" Grid.Row="15" Grid.Column="0" Content="{x:Static p:Resources.textISSCExpirationDate}" Name="label_ISSCExpirationDate" Margin="0,0,10,0"/>
|
||||
@ -80,13 +80,13 @@
|
||||
<TextBox Name="textBoxISSCIssuerName" Grid.Row="15" Grid.Column="3" MaxLength="100" Text="{Binding ISSCIssuerName}" Margin="2" />
|
||||
<TextBox Name="textBoxPortFacilityOfArrival" Grid.Row="18" Grid.Column="1" MaxLength="100" Text="{Binding PortFacilityOfArrival}" Margin="2" />
|
||||
|
||||
<xctk:DateTimePicker Name="dateTimePickerKielCanalPassagePlannedIncomming" Grid.Row="1" Grid.Column="1" Value="{Binding KielCanalPassagePlannedIncomming}" Margin="2" />
|
||||
<xctk:DateTimePicker Name="dateTimePickerKielCanalPassagePlannedOutgoing" Grid.Row="1" Grid.Column="3" Value="{Binding KielCanalPassagePlannedOutgoing}" Margin="2" />
|
||||
<xctk:DateTimePicker Name="dateTimePickerKielCanalPassagePlannedIncomming" Grid.Row="1" Grid.Column="1" Value="{Binding KielCanalPassagePlannedIncomming}" Margin="2" Format="Custom" FormatString="dd.MM.yyyy HH:mm" ShowButtonSpinner="False" VerticalContentAlignment="Center" ContextMenu="{DynamicResource ClearContextMenu}"/>
|
||||
<xctk:DateTimePicker Name="dateTimePickerKielCanalPassagePlannedOutgoing" Grid.Row="1" Grid.Column="3" Value="{Binding KielCanalPassagePlannedOutgoing}" Margin="2" Format="Custom" FormatString="dd.MM.yyyy HH:mm" ShowButtonSpinner="False" VerticalContentAlignment="Center" ContextMenu="{DynamicResource ClearContextMenu}"/>
|
||||
|
||||
<ComboBox Name="comboBoxCurrentShipSecurityLevel" Grid.Row="3" Grid.Column="1" SelectedIndex="{Binding CurrentShipSecurityLevel}" Margin="2" />
|
||||
<ComboBox Name="comboBoxISSCType" Grid.Row="14" Grid.Column="1" SelectedIndex="{Binding ISSCType}" Margin="2" />
|
||||
<ComboBox Name="comboBoxISSCIssuerType" Grid.Row="14" Grid.Column="3" SelectedIndex="{Binding ISSCIssuerType}" Margin="2" />
|
||||
<ComboBox Name="comboBoxGeneralDescriptionOfCargo" Grid.Row="18" Grid.Column="3" SelectedIndex="{Binding GeneralDescriptionOfCargo}" Margin="2" />
|
||||
<ComboBox Name="comboBoxCurrentShipSecurityLevel" Grid.Row="3" Grid.Column="1" SelectedValue="{Binding CurrentShipSecurityLevel}" Margin="2" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<ComboBox Name="comboBoxISSCType" Grid.Row="14" Grid.Column="1" SelectedIndex="{Binding ISSCType}" Margin="2" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False"/>
|
||||
<ComboBox Name="comboBoxISSCIssuerType" Grid.Row="14" Grid.Column="3" SelectedIndex="{Binding ISSCIssuerType}" Margin="2" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False"/>
|
||||
<ComboBox Name="comboBoxGeneralDescriptionOfCargo" Grid.Row="18" Grid.Column="3" IsEditable="True" StaysOpenOnEdit="True" SelectedIndex="{Binding GeneralDescriptionOfCargo}" Margin="2" IsTextSearchEnabled="False"/>
|
||||
|
||||
<DatePicker Name="datePickerISSCDateOfExpiration" Grid.Row="15" Grid.Column="1" SelectedDate="{Binding ISSCDateOfExpiration}" Margin="2" />
|
||||
|
||||
@ -102,8 +102,8 @@
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortname}" Binding="{Binding PortFacilityPortName, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortLocode}" Binding="{Binding PortFacilityPortLoCode, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textPortCountry}" Binding="{Binding PortFacilityPortCountry}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="ATA" Binding="{Binding PortFacilityDateOfArrival, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="ATD" Binding="{Binding PortFacilityDateOfDeparture, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="ATA" Binding="{Binding PortFacilityDateOfArrival, StringFormat=d}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="ATD" Binding="{Binding PortFacilityDateOfDeparture, StringFormat=d}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTemplateColumn IsReadOnly="True" Width="0.1*">
|
||||
<DataGridTemplateColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
|
||||
@ -7,6 +7,8 @@ using System.Windows.Controls;
|
||||
using ENI2.EditControls;
|
||||
|
||||
using bsmd.database;
|
||||
using System.Windows.Data;
|
||||
using System;
|
||||
|
||||
namespace ENI2.DetailViewControls
|
||||
{
|
||||
@ -67,9 +69,13 @@ namespace ENI2.DetailViewControls
|
||||
this._sec = sec;
|
||||
|
||||
this.comboBoxCurrentShipSecurityLevel.ItemsSource = Util.GlobalStructures.ShipSecurityLevels;
|
||||
this.comboBoxCurrentShipSecurityLevel.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxISSCType.ItemsSource = isscTypes;
|
||||
this.comboBoxISSCType.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxISSCIssuerType.ItemsSource = isscIssuerTypes;
|
||||
this.comboBoxISSCIssuerType.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxGeneralDescriptionOfCargo.ItemsSource = cargoDescriptions;
|
||||
this.comboBoxGeneralDescriptionOfCargo.KeyUp += ComboBox_KeyUp;
|
||||
|
||||
this.dataGridLast10PortFacilities.Initialize();
|
||||
this.dataGridLast10PortFacilities.ItemsSource = sec.LastTenPortFacilitesCalled;
|
||||
@ -88,7 +94,7 @@ namespace ENI2.DetailViewControls
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#region data grid ship 2 ship activities
|
||||
|
||||
|
||||
@ -50,16 +50,16 @@
|
||||
|
||||
<TextBox Name="textBoxVesselName" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2" Text="{Binding ShipName}" Margin="2" VerticalAlignment="Center"/>
|
||||
<TextBox Name="textBoxCallsign" Grid.Column="4" Grid.Row="1" Text="{Binding CallSign}" Margin="2" VerticalAlignment="Center" />
|
||||
<ComboBox Name="comboBoxVesselType" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" SelectedValue="{Binding ShipType}" Margin="2" SelectedValuePath="Key" DisplayMemberPath="Value" />
|
||||
<ComboBox Name="comboBoxTransportMode" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="2" Margin="2" SelectedValue="{Binding TransportMode}" SelectedValuePath="Key" DisplayMemberPath="Value" />
|
||||
<ComboBox Name="comboBoxFlag" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" Margin="2" SelectedValue="{Binding Flag}" SelectedValuePath="Key" DisplayMemberPath="Value" />
|
||||
<xctk:IntegerUpDown Name="integerUpDownGrossTonnage" Grid.Column="1" Grid.Row="4" Margin="2" Value="{Binding GrossTonnage}" />
|
||||
<ComboBox Name="comboBoxVesselType" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" SelectedValue="{Binding ShipType}" Margin="2" SelectedValuePath="Key" DisplayMemberPath="Value" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<ComboBox Name="comboBoxTransportMode" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="2" Margin="2" SelectedValue="{Binding TransportMode}" SelectedValuePath="Key" DisplayMemberPath="Value" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<ComboBox Name="comboBoxFlag" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" Margin="2" SelectedValue="{Binding Flag}" SelectedValuePath="Key" DisplayMemberPath="Value" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<xctk:IntegerUpDown Name="integerUpDownGrossTonnage" Grid.Column="1" Grid.Row="4" Margin="2" Value="{Binding GrossTonnage}" ShowButtonSpinner="False"/>
|
||||
<Label Content="t" Grid.Column="2" Grid.Row="4" />
|
||||
<xctk:DoubleUpDown Name="doubleUpDownLength" Grid.Column="1" Grid.Row="5" Margin="2" Value="{Binding LengthOverall_MTR}" />
|
||||
<xctk:DoubleUpDown Name="doubleUpDownLength" Grid.Column="1" Grid.Row="5" Margin="2" Value="{Binding LengthOverall_MTR}" ShowButtonSpinner="False" />
|
||||
<Label Content="m" Grid.Column="2" Grid.Row="5" />
|
||||
<TextBox Name="textBoxMMSI" Grid.Column="1" Grid.Row="6" Margin="2" Text="{Binding MMSINumber}" VerticalAlignment="Center"/>
|
||||
<enictrl:LocodeControl x:Name="locodePortOfRegistry" Grid.Column="4" Grid.Row="3" Grid.ColumnSpan="2" LocodeValue="{Binding PortOfRegistry}" />
|
||||
<xctk:DoubleUpDown Name="doubleUpDownBeam" Grid.Column="4" Grid.Row="5" Margin="2" Value="{Binding Beam_MTR}" />
|
||||
<xctk:DoubleUpDown Name="doubleUpDownBeam" Grid.Column="4" Grid.Row="5" Margin="2" Value="{Binding Beam_MTR}" ShowButtonSpinner="False" />
|
||||
<Label Content="m" Grid.Column="5" Grid.Row="5" />
|
||||
<TextBox Name="textBoxInmarsatCallNumber" Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="6" VerticalAlignment="Center" Margin="2" Text="{Binding InmarsatCallNumber}" />
|
||||
|
||||
|
||||
@ -74,8 +74,11 @@ namespace ENI2.DetailViewControls
|
||||
}
|
||||
|
||||
this.comboBoxFlag.ItemsSource = CREW.NationalityDict;
|
||||
this.comboBoxFlag.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxVesselType.ItemsSource = STAT.VesselTypeDict;
|
||||
this.comboBoxVesselType.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxTransportMode.ItemsSource = STAT.TransportModeDict;
|
||||
this.comboBoxTransportMode.KeyUp += ComboBox_KeyUp;
|
||||
this.shipDataGroupBox.DataContext = stat;
|
||||
|
||||
#endregion
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
<enictrl:ENIDataGrid x:Name="dataGridWaste" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||
SelectionMode="Single" AutoGenerateColumns="False" Margin="0,5,0,0" Grid.Row="1">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textCode}" Binding="{Binding WasteType}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textCode}" Binding="{Binding WasteTypeDisplayGrid}" IsReadOnly="True" Width="0.2*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textDescription}" Binding="{Binding WasteDescription}" IsReadOnly="True" Width="0.15*" />
|
||||
<DataGridTemplateColumn IsReadOnly="True" Width="0.1*">
|
||||
<DataGridTemplateColumn.HeaderTemplate>
|
||||
|
||||
@ -221,6 +221,18 @@
|
||||
<Compile Include="EditControls\EditCREWDialog.xaml.cs">
|
||||
<DependentUpon>EditCREWDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EditControls\EditIBCDialog.xaml.cs">
|
||||
<DependentUpon>EditIBCDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EditControls\EditIGCDialog.xaml.cs">
|
||||
<DependentUpon>EditIGCDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EditControls\EditIMDGDialog.xaml.cs">
|
||||
<DependentUpon>EditIMDGDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EditControls\EditIMSBCDialog.xaml.cs">
|
||||
<DependentUpon>EditIMSBCDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EditControls\EditInfectedAreaDialog.xaml.cs">
|
||||
<DependentUpon>EditInfectedAreaDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
@ -230,6 +242,9 @@
|
||||
<Compile Include="EditControls\EditLast10PortFacilitiesDialog.xaml.cs">
|
||||
<DependentUpon>EditLast10PortFacilitiesDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EditControls\EditMarpolDialog.xaml.cs">
|
||||
<DependentUpon>EditMarpolDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EditControls\EditPASDialog.xaml.cs">
|
||||
<DependentUpon>EditPASDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
@ -355,6 +370,22 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="EditControls\EditIBCDialog.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="EditControls\EditIGCDialog.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="EditControls\EditIMDGDialog.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="EditControls\EditIMSBCDialog.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="EditControls\EditInfectedAreaDialog.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
@ -367,6 +398,10 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="EditControls\EditMarpolDialog.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="EditControls\EditPASDialog.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
|
||||
@ -38,9 +38,9 @@
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Width="auto" Name="textBoxLastName" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Width="auto" Name="textBoxFirstName" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="2" Grid.Column="3" Width="auto" Name="textBoxPlaceOfBirth" Margin="2" MaxLength="100" />
|
||||
<ComboBox Grid.Row="2" Grid.Column="1" Name="comboBoxGender" Margin="2" />
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" Name="comboBoxNationality" Margin="2" SelectedValuePath="Key" DisplayMemberPath="Value" />
|
||||
<ComboBox Grid.Row="4" Grid.Column="1" Name="comboBoxIdDocType" Margin="2" />
|
||||
<ComboBox Grid.Row="2" Grid.Column="1" Name="comboBoxGender" Margin="2" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" Name="comboBoxNationality" Margin="2" SelectedValuePath="Key" DisplayMemberPath="Value" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<ComboBox Grid.Row="4" Grid.Column="1" Name="comboBoxIdDocType" Margin="2" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<TextBox Grid.Row="4" Grid.Column="3" Width="auto" Name="textBoxIdDocNumber" Margin="2" MaxLength="100" />
|
||||
<DatePicker Grid.Row="3" Grid.Column="3" Name="datePickerDateOfBirth" Margin="2" />
|
||||
<TextBox Grid.Row="5" Grid.Column="1" Width="auto" Name="textBoxVisaNumber" Margin="2" MaxLength="100" />
|
||||
|
||||
@ -31,12 +31,15 @@ namespace ENI2.EditControls
|
||||
this.textBoxLastName.Text = this.CREW.CrewMemberLastName;
|
||||
this.textBoxFirstName.Text = this.CREW.CrewMemberFirstName;
|
||||
this.comboBoxGender.ItemsSource = GlobalStructures.GenderList;
|
||||
this.comboBoxGender.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxGender.SelectedIndex = this.CREW.CrewMemberGender.HasValue ? this.CREW.CrewMemberGender.Value : -1;
|
||||
this.textBoxPlaceOfBirth.Text = this.CREW.CrewMemberPlaceOfBirth;
|
||||
this.comboBoxNationality.ItemsSource = bsmd.database.CREW.NationalityDict;
|
||||
this.comboBoxNationality.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxNationality.SelectedValue = this.CREW.CrewMemberNationality;
|
||||
this.datePickerDateOfBirth.SelectedDate = this.CREW.CrewMemberDateOfBirth;
|
||||
this.comboBoxIdDocType.ItemsSource = GlobalStructures.IDDocTypeList;
|
||||
this.comboBoxIdDocType.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxIdDocType.SelectedIndex = this.CREW.CrewMemberIdentityDocumentType.HasValue ? this.CREW.CrewMemberIdentityDocumentType.Value : -1;
|
||||
this.textBoxIdDocNumber.Text = this.CREW.CrewMemberIdentityDocumentId;
|
||||
this.textBoxVisaNumber.Text = this.CREW.CrewMemberVisaNumber;
|
||||
|
||||
64
ENI-2/ENI2/ENI2/EditControls/EditIBCDialog.xaml
Normal file
64
ENI-2/ENI2/ENI2/EditControls/EditIBCDialog.xaml
Normal file
@ -0,0 +1,64 @@
|
||||
<enictrl:EditWindowBase x:Class="ENI2.EditControls.EditIBCDialog"
|
||||
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.textIBCItem}" Height="300" Width="800" WindowStyle="SingleBorderWindow" Background="AliceBlue">
|
||||
<Grid>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="56" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Name="labelIdentifier" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textIdentifier}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelProductName" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textProductName}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPollutionCategory" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textPollutionCategory}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelFlashpointInformation" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textFlashpointInformation}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelQuantity" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textQuantity}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfLoading" Grid.Row="5" Grid.Column="0" Content="{x:Static p:Resources.textPortOfLoading}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelRemarks" Grid.Row="6" Grid.Column="0" Content="{x:Static p:Resources.textRemarks}" HorizontalContentAlignment="Right" />
|
||||
|
||||
<TextBlock Name="textBlockColumns" Grid.Row="1" Grid.Column="3" Text="{x:Static p:Resources.textColumsOfIBC}" TextWrapping="Wrap" FontSize="11" VerticalAlignment="Center" />
|
||||
<Label Name="labelRisks" Grid.Row="2" Grid.Column="3" Content="{x:Static p:Resources.textRisks}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelFlashpoint" Grid.Row="3" Grid.Column="3" Content="{x:Static p:Resources.textFlashpoint}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelStowagePosition" Grid.Row="4" Grid.Column="3" Content="{x:Static p:Resources.textStowagePosition}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfDischarge" Grid.Row="5" Grid.Column="3" Content="{x:Static p:Resources.textPortOfDischarge}" HorizontalContentAlignment="Right" />
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Name="textBoxIdentifier" MaxLength="40" Margin="2" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Name="textBoxProductName" MaxLength="255" Margin="2" />
|
||||
<ComboBox Grid.Row="2" Grid.Column="1" Name="comboBoxPollutionCategory" Margin="2" />
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Name="comboBoxFlashpointInformation" Margin="2" />
|
||||
<xctk:DoubleUpDown Name="doubleUpDownQuantity" Grid.Row="4" Grid.Column="1" Margin="2" FormatString="N3" ShowButtonSpinner="False" />
|
||||
<Label Grid.Row="4" Grid.Column="2" Content="kg" />
|
||||
<enictrl:LocodeControl x:Name="locodePortOfLoading" Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" />
|
||||
<TextBox Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="3" Name="textBoxRemarks" Margin="2" MaxLength="255" />
|
||||
|
||||
<CheckBox Grid.Row="1" Grid.Column="4" Name="checkBoxSpecRef15_19" VerticalAlignment="Center" Margin="2" />
|
||||
<ComboBox Grid.Row="2" Grid.Column="4" Name="comboBoxRisks" Margin="2" />
|
||||
<TextBox Name="textBoxFlashpoint" Grid.Row="3" Grid.Column="4" Margin="2" MaxLength="11" />
|
||||
<Label Grid.Row="3" Grid.Column="5" Content="°C" />
|
||||
<TextBox Name="textBoxStowagePosition" Grid.Row="4" Grid.Column="4" Grid.ColumnSpan="2" MaxLength="24" Margin="2"/>
|
||||
<enictrl:LocodeControl x:Name="locodePortOfDischarge" Grid.Row="5" Grid.Column="4" Grid.ColumnSpan="2" />
|
||||
|
||||
</Grid>
|
||||
</Grid>
|
||||
</enictrl:EditWindowBase>
|
||||
79
ENI-2/ENI2/ENI2/EditControls/EditIBCDialog.xaml.cs
Normal file
79
ENI-2/ENI2/ENI2/EditControls/EditIBCDialog.xaml.cs
Normal file
@ -0,0 +1,79 @@
|
||||
// Copyright (c) 2017 schick Informatik
|
||||
// Description: IBC item Bearbeitungsdialog
|
||||
//
|
||||
|
||||
using System.Windows;
|
||||
|
||||
using bsmd.database;
|
||||
using ENI2.Controls;
|
||||
using ENI2.Util;
|
||||
|
||||
namespace ENI2.EditControls
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EditIBCDialog.xaml
|
||||
/// </summary>
|
||||
public partial class EditIBCDialog : EditWindowBase
|
||||
{
|
||||
public EditIBCDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
Loaded += EditIBCDialog_Loaded;
|
||||
AddClicked += () => { this.textBoxIdentifier.Focus(); };
|
||||
}
|
||||
|
||||
public IBCPosition IBC { get; set; }
|
||||
|
||||
private void EditIBCDialog_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.textBoxFlashpoint.Text = this.IBC.Flashpoint_CEL;
|
||||
this.textBoxIdentifier.Text = this.IBC.Identifier;
|
||||
this.textBoxProductName.Text = this.IBC.ProductName;
|
||||
this.textBoxRemarks.Text = this.IBC.Remarks;
|
||||
this.textBoxStowagePosition.Text = this.IBC.StowagePosition;
|
||||
|
||||
this.checkBoxSpecRef15_19.IsChecked = this.IBC.SpecRef15_19;
|
||||
|
||||
this.comboBoxFlashpointInformation.ItemsSource = GlobalStructures.flashpointInformations;
|
||||
this.comboBoxFlashpointInformation.SelectedIndex = this.IBC.FlashpointInformation ?? -1;
|
||||
this.comboBoxPollutionCategory.ItemsSource = GlobalStructures.pollutionCategories;
|
||||
this.comboBoxPollutionCategory.SelectedIndex = this.IBC.PollutionCategory ?? -1;
|
||||
this.comboBoxRisks.ItemsSource = GlobalStructures.hazards;
|
||||
this.comboBoxRisks.SelectedIndex = this.IBC.Hazards ?? -1;
|
||||
|
||||
this.doubleUpDownQuantity.Value = this.IBC.Quantity_KGM;
|
||||
|
||||
this.locodePortOfDischarge.LocodeValue = this.IBC.PortOfDischarge;
|
||||
this.locodePortOfLoading.LocodeValue = this.IBC.PortOfLoading;
|
||||
|
||||
|
||||
this.OKClicked += EditIBCDialog_OKClicked;
|
||||
this.AddVisible = true;
|
||||
}
|
||||
|
||||
public void CopyValuesToEntity()
|
||||
{
|
||||
this.IBC.Flashpoint_CEL = this.textBoxFlashpoint.Text.Trim();
|
||||
this.IBC.Identifier = this.textBoxIdentifier.Text.Trim();
|
||||
this.IBC.ProductName = this.textBoxProductName.Text.Trim();
|
||||
this.IBC.Remarks = this.textBoxRemarks.Text.Trim();
|
||||
this.IBC.StowagePosition = this.textBoxStowagePosition.Text.Trim();
|
||||
|
||||
this.IBC.SpecRef15_19 = this.checkBoxSpecRef15_19.IsChecked;
|
||||
|
||||
this.IBC.FlashpointInformation = (this.comboBoxFlashpointInformation.SelectedIndex == -1) ? null : ((byte?)this.comboBoxFlashpointInformation.SelectedIndex);
|
||||
this.IBC.PollutionCategory = (this.comboBoxPollutionCategory.SelectedIndex == -1) ? null : ((byte?)this.comboBoxPollutionCategory.SelectedIndex);
|
||||
this.IBC.Hazards = (this.comboBoxRisks.SelectedIndex == -1) ? null : ((byte?)this.comboBoxRisks.SelectedIndex);
|
||||
|
||||
this.IBC.Quantity_KGM = this.doubleUpDownQuantity.Value;
|
||||
|
||||
this.IBC.PortOfDischarge = this.locodePortOfDischarge.LocodeValue;
|
||||
this.IBC.PortOfLoading = this.locodePortOfLoading.LocodeValue;
|
||||
}
|
||||
|
||||
private void EditIBCDialog_OKClicked()
|
||||
{
|
||||
this.CopyValuesToEntity();
|
||||
}
|
||||
}
|
||||
}
|
||||
55
ENI-2/ENI2/ENI2/EditControls/EditIGCDialog.xaml
Normal file
55
ENI-2/ENI2/ENI2/EditControls/EditIGCDialog.xaml
Normal file
@ -0,0 +1,55 @@
|
||||
<enictrl:EditWindowBase x:Class="ENI2.EditControls.EditIGCDialog"
|
||||
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.textIGCItem}" Height="300" Width="800" WindowStyle="SingleBorderWindow" Background="AliceBlue">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="56" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="56" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Name="labelIdentifier" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textIdentifier}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelProductName" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textProductName}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelUNNumber" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textUNNumber}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelQuantity" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textQuantity}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfLoading" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textPortOfLoading}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelRemarks" Grid.Row="5" Grid.Column="0" Content="{x:Static p:Resources.textRemarks}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelIMOClass" Grid.Row="2" Grid.Column="3" Content="{x:Static p:Resources.textIMOClassSubclass}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelStowagePosition" Grid.Row="3" Grid.Column="3" Content="{x:Static p:Resources.textStowagePosition}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfDischarge" Grid.Row="4" Grid.Column="3" Content="{x:Static p:Resources.textPortOfDischarge}" HorizontalContentAlignment="Right" />
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Name="textBoxIdentifier" MaxLength="40" Margin="2" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Name="textBoxProductName" MaxLength="255" Margin="2" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Name="textBoxUNNumber" MaxLength="4" Margin="2" />
|
||||
<TextBox Grid.Row="2" Grid.Column="4" Name="textBoxIMOClass" MaxLength="4" Margin="2" />
|
||||
<TextBox Grid.Row="3" Grid.Column="4" Name="textBoxStowagePosition" MaxLength="24" Margin="2" />
|
||||
<TextBox Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="3" Name="textBoxRemarks" Margin="2" MaxLength="255" />
|
||||
|
||||
<xctk:DoubleUpDown Name="doubleUpDownQuantity" Grid.Row="3" Grid.Column="1" Margin="2" FormatString="N3" ShowButtonSpinner="False" />
|
||||
<Label Grid.Row="3" Grid.Column="2" Content="kg" />
|
||||
|
||||
<enictrl:LocodeControl x:Name="locodePortOfLoading" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" />
|
||||
<enictrl:LocodeControl x:Name="locodePortOfDischarge" Grid.Row="4" Grid.Column="4" Grid.ColumnSpan="2" />
|
||||
|
||||
|
||||
</Grid>
|
||||
</enictrl:EditWindowBase>
|
||||
65
ENI-2/ENI2/ENI2/EditControls/EditIGCDialog.xaml.cs
Normal file
65
ENI-2/ENI2/ENI2/EditControls/EditIGCDialog.xaml.cs
Normal file
@ -0,0 +1,65 @@
|
||||
// Copyright (c) 2017 schick Informatik
|
||||
// Description: IGC item Bearbeitungsdialog
|
||||
//
|
||||
|
||||
using System.Windows;
|
||||
|
||||
using bsmd.database;
|
||||
using ENI2.Controls;
|
||||
using ENI2.Util;
|
||||
|
||||
namespace ENI2.EditControls
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EditIGCDialog.xaml
|
||||
/// </summary>
|
||||
public partial class EditIGCDialog : EditWindowBase
|
||||
{
|
||||
public EditIGCDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
Loaded += EditIGCDialog_Loaded;
|
||||
AddClicked += () => { this.textBoxIdentifier.Focus(); };
|
||||
}
|
||||
|
||||
public IGCPosition IGC { get; set; }
|
||||
|
||||
private void EditIGCDialog_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.textBoxIdentifier.Text = this.IGC.Identifier;
|
||||
this.textBoxIMOClass.Text = this.IGC.IMOClass;
|
||||
this.textBoxProductName.Text = this.IGC.ProductName;
|
||||
this.textBoxRemarks.Text = this.IGC.Remarks;
|
||||
this.textBoxStowagePosition.Text = this.IGC.StowagePosition;
|
||||
this.textBoxUNNumber.Text = this.IGC.UNNumber;
|
||||
|
||||
this.doubleUpDownQuantity.Value = this.IGC.Quantity_KGM;
|
||||
|
||||
this.locodePortOfDischarge.LocodeValue = this.IGC.PortOfDischarge;
|
||||
this.locodePortOfLoading.LocodeValue = this.IGC.PortOfLoading;
|
||||
|
||||
this.OKClicked += EditIGCDialog_OKClicked;
|
||||
this.AddVisible = true;
|
||||
}
|
||||
|
||||
public void CopyValuesToEntity()
|
||||
{
|
||||
this.IGC.Identifier = this.textBoxIdentifier.Text.Trim();
|
||||
this.IGC.IMOClass = this.textBoxIMOClass.Text.Trim();
|
||||
this.IGC.ProductName = this.textBoxProductName.Text.Trim();
|
||||
this.IGC.Remarks = this.textBoxRemarks.Text.Trim();
|
||||
this.IGC.StowagePosition = this.textBoxStowagePosition.Text.Trim();
|
||||
this.IGC.UNNumber = this.textBoxUNNumber.Text.Trim();
|
||||
|
||||
this.IGC.Quantity_KGM = this.doubleUpDownQuantity.Value;
|
||||
|
||||
this.IGC.PortOfLoading = this.locodePortOfLoading.LocodeValue;
|
||||
this.IGC.PortOfDischarge = this.locodePortOfDischarge.LocodeValue;
|
||||
}
|
||||
|
||||
private void EditIGCDialog_OKClicked()
|
||||
{
|
||||
this.CopyValuesToEntity();
|
||||
}
|
||||
}
|
||||
}
|
||||
128
ENI-2/ENI2/ENI2/EditControls/EditIMDGDialog.xaml
Normal file
128
ENI-2/ENI2/ENI2/EditControls/EditIMDGDialog.xaml
Normal file
@ -0,0 +1,128 @@
|
||||
<!--
|
||||
Copyright (c) 2017 schick Informatik
|
||||
-->
|
||||
<enictrl:EditWindowBase x:Class="ENI2.EditControls.EditIMDGDialog"
|
||||
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.textIMDGItem}" Height="540" Width="1024" WindowStyle="SingleBorderWindow" Background="AliceBlue">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="56" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="56" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Name="labelIdentifier" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textIdentifier}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelUNNumber" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textUNNumber}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelProperShippingName" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textProperShippingName}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelNetExplosiveMass" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textNetExplosiveMass}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelRadioNuclideName" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textRadioNuclideName}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelTransportIndex" Grid.Row="5" Grid.Column="0" Content="{x:Static p:Resources.textTransportIndex}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelControlTemperature" Grid.Row="6" Grid.Column="0" Content="{x:Static p:Resources.textControlTemperature}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelNumberOfPackages" Grid.Row="7" Grid.Column="0" Content="{x:Static p:Resources.textNumberOfPackages}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelLimitedQuantity" Grid.Row="8" Grid.Column="0" Content="{x:Static p:Resources.textLimitedQuantity}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelNetQuantity" Grid.Row="9" Grid.Column="0" Content="{x:Static p:Resources.textNetQuantity}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelGeneralCargo" Grid.Row="10" Grid.Column="0" Content="{x:Static p:Resources.textGeneralCargo}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelStowagePosition" Grid.Row="11" Grid.Column="0" Content="{x:Static p:Resources.textStowagePosition}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelContainerPositionBay" Grid.Row="12" Grid.Column="0" Content="{x:Static p:Resources.textContainerPositionBay}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelRemarks" Grid.Row="13" Grid.Column="0" Content="{x:Static p:Resources.textRemarks}" HorizontalContentAlignment="Right" />
|
||||
|
||||
<TextBlock Name="labelIMOClass" Grid.Row="1" Grid.Column="3" Text="{x:Static p:Resources.textIMOClassDivision}" FontSize="10" TextWrapping="Wrap" TextAlignment="Right"/>
|
||||
<Label Name="labelTechnicalName" Grid.Row="2" Grid.Column="3" Content="{x:Static p:Resources.textTechnicalName}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelFlashpoint" Grid.Row="3" Grid.Column="3" Content="{x:Static p:Resources.textFlashpoint}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelMaxActivity" Grid.Row="4" Grid.Column="3" Content="{x:Static p:Resources.textMaxActivity}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelCriticalSafetyIndex" Grid.Row="5" Grid.Column="3" Content="{x:Static p:Resources.textCriticalSafetyIndex}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelEmergencyTemperature" Grid.Row="6" Grid.Column="3" Content="{x:Static p:Resources.textEmergencyTemperature}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPackageType" Grid.Row="7" Grid.Column="3" Content="{x:Static p:Resources.textPackageType}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelExceptedQuantities" Grid.Row="8" Grid.Column="3" Content="{x:Static p:Resources.textExceptedQuantities}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelGrossQuantity" Grid.Row="9" Grid.Column="3" Content="{x:Static p:Resources.textGrossQuantity}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelContainerNo" Grid.Row="10" Grid.Column="3" Content="{x:Static p:Resources.textContainerNo}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfLoading" Grid.Row="11" Grid.Column="3" Content="{x:Static p:Resources.textPortOfLoading}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelContainerPositionRow" Grid.Row="12" Grid.Column="3" Content="{x:Static p:Resources.textContainerPositionRow}" HorizontalContentAlignment="Right" />
|
||||
|
||||
<Label Name="labelPackingGroup" Grid.Row="1" Grid.Column="6" Content="{x:Static p:Resources.textPackingGroup}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelMarinePollutant" Grid.Row="2" Grid.Column="6" Content="{x:Static p:Resources.textMarinePollutant}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelCategory" Grid.Row="3" Grid.Column="6" Content="{x:Static p:Resources.textCategory}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelSubsidiaryRisks" Grid.Row="4" Grid.Column="6" Content="{x:Static p:Resources.textSubsidiaryRisk}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelCargoVolume" Grid.Row="8" Grid.Column="6" Content="{x:Static p:Resources.textCargoVolume}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelVehicleLicensePlate" Grid.Row="9" Grid.Column="6" Content="{x:Static p:Resources.textVehicleLicensePlate}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfDischarge" Grid.Row="10" Grid.Column="6" Content="{x:Static p:Resources.textPortOfDischarge}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelContainerPositionTier" Grid.Row="11" Grid.Column="6" Content="{x:Static p:Resources.textContainerPositionTier}" HorizontalContentAlignment="Right" />
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Width="auto" Name="textBoxIdentifier" Margin="2" MaxLength="100" Grid.ColumnSpan="2" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Width="auto" Name="textBoxUNNumber" Margin="2" MaxLength="4" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Width="auto" Name="textBoxProperShippingName" Margin="2" MaxLength="255" Grid.ColumnSpan="2" />
|
||||
<xctk:DoubleUpDown Grid.Row="3" Grid.Column="1" Name="decimalUpDownNetExplosiveMass" Margin="2" ShowButtonSpinner="False" FormatString="N3"/>
|
||||
<Label Grid.Row="3" Grid.Column="2" Content="kg" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Width="auto" Name="textBoxClass7NuclideName" Margin="2" MaxLength="100" Grid.ColumnSpan="2" />
|
||||
<xctk:DoubleUpDown Grid.Row="5" Grid.Column="1" Name="decimalUpdownClass7TransportIndex" Margin="2" ShowButtonSpinner="False" FormatString="N1" Maximum="50" />
|
||||
<xctk:DoubleUpDown Grid.Row="6" Grid.Column="1" Name="decimalUpdownControlTemperature" Margin="2" ShowButtonSpinner="False" FormatString="N2" />
|
||||
<Label Grid.Row="6" Grid.Column="2" Content="°C" />
|
||||
<xctk:IntegerUpDown Grid.Row="7" Grid.Column="1" Name="integerUpDownNumberOfPackages" Margin="2" ShowButtonSpinner="False" Minimum="0" />
|
||||
<CheckBox Grid.Row="8" Grid.Column="1" Name="checkBoxLimitedQuantities" VerticalAlignment="Center" Margin="2"/>
|
||||
<xctk:DoubleUpDown Grid.Row="9" Grid.Column="1" Name="decimalUpDownNetQuantity" Margin="2" Minimum="0" FormatString="N3" ShowButtonSpinner="False" />
|
||||
<Label Grid.Row="9" Grid.Column="2" Content="kg" />
|
||||
<CheckBox Grid.Row="10" Grid.Column="1" Name="checkBoxGeneralCargo" VerticalAlignment="Center" Margin="2" />
|
||||
<TextBox Grid.Row="11" Grid.Column="1" Width="auto" Name="textBoxStowagePosition" MaxLength="24" Margin="2" Grid.ColumnSpan="2" />
|
||||
<TextBox Grid.Row="12" Grid.Column="1" Width="auto" Name="textBoxContainerPositionBay" MaxLength="3" Margin="2" />
|
||||
<TextBox Grid.Row="13" Grid.Column="1" Grid.ColumnSpan="5" Name="textBoxRemarks" MaxLength="255" Margin="2" />
|
||||
|
||||
<TextBox Grid.Row="1" Grid.Column="4" Width="auto" Name="textBoxIMOClass" MaxLength="10" Margin="2" />
|
||||
<TextBox Grid.Row="2" Grid.Column="4" Width="auto" Name="textBoxTechnicalName" MaxLength="255" Margin="2" Grid.ColumnSpan="2"/>
|
||||
<TextBox Grid.Row="3" Grid.Column="4" Width="auto" Name="textBoxFlashpoint" MaxLength="10" Margin="2" />
|
||||
<Label Grid.Row="3" Grid.Column="5" Content="°C" />
|
||||
<xctk:DoubleUpDown Grid.Row="4" Grid.Column="4" Name="decimalUpDownMaxActivity" Minimum="0" FormatString="N6" Margin="2" ShowButtonSpinner="False" />
|
||||
<Label Grid.Row="4" Grid.Column="5" Content="Bq" />
|
||||
<xctk:DoubleUpDown Grid.Row="5" Grid.Column="4" Name="decimalUpDownCSI" Minimum="0" Maximum="100" Margin="2" FormatString="N2" ShowButtonSpinner="False" />
|
||||
<xctk:DoubleUpDown Grid.Row="6" Grid.Column="4" Name="decimalUpDownEmergencyTemperature" Margin="2" FormatString="N2" ShowButtonSpinner="False" />
|
||||
<Label Grid.Row="6" Grid.Column="5" Content="°C" />
|
||||
<TextBox Grid.Row="7" Grid.Column="4" Name="textBoxPackageType" MaxLength="100" Margin="2" />
|
||||
<CheckBox Grid.Row="8" Grid.Column="4" Name="checkBoxExceptedQuantities" VerticalAlignment="Center" Margin="2" />
|
||||
<xctk:DoubleUpDown Grid.Row="9" Grid.Column="4" Name="decimalUpDownGrossQuantity" Minimum="0" FormatString="N3" Margin="2" ShowButtonSpinner="False" />
|
||||
<Label Grid.Row="9" Grid.Column="5" Content="kg" />
|
||||
<TextBox Grid.Row="10" Grid.Column="4" Name="textBoxContainerNo" MaxLength="24" Margin="2" Grid.ColumnSpan="2" />
|
||||
<enictrl:LocodeControl Grid.Row="11" Grid.Column="4" x:Name="locodeControlPortOfLoading" Grid.ColumnSpan="2" />
|
||||
<TextBox Grid.Row="12" Grid.Column="4" Width="auto" Name="textBoxContainerPositionRow" MaxLength="2" Margin="2" />
|
||||
|
||||
|
||||
<enictrl:LocodeControl Grid.Row="10" Grid.Column="7" x:Name="locodeControlPortOfDischarge" Grid.ColumnSpan="2" />
|
||||
<TextBox Grid.Row="11" Grid.Column="7" Width="auto" Name="textBoxContainerPositionTier" MaxLength="2" Margin="2" />
|
||||
<ComboBox Grid.Row="1" Grid.Column="7" Name="comboBoxPackingGroup" Margin="2" />
|
||||
<CheckBox Grid.Row="2" Grid.Column="7" Name="checkBoxMarinePollutant" VerticalAlignment="Top" Margin="2,6,0,0" />
|
||||
<xctk:IntegerUpDown Grid.Row="3" Grid.Column="7" Name="integerUpDownCategory" Maximum="3" Minimum="1" Margin="2" ShowButtonSpinner="False" />
|
||||
<TextBox Grid.Row="4" Grid.Column="7" Name="textBoxSubsidiaryRisks" Margin="2" Grid.ColumnSpan="2" Grid.RowSpan="2" />
|
||||
<xctk:DoubleUpDown Grid.Row="8" Grid.Column="7" Name="doubleUpDownCargoVolume" Margin="2" Minimum="0" ShowButtonSpinner="False" FormatString="N3" />
|
||||
<Label Grid.Row="8" Grid.Column="8" Content="cbm" />
|
||||
<TextBox Grid.Row="9" Grid.Column="7" Name="textBoxVehicleLicensePlate" Margin="2" MaxLength="24" Grid.ColumnSpan="2" />
|
||||
|
||||
</Grid>
|
||||
</enictrl:EditWindowBase>
|
||||
122
ENI-2/ENI2/ENI2/EditControls/EditIMDGDialog.xaml.cs
Normal file
122
ENI-2/ENI2/ENI2/EditControls/EditIMDGDialog.xaml.cs
Normal file
@ -0,0 +1,122 @@
|
||||
// Copyright (c) 2017 schick Informatik
|
||||
// Description: IMDG item Bearbeitungsdialog
|
||||
//
|
||||
|
||||
using System.Windows;
|
||||
|
||||
using bsmd.database;
|
||||
using ENI2.Controls;
|
||||
using ENI2.Util;
|
||||
|
||||
namespace ENI2.EditControls
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EditIMDGDialog.xaml
|
||||
/// </summary>
|
||||
public partial class EditIMDGDialog : EditWindowBase
|
||||
{
|
||||
public EditIMDGDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
Loaded += EditIMDGDialog_Loaded;
|
||||
AddClicked += () => { this.textBoxIdentifier.Focus(); };
|
||||
}
|
||||
|
||||
public IMDGPosition IMDG { get; set; }
|
||||
|
||||
private void EditIMDGDialog_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.textBoxClass7NuclideName.Text = this.IMDG.Class7NuclideName;
|
||||
this.textBoxContainerNo.Text = this.IMDG.ContainerNumber;
|
||||
this.textBoxContainerPositionBay.Text = this.IMDG.Bay;
|
||||
this.textBoxContainerPositionRow.Text = this.IMDG.Row;
|
||||
this.textBoxContainerPositionTier.Text = this.IMDG.Tier;
|
||||
this.textBoxFlashpoint.Text = this.IMDG.Flashpoint_CEL;
|
||||
this.textBoxIdentifier.Text = this.IMDG.Identifier;
|
||||
this.textBoxIMOClass.Text = this.IMDG.IMOClass;
|
||||
this.textBoxPackageType.Text = this.IMDG.PackageType;
|
||||
this.textBoxProperShippingName.Text = this.IMDG.ProperShippingName;
|
||||
this.textBoxRemarks.Text = this.IMDG.Remarks;
|
||||
this.textBoxStowagePosition.Text = this.IMDG.StowagePosition;
|
||||
this.textBoxSubsidiaryRisks.Text = this.IMDG.SubsidiaryRiskText;
|
||||
this.textBoxTechnicalName.Text = this.IMDG.TechnicalName;
|
||||
this.textBoxUNNumber.Text = this.IMDG.UNNumber;
|
||||
this.textBoxVehicleLicensePlate.Text = this.IMDG.VehicleLicenseNumber;
|
||||
|
||||
this.decimalUpdownClass7TransportIndex.Value = this.IMDG.Class7TransportIndex;
|
||||
this.decimalUpdownControlTemperature.Value = this.IMDG.ControlTemperature_CEL;
|
||||
this.decimalUpDownCSI.Value = this.IMDG.Class7CSI;
|
||||
this.decimalUpDownEmergencyTemperature.Value = this.IMDG.EmergencyTemperature_CEL;
|
||||
this.decimalUpDownGrossQuantity.Value = this.IMDG.GrossQuantity_KGM;
|
||||
this.decimalUpDownMaxActivity.Value = this.IMDG.Class7MaxActivity_BQL;
|
||||
this.decimalUpDownNetExplosiveMass.Value = this.IMDG.NetExplosiveMass_KGM;
|
||||
this.decimalUpDownNetQuantity.Value = this.IMDG.NetQuantity_KGM;
|
||||
|
||||
this.integerUpDownCategory.Value = this.IMDG.Class7Category;
|
||||
this.integerUpDownNumberOfPackages.Value = this.IMDG.NumberOfPackages;
|
||||
|
||||
this.checkBoxExceptedQuantities.IsChecked = this.IMDG.ExceptedQuantities;
|
||||
this.checkBoxGeneralCargo.IsChecked = this.IMDG.GeneralCargoIBC;
|
||||
this.checkBoxLimitedQuantities.IsChecked = this.IMDG.LimitedQuantities;
|
||||
this.checkBoxMarinePollutant.IsChecked = this.IMDG.MarinePollutant;
|
||||
|
||||
this.comboBoxPackingGroup.ItemsSource = GlobalStructures.packingGroups;
|
||||
this.comboBoxPackingGroup.SelectedIndex = (int) (this.IMDG.PackingGroup ?? -1);
|
||||
|
||||
this.locodeControlPortOfDischarge.LocodeValue = this.IMDG.PortOfDischarge;
|
||||
this.locodeControlPortOfLoading.LocodeValue = this.IMDG.PortOfLoading;
|
||||
|
||||
this.OKClicked += EditIMDGDialog_OKClicked; ;
|
||||
this.AddVisible = true;
|
||||
}
|
||||
|
||||
public void CopyValuesToEntity()
|
||||
{
|
||||
|
||||
this.IMDG.Class7NuclideName = this.textBoxClass7NuclideName.Text.Trim();
|
||||
this.IMDG.ContainerNumber = this.textBoxContainerNo.Text.Trim();
|
||||
this.IMDG.Bay = this.textBoxContainerPositionBay.Text.Trim();
|
||||
this.IMDG.Row = this.textBoxContainerPositionRow.Text.Trim();
|
||||
this.IMDG.Tier = this.textBoxContainerPositionTier.Text.Trim();
|
||||
this.IMDG.Flashpoint_CEL = this.textBoxFlashpoint.Text.Trim();
|
||||
this.IMDG.Identifier = this.textBoxIdentifier.Text.Trim();
|
||||
this.IMDG.IMOClass = this.textBoxIMOClass.Text.Trim();
|
||||
this.IMDG.PackageType = this.textBoxPackageType.Text.Trim();
|
||||
this.IMDG.ProperShippingName = this.textBoxProperShippingName.Text.Trim();
|
||||
this.IMDG.Remarks = this.textBoxRemarks.Text.Trim();
|
||||
this.IMDG.StowagePosition = this.textBoxStowagePosition.Text.Trim();
|
||||
this.IMDG.SubsidiaryRiskText = this.textBoxSubsidiaryRisks.Text.Trim();
|
||||
this.IMDG.TechnicalName = this.textBoxTechnicalName.Text.Trim();
|
||||
this.IMDG.UNNumber = this.textBoxUNNumber.Text.Trim();
|
||||
this.IMDG.VehicleLicenseNumber = this.textBoxVehicleLicensePlate.Text.Trim();
|
||||
|
||||
this.IMDG.Class7TransportIndex = this.decimalUpdownClass7TransportIndex.Value;
|
||||
this.IMDG.ControlTemperature_CEL = this.decimalUpdownControlTemperature.Value;
|
||||
this.IMDG.Class7CSI = (int?) this.decimalUpDownCSI.Value;
|
||||
this.IMDG.EmergencyTemperature_CEL = this.decimalUpDownEmergencyTemperature.Value;
|
||||
this.IMDG.GrossQuantity_KGM = this.decimalUpDownGrossQuantity.Value;
|
||||
this.IMDG.Class7MaxActivity_BQL = this.decimalUpDownMaxActivity.Value;
|
||||
this.IMDG.NetExplosiveMass_KGM = this.decimalUpDownNetExplosiveMass.Value;
|
||||
this.IMDG.NetQuantity_KGM = this.decimalUpDownNetQuantity.Value;
|
||||
|
||||
this.IMDG.Class7Category = this.integerUpDownCategory.Value;
|
||||
this.IMDG.NumberOfPackages = this.integerUpDownNumberOfPackages.Value;
|
||||
|
||||
this.IMDG.ExceptedQuantities = this.checkBoxExceptedQuantities.IsChecked;
|
||||
this.IMDG.GeneralCargoIBC = this.checkBoxGeneralCargo.IsChecked;
|
||||
this.IMDG.LimitedQuantities = this.checkBoxLimitedQuantities.IsChecked;
|
||||
this.IMDG.MarinePollutant = this.checkBoxMarinePollutant.IsChecked;
|
||||
|
||||
this.IMDG.PackingGroup = (this.comboBoxPackingGroup.SelectedIndex == -1) ? null : ((byte?)this.comboBoxPackingGroup.SelectedIndex);
|
||||
|
||||
this.IMDG.PortOfDischarge = this.locodeControlPortOfDischarge.LocodeValue;
|
||||
this.IMDG.PortOfLoading = this.locodeControlPortOfLoading.LocodeValue;
|
||||
|
||||
}
|
||||
|
||||
private void EditIMDGDialog_OKClicked()
|
||||
{
|
||||
this.CopyValuesToEntity();
|
||||
}
|
||||
}
|
||||
}
|
||||
59
ENI-2/ENI2/ENI2/EditControls/EditIMSBCDialog.xaml
Normal file
59
ENI-2/ENI2/ENI2/EditControls/EditIMSBCDialog.xaml
Normal file
@ -0,0 +1,59 @@
|
||||
<enictrl:EditWindowBase x:Class="ENI2.EditControls.EditIMSBCDialog"
|
||||
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.textIMSBCItem}" Height="330" Width="800" WindowStyle="SingleBorderWindow" Background="AliceBlue">
|
||||
<Grid>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="56" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="56" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Name="labelIdentifier" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textIdentifier}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelBulkCargoShippingName" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textBulkCargoShippingName}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelMaterialHazardous" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textMaterialHazard}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelIMOClass" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textIMOClassSubclass}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelStowagePosition" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textStowagePosition}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfLoading" Grid.Row="5" Grid.Column="0" Content="{x:Static p:Resources.textPortOfLoading}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelRemarks" Grid.Row="6" Grid.Column="0" Content="{x:Static p:Resources.textRemarks}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelUNNumber" Grid.Row="2" Grid.Column="3" Content="{x:Static p:Resources.textUNNumber}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelQuantity" Grid.Row="3" Grid.Column="3" Content="{x:Static p:Resources.textQuantity}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfDischarge" Grid.Row="5" Grid.Column="3" Content="{x:Static p:Resources.textPortOfDischarge}" HorizontalContentAlignment="Right" />
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Name="textBoxIdentifier" MaxLength="40" Margin="2" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Name="textBoxBulkCargoShippingName" MaxLength="255" Margin="2" />
|
||||
<CheckBox Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" Margin="2" Name="checkBoxMaterialHazardous" />
|
||||
<TextBox Grid.Row="2" Grid.Column="4" Name="textBoxUNNumber" MaxLength="4" Margin="2" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1" Name="textBoxIMOClass" MaxLength="4" Margin="2" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Name="textBoxStowagePosition" MaxLength="24" Margin="2" />
|
||||
<TextBox Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="3" Name="textBoxRemarks" Margin="2" MaxLength="255" />
|
||||
|
||||
<xctk:DoubleUpDown Name="doubleUpDownQuantity" Grid.Row="3" Grid.Column="4" Margin="2" FormatString="N3" ShowButtonSpinner="False" />
|
||||
<Label Grid.Row="3" Grid.Column="5" Content="kg" />
|
||||
|
||||
<enictrl:LocodeControl x:Name="locodePortOfLoading" Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" />
|
||||
<enictrl:LocodeControl x:Name="locodePortOfDischarge" Grid.Row="5" Grid.Column="4" Grid.ColumnSpan="2" />
|
||||
|
||||
|
||||
</Grid>
|
||||
</enictrl:EditWindowBase>
|
||||
68
ENI-2/ENI2/ENI2/EditControls/EditIMSBCDialog.xaml.cs
Normal file
68
ENI-2/ENI2/ENI2/EditControls/EditIMSBCDialog.xaml.cs
Normal file
@ -0,0 +1,68 @@
|
||||
// Copyright (c) 2017 schick Informatik
|
||||
// Description: IMSBC item Bearbeitungsdialog
|
||||
//
|
||||
|
||||
using System.Windows;
|
||||
|
||||
using bsmd.database;
|
||||
using ENI2.Controls;
|
||||
using ENI2.Util;
|
||||
|
||||
namespace ENI2.EditControls
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EditIMSBCDialog.xaml
|
||||
/// </summary>
|
||||
public partial class EditIMSBCDialog : EditWindowBase
|
||||
{
|
||||
public EditIMSBCDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
Loaded += EditIMSBCDialog_Loaded;
|
||||
AddClicked += () => { this.textBoxIdentifier.Focus(); };
|
||||
}
|
||||
|
||||
public IMSBCPosition IMSBC { get; set; }
|
||||
|
||||
private void EditIMSBCDialog_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.textBoxBulkCargoShippingName.Text = this.IMSBC.BulkCargoShippingName;
|
||||
this.textBoxIdentifier.Text = this.IMSBC.Identifier;
|
||||
this.textBoxIMOClass.Text = this.IMSBC.IMOClass;
|
||||
this.textBoxRemarks.Text = this.IMSBC.Remarks;
|
||||
this.textBoxStowagePosition.Text = this.IMSBC.StowagePosition;
|
||||
this.textBoxUNNumber.Text = this.IMSBC.UNNumber;
|
||||
|
||||
this.checkBoxMaterialHazardous.IsChecked = this.IMSBC.MHB;
|
||||
|
||||
this.doubleUpDownQuantity.Value = this.IMSBC.Quantity_KGM;
|
||||
|
||||
this.locodePortOfDischarge.LocodeValue = this.IMSBC.PortOfDischarge;
|
||||
this.locodePortOfLoading.LocodeValue = this.IMSBC.PortOfLoading;
|
||||
|
||||
this.OKClicked += EditIMSBCDialog_OKClicked;
|
||||
this.AddVisible = true;
|
||||
}
|
||||
|
||||
public void CopyValuesToEntity()
|
||||
{
|
||||
this.IMSBC.BulkCargoShippingName = this.textBoxBulkCargoShippingName.Text.Trim();
|
||||
this.IMSBC.Identifier = this.textBoxIdentifier.Text.Trim();
|
||||
this.IMSBC.IMOClass = this.textBoxIMOClass.Text.Trim();
|
||||
this.IMSBC.Remarks = this.textBoxRemarks.Text.Trim();
|
||||
this.IMSBC.StowagePosition = this.textBoxStowagePosition.Text.Trim();
|
||||
this.IMSBC.UNNumber = this.textBoxUNNumber.Text.Trim();
|
||||
|
||||
this.IMSBC.MHB = this.checkBoxMaterialHazardous.IsChecked;
|
||||
this.IMSBC.Quantity_KGM = this.doubleUpDownQuantity.Value;
|
||||
this.IMSBC.PortOfDischarge = this.locodePortOfDischarge.LocodeValue;
|
||||
this.IMSBC.PortOfLoading = this.locodePortOfLoading.LocodeValue;
|
||||
}
|
||||
|
||||
private void EditIMSBCDialog_OKClicked()
|
||||
{
|
||||
this.CopyValuesToEntity();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
53
ENI-2/ENI2/ENI2/EditControls/EditMarpolDialog.xaml
Normal file
53
ENI-2/ENI2/ENI2/EditControls/EditMarpolDialog.xaml
Normal file
@ -0,0 +1,53 @@
|
||||
<enictrl:EditWindowBase x:Class="ENI2.EditControls.EditMarpolDialog"
|
||||
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.textMARPOLItem}" Height="300" Width="800" WindowStyle="SingleBorderWindow" Background="AliceBlue">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="28" />
|
||||
<RowDefinition Height="56" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Name="labelIdentifier" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textIdentifier}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelName" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textName}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelFlashpointInformation" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textFlashpointInformation}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelQuantity" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textQuantity}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfLoading" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textPortOfLoading}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelRemarks" Grid.Row="5" Grid.Column="0" Content="{x:Static p:Resources.textRemarks}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelFlashpoint" Grid.Row="2" Grid.Column="3" Content="{x:Static p:Resources.textFlashpoint}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelStowagePosition" Grid.Row="3" Grid.Column="3" Content="{x:Static p:Resources.textStowagePosition}" HorizontalContentAlignment="Right" />
|
||||
<Label Name="labelPortOfDischarge" Grid.Row="4" Grid.Column="3" Content="{x:Static p:Resources.textPortOfDischarge}" HorizontalContentAlignment="Right" />
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Name="textBoxIdentifier" MaxLength="40" Margin="2" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Name="textBoxName" MaxLength="255" Margin="2" />
|
||||
<ComboBox Grid.Row="2" Grid.Column="1" Name="comboBoxFlashpointInformation" Margin="2" />
|
||||
<TextBox Grid.Row="2" Grid.Column="4" Name="textBoxFlashpoint" MaxLength="10" Margin="2" />
|
||||
<Label Grid.Row="2" Grid.Column="5" Content="°C" />
|
||||
<xctk:DoubleUpDown Grid.Row="3" Grid.Column="1" Name="doubleUpDownQuantity" Margin="2" FormatString="N3" ShowButtonSpinner="False" />
|
||||
<Label Grid.Row="3" Grid.Column="2" Content="kg" />
|
||||
<TextBox Grid.Row="3" Grid.Column="4" Name="textBoxStowagePosition" MaxLength="24" Margin="2" />
|
||||
<TextBox Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="3" Name="textBoxRemarks" Margin="2" MaxLength="255" />
|
||||
<enictrl:LocodeControl Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" x:Name="locodeControlPortOfLoading" />
|
||||
<enictrl:LocodeControl Grid.Row="4" Grid.Column="4" Grid.ColumnSpan="2" x:Name="locodeControlPortOfDischarge" />
|
||||
|
||||
</Grid>
|
||||
</enictrl:EditWindowBase>
|
||||
63
ENI-2/ENI2/ENI2/EditControls/EditMarpolDialog.xaml.cs
Normal file
63
ENI-2/ENI2/ENI2/EditControls/EditMarpolDialog.xaml.cs
Normal file
@ -0,0 +1,63 @@
|
||||
// Copyright (c) 2017 schick Informatik
|
||||
// Description: Marpol Annex I item Bearbeitungsdialog
|
||||
//
|
||||
|
||||
using System.Windows;
|
||||
|
||||
using bsmd.database;
|
||||
using ENI2.Controls;
|
||||
using ENI2.Util;
|
||||
|
||||
namespace ENI2.EditControls
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EditMarpolDialog.xaml
|
||||
/// </summary>
|
||||
public partial class EditMarpolDialog : EditWindowBase
|
||||
{
|
||||
public EditMarpolDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
AddClicked += () => { this.textBoxIdentifier.Focus(); };
|
||||
Loaded += EditMarpolDialog_Loaded;
|
||||
}
|
||||
|
||||
public MARPOL_Annex_I_Position MARPOL { get; set; }
|
||||
|
||||
private void EditMarpolDialog_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.textBoxFlashpoint.Text = this.MARPOL.Flashpoint_CEL;
|
||||
this.textBoxIdentifier.Text = this.MARPOL.Identifier;
|
||||
this.textBoxName.Text = this.MARPOL.Name;
|
||||
this.textBoxRemarks.Text = this.MARPOL.Remarks;
|
||||
this.textBoxStowagePosition.Text = this.MARPOL.StowagePosition;
|
||||
|
||||
this.comboBoxFlashpointInformation.ItemsSource = GlobalStructures.flashpointInformations;
|
||||
this.comboBoxFlashpointInformation.SelectedIndex = (this.MARPOL.FlashpointInformation == null) ? -1 : ((int)this.MARPOL.FlashpointInformation);
|
||||
this.doubleUpDownQuantity.Value = this.MARPOL.Quantity_KGM;
|
||||
this.locodeControlPortOfDischarge.LocodeValue = this.MARPOL.PortOfDischarge;
|
||||
this.locodeControlPortOfLoading.LocodeValue = this.MARPOL.PortOfLoading;
|
||||
|
||||
this.AddVisible = true;
|
||||
this.OKClicked += EditMarpolDialog_OKClicked;
|
||||
}
|
||||
|
||||
public void CopyValuesToEntity()
|
||||
{
|
||||
this.MARPOL.Flashpoint_CEL = this.textBoxFlashpoint.Text.Trim();
|
||||
this.MARPOL.Identifier = this.textBoxIdentifier.Text.Trim();
|
||||
this.MARPOL.Name = this.textBoxName.Text.Trim();
|
||||
this.MARPOL.Remarks = this.textBoxRemarks.Text.Trim();
|
||||
this.MARPOL.StowagePosition = this.textBoxStowagePosition.Text.Trim();
|
||||
this.MARPOL.FlashpointInformation = (this.comboBoxFlashpointInformation.SelectedIndex == -1) ? null : ((byte?)this.comboBoxFlashpointInformation.SelectedIndex);
|
||||
this.MARPOL.Quantity_KGM = this.doubleUpDownQuantity.Value;
|
||||
this.MARPOL.PortOfDischarge = this.locodeControlPortOfDischarge.LocodeValue;
|
||||
this.MARPOL.PortOfLoading = this.locodeControlPortOfLoading.LocodeValue;
|
||||
}
|
||||
|
||||
private void EditMarpolDialog_OKClicked()
|
||||
{
|
||||
this.CopyValuesToEntity();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -39,11 +39,11 @@
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Width="auto" Name="textBoxLastName" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="0" Grid.Column="3" Width="auto" Name="textBoxFirstName" Margin="2" MaxLength="100" />
|
||||
<ComboBox Grid.Row="1" Grid.Column="1" Name="comboBoxGender" Margin="2" />
|
||||
<ComboBox Grid.Row="1" Grid.Column="1" Name="comboBoxGender" Margin="2" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False"/>
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Width="auto" Name="textBoxPlaceOfBirth" Margin="2" MaxLength="100" />
|
||||
<ComboBox Grid.Row="2" Grid.Column="1" Name="comboBoxNationality" Margin="2" SelectedValuePath="Key" DisplayMemberPath="Value" />
|
||||
<ComboBox Grid.Row="2" Grid.Column="1" Name="comboBoxNationality" Margin="2" SelectedValuePath="Key" DisplayMemberPath="Value" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<DatePicker Grid.Row="2" Grid.Column="3" Name="datePickerDateOfBirth" Margin="2" />
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" Name="comboBoxIdDocType" Margin="2" />
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" Name="comboBoxIdDocType" Margin="2" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<TextBox Grid.Row="3" Grid.Column="3" Width="auto" Name="textBoxIdDocNumber" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Width="auto" Name="textBoxVisaNumber" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="4" Grid.Column="3" Width="auto" Name="textBoxPortOfEmbarkation" Margin="2" MaxLength="100" />
|
||||
|
||||
@ -30,12 +30,15 @@ namespace ENI2.EditControls
|
||||
this.textBoxLastName.Text = this.PAS.PassengerLastName;
|
||||
this.textBoxFirstName.Text = this.PAS.PassengerFirstName;
|
||||
this.comboBoxGender.ItemsSource = GlobalStructures.GenderList;
|
||||
this.comboBoxGender.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxGender.SelectedIndex = this.PAS.PassengerGender.HasValue ? this.PAS.PassengerGender.Value : -1;
|
||||
this.textBoxPlaceOfBirth.Text = this.PAS.PassengerPlaceOfBirth;
|
||||
this.comboBoxNationality.ItemsSource = bsmd.database.CREW.NationalityDict;
|
||||
this.comboBoxNationality.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxNationality.SelectedValue = this.PAS.PassengerNationality;
|
||||
this.datePickerDateOfBirth.SelectedDate = this.PAS.PassengerDateOfBirth;
|
||||
this.comboBoxIdDocType.ItemsSource = GlobalStructures.IDDocTypeList;
|
||||
this.comboBoxIdDocType.KeyUp += ComboBox_KeyUp;
|
||||
this.comboBoxIdDocType.SelectedIndex = this.PAS.PassengerIdentityDocumentType.HasValue ? this.PAS.PassengerIdentityDocumentType.Value : -1;
|
||||
this.textBoxIdDocNumber.Text = this.PAS.PassengerIdentityDocumentId;
|
||||
this.textBoxVisaNumber.Text = this.PAS.PassengerVisaNumber;
|
||||
|
||||
@ -36,8 +36,8 @@
|
||||
|
||||
<TextBox Name="textBoxLocationName" Grid.Row="0" Grid.Column="1" Margin="2" />
|
||||
<enictrl:LocodeControl x:Name="locodeLocation" Grid.Row="0" Grid.Column="3" />
|
||||
<xctk:DoubleUpDown Name="doubleUpDownLatitudeDegrees" Grid.Row="1" Grid.Column="1" Margin="2" FormatString="N3" />
|
||||
<xctk:DoubleUpDown Name="doubleUpDownLongitudeDegrees" Grid.Row="1" Grid.Column="3" Margin="2" FormatString="N3" />
|
||||
<xctk:DoubleUpDown Name="doubleUpDownLatitudeDegrees" Grid.Row="1" Grid.Column="1" Margin="2" FormatString="N3" ShowButtonSpinner="False" />
|
||||
<xctk:DoubleUpDown Name="doubleUpDownLongitudeDegrees" Grid.Row="1" Grid.Column="3" Margin="2" FormatString="N3" ShowButtonSpinner="False" />
|
||||
<DatePicker Name="datePickerFrom" Grid.Row="2" Grid.Column="1" Margin="2" />
|
||||
<DatePicker Name="datePickerTo" Grid.Row="2" Grid.Column="3" Margin="2" />
|
||||
<ComboBox Name="comboBoxActivityType" Grid.Row="4" Grid.Column="1" Margin="2" />
|
||||
|
||||
@ -25,39 +25,45 @@
|
||||
<RowDefinition Height="28" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="3*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="3*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Name="labelName" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textName}" />
|
||||
<Label Name="labelPurposeOfCall" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textPurposeOfCall}" />
|
||||
<Label Name="labelDraught" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textDraughtInDecimetre}" />
|
||||
<Label Name="labelLength" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textLengthOverallInMeter}" />
|
||||
<Label Name="labelRemarks" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textRemarks}" />
|
||||
<Label Name="labelFlag" Grid.Row="1" Grid.Column="2" Content="{x:Static p:Resources.textFlag}" />
|
||||
<Label Name="labelGrossTonnage" Grid.Row="2" Grid.Column="2" Content="{x:Static p:Resources.textGrossTonnage}" />
|
||||
<Label Name="labelBeam" Grid.Row="3" Grid.Column="2" Content="{x:Static p:Resources.textBeamOverallInMeter}" />
|
||||
<Label Name="labelName" HorizontalContentAlignment="Right" Grid.Row="0" Grid.Column="0" Content="{x:Static p:Resources.textName}" />
|
||||
<Label Name="labelPurposeOfCall" HorizontalContentAlignment="Right" Grid.Row="1" Grid.Column="0" Content="{x:Static p:Resources.textPurposeOfCall}" />
|
||||
<Label Name="labelDraught" HorizontalContentAlignment="Right" Grid.Row="2" Grid.Column="0" Content="{x:Static p:Resources.textDraughtInDecimetre}" />
|
||||
<Label Name="labelLength" HorizontalContentAlignment="Right" Grid.Row="3" Grid.Column="0" Content="{x:Static p:Resources.textLengthOverAll}" />
|
||||
<Label Content="dm" Grid.Row="2" Grid.Column="2" />
|
||||
<Label Content="m" Grid.Row="3" Grid.Column="2" />
|
||||
<Label Content="t" Grid.Row="2" Grid.Column="5" />
|
||||
<Label Content="m" Grid.Row="3" Grid.Column="5" />
|
||||
<Label Name="labelRemarks" HorizontalContentAlignment="Right" Grid.Row="4" Grid.Column="0" Content="{x:Static p:Resources.textRemarks}" />
|
||||
<Label Name="labelFlag" HorizontalContentAlignment="Right" Grid.Row="1" Grid.Column="3" Content="{x:Static p:Resources.textFlag}" />
|
||||
<Label Name="labelGrossTonnage" HorizontalContentAlignment="Right" Grid.Row="2" Grid.Column="3" Content="{x:Static p:Resources.textGrossTonnage}" />
|
||||
<Label Name="labelBeam" HorizontalContentAlignment="Right" Grid.Row="3" Grid.Column="3" Content="{x:Static p:Resources.textBeamOverAll}" />
|
||||
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Width="auto" Name="textBoxName" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Width="auto" Name="textBoxPurposeOfCall" Margin="2" MaxLength="100" />
|
||||
<xctk:DoubleUpDown Grid.Row="2" Grid.Column="1" Name="doubleUpDownDraught" Margin="2" />
|
||||
<xctk:DoubleUpDown Grid.Row="3" Grid.Column="1" Name="doubleUpDownLength" Margin="2" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Width="auto" Name="textBoxRemarks" Margin="2" MaxLength="100" />
|
||||
<ComboBox Grid.Row="1" Grid.Column="3" Name="comboBoxFlag" Margin="2" SelectedValuePath="Key" DisplayMemberPath="Value" />
|
||||
<xctk:IntegerUpDown Grid.Row="2" Grid.Column="3" Name="integerUpDownGrossTonnage" Margin="2" />
|
||||
<xctk:DoubleUpDown Grid.Row="3" Grid.Column="3" Name="doubleUpDownBeam" Margin="2" />
|
||||
<ComboBox Grid.Row="1" Grid.Column="4" Name="comboBoxFlag" Margin="2" SelectedValuePath="Key" DisplayMemberPath="Value" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="False" />
|
||||
<xctk:IntegerUpDown Grid.Row="2" Grid.Column="4" Name="integerUpDownGrossTonnage" Margin="2" />
|
||||
<xctk:DoubleUpDown Grid.Row="3" Grid.Column="4" Name="doubleUpDownBeam" Margin="2" />
|
||||
|
||||
<TextBlock Text="Operator" FontWeight="Bold" FontSize="10" Grid.Row="5" Grid.Column="0" />
|
||||
|
||||
<Label Name="labelOperatorName" Grid.Row="6" Grid.Column="0" Content="{x:Static p:Resources.textName}" />
|
||||
<Label Name="labelStreetAddress" Grid.Row="7" Grid.Column="0" Content="{x:Static p:Resources.textStreetAndNumber}" />
|
||||
<Label Name="labelPostcode" Grid.Row="8" Grid.Column="0" Content="{x:Static p:Resources.textPostalCode}" />
|
||||
<Label Name="labelCountry" Grid.Row="9" Grid.Column="0" Content="{x:Static p:Resources.textCountry}" />
|
||||
<Label Name="labelPhone" Grid.Row="10" Grid.Column="0" Content="{x:Static p:Resources.textPhone}" />
|
||||
<Label Name="labelEmail" Grid.Row="100" Grid.Column="0" Content="{x:Static p:Resources.textEMail}" />
|
||||
<Label Name="labelCity" Grid.Row="8" Grid.Column="2" Content="{x:Static p:Resources.textCity}" />
|
||||
<Label Name="labelFax" Grid.Row="10" Grid.Column="2" Content="{x:Static p:Resources.textFax}" />
|
||||
|
||||
<Label Name="labelOperatorName" HorizontalContentAlignment="Right" Grid.Row="6" Grid.Column="0" Content="{x:Static p:Resources.textName}" />
|
||||
<Label Name="labelStreetAddress" HorizontalContentAlignment="Right" Grid.Row="7" Grid.Column="0" Content="{x:Static p:Resources.textStreetAndNumber}" />
|
||||
<Label Name="labelPostcode" HorizontalContentAlignment="Right" Grid.Row="8" Grid.Column="0" Content="{x:Static p:Resources.textPostalCode}" />
|
||||
<Label Name="labelCountry" HorizontalContentAlignment="Right" Grid.Row="9" Grid.Column="0" Content="{x:Static p:Resources.textCountry}" />
|
||||
<Label Name="labelPhone" HorizontalContentAlignment="Right" Grid.Row="10" Grid.Column="0" Content="{x:Static p:Resources.textPhone}" />
|
||||
<Label Name="labelEmail" HorizontalContentAlignment="Right" Grid.Row="100" Grid.Column="0" Content="{x:Static p:Resources.textEMail}" />
|
||||
<Label Name="labelCity" HorizontalContentAlignment="Right" Grid.Row="8" Grid.Column="3" Content="{x:Static p:Resources.textCity}" />
|
||||
<Label Name="labelFax" HorizontalContentAlignment="Right" Grid.Row="10" Grid.Column="3" Content="{x:Static p:Resources.textFax}" />
|
||||
|
||||
<TextBox Grid.Row="6" Grid.Column="1" Width="auto" Name="textBoxOperatorName" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="7" Grid.Column="1" Width="auto" Name="textBoxStreetNumber" Margin="2" MaxLength="100" />
|
||||
@ -65,8 +71,8 @@
|
||||
<TextBox Grid.Row="9" Grid.Column="1" Width="auto" Name="textBoxCountry" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="10" Grid.Column="1" Width="auto" Name="textBoxPhone" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="11" Grid.Column="1" Width="auto" Name="textBoxEMail" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="8" Grid.Column="3" Width="auto" Name="textBoxCity" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="10" Grid.Column="3" Width="auto" Name="textBoxFax" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="8" Grid.Column="4" Width="auto" Name="textBoxCity" Margin="2" MaxLength="100" />
|
||||
<TextBox Grid.Row="10" Grid.Column="4" Width="auto" Name="textBoxFax" Margin="2" MaxLength="100" />
|
||||
|
||||
</Grid>
|
||||
</enictrl:EditWindowBase>
|
||||
|
||||
@ -50,6 +50,7 @@ namespace ENI2.EditControls
|
||||
this.textBoxRemarks.Text = this.IsDeparture ? this.TOWD.TowageOnDepartureRemarks : this.TOWA.TowageOnArrivalRemarks;
|
||||
this.comboBoxFlag.ItemsSource = bsmd.database.CREW.NationalityDict;
|
||||
this.comboBoxFlag.SelectedValue = this.IsDeparture ? this.TOWD.TowageOnDepartureFlag : this.TOWA.TowageOnArrivalFlag;
|
||||
this.comboBoxFlag.KeyUp += ComboBox_KeyUp;
|
||||
this.doubleUpDownBeam.Value = this.IsDeparture ? this.TOWD.TowageOnDepartureBeam_MTR : this.TOWA.TowageOnArrivalBeam_MTR;
|
||||
|
||||
this.textBoxOperatorName.Text = this.IsDeparture ? this.TOWD.TowageOnDepartureOperatorCompanyName : this.TOWA.TowageOnArrivalOperatorCompanyName;
|
||||
|
||||
522
ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs
generated
522
ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs
generated
@ -671,6 +671,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Bulk cargo shipping name.
|
||||
/// </summary>
|
||||
public static string textBulkCargoShippingName {
|
||||
get {
|
||||
return ResourceManager.GetString("textBulkCargoShippingName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Bunker on arrival.
|
||||
/// </summary>
|
||||
@ -824,6 +833,24 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cargo volume.
|
||||
/// </summary>
|
||||
public static string textCargoVolume {
|
||||
get {
|
||||
return ResourceManager.GetString("textCargoVolume", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Category.
|
||||
/// </summary>
|
||||
public static string textCategory {
|
||||
get {
|
||||
return ResourceManager.GetString("textCategory", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Changed.
|
||||
/// </summary>
|
||||
@ -878,6 +905,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Columns "o" of OBC Code (value 15.19).
|
||||
/// </summary>
|
||||
public static string textColumsOfIBC {
|
||||
get {
|
||||
return ResourceManager.GetString("textColumsOfIBC", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Comment.
|
||||
/// </summary>
|
||||
@ -932,6 +968,51 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Container No..
|
||||
/// </summary>
|
||||
public static string textContainerNo {
|
||||
get {
|
||||
return ResourceManager.GetString("textContainerNo", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Container position (Bay).
|
||||
/// </summary>
|
||||
public static string textContainerPositionBay {
|
||||
get {
|
||||
return ResourceManager.GetString("textContainerPositionBay", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Container position (Row).
|
||||
/// </summary>
|
||||
public static string textContainerPositionRow {
|
||||
get {
|
||||
return ResourceManager.GetString("textContainerPositionRow", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Container position (Tier).
|
||||
/// </summary>
|
||||
public static string textContainerPositionTier {
|
||||
get {
|
||||
return ResourceManager.GetString("textContainerPositionTier", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Control temperature.
|
||||
/// </summary>
|
||||
public static string textControlTemperature {
|
||||
get {
|
||||
return ResourceManager.GetString("textControlTemperature", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Copy data.
|
||||
/// </summary>
|
||||
@ -1022,6 +1103,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Critical safety index (CSI).
|
||||
/// </summary>
|
||||
public static string textCriticalSafetyIndex {
|
||||
get {
|
||||
return ResourceManager.GetString("textCriticalSafetyIndex", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cruise ship.
|
||||
/// </summary>
|
||||
@ -1049,6 +1139,33 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Dangerous goods arrival.
|
||||
/// </summary>
|
||||
public static string textDangerousGoodsArrival {
|
||||
get {
|
||||
return ResourceManager.GetString("textDangerousGoodsArrival", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Dangerous goods departure.
|
||||
/// </summary>
|
||||
public static string textDangerousGoodsDeparture {
|
||||
get {
|
||||
return ResourceManager.GetString("textDangerousGoodsDeparture", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Dangerous goods on board.
|
||||
/// </summary>
|
||||
public static string textDangerousGoodsOnBoard {
|
||||
get {
|
||||
return ResourceManager.GetString("textDangerousGoodsOnBoard", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Date from.
|
||||
/// </summary>
|
||||
@ -1157,6 +1274,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to DG manifest on board.
|
||||
/// </summary>
|
||||
public static string textDGManifestOnBoard {
|
||||
get {
|
||||
return ResourceManager.GetString("textDGManifestOnBoard", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Discharge.
|
||||
/// </summary>
|
||||
@ -1247,6 +1373,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Emergency temperature.
|
||||
/// </summary>
|
||||
public static string textEmergencyTemperature {
|
||||
get {
|
||||
return ResourceManager.GetString("textEmergencyTemperature", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Empty.
|
||||
/// </summary>
|
||||
@ -1328,6 +1463,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Excepted quantities.
|
||||
/// </summary>
|
||||
public static string textExceptedQuantities {
|
||||
get {
|
||||
return ResourceManager.GetString("textExceptedQuantities", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Exit.
|
||||
/// </summary>
|
||||
@ -1382,6 +1526,24 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Flashpoint.
|
||||
/// </summary>
|
||||
public static string textFlashpoint {
|
||||
get {
|
||||
return ResourceManager.GetString("textFlashpoint", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Flashpoint information.
|
||||
/// </summary>
|
||||
public static string textFlashpointInformation {
|
||||
get {
|
||||
return ResourceManager.GetString("textFlashpointInformation", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Full.
|
||||
/// </summary>
|
||||
@ -1409,6 +1571,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to General cargo.
|
||||
/// </summary>
|
||||
public static string textGeneralCargo {
|
||||
get {
|
||||
return ResourceManager.GetString("textGeneralCargo", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to General cargo description.
|
||||
/// </summary>
|
||||
@ -1427,6 +1598,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Gross quantity.
|
||||
/// </summary>
|
||||
public static string textGrossQuantity {
|
||||
get {
|
||||
return ResourceManager.GetString("textGrossQuantity", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Gross tonnage.
|
||||
/// </summary>
|
||||
@ -1454,6 +1634,24 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IBC item.
|
||||
/// </summary>
|
||||
public static string textIBCItem {
|
||||
get {
|
||||
return ResourceManager.GetString("textIBCItem", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IBC items.
|
||||
/// </summary>
|
||||
public static string textIBCItems {
|
||||
get {
|
||||
return ResourceManager.GetString("textIBCItems", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ID doc. number.
|
||||
/// </summary>
|
||||
@ -1472,6 +1670,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Identifier.
|
||||
/// </summary>
|
||||
public static string textIdentifier {
|
||||
get {
|
||||
return ResourceManager.GetString("textIdentifier", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Identity card.
|
||||
/// </summary>
|
||||
@ -1481,6 +1688,42 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IGC item.
|
||||
/// </summary>
|
||||
public static string textIGCItem {
|
||||
get {
|
||||
return ResourceManager.GetString("textIGCItem", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IGC items.
|
||||
/// </summary>
|
||||
public static string textIGCItems {
|
||||
get {
|
||||
return ResourceManager.GetString("textIGCItems", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IMDG item.
|
||||
/// </summary>
|
||||
public static string textIMDGItem {
|
||||
get {
|
||||
return ResourceManager.GetString("textIMDGItem", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IMDG items.
|
||||
/// </summary>
|
||||
public static string textIMDGItems {
|
||||
get {
|
||||
return ResourceManager.GetString("textIMDGItems", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IMO number.
|
||||
/// </summary>
|
||||
@ -1490,6 +1733,42 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IMO class / division / (compatibility group).
|
||||
/// </summary>
|
||||
public static string textIMOClassDivision {
|
||||
get {
|
||||
return ResourceManager.GetString("textIMOClassDivision", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IMO class / subclass.
|
||||
/// </summary>
|
||||
public static string textIMOClassSubclass {
|
||||
get {
|
||||
return ResourceManager.GetString("textIMOClassSubclass", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IMSBC item.
|
||||
/// </summary>
|
||||
public static string textIMSBCItem {
|
||||
get {
|
||||
return ResourceManager.GetString("textIMSBCItem", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IMSBC items.
|
||||
/// </summary>
|
||||
public static string textIMSBCItems {
|
||||
get {
|
||||
return ResourceManager.GetString("textIMSBCItems", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Incoming journey to port of call - ETA NOK.
|
||||
/// </summary>
|
||||
@ -1760,6 +2039,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Limited quantity.
|
||||
/// </summary>
|
||||
public static string textLimitedQuantity {
|
||||
get {
|
||||
return ResourceManager.GetString("textLimitedQuantity", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Loading.
|
||||
/// </summary>
|
||||
@ -1868,6 +2156,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Marine pollutant.
|
||||
/// </summary>
|
||||
public static string textMarinePollutant {
|
||||
get {
|
||||
return ResourceManager.GetString("textMarinePollutant", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Maritime health declaration.
|
||||
/// </summary>
|
||||
@ -1877,6 +2174,24 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to MARPOL Annex I item.
|
||||
/// </summary>
|
||||
public static string textMARPOLItem {
|
||||
get {
|
||||
return ResourceManager.GetString("textMARPOLItem", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to MARPOL Annex I items.
|
||||
/// </summary>
|
||||
public static string textMARPOLItems {
|
||||
get {
|
||||
return ResourceManager.GetString("textMARPOLItems", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Master.
|
||||
/// </summary>
|
||||
@ -1886,6 +2201,24 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Material hazardous only in bulk.
|
||||
/// </summary>
|
||||
public static string textMaterialHazard {
|
||||
get {
|
||||
return ResourceManager.GetString("textMaterialHazard", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Max acitivity.
|
||||
/// </summary>
|
||||
public static string textMaxActivity {
|
||||
get {
|
||||
return ResourceManager.GetString("textMaxActivity", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Maritime health declaration.
|
||||
/// </summary>
|
||||
@ -1913,6 +2246,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to MoU Baltic RoRo vessel.
|
||||
/// </summary>
|
||||
public static string textMoUBalticRoRo {
|
||||
get {
|
||||
return ResourceManager.GetString("textMoUBalticRoRo", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Muster book.
|
||||
/// </summary>
|
||||
@ -1949,6 +2291,24 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Net explosive mass.
|
||||
/// </summary>
|
||||
public static string textNetExplosiveMass {
|
||||
get {
|
||||
return ResourceManager.GetString("textNetExplosiveMass", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Net quantity.
|
||||
/// </summary>
|
||||
public static string textNetQuantity {
|
||||
get {
|
||||
return ResourceManager.GetString("textNetQuantity", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Create new id.
|
||||
/// </summary>
|
||||
@ -2003,6 +2363,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Number of packages.
|
||||
/// </summary>
|
||||
public static string textNumberOfPackages {
|
||||
get {
|
||||
return ResourceManager.GetString("textNumberOfPackages", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Operations.
|
||||
/// </summary>
|
||||
@ -2057,6 +2426,24 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Package type.
|
||||
/// </summary>
|
||||
public static string textPackageType {
|
||||
get {
|
||||
return ResourceManager.GetString("textPackageType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Packing group.
|
||||
/// </summary>
|
||||
public static string textPackingGroup {
|
||||
get {
|
||||
return ResourceManager.GetString("textPackingGroup", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Passenger.
|
||||
/// </summary>
|
||||
@ -2192,6 +2579,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Pollution category.
|
||||
/// </summary>
|
||||
public static string textPollutionCategory {
|
||||
get {
|
||||
return ResourceManager.GetString("textPollutionCategory", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Port area.
|
||||
/// </summary>
|
||||
@ -2264,6 +2660,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Port of discharge.
|
||||
/// </summary>
|
||||
public static string textPortOfDischarge {
|
||||
get {
|
||||
return ResourceManager.GetString("textPortOfDischarge", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Port of disembarkation.
|
||||
/// </summary>
|
||||
@ -2300,6 +2705,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Port of loading.
|
||||
/// </summary>
|
||||
public static string textPortOfLoading {
|
||||
get {
|
||||
return ResourceManager.GetString("textPortOfLoading", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Port of registry.
|
||||
/// </summary>
|
||||
@ -2354,6 +2768,24 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Product name.
|
||||
/// </summary>
|
||||
public static string textProductName {
|
||||
get {
|
||||
return ResourceManager.GetString("textProductName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Proper shipping name.
|
||||
/// </summary>
|
||||
public static string textProperShippingName {
|
||||
get {
|
||||
return ResourceManager.GetString("textProperShippingName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to PSC 72h.
|
||||
/// </summary>
|
||||
@ -2372,6 +2804,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Quantity.
|
||||
/// </summary>
|
||||
public static string textQuantity {
|
||||
get {
|
||||
return ResourceManager.GetString("textQuantity", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Check status.
|
||||
/// </summary>
|
||||
@ -2399,6 +2840,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Radionuclide name.
|
||||
/// </summary>
|
||||
public static string textRadioNuclideName {
|
||||
get {
|
||||
return ResourceManager.GetString("textRadioNuclideName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Reason for invalid ISSC.
|
||||
/// </summary>
|
||||
@ -2462,6 +2912,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Risks.
|
||||
/// </summary>
|
||||
public static string textRisks {
|
||||
get {
|
||||
return ResourceManager.GetString("textRisks", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Sanitary control exemption or certificate on board?.
|
||||
/// </summary>
|
||||
@ -2813,6 +3272,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Stowage position.
|
||||
/// </summary>
|
||||
public static string textStowagePosition {
|
||||
get {
|
||||
return ResourceManager.GetString("textStowagePosition", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Stowaways on board.
|
||||
/// </summary>
|
||||
@ -2849,6 +3317,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Subsidiary risks.
|
||||
/// </summary>
|
||||
public static string textSubsidiaryRisk {
|
||||
get {
|
||||
return ResourceManager.GetString("textSubsidiaryRisk", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Border police.
|
||||
/// </summary>
|
||||
@ -2921,6 +3398,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Technical name.
|
||||
/// </summary>
|
||||
public static string textTechnicalName {
|
||||
get {
|
||||
return ResourceManager.GetString("textTechnicalName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Ticket No.
|
||||
/// </summary>
|
||||
@ -2984,6 +3470,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Transport index.
|
||||
/// </summary>
|
||||
public static string textTransportIndex {
|
||||
get {
|
||||
return ResourceManager.GetString("textTransportIndex", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Transport mode.
|
||||
/// </summary>
|
||||
@ -3011,6 +3506,15 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to UN number.
|
||||
/// </summary>
|
||||
public static string textUNNumber {
|
||||
get {
|
||||
return ResourceManager.GetString("textUNNumber", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Username.
|
||||
/// </summary>
|
||||
@ -3056,6 +3560,24 @@ namespace ENI2.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Vehicle licence plate.
|
||||
/// </summary>
|
||||
public static string textVehicleLicensePlate {
|
||||
get {
|
||||
return ResourceManager.GetString("textVehicleLicensePlate", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Vessel class.
|
||||
/// </summary>
|
||||
public static string textVesselClass {
|
||||
get {
|
||||
return ResourceManager.GetString("textVesselClass", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Vessel name.
|
||||
/// </summary>
|
||||
|
||||
@ -1165,4 +1165,178 @@
|
||||
<data name="textTowageOnDeparture" xml:space="preserve">
|
||||
<value>Towage on departure</value>
|
||||
</data>
|
||||
<data name="textBulkCargoShippingName" xml:space="preserve">
|
||||
<value>Bulk cargo shipping name</value>
|
||||
</data>
|
||||
<data name="textCargoVolume" xml:space="preserve">
|
||||
<value>Cargo volume</value>
|
||||
</data>
|
||||
<data name="textCategory" xml:space="preserve">
|
||||
<value>Category</value>
|
||||
</data>
|
||||
<data name="textColumsOfIBC" xml:space="preserve">
|
||||
<value>Columns "o" of OBC Code (value 15.19)</value>
|
||||
</data>
|
||||
<data name="textContainerNo" xml:space="preserve">
|
||||
<value>Container No.</value>
|
||||
</data>
|
||||
<data name="textContainerPositionBay" xml:space="preserve">
|
||||
<value>Container position (Bay)</value>
|
||||
</data>
|
||||
<data name="textContainerPositionRow" xml:space="preserve">
|
||||
<value>Container position (Row)</value>
|
||||
</data>
|
||||
<data name="textContainerPositionTier" xml:space="preserve">
|
||||
<value>Container position (Tier)</value>
|
||||
</data>
|
||||
<data name="textControlTemperature" xml:space="preserve">
|
||||
<value>Control temperature</value>
|
||||
</data>
|
||||
<data name="textCriticalSafetyIndex" xml:space="preserve">
|
||||
<value>Critical safety index (CSI)</value>
|
||||
</data>
|
||||
<data name="textDangerousGoodsArrival" xml:space="preserve">
|
||||
<value>Dangerous goods arrival</value>
|
||||
</data>
|
||||
<data name="textDangerousGoodsDeparture" xml:space="preserve">
|
||||
<value>Dangerous goods departure</value>
|
||||
</data>
|
||||
<data name="textDangerousGoodsOnBoard" xml:space="preserve">
|
||||
<value>Dangerous goods on board</value>
|
||||
</data>
|
||||
<data name="textDGManifestOnBoard" xml:space="preserve">
|
||||
<value>DG manifest on board</value>
|
||||
</data>
|
||||
<data name="textEmergencyTemperature" xml:space="preserve">
|
||||
<value>Emergency temperature</value>
|
||||
</data>
|
||||
<data name="textExceptedQuantities" xml:space="preserve">
|
||||
<value>Excepted quantities</value>
|
||||
</data>
|
||||
<data name="textFlashpoint" xml:space="preserve">
|
||||
<value>Flashpoint</value>
|
||||
</data>
|
||||
<data name="textFlashpointInformation" xml:space="preserve">
|
||||
<value>Flashpoint information</value>
|
||||
</data>
|
||||
<data name="textGeneralCargo" xml:space="preserve">
|
||||
<value>General cargo</value>
|
||||
</data>
|
||||
<data name="textGrossQuantity" xml:space="preserve">
|
||||
<value>Gross quantity</value>
|
||||
</data>
|
||||
<data name="textIBCItems" xml:space="preserve">
|
||||
<value>IBC items</value>
|
||||
</data>
|
||||
<data name="textIGCItems" xml:space="preserve">
|
||||
<value>IGC items</value>
|
||||
</data>
|
||||
<data name="textIMDGItems" xml:space="preserve">
|
||||
<value>IMDG items</value>
|
||||
</data>
|
||||
<data name="textIMOClassDivision" xml:space="preserve">
|
||||
<value>IMO class / division / (compatibility group)</value>
|
||||
</data>
|
||||
<data name="textIMOClassSubclass" xml:space="preserve">
|
||||
<value>IMO class / subclass</value>
|
||||
</data>
|
||||
<data name="textIMSBCItems" xml:space="preserve">
|
||||
<value>IMSBC items</value>
|
||||
</data>
|
||||
<data name="textLimitedQuantity" xml:space="preserve">
|
||||
<value>Limited quantity</value>
|
||||
</data>
|
||||
<data name="textMarinePollutant" xml:space="preserve">
|
||||
<value>Marine pollutant</value>
|
||||
</data>
|
||||
<data name="textMARPOLItems" xml:space="preserve">
|
||||
<value>MARPOL Annex I items</value>
|
||||
</data>
|
||||
<data name="textMaterialHazard" xml:space="preserve">
|
||||
<value>Material hazardous only in bulk</value>
|
||||
</data>
|
||||
<data name="textMaxActivity" xml:space="preserve">
|
||||
<value>Max acitivity</value>
|
||||
</data>
|
||||
<data name="textMoUBalticRoRo" xml:space="preserve">
|
||||
<value>MoU Baltic RoRo vessel</value>
|
||||
</data>
|
||||
<data name="textNetExplosiveMass" xml:space="preserve">
|
||||
<value>Net explosive mass</value>
|
||||
</data>
|
||||
<data name="textNetQuantity" xml:space="preserve">
|
||||
<value>Net quantity</value>
|
||||
</data>
|
||||
<data name="textNumberOfPackages" xml:space="preserve">
|
||||
<value>Number of packages</value>
|
||||
</data>
|
||||
<data name="textPackageType" xml:space="preserve">
|
||||
<value>Package type</value>
|
||||
</data>
|
||||
<data name="textPackingGroup" xml:space="preserve">
|
||||
<value>Packing group</value>
|
||||
</data>
|
||||
<data name="textPollutionCategory" xml:space="preserve">
|
||||
<value>Pollution category</value>
|
||||
</data>
|
||||
<data name="textPortOfDischarge" xml:space="preserve">
|
||||
<value>Port of discharge</value>
|
||||
</data>
|
||||
<data name="textPortOfLoading" xml:space="preserve">
|
||||
<value>Port of loading</value>
|
||||
</data>
|
||||
<data name="textProductName" xml:space="preserve">
|
||||
<value>Product name</value>
|
||||
</data>
|
||||
<data name="textProperShippingName" xml:space="preserve">
|
||||
<value>Proper shipping name</value>
|
||||
</data>
|
||||
<data name="textQuantity" xml:space="preserve">
|
||||
<value>Quantity</value>
|
||||
</data>
|
||||
<data name="textRadioNuclideName" xml:space="preserve">
|
||||
<value>Radionuclide name</value>
|
||||
</data>
|
||||
<data name="textRisks" xml:space="preserve">
|
||||
<value>Risks</value>
|
||||
</data>
|
||||
<data name="textStowagePosition" xml:space="preserve">
|
||||
<value>Stowage position</value>
|
||||
</data>
|
||||
<data name="textSubsidiaryRisk" xml:space="preserve">
|
||||
<value>Subsidiary risks</value>
|
||||
</data>
|
||||
<data name="textTechnicalName" xml:space="preserve">
|
||||
<value>Technical name</value>
|
||||
</data>
|
||||
<data name="textTransportIndex" xml:space="preserve">
|
||||
<value>Transport index</value>
|
||||
</data>
|
||||
<data name="textUNNumber" xml:space="preserve">
|
||||
<value>UN number</value>
|
||||
</data>
|
||||
<data name="textVehicleLicensePlate" xml:space="preserve">
|
||||
<value>Vehicle licence plate</value>
|
||||
</data>
|
||||
<data name="textVesselClass" xml:space="preserve">
|
||||
<value>Vessel class</value>
|
||||
</data>
|
||||
<data name="textIdentifier" xml:space="preserve">
|
||||
<value>Identifier</value>
|
||||
</data>
|
||||
<data name="textIBCItem" xml:space="preserve">
|
||||
<value>IBC item</value>
|
||||
</data>
|
||||
<data name="textIGCItem" xml:space="preserve">
|
||||
<value>IGC item</value>
|
||||
</data>
|
||||
<data name="textIMDGItem" xml:space="preserve">
|
||||
<value>IMDG item</value>
|
||||
</data>
|
||||
<data name="textIMSBCItem" xml:space="preserve">
|
||||
<value>IMSBC item</value>
|
||||
</data>
|
||||
<data name="textMARPOLItem" xml:space="preserve">
|
||||
<value>MARPOL Annex I item</value>
|
||||
</data>
|
||||
</root>
|
||||
@ -31,7 +31,7 @@ namespace ENI2.Util
|
||||
Properties.Resources.textOtherLegalIdentityDocument
|
||||
};
|
||||
|
||||
public static string[] ShipSecurityLevels = { "1", "2", "3" };
|
||||
public static byte[] ShipSecurityLevels = { 1, 2, 3 };
|
||||
|
||||
public static string[] edifact8025Codes =
|
||||
{
|
||||
@ -61,6 +61,42 @@ namespace ENI2.Util
|
||||
"Waste disposal"
|
||||
};
|
||||
|
||||
public static string[] vesselClasses =
|
||||
{
|
||||
"INF1",
|
||||
"INF2",
|
||||
"INF3"
|
||||
};
|
||||
|
||||
public static string[] packingGroups =
|
||||
{
|
||||
"NONE",
|
||||
"I",
|
||||
"II",
|
||||
"III"
|
||||
};
|
||||
|
||||
public static string[] pollutionCategories =
|
||||
{
|
||||
"X",
|
||||
"Y",
|
||||
"Z",
|
||||
"OS"
|
||||
};
|
||||
|
||||
public static string[] hazards =
|
||||
{
|
||||
"P",
|
||||
"S",
|
||||
"S/P"
|
||||
};
|
||||
|
||||
public static string[] flashpointInformations =
|
||||
{
|
||||
"Not flammable",
|
||||
"Above 60°",
|
||||
"Less than 60°"
|
||||
};
|
||||
|
||||
public static List<string> EdiCodes
|
||||
{
|
||||
|
||||
Binary file not shown.
@ -2201,12 +2201,12 @@ namespace bsmd.ExcelReadService
|
||||
}
|
||||
|
||||
crew.CrewMemberLastName = lastName;
|
||||
reader.Conf.ConfirmText(crewLastName, lastName, crew.CrewMemberLastName.IsNullOrEmpty() ? ExcelReader.ReadState.WARN : ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(crewLastName, lastName, crew.CrewMemberLastName.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
crew.CrewMemberFirstName = firstName;
|
||||
reader.Conf.ConfirmText(crewFirstName, crew.CrewMemberFirstName, crew.CrewMemberFirstName.IsNullOrEmpty() ? ExcelReader.ReadState.WARN : ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(crewFirstName, crew.CrewMemberFirstName, crew.CrewMemberFirstName.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
crew.CrewMemberGender = reader.ReadGender(crewGender);
|
||||
crew.CrewMemberDuty = reader.ReadText(crewDuty);
|
||||
reader.Conf.ConfirmText(crewDuty, crew.CrewMemberDuty, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(crewDuty, crew.CrewMemberDuty, crew.CrewMemberDuty.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
|
||||
crew.CrewMemberNationality = reader.ReadNationality(crewNationality);
|
||||
crew.CrewMemberPlaceOfBirth = reader.ReadText(crewPlaceOfBirth);
|
||||
@ -2216,10 +2216,10 @@ namespace bsmd.ExcelReadService
|
||||
|
||||
crew.CrewMemberIdentityDocumentType = reader.ReadIdentityDocumentType(crewIdentDocType);
|
||||
crew.CrewMemberIdentityDocumentId = reader.ReadText(crewIdentDocId);
|
||||
reader.Conf.ConfirmText(crewIdentDocId, crew.CrewMemberIdentityDocumentId, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(crewIdentDocId, crew.CrewMemberIdentityDocumentId, crew.CrewMemberIdentityDocumentId.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
|
||||
crew.CrewMemberVisaNumber = reader.ReadText(crewVisaNo);
|
||||
reader.Conf.ConfirmText(crewVisaNo, crew.CrewMemberVisaNumber, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(crewVisaNo, crew.CrewMemberVisaNumber, crew.CrewMemberVisaNumber.IsNullOrEmpty() ? ExcelReader.ReadState.WARN : ExcelReader.ReadState.OK);
|
||||
|
||||
}
|
||||
}
|
||||
@ -2253,12 +2253,12 @@ namespace bsmd.ExcelReadService
|
||||
|
||||
crew.IsDeparture = true;
|
||||
crew.CrewMemberLastName = lastName;
|
||||
reader.Conf.ConfirmText(crewLastName, lastName, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(crewLastName, lastName, lastName.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
crew.CrewMemberFirstName = reader.ReadText(crewFirstName);
|
||||
reader.Conf.ConfirmText(crewFirstName, crew.CrewMemberFirstName, crew.CrewMemberFirstName.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
crew.CrewMemberGender = reader.ReadGender(crewGender);
|
||||
crew.CrewMemberDuty = reader.ReadText(crewDuty);
|
||||
reader.Conf.ConfirmText(crewDuty, crew.CrewMemberDuty, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(crewDuty, crew.CrewMemberDuty, crew.CrewMemberDuty.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
|
||||
crew.CrewMemberNationality = reader.ReadNationality(crewNationality);
|
||||
crew.CrewMemberPlaceOfBirth = reader.ReadText(crewPlaceOfBirth);
|
||||
@ -2268,10 +2268,10 @@ namespace bsmd.ExcelReadService
|
||||
|
||||
crew.CrewMemberIdentityDocumentType = reader.ReadIdentityDocumentType(crewIdentDocType);
|
||||
crew.CrewMemberIdentityDocumentId = reader.ReadText(crewIdentDocId);
|
||||
reader.Conf.ConfirmText(crewIdentDocId, crew.CrewMemberIdentityDocumentId, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(crewIdentDocId, crew.CrewMemberIdentityDocumentId, crew.CrewMemberIdentityDocumentId.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
|
||||
crew.CrewMemberVisaNumber = reader.ReadText(crewVisaNo);
|
||||
reader.Conf.ConfirmText(crewVisaNo, crew.CrewMemberVisaNumber, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(crewVisaNo, crew.CrewMemberVisaNumber, crew.CrewMemberVisaNumber.IsNullOrEmpty() ? ExcelReader.ReadState.WARN : ExcelReader.ReadState.OK);
|
||||
|
||||
}
|
||||
}
|
||||
@ -2316,25 +2316,25 @@ namespace bsmd.ExcelReadService
|
||||
}
|
||||
|
||||
pas.PassengerLastName = lastName;
|
||||
reader.Conf.ConfirmText(pasLastName, lastName, lastName.IsNullOrEmpty() ? ExcelReader.ReadState.WARN : ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasLastName, lastName, lastName.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
pas.PassengerFirstName = firstName;
|
||||
reader.Conf.ConfirmText(pasFirstName, pas.PassengerFirstName, pas.PassengerFirstName.IsNullOrEmpty() ? ExcelReader.ReadState.WARN : ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasFirstName, pas.PassengerFirstName, pas.PassengerFirstName.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
pas.PassengerGender = reader.ReadGender(pasGender);
|
||||
pas.PassengerNationality = reader.ReadNationality(pasNationality);
|
||||
// TODO: Nicht klar ob hier LOCODEs kommen oder nicht
|
||||
pas.PassengerPortOfEmbarkation = reader.ReadTextNoWhitespace(pasEmbarkation);
|
||||
reader.Conf.ConfirmText(pasEmbarkation, pas.PassengerPortOfEmbarkation, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasEmbarkation, pas.PassengerPortOfEmbarkation, pas.PassengerPortOfEmbarkation.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
pas.PassengerPortOfDisembarkation = reader.ReadTextNoWhitespace(pasDebarkation);
|
||||
reader.Conf.ConfirmText(pasDebarkation, pas.PassengerPortOfDisembarkation, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasDebarkation, pas.PassengerPortOfDisembarkation, pas.PassengerPortOfDisembarkation.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
pas.PassengerInTransit = reader.ReadBoolean(pasTransit);
|
||||
pas.PassengerPlaceOfBirth = reader.ReadText(pasPlaceOfBirth);
|
||||
reader.Conf.ConfirmText(pasPlaceOfBirth, pas.PassengerPlaceOfBirth, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasPlaceOfBirth, pas.PassengerPlaceOfBirth, pas.PassengerPlaceOfBirth.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL: ExcelReader.ReadState.OK);
|
||||
pas.PassengerDateOfBirth = reader.ReadBirthDate(pasDateOfBirth);
|
||||
pas.PassengerIdentityDocumentType = reader.ReadIdentityDocumentType(pasIdentDocType);
|
||||
pas.PassengerIdentityDocumentId = reader.ReadText(pasIdentDocId);
|
||||
reader.Conf.ConfirmText(pasIdentDocId, pas.PassengerIdentityDocumentId, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasIdentDocId, pas.PassengerIdentityDocumentId, pas.PassengerIdentityDocumentId.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
pas.PassengerVisaNumber = reader.ReadText(pasVisaNo);
|
||||
reader.Conf.ConfirmText(pasVisaNo, pas.PassengerVisaNumber, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasVisaNo, pas.PassengerVisaNumber, pas.PassengerVisaNumber.IsNullOrEmpty() ? ExcelReader.ReadState.WARN :ExcelReader.ReadState.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2377,18 +2377,18 @@ namespace bsmd.ExcelReadService
|
||||
pas.PassengerNationality = reader.ReadNationality(pasNationality);
|
||||
// TODO: Nicht klar ob hier LOCODEs kommen oder nicht
|
||||
pas.PassengerPortOfEmbarkation = reader.ReadTextNoWhitespace(pasEmbarkation);
|
||||
reader.Conf.ConfirmText(pasEmbarkation, pas.PassengerPortOfEmbarkation, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasEmbarkation, pas.PassengerPortOfEmbarkation, pas.PassengerPortOfEmbarkation.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
pas.PassengerPortOfDisembarkation = reader.ReadTextNoWhitespace(pasDebarkation);
|
||||
reader.Conf.ConfirmText(pasDebarkation, pas.PassengerPortOfDisembarkation, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasDebarkation, pas.PassengerPortOfDisembarkation, pas.PassengerPortOfDisembarkation.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
pas.PassengerInTransit = reader.ReadBoolean(pasTransit);
|
||||
pas.PassengerPlaceOfBirth = reader.ReadText(pasPlaceOfBirth);
|
||||
reader.Conf.ConfirmText(pasPlaceOfBirth, pas.PassengerPlaceOfBirth, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasPlaceOfBirth, pas.PassengerPlaceOfBirth, pas.PassengerPlaceOfBirth.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
pas.PassengerDateOfBirth = reader.ReadBirthDate(pasDateOfBirth);
|
||||
pas.PassengerIdentityDocumentType = reader.ReadIdentityDocumentType(pasIdentDocType);
|
||||
pas.PassengerIdentityDocumentId = reader.ReadText(pasIdentDocId);
|
||||
reader.Conf.ConfirmText(pasIdentDocId, pas.PassengerIdentityDocumentId, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasIdentDocId, pas.PassengerIdentityDocumentId, pas.PassengerIdentityDocumentId.IsNullOrEmpty() ? ExcelReader.ReadState.FAIL : ExcelReader.ReadState.OK);
|
||||
pas.PassengerVisaNumber = reader.ReadText(pasVisaNo);
|
||||
reader.Conf.ConfirmText(pasVisaNo, pas.PassengerVisaNumber, ExcelReader.ReadState.OK);
|
||||
reader.Conf.ConfirmText(pasVisaNo, pas.PassengerVisaNumber, pas.PassengerVisaNumber.IsNullOrEmpty() ? ExcelReader.ReadState.WARN : ExcelReader.ReadState.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2715,21 +2715,7 @@ namespace bsmd.ExcelReadService
|
||||
return result;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/*
|
||||
private static DateTime ConstructDate(string etaDateString, string etaTime)
|
||||
{
|
||||
DateTime result = DateTime.Now;
|
||||
if (DateTime.TryParse(etaDateString, out result))
|
||||
{
|
||||
TimeSpan sp;
|
||||
if (TimeSpan.TryParse(etaTime, out sp))
|
||||
result += sp;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region GetMessageWithType
|
||||
|
||||
|
||||
@ -11,6 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Text;
|
||||
|
||||
namespace bsmd.database
|
||||
{
|
||||
@ -154,6 +155,74 @@ namespace bsmd.database
|
||||
|
||||
public List<SubsidiaryRisks> SubsidiaryRiskList { get { return this.subsidiaryRisksList; } }
|
||||
|
||||
/// <summary>
|
||||
/// Hilfsproperty, um subsidiary risks als kommaseparierte Liste anzuzeigen (ENI-2)
|
||||
/// </summary>
|
||||
public string SubsidiaryRiskText
|
||||
{
|
||||
get
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i < this.subsidiaryRisksList.Count; i++)
|
||||
{
|
||||
if (i > 0)
|
||||
sb.Append(", ");
|
||||
sb.Append(this.subsidiaryRisksList[i].SubsidiaryRisk);
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value.IsNullOrEmpty())
|
||||
{
|
||||
foreach (SubsidiaryRisks sr in this.SubsidiaryRiskList)
|
||||
DBManager.Instance.Delete(sr);
|
||||
this.SubsidiaryRiskList.Clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] risks = value.Split(',');
|
||||
List<SubsidiaryRisks> foundList = new List<database.SubsidiaryRisks>();
|
||||
|
||||
for (int i = 0; i < risks.Length; i++)
|
||||
{
|
||||
string risk = risks[i].Trim();
|
||||
if (risk.Length > 0)
|
||||
{
|
||||
SubsidiaryRisks matchingRisk = null;
|
||||
foreach (SubsidiaryRisks sr in this.SubsidiaryRiskList)
|
||||
{
|
||||
if (sr.SubsidiaryRisk.Equals(risk, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
matchingRisk = sr;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (matchingRisk != null)
|
||||
{
|
||||
foundList.Add(matchingRisk);
|
||||
this.SubsidiaryRiskList.Remove(matchingRisk);
|
||||
}
|
||||
else
|
||||
{
|
||||
SubsidiaryRisks newRisk = new SubsidiaryRisks();
|
||||
newRisk.IMDGPosition = this;
|
||||
newRisk.SubsidiaryRisk = risk;
|
||||
foundList.Add(newRisk);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// remove remaining risk (no longer valid)
|
||||
foreach (SubsidiaryRisks remainingRisk in this.SubsidiaryRiskList)
|
||||
DBManager.Instance.Delete(remainingRisk);
|
||||
this.subsidiaryRisksList.Clear();
|
||||
// add existing and new risk
|
||||
this.subsidiaryRisksList.AddRange(foundList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string Identifier { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@ -2,6 +2,6 @@
|
||||
|
||||
[assembly: AssemblyCompany("Informatikbüro Daniel Schick")]
|
||||
[assembly: AssemblyProduct("BSMD NSW interface")]
|
||||
[assembly: AssemblyInformationalVersion("3.6.7")]
|
||||
[assembly: AssemblyInformationalVersion("3.6.8")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014-2017 Informatikbüro Daniel Schick. All rights reserved.")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
@ -1,4 +1,4 @@
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.6.7.*")]
|
||||
[assembly: AssemblyVersion("3.6.8.*")]
|
||||
|
||||
|
||||
@ -75,6 +75,14 @@ namespace bsmd.database
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string WasteTypeDisplayGrid
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format("{0} {1}", WasteType, WasteTypeDisplayV4);
|
||||
}
|
||||
}
|
||||
|
||||
[Validation(ValidationCode.NOT_NULL)]
|
||||
public int? WasteType { get; set; }
|
||||
@ -160,6 +168,7 @@ namespace bsmd.database
|
||||
|
||||
break;
|
||||
}
|
||||
query += " ORDER BY WasteType";
|
||||
|
||||
cmd.CommandText = query;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user