Update nach EDK-Read
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user