C2025-024 Electronic Procedures Phase 2 - XML Export
Enhanced Doc Links
This commit is contained in:
@@ -1824,7 +1824,7 @@ namespace VEPROMS
|
||||
|
||||
//item audits
|
||||
ExportItemAudits(xe, ii);
|
||||
ExportContent(xe, ii.MyContent, "content");
|
||||
ExportContent(xe, ii, "content");
|
||||
|
||||
if (ii.ItemAnnotationCount > 0)
|
||||
foreach (AnnotationInfo ai in ii.ItemAnnotations)
|
||||
@@ -1844,6 +1844,11 @@ namespace VEPROMS
|
||||
//do nothing - this will be for Electronic procedures only
|
||||
//and handled/overridden in dlgExportEP.cs
|
||||
}
|
||||
protected virtual void SetEPEnhancedDocLinks(ref XmlElement xe, ItemInfo ii)
|
||||
{
|
||||
//do nothing - this will be for Electronic procedures only
|
||||
//and handled/overridden in dlgExportEP.cs
|
||||
}
|
||||
|
||||
//C2025-024 Electronic Procedures Phase 2 - XML Export
|
||||
//use overridden method to set the location for ROs
|
||||
@@ -1908,8 +1913,9 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
|
||||
private void ExportContent(XmlElement xn, ContentInfo ci, string nodename)
|
||||
private void ExportContent(XmlElement xn, ItemInfo ii, string nodename)
|
||||
{
|
||||
ContentInfo ci = ii.MyContent;
|
||||
/*
|
||||
ContentID
|
||||
Number
|
||||
@@ -1939,7 +1945,11 @@ namespace VEPROMS
|
||||
xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "dts", ci.DTS.ToString("MM/dd/yyyy HH:mm:ss.fff")));
|
||||
xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "userid", ci.UserID.ToString()));
|
||||
xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "formatfilename", formatFileName));
|
||||
if (_ExportBothConvertedandNot) xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "textwithlinks", ci.Text));
|
||||
if (_ExportBothConvertedandNot)
|
||||
{
|
||||
xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "textwithlinks", ci.Text));
|
||||
SetEPEnhancedDocLinks(ref xe, ii);
|
||||
}
|
||||
|
||||
//content audits
|
||||
ExportContentAudits(xe, ci);
|
||||
|
Reference in New Issue
Block a user