B2022-019 pass in Parent/Child even when not calling from a Parent/Child set

This commit is contained in:
2022-01-25 13:45:38 +00:00
parent 31dd017354
commit 77ff645e2c
4 changed files with 48 additions and 30 deletions

View File

@@ -2093,12 +2093,15 @@ namespace Volian.Controls.Library
if (MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.DBConnectionString != "cstring")
roloc = roloc + " \"" + 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)
// B2022-019 look at all DocVersions to find ParentChild information
// to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set
DocVersionInfoList dvil = DocVersionInfoList.Get();
foreach (DocVersionInfo dvi in dvil)
{
string str = dvc.Unit_Name;
if (str !="" && str != "0")
roloc += " \"PC=" + str + "\"";
DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig;
if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0")
roloc += " \"PC=" + dvc.Unit_Name + "\"";
break;
}
System.Diagnostics.Process.Start(roapp, roloc);
}