From 542b495d95f95ac0499effe3fe89999f51ebbebb Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Wed, 16 Aug 2023 16:06:15 +0200 Subject: [PATCH] fixed yaml and added additional input fields --- misc/BreCalApi.cs | 99 ++++++++++++++----- misc/BreCalApi.yaml | 15 ++- src/BreCalClient/EditShipcallControl.xaml | 31 ++++++ src/BreCalClient/EditShipcallControl.xaml.cs | 8 ++ src/BreCalClient/MainWindow.xaml.cs | 6 +- .../Resources/Resources.Designer.cs | 65 +++++++++++- src/BreCalClient/Resources/Resources.de.resx | 15 +++ src/BreCalClient/Resources/Resources.resx | 23 ++++- src/BreCalClient/SearchFilterControl.xaml | 4 +- src/BreCalClient/SearchFilterControl.xaml.cs | 5 + 10 files changed, 239 insertions(+), 32 deletions(-) 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 @@ +