update 20250219

This commit is contained in:
Stefan Hutter
2025-02-19 18:10:21 +01:00
parent d0d96c0732
commit 8bd079b635
82 changed files with 921 additions and 158 deletions

View File

@@ -13,6 +13,7 @@ using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Serialization;
using Database;
namespace OnDoc.Klassen
@@ -59,6 +60,7 @@ namespace OnDoc.Klassen
public static class EDK_Data
{
public static EDK_ActionType action { get; set; }
public static string sourceApplication { get; set; }
public static string creatortg { get; set; }
public static string source { get; set; }
public static bool executed { get; set; }
@@ -95,8 +97,19 @@ namespace OnDoc.Klassen
return;
}
// read header elements
action = (EDK_ActionType)Enum.Parse(typeof(EDK_ActionType), doc.SelectSingleNode("action/actionId").InnerText, true);
sourceApplication = doc.SelectSingleNode("action/sourceApplication").InnerText;
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("Select count(*) from Avaloq_SourceApplication where AvaloqSourceApplication='" + sourceApplication + "'", false, true);
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]) == 0)
{
Logging.Logging.Debug("EDK-Datei für fehlerhafte Instanz:" + source, "EDK-Verarbeitung", filename);
System.IO.File.Delete(filename);
MessageBox.Show("Der EDK-Aufruf ist ungültig, da dieser nciht für die richtige DB-Instanz ist: " + sourceApplication, "EDK-Aufruf", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
switch (action)
{
case EDK_ActionType.AnzeigePartnerdossier: