C2026 043 tech debt v1 #817

Open
mschill wants to merge 43 commits from C2026-043-Tech-Debt_v1 into Development
Showing only changes of commit 874f9241b8 - Show all commits
+1 -25
View File
@@ -289,31 +289,7 @@ namespace VEPROMS
// cleanup from previous run:
TmpFile.RemoveAllTmps();
if (VlnSettings.DebugMode)
{
//use local data (for development/debug mode)
if (Environment.MachineName == "RMARK-PC")
Database.ConnectionName = "VEPROMS_RMARK_DEBUG";
else if (Environment.MachineName == "WINDOWS7-RHM")
Database.ConnectionName = "VEPROMS_RMARK_DEBUG";
else if (Environment.UserName.ToUpper() == "BODINE")
Database.ConnectionName = "VEPROMS_BODINE_DEBUG";
else
Database.ConnectionName = "VEPROMS_LOCAL";
}
else
{
// use server data (default)
// - except for the volian laptop and Rich's Demo version where we need to use local data
if (Environment.MachineName == "RMARK-PC")
Database.ConnectionName = "VEPROMS_RMARK_DEMO";
else if (Environment.MachineName == "WINDOWS7-RHM")
Database.ConnectionName = "VEPROMS_RMARK_DEMO";
else if (Environment.UserName.ToUpper() == "BODINE")
Database.ConnectionName = "VEPROMS_BODINE_DEMO";
else
Database.ConnectionName = "VEPROMS_LOCAL";
}
Database.ConnectionName = "VEPROMS_LOCAL";
jjenko marked this conversation as resolved Outdated
Outdated
Review

This entire If/else statement can be replaced with
Database.ConnectionName = "VEPROMS_LOCAL";

since Rich's computers are no longer active and user BODINE is no longer an employee.

This entire If/else statement can be replaced with Database.ConnectionName = "VEPROMS_LOCAL"; since Rich's computers are no longer active and user BODINE is no longer an employee.
Outdated
Review

Pushed change removing this.

Pushed change removing this.
InitializeComponent();