update3 20260610
This commit is contained in:
@@ -93,14 +93,20 @@ namespace OnDoc.Klassen
|
||||
|
||||
public static void init()
|
||||
{
|
||||
|
||||
string localdrive = Properties.Settings.Default.Lokaldrive;
|
||||
string startuppath = AppDomain.CurrentDomain.BaseDirectory;
|
||||
connectionstring = System.IO.File.ReadAllText(startuppath + @"\ondocconn.cfg");
|
||||
connectionstring = StringCipher.Decrypt(connectionstring, "i%!k!7pab%bNLdA5hE4pkR4XaB%E^jB3d9tHuQ4pbF&BZjF7SB#WBWit5#HrbJiLrLVm");
|
||||
logconnectionstring = System.IO.File.ReadAllText(startuppath + @"\logconn.cfg");
|
||||
logconnectionstring = StringCipher.Decrypt(logconnectionstring, "i%!k!7pab%bNLdA5hE4pkR4XaB%E^jB3d9tHuQ4pbF&BZjF7SB#WBWit5#HrbJiLrLVm");
|
||||
//string startuppath = Application.StartupPath;
|
||||
DB db = new DB(connectionstring);
|
||||
db.Get_Tabledata("Select * from ondoc_appParams where usedbparams=1", false, true);
|
||||
if (startuppath.Substring(0, 2) == localdrive)
|
||||
{
|
||||
db.Get_Tabledata("Select * from ondoc_appParams_Lokal where version = 'lokal'", false, true);
|
||||
}
|
||||
|
||||
//MachinName = System.Environment.MachineName;
|
||||
//O365=false;
|
||||
//try
|
||||
@@ -150,6 +156,10 @@ namespace OnDoc.Klassen
|
||||
else
|
||||
{
|
||||
db.Get_Tabledata("Select * from applikation where applikationsnr = 1", false, true);
|
||||
if (startuppath.Substring(0, 2) == localdrive)
|
||||
{
|
||||
db.Get_Tabledata("Select * from applikation where applikatioinsnr=2", false, true);
|
||||
}
|
||||
tempdir = db.dsdaten.Tables[0].Rows[0]["pfad_temporaer_dokumente"].ToString();
|
||||
StaticValues.UserID = "Stefan Hutter";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user