C2025-024 Electronic Procedures Phase 2 - XML Export
Multi-unit
This commit is contained in:
@@ -55,14 +55,23 @@ namespace VEPROMS
|
|||||||
//Overridden function to handle export of EP data
|
//Overridden function to handle export of EP data
|
||||||
protected override void ExportEPAnnotationInfo(XmlElement xe, ItemInfo ii)
|
protected override void ExportEPAnnotationInfo(XmlElement xe, ItemInfo ii)
|
||||||
{
|
{
|
||||||
//switch to handle customizations for different formats
|
if (_UnitIndex > 0)
|
||||||
switch (ii.ActiveFormat.PlantFormat.EPFormatFiles.Find(x => x.AnnotationTypeID == _AnnotationType.TypeID)?.Name)
|
{
|
||||||
|
ii.MyDocVersion.DocVersionConfig.SelectedSlave = _UnitIndex;
|
||||||
|
ii.MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = _UnitIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
//switch to handle customizations for different formats
|
||||||
|
switch (ii.ActiveFormat.PlantFormat.EPFormatFiles.Find(x => x.AnnotationTypeID == _AnnotationType.TypeID)?.Name)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
ExportEPAnnotationInfo_Default(xe, ii);
|
ExportEPAnnotationInfo_Default(xe, ii);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ii.MyDocVersion.DocVersionConfig.SelectedSlave = 0;
|
||||||
|
ii.MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//default export of EP Data
|
//default export of EP Data
|
||||||
@@ -242,18 +251,13 @@ namespace VEPROMS
|
|||||||
return dbSeq(ii);
|
return dbSeq(ii);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//return a db sequence string from an ItemInfo
|
|
||||||
private string dbSeq(ItemInfo ii)
|
|
||||||
{
|
|
||||||
if (_UnitIndex > 0) ii.MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = _UnitIndex;
|
|
||||||
string rtnval = $"{((FolderInfo)ii.MyDocVersion.ActiveParent).Name}:{ii.MyProcedure.DisplayNumber} {ii.MyProcedure.DisplayText}:{ii.DBSequence}";
|
|
||||||
ii.MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = 0;
|
|
||||||
return rtnval;
|
|
||||||
}
|
|
||||||
|
|
||||||
//For Exporting an RO that is an image
|
//return a db sequence string from an ItemInfo
|
||||||
//returns the Location and FileName of the RO Image
|
private string dbSeq(ItemInfo ii) => $"{((FolderInfo)ii.MyDocVersion.ActiveParent).Name}:{ii.MyProcedure.DisplayNumber} {ii.MyProcedure.DisplayText}:{ii.DBSequence}";
|
||||||
private string GetROImageFileLocation(ROFSTLookup.rochild roc, RODbInfo rodb, bool isMulti)
|
|
||||||
|
//For Exporting an RO that is an image
|
||||||
|
//returns the Location and FileName of the RO Image
|
||||||
|
private string GetROImageFileLocation(ROFSTLookup.rochild roc, RODbInfo rodb, bool isMulti)
|
||||||
{
|
{
|
||||||
string rodbpath = rodb.FolderPath;
|
string rodbpath = rodb.FolderPath;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user