Added Separate Window Preference
Added error handling for External Transitions to deleted Procedure. Added File extension parameter to Make Document DB Command Line Parameter now supports server name and ItemIDs. Added Separate Window Preference Added capability to Update Format and then close. Command Line Parameter /P= with no IDs shutsdown immediately. Changed code so that the Anotation panels stay expanded. Added Console Writeline output when Formats are updated. Attached Console Output to Parent. This allows the Console output to be output to a command window when a Batch FIle is used to Update Formats.
This commit is contained in:
@@ -15,6 +15,12 @@ namespace VEPROMS
|
||||
{
|
||||
public partial class dlgExportImport : Form
|
||||
{
|
||||
private ItemInfo _ExternalTransitionItem = null;
|
||||
public ItemInfo ExternalTransitionItem
|
||||
{
|
||||
get { return _ExternalTransitionItem; }
|
||||
set { _ExternalTransitionItem = value; }
|
||||
}
|
||||
private Dictionary<int, int> floatFoldout;
|
||||
private Dictionary<int, string> oldFormat;
|
||||
private Dictionary<string, int> newFormat;
|
||||
@@ -29,6 +35,7 @@ namespace VEPROMS
|
||||
public ProcedureInfo MyNewProcedure
|
||||
{
|
||||
get { return _MyNewProcedure; }
|
||||
set { _MyNewProcedure = value; }
|
||||
}
|
||||
private string PEIPath;
|
||||
private string _MyMode;
|
||||
@@ -367,13 +374,21 @@ namespace VEPROMS
|
||||
foreach (ProcedureInfo lp in MyDocVersion.Procedures)
|
||||
lastProcedure = lp;
|
||||
//delete opi
|
||||
Item.DeleteItemAndChildren(pi);
|
||||
try
|
||||
{
|
||||
Item.DeleteItemAndChildren(pi);
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
ExternalTransitionItem = pi.HandleSqlExceptionOnDelete(ex);
|
||||
File.Delete(fn);
|
||||
return;
|
||||
}
|
||||
//add imported procedure
|
||||
_MyNewProcedure = AddProcedure(xd.DocumentElement, MyDocVersion, lastProcedure);
|
||||
//update transitions
|
||||
AddTransitions(PendingTransitions);
|
||||
FixFloatingFoldouts();
|
||||
File.Delete(fn);
|
||||
}
|
||||
private void LoadImportDataDocument()
|
||||
{
|
||||
|
Reference in New Issue
Block a user