This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user