I added some RTF logic to indent the change description. This will make it easier for me to copy text into source safe from this document.

Corrected logic for returning the RO Value when the ROs do not have multiple return values.  This fixes Bug B2013-080.
Added logic to the code that looks for a newer version of the RO.FST file, when the DocVersion (Folder) does not have an assocated RO Database.
Added Caption, Button and Icon to Warning Message when DocVersion (Folder) does not have an assocated RO Database.
Added logic to support ROs that do not have Multiple return values.
Fixed logic to support ROST lookup when the DocVersion (Folder) does not have an assocated RO Database
Added Caption, Button and Icon to Warning Message when DocVersion (Folder) does not have an assocated RO Database.
Shut-off the RO Edit feature when DocVersion (Folder) does not have an assocated RO Database.
This commit is contained in:
Rich
2013-04-19 15:01:11 +00:00
parent f77a704f6c
commit 4ca9a34c07
6 changed files with 27 additions and 9 deletions

View File

@@ -72,7 +72,10 @@ namespace Volian.Controls.Library
if (procInfo == null) return null;
_MyDVI = procInfo.ActiveParent as DocVersionInfo;
// added jcb 20121221 to support set ro from word doc
MyLookup = _MyDVI.DocVersionAssociations[0].MyROFst.ROFSTLookup;
if (_MyDVI.DocVersionAssociations != null && _MyDVI.DocVersionAssociations.Count > 0)
MyLookup = _MyDVI.DocVersionAssociations[0].MyROFst.ROFSTLookup;
else
MyLookup = null;
return _MyDVI;
}
return null;
@@ -1663,7 +1666,7 @@ namespace Volian.Controls.Library
//}
if (MyDVI == null || MyDVI.DocVersionAssociationCount < 1)
{
MessageBox.Show("Could not find associated path for ro data.");
MessageBox.Show("Could not find associated path for ro data.", "No RO Data", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
string roloc = "\"" + MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath + "\"";
@@ -1764,7 +1767,12 @@ namespace Volian.Controls.Library
{
ribbonTab_SingleClick(sender, e);
btnUpdROVal.Enabled = false;
if (MyDVI.DocVersionAssociations == null || MyDVI.DocVersionAssociations.Count < 1) return;
if (MyDVI.DocVersionAssociations == null || MyDVI.DocVersionAssociations.Count < 1)
{
btnROEdit.Enabled = false;
return;
}
btnROEdit.Enabled = true;
if (!NewerRoFst()) return;
btnUpdROVal.Enabled = true;
}