Added code to store the xml representation of the approved version of the procedure in the database for future support of temp mods, etc.

This commit is contained in:
Rich
2015-02-05 03:53:29 +00:00
parent e3b5351b30
commit 34bfdba7b2
4 changed files with 84 additions and 8 deletions

View File

@@ -133,6 +133,26 @@ namespace VEPROMS.CSLA.Library
}
}
}
private string _ApprovedXML;
public string ApprovedXML
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
get
{
CanReadProperty("ApprovedXML", true);
return _ApprovedXML;
}
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
set
{
CanWriteProperty("ApprovedXML", true);
if (_ApprovedXML != value)
{
_ApprovedXML = value;
PropertyHasChanged();
}
}
}
private DateTime _DTS = new DateTime();
public DateTime DTS
{
@@ -471,7 +491,7 @@ namespace VEPROMS.CSLA.Library
// if we're not dirty then don't update the database
if (!this.IsDirty) return;
SqlConnection cn = (SqlConnection)ApplicationContext.LocalContext["cn"];
_LastChanged = Version.Add(cn, ref _VersionID, myRevision, _MyStage, _PDF, _SummaryPDF, _DTS, _UserID);
_LastChanged = Version.Add(cn, ref _VersionID, myRevision, _MyStage, _PDF, _SummaryPDF, _ApprovedXML, _DTS, _UserID);
MarkOld();
}
internal void Update(Revision myRevision)
@@ -479,7 +499,7 @@ namespace VEPROMS.CSLA.Library
// if we're not dirty then don't update the database
if (!this.IsDirty) return;
SqlConnection cn = (SqlConnection)ApplicationContext.LocalContext["cn"];
_LastChanged = Version.Update(cn, ref _VersionID, myRevision.RevisionID, _StageID, _PDF, _SummaryPDF, _DTS, _UserID, ref _LastChanged);
_LastChanged = Version.Update(cn, ref _VersionID, myRevision.RevisionID, _StageID, _PDF, _SummaryPDF, _ApprovedXML, _DTS, _UserID, ref _LastChanged);
MarkOld();
}
internal void DeleteSelf(Revision myRevision)