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);
|
||||
|
@@ -322,6 +322,19 @@ namespace VEPROMS
|
||||
if (!string.IsNullOrEmpty(imgfile)) xindivid.Attributes.SetNamedItem(AddAttribute(xindivid.OwnerDocument, "Location", imgfile));
|
||||
}
|
||||
|
||||
//overridden - used to set specific enhanced doc info
|
||||
protected override void SetEPEnhancedDocLinks(ref XmlElement xe, ItemInfo ii)
|
||||
{
|
||||
EnhancedDocuments eds = ii.GetMyEnhancedDocuments();
|
||||
|
||||
if (eds != null && eds.Count == 1)
|
||||
{
|
||||
xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "EnhancedDocType", eds[0].Type.ToString()));
|
||||
xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "EnhancedDocToItemID", eds[0].ItemID.ToString()));
|
||||
xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "EnhancedDocToDbSeq", dbSeq(eds[0].ItemID)));
|
||||
}
|
||||
}
|
||||
|
||||
//clear objects to release memory
|
||||
private void OnClose(object sender, EventArgs e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user