This commit is contained in:
Daniel Schick 2019-10-02 09:27:31 +00:00
parent 4647eab8ad
commit 1f0e834f34
4 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -409,7 +409,7 @@ namespace bsmd.database
if ((this.LastTenPortFacilitesCalled.Count == 0) || (this.LastTenPortFacilitesCalled.Count > 10))
errors.Add(RuleEngine.CreateError(ValidationCode.IMPLAUSIBLE, "LastTenPortFacilitiesCalled", null, this.Title, null, this.Tablename));
if (!(this.ValidISSCOnBoard ?? false))
if (!(this.ApprovedSecurityPlanOnBoard ?? false))
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "No valid security plan on board?", null, this.Title, null, this.Tablename));
if(this.KielCanalPassagePlanned ?? false)

View File

@ -320,7 +320,7 @@ namespace bsmd.database
if (this.GrossTonnage.HasValue && ((this.GrossTonnage.Value < 50) || (this.GrossTonnage > 500000)))
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Gross tonnage valid?", null, this.Title, null, this.Tablename));
if((this.PortOfRegistry.Length > 1) && (this.Flag.Length == 2))
if((this.PortOfRegistry?.Length > 1) && (this.Flag?.Length == 2))
{
if (!this.PortOfRegistry.Substring(0, 2).Equals(this.Flag))
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Port of registration and flag do not match!", null, this.Title, null, this.Tablename));

Binary file not shown.