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:
Rich
2014-03-12 22:01:55 +00:00
parent 1581653387
commit e8453b8648
6 changed files with 32 additions and 24 deletions

View File

@@ -170,12 +170,13 @@ namespace VEPROMS.CSLA.Library
// return _ROFSTLookup;
// }
//}
private Dictionary<int, ROFSTLookup> dicLookups = new Dictionary<int, ROFSTLookup>();
private Dictionary<string, ROFSTLookup> dicLookups = new Dictionary<string, ROFSTLookup>();
public ROFSTLookup GetROFSTLookup(DocVersionInfo dvi)
{
if (!dicLookups.ContainsKey(dvi.VersionID))
dicLookups.Add(dvi.VersionID, new ROFSTLookup(this, dvi));
return dicLookups[dvi.VersionID];
string key = string.Format("{0}.{1}",dvi.DocVersionAssociations[0].ROFstID,dvi.DocVersionConfig.SelectedSlave);
if (!dicLookups.ContainsKey(key))
dicLookups.Add(key, new ROFSTLookup(this, dvi));
return dicLookups[key];
}
#endregion
#region AppSupport