Added titles to message boxes used during the check of the RO.fst B2017-125
Add LoadingFigures to save status of loading the figures during Update RO Values B2017-125 Added checks to see if the RO Figures need loaded B2017-125 Added checks to see if the RO Figures need loaded and set the status during the loading figures part of updating RO values B2017-125 Make the progress bar text visible B2017-125 Added titles to message boxes used during the check of the RO.fst and make the progress bar text visible B2017-125
This commit is contained in:
@@ -87,6 +87,29 @@ namespace VEPROMS.CSLA.Library
|
||||
if (att == null) return string.Empty;
|
||||
return att.InnerText;
|
||||
}
|
||||
// B2017-125 put info in the config as to the status of loading RO Figures during the Update RO Values
|
||||
// This will help us determine if the Update RO Values was terminated during the loading of the RO Figures
|
||||
public bool ROfstLoadingFigures
|
||||
{
|
||||
get
|
||||
{
|
||||
if (DocVersionAssociations == null || DocVersionAssociationCount == 0) return true; // no ROs associated this will turn off the update ROs button
|
||||
if (ROLoadingFigures(DocVersionAssociations[0]) == string.Empty) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// B2017-125 return the loading figures status
|
||||
private string ROLoadingFigures(DocVersionAssociation dva)
|
||||
{
|
||||
XmlDocument xd = new XmlDocument();
|
||||
if (dva.Config == null || dva.Config.Length == 0) return string.Empty;
|
||||
xd.LoadXml(dva.Config);
|
||||
XmlNode xn = xd.DocumentElement.SelectSingleNode("//ROUpdate");
|
||||
if (xn == null) return string.Empty;
|
||||
XmlAttribute att = xn.Attributes["LoadingFigures"];
|
||||
if (att == null) return string.Empty;
|
||||
return att.InnerText;
|
||||
}
|
||||
#region VersionType
|
||||
public VersionTypeEnum eVersionType
|
||||
{
|
||||
@@ -270,6 +293,12 @@ namespace VEPROMS.CSLA.Library
|
||||
AssociationConfig ac = new AssociationConfig(associationInfo);
|
||||
return ac.ROUpdate_LastCompleted;
|
||||
}
|
||||
// B2017-125 return the loading figures status
|
||||
private string ROLoadingFigures(AssociationInfo associationInfo)
|
||||
{
|
||||
AssociationConfig ac = new AssociationConfig(associationInfo);
|
||||
return ac.ROUpdate_LoadingFigures;
|
||||
}
|
||||
#region SearchPaths
|
||||
public string _SearchDVPath;
|
||||
public string SearchDVPath
|
||||
|
Reference in New Issue
Block a user