Added to the User Interface

Settings for Builders Group Demo
Event handler for Search Results Report and Resolution User Interface
Added code to make DataLoader and PDF generation faster
Added ToolTip Property to ItemInfo
Added code to handle "AND Range" Transitions
Changed comment
Sorts ROs by value
This commit is contained in:
Rich
2010-09-06 19:35:11 +00:00
parent 90a7a6dbc0
commit d0ec2bab6f
10 changed files with 215 additions and 63 deletions

View File

@@ -85,8 +85,8 @@
<connectionStrings>
<add name="VEPROMS" connectionString="Data Source=VOLIAN-SERVER;User Id=proms2010;password=proms2010;Initial Catalog=VEPROMS" providerName="System.Data.SqlClient" />
<add name="VEPROMS_LOCAL" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=VEPROMS;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="VEPROMS_RMARK_DEBUG" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=VEPROMS_HLP_AEP;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="VEPROMS_RMARK_DEMO" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=VEPROMS_HLP_AEP;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="VEPROMS_RMARK_DEBUG" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=VEPROMS_DEMO;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="VEPROMS_RMARK_DEMO" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=VEPROMS_DEMO;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<userSettings>
<VEPROMS.Properties.Settings>

View File

@@ -72,6 +72,7 @@ namespace VEPROMS
this.labelItem11 = new DevComponents.DotNetBar.LabelItem();
this.btnItemInfo = new DevComponents.DotNetBar.ButtonItem();
this.lblItemID = new DevComponents.DotNetBar.LabelItem();
this.lblResolution = new DevComponents.DotNetBar.LabelItem();
this.epAnnotations = new DevComponents.DotNetBar.ExpandablePanel();
this.ctrlAnnotationDetails = new Volian.Controls.Library.AnnotationDetails();
this.btnAnnoDetailsPushPin = new DevComponents.DotNetBar.ButtonX();
@@ -455,7 +456,8 @@ namespace VEPROMS
this.lblEditView,
this.labelItem11,
this.btnItemInfo,
this.lblItemID});
this.lblItemID,
this.lblResolution});
this.bottomBar.Location = new System.Drawing.Point(5, 650);
this.bottomBar.Name = "bottomBar";
this.bottomBar.Size = new System.Drawing.Size(1185, 29);
@@ -539,6 +541,14 @@ namespace VEPROMS
this.lblItemID.Name = "lblItemID";
this.lblItemID.Text = "ItemID=\"\"";
//
// lblResolution
//
this.lblResolution.BackColor = System.Drawing.Color.Transparent;
this.lblResolution.ForeColor = System.Drawing.SystemColors.MenuText;
this.lblResolution.Name = "lblResolution";
this.lblResolution.Text = "Edit";
this.lblResolution.Click += new System.EventHandler(this.lblResolution_Click);
//
// epAnnotations
//
this.epAnnotations.CanvasColor = System.Drawing.SystemColors.Control;
@@ -1053,8 +1063,10 @@ namespace VEPROMS
this.displaySearch1.MyROFSTLookup = null;
this.displaySearch1.Name = "displaySearch1";
this.displaySearch1.ProgressBar = null;
this.displaySearch1.ReportTitle = null;
this.displaySearch1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.displaySearch1.SearchResults = null;
this.displaySearch1.SearchString = null;
this.displaySearch1.Size = new System.Drawing.Size(1, 603);
this.displaySearch1.TabIndex = 0;
//
@@ -1241,6 +1253,7 @@ namespace VEPROMS
this.Text = "VE-PROMS";
this.Load += new System.EventHandler(this.frmVEPROMS_Load);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmVEPROMS_FormClosing);
this.Resize += new System.EventHandler(this.frmVEPROMS_Resize);
((System.ComponentModel.ISupportInitialize)(this.bottomBar)).EndInit();
this.bottomBar.ResumeLayout(false);
this.epAnnotations.ResumeLayout(false);
@@ -1374,6 +1387,7 @@ namespace VEPROMS
private DevComponents.DotNetBar.LabelItem lblItemID;
private System.Windows.Forms.ComboBox cmbFont;
private DevComponents.DotNetBar.ButtonItem btnRepaginate;
private DevComponents.DotNetBar.LabelItem lblResolution;
}
}

View File

@@ -152,8 +152,16 @@ namespace VEPROMS
ribbonControl1.ExpandedChanged += new EventHandler(ribbonControl1_ExpandedChanged);
dlgFindReplace = new FindReplace();
SpellChecker = new VlnSpellCheck();
displaySearch1.PrintRequest += new DisplaySearchEvent(displaySearch1_PrintRequest);
}
void displaySearch1_PrintRequest(object sender, DisplaySearchEventArgs args)
{
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.MyItemInfoList, @"C:\temp\searchresults.pdf");
if (args.SearchString != null)
myReport.SearchString = args.SearchString;
myReport.Build();
System.Diagnostics.Process.Start(myReport.FileName);
}
bool tv_InsertItemInfo(object sender, vlnTreeItemInfoInsertEventArgs args)
{
return tc.InsertStepItem(args.MyItemInfo, args.StepText, args.InsertType, args.FromType, args.Type);
@@ -1305,7 +1313,28 @@ namespace VEPROMS
//}
//string pnum = DisplayText.StaticStripRtfCommands(this._CurrentItem.MyProcedure.ProcedureConfig.Number).Replace("\\u8209?", "-");
DlgPrintProcedure prnDlg = new DlgPrintProcedure(this._CurrentItem.MyProcedure);//dvi.DocVersionConfig,pnum);
prnDlg.ShowDialog();
prnDlg.Show();
}
private void lblResolution_Click(object sender, EventArgs e)
{
if (this.WindowState != FormWindowState.Normal)
{
this.WindowState = FormWindowState.Normal;
}
else if (this.Size.Width != 1280)
{
this.Size = new Size(1280, 800);
}
else
{
this.Size = new Size(1024, 768);
}
}
private void frmVEPROMS_Resize(object sender, EventArgs e)
{
lblResolution.Text = string.Format("Resolution {0} x {1}", Size.Width, Size.Height);
}
}