This commit is contained in:
Drechsler, Meik
2025-10-15 14:56:07 +02:00
commit f563d78417
896 changed files with 654481 additions and 0 deletions

View File

@@ -0,0 +1,99 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace C4IT.LIAM
{
public class cLIAMHelper
{
public static void AddXmlElement(XmlNode xNode, string Name, string Text)
{
var xItem = xNode.OwnerDocument.CreateElement(Name);
xNode.AppendChild(xItem);
if (!string.IsNullOrEmpty(Text))
{
var xText = xNode.OwnerDocument.CreateTextNode(Text);
xItem.AppendChild(xText);
}
}
public static string getStringFromObject(object o, string Default = "")
{
try
{
if (o == null)
return Default;
if (o is DBNull)
return Default;
return o.ToString();
}
catch { }
return Default;
}
public static int getIntFromObject(object o, int Default = 0)
{
try
{
if (o == null)
return Default;
if (o is DBNull)
return Default;
if (o is int @int)
return @int;
if (o is long int1)
return (int)int1;
if (int.TryParse(o.ToString(), out var r))
return r;
}
catch { }
return Default;
}
public static Guid getGuidFromObject(object o)
{
try
{
if (o == null)
return Guid.Empty;
if (o is DBNull)
return Guid.Empty;
if (o is Guid G)
return G;
if (Guid.TryParse(o.ToString(), out var r))
return r;
}
catch { }
return Guid.Empty;
}
public static string getUidItem(ref string UID)
{
try
{
var p = UID.IndexOf('|');
if (p >= 0)
{
var Item = UID.Substring(0, p);
UID = UID.Remove(0, p + 1);
UID = UID.TrimStart();
return Item.Trim();
}
}
catch { };
var h2 = UID;
UID = "";
return h2;
}
}
public abstract class aLIAMM42Base {
}
}

View File

@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6B0E73A6-F918-42D5-9525-D59D4D16283D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>LiamHelper</RootNamespace>
<AssemblyName>LiamHelper</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>false</Deterministic>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\_shared\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\Common Code\Http\C4IT.HTTP.HttpApiBase.cs">
<Link>Common\C4IT.HTTP.HttpApiBase.cs</Link>
</Compile>
<Compile Include="..\..\Common Code\Licensing\C4IT.Licensing.LicenseBase.cs">
<Link>Common\C4IT.Licensing.LicenseBase.cs</Link>
</Compile>
<Compile Include="..\..\Common Code\Logging\C4IT.Logging.LogManager.cs">
<Link>Common\C4IT.Logging.LogManager.cs</Link>
</Compile>
<Compile Include="..\..\Common Code\MsCloud\C4IT.MsGraph.Base.cs">
<Link>Common\C4IT.MsGraph.Base.cs</Link>
</Compile>
<Compile Include="..\..\Common Code\Security\C4IT.Security.Base32.cs">
<Link>Common\C4IT.Security.Base32.cs</Link>
</Compile>
<Compile Include="..\..\Common Code\Security\C4IT.Security.SecurePassword.cs">
<Link>Common\C4IT.Security.SecurePassword.cs</Link>
</Compile>
<Compile Include="..\..\Matrix42\M42CommonCode\M42ServerInfo\C4IT.Matrix42.LicenseESM.cs">
<Link>Common\C4IT.Matrix42.LicenseESM.cs</Link>
</Compile>
<Compile Include="..\..\Matrix42\M42CommonCode\M42ServerInfo\C4IT.Matrix42.ServerInfo.cs">
<Link>Common\C4IT.Matrix42.ServerInfo.cs</Link>
</Compile>
<Compile Include="..\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="C4IT.LIAM.Helper.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

View File

@@ -0,0 +1,11 @@
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("LIAM support library for basic functionalities")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("6b0e73a6-f918-42d5-9525-d59d4d16283d")]

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6.2", FrameworkDisplayName = ".NET Framework 4.6.2")]

View File

@@ -0,0 +1 @@
fa1308e47d656f8d45ff7eb54320edbe298f027def67be470e1176380e178ef8

View File

@@ -0,0 +1,8 @@
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\bin\Debug\LiamHelper.dll
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\bin\Debug\LiamHelper.pdb
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\bin\Debug\Newtonsoft.Json.dll
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Debug\LiamHelper.csproj.AssemblyReference.cache
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Debug\LiamHelper.csproj.CoreCompileInputs.cache
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Debug\LiamHelper.csproj.Up2Date
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Debug\LiamHelper.dll
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Debug\LiamHelper.pdb

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6.2", FrameworkDisplayName = ".NET Framework 4.6.2")]

View File

@@ -0,0 +1 @@
e5ff73ca7ab222930200dc95f233677e4358ddfc4482a612b7d96d638bfb1715

View File

@@ -0,0 +1,8 @@
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\bin\Release\LiamHelper.dll
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\bin\Release\LiamHelper.pdb
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\bin\Release\Newtonsoft.Json.dll
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Release\LiamHelper.csproj.AssemblyReference.cache
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Release\LiamHelper.csproj.CoreCompileInputs.cache
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Release\LiamHelper.csproj.Up2Date
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Release\LiamHelper.dll
C:\Workspace\C4IT DEV LIAM WEB Service\LiamHelper\obj\Release\LiamHelper.pdb

Binary file not shown.

Binary file not shown.