Fixed Cache for ItemInfo - This was causing steps to not be undated in the editor or the tree.

Unique Key for ROFst Lookup
This commit is contained in:
Rich
2014-04-10 20:13:15 +00:00
parent 132619c0ba
commit 1d760eab81
2 changed files with 17 additions and 13 deletions

View File

@@ -174,7 +174,8 @@ namespace VEPROMS.CSLA.Library
public ROFSTLookup GetROFSTLookup(DocVersionInfo dvi)
{
//string key = string.Format("{0}.{1}",dvi.DocVersionAssociations[0].ROFstID,dvi.DocVersionConfig.SelectedSlave);
string key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex, dvi.DocVersionConfig.SelectedSlave); if (!dicLookups.ContainsKey(key))
string key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex, dvi.DocVersionConfig.SelectedSlave);
if (!dicLookups.ContainsKey(key))
dicLookups.Add(key, new ROFSTLookup(this, dvi));
return dicLookups[key];
}