Update nach EDK-Read

This commit is contained in:
Stefan Hutter
2024-07-19 09:51:03 +02:00
parent 977d1b0c9f
commit 153fbef133
7735 changed files with 187935 additions and 103935 deletions

View File

@@ -17,6 +17,10 @@ namespace OnDoc
{
internal static class Program
{
/// Args
/// shodoc:?partnernr=1000210&vorlagenr=125&interaktion=NO&showdoc=YES&funktion=Createdoc
/// E:\Software-Projekte\OnDoc\EDK_Dateien\3bv.edk
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
@@ -32,13 +36,27 @@ namespace OnDoc
ExternalCall.sourceparam = "";
if (args.Length > 0)
{
AppParams.init();
//MessageBox.Show(AppParams.tempdir);
string destfile = AppParams.tempdir + "tmpfile.tmp";
using (StreamWriter outputfile = new StreamWriter(destfile))
if (args[0].ToString().ToUpper().Substring(args[0].ToString().Length - 4, 4) == ".EDK")
{
outputfile.WriteLine(Uri.UnescapeDataString(args[0]));
outputfile.Close();
EDK_Data.Load_EDK_File(args[0]);
}
else
{
if (args[0].ToString().ToUpper().IndexOf("PARTNERNR") > 0)
{
AppParams.init();
//MessageBox.Show(AppParams.tempdir);
string destfile = AppParams.tempdir + "tmpfile.tmp";
using (StreamWriter outputfile = new StreamWriter(destfile))
{
outputfile.WriteLine(Uri.UnescapeDataString(args[0]));
outputfile.Close();
}
}
else
{
MessageBox.Show("Die Übergabeparemeter '" + args[0].ToString()+"' sind ungültig","Aufruffehler",MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}