C2021-026 Parent/Child applicability in RO Editor
This commit is contained in:
@@ -938,6 +938,16 @@ namespace Volian.Controls.Library
|
||||
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 + "\"";
|
||||
|
||||
// C2021-026 pass in Parent/Child information (list of the children)
|
||||
DocVersionConfig dvc = MyDVI.DocVersionConfig as DocVersionConfig;
|
||||
if (dvc != null)
|
||||
{
|
||||
string str = dvc.Unit_Name;
|
||||
if (str != "" && str != "0")
|
||||
roloc += " \"/PC=" + str + "\"";
|
||||
}
|
||||
|
||||
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 indefinitely
|
||||
|
Reference in New Issue
Block a user