B2022-026 RO Memory reduction coding (Jakes Merge)
This commit is contained in:
@@ -108,12 +108,12 @@ namespace VEPROMS.CSLA.Library
|
||||
|
||||
public delegate List<string> ROFstInfoROTableUpdateEvent(object sender, ROFstInfoROTableUpdateEventArgs args);
|
||||
public delegate void ROFstInfoProgressBarRefresh(int value, int max, string text);
|
||||
|
||||
|
||||
public partial class ROFstInfo
|
||||
{
|
||||
#region Log4Net
|
||||
|
||||
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -449,7 +449,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
string cfg = docver.DocVersionAssociations[0].Config;
|
||||
|
||||
AssociationConfig ac = new AssociationConfig((cfg== null || cfg.Length == 0) ? "<Config />" : cfg);
|
||||
AssociationConfig ac = new AssociationConfig((cfg == null || cfg.Length == 0) ? "<Config />" : cfg);
|
||||
ac.ROUpdate_LastCompleted = value;
|
||||
docver.DocVersionAssociations[0].Config = ac.ToString();
|
||||
docver.Save();
|
||||
@@ -460,7 +460,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
string cfg = docver.DocVersionAssociations[0].Config;
|
||||
|
||||
AssociationConfig ac = new AssociationConfig((cfg== null || cfg.Length == 0) ? "<Config />" : cfg);
|
||||
AssociationConfig ac = new AssociationConfig((cfg == null || cfg.Length == 0) ? "<Config />" : cfg);
|
||||
ac.ROUpdate_LoadingFigures = value;
|
||||
docver.DocVersionAssociations[0].Config = ac.ToString();
|
||||
docver.Save();
|
||||
@@ -497,7 +497,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
|
||||
SetAssociationROFiguresLoading(docVer, string.Empty); // B2017-125 loading RO Figures is completed
|
||||
|
||||
|
||||
return MyChangedFigureROIDs;
|
||||
}
|
||||
|
||||
@@ -515,7 +515,7 @@ namespace VEPROMS.CSLA.Library
|
||||
List<string> ChangedFiles = GetChangedFigures(origROFst, rofst, myProgressBarRefresh);
|
||||
|
||||
// Get ROID associated with FileNames
|
||||
List<string> ROIDs = GetROIDsFromLookup(rofst,ChangedFiles,docver);
|
||||
List<string> ROIDs = GetROIDsFromLookup(rofst, ChangedFiles, docver);
|
||||
|
||||
return ROIDs;
|
||||
}
|
||||
@@ -562,7 +562,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
if (origROFst.ROFstFigures == null) return null;
|
||||
|
||||
Dictionary<string,int> orig = new Dictionary<string,int>();
|
||||
Dictionary<string, int> orig = new Dictionary<string, int>();
|
||||
|
||||
int i = 0;
|
||||
foreach (FigureInfo fi in origROFst.ROFstFigures)
|
||||
@@ -573,7 +573,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
|
||||
// B2018-032 Don't crash if there are no figures
|
||||
if (rofst.ROFstFigures == null)
|
||||
if (rofst.ROFstFigures == null)
|
||||
return null;
|
||||
|
||||
i = 0;
|
||||
@@ -596,9 +596,9 @@ namespace VEPROMS.CSLA.Library
|
||||
return changedFigures;
|
||||
}
|
||||
|
||||
private static Dictionary<string,int> BuildROImagesList(ROImageInfoList myROImages)
|
||||
private static Dictionary<string, int> BuildROImagesList(ROImageInfoList myROImages)
|
||||
{
|
||||
Dictionary<string,int> myRoImagesList = new Dictionary<string,int>();
|
||||
Dictionary<string, int> myRoImagesList = new Dictionary<string, int>();
|
||||
|
||||
foreach (ROImageInfo myROImage in myROImages)
|
||||
{
|
||||
@@ -607,7 +607,7 @@ namespace VEPROMS.CSLA.Library
|
||||
|
||||
return myRoImagesList;
|
||||
}
|
||||
|
||||
|
||||
private static string ROImageKey(string fileName, DateTime dts)
|
||||
{
|
||||
return string.Format("{0}:{1}", fileName, dts);
|
||||
@@ -652,7 +652,7 @@ namespace VEPROMS.CSLA.Library
|
||||
|
||||
if (myProgressBarRefresh != null) myProgressBarRefresh(0, chgList.Count, "Getting List of ROs Used");
|
||||
List<string> activeRoids = BuildActiveROIDsForRoUsages12(RoidList, versionList);
|
||||
|
||||
|
||||
if (myProgressBarRefresh != null) myProgressBarRefresh(0, chgList.Count, "Updating RO Values");
|
||||
int iCount = 0;
|
||||
|
||||
@@ -790,7 +790,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
|
||||
if (myProgressBarRefresh != null) myProgressBarRefresh(100,100, "RO Values Updated");
|
||||
if (myProgressBarRefresh != null) myProgressBarRefresh(100, 100, "RO Values Updated");
|
||||
}
|
||||
|
||||
private static DateTime ShowDuration(DateTime dtLast, string message)
|
||||
@@ -837,7 +837,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private static string GetRoidList(int dbid, List<string> chgList)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder(string.Format("{0}", dbid));
|
||||
string sep=":";
|
||||
string sep = ":";
|
||||
|
||||
foreach (string roid in chgList)
|
||||
{
|
||||
@@ -1145,7 +1145,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
|
||||
if (isDifferent)
|
||||
if (isDifferent)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -82,7 +82,7 @@ namespace VEPROMS.CSLA.Library
|
||||
ROFSTLookup lu = MyDocVersion.DocVersionAssociations[0].MyROFst.GetROFSTLookup(MyDocVersion);
|
||||
foreach (ROCheck roc in MyDifferences.ROConsistency.MyROChecks)
|
||||
{
|
||||
ROFSTLookup.rochild rocc = lu.GetRoChild12(roc.ROID);
|
||||
ROFSTLookup.rochild rocc = lu.GetRoChild(roc.ROID);
|
||||
if (rocc.ID == -1) // B2020-125: View of Consistency check report displaying error message and crashing.
|
||||
{
|
||||
sb.Append(string.Format(" {0}\r\n", lu.GetROTitle(roc.ROID)));
|
||||
|
Reference in New Issue
Block a user