From 4edb616a045e566bb48f2e28a4e3132c2954aa79 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Mon, 2 Oct 2017 09:00:53 +0000 Subject: [PATCH] =?UTF-8?q?Zwischenversion,=20b=C3=B6sartigen=20HAZA=20Pos?= =?UTF-8?q?itionsfehler=20beseitigt=20(CAST=20AS=20INT!!!)=20Speichern=20v?= =?UTF-8?q?on=20Validierungsregeln=20nahezu=20vollst=C3=A4ndig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ENI-2/ENI2/ENI2/App.xaml.cs | 4 +- .../Controls/ValidationConditionControl.xaml | 8 +- .../ValidationConditionControl.xaml.cs | 1 + ENI-2/ENI2/ENI2/ENI2.csproj | 2 +- nsw/Source/bsmd.database/IBCPosition.cs | 2 +- nsw/Source/bsmd.database/IGCPosition.cs | 2 +- nsw/Source/bsmd.database/IMDGPosition.cs | 2 +- nsw/Source/bsmd.database/IMSBCPosition.cs | 2 +- .../bsmd.database/MARPOL_Annex_I_Position.cs | 2 +- .../Properties/AssemblyProductInfo.cs | 2 +- .../Properties/AssemblyProjectInfo.cs | 2 +- .../bsmd.database/ValidationAttribute.cs | 7 +- .../bsmd.database/ValidationCondition.cs | 21 +++- nsw/Source/bsmd.database/ValidationRule.cs | 98 +++++++++++++++++++ 14 files changed, 134 insertions(+), 21 deletions(-) diff --git a/ENI-2/ENI2/ENI2/App.xaml.cs b/ENI-2/ENI2/ENI2/App.xaml.cs index ead7e9c7..ceac4874 100644 --- a/ENI-2/ENI2/ENI2/App.xaml.cs +++ b/ENI-2/ENI2/ENI2/App.xaml.cs @@ -73,8 +73,10 @@ namespace ENI2 LADG.CargoCodesNST = LocalizedLookup.getCargoCodesNST(); LADG.CargoCodesNST3 = LocalizedLookup.getCargoCodesNST3(); - // Connect to locking service (if enabled) + // Preload validation fields + List vFields = bsmd.database.ValidationRule.ValidationFields; + // Connect to locking service (if enabled) try { if (ENI2.Properties.Settings.Default.UseLocking) diff --git a/ENI-2/ENI2/ENI2/Controls/ValidationConditionControl.xaml b/ENI-2/ENI2/ENI2/Controls/ValidationConditionControl.xaml index 66686e19..d87fea8b 100644 --- a/ENI-2/ENI2/ENI2/Controls/ValidationConditionControl.xaml +++ b/ENI-2/ENI2/ENI2/Controls/ValidationConditionControl.xaml @@ -11,9 +11,9 @@ d:DesignHeight="150" d:DesignWidth="300"> - - + + @@ -24,8 +24,8 @@