C2025-024 Electronic Procedures Phase 2 - XML Export
set RO Location code for pre-existing RO usages
This commit is contained in:
parent
ec25f6426a
commit
b9fc9748c7
@ -1829,14 +1829,15 @@ namespace VEPROMS
|
|||||||
//use overridden method to set the location for ROs
|
//use overridden method to set the location for ROs
|
||||||
protected void SetROLocation(ref XmlElement xindivid, string roid, int rodbid)
|
protected void SetROLocation(ref XmlElement xindivid, string roid, int rodbid)
|
||||||
{
|
{
|
||||||
if (MyDocVersion != null)
|
if (MyProcedure?.MyDocVersion != null)
|
||||||
{
|
{
|
||||||
ROFSTLookup lookup = MyDocVersion.DocVersionAssociations[0].MyROFst.GetROFSTLookup(MyDocVersion);
|
ROFSTLookup lookup = MyProcedure.MyDocVersion.DocVersionAssociations[0].MyROFst.GetROFSTLookup(MyProcedure.MyDocVersion);
|
||||||
|
|
||||||
using (RODbInfo myRODB = RODbInfoList.Get().FirstOrDefault(x => x.RODbID == rodbid))
|
using (RODbInfo myRODB = RODbInfoList.Get().FirstOrDefault(x => x.RODbID == rodbid))
|
||||||
{
|
{
|
||||||
roid = ROFSTLookup.FormatRoidKey(roid, true);
|
roid = ROFSTLookup.FormatRoidKey(roid, true);
|
||||||
ROFSTLookup.rochild roc = lookup.GetRoChild(roid);
|
ROFSTLookup.rochild roc = lookup.GetRoChild(roid);
|
||||||
|
if (Enumerable.Range(8, 15).Contains(roc.type))
|
||||||
SetROLocation(ref xindivid, roc, myRODB, roc.type != 8);
|
SetROLocation(ref xindivid, roc, myRODB, roc.type != 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user