Added logic to assure that edits are saved before printing or approval
This commit is contained in:
@@ -258,6 +258,7 @@ namespace VEPROMS
|
||||
{
|
||||
DocVersionInfo dvi = (args.Node as VETreeNode).VEObject as DocVersionInfo;
|
||||
if (dvi == null) return;
|
||||
tc.SaveCurrentEditItem();
|
||||
dlgApproveProcedure dlg = new dlgApproveProcedure(dvi, true);
|
||||
dlg.ShowDialog(this);
|
||||
displayHistory.RefreshList();
|
||||
@@ -267,6 +268,7 @@ namespace VEPROMS
|
||||
{
|
||||
DocVersionInfo dvi = (args.Node as VETreeNode).VEObject as DocVersionInfo;
|
||||
if (dvi == null) return;
|
||||
tc.SaveCurrentEditItem();
|
||||
dlgApproveProcedure dlg = new dlgApproveProcedure(dvi);
|
||||
dlg.ShowDialog(this);
|
||||
displayHistory.RefreshList();
|
||||
@@ -276,6 +278,7 @@ namespace VEPROMS
|
||||
{
|
||||
ProcedureInfo pi = (args.Node as VETreeNode).VEObject as ProcedureInfo;
|
||||
if (pi == null) return;
|
||||
tc.SaveCurrentEditItem(pi);
|
||||
dlgApproveProcedure dlg = new dlgApproveProcedure(pi);
|
||||
dlg.ShowDialog(this);
|
||||
displayHistory.RefreshList();
|
||||
@@ -285,6 +288,7 @@ namespace VEPROMS
|
||||
{
|
||||
DocVersionInfo dvi = (args.Node as VETreeNode).VEObject as DocVersionInfo;
|
||||
if (dvi == null) return;
|
||||
tc.SaveCurrentEditItem();
|
||||
DlgPrintProcedure prnDlg = new DlgPrintProcedure(dvi);
|
||||
prnDlg.Show();
|
||||
}
|
||||
@@ -292,6 +296,7 @@ namespace VEPROMS
|
||||
{
|
||||
ProcedureInfo pi = (args.Node as VETreeNode).VEObject as ProcedureInfo;
|
||||
if (pi == null) return;
|
||||
tc.SaveCurrentEditItem(pi);
|
||||
DlgPrintProcedure prnDlg = new DlgPrintProcedure(pi);
|
||||
prnDlg.Show();
|
||||
}
|
||||
|
Reference in New Issue
Block a user