Don't open all PDFs if printing All Procedures
Fixed logic so that Single RO Values don't fail in MSWord
This commit is contained in:
parent
ea85aeba23
commit
12a9006816
@ -57,7 +57,8 @@ namespace VEPROMS
|
|||||||
btnCreatePDF.Text = "Create PDFs";
|
btnCreatePDF.Text = "Create PDFs";
|
||||||
HandleDocVersionSettings();
|
HandleDocVersionSettings();
|
||||||
PrepForAllOrOne(false);
|
PrepForAllOrOne(false);
|
||||||
cbxOpenAfterCreate2.Checked = dvi.DocVersionConfig.Print_AlwaysViewPDFAfterCreate;
|
// don't open all PDFs if doing All Procedures
|
||||||
|
//cbxOpenAfterCreate2.Checked = dvi.DocVersionConfig.Print_AlwaysViewPDFAfterCreate;
|
||||||
}
|
}
|
||||||
private void PrepForAllOrOne(bool oneProcedure)
|
private void PrepForAllOrOne(bool oneProcedure)
|
||||||
{
|
{
|
||||||
|
@ -801,7 +801,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
||||||
if (child == null) return null;
|
if (child == null) return null;
|
||||||
if(((rochild)child).children.Length > 0)
|
if (((rochild)child).children != null && ((rochild)child).children.Length > 0)
|
||||||
return ((rochild)child).children[0].value;
|
return ((rochild)child).children[0].value;
|
||||||
string val = ((rochild)child).value;
|
string val = ((rochild)child).value;
|
||||||
if (val != null) return val;
|
if (val != null) return val;
|
||||||
@ -811,7 +811,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
||||||
if (child == null) return null;
|
if (child == null) return null;
|
||||||
if (((rochild)child).children.Length > 0)
|
if (((rochild)child).children != null && ((rochild)child).children.Length > 0)
|
||||||
return ((rochild)child).children[0].type;
|
return ((rochild)child).children[0].type;
|
||||||
return ((rochild)child).type;
|
return ((rochild)child).type;
|
||||||
return null;
|
return null;
|
||||||
@ -820,7 +820,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
||||||
if (child == null) return null;
|
if (child == null) return null;
|
||||||
if (((rochild)child).children.Length > 0)
|
if (((rochild)child).children != null && ((rochild)child).children.Length > 0)
|
||||||
return ((rochild)child).children[0].roid;
|
return ((rochild)child).children[0].roid;
|
||||||
return ((rochild)child).roid;
|
return ((rochild)child).roid;
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user