corrected jcb server name in database connection strings
allow watermarks from approval process handlers for vlnTreeView events supporting approval process approval process dialog
This commit is contained in:
@@ -195,14 +195,63 @@ namespace VEPROMS
|
||||
displaySearch1.PrintRequest += new DisplaySearchEvent(displaySearch1_PrintRequest);
|
||||
displayHistory.ChronologyPrintRequest += new DisplayHistoryReportEvent(displayHistory_ChronologyPrintRequest);
|
||||
displayHistory.SummaryPrintRequest += new DisplayHistoryReportEvent(displayHistory_SummaryPrintRequest);
|
||||
displayHistory.AnnotationRestored += new AnnotationRestoredHandler(displayHistory_AnnotationRestored);
|
||||
this.Activated += new EventHandler(frmVEPROMS_Activated);
|
||||
VlnSettings.StepTypeToolType = Settings.Default.StepTypeToolTip;
|
||||
displayLibDocs.PrintRequest += new DisplayLibDocEvent(displayLibDocs_PrintRequest);
|
||||
ContentInfo.InfoChanged += new ContentInfoEvent(RefreshDisplayHistory);
|
||||
AnnotationInfo.InfoChanged += new AnnotationInfoEvent(RefreshDisplayHistory);
|
||||
ItemInfo.InfoRestored += new ItemInfoEvent(RefreshDisplayHistory);
|
||||
ItemInfo.ItemDeleted += new ItemInfoEvent(RefreshDisplayHistory);
|
||||
tv.PrintProcedure += new vlnTreeViewEvent(tv_PrintProcedure);
|
||||
tv.PrintAllProcedures += new vlnTreeViewEvent(tv_PrintAllProcedures);
|
||||
tv.ApproveProcedure += new vlnTreeViewEvent(tv_ApproveProcedure);
|
||||
tv.ApproveAllProcedures += new vlnTreeViewEvent(tv_ApproveAllProcedures);
|
||||
tv.ApproveSomeProcedures += new vlnTreeViewEvent(tv_ApproveSomeProcedures);
|
||||
tv.ReportAllProceduresInconsistencies += new vlnTreeViewEvent(tv_ReportAllProceduresInconsistencies);
|
||||
}
|
||||
|
||||
void displayHistory_AnnotationRestored(AnnotationInfo restoredAnnotationInfo, ItemInfo currentItem)
|
||||
{
|
||||
ctrlAnnotationDetails.UpdateAnnotationGrid(currentItem);
|
||||
}
|
||||
|
||||
void tv_ReportAllProceduresInconsistencies(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
DocVersionInfo dvi = (args.Node as VETreeNode).VEObject as DocVersionInfo;
|
||||
if (dvi == null) return;
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
ItemInfoList iil = ItemInfoList.GetAllInconsistencies(dvi.VersionID);
|
||||
Volian.Print.Library.PDFConsistencyCheckReport rpt = new Volian.Print.Library.PDFConsistencyCheckReport(Volian.Base.Library.VlnSettings.TemporaryFolder + @"\AllInconsistencies.pdf", iil);
|
||||
rpt.BuildAllReport(dvi);
|
||||
this.Cursor = Cursors.Default;
|
||||
}
|
||||
|
||||
void tv_ApproveSomeProcedures(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
DocVersionInfo dvi = (args.Node as VETreeNode).VEObject as DocVersionInfo;
|
||||
if (dvi == null) return;
|
||||
dlgApproveProcedure dlg = new dlgApproveProcedure(dvi, true);
|
||||
dlg.ShowDialog(this);
|
||||
displayHistory.RefreshList();
|
||||
}
|
||||
|
||||
void tv_ApproveAllProcedures(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
DocVersionInfo dvi = (args.Node as VETreeNode).VEObject as DocVersionInfo;
|
||||
if (dvi == null) return;
|
||||
dlgApproveProcedure dlg = new dlgApproveProcedure(dvi);
|
||||
dlg.ShowDialog(this);
|
||||
displayHistory.RefreshList();
|
||||
}
|
||||
|
||||
void tv_ApproveProcedure(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
ProcedureInfo pi = (args.Node as VETreeNode).VEObject as ProcedureInfo;
|
||||
if (pi == null) return;
|
||||
dlgApproveProcedure dlg = new dlgApproveProcedure(pi);
|
||||
dlg.ShowDialog(this);
|
||||
displayHistory.RefreshList();
|
||||
}
|
||||
|
||||
void tv_PrintAllProcedures(object sender, vlnTreeEventArgs args)
|
||||
@@ -1125,7 +1174,7 @@ namespace VEPROMS
|
||||
_CurrentItem = null;
|
||||
ctrlAnnotationDetails.CurrentAnnotation = null;
|
||||
ctrlAnnotationDetails.Annotations = null;
|
||||
infotabRO.Visible = infotabTransition.Visible = infotabTags.Visible = false;
|
||||
infotabRO.Visible = infotabTransition.Visible = infotabTags.Visible = infotabHistory.Visible = false;
|
||||
// When infotabTags is set to InVisible, the matching panel also needs to be set to invisible
|
||||
infotabControlPanelTags.Visible = false;
|
||||
displayTags.Visible = false;
|
||||
|
Reference in New Issue
Block a user