This commit is contained in:
parent
367bffe14e
commit
086529e67a
@ -802,6 +802,18 @@ namespace VEPROMS
|
||||
RODbInfoList rdil = RODbInfoList.Get();
|
||||
RODbInfo rdi = rdil[cmbRoDb.SelectedIndex];
|
||||
ROFst tmp = ROFstInfo.AddRoFst(rdi, _DocVersionConfig.MyDocVersion);
|
||||
if (tmp == null)
|
||||
{
|
||||
MessageBox.Show("Invalid ro fst directory, use the Property dialog to fix directory path to ro.fst.");
|
||||
frmRODbProperties dlgROProperties = new frmRODbProperties(_DocVersionConfig.MyDocVersion, rdi);
|
||||
if (dlgROProperties.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
tbRoDb.Text = string.Format("{0} ({1})", SelectedROFst.MyRODb.ROName, SelectedROFst.MyRODb.FolderPath);
|
||||
ppBtnUpRoVals.Enabled = !(_DocVersionConfig.MyDocVersion.DocVersionAssociationCount == 0); // only allow update if association
|
||||
}
|
||||
else
|
||||
return;
|
||||
}
|
||||
cmbRoDb.Visible = ppBtnRoDbBrowse.Visible = false;
|
||||
tbRoDb.Visible = btnRoDbProperties.Visible = true;
|
||||
tbRoDb.Text = string.Format("{0} ({1})", tmp.MyRODb.ROName, tmp.MyRODb.FolderPath);
|
||||
@ -815,7 +827,8 @@ namespace VEPROMS
|
||||
if (dlgROProperties.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
cmbRoDb.Items.Clear();
|
||||
if (_DocVersionConfig.MyDocVersion.DocVersionAssociationCount > 1)
|
||||
_DocVersionConfig.MyDocVersion.Reset_DocVersionAssociations();
|
||||
if (_DocVersionConfig.MyDocVersion.DocVersionAssociations != null && _DocVersionConfig.MyDocVersion.DocVersionAssociationCount > 0)
|
||||
{
|
||||
cmbRoDb.Visible = ppBtnRoDbBrowse.Visible = false;
|
||||
tbRoDb.Visible = btnRoDbProperties.Visible = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user