This commit is contained in:
Kathy Ruffing 2012-08-15 13:55:46 +00:00
parent 9ca49944e3
commit 8a86124826
3 changed files with 8 additions and 4 deletions

View File

@ -1800,7 +1800,10 @@ namespace VEPROMS.CSLA.Library
if (ActiveParent is DocVersionInfo)
_MyDocVersion = ActiveParent as DocVersionInfo;
else
{
if (ActiveParent == null) return null;
_MyDocVersion = (ActiveParent as ItemInfo).MyDocVersion;
}
}
return _MyDocVersion;
}

View File

@ -483,8 +483,10 @@ namespace VEPROMS.CSLA.Library
{
string retstr = tb._ToItem.MyProcedure.MyContent.Number;
// start with UnitSpecific procedure number.
string unitnum = tb._ToItem.MyDocVersion.DocVersionConfig.Unit_ProcedureNumber;
if (unitnum.Length > 0)
string unitnum = null;
if (tb._ToItem.MyDocVersion != null && tb._ToItem.MyDocVersion.DocVersionConfig != null)
unitnum = tb._ToItem.MyDocVersion.DocVersionConfig.Unit_ProcedureNumber;
if (unitnum != null && unitnum.Length > 0)
{
unitnum = unitnum.Replace("-", @"\u8209?");
retstr = unitnum.Replace("#", retstr);

View File

@ -286,8 +286,7 @@ namespace Volian.Print.Library
{
get
{
if (_MaxRNO == 0) _MaxRNO = _MySection.ColumnMode;
return _MaxRNO;
return _MySection.ColumnMode;
}
}
private int _CurrentPageOf = 0;