Modified to use newly created ProcedureInfo property PDFNumber
Modified to standardize naming of summary of changes report Added method to delete existing pdf when creating a new pdf of same name Created error handler to warn user when trying to view pdf file already open Created new ProcedureInfo property PDFNumber to handle slashes in procedure number Corrected error in ResolvePathTo method of TranistionInfo class
This commit is contained in:
@@ -57,10 +57,12 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
//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.MyLookups.ContainsKey(myItemToID.MyProcedure.ItemID))
|
||||
tranLookup.AddProcLookup(myItemToID.MyProcedure.ItemID, ProcedureInfo.GetNewLookup(tranLookup, new TransitionLookupEventArgs(myItemToID.MyProcedure.ItemID, tranLookup.ApplicabilityUnit, MyItemToID.MyDocVersion, tranLookup)).MyLookup);
|
||||
if (tranLookup.ContainsKey(ToID))
|
||||
myItemToID = tranLookup[ToID];
|
||||
//Console.WriteLine("Transition May Not Be Correct at Location");
|
||||
//else
|
||||
// Console.WriteLine("Transition May Not Be Correct at Location");
|
||||
}
|
||||
ItemInfo myItemRangeID = MyItemRangeID;
|
||||
if (tranLookup.ContainsKey(RangeID))
|
||||
@@ -69,10 +71,12 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
//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.MyLookups.ContainsKey(MyItemRangeID.MyProcedure.ItemID))
|
||||
tranLookup.AddProcLookup(MyItemRangeID.MyProcedure.ItemID, ProcedureInfo.GetNewLookup(tranLookup, new TransitionLookupEventArgs(MyItemRangeID.MyProcedure.ItemID, tranLookup.ApplicabilityUnit, MyItemRangeID.MyDocVersion, tranLookup)).MyLookup);
|
||||
if (tranLookup.ContainsKey(RangeID))
|
||||
myItemRangeID = tranLookup[RangeID];
|
||||
//Console.WriteLine("Transition May Not Be Correct at Location");
|
||||
//else
|
||||
// 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);
|
||||
|
Reference in New Issue
Block a user