Added code to handle importing a procedure with different RO folder
Added code to sort Administrative Tools Added code to improve how the controls align when using a lower DPI screen resolution Added code to refresh progress bar when updating RO's
This commit is contained in:
@@ -216,11 +216,31 @@ namespace VEPROMS
|
||||
}
|
||||
if (MyRODb == null)
|
||||
{
|
||||
if (localROPaths.Count == 0)
|
||||
MessageBox.Show("need new ro folder assigned");
|
||||
else
|
||||
MessageBox.Show("pick an ro folder");
|
||||
return;
|
||||
if (localROPaths.Count == 0)
|
||||
{
|
||||
MessageBox.Show("There has been no RO folder defined for this database.\r\n\r\nIn order to import a procedure, you need to assign a RO folder path.\r\n\r\nImport process will terminate.");
|
||||
this.Cursor = Cursors.Default;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Cursor = Cursors.Default;
|
||||
dlgPickROFolder dlg = new dlgPickROFolder();
|
||||
dlg.ImportedROFolder = rofolderpath;
|
||||
dlg.LocalROFolders = localROPaths;
|
||||
dlg.ShowDialog(this);
|
||||
if (dlg.SelectedROFolder != string.Empty)
|
||||
{
|
||||
MyRODb = RODb.GetByFolderPath(dlg.SelectedROFolder);
|
||||
oldRODbID = newRODbID = MyRODb.RODbID;
|
||||
MyDocVersion.RefreshDocVersionAssociations();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Since you did not pick an existing RO folder defined for this database, the import process will terminate.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (ProcedureInfo pi in MyDocVersion.Procedures)
|
||||
{
|
||||
|
Reference in New Issue
Block a user