~Addressed out-of-memory exception being thrown when right-clicking on a procedure with previous revisions
This commit is contained in:
@@ -597,6 +597,13 @@ namespace VEPROMS.CSLA.Library
|
||||
//if (_RevisionInfoList != null)
|
||||
// return _RevisionInfoList;
|
||||
RevisionInfoList tmp = DataPortal.Fetch<RevisionInfoList>(new ItemUnitCriteria(itemID, unitID));
|
||||
|
||||
foreach (var x in tmp)
|
||||
{
|
||||
x.LatestVersion.ApprovedXML = x.RevisionID.ToString();
|
||||
x.LatestVersion.PDF = Encoding.ASCII.GetBytes(x.RevisionID.ToString());
|
||||
x.LatestVersion.SummaryPDF = Encoding.ASCII.GetBytes(x.RevisionID.ToString());
|
||||
}
|
||||
RevisionInfo.AddList(tmp);
|
||||
tmp.AddEvents();
|
||||
//_RevisionInfoList = tmp;
|
||||
|
@@ -153,6 +153,10 @@ namespace VEPROMS.CSLA.Library
|
||||
CanReadProperty("PDF", true);
|
||||
return _PDF;
|
||||
}
|
||||
set
|
||||
{
|
||||
_PDF = value;
|
||||
}
|
||||
}
|
||||
private byte[] _SummaryPDF;
|
||||
public byte[] SummaryPDF
|
||||
@@ -163,6 +167,10 @@ namespace VEPROMS.CSLA.Library
|
||||
CanReadProperty("SummaryPDF", true);
|
||||
return _SummaryPDF;
|
||||
}
|
||||
set
|
||||
{
|
||||
_SummaryPDF = value;
|
||||
}
|
||||
}
|
||||
private string _ApprovedXML;
|
||||
public string ApprovedXML
|
||||
@@ -173,6 +181,10 @@ namespace VEPROMS.CSLA.Library
|
||||
CanReadProperty("ApprovedXML", true);
|
||||
return _ApprovedXML;
|
||||
}
|
||||
set
|
||||
{
|
||||
_ApprovedXML = value;
|
||||
}
|
||||
}
|
||||
private DateTime _DTS = new DateTime();
|
||||
public DateTime DTS
|
||||
|
Reference in New Issue
Block a user