This commit is contained in:
parent
4647eab8ad
commit
1f0e834f34
Binary file not shown.
@ -409,7 +409,7 @@ namespace bsmd.database
|
|||||||
if ((this.LastTenPortFacilitesCalled.Count == 0) || (this.LastTenPortFacilitesCalled.Count > 10))
|
if ((this.LastTenPortFacilitesCalled.Count == 0) || (this.LastTenPortFacilitesCalled.Count > 10))
|
||||||
errors.Add(RuleEngine.CreateError(ValidationCode.IMPLAUSIBLE, "LastTenPortFacilitiesCalled", null, this.Title, null, this.Tablename));
|
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));
|
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "No valid security plan on board?", null, this.Title, null, this.Tablename));
|
||||||
|
|
||||||
if(this.KielCanalPassagePlanned ?? false)
|
if(this.KielCanalPassagePlanned ?? false)
|
||||||
|
|||||||
@ -320,7 +320,7 @@ namespace bsmd.database
|
|||||||
if (this.GrossTonnage.HasValue && ((this.GrossTonnage.Value < 50) || (this.GrossTonnage > 500000)))
|
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));
|
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))
|
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));
|
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Port of registration and flag do not match!", null, this.Title, null, this.Tablename));
|
||||||
|
|||||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user