From 90a4915683fa3806eec7d38c061f89b6d5b0d042 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Thu, 19 Feb 2026 10:42:36 +0100 Subject: [PATCH] =?UTF-8?q?Refactoring=20PortArea:=20-=20Hinzuf=C3=BCgen?= =?UTF-8?q?=20eines=20Editors=20im=20Admin-Bereich=20-=20Entfernen=20der?= =?UTF-8?q?=20PortArea=20Daten=20aus=20SQLite=20und=20den=20Zugriffsklasse?= =?UTF-8?q?n=20-=20Ersetzen=20aller=20Zugriffe=20durch=20Daten=20aus=20der?= =?UTF-8?q?=20DB=20(DBManagerAsync)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ENI2/App.xaml.cs | 2 +- ENI2/Controls/PortAreaControl.xaml | 124 +++++++++++++++ ENI2/Controls/PortAreaControl.xaml.cs | 142 ++++++++++++++++++ .../PortNotificationDetailControl.xaml.cs | 2 +- ENI2/ENI2.csproj | 37 +++-- .../EditControls/SelectPortAreaDialog.xaml.cs | 31 ++-- ENI2/Excel/DakosyUtil.cs | 2 +- ENI2/Excel/ExcelLocalImportHelper.cs | 73 +++++++++ ENI2/Excel/ExcelUtil.cs | 4 +- ENI2/LocalizedLookup.cs | 75 +-------- ENI2/MainWindow.xaml | 17 ++- ENI2/MainWindow.xaml.cs | 11 +- ENI2/SheetDisplayControls/PortControl.xaml.cs | 2 +- bsmd.database/DBManager.cs | 53 +++---- bsmd.database/DBManagerAsync.cs | 84 ++++++++++- bsmd.database/INFO.cs | 31 +--- bsmd.database/PortArea.cs | 102 ++++++++----- misc/db.sqlite | Bin 14426112 -> 14426112 bytes 18 files changed, 584 insertions(+), 208 deletions(-) create mode 100644 ENI2/Controls/PortAreaControl.xaml create mode 100644 ENI2/Controls/PortAreaControl.xaml.cs diff --git a/ENI2/App.xaml.cs b/ENI2/App.xaml.cs index 24c2b9ae..522c317e 100644 --- a/ENI2/App.xaml.cs +++ b/ENI2/App.xaml.cs @@ -91,7 +91,7 @@ namespace ENI2 // Preload validation fields List vFields = bsmd.database.ValidationRule.ValidationFields; RuleEngine.RegisterLocodeChecker(Util.GlobalStructures.IsValidLocode); - RuleEngine.RegisterPortAreaChecker(LocalizedLookup.PortAreaExists); + RuleEngine.RegisterPortAreaChecker(bsmd.database.PortArea.PortAreaExists); RuleEngine.RegisterNationalityChecker(LocalizedLookup.CheckNationality); // Register expandable Properties diff --git a/ENI2/Controls/PortAreaControl.xaml b/ENI2/Controls/PortAreaControl.xaml new file mode 100644 index 00000000..a86f8731 --- /dev/null +++ b/ENI2/Controls/PortAreaControl.xaml @@ -0,0 +1,124 @@ + + + + + + +