diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs
index e2237d7..741fbf4 100644
--- a/misc/BreCalApi.cs
+++ b/misc/BreCalApi.cs
@@ -1,8 +1,8 @@
//----------------------
//
-// Generated REST API Client Code Generator v1.8.7.0 on 13.10.2023 10:51:41
-// Using the tool OpenAPI Generator v7.0.1
+// Generated REST API Client Code Generator v1.8.4.0 on 01.11.2023 15:27:09
+// Using the tool OpenAPI Generator v7.0.0
//
//----------------------
@@ -70,7 +70,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of all berths registered
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -88,7 +88,7 @@ namespace BreCalClient.misc.Api
/// Returns a JWT session token and user data if successful
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Login credentials
@@ -108,7 +108,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of notifications pursuant to a specified participant and ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -128,7 +128,7 @@ namespace BreCalClient.misc.Api
/// gets a particular participant entry corresponding to user id
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -139,19 +139,21 @@ namespace BreCalClient.misc.Api
/// Gets a list of ship calls
///
/// Thrown when fails to make API call
+ /// number of days in the past to include in the result. *Example: 7*. (optional)
/// Index associated with the operation.
/// List<Shipcall>
- List ShipcallsGet(int operationIndex = 0);
+ List ShipcallsGet(int? pastDays = default(int?), int operationIndex = 0);
///
/// Gets a list of ship calls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
+ /// number of days in the past to include in the result. *Example: 7*. (optional)
/// Index associated with the operation.
/// ApiResponse of List<Shipcall>
- ApiResponse> ShipcallsGetWithHttpInfo(int operationIndex = 0);
+ ApiResponse> ShipcallsGetWithHttpInfo(int? pastDays = default(int?), int operationIndex = 0);
///
/// Create a new ship call
///
@@ -164,7 +166,7 @@ namespace BreCalClient.misc.Api
/// Create a new ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -183,7 +185,7 @@ namespace BreCalClient.misc.Api
/// Updates a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -201,7 +203,7 @@ namespace BreCalClient.misc.Api
/// gets a list of registered shipcalls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -219,7 +221,7 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call.
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
///
@@ -238,7 +240,7 @@ namespace BreCalClient.misc.Api
/// Get all recorded times for a a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -257,7 +259,7 @@ namespace BreCalClient.misc.Api
/// Create a new times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -276,7 +278,7 @@ namespace BreCalClient.misc.Api
/// Update a times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -295,7 +297,7 @@ namespace BreCalClient.misc.Api
/// Update user details (first/last name, phone, password)
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// User details
@@ -314,7 +316,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of all berths registered
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -325,7 +327,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of all berths registered
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -336,7 +338,7 @@ namespace BreCalClient.misc.Api
/// Returns a JWT session token and user data if successful
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Login credentials
@@ -348,7 +350,7 @@ namespace BreCalClient.misc.Api
/// Returns a JWT session token and user data if successful
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Login credentials
@@ -360,7 +362,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of notifications pursuant to a specified participant and ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -373,7 +375,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of notifications pursuant to a specified participant and ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -386,7 +388,7 @@ namespace BreCalClient.misc.Api
/// gets a particular participant entry corresponding to user id
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -398,7 +400,7 @@ namespace BreCalClient.misc.Api
/// gets a particular participant entry corresponding to user id
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -410,29 +412,31 @@ namespace BreCalClient.misc.Api
/// Gets a list of ship calls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
+ /// number of days in the past to include in the result. *Example: 7*. (optional)
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Shipcall>
- System.Threading.Tasks.Task> ShipcallsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> ShipcallsGetAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Gets a list of ship calls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
+ /// number of days in the past to include in the result. *Example: 7*. (optional)
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Shipcall>)
- System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Create a new ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -444,7 +448,7 @@ namespace BreCalClient.misc.Api
/// Create a new ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -456,7 +460,7 @@ namespace BreCalClient.misc.Api
/// Updates a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -468,7 +472,7 @@ namespace BreCalClient.misc.Api
/// Updates a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -480,7 +484,7 @@ namespace BreCalClient.misc.Api
/// gets a list of registered shipcalls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -491,7 +495,7 @@ namespace BreCalClient.misc.Api
/// gets a list of registered shipcalls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -502,7 +506,7 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call.
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
///
@@ -514,7 +518,7 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call.
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
///
@@ -526,7 +530,7 @@ namespace BreCalClient.misc.Api
/// Get all recorded times for a a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -538,7 +542,7 @@ namespace BreCalClient.misc.Api
/// Get all recorded times for a a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -550,7 +554,7 @@ namespace BreCalClient.misc.Api
/// Create a new times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -562,7 +566,7 @@ namespace BreCalClient.misc.Api
/// Create a new times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -574,7 +578,7 @@ namespace BreCalClient.misc.Api
/// Update a times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -586,7 +590,7 @@ namespace BreCalClient.misc.Api
/// Update a times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -598,7 +602,7 @@ namespace BreCalClient.misc.Api
/// Update user details (first/last name, phone, password)
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// User details
@@ -610,7 +614,7 @@ namespace BreCalClient.misc.Api
/// Update user details (first/last name, phone, password)
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// User details
@@ -724,7 +728,7 @@ namespace BreCalClient.misc.Api
set { _exceptionFactory = value; }
}
///
- /// Gets a list of all berths registered
+ /// Gets a list of all berths registered
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -735,7 +739,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of all berths registered
+ /// Gets a list of all berths registered
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -779,7 +783,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of all berths registered
+ /// Gets a list of all berths registered
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -791,7 +795,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of all berths registered
+ /// Gets a list of all berths registered
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -836,7 +840,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Returns a JWT session token and user data if successful
+ /// Returns a JWT session token and user data if successful
///
/// Thrown when fails to make API call
/// Login credentials
@@ -848,7 +852,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Returns a JWT session token and user data if successful
+ /// Returns a JWT session token and user data if successful
///
/// Thrown when fails to make API call
/// Login credentials
@@ -900,7 +904,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Returns a JWT session token and user data if successful
+ /// Returns a JWT session token and user data if successful
///
/// Thrown when fails to make API call
/// Login credentials
@@ -913,7 +917,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Returns a JWT session token and user data if successful
+ /// Returns a JWT session token and user data if successful
///
/// Thrown when fails to make API call
/// Login credentials
@@ -966,7 +970,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of notifications pursuant to a specified participant and ship call
+ /// Gets a list of notifications pursuant to a specified participant and ship call
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -979,7 +983,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of notifications pursuant to a specified participant and ship call
+ /// Gets a list of notifications pursuant to a specified participant and ship call
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -1027,7 +1031,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of notifications pursuant to a specified participant and ship call
+ /// Gets a list of notifications pursuant to a specified participant and ship call
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -1041,7 +1045,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of notifications pursuant to a specified participant and ship call
+ /// Gets a list of notifications pursuant to a specified participant and ship call
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -1090,7 +1094,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// gets a particular participant entry corresponding to user id
+ /// gets a particular participant entry corresponding to user id
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -1102,7 +1106,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// gets a particular participant entry corresponding to user id
+ /// gets a particular participant entry corresponding to user id
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -1151,7 +1155,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// gets a particular participant entry corresponding to user id
+ /// gets a particular participant entry corresponding to user id
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -1164,7 +1168,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// gets a particular participant entry corresponding to user id
+ /// gets a particular participant entry corresponding to user id
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -1214,23 +1218,25 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of ship calls
+ /// Gets a list of ship calls
///
/// Thrown when fails to make API call
+ /// number of days in the past to include in the result. *Example: 7*. (optional)
/// Index associated with the operation.
/// List<Shipcall>
- public List ShipcallsGet(int operationIndex = 0)
+ public List ShipcallsGet(int? pastDays = default(int?), int operationIndex = 0)
{
- BreCalClient.misc.Client.ApiResponse> localVarResponse = ShipcallsGetWithHttpInfo();
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = ShipcallsGetWithHttpInfo(pastDays);
return localVarResponse.Data;
}
///
- /// Gets a list of ship calls
+ /// Gets a list of ship calls
///
/// Thrown when fails to make API call
+ /// number of days in the past to include in the result. *Example: 7*. (optional)
/// Index associated with the operation.
/// ApiResponse of List<Shipcall>
- public BreCalClient.misc.Client.ApiResponse> ShipcallsGetWithHttpInfo(int operationIndex = 0)
+ public BreCalClient.misc.Client.ApiResponse> ShipcallsGetWithHttpInfo(int? pastDays = default(int?), int operationIndex = 0)
{
BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
string[] _contentTypes = new string[] {
@@ -1249,6 +1255,10 @@ namespace BreCalClient.misc.Api
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
+ if (pastDays != null)
+ {
+ localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "past_days", pastDays));
+ }
localVarRequestOptions.Operation = "DefaultApi.ShipcallsGet";
localVarRequestOptions.OperationIndex = operationIndex;
// authentication (ApiKey) required
@@ -1269,25 +1279,27 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of ship calls
+ /// Gets a list of ship calls
///
/// Thrown when fails to make API call
+ /// number of days in the past to include in the result. *Example: 7*. (optional)
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Shipcall>
- public async System.Threading.Tasks.Task> ShipcallsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> ShipcallsGetAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BreCalClient.misc.Client.ApiResponse> localVarResponse = await ShipcallsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = await ShipcallsGetWithHttpInfoAsync(pastDays, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
- /// Gets a list of ship calls
+ /// Gets a list of ship calls
///
/// Thrown when fails to make API call
+ /// number of days in the past to include in the result. *Example: 7*. (optional)
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Shipcall>)
- public async System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
string[] _contentTypes = new string[] {
@@ -1306,6 +1318,10 @@ namespace BreCalClient.misc.Api
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
+ if (pastDays != null)
+ {
+ localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "past_days", pastDays));
+ }
localVarRequestOptions.Operation = "DefaultApi.ShipcallsGet";
localVarRequestOptions.OperationIndex = operationIndex;
// authentication (ApiKey) required
@@ -1326,7 +1342,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Create a new ship call
+ /// Create a new ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -1338,7 +1354,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Create a new ship call
+ /// Create a new ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -1390,7 +1406,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Create a new ship call
+ /// Create a new ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -1403,7 +1419,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Create a new ship call
+ /// Create a new ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -1456,7 +1472,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Updates a ship call
+ /// Updates a ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -1468,7 +1484,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Updates a ship call
+ /// Updates a ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -1520,7 +1536,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Updates a ship call
+ /// Updates a ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -1533,7 +1549,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Updates a ship call
+ /// Updates a ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -1586,7 +1602,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// gets a list of registered shipcalls
+ /// gets a list of registered shipcalls
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -1597,7 +1613,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// gets a list of registered shipcalls
+ /// gets a list of registered shipcalls
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -1641,7 +1657,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// gets a list of registered shipcalls
+ /// gets a list of registered shipcalls
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -1653,7 +1669,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// gets a list of registered shipcalls
+ /// gets a list of registered shipcalls
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -1698,7 +1714,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Delete a times entry for a ship call.
+ /// Delete a times entry for a ship call.
///
/// Thrown when fails to make API call
///
@@ -1709,7 +1725,7 @@ namespace BreCalClient.misc.Api
TimesDeleteWithHttpInfo(id);
}
///
- /// Delete a times entry for a ship call.
+ /// Delete a times entry for a ship call.
///
/// Thrown when fails to make API call
///
@@ -1755,7 +1771,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Delete a times entry for a ship call.
+ /// Delete a times entry for a ship call.
///
/// Thrown when fails to make API call
///
@@ -1767,7 +1783,7 @@ namespace BreCalClient.misc.Api
await TimesDeleteWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false);
}
///
- /// Delete a times entry for a ship call.
+ /// Delete a times entry for a ship call.
///
/// Thrown when fails to make API call
///
@@ -1814,7 +1830,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Get all recorded times for a a ship call
+ /// Get all recorded times for a a ship call
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -1826,7 +1842,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Get all recorded times for a a ship call
+ /// Get all recorded times for a a ship call
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -1875,7 +1891,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Get all recorded times for a a ship call
+ /// Get all recorded times for a a ship call
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -1888,7 +1904,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Get all recorded times for a a ship call
+ /// Get all recorded times for a a ship call
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -1938,7 +1954,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Create a new times entry for a ship call
+ /// Create a new times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -1950,7 +1966,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Create a new times entry for a ship call
+ /// Create a new times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -2002,7 +2018,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Create a new times entry for a ship call
+ /// Create a new times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -2015,7 +2031,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Create a new times entry for a ship call
+ /// Create a new times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -2068,7 +2084,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Update a times entry for a ship call
+ /// Update a times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -2080,7 +2096,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Update a times entry for a ship call
+ /// Update a times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -2132,7 +2148,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Update a times entry for a ship call
+ /// Update a times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -2145,7 +2161,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Update a times entry for a ship call
+ /// Update a times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -2198,7 +2214,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Update user details (first/last name, phone, password)
+ /// Update user details (first/last name, phone, password)
///
/// Thrown when fails to make API call
/// User details
@@ -2209,7 +2225,7 @@ namespace BreCalClient.misc.Api
UserPutWithHttpInfo(userDetails);
}
///
- /// Update user details (first/last name, phone, password)
+ /// Update user details (first/last name, phone, password)
///
/// Thrown when fails to make API call
/// User details
@@ -2261,7 +2277,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Update user details (first/last name, phone, password)
+ /// Update user details (first/last name, phone, password)
///
/// Thrown when fails to make API call
/// User details
@@ -2273,7 +2289,7 @@ namespace BreCalClient.misc.Api
await UserPutWithHttpInfoAsync(userDetails, operationIndex, cancellationToken).ConfigureAwait(false);
}
///
- /// Update user details (first/last name, phone, password)
+ /// Update user details (first/last name, phone, password)
///
/// Thrown when fails to make API call
/// User details
@@ -3566,7 +3582,7 @@ namespace BreCalClient.misc.Client
{
Proxy = null;
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.0.0/csharp");
- BasePath = "https://brecaltest.bsmd-emswe.eu";
+ BasePath = "https://brecaldevel.bsmd-emswe.eu";
DefaultHeaders = new ConcurrentDictionary();
ApiKey = new ConcurrentDictionary();
ApiKeyPrefix = new ConcurrentDictionary();
@@ -3574,7 +3590,7 @@ namespace BreCalClient.misc.Client
{
{
new Dictionary {
- {"url", "https://brecaltest.bsmd-emswe.eu"},
+ {"url", "https://brecaldevel.bsmd-emswe.eu"},
{"description", "Test server hosted on vcup"},
}
}
@@ -3593,7 +3609,7 @@ namespace BreCalClient.misc.Client
IDictionary defaultHeaders,
IDictionary apiKey,
IDictionary apiKeyPrefix,
- string basePath = "https://brecaltest.bsmd-emswe.eu") : this()
+ string basePath = "https://brecaldevel.bsmd-emswe.eu") : this()
{
if (string.IsNullOrWhiteSpace(basePath))
throw new ArgumentException("The provided basePath is invalid.", "basePath");
@@ -3622,7 +3638,7 @@ namespace BreCalClient.misc.Client
///
/// Gets or sets the base path for API access.
///
- public virtual string BasePath
+ public virtual string BasePath
{
get { return _basePath; }
set { _basePath = value; }
@@ -5016,41 +5032,41 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.OwnerId == input.OwnerId ||
(this.OwnerId != null &&
this.OwnerId.Equals(input.OwnerId))
- ) &&
+ ) &&
(
this.AuthorityId == input.AuthorityId ||
(this.AuthorityId != null &&
this.AuthorityId.Equals(input.AuthorityId))
- ) &&
+ ) &&
(
this.VarLock == input.VarLock ||
(this.VarLock != null &&
this.VarLock.Equals(input.VarLock))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -5204,12 +5220,12 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Username == input.Username ||
(this.Username != null &&
this.Username.Equals(input.Username))
- ) &&
+ ) &&
(
this.Password == input.Password ||
(this.Password != null &&
@@ -5329,7 +5345,7 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Message == input.Message ||
(this.Message != null &&
@@ -5434,7 +5450,7 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.VarId == input.VarId ||
this.VarId.Equals(input.VarId)
@@ -5491,9 +5507,10 @@ namespace BreCalClient.misc.Model
/// lastName.
/// userName.
/// userPhone.
+ /// userEmail.
/// exp.
/// token.
- public LoginResult(int id = default(int), int participantId = default(int), string firstName = default(string), string lastName = default(string), string userName = default(string), string userPhone = default(string), float exp = default(float), string token = default(string))
+ public LoginResult(int id = default(int), int participantId = default(int), string firstName = default(string), string lastName = default(string), string userName = default(string), string userPhone = default(string), string userEmail = default(string), float exp = default(float), string token = default(string))
{
this.Id = id;
this.ParticipantId = participantId;
@@ -5501,6 +5518,7 @@ namespace BreCalClient.misc.Model
this.LastName = lastName;
this.UserName = userName;
this.UserPhone = userPhone;
+ this.UserEmail = userEmail;
this.Exp = exp;
this.Token = token;
}
@@ -5535,6 +5553,11 @@ namespace BreCalClient.misc.Model
[DataMember(Name = "user_phone", EmitDefaultValue = true)]
public string UserPhone { get; set; }
///
+ /// Gets or Sets UserEmail
+ ///
+ [DataMember(Name = "user_email", EmitDefaultValue = true)]
+ public string UserEmail { get; set; }
+ ///
/// Gets or Sets Exp
///
[DataMember(Name = "exp", EmitDefaultValue = true)]
@@ -5558,6 +5581,7 @@ namespace BreCalClient.misc.Model
sb.Append(" LastName: ").Append(LastName).Append("\n");
sb.Append(" UserName: ").Append(UserName).Append("\n");
sb.Append(" UserPhone: ").Append(UserPhone).Append("\n");
+ sb.Append(" UserEmail: ").Append(UserEmail).Append("\n");
sb.Append(" Exp: ").Append(Exp).Append("\n");
sb.Append(" Token: ").Append(Token).Append("\n");
sb.Append("}\n");
@@ -5591,39 +5615,44 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.FirstName == input.FirstName ||
(this.FirstName != null &&
this.FirstName.Equals(input.FirstName))
- ) &&
+ ) &&
(
this.LastName == input.LastName ||
(this.LastName != null &&
this.LastName.Equals(input.LastName))
- ) &&
+ ) &&
(
this.UserName == input.UserName ||
(this.UserName != null &&
this.UserName.Equals(input.UserName))
- ) &&
+ ) &&
(
this.UserPhone == input.UserPhone ||
(this.UserPhone != null &&
this.UserPhone.Equals(input.UserPhone))
- ) &&
+ ) &&
+ (
+ this.UserEmail == input.UserEmail ||
+ (this.UserEmail != null &&
+ this.UserEmail.Equals(input.UserEmail))
+ ) &&
(
this.Exp == input.Exp ||
this.Exp.Equals(input.Exp)
- ) &&
+ ) &&
(
this.Token == input.Token ||
(this.Token != null &&
@@ -5657,6 +5686,10 @@ namespace BreCalClient.misc.Model
{
hashCode = (hashCode * 59) + this.UserPhone.GetHashCode();
}
+ if (this.UserEmail != null)
+ {
+ hashCode = (hashCode * 59) + this.UserEmail.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Exp.GetHashCode();
if (this.Token != null)
{
@@ -5825,37 +5858,37 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.TimesId == input.TimesId ||
this.TimesId.Equals(input.TimesId)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.NotificationType == input.NotificationType ||
this.NotificationType.Equals(input.NotificationType)
- ) &&
+ ) &&
(
this.Timestamp == input.Timestamp ||
(this.Timestamp != null &&
this.Timestamp.Equals(input.Timestamp))
- ) &&
+ ) &&
(
this.Acknowledged == input.Acknowledged ||
this.Acknowledged.Equals(input.Acknowledged)
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -6045,50 +6078,50 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.Street == input.Street ||
(this.Street != null &&
this.Street.Equals(input.Street))
- ) &&
+ ) &&
(
this.PostalCode == input.PostalCode ||
(this.PostalCode != null &&
this.PostalCode.Equals(input.PostalCode))
- ) &&
+ ) &&
(
this.City == input.City ||
(this.City != null &&
this.City.Equals(input.City))
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
- ) &&
+ ) &&
(
this.Flags == input.Flags ||
(this.Flags != null &&
this.Flags.Equals(input.Flags))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -6252,11 +6285,11 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -6454,65 +6487,65 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.Imo == input.Imo ||
(this.Imo != null &&
this.Imo.Equals(input.Imo))
- ) &&
+ ) &&
(
this.Callsign == input.Callsign ||
(this.Callsign != null &&
this.Callsign.Equals(input.Callsign))
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
(this.ParticipantId != null &&
this.ParticipantId.Equals(input.ParticipantId))
- ) &&
+ ) &&
(
this.Length == input.Length ||
(this.Length != null &&
this.Length.Equals(input.Length))
- ) &&
+ ) &&
(
this.Width == input.Width ||
(this.Width != null &&
this.Width.Equals(input.Width))
- ) &&
+ ) &&
(
this.IsTug == input.IsTug ||
this.IsTug.Equals(input.IsTug)
- ) &&
+ ) &&
(
this.BollardPull == input.BollardPull ||
(this.BollardPull != null &&
this.BollardPull.Equals(input.BollardPull))
- ) &&
+ ) &&
(
this.Eni == input.Eni ||
(this.Eni != null &&
this.Eni.Equals(input.Eni))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -6887,140 +6920,140 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ShipId == input.ShipId ||
this.ShipId.Equals(input.ShipId)
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
- ) &&
+ ) &&
(
this.Eta == input.Eta ||
(this.Eta != null &&
this.Eta.Equals(input.Eta))
- ) &&
+ ) &&
(
this.Voyage == input.Voyage ||
(this.Voyage != null &&
this.Voyage.Equals(input.Voyage))
- ) &&
+ ) &&
(
this.Etd == input.Etd ||
(this.Etd != null &&
this.Etd.Equals(input.Etd))
- ) &&
+ ) &&
(
this.ArrivalBerthId == input.ArrivalBerthId ||
(this.ArrivalBerthId != null &&
this.ArrivalBerthId.Equals(input.ArrivalBerthId))
- ) &&
+ ) &&
(
this.DepartureBerthId == input.DepartureBerthId ||
(this.DepartureBerthId != null &&
this.DepartureBerthId.Equals(input.DepartureBerthId))
- ) &&
+ ) &&
(
this.TugRequired == input.TugRequired ||
(this.TugRequired != null &&
this.TugRequired.Equals(input.TugRequired))
- ) &&
+ ) &&
(
this.PilotRequired == input.PilotRequired ||
(this.PilotRequired != null &&
this.PilotRequired.Equals(input.PilotRequired))
- ) &&
+ ) &&
(
this.Flags == input.Flags ||
(this.Flags != null &&
this.Flags.Equals(input.Flags))
- ) &&
+ ) &&
(
this.PierSide == input.PierSide ||
(this.PierSide != null &&
this.PierSide.Equals(input.PierSide))
- ) &&
+ ) &&
(
this.Bunkering == input.Bunkering ||
(this.Bunkering != null &&
this.Bunkering.Equals(input.Bunkering))
- ) &&
+ ) &&
(
this.ReplenishingTerminal == input.ReplenishingTerminal ||
(this.ReplenishingTerminal != null &&
this.ReplenishingTerminal.Equals(input.ReplenishingTerminal))
- ) &&
+ ) &&
(
this.ReplenishingLock == input.ReplenishingLock ||
(this.ReplenishingLock != null &&
this.ReplenishingLock.Equals(input.ReplenishingLock))
- ) &&
+ ) &&
(
this.Draft == input.Draft ||
(this.Draft != null &&
this.Draft.Equals(input.Draft))
- ) &&
+ ) &&
(
this.TidalWindowFrom == input.TidalWindowFrom ||
(this.TidalWindowFrom != null &&
this.TidalWindowFrom.Equals(input.TidalWindowFrom))
- ) &&
+ ) &&
(
this.TidalWindowTo == input.TidalWindowTo ||
(this.TidalWindowTo != null &&
this.TidalWindowTo.Equals(input.TidalWindowTo))
- ) &&
+ ) &&
(
this.RainSensitiveCargo == input.RainSensitiveCargo ||
(this.RainSensitiveCargo != null &&
this.RainSensitiveCargo.Equals(input.RainSensitiveCargo))
- ) &&
+ ) &&
(
this.RecommendedTugs == input.RecommendedTugs ||
(this.RecommendedTugs != null &&
this.RecommendedTugs.Equals(input.RecommendedTugs))
- ) &&
+ ) &&
(
this.Anchored == input.Anchored ||
(this.Anchored != null &&
this.Anchored.Equals(input.Anchored))
- ) &&
+ ) &&
(
this.MooredLock == input.MooredLock ||
(this.MooredLock != null &&
this.MooredLock.Equals(input.MooredLock))
- ) &&
+ ) &&
(
this.Canceled == input.Canceled ||
(this.Canceled != null &&
this.Canceled.Equals(input.Canceled))
- ) &&
+ ) &&
(
this.Evaluation == input.Evaluation ||
(this.Evaluation != null &&
this.Evaluation.Equals(input.Evaluation))
- ) &&
+ ) &&
(
this.EvaluationMessage == input.EvaluationMessage ||
(this.EvaluationMessage != null &&
this.EvaluationMessage.Equals(input.EvaluationMessage))
- ) &&
+ ) &&
(
this.Participants == input.Participants ||
this.Participants != null &&
input.Participants != null &&
this.Participants.SequenceEqual(input.Participants)
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -7386,99 +7419,99 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.EtaBerth == input.EtaBerth ||
(this.EtaBerth != null &&
this.EtaBerth.Equals(input.EtaBerth))
- ) &&
+ ) &&
(
this.EtaBerthFixed == input.EtaBerthFixed ||
(this.EtaBerthFixed != null &&
this.EtaBerthFixed.Equals(input.EtaBerthFixed))
- ) &&
+ ) &&
(
this.EtdBerth == input.EtdBerth ||
(this.EtdBerth != null &&
this.EtdBerth.Equals(input.EtdBerth))
- ) &&
+ ) &&
(
this.EtdBerthFixed == input.EtdBerthFixed ||
(this.EtdBerthFixed != null &&
this.EtdBerthFixed.Equals(input.EtdBerthFixed))
- ) &&
+ ) &&
(
this.LockTime == input.LockTime ||
(this.LockTime != null &&
this.LockTime.Equals(input.LockTime))
- ) &&
+ ) &&
(
this.LockTimeFixed == input.LockTimeFixed ||
(this.LockTimeFixed != null &&
this.LockTimeFixed.Equals(input.LockTimeFixed))
- ) &&
+ ) &&
(
this.ZoneEntry == input.ZoneEntry ||
(this.ZoneEntry != null &&
this.ZoneEntry.Equals(input.ZoneEntry))
- ) &&
+ ) &&
(
this.ZoneEntryFixed == input.ZoneEntryFixed ||
(this.ZoneEntryFixed != null &&
this.ZoneEntryFixed.Equals(input.ZoneEntryFixed))
- ) &&
+ ) &&
(
this.OperationsStart == input.OperationsStart ||
(this.OperationsStart != null &&
this.OperationsStart.Equals(input.OperationsStart))
- ) &&
+ ) &&
(
this.OperationsEnd == input.OperationsEnd ||
(this.OperationsEnd != null &&
this.OperationsEnd.Equals(input.OperationsEnd))
- ) &&
+ ) &&
(
this.Remarks == input.Remarks ||
(this.Remarks != null &&
this.Remarks.Equals(input.Remarks))
- ) &&
+ ) &&
(
this.ShipcallId == input.ShipcallId ||
this.ShipcallId.Equals(input.ShipcallId)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.BerthId == input.BerthId ||
(this.BerthId != null &&
this.BerthId.Equals(input.BerthId))
- ) &&
+ ) &&
(
this.BerthInfo == input.BerthInfo ||
(this.BerthInfo != null &&
this.BerthInfo.Equals(input.BerthInfo))
- ) &&
+ ) &&
(
this.PierSide == input.PierSide ||
(this.PierSide != null &&
this.PierSide.Equals(input.PierSide))
- ) &&
+ ) &&
(
this.ParticipantType == input.ParticipantType ||
(this.ParticipantType != null &&
this.ParticipantType.Equals(input.ParticipantType))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -7611,7 +7644,8 @@ namespace BreCalClient.misc.Model
/// firstName.
/// lastName.
/// userPhone.
- public UserDetails(int id = default(int), string oldPassword = default(string), string newPassword = default(string), string firstName = default(string), string lastName = default(string), string userPhone = default(string))
+ /// userEmail.
+ public UserDetails(int id = default(int), string oldPassword = default(string), string newPassword = default(string), string firstName = default(string), string lastName = default(string), string userPhone = default(string), string userEmail = default(string))
{
this.Id = id;
this.OldPassword = oldPassword;
@@ -7619,6 +7653,7 @@ namespace BreCalClient.misc.Model
this.FirstName = firstName;
this.LastName = lastName;
this.UserPhone = userPhone;
+ this.UserEmail = userEmail;
}
///
/// Gets or Sets Id
@@ -7651,6 +7686,11 @@ namespace BreCalClient.misc.Model
[DataMember(Name = "user_phone", EmitDefaultValue = true)]
public string UserPhone { get; set; }
///
+ /// Gets or Sets UserEmail
+ ///
+ [DataMember(Name = "user_email", EmitDefaultValue = true)]
+ public string UserEmail { get; set; }
+ ///
/// Returns the string presentation of the object
///
/// String presentation of the object
@@ -7664,6 +7704,7 @@ namespace BreCalClient.misc.Model
sb.Append(" FirstName: ").Append(FirstName).Append("\n");
sb.Append(" LastName: ").Append(LastName).Append("\n");
sb.Append(" UserPhone: ").Append(UserPhone).Append("\n");
+ sb.Append(" UserEmail: ").Append(UserEmail).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -7695,35 +7736,40 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.OldPassword == input.OldPassword ||
(this.OldPassword != null &&
this.OldPassword.Equals(input.OldPassword))
- ) &&
+ ) &&
(
this.NewPassword == input.NewPassword ||
(this.NewPassword != null &&
this.NewPassword.Equals(input.NewPassword))
- ) &&
+ ) &&
(
this.FirstName == input.FirstName ||
(this.FirstName != null &&
this.FirstName.Equals(input.FirstName))
- ) &&
+ ) &&
(
this.LastName == input.LastName ||
(this.LastName != null &&
this.LastName.Equals(input.LastName))
- ) &&
+ ) &&
(
this.UserPhone == input.UserPhone ||
(this.UserPhone != null &&
this.UserPhone.Equals(input.UserPhone))
+ ) &&
+ (
+ this.UserEmail == input.UserEmail ||
+ (this.UserEmail != null &&
+ this.UserEmail.Equals(input.UserEmail))
);
}
///
@@ -7756,6 +7802,10 @@ namespace BreCalClient.misc.Model
{
hashCode = (hashCode * 59) + this.UserPhone.GetHashCode();
}
+ if (this.UserEmail != null)
+ {
+ hashCode = (hashCode * 59) + this.UserEmail.GetHashCode();
+ }
return hashCode;
}
}
diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml
index 7d42c09..f3c845c 100644
--- a/misc/BreCalApi.yaml
+++ b/misc/BreCalApi.yaml
@@ -14,7 +14,7 @@ info:
servers:
# tutorial: https://idratherbewriting.com/learnapidoc/pubapis_openapi_step3_servers_object.html
- - url: "https://brecaltest.bsmd-emswe.eu/"
+ - url: "https://brecaldevel.bsmd-emswe.eu/"
description: "Test server hosted on vcup"
paths:
@@ -68,13 +68,13 @@ paths:
/shipcalls:
get:
summary: Gets a list of ship calls
- #parameters:
- # - name: participant_id
- # in: query
- # required: true
- # description: "**Id of participant**. *Example: 2*. Id of participant entity requesting ship calls"
- # schema:
- # type: integer
+ parameters:
+ - name: past_days
+ in: query
+ required: false
+ description: "number of days in the past to include in the result. *Example: 7*."
+ schema:
+ type: integer
responses:
200:
description: ship call list
@@ -348,7 +348,7 @@ components:
required:
- id
- ship_id
- - type
+ - type
properties:
id:
$ref: "#/components/schemas/shipcallId"
@@ -696,6 +696,8 @@ components:
type: string
user_phone:
type: string
+ user_email:
+ type: string
exp:
type: number
format: float
@@ -723,6 +725,9 @@ components:
user_phone:
type: string
nullable: true
+ user_email:
+ type: string
+ nullable: true
Id:
type: object
description: A unique identifier for an entity
diff --git a/misc/Deployment.md b/misc/Deployment.md
index 21ee272..38a7ccd 100644
--- a/misc/Deployment.md
+++ b/misc/Deployment.md
@@ -6,6 +6,14 @@ ___
## Client
+Deployment of the productive client:
+- create a branch release/pub_ from test release branch
+- remove all text references to 'test' (changing target url in the process)
+- rename application in settings
+- change BG_COLOR in settings to #203864
+- user deployment publish xml
+
+
## Database
## Backend / Flask app
@@ -14,7 +22,7 @@ In order to not have complicated and error-prone copying manoevers a direct depl
### File structure
-### Steps
+### Installation steps
1) Created a ssh-key for the user that does the installation on the server following the Github [instructions](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent).
2) Deploy generated key to the Github user account.
@@ -27,6 +35,8 @@ ssh-add ~/.ssh/od_ed25519
4) Change to deployment folder
+e.g.
+
```bash
cd /var/www/brecal_test
```
@@ -43,6 +53,12 @@ git checkout
6) Database credentials are stored outside the web root, we are using /var/www/secure. Here the file ```connection_data.json``` is placed, a different named copy for each instance.
+### Changing Devel / Test / Prod Environment
+
+Please note that in the "develop" branch the environment and paths are set to the "devel" setting. If a deployment is made (to testing or to the production) the scripts ```copytest.sh``` and ```copyprod.sh``` have to be run. These scripts will change the environment and paths to the respective settings.
+
+There is also a script called ```bump-version.sh``` which can be used to upgrade all version entries in the repository.
+
### Installing Requirements
Python 3.11 & Pip3.11 installation (linux), virtualenv package
diff --git a/misc/bump-version.sh b/misc/bump-version.sh
new file mode 100644
index 0000000..f9105c1
--- /dev/null
+++ b/misc/bump-version.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+CURRENT_VERSION=$(cat version.txt)
+NEW_VERSION="${1}"
+
+if [ -z "${NEW_VERSION}" ]; then
+ echo "No new version given"
+ exit 1
+fi
+
+echo "Bumping version ${CURRENT_VERSION} to ${NEW_VERSION}"
+
+CURRENT_VERSION=$(printf '%s\n' "$CURRENT_VERSION" | sed -e 's/[\/&]/\\&/g')
+NEW_VERSION=$(printf '%s\n' "$NEW_VERSION" | sed -e 's/[\/&]/\\&/g')
+
+echo "Found the following matching version strings:"
+git grep -I "${CURRENT_VERSION}"
+
+echo "Proceed? [N/y]"
+read proceed
+
+if [ "${proceed}" = "y" ]; then
+ git grep -Il "${CURRENT_VERSION}" | xargs sed --in-place -e "s/${CURRENT_VERSION}/${NEW_VERSION}/g"
+ git add $(git grep -Il "${NEW_VERSION}")
+fi
diff --git a/misc/copyprod.sh b/misc/copyprod.sh
new file mode 100644
index 0000000..afa5092
--- /dev/null
+++ b/misc/copyprod.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+# This script replaces all references to the development version with the test version
+# 1) Database references and paths
+
+git grep -I "connection_data_test.json"
+git grep -I "/var/www/brecal_test/"
+
+# 2) Color references
+# Bar colors in client: (BG_COLOR)
+# Devel: #1D751F
+# Test: #751D1F
+# Prod: #203864
+
+git grep -I "#751D1F"
+
+# 3) Assembly name references
+
+git grep -I "BreCalTestClient"
+
+echo "Proceed? [N/y]"
+read proceed
+
+# for color
+
+if [ "${proceed}" = "y" ]; then
+
+ # 1. for database references and paths
+ git grep -I "connection_data_test.json" | xargs sed --in-place -e "s/connection_data_test.json/connection_data_prod.json/g"
+ git add $(git grep -I "connection_data_prod.json")
+ git grep -I "/var/www/brecal_test/" | xargs sed --in-place -e "s/\/var\/www\/brecal_test\//\/var\/www\/brecal\//g"
+ git add $(git grep -I "/var/www/brecal/")
+
+ # 2. for color
+ git grep -Il "#751D1F" | xargs sed --in-place -e "s/#751D1F/#203864/g"
+ git add $(git grep -Il "#203864")
+
+ # 3. for assembly name
+
+ git grep -I "BreCalTestClient" | xargs sed --in-place -e "s/BreCalTestClient/BreCalClient/g"
+ git add $(git grep -I "BreCalClient")
+
+fi
diff --git a/misc/copytest.sh b/misc/copytest.sh
new file mode 100644
index 0000000..2cea439
--- /dev/null
+++ b/misc/copytest.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+# This script replaces all references to the development version with the test version
+# 1) Database references and paths
+
+git grep -I "connection_data_devel.json"
+git grep -I "/var/www/brecal_devel/"
+
+# 2) Color references
+# Bar colors in client: (BG_COLOR)
+# Devel: #1D751F
+# Test: #751D1F
+# Prod: #203864
+
+git grep -I "#1D751F"
+
+# 3) Assembly name references
+
+git grep -I "BreCalDevelClient"
+
+echo "Proceed? [N/y]"
+read proceed
+
+# for color
+
+if [ "${proceed}" = "y" ]; then
+
+ # 1. for database references and paths
+ git grep -I "connection_data_devel.json" | xargs sed --in-place -e "s/connection_data_devel.json/connection_data_test.json/g"
+ git add $(git grep -I "connection_data_test.json")
+ git grep -I "/var/www/brecal_devel/" | xargs sed --in-place -e "s/\/var\/www\/brecal_devel\//\/var\/www\/brecal_test\//g"
+ git add $(git grep -I "/var/www/brecal_test/")
+
+ # 2. for color
+ git grep -Il "#1D751F" | xargs sed --in-place -e "s/#1D751F/#751D1F/g"
+ git add $(git grep -Il "#751D1F")
+
+ # 3. for assembly name
+
+ git grep -I "BreCalDevelClient" | xargs sed --in-place -e "s/BreCalDevelClient/BreCalTestClient/g"
+ git add $(git grep -I "BreCalTestClient")
+
+fi
diff --git a/misc/sample_static_data.sql b/misc/sample_static_data.sql
new file mode 100644
index 0000000..5cacc46
--- /dev/null
+++ b/misc/sample_static_data.sql
@@ -0,0 +1,192 @@
+-- --------------------------------------------------------
+-- Host: 127.0.0.1
+-- Server Version: 8.0.34-0ubuntu0.22.04.1 - (Ubuntu)
+-- Server Betriebssystem: Linux
+-- HeidiSQL Version: 10.2.0.5599
+-- --------------------------------------------------------
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET NAMES utf8 */;
+/*!50503 SET NAMES utf8mb4 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+
+-- Exportiere Daten aus Tabelle bremen_calling_test.berth: ~59 rows (ungefähr)
+/*!40000 ALTER TABLE `berth` DISABLE KEYS */;
+INSERT INTO `berth` (`id`, `name`, `lock`, `owner_id`, `authority_id`, `created`, `modified`, `deleted`) VALUES
+ (1, 'Roland Mühle', NULL, NULL, 11, '2023-06-26 14:01:40', '2023-10-06 15:04:08', b'1'),
+ (2, 'Stahlwerk', NULL, NULL, 11, '2023-06-26 14:01:40', '2023-10-06 15:04:08', b'1'),
+ (3, 'Kellogs', NULL, NULL, 11, '2023-06-26 14:01:40', '2023-10-06 15:04:08', b'1'),
+ (139, 'Avangard Dalben', NULL, 110, 136, '2023-08-21 08:23:35', '2023-10-06 16:06:01', b'0'),
+ (140, 'Avangard Kaje', NULL, 110, 11, '2023-08-21 08:23:35', '2023-10-06 15:04:08', b'0'),
+ (141, 'Baustelle 2', NULL, 111, 11, '2023-08-21 08:23:35', '2023-10-06 15:04:08', b'0'),
+ (142, 'BHW', NULL, 112, 11, '2023-08-21 08:23:36', '2023-10-06 15:04:08', b'0'),
+ (143, 'Dalben 2', NULL, 111, 11, '2023-08-21 08:23:36', '2023-10-06 15:04:08', b'0'),
+ (144, 'Dalben 3', NULL, 111, 11, '2023-08-21 08:23:36', '2023-10-06 15:04:08', b'0'),
+ (145, 'Egerland Kaje', NULL, 113, 11, '2023-08-21 08:23:36', '2023-10-06 15:04:08', b'0'),
+ (146, 'Getreideanlage Pier A', NULL, 114, 11, '2023-08-21 08:23:37', '2023-10-06 15:04:08', b'0'),
+ (147, 'Getreideanlage Pier D', NULL, 114, 11, '2023-08-21 08:23:37', '2023-10-06 15:04:08', b'0'),
+ (148, 'Griepe, Bnp Paribas', NULL, 115, 11, '2023-08-21 08:23:37', '2023-10-06 15:04:08', b'0'),
+ (149, 'Hafen F', NULL, 116, 11, '2023-08-21 08:23:37', '2023-10-06 15:04:08', b'0'),
+ (150, 'Hansa Landhandel', NULL, 117, 11, '2023-08-21 08:23:38', '2023-10-06 15:04:08', b'0'),
+ (151, 'Hansa Melasse', NULL, 118, 11, '2023-08-21 08:23:38', '2023-10-06 15:04:08', b'0'),
+ (152, 'Hansa-Mühle', NULL, 119, 11, '2023-08-21 08:23:38', '2023-10-06 15:04:08', b'0'),
+ (153, 'Heidelberger Sand', NULL, 120, 11, '2023-08-21 08:23:38', '2023-10-06 15:04:08', b'0'),
+ (154, 'HGM Bunkerstation', NULL, 121, 11, '2023-08-21 08:23:39', '2023-10-06 15:04:08', b'0'),
+ (155, 'HGM Tanklager', NULL, 121, 11, '2023-08-21 08:23:39', '2023-10-06 15:04:08', b'0'),
+ (156, 'Kap Horn Innen', NULL, 122, 11, '2023-08-21 08:23:39', '2023-10-06 15:04:08', b'0'),
+ (157, 'Kap Horn Weser', NULL, 122, 11, '2023-08-21 08:23:39', '2023-10-06 15:04:08', b'0'),
+ (158, 'Kap Horn Weser Bremer Recycling', NULL, 123, 11, '2023-08-21 08:23:40', '2023-10-06 15:04:08', b'0'),
+ (159, 'Kap Horn Weser -GHK-', NULL, 124, 11, '2023-08-21 08:23:40', '2023-10-06 15:04:08', b'0'),
+ (160, 'Kohlenhafen 2', NULL, 111, 11, '2023-08-21 08:23:40', '2023-10-06 15:04:08', b'0'),
+ (161, 'Kraftwerk Farge', NULL, 125, 11, '2023-08-21 08:23:40', '2023-10-06 15:04:08', b'0'),
+ (162, 'Kraftwerk Industriehafen', NULL, 126, 11, '2023-08-21 08:23:41', '2023-10-06 15:04:08', b'0'),
+ (163, 'Lankenau B', NULL, 111, 11, '2023-08-21 08:23:41', '2023-10-06 15:04:08', b'0'),
+ (164, 'Mibau, Bnp Paribas', NULL, 127, 11, '2023-08-21 08:23:41', '2023-10-06 15:04:08', b'0'),
+ (165, 'Müller Weser', NULL, 114, 11, '2023-08-21 08:23:41', '2023-10-06 15:04:08', b'0'),
+ (166, 'Osterort 5 Aussen', NULL, 111, 11, '2023-08-21 08:23:41', '2023-10-06 15:04:08', b'0'),
+ (167, 'Pier 2 Anleger', NULL, 128, 11, '2023-08-21 08:23:42', '2023-10-06 15:04:08', b'0'),
+ (168, 'Pier III', NULL, 129, 11, '2023-08-21 08:23:42', '2023-10-06 15:04:08', b'0'),
+ (169, 'Plump', NULL, 130, 11, '2023-08-21 08:23:42', '2023-10-06 15:04:08', b'0'),
+ (170, 'Rolandmühle', NULL, 131, 11, '2023-08-21 08:23:42', '2023-10-06 15:04:08', b'0'),
+ (171, 'Schleusenvorhafen Nord', NULL, 111, 11, '2023-08-21 08:23:43', '2023-10-06 15:04:08', b'0'),
+ (172, 'Schrägpier', NULL, 4, 11, '2023-08-21 08:23:43', '2023-10-06 15:04:08', b'0'),
+ (173, 'Schuppen 19', NULL, 132, 11, '2023-08-21 08:23:43', '2023-10-06 15:04:08', b'0'),
+ (174, 'Schuppen 20', NULL, 4, 11, '2023-08-21 08:23:43', '2023-10-06 15:04:08', b'0'),
+ (175, 'Schuppen 21', NULL, 4, 11, '2023-08-21 08:23:43', '2023-10-06 15:04:08', b'0'),
+ (176, 'Schuppen 22', NULL, 4, 11, '2023-08-21 08:23:43', '2023-10-06 15:04:08', b'0'),
+ (177, 'Schuppen 23', NULL, 4, 11, '2023-08-21 08:23:44', '2023-10-06 15:04:08', b'0'),
+ (178, 'Schuppen 24', NULL, 4, 11, '2023-08-21 08:23:44', '2023-10-06 15:04:08', b'0'),
+ (179, 'Seedalben Dlg-Seite', NULL, 111, 11, '2023-08-21 08:23:44', '2023-10-06 15:04:08', b'0'),
+ (180, 'Seedalben Kw-Seite', NULL, 111, 11, '2023-08-21 08:23:44', '2023-10-06 15:04:08', b'0'),
+ (181, 'Seehausen Spüler', NULL, 111, 11, '2023-08-21 08:23:44', '2023-10-06 15:04:08', b'0'),
+ (182, 'Tankschiffliegeplatz 1', NULL, 111, 11, '2023-08-21 08:23:44', '2023-10-06 15:04:08', b'0'),
+ (183, 'Tankschiffliegeplatz 2', NULL, 111, 11, '2023-08-21 08:23:44', '2023-10-06 15:04:08', b'0'),
+ (184, 'Terminal 1', NULL, 10, 11, '2023-08-21 08:23:44', '2023-10-06 15:04:08', b'0'),
+ (185, 'Terminal 2', NULL, 10, 11, '2023-08-21 08:23:45', '2023-10-06 15:04:08', b'0'),
+ (186, 'Terminal 3', NULL, 10, 11, '2023-08-21 08:23:45', '2023-10-06 15:04:08', b'0'),
+ (187, 'Terminal 4', NULL, 10, 11, '2023-08-21 08:23:45', '2023-10-06 15:04:08', b'0'),
+ (188, 'TSR Recycling', NULL, 133, 11, '2023-08-21 08:23:45', '2023-10-06 15:04:08', b'0'),
+ (189, 'Viehbrücke', NULL, 111, 11, '2023-08-21 08:23:45', '2023-10-06 15:04:08', b'0'),
+ (190, 'Vulkan Industriegebiet', NULL, 120, 11, '2023-08-21 08:23:46', '2023-10-06 15:04:08', b'0'),
+ (191, 'Weserbahnhof', NULL, 132, 11, '2023-08-21 08:23:46', '2023-10-06 15:04:08', b'0'),
+ (192, 'Weser-Petrol Holzhafen', NULL, 134, 11, '2023-08-21 08:23:46', '2023-10-06 15:04:08', b'0'),
+ (193, 'Weser-Petrol Kalihafen', NULL, 134, 11, '2023-08-21 08:23:46', '2023-10-06 15:04:08', b'0'),
+ (194, 'Wesertanking', NULL, 135, 11, '2023-08-21 08:23:46', '2023-10-06 15:04:08', b'0');
+/*!40000 ALTER TABLE `berth` ENABLE KEYS */;
+
+-- Exportiere Daten aus Tabelle bremen_calling_test.participant: ~40 rows (ungefähr)
+/*!40000 ALTER TABLE `participant` DISABLE KEYS */;
+INSERT INTO `participant` (`id`, `name`, `street`, `postal_code`, `city`, `type`, `flags`, `created`, `modified`, `deleted`) VALUES
+ (1, 'Schick Informatik', 'Gottlieb-Daimler-Str. 8', '73614', 'Schorndorf', 1, 42, '2023-04-17 07:18:19', '2023-08-24 07:07:02', b'0'),
+ (2, 'Lotsenbrüderschaft Weser 1', '', '', '', 4, 0, '2023-08-10 07:07:41', NULL, b'0'),
+ (3, 'Bremer Schiffsmeldedienst', 'Hafenkopf II / Überseetor 20', '28217', 'Bremen', 1, 0, '2023-08-10 07:11:10', NULL, b'0'),
+ (4, 'BLG Cargo Logistics GmbH', '', '', '', 2, 0, '2023-08-10 07:14:40', NULL, b'0'),
+ (5, 'Schiffsmakler-Verband für Küsten und Seeschiffsbefrachter e.V.', '', '', '', 8, 0, '2023-08-10 07:15:56', NULL, b'0'),
+ (6, 'RMS Rhenus Maritime Services GmbH', '', '', '', 8, 1, '2023-08-10 07:19:29', '2023-09-06 09:02:53', b'0'),
+ (7, 'J.MÜLLER Weser GmbH & Co. KG', '', '', '', 10, 0, '2023-08-10 07:21:43', '2023-08-10 08:47:59', b'0'),
+ (8, 'Schiffahrtskontor Detra GmbH & Co.KG', '', '', '', 8, 0, '2023-08-10 07:23:04', NULL, b'0'),
+ (9, 'Boluda Deutschland GmbH', '', '', '', 64, 0, '2023-08-10 07:24:18', NULL, b'0'),
+ (10, 'Weserport GmbH', '', '', '', 10, 0, '2023-08-10 07:26:42', '2023-08-10 08:48:19', b'0'),
+ (11, 'Port Authority Bremen', '', '', '', 32, 0, '2023-08-10 07:28:11', NULL, b'0'),
+ (12, 'Nordenia Frachtkontor GmbH', '', '', '', 8, 0, '2023-08-21 06:52:04', NULL, b'0'),
+ (15, 'Extern', '', '', '', 0, 0, '2023-08-21 06:55:18', NULL, b'0'),
+ (16, 'FESTMA Vertäugesellschaft mbH', '', '', '', 16, 0, '2023-08-21 06:57:23', NULL, b'0'),
+ (110, 'Avangard', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:35', '2023-08-21 10:04:21', b'0'),
+ (111, 'Bremenports', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:35', '2023-08-21 10:04:21', b'0'),
+ (112, 'Bremer Holzwerke', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:36', '2023-08-21 10:04:21', b'0'),
+ (113, 'Egerland', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:36', '2023-08-21 10:04:21', b'0'),
+ (114, 'Müller J. Bremen', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:37', '2023-08-21 10:04:21', b'0'),
+ (115, 'Griepe', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:37', '2023-08-21 10:04:21', b'0'),
+ (116, 'Mseven Real Estate', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:37', '2023-08-21 10:04:21', b'0'),
+ (117, 'Hansa Landhandel', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:38', '2023-08-21 10:04:21', b'0'),
+ (118, 'Hansa Melasse', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:38', '2023-08-21 10:04:21', b'0'),
+ (119, 'Hansa-Mühle', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:38', '2023-08-21 10:04:21', b'0'),
+ (120, 'Heidelberger Sand Und Kies Gmbh', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:38', '2023-08-21 10:04:21', b'0'),
+ (121, 'HGM', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:39', '2023-08-21 10:04:21', b'0'),
+ (122, 'Kap-Horn Logistics Gmbh', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:39', '2023-08-21 10:04:21', b'0'),
+ (123, 'Bremer Recycling Kontor', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:39', '2023-08-21 10:04:21', b'0'),
+ (124, 'GHK', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:40', '2023-08-21 10:04:21', b'0'),
+ (125, 'Kraftwerk Farge Engie Gmbh & Co. KG', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:40', '2023-08-21 10:04:21', b'0'),
+ (126, 'Swb Erzeugung', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:40', '2023-08-21 10:04:21', b'0'),
+ (127, 'Mibau', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:41', '2023-08-21 10:04:21', b'0'),
+ (128, 'SWG', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:41', '2023-08-21 10:04:21', b'0'),
+ (129, 'Umweltschutz Nord Ganderkesee', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:42', '2023-08-21 10:04:21', b'0'),
+ (130, 'Nehlsen Industrieservice Gmbh & Co. KG', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:42', '2023-08-21 10:04:21', b'0'),
+ (131, 'Rolandmühle', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:42', '2023-08-21 10:04:21', b'0'),
+ (132, 'Wfb', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:43', '2023-08-21 10:04:21', b'0'),
+ (133, 'TSR', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:45', '2023-08-21 10:04:21', b'0'),
+ (134, 'Weser-Petrol', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:46', '2023-08-21 10:04:21', b'0'),
+ (135, 'Wesertanking', NULL, NULL, NULL, 2, 0, '2023-08-21 08:23:46', '2023-08-21 10:04:21', b'0'),
+ (136, 'TEST_BSMD', 'Überseetor 20', '28217', 'Bremen', 127, 1, '2023-10-04 11:54:36', '2023-10-13 11:37:51', b'0');
+/*!40000 ALTER TABLE `participant` ENABLE KEYS */;
+
+-- Exportiere Daten aus Tabelle bremen_calling_test.role: ~2 rows (ungefähr)
+/*!40000 ALTER TABLE `role` DISABLE KEYS */;
+INSERT INTO `role` (`id`, `name`, `description`, `created`, `modified`) VALUES
+ (1, 'My first role', 'A very good description', '2023-04-17 07:31:57', NULL),
+ (2, 'Another role', 'This role is very nice as well', '2023-04-17 07:32:12', NULL);
+/*!40000 ALTER TABLE `role` ENABLE KEYS */;
+
+-- Exportiere Daten aus Tabelle bremen_calling_test.securable: ~2 rows (ungefähr)
+/*!40000 ALTER TABLE `securable` DISABLE KEYS */;
+INSERT INTO `securable` (`id`, `name`, `created`, `modified`) VALUES
+ (1, 'First secure thing', '2023-04-17 07:38:12', NULL),
+ (2, 'Another secure thing', '2023-04-17 07:38:22', NULL);
+/*!40000 ALTER TABLE `securable` ENABLE KEYS */;
+
+-- Exportiere Daten aus Tabelle bremen_calling_test.ship: ~12 rows (ungefähr)
+/*!40000 ALTER TABLE `ship` DISABLE KEYS */;
+INSERT INTO `ship` (`id`, `name`, `imo`, `callsign`, `participant_id`, `length`, `width`, `is_tug`, `bollard_pull`, `eni`, `created`, `modified`, `deleted`) VALUES
+ (1, 'Dicke Berta', 1234567, 'DEBE', 1, 100, 20, b'0', NULL, NULL, '2023-06-27 10:43:02', NULL, b'0'),
+ (2, 'Maersk Neston', 9632167, '9V3532', 1, 210.07, 30.2, b'0', NULL, NULL, '2023-07-27 12:34:13', NULL, b'0'),
+ (3, 'AFRICAN HALCYON', 9343613, NULL, NULL, 177.13, 28.4, b'0', NULL, NULL, '2023-08-24 10:41:56', NULL, b'0'),
+ (4, 'AMIKO', 9125669, NULL, NULL, 99.98, 16.5, b'0', NULL, NULL, '2023-08-24 10:42:17', NULL, b'0'),
+ (5, 'ARKLOW BEACON', 9638795, NULL, NULL, 119.49, 14.99, b'0', NULL, NULL, '2023-08-24 10:42:17', NULL, b'0'),
+ (6, 'FWN ATLANTIDE', 9535620, NULL, NULL, 145.65, 18.25, b'0', NULL, NULL, '2023-08-24 10:42:17', NULL, b'0'),
+ (7, 'IONIAN SPIRIT', 9747235, NULL, NULL, 179.9, 30, b'0', NULL, NULL, '2023-08-24 10:42:17', NULL, b'0'),
+ (8, 'IRMA', 9180396, NULL, NULL, 199.9, 23.6, b'0', NULL, NULL, '2023-08-24 10:42:17', NULL, b'0'),
+ (9, 'JANA', 9330185, NULL, NULL, 69.34, 12, b'0', NULL, NULL, '2023-08-24 10:42:18', NULL, b'0'),
+ (10, 'MEDI PERTH', 9804552, NULL, NULL, 199.99, 32.24, b'0', NULL, NULL, '2023-08-24 10:42:18', NULL, b'0'),
+ (11, 'S NEPTUNE', 9634892, NULL, NULL, 169.99, 27, b'0', NULL, NULL, '2023-08-24 10:42:18', NULL, b'0'),
+ (12, 'WESER STAHL', 9186687, NULL, NULL, 192, 32.26, b'0', NULL, NULL, '2023-08-24 10:42:18', NULL, b'0'),
+ (13, 'BOTHNIABORG', 9267728, 'PBIO', NULL, 153.05, 21.8, b'0', NULL, NULL, '2023-10-04 11:52:32', NULL, b'0');
+/*!40000 ALTER TABLE `ship` ENABLE KEYS */;
+
+-- Exportiere Daten aus Tabelle bremen_calling_test.user: ~27 rows (ungefähr)
+/*!40000 ALTER TABLE `user` DISABLE KEYS */;
+INSERT INTO `user` (`id`, `participant_id`, `first_name`, `last_name`, `user_name`, `user_email`, `user_phone`, `password_hash`, `api_key`, `created`, `modified`) VALUES
+ (1, 1, 'Daniel', 'Schick', 'dani', NULL, NULL, '$2b$12$qfjw4b3XvGuu0t6HR8OYGOzF5b8gmC6PyIIBNbIXMXEayJunEEKmi', '0815', '2023-04-17 07:15:41', '2023-08-11 11:11:34'),
+ (2, 1, 'Londo', 'Mollari', 'Londo', 'l.mollari@centauri.gov', '+01 555 324 2314', '$2b$12$8r1oGQiWdiuQNoGbzm.z.OoCOc8.4YACN93k7ge7YDWKjQ8tPuTrm', NULL, '2023-06-27 08:34:55', '2023-10-28 12:04:54'),
+ (3, 2, 'Maik', 'Baudeck', 'maikb', NULL, NULL, '$2b$12$4SxGRlinOrpEVvqDZcE.wOusMZYsepdc6vj1vDpNhbPtApxU8VGPi', '', '2023-08-10 07:09:35', '2023-08-11 11:11:55'),
+ (4, 3, 'Christin', 'Hollmann', 'christinh', NULL, NULL, '$2b$12$evGJop3j19bNTkdg2GHrIeRedC7LG5SIHm8.hKhdUSrlXsp6sXBDG', '', '2023-08-10 07:12:05', '2023-10-04 11:48:13'),
+ (5, 3, 'Bastian', 'Güttner', 'bastiang', NULL, NULL, '$2b$12$0oCX3c2WyMykmxMoLqmpNubke713xhYlEEQgnxBV6Fj/TaUn.3/U6', '', '2023-08-10 07:12:26', '2023-08-11 11:11:13'),
+ (6, 3, 'Benjamin', 'Wiese', 'benjaminw', NULL, NULL, '$2b$12$RRj32KdLIf3D7z7cVWFqa.yZM5.ODOS0HqU3rdCuFrJS8HJ/rtqwy', '', '2023-08-10 07:13:01', '2023-08-11 11:11:16'),
+ (7, 1, 'Sladjan', 'Veselinovic', 'sladjanv', NULL, NULL, '$2b$12$4DctoCbZwxTvE39lXNRzneQ2kb/lXlJ5wEZ1CGbbw.rGM3nuAYjpa', '', '2023-08-10 07:13:39', '2023-08-11 11:11:45'),
+ (8, 1, 'Kersten', 'Gevers', 'kersteng', NULL, NULL, '$2b$12$zKX8iLPnXRmp5wD1Yp8P7e..U9R0A4ytbiMjd.l.IGkMzahcHPNWq', '', '2023-08-10 07:13:59', '2023-08-11 11:11:49'),
+ (9, 4, 'Dirk', 'Brunnert', 'dirkb', NULL, NULL, '$2b$12$HTeq/Fdfse6oElk7DLsQae5dtvWJloee.VtBH.THsj2kdcxxBkCDW', '', '2023-08-10 07:15:01', '2023-08-11 11:12:01'),
+ (10, 5, 'Thorsten', 'Fischer', 'thorstenf', NULL, NULL, '$2b$12$NHEpTNHuKU4ruPRIfd9yc.yv5faHGemFfRI3TISniqM7QNqHiyZpK', '', '2023-08-10 07:16:20', '2023-08-11 11:12:07'),
+ (11, 6, 'Lisa', 'Friedhoff', 'lisaf', NULL, NULL, '$2b$12$DJKJHGrQwfY9pwzgFfPds.DHGsygHyV3KDs38Hq4AUHPPs3jBPH3y', '', '2023-08-10 07:19:52', '2023-08-11 11:12:12'),
+ (12, 6, 'Dario', 'Fritschi', 'dariof', NULL, NULL, '$2b$12$MwCVTMQkN6zCAzCsE572Ye.M0nRDQNld4AgorLVyWq.DcQEmAy5lu', '', '2023-08-10 07:20:11', '2023-08-11 11:12:15'),
+ (13, 7, 'Hergen', 'Hanke', 'hergenh', NULL, NULL, '$2b$12$MKb6BDRrTbNd0qg5BdAS.upzlqxcWOgU/VEafJKSuzE9JLIWCimq6', '', '2023-08-10 07:22:09', '2023-08-11 11:12:24'),
+ (14, 8, 'Hardy', 'Paasch', 'hardyp', NULL, NULL, '$2b$12$l1lE/UqnYnOvci.N4j3zBOz6HC0z87ovnO0n6BIZYO7VN8gj.qGey', '', '2023-08-10 07:23:25', '2023-08-11 11:12:28'),
+ (15, 8, 'Marc', 'Pagel', 'marcp', NULL, NULL, '$2b$12$UCVJKzqX92Z8xZJ4kK0BRuFXMRdqcaXaGmBrqnYWARdKlPvZvLUZq', '', '2023-08-10 07:23:41', '2023-08-11 11:12:30'),
+ (16, 9, 'Andreas', 'Peukert', 'andreasp', NULL, NULL, '$2b$12$jNmciJAVR6p0IflvAthmk.j0SoOBvFHwDiEDKUHfwJq7baRsKg/LG', '', '2023-08-10 07:24:37', '2023-08-11 11:12:45'),
+ (17, 8, 'Christina', 'Rachiele', 'christinar', NULL, NULL, '$2b$12$BCsVgPRuIWPuuor07lprF.klQxvF901O3AXUhRrBJoEvYIjNQ.HKS', '', '2023-08-10 07:25:05', '2023-08-11 11:12:33'),
+ (18, 9, 'Sonia', 'Rekawek', 'soniar', NULL, NULL, '$2b$12$uHCkH6gu13yqllXBibLFIOWOpvctMC7NmojtXqDd6xsLq7bmvNOMu', '', '2023-08-10 07:25:27', '2023-08-11 11:12:48'),
+ (19, 6, 'Frank', 'Roelfs', 'frankr', NULL, NULL, '$2b$12$cEQAhUe9VJV6uTkfOY6/R.oAVfmFZQ4vS5G6BqoNEyaVHtFRDtB56', '', '2023-08-10 07:26:04', '2023-08-11 11:12:19'),
+ (20, 10, 'Vera', 'Schliedermann', 'veras', NULL, NULL, '$2b$12$FKcitW6W1HPwd.cdkZLGLeTFuzjsEIrbiKInysAKN.RibZ4gVLZHi', '', '2023-08-10 07:27:01', '2023-08-11 11:12:54'),
+ (21, 8, 'Michael', 'Strudthoff', 'michaels', NULL, NULL, '$2b$12$doTiywWpkso1UWB5eiAW1eoACP6rN4UDVt7qFFdRFvhhWUXikCmS2', '', '2023-08-10 07:27:27', '2023-08-11 11:12:37'),
+ (22, 4, 'Volker', 'Viohl', 'volkerv', NULL, NULL, '$2b$12$.YavQbWNE4eJDQA.ZNSKROYvMPWifBXyMX0IL0H2z50M720fpfTJW', '', '2023-08-10 07:27:50', '2023-08-11 11:12:04'),
+ (23, 11, 'Frauke', 'Zabel', 'fraukez', NULL, NULL, '$2b$12$rawQg6Cjl1yECGm9DOG8degdWdD.nZjEgGp8eXO98nh11QV1sEEEO', '', '2023-08-10 07:28:33', '2023-08-11 11:12:58'),
+ (24, 8, 'Jan', 'Zierow', 'janz', NULL, NULL, '$2b$12$CbnjUT42cf0mkIAqAURg3OksP9G3brmsE2GQTECTZ4.cVuhPn5D2G', '', '2023-08-10 07:28:55', '2023-08-11 11:12:39'),
+ (25, 12, 'Berit', 'Güstrau', 'beritg', NULL, NULL, '$2b$12$g8WJTEWwsrtMyqpVW/GFVuzyRjB2/n0YJJyvBx.3l51YiVEUjEQYy', '', '2023-08-21 06:52:35', NULL),
+ (26, 15, 'Ilknur', 'Colmorn', 'ilknurc', NULL, NULL, '$2b$12$tpEb0JQ8Li4YkPH28FeYk.1Jt2vK.TFn9SyhBKJ08gn7S5d8WYRlO', '', '2023-08-21 06:56:42', NULL),
+ (27, 16, 'Horst', 'Imgram', 'horsti', NULL, NULL, '$2b$12$05NFPSaP78puAa8pL39KrOKTafs/TzWwr4YfV4/Vrdu90assvNFZa', '', '2023-08-21 06:57:58', NULL),
+ (28, 136, 'Christin', 'Hollmann', 'chollmann', NULL, NULL, '$2b$12$pb1bWJ7hxOplFoqT/nIhyuRD39dxOpQ9t0LwZUI8CNOkTkE.eXiSO', '', '2023-10-04 11:55:05', NULL),
+ (29, 1, 'Max', 'Metz', 'maxm', NULL, NULL, '$2b$12$gm4EwjCF44Ls20vDHnlG/ew/cZ.DK4gcYed.OHER5J4OzZrA.9Jt.', '', '2023-10-06 13:02:56', '2023-10-13 11:53:35');
+/*!40000 ALTER TABLE `user` ENABLE KEYS */;
+
+/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
+/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
diff --git a/misc/version.txt b/misc/version.txt
new file mode 100644
index 0000000..9afd78e
--- /dev/null
+++ b/misc/version.txt
@@ -0,0 +1 @@
+0.9.5.0
\ No newline at end of file
diff --git a/src/BreCalClient/AboutDialog.xaml b/src/BreCalClient/AboutDialog.xaml
index b14d21f..68c72b7 100644
--- a/src/BreCalClient/AboutDialog.xaml
+++ b/src/BreCalClient/AboutDialog.xaml
@@ -7,7 +7,7 @@
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:p = "clr-namespace:BreCalClient.Resources"
mc:Ignorable="d"
- Title="Help" Height="280" Width="500">
+ Title="Help" Height="374" Width="500" Loaded="Window_Loaded">
@@ -20,6 +20,10 @@
+
+
+
+
@@ -39,14 +43,20 @@
-
-
-
-
-
-
+
+
+
+
+
-
+
+
+
+
+
+
+
+
diff --git a/src/BreCalClient/AboutDialog.xaml.cs b/src/BreCalClient/AboutDialog.xaml.cs
index 61e6154..5347b22 100644
--- a/src/BreCalClient/AboutDialog.xaml.cs
+++ b/src/BreCalClient/AboutDialog.xaml.cs
@@ -2,6 +2,7 @@
// Description: Show about info and allow user detail editing
//
+using BreCalClient.misc.Model;
using System;
using System.Diagnostics;
using System.Windows;
@@ -24,6 +25,12 @@ namespace BreCalClient
#endregion
+ #region Properties
+
+ public LoginResult? LoginResult { get; set; }
+
+ #endregion
+
#region events
public event Action? ChangePasswordRequested;
@@ -39,6 +46,12 @@ namespace BreCalClient
private void buttonChangePassword_Click(object sender, RoutedEventArgs e)
{
+ if (this.LoginResult != null)
+ {
+ this.LoginResult.UserPhone = this.textBoxUserPhone.Text.Trim();
+ this.LoginResult.UserEmail = this.textBoxUserEmail.Text.Trim();
+ }
+
this.ChangePasswordRequested?.Invoke(this.wpBoxOldPassword.Password, this.wpBoxNewPassword.Password);
}
@@ -56,9 +69,17 @@ namespace BreCalClient
(this.wpBoxNewPasswordRepeat.Password.Length > 0) &&
this.wpBoxNewPassword.Password.Equals(this.wpBoxNewPasswordRepeat.Password) &&
(!this.wpBoxNewPassword.Password.Equals(this.wpBoxOldPassword.Password));
+ }
+
+ private void Window_Loaded(object sender, RoutedEventArgs e)
+ {
+ if(LoginResult != null)
+ {
+ this.textBoxUserEmail.Text = LoginResult.UserEmail;
+ this.textBoxUserPhone.Text = LoginResult.UserPhone;
+ }
}
#endregion
-
}
}
diff --git a/src/BreCalClient/App.config b/src/BreCalClient/App.config
index 0800667..c86f39a 100644
--- a/src/BreCalClient/App.config
+++ b/src/BreCalClient/App.config
@@ -11,10 +11,10 @@
- https://brecaltest.bsmd-emswe.eu
+ https://brecaldevel.bsmd-emswe.eu
- #751D1F
+ #1D751F
!!Bremen calling Testversion!!
diff --git a/src/BreCalClient/BreCalClient.csproj b/src/BreCalClient/BreCalClient.csproj
index 012ca50..4d27982 100644
--- a/src/BreCalClient/BreCalClient.csproj
+++ b/src/BreCalClient/BreCalClient.csproj
@@ -8,12 +8,12 @@
True
BreCalClient.App
..\..\misc\brecal.snk
- 0.9.3.0
- 0.9.3.0
+ 0.9.5.0
+ 0.9.5.0
Bremen calling client
A Windows WPF client for the Bremen calling API.
containership.ico
- BreCalTestClient
+ BreCalDevelClient
diff --git a/src/BreCalClient/EditShipcallControl.xaml b/src/BreCalClient/EditShipcallControl.xaml
index dae9047..ffd82ee 100644
--- a/src/BreCalClient/EditShipcallControl.xaml
+++ b/src/BreCalClient/EditShipcallControl.xaml
@@ -58,9 +58,7 @@
-
-
-
+
@@ -68,14 +66,14 @@
-
+
-
+
@@ -83,6 +81,9 @@
+
+
+
@@ -93,7 +94,6 @@
-
diff --git a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml
index 7898a06..bf62a09 100644
--- a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml
+++ b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml
@@ -132,7 +132,7 @@
-
+
diff --git a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs
index b488d3e..3945882 100644
--- a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs
+++ b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs
@@ -261,6 +261,8 @@ namespace BreCalClient
this.checkBoxReplenishingTerminal.IsEnabled = isEnabled;
this.checkBoxReplenishingLock.IsEnabled = isEnabled;
this.textBoxRemarks.IsEnabled = isEnabled;
+
+ this.buttonOK.IsEnabled = isEnabled;
}
#endregion
diff --git a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml
index 2f41799..abfc91c 100644
--- a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml
+++ b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml
@@ -122,7 +122,7 @@
-
+
diff --git a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs
index 6117df4..652346e 100644
--- a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs
+++ b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs
@@ -246,6 +246,8 @@ namespace BreCalClient
this.comboBoxTerminal.IsEnabled = isEnabled;
this.checkBoxRainsensitiveCargo.IsEnabled = isEnabled;
this.textBoxRemarks.IsEnabled = isEnabled;
+
+ this.buttonOK.IsEnabled = isEnabled;
}
#endregion
diff --git a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml
index fcf2af5..7bcb118 100644
--- a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml
+++ b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml
@@ -8,13 +8,13 @@
xmlns:db="clr-namespace:BreCalClient;assembly=BreCalClient"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
mc:Ignorable="d"
- Title="{x:Static p:Resources.textEditShipcall}" Height="460" Width="800" Loaded="Window_Loaded" ResizeMode="NoResize" Icon="Resources/containership.ico">
+ Title="{x:Static p:Resources.textEditShipcall}" Height="490" Width="800" Loaded="Window_Loaded" ResizeMode="NoResize" Icon="Resources/containership.ico">
-
-
+
+
@@ -32,6 +32,7 @@
+
@@ -45,8 +46,18 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -54,14 +65,14 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -69,25 +80,26 @@
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
-
-
+
+
+
+
@@ -132,21 +144,14 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
+
+
diff --git a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs
index 0bb4f61..86b5dfb 100644
--- a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs
+++ b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs
@@ -263,6 +263,8 @@ namespace BreCalClient
this.comboBoxTerminal.IsEnabled = isEnabled;
this.checkBoxRainsensitiveCargo.IsEnabled = isEnabled;
this.textBoxRemarks.IsEnabled = isEnabled;
+
+ this.buttonOK.IsEnabled = isEnabled;
}
#endregion
diff --git a/src/BreCalClient/EditTimesControl.xaml b/src/BreCalClient/EditTimesControl.xaml
index 39de9a5..01a78c9 100644
--- a/src/BreCalClient/EditTimesControl.xaml
+++ b/src/BreCalClient/EditTimesControl.xaml
@@ -81,9 +81,9 @@
-
+
-
+
diff --git a/src/BreCalClient/EditTimesControl.xaml.cs b/src/BreCalClient/EditTimesControl.xaml.cs
index 4b5850e..a157705 100644
--- a/src/BreCalClient/EditTimesControl.xaml.cs
+++ b/src/BreCalClient/EditTimesControl.xaml.cs
@@ -87,6 +87,7 @@ namespace BreCalClient
private void EnableControls()
{
Extensions.ParticipantType pType = (Extensions.ParticipantType) (this.Times.ParticipantType ?? 0);
+ if (this.Times.ParticipantId != App.Participant.Id) return; // if this is not "my" entry, there is no editing!
switch (pType)
{
@@ -115,6 +116,7 @@ namespace BreCalClient
this.textBoxRemarks.IsEnabled = true;
break;
}
+ this.buttonOK.IsEnabled = true;
}
#endregion
diff --git a/src/BreCalClient/EditTimesTerminalControl.xaml b/src/BreCalClient/EditTimesTerminalControl.xaml
index e93115d..1df1810 100644
--- a/src/BreCalClient/EditTimesTerminalControl.xaml
+++ b/src/BreCalClient/EditTimesTerminalControl.xaml
@@ -32,7 +32,7 @@
-
+
-
+
-
+
-
+
-
-
+
+
-
+
diff --git a/src/BreCalClient/EditTimesTerminalControl.xaml.cs b/src/BreCalClient/EditTimesTerminalControl.xaml.cs
index 26ffb9f..ea9f257 100644
--- a/src/BreCalClient/EditTimesTerminalControl.xaml.cs
+++ b/src/BreCalClient/EditTimesTerminalControl.xaml.cs
@@ -94,12 +94,15 @@ namespace BreCalClient
private void EnableControls()
{
+ if (this.Times.ParticipantId != App.Participant.Id) return;
+
this.datePickerOperationStart.IsEnabled = (CallType == Extensions.TypeEnum.Incoming) || (CallType == Extensions.TypeEnum.Shifting);
this.datePickerOperationEnd.IsEnabled = (CallType == Extensions.TypeEnum.Outgoing) || (CallType == Extensions.TypeEnum.Shifting);
this.comboBoxBerth.IsEnabled = (CallType == Extensions.TypeEnum.Incoming) || (CallType == Extensions.TypeEnum.Shifting);
this.comboBoxPierside.IsEnabled = (CallType == Extensions.TypeEnum.Incoming) || (CallType == Extensions.TypeEnum.Shifting);
this.textBoxBerthRemarks.IsEnabled = (CallType == Extensions.TypeEnum.Incoming) || (CallType == Extensions.TypeEnum.Shifting);
this.textBoxRemarks.IsEnabled = true;
+ this.buttonOK.IsEnabled = true;
}
#endregion
diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs
index 6df2daf..c9e49ae 100644
--- a/src/BreCalClient/MainWindow.xaml.cs
+++ b/src/BreCalClient/MainWindow.xaml.cs
@@ -46,7 +46,9 @@ namespace BreCalClient
private bool _refreshImmediately = false;
private bool? _showCanceled = null;
- private SortOrder? _sortOrder;
+ private SortOrder _sortOrder = SortOrder.ETA_ETD;
+ private int searchPastDays = 0;
+
// private bool _filterChanged = false;
// private bool _sequenceChanged = false;
@@ -88,6 +90,7 @@ namespace BreCalClient
Process.Start("explorer", Properties.Settings.Default.LOGO_IMAGE_URL);
};
this.comboBoxSortOrder.ItemsSource = Enum.GetValues(typeof(Extensions.SortOrder));
+ this.comboBoxSortOrder.SelectedIndex = (int)_sortOrder;
}
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
@@ -190,6 +193,7 @@ namespace BreCalClient
private void buttonInfo_Click(object sender, RoutedEventArgs e)
{
AboutDialog ad = new();
+ ad.LoginResult = this._loginResult;
ad.ChangePasswordRequested += async (oldPw, newPw) =>
{
if (_loginResult != null)
@@ -200,6 +204,7 @@ namespace BreCalClient
FirstName = _loginResult.FirstName,
LastName = _loginResult.LastName,
UserPhone = _loginResult.UserPhone,
+ UserEmail = _loginResult.UserEmail,
OldPassword = oldPw,
NewPassword = newPw
};
@@ -293,7 +298,11 @@ namespace BreCalClient
List? shipcalls = null;
try
{
- shipcalls = await _api.ShipcallsGetAsync();
+ if(this.searchPastDays != 0)
+ shipcalls = await _api.ShipcallsGetAsync(this.searchPastDays);
+ else
+ shipcalls = await _api.ShipcallsGetAsync();
+
this.Dispatcher.Invoke(new Action(() =>
{
labelGeneralStatus.Text = $"Connection {ConnectionStatus.SUCCESSFUL}";
@@ -374,8 +383,16 @@ namespace BreCalClient
Shipcall shipcall = scm.Shipcall;
if (BreCalLists.ShipLookupDict.ContainsKey(shipcall.ShipId))
scm.Ship = BreCalLists.ShipLookupDict[shipcall.ShipId];
- if (BreCalLists.BerthLookupDict.ContainsKey(shipcall.ArrivalBerthId ?? 0))
- scm.Berth = BreCalLists.BerthLookupDict[shipcall.ArrivalBerthId ?? 0].Name;
+ if (shipcall.Type == 1)
+ {
+ if (BreCalLists.BerthLookupDict.ContainsKey(shipcall.ArrivalBerthId ?? 0))
+ scm.Berth = BreCalLists.BerthLookupDict[shipcall.ArrivalBerthId ?? 0].Name;
+ }
+ else
+ {
+ if (BreCalLists.BerthLookupDict.ContainsKey(shipcall.DepartureBerthId ?? 0))
+ scm.Berth = BreCalLists.BerthLookupDict[shipcall.DepartureBerthId ?? 0].Name;
+ }
scm.AssignParticipants();
this.Dispatcher.Invoke(() =>
@@ -399,8 +416,16 @@ namespace BreCalClient
Shipcall shipcall = scm.Shipcall;
if (BreCalLists.ShipLookupDict.ContainsKey(shipcall.ShipId))
scm.Ship = BreCalLists.ShipLookupDict[shipcall.ShipId];
- if (BreCalLists.BerthLookupDict.ContainsKey(shipcall.ArrivalBerthId ?? 0))
- scm.Berth = BreCalLists.BerthLookupDict[shipcall.ArrivalBerthId ?? 0].Name;
+ if (shipcall.Type == 1)
+ {
+ if (BreCalLists.BerthLookupDict.ContainsKey(shipcall.ArrivalBerthId ?? 0))
+ scm.Berth = BreCalLists.BerthLookupDict[shipcall.ArrivalBerthId ?? 0].Name;
+ }
+ else
+ {
+ if (BreCalLists.BerthLookupDict.ContainsKey(shipcall.DepartureBerthId ?? 0))
+ scm.Berth = BreCalLists.BerthLookupDict[shipcall.DepartureBerthId ?? 0].Name;
+ }
scm.AssignParticipants();
}
@@ -422,6 +447,21 @@ namespace BreCalClient
{
SearchFilterModel sfm = this.searchFilterControl.SearchFilter;
+ if( sfm.EtaFrom.HasValue && sfm.EtaFrom < DateTime.Now.AddDays(-2))
+ {
+ int daysInThePast = (int)Math.Ceiling((DateTime.Now - sfm.EtaFrom.Value).TotalDays);
+ if (this.searchPastDays != daysInThePast)
+ {
+ this.searchPastDays = daysInThePast;
+ _refreshImmediately = true; // set flag to avoid timer loop termination
+ _tokenSource.Cancel(); // force timer loop end
+ }
+ }
+ else
+ {
+ searchPastDays = 0;
+ }
+
this._visibleControlModels.Clear();
// first add everything
this._visibleControlModels.AddRange(_allShipcallsDict.Values);
@@ -480,31 +520,28 @@ namespace BreCalClient
{
_ = this._visibleControlModels.RemoveAll(x => x.Shipcall?.Canceled ?? false);
}
-
- if (this._sortOrder != null)
- {
- switch(this._sortOrder)
- {
- case Extensions.SortOrder.SHIP_NAME:
- this._visibleControlModels.Sort((x, y) => { if (x.Ship == null) return 0; if (y.Ship == null) return 0; return x.Ship.Name.CompareTo(y.Ship.Name); });
- break;
- case Extensions.SortOrder.MODIFIED:
- this._visibleControlModels.Sort((x, y) => { if (x.Shipcall == null) return 0; if (y.Shipcall == null) return 0; return DateTime.Compare(x.Shipcall.Modified ?? x.Shipcall.Created, y.Shipcall.Modified ?? x.Shipcall.Created); });
- break;
- case Extensions.SortOrder.ETA_ETD:
- this._visibleControlModels.Sort((x, y) =>
- {
- if (x.Shipcall == null) return 0;
- if (y.Shipcall == null) return 0;
- DateTime xDate = (x.Shipcall.Type == (int) Extensions.TypeEnum.Incoming) ? x.Shipcall.Eta ?? DateTime.Now : x.Shipcall.Etd ?? DateTime.Now;
- DateTime yDate = (y.Shipcall.Type == (int) Extensions.TypeEnum.Incoming) ? y.Shipcall.Eta ?? DateTime.Now : y.Shipcall.Etd ?? DateTime.Now;
- return DateTime.Compare(xDate, yDate);
- });
- break;
- default:
- break;
- }
- }
+
+ switch(this._sortOrder)
+ {
+ case Extensions.SortOrder.SHIP_NAME:
+ this._visibleControlModels.Sort((x, y) => { if (x.Ship == null) return 0; if (y.Ship == null) return 0; return x.Ship.Name.CompareTo(y.Ship.Name); });
+ break;
+ case Extensions.SortOrder.MODIFIED:
+ this._visibleControlModels.Sort((x, y) => { if (x.Shipcall == null) return 0; if (y.Shipcall == null) return 0; return DateTime.Compare(x.Shipcall.Modified ?? x.Shipcall.Created, y.Shipcall.Modified ?? x.Shipcall.Created); });
+ break;
+ case Extensions.SortOrder.ETA_ETD:
+ this._visibleControlModels.Sort((x, y) =>
+ {
+ if (x.Shipcall == null) return 0;
+ if (y.Shipcall == null) return 0;
+ DateTime xDate = (x.Shipcall.Type == (int) Extensions.TypeEnum.Incoming) ? x.Shipcall.Eta ?? DateTime.Now : x.Shipcall.Etd ?? DateTime.Now;
+ DateTime yDate = (y.Shipcall.Type == (int) Extensions.TypeEnum.Incoming) ? y.Shipcall.Eta ?? DateTime.Now : y.Shipcall.Etd ?? DateTime.Now;
+ return DateTime.Compare(xDate, yDate);
+ });
+ break;
+ default:
+ break;
+ }
}
diff --git a/src/BreCalClient/Properties/PublishProfiles/ClickOnceDevelProfile.pubxml b/src/BreCalClient/Properties/PublishProfiles/ClickOnceDevelProfile.pubxml
new file mode 100644
index 0000000..146bf89
--- /dev/null
+++ b/src/BreCalClient/Properties/PublishProfiles/ClickOnceDevelProfile.pubxml
@@ -0,0 +1,53 @@
+
+
+
+
+ 0
+ 0.9.5.0
+ True
+ Debug
+ True
+ True
+ https://www.textbausteine.net/
+ true
+ True
+ Web
+ https://www.bsmd-emswe.eu/develclient/
+ False
+ True
+ True
+ False
+ Any CPU
+ Bremen calling development client
+ bin\Debug\net6.0-windows\win-x64\app.publish\
+ bin\publish.devel\
+ Informatikbüro Daniel Schick
+ ClickOnce
+ True
+ True
+ win-x64
+ True
+ (none)
+ False
+ Bremen calling
+ https://www.textbausteine.net/
+ net6.0-windows
+ True
+ Foreground
+ False
+ Publish.html
+
+
+
+
+
+
+
+ Include
+ true
+ File
+
+
+
\ No newline at end of file
diff --git a/src/BreCalClient/Properties/PublishProfiles/ClickOnceProfile.pubxml b/src/BreCalClient/Properties/PublishProfiles/ClickOnceProfile.pubxml
index fab3079..1926cef 100644
--- a/src/BreCalClient/Properties/PublishProfiles/ClickOnceProfile.pubxml
+++ b/src/BreCalClient/Properties/PublishProfiles/ClickOnceProfile.pubxml
@@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
0
- 0.9.3.0
+ 0.9.5.0
False
Release
True
@@ -19,12 +19,12 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
True
False
Any CPU
- bin\Release\net6.0-windows\app.publish\
+ bin\Release\net6.0-windows\win-x64\app.publish\
bin\publish\
ClickOnce
False
- False
- False
+ True
+ True
(none)
False
net6.0-windows
@@ -38,11 +38,18 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
Informatikbüro Daniel Schick
Bremen calling client
https://www.bsmd-emswe.eu/
+ win-x64
+ false
-
- true
- .NET Desktop Runtime 6.0.16 (x64)
-
+
+
+
+
+
+ Include
+ true
+ File
+
\ No newline at end of file
diff --git a/src/BreCalClient/Properties/PublishProfiles/ClickOnceTestProfile.pubxml b/src/BreCalClient/Properties/PublishProfiles/ClickOnceTestProfile.pubxml
index 300d77f..190ecc9 100644
--- a/src/BreCalClient/Properties/PublishProfiles/ClickOnceTestProfile.pubxml
+++ b/src/BreCalClient/Properties/PublishProfiles/ClickOnceTestProfile.pubxml
@@ -5,11 +5,12 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
0
- 0.9.3.0
- False
+ 0.9.5.*
+ True
Debug
+ True
True
- http://www.textbausteine.net
+ https://www.textbausteine.net/
true
True
Web
diff --git a/src/BreCalClient/Properties/Settings.Designer.cs b/src/BreCalClient/Properties/Settings.Designer.cs
index 6f08fee..8e2d2d1 100644
--- a/src/BreCalClient/Properties/Settings.Designer.cs
+++ b/src/BreCalClient/Properties/Settings.Designer.cs
@@ -34,7 +34,7 @@ namespace BreCalClient.Properties {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("#751D1F")]
+ [global::System.Configuration.DefaultSettingValueAttribute("#1D751F")]
public string BG_COLOR {
get {
return ((string)(this["BG_COLOR"]));
diff --git a/src/BreCalClient/Properties/Settings.settings b/src/BreCalClient/Properties/Settings.settings
index 4833674..fdf2294 100644
--- a/src/BreCalClient/Properties/Settings.settings
+++ b/src/BreCalClient/Properties/Settings.settings
@@ -6,7 +6,7 @@
https://brecal.bsmd-emswe.eu
- #751D1F
+ #1D751F
!!Bremen calling Testversion!!
diff --git a/src/BreCalClient/Resources/Resources.Designer.cs b/src/BreCalClient/Resources/Resources.Designer.cs
index 66aadc9..d020a2a 100644
--- a/src/BreCalClient/Resources/Resources.Designer.cs
+++ b/src/BreCalClient/Resources/Resources.Designer.cs
@@ -346,6 +346,15 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Update contact info.
+ ///
+ public static string textChangeContactInfo {
+ get {
+ return ResourceManager.GetString("textChangeContactInfo", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Change password.
///
@@ -436,6 +445,15 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to E-mail.
+ ///
+ public static string textEmail {
+ get {
+ return ResourceManager.GetString("textEmail", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Enter keyword.
///
@@ -661,6 +679,15 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Phone.
+ ///
+ public static string textPhone {
+ get {
+ return ResourceManager.GetString("textPhone", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Pier side.
///
diff --git a/src/BreCalClient/Resources/Resources.de.resx b/src/BreCalClient/Resources/Resources.de.resx
index 5606ede..5dbb002 100644
--- a/src/BreCalClient/Resources/Resources.de.resx
+++ b/src/BreCalClient/Resources/Resources.de.resx
@@ -406,4 +406,13 @@
Breite
+
+ Kontaktdaten bearbeiten
+
+
+ E-Mail
+
+
+ Telefon
+
\ No newline at end of file
diff --git a/src/BreCalClient/Resources/Resources.resx b/src/BreCalClient/Resources/Resources.resx
index 1bad839..add0c1f 100644
--- a/src/BreCalClient/Resources/Resources.resx
+++ b/src/BreCalClient/Resources/Resources.resx
@@ -208,6 +208,9 @@
Change
+
+ Update contact info
+
Change password
@@ -238,6 +241,9 @@
Edit times
+
+ E-mail
+
Enter keyword
@@ -313,6 +319,9 @@
Password changed.
+
+ Phone
+
Pier side
diff --git a/src/BreCalClient/ShipcallControl.xaml b/src/BreCalClient/ShipcallControl.xaml
index 913e936..c3b9155 100644
--- a/src/BreCalClient/ShipcallControl.xaml
+++ b/src/BreCalClient/ShipcallControl.xaml
@@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:p = "clr-namespace:BreCalClient.Resources"
xmlns:sets="clr-namespace:BreCalClient.Properties"
- xmlns:db="clr-namespace:BreCalClient;assembly=BreCalTestClient"
+ xmlns:db="clr-namespace:BreCalClient;assembly=BreCalDevelClient"
mc:Ignorable="d"
d:DesignHeight="120" d:DesignWidth="800" Loaded="UserControl_Loaded">
@@ -106,17 +106,18 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -198,17 +199,17 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/BreCalClient/ShipcallControl.xaml.cs b/src/BreCalClient/ShipcallControl.xaml.cs
index a087172..eb74cc7 100644
--- a/src/BreCalClient/ShipcallControl.xaml.cs
+++ b/src/BreCalClient/ShipcallControl.xaml.cs
@@ -139,13 +139,13 @@ namespace BreCalClient
switch (this.ShipcallControlModel?.Shipcall?.Type)
{
case 1: // incoming
- this.imageShipcallType.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalTestClient;component/Resources/arrow_down_red.png"));
+ this.imageShipcallType.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalDevelClient;component/Resources/arrow_down_red.png"));
break;
case 2: // outgoing
- this.imageShipcallType.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalTestClient;component/Resources/arrow_up_blue.png"));
+ this.imageShipcallType.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalDevelClient;component/Resources/arrow_up_blue.png"));
break;
case 3: // shifting
- this.imageShipcallType.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalTestClient;component/Resources/arrow_right_green.png"));
+ this.imageShipcallType.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalDevelClient;component/Resources/arrow_right_green.png"));
break;
default:
break;
@@ -154,13 +154,13 @@ namespace BreCalClient
switch(this.ShipcallControlModel?.LightMode)
{
case ShipcallControlModel.TrafficLightMode.GREEN:
- this.imageEvaluation.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalTestClient;component/Resources/check.png"));
+ this.imageEvaluation.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalDevelClient;component/Resources/check.png"));
break;
case ShipcallControlModel.TrafficLightMode.YELLOW:
- this.imageEvaluation.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalTestClient;component/Resources/sign_warning.png"));
+ this.imageEvaluation.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalDevelClient;component/Resources/sign_warning.png"));
break;
case ShipcallControlModel.TrafficLightMode.RED:
- this.imageEvaluation.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalTestClient;component/Resources/delete2.png"));
+ this.imageEvaluation.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalDevelClient;component/Resources/delete2.png"));
break;
default:
break;
@@ -191,11 +191,11 @@ namespace BreCalClient
this.textBlockBerth.Text = this.ShipcallControlModel?.Berth;
this.textBlockCallsign.Text = this.ShipcallControlModel?.Ship?.Callsign;
- if ((this.ShipcallControlModel?.Shipcall?.Type == 1) || (this.ShipcallControlModel?.Shipcall?.Type == 3))
+ if (this.ShipcallControlModel?.Shipcall?.Type == 1)
{
this.textBlockETA.Text = this.ShipcallControlModel?.Shipcall?.Eta?.ToString("dd.MM. HH:mm");
}
- if (this.ShipcallControlModel?.Shipcall?.Type == 2)
+ if ((this.ShipcallControlModel?.Shipcall?.Type == 2) || (this.ShipcallControlModel?.Shipcall?.Type == 3))
{
this.labelETA.Text = "ETD";
this.textBlockETA.Text = this.ShipcallControlModel?.Shipcall?.Etd?.ToString("dd.MM. HH:mm");
@@ -222,21 +222,21 @@ namespace BreCalClient
foreach (Times times in this.ShipcallControlModel.Times)
{
string? berthText = null;
- if ((BreCalLists.Berths != null) && times.BerthId.HasValue)
+ if ((BreCalLists.Berths != null) && times.BerthId.HasValue && (this.ShipcallControlModel?.Shipcall?.Type != (int) Extensions.TypeEnum.Shifting))
{
Berth? berth = BreCalLists.Berths.Find((x) => x.Id == times.BerthId);
berthText = berth?.Name;
}
if (berthText == null)
{
- if (this.ShipcallControlModel?.Shipcall?.Type == (int)Extensions.TypeEnum.Outgoing)
+ if (this.ShipcallControlModel?.Shipcall?.Type == (int)Extensions.TypeEnum.Incoming)
{
- Berth? berth = BreCalLists.Berths?.Find((x) => x.Id == this.ShipcallControlModel.Shipcall?.DepartureBerthId);
+ Berth? berth = BreCalLists.Berths?.Find((x) => x.Id == this.ShipcallControlModel.Shipcall?.ArrivalBerthId);
berthText = berth?.Name;
}
else
{
- Berth? berth = BreCalLists.Berths?.Find((x) => x.Id == this.ShipcallControlModel?.Shipcall?.ArrivalBerthId);
+ Berth? berth = BreCalLists.Berths?.Find((x) => x.Id == this.ShipcallControlModel?.Shipcall?.DepartureBerthId);
berthText = berth?.Name;
}
}
diff --git a/src/RoleEditor/App.config b/src/RoleEditor/App.config
index 7c6ee29..51c1ce1 100644
--- a/src/RoleEditor/App.config
+++ b/src/RoleEditor/App.config
@@ -8,7 +8,7 @@
- Server=localhost;User ID=ds;Password=HalloWach_2323XXL!!;Database=bremen_calling;Port=33306
+ Server=localhost;User ID=ds;Password=HalloWach_2323XXL!!;Database=bremen_calling_devel;Port=33306
diff --git a/src/RoleEditor/MainWindow.xaml b/src/RoleEditor/MainWindow.xaml
index 7489d21..2883102 100644
--- a/src/RoleEditor/MainWindow.xaml
+++ b/src/RoleEditor/MainWindow.xaml
@@ -6,7 +6,7 @@
xmlns:local="clr-namespace:RoleEditor"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
mc:Ignorable="d"
- Title="Bremen calling admin editor" Height="650" Width="800" Icon="Resources/lock_preferences.ico" Loaded="Window_Loaded">
+ Title="Bremen calling admin editor" Height="670" Width="800" Icon="Resources/lock_preferences.ico" Loaded="Window_Loaded">
@@ -121,19 +121,23 @@
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+
-