Added GetByItemIDAndRevisionNumberAndUnitID method to Revision class

Added GetByItemIDandUnitID method to RevisionInfoList class
Added UnitID property to ItemCriteria class of RevisionInfo class
Added CurrentItemUnitCriteria class implementing ItemCriteria class of RevisionInfo class
Added GetCurrentByItemIDandUnitID method to RevisonInfo class
Added DataPortal_Fetch method using CurrentItemUnitCriteria parameter to RevisionInfo class
Changed how DocVersionInfo was obatained to support multi unit
Changed how ROFstInfo was obtained to support multi unit
Set ROFstInfo objects DocVersion to support multi unit
Changed docVer property of ROFstInfo class to DocVersionInfo class
Changed how docVer property was assigned value in ROFstInfo class
Changed ResolvePathTo method of TransitionInfo class to support multi unit
Changed how thisTab variable value is set in TransitionText class to support multi unit
This commit is contained in:
Rich
2012-12-04 22:59:40 +00:00
parent 3036b5fb7d
commit 5eeb573a43
3 changed files with 271 additions and 15 deletions

View File

@@ -43,10 +43,42 @@ namespace VEPROMS.CSLA.Library
//Console.WriteLine("TranType = {0}", TranType);
//Console.WriteLine("MyItemToID = {0}", MyItemToID);
//Console.WriteLine("MyItemRangeID = {0}", MyItemRangeID);
string retval = ResolvePathTo(item.ActiveFormat, item, TranType, MyItemToID, MyItemRangeID);
if (item.NewTransToUnNumberedItem)
NewTransToUnNumberedItem = true;
return retval;
return ResolvePathTo(item.ActiveFormat, item, TranType, MyItemToID, MyItemRangeID);
}
public string ResolvePathTo(TransitionLookup tranLookup)
{
MyContent.RefreshContentItems();
ItemInfo item = MyContent.ContentItems[0];
ItemInfo myItemToID = MyItemToID;
if (tranLookup.ContainsKey(ToID))
myItemToID = tranLookup[ToID];
else
{
//different proc
//_MyLog.WarnFormat("Transition May Not Be Correct at Location From {0} To {1}", item.SearchPath, myItemToID.SearchPath);
tranLookup.AddProcLookup(myItemToID.MyProcedure.ItemID, ProcedureInfo.GetNewLookup(tranLookup, new TransitionLookupEventArgs(ToID, tranLookup.ApplicabilityUnit, MyItemToID.MyDocVersion, tranLookup)).MyLookup);
if (tranLookup.ContainsKey(ToID))
myItemToID = tranLookup[ToID];
//Console.WriteLine("Transition May Not Be Correct at Location");
}
ItemInfo myItemRangeID = MyItemRangeID;
if (tranLookup.ContainsKey(RangeID))
myItemRangeID = tranLookup[RangeID];
else
{
//different proc
//_MyLog.WarnFormat("Transition May Not Be Correct at Location From {0} To {1}", item.SearchPath, myItemRangeID.SearchPath);
tranLookup.AddProcLookup(MyItemRangeID.MyProcedure.ItemID, ProcedureInfo.GetNewLookup(tranLookup, new TransitionLookupEventArgs(RangeID, tranLookup.ApplicabilityUnit,MyItemRangeID.MyDocVersion, tranLookup)).MyLookup);
if (tranLookup.ContainsKey(RangeID))
myItemRangeID = tranLookup[RangeID];
//Console.WriteLine("Transition May Not Be Correct at Location");
//Console.WriteLine("Format = {0}", item.ActiveFormat);
//Console.WriteLine("item = {0}", item.ItemID);
//Console.WriteLine("TranType = {0}", TranType);
//Console.WriteLine("MyItemToID = {0}", MyItemToID);
//Console.WriteLine("MyItemRangeID = {0}", MyItemRangeID);
}
return ResolvePathTo(item.ActiveFormat, item, TranType, myItemToID, myItemRangeID);
}
}
#region AffectedTransitons
@@ -372,7 +404,7 @@ namespace VEPROMS.CSLA.Library
{
_Results.Append(Prefix);
_Prefix = null;
}
}
}
@@ -606,7 +638,8 @@ namespace VEPROMS.CSLA.Library
while (!pitem.IsHigh)
{
string thisTab = StepInfo.Get(pitem.ItemID).MyTab.CleanText;
//string thisTab = StepInfo.Get(pitem.ItemID).MyTab.CleanText;
string thisTab = pitem.MyTab.CleanText;// StepInfo.Get(pitem.ItemID).MyTab.CleanText;
// remove delimiters of '.' and ')' in tab.
if (!hasDelim)
{