Some Chnage Manager changes

Change Manager
This commit is contained in:
Rich
2011-08-01 20:14:37 +00:00
parent 4d05a2331e
commit a38f0b0909
5 changed files with 3624 additions and 7 deletions

View File

@@ -122,7 +122,7 @@ namespace VEPROMS
// - except for the volian laptop and Rich's Demo version where we need to use local data
if (Environment.MachineName == "RMARK-PC")
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_RMARK_DEMO";
else if (Environment.UserName == "BODINE")
else if (Environment.UserName.ToUpper() == "BODINE")
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_BODINE_DEMO";
else
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_LOCAL";
@@ -160,6 +160,10 @@ namespace VEPROMS
cmbFont.DataSource = FontFamily.Families;
cmbFont.DisplayMember = "Name";
cmbFont.SelectedIndex = -1;
if (!FormatInfo.HasLatestChanges())
throw new Exception("Inconsistent Formats");
if (!ItemAuditInfo.IsChangeManagerVersion())
throw new Exception("Inconsistent Data");
VETreeNode tn = VETreeNode.GetFolder(1);
tv.Nodes.Add(tn);
tv.NodePSI += new vlnTreeViewPSIEvent(tv_NodePSI);
@@ -172,6 +176,7 @@ namespace VEPROMS
tv.NodeInsert += new vlnTreeViewEvent(tv_NodeInsert);
tv.PasteItemInfo += new vlnTreeViewItemInfoPasteEvent(tv_PasteItemInfo);
tc.ItemPaste += new StepPanelItemPastedEvent(tc_ItemPasted);
displayHistory.HistorySelectionChanged += new DisplayHistoryEvent(displayHistory_HistorySelectionChanged);
_CommentTitleBckColor = epAnnotations.TitleStyle.BackColor1.Color;
if (!btnAnnoDetailsPushPin.Checked)
epAnnotations.Expanded = false;
@@ -182,11 +187,33 @@ namespace VEPROMS
dlgFindReplace = new FindReplace();
SpellChecker = new VlnSpellCheck();
displaySearch1.PrintRequest += new DisplaySearchEvent(displaySearch1_PrintRequest);
displayHistory.ChronologyPrintRequest += new DisplayHistoryReportEvent(displayHistory_ChronologyPrintRequest);
displayHistory.SummaryPrintRequest += new DisplayHistoryReportEvent(displayHistory_SummaryPrintRequest);
this.Activated += new EventHandler(frmVEPROMS_Activated);
VlnSettings.StepTypeToolType = Settings.Default.StepTypeToolTip;
displayLibDocs.PrintRequest += new DisplayLibDocEvent(displayLibDocs_PrintRequest);
ContentInfo.InfoChanged += new ContentInfoEvent(RefreshDisplayHistory);
ItemInfo.InfoRestored += new ItemInfoEvent(RefreshDisplayHistory);
ItemInfo.ItemDeleted += new ItemInfoEvent(RefreshDisplayHistory);
}
void RefreshDisplayHistory(object sender)
{
displayHistory.RefreshList();
}
void displayHistory_HistorySelectionChanged(object sender, DisplayHistoryEventArgs args)
{
tc.OpenItem(ItemInfo.Get(args.ItemID));
}
void displayHistory_SummaryPrintRequest(object sender, DisplayHistoryReportEventArgs args)
{
Volian.Print.Library.PDFChronologyReport myChronoRpt = new Volian.Print.Library.PDFChronologyReport(args.ReportTitle, args.ProcedureInfo, args.AuditList, args.AnnotationList);
myChronoRpt.BuildSummary();
}
void displayHistory_ChronologyPrintRequest(object sender, DisplayHistoryReportEventArgs args)
{
Volian.Print.Library.PDFChronologyReport myChronoRpt = new Volian.Print.Library.PDFChronologyReport(args.ReportTitle, args.ProcedureInfo, args.AuditList, args.AnnotationList);
myChronoRpt.BuildChronology();
}
DialogResult tv_NodePSI(object sender, vlnTreeEventArgs args)
{
VETreeNode vNode = (VETreeNode)args.Node;
@@ -1101,6 +1128,7 @@ namespace VEPROMS
displayRO.MyRTB = args.MyEditItem.MyStepRTB;
displayTags.MyEditItem = args.MyEditItem;
displayBookMarks.MyEditItem = args.MyEditItem;
displayHistory.MyEditItem = args.MyEditItem;
displayRO.ProgressBar = bottomProgBar;