Reset Selected Slave after processing
Added and Commented-out some debug output Use GetTranslatedROValue to get the correct RO value when text is restored Fix logic to attempt to use existing DocVersionInfo rather than creating a new instance Base lookup on ROFSTID and Selected Slave
This commit is contained in:
@@ -4733,9 +4733,17 @@ namespace VEPROMS.CSLA.Library
|
||||
ProcedureInfo tmp = DataPortal.Fetch<ProcedureInfo>(new ItemAndChildrenByUnitCriteria(args.ProcID, 0, args.UnitID));
|
||||
if (tmp.MyDocVersion != null)
|
||||
{
|
||||
tmp.MyDocVersion.DocVersionConfig.SelectedSlave = args.UnitID;
|
||||
(tmp.MyConfig as ProcedureConfig).SelectedSlave = args.UnitID;
|
||||
ItemInfo.SetParentSectionAndDocVersion(tmp, tmp.MyDocVersion, null, tmp, tmp.MyDocVersion);
|
||||
if (tmp.MyDocVersion.VersionID == args.MyDocVersion.VersionID)
|
||||
{
|
||||
(tmp.MyConfig as ProcedureConfig).SelectedSlave = args.UnitID;
|
||||
ItemInfo.SetParentSectionAndDocVersion(tmp, args.MyDocVersion, null, tmp, args.MyDocVersion);
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp.MyDocVersion.DocVersionConfig.SelectedSlave = args.UnitID;
|
||||
(tmp.MyConfig as ProcedureConfig).SelectedSlave = args.UnitID;
|
||||
ItemInfo.SetParentSectionAndDocVersion(tmp, tmp.MyDocVersion, null, tmp, tmp.MyDocVersion);
|
||||
}
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user