From 084f4de514ed573e0ad6d1453f8092c29441acfe Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Thu, 30 Mar 2023 11:13:09 +0200 Subject: [PATCH] =?UTF-8?q?Version=20erh=C3=B6ht=20und=20IMSBC=20Validieru?= =?UTF-8?q?ng=20f=C3=BCr=20dbh=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ENI2/ENI2.csproj | 4 ++-- bsmd.database/IMSBCPosition.cs | 5 +++++ bsmd.database/Properties/AssemblyProductInfo.cs | 2 +- bsmd.database/Properties/AssemblyProjectInfo.cs | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ENI2/ENI2.csproj b/ENI2/ENI2.csproj index a44e8a83..08d545c8 100644 --- a/ENI2/ENI2.csproj +++ b/ENI2/ENI2.csproj @@ -36,8 +36,8 @@ 5.4.0.0 true publish.html - 8 - 7.10.0.%2a + 0 + 7.11.0.%2a false true true diff --git a/bsmd.database/IMSBCPosition.cs b/bsmd.database/IMSBCPosition.cs index 29268676..9c0ed9d0 100644 --- a/bsmd.database/IMSBCPosition.cs +++ b/bsmd.database/IMSBCPosition.cs @@ -233,6 +233,11 @@ namespace bsmd.database if(this.UNNumber.IsNullOrEmpty() || this.IMOClass.IsNullOrEmpty()) violations.Add(RuleEngine.CreateViolation(ValidationCode.V803, null, null, this.Title, this.Identifier, this.HAZ.IsDeparture ? "HAZD" : "HAZA")); } + if(MHB ?? false) + { + if(!this.UNNumber.IsNullOrEmpty() || !this.IMOClass.IsNullOrEmpty()) + violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "UNNumber/IMOClass not empty", null, this.Title, this.Identifier, this.HAZ.IsDeparture ? "HAZD" : "HAZA")); + } if (!this.IMOHazardClass.HasValue) { diff --git a/bsmd.database/Properties/AssemblyProductInfo.cs b/bsmd.database/Properties/AssemblyProductInfo.cs index 9c3c590a..c6d61976 100644 --- a/bsmd.database/Properties/AssemblyProductInfo.cs +++ b/bsmd.database/Properties/AssemblyProductInfo.cs @@ -2,6 +2,6 @@ [assembly: AssemblyCompany("schick Informatik")] [assembly: AssemblyProduct("BSMD NSW interface")] -[assembly: AssemblyInformationalVersion("7.10.0")] +[assembly: AssemblyInformationalVersion("7.11.0")] [assembly: AssemblyCopyright("Copyright © 2014-2023 schick Informatik")] [assembly: AssemblyTrademark("")] \ No newline at end of file diff --git a/bsmd.database/Properties/AssemblyProjectInfo.cs b/bsmd.database/Properties/AssemblyProjectInfo.cs index d380561d..0554b202 100644 --- a/bsmd.database/Properties/AssemblyProjectInfo.cs +++ b/bsmd.database/Properties/AssemblyProjectInfo.cs @@ -1,4 +1,4 @@ using System.Reflection; -[assembly: AssemblyVersion("7.10.0.*")] +[assembly: AssemblyVersion("7.11.0.*")]