C2017-003: Support SQL Server for storing of Referenced Object data
This commit is contained in:
@@ -882,6 +882,8 @@ namespace Volian.Controls.Library
|
||||
ROFSTLookup.rochild roch = (ROFSTLookup.rochild)obj;
|
||||
_SelectedRoidBeforeRoEditor = roch.roid;
|
||||
string args = "\"" + _MyROFST.MyRODb.FolderPath + "\" " + roch.roid.ToLower();
|
||||
// C2017-003: ro data in sql server, check for sql connection string
|
||||
if (_MyROFST.MyRODb.DBConnectionString != "cstring") args = args + " \"" + _MyROFST.MyRODb.DBConnectionString + "\"";
|
||||
System.Diagnostics.Process.Start(roapp, args);
|
||||
}
|
||||
}
|
||||
@@ -922,6 +924,8 @@ namespace Volian.Controls.Library
|
||||
FlexibleMessageBox.Show(string.Format("RO Database directory does not exist: {0}", _MyROFST.MyRODb.FolderPath));
|
||||
return;
|
||||
}
|
||||
// C2017-003: ro data in sql server, check for sql connection string
|
||||
if (_MyROFST.MyRODb.DBConnectionString != "cstring") args = args + " \"" + _MyROFST.MyRODb.DBConnectionString + "\"";
|
||||
System.Diagnostics.Process.Start(roapp, args);
|
||||
}
|
||||
}
|
||||
|
@@ -936,9 +936,11 @@ namespace Volian.Controls.Library
|
||||
sw.Close();
|
||||
}
|
||||
string roloc = "\"" + MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath + "\" \"/f=" + fname + "\"";
|
||||
// C2017-003: ro data in sql server, check for sql connection string
|
||||
if (MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.DBConnectionString != "cstring") roloc = roloc + " \"/sql=" + MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.DBConnectionString + "\"";
|
||||
System.Diagnostics.Process p = System.Diagnostics.Process.Start(cmpRptExePath, roloc);
|
||||
// need to wait, sometimes the Print.tmp file that is generated is not available
|
||||
p.WaitForExit(); // without arguments, this will wait indefinately
|
||||
p.WaitForExit(); // without arguments, this will wait indefinitely
|
||||
Application.DoEvents();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@@ -2886,6 +2886,8 @@ namespace Volian.Controls.Library
|
||||
FlexibleMessageBox.Show(string.Format("RO Database directory does not exist: {0}", myRODB.FolderPath));
|
||||
return;
|
||||
}
|
||||
// C2017-003: ro data in sql server, check for sql connection string
|
||||
if (myRODB.DBConnectionString != "cstring") args = args + " \"" + myRODB.DBConnectionString + "\"";
|
||||
System.Diagnostics.Process.Start(roapp, args);
|
||||
}
|
||||
}
|
||||
@@ -3031,6 +3033,8 @@ namespace Volian.Controls.Library
|
||||
FlexibleMessageBox.Show(string.Format("RO Database directory does not exist: {0}", Mydvi.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath));
|
||||
return;
|
||||
}
|
||||
// C2017-003: ro data in sql server, check for sql connection string
|
||||
if (Mydvi.DocVersionAssociations[0].MyROFst.MyRODb.DBConnectionString != "cstring") roloc = roloc + " \"" + Mydvi.DocVersionAssociations[0].MyROFst.MyRODb.DBConnectionString + "\"";
|
||||
System.Diagnostics.Process.Start(roapp, roloc);
|
||||
}
|
||||
|
||||
|
@@ -2045,6 +2045,8 @@ namespace Volian.Controls.Library
|
||||
FlexibleMessageBox.Show(string.Format("RO Database directory does not exist: {0}", MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath));
|
||||
return;
|
||||
}
|
||||
// C2017-003: ro data in sql server, check for sql connection string
|
||||
if (MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.DBConnectionString != "cstring") roloc = roloc + " \"" + MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.DBConnectionString + "\"";
|
||||
System.Diagnostics.Process.Start(roapp, roloc);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user