update 20241210
This commit is contained in:
@@ -22,6 +22,7 @@ namespace OnDoc.Klassen
|
||||
public static string UseAPI { get; set; } = "FALSE";
|
||||
|
||||
public static int CurrentMitarbieter { get; set; }
|
||||
public static string CurrentTGNummer { get; set; } = "";
|
||||
public static string RESTURI { get; set; } = "";//"http://localhost:2032/";
|
||||
public static string apikey { get; set; } = "";
|
||||
|
||||
@@ -36,6 +37,8 @@ namespace OnDoc.Klassen
|
||||
|
||||
public static string ZusatzFont { get; set; } = "";
|
||||
public static string ZusatzFontSize { get; set; } = "";
|
||||
|
||||
public static string EDOKAPath { get; set; } = "";
|
||||
static AppParams()
|
||||
{
|
||||
|
||||
@@ -64,6 +67,7 @@ namespace OnDoc.Klassen
|
||||
barcodetextposition = Properties.Settings.Default.BarodeTextPosition;
|
||||
ZusatzFont = Properties.Settings.Default.ZusatzFont;
|
||||
ZusatzFontSize = Properties.Settings.Default.ZusatzFontSize;
|
||||
EDOKAPath=Properties.Settings.Default.edokapath;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,10 +95,17 @@ namespace OnDoc.Klassen
|
||||
public static string dokumenttypnr { get; set; } = "0";
|
||||
public static string Interaktion { get; set; } = "Yes";
|
||||
public static string showdoc { get; set; } = "Yes";
|
||||
|
||||
public static string unterschriftenpruefung { get; set; } = "No";
|
||||
public static Boolean parseparams()
|
||||
{
|
||||
if (executed) return false;
|
||||
string sparam = sourceparam.Substring(sourceparam.IndexOf('?') + 1, sourceparam.Length - (sourceparam.IndexOf('?') + 1));
|
||||
if (sparam.ToLower() == "ucheck")
|
||||
{
|
||||
unterschriftenpruefung = "Yes";
|
||||
return true;
|
||||
}
|
||||
sparam = Uri.UnescapeDataString(sparam);
|
||||
executed = true;
|
||||
sourceparam = "";
|
||||
|
||||
@@ -15,13 +15,13 @@ namespace OnDoc.Klassen
|
||||
public static class clsProcessWatch
|
||||
{
|
||||
|
||||
public static System.Timers.Timer watchtimer = new System.Timers.Timer(2000);
|
||||
public static System.Timers.Timer watchtimer = new System.Timers.Timer(Convert.ToInt32(Properties.Settings.Default.OfficeWatchTimerIntervall));
|
||||
|
||||
static List<FileToCheck> FilestoCheck = new List<FileToCheck>();
|
||||
|
||||
public static void AddToList(string dokumentid, string filename, string applicatoin)
|
||||
public static void AddToList(string dokumentid, string filename, string application)
|
||||
{
|
||||
FilestoCheck.Add(new FileToCheck(dokumentid, filename, applicatoin));
|
||||
FilestoCheck.Add(new FileToCheck(dokumentid, filename, application));
|
||||
if (watchtimer.Enabled == false) { watchtimer.Enabled = true; }
|
||||
watchtimer.Elapsed += WatchProcesses;
|
||||
}
|
||||
@@ -122,6 +122,7 @@ namespace OnDoc.Klassen
|
||||
private static bool Check_Modified(FileToCheck fc)
|
||||
{
|
||||
DateTime lwt = System.IO.File.GetLastWriteTime(fc.filename);
|
||||
Logging.DocLog.Debug("Prozesswatch - Check Modified: " + lwt.ToString() + "," + fc.filedatetime.ToString(), "Processwatch", fc.dokumentid, "", fc.filename);
|
||||
if ((lwt- fc.filedatetime).Seconds > 2)
|
||||
{
|
||||
return true;
|
||||
@@ -147,6 +148,8 @@ namespace OnDoc.Klassen
|
||||
this.filename = filename;
|
||||
this.application = application;
|
||||
this.filedatetime = DateTime.Now;
|
||||
Logging.DocLog.Debug("Add Processwatch: " + DateTime.Now.ToString(), "New FileToCheck", dokumentid, "", "Add Processwatch");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user