Development #212

Merged
djankowski merged 23 commits from Development into master 2024-01-24 11:30:40 -05:00
Showing only changes of commit d59ef9118f - Show all commits

View File

@ -1533,9 +1533,13 @@ namespace VEPROMS.CSLA.Library
return myGrp; return myGrp;
} }
// B2024-001: Loading of Ros was getting called over and over when ROs are in tables. Added
// a flag to only process once until completed, 'currentlyLoading'.
static bool currentlyLoading = false;
private void Load(int rofstID) private void Load(int rofstID)
{ {
if (currentlyLoading) return; // B2024-001: don't load if in process of loading
currentlyLoading = true;
_dicRoCounts = new Dictionary<int, int>(); _dicRoCounts = new Dictionary<int, int>();
DateTime dtStart = DateTime.Now; DateTime dtStart = DateTime.Now;
@ -1631,6 +1635,7 @@ namespace VEPROMS.CSLA.Library
} }
catch { } catch { }
} }
currentlyLoading = false; // B2024-001: done loading
} }
private void LoadChild(int rofstID, int dbiID, ROFSTLookup.rochild child) private void LoadChild(int rofstID, int dbiID, ROFSTLookup.rochild child)