diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs
index c64a353..c0f8c34 100644
--- a/misc/BreCalApi.cs
+++ b/misc/BreCalApi.cs
@@ -1,7 +1,7 @@
//----------------------
//
-// Generated REST API Client Code Generator v1.7.17.0 on 16.08.2023 11:42:30
+// Generated REST API Client Code Generator v1.7.17.0 on 16.08.2023 15:05:44
// Using the tool OpenAPI Generator v6.6.0
//
//----------------------
@@ -4704,13 +4704,19 @@ namespace BreCalClient.misc.Model
/// Initializes a new instance of the class.
///
/// id.
- /// name1.
- /// name2.
- public Berth(int id = default(int), string name1 = default(string), string name2 = default(string))
+ /// name.
+ /// participantId.
+ /// _lock.
+ /// created.
+ /// modified.
+ public Berth(int id = default(int), string name = default(string), int? participantId = default(int?), bool? _lock = default(bool?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
{
this.Id = id;
- this.Name1 = name1;
- this.Name2 = name2;
+ this.Name = name;
+ this.ParticipantId = participantId;
+ this.Lock = _lock;
+ this.Created = created;
+ this.Modified = modified;
}
///
/// Gets or Sets Id
@@ -4718,15 +4724,30 @@ namespace BreCalClient.misc.Model
[DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
- /// Gets or Sets Name1
+ /// Gets or Sets Name
///
- [DataMember(Name = "name1", EmitDefaultValue = true)]
- public string Name1 { get; set; }
+ [DataMember(Name = "name", EmitDefaultValue = true)]
+ public string Name { get; set; }
///
- /// Gets or Sets Name2
+ /// Gets or Sets ParticipantId
///
- [DataMember(Name = "name2", EmitDefaultValue = true)]
- public string Name2 { get; set; }
+ [DataMember(Name = "participant_id", EmitDefaultValue = true)]
+ public int? ParticipantId { get; set; }
+ ///
+ /// Gets or Sets Lock
+ ///
+ [DataMember(Name = "lock", EmitDefaultValue = true)]
+ public bool? Lock { get; set; }
+ ///
+ /// Gets or Sets Created
+ ///
+ [DataMember(Name = "created", EmitDefaultValue = true)]
+ public DateTime Created { get; set; }
+ ///
+ /// Gets or Sets Modified
+ ///
+ [DataMember(Name = "modified", EmitDefaultValue = true)]
+ public DateTime? Modified { get; set; }
///
/// Returns the string presentation of the object
///
@@ -4736,8 +4757,11 @@ namespace BreCalClient.misc.Model
StringBuilder sb = new StringBuilder();
sb.Append("class Berth {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
- sb.Append(" Name1: ").Append(Name1).Append("\n");
- sb.Append(" Name2: ").Append(Name2).Append("\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
+ sb.Append(" ParticipantId: ").Append(ParticipantId).Append("\n");
+ sb.Append(" Lock: ").Append(Lock).Append("\n");
+ sb.Append(" Created: ").Append(Created).Append("\n");
+ sb.Append(" Modified: ").Append(Modified).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -4775,14 +4799,29 @@ namespace BreCalClient.misc.Model
this.Id.Equals(input.Id)
) &&
(
- this.Name1 == input.Name1 ||
- (this.Name1 != null &&
- this.Name1.Equals(input.Name1))
+ this.Name == input.Name ||
+ (this.Name != null &&
+ this.Name.Equals(input.Name))
) &&
(
- this.Name2 == input.Name2 ||
- (this.Name2 != null &&
- this.Name2.Equals(input.Name2))
+ this.ParticipantId == input.ParticipantId ||
+ (this.ParticipantId != null &&
+ this.ParticipantId.Equals(input.ParticipantId))
+ ) &&
+ (
+ this.Lock == input.Lock ||
+ (this.Lock != null &&
+ this.Lock.Equals(input.Lock))
+ ) &&
+ (
+ this.Created == input.Created ||
+ (this.Created != null &&
+ this.Created.Equals(input.Created))
+ ) &&
+ (
+ this.Modified == input.Modified ||
+ (this.Modified != null &&
+ this.Modified.Equals(input.Modified))
);
}
///
@@ -4795,13 +4834,25 @@ namespace BreCalClient.misc.Model
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.Id.GetHashCode();
- if (this.Name1 != null)
+ if (this.Name != null)
{
- hashCode = (hashCode * 59) + this.Name1.GetHashCode();
+ hashCode = (hashCode * 59) + this.Name.GetHashCode();
}
- if (this.Name2 != null)
+ if (this.ParticipantId != null)
{
- hashCode = (hashCode * 59) + this.Name2.GetHashCode();
+ hashCode = (hashCode * 59) + this.ParticipantId.GetHashCode();
+ }
+ if (this.Lock != null)
+ {
+ hashCode = (hashCode * 59) + this.Lock.GetHashCode();
+ }
+ if (this.Created != null)
+ {
+ hashCode = (hashCode * 59) + this.Created.GetHashCode();
+ }
+ if (this.Modified != null)
+ {
+ hashCode = (hashCode * 59) + this.Modified.GetHashCode();
}
return hashCode;
}
diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml
index c7fbdce..254c462 100644
--- a/misc/BreCalApi.yaml
+++ b/misc/BreCalApi.yaml
@@ -437,10 +437,21 @@ components:
properties:
id:
type: integer
- name1:
+ name:
type: string
- name2:
+ participant_id:
+ type: integer
+ nullable: true
+ lock:
+ type: boolean
+ nullable: true
+ created:
type: string
+ format: date-time
+ modified:
+ type: string
+ format: date-time
+ nullable: true
berth_list:
type: array
diff --git a/src/BreCalClient/EditShipcallControl.xaml b/src/BreCalClient/EditShipcallControl.xaml
index e6da3af..864dd16 100644
--- a/src/BreCalClient/EditShipcallControl.xaml
+++ b/src/BreCalClient/EditShipcallControl.xaml
@@ -29,6 +29,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/BreCalClient/EditShipcallControl.xaml.cs b/src/BreCalClient/EditShipcallControl.xaml.cs
index fd40810..ced0f09 100644
--- a/src/BreCalClient/EditShipcallControl.xaml.cs
+++ b/src/BreCalClient/EditShipcallControl.xaml.cs
@@ -34,6 +34,10 @@ namespace BreCalClient
public List Participants { get; set; } = new();
+ public List Berths { get; set; } = new();
+
+ public List Ships { get; set; } = new();
+
private void Window_Loaded(object sender, RoutedEventArgs e)
{
List aList = new();
@@ -57,6 +61,10 @@ namespace BreCalClient
this.comboBoxTug.ItemsSource = tList;
this.comboBoxTerminal.ItemsSource = terList;
+ this.comboBoxShip.ItemsSource = Ships;
+ this.comboBoxCategories.ItemsSource = Enum.GetValues(typeof(Shipcall.TypeEnum));
+ this.comboBoxArrivalBerth.ItemsSource = this.Berths;
+ this.comboBoxDepartureBerth.ItemsSource = this.Berths;
}
private void buttonOK_Click(object sender, RoutedEventArgs e)
diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs
index 4146447..b15167f 100644
--- a/src/BreCalClient/MainWindow.xaml.cs
+++ b/src/BreCalClient/MainWindow.xaml.cs
@@ -96,7 +96,9 @@ namespace BreCalClient
{
EditShipcallControl esc = new()
{
- Participants = this._participants
+ Participants = this._participants,
+ Ships = this._ships,
+ Berths = this._berths
};
if (esc.ShowDialog() ?? false)
@@ -180,7 +182,7 @@ namespace BreCalClient
if (this._shipLookupDict.ContainsKey(shipcall.ShipId))
selectedSCMModel.Ship = this._shipLookupDict[shipcall.ShipId];
if (this._berthLookupDict.ContainsKey(shipcall.ArrivalBerthId ?? 0))
- selectedSCMModel.Berth = this._berthLookupDict[shipcall.ArrivalBerthId ?? 0].Name1;
+ selectedSCMModel.Berth = this._berthLookupDict[shipcall.ArrivalBerthId ?? 0].Name;
_controlModels.Add(selectedSCMModel);
this.Dispatcher.Invoke(new Action(() =>
diff --git a/src/BreCalClient/Resources/Resources.Designer.cs b/src/BreCalClient/Resources/Resources.Designer.cs
index 2bc7bc6..3c02483 100644
--- a/src/BreCalClient/Resources/Resources.Designer.cs
+++ b/src/BreCalClient/Resources/Resources.Designer.cs
@@ -188,6 +188,15 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Arrival terminal.
+ ///
+ public static string textArrivalTerminal {
+ get {
+ return ResourceManager.GetString("textArrivalTerminal", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Berth.
///
@@ -233,6 +242,15 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Departure terminal.
+ ///
+ public static string textDepartureTerminal {
+ get {
+ return ResourceManager.GetString("textDepartureTerminal", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Edit ship call.
///
@@ -350,6 +368,15 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Pilot required.
+ ///
+ public static string textPilotRequired {
+ get {
+ return ResourceManager.GetString("textPilotRequired", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Search.
///
@@ -359,6 +386,15 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Ship.
+ ///
+ public static string textShip {
+ get {
+ return ResourceManager.GetString("textShip", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Ship length.
///
@@ -378,7 +414,7 @@ namespace BreCalClient.Resources {
}
///
- /// Looks up a localized string similar to .
+ /// Looks up a localized string similar to Terminal.
///
public static string textTerminal {
get {
@@ -404,6 +440,24 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Tug required.
+ ///
+ public static string textTugRequired {
+ get {
+ return ResourceManager.GetString("textTugRequired", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Type.
+ ///
+ public static string textType {
+ get {
+ return ResourceManager.GetString("textType", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to User login.
///
@@ -422,6 +476,15 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Voyage.
+ ///
+ public static string textVoyage {
+ get {
+ return ResourceManager.GetString("textVoyage", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized resource of type System.Byte[].
///
diff --git a/src/BreCalClient/Resources/Resources.de.resx b/src/BreCalClient/Resources/Resources.de.resx
index a472445..362a339 100644
--- a/src/BreCalClient/Resources/Resources.de.resx
+++ b/src/BreCalClient/Resources/Resources.de.resx
@@ -151,6 +151,9 @@
Agentur
+
+ Terminal Ankunft
+
Liegeplatz
@@ -166,6 +169,9 @@
Kategorien
+
+ Terminal Abfahrt
+
Schiffsanlauf bearbeiten
@@ -208,6 +214,9 @@
Suche
+
+ Schiff
+
Schiffslänge
@@ -223,12 +232,18 @@
Schlepper
+
+ Typ
+
Anmeldung
Benutzername
+
+ Reise
+
trafficlight_green.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
diff --git a/src/BreCalClient/Resources/Resources.resx b/src/BreCalClient/Resources/Resources.resx
index 82de618..bd3f0f8 100644
--- a/src/BreCalClient/Resources/Resources.resx
+++ b/src/BreCalClient/Resources/Resources.resx
@@ -157,6 +157,9 @@
Agency
+
+ Arrival terminal
+
Berth
@@ -172,6 +175,9 @@
Categories
+
+ Departure terminal
+
Edit ship call
@@ -211,9 +217,15 @@
Pilot
+
+ Pilot required
+
Search
+
+ Ship
+
Ship length
@@ -221,7 +233,7 @@
Sort order
-
+ Terminal
to
@@ -229,12 +241,21 @@
Tug
+
+ Tug required
+
+
+ Type
+
User login
User name
+
+ Voyage
+
trafficlight_green.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
diff --git a/src/BreCalClient/SearchFilterControl.xaml b/src/BreCalClient/SearchFilterControl.xaml
index f63ff3a..c122238 100644
--- a/src/BreCalClient/SearchFilterControl.xaml
+++ b/src/BreCalClient/SearchFilterControl.xaml
@@ -7,7 +7,7 @@
xmlns:local="clr-namespace:BreCalClient"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
mc:Ignorable="d"
- d:DesignHeight="56" d:DesignWidth="800">
+ d:DesignHeight="56" d:DesignWidth="800" Loaded="UserControl_Loaded">
@@ -75,7 +75,7 @@
-
+
diff --git a/src/BreCalClient/SearchFilterControl.xaml.cs b/src/BreCalClient/SearchFilterControl.xaml.cs
index f4a8d66..4b675f7 100644
--- a/src/BreCalClient/SearchFilterControl.xaml.cs
+++ b/src/BreCalClient/SearchFilterControl.xaml.cs
@@ -55,6 +55,11 @@ namespace BreCalClient
private void logoImage_MouseUp(object sender, MouseButtonEventArgs e)
{
LogoImageClicked?.Invoke();
+ }
+
+ private void UserControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
+ {
+ this.comboBoxCategories.ItemsSource = Enum.GetValues(typeof(Shipcall.TypeEnum));
}
#endregion