increase PSI labels width
Add argument to fmrPDFStatusForm call for pagenum transition processing (B2015-053) Add argument for pagenum transition processing (B2015-053) Add panel/scroll bar for PSI that has many fields (on larger font display, could not access bottommost) (B2015-051) Add property for tracking of pagenum transitions (B2015-053) For section list, use section default (procedure steps) if transition format has user interface of ‘SectDefault’. (B2015-052) Pagenum transition processing – add 3rd pass for fix. (B2015-053)
This commit is contained in:
@@ -557,7 +557,7 @@ namespace VEPROMS
|
||||
MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave);
|
||||
string myPDFPath = GetMultiunitPDFPath();
|
||||
// RHM 20120925 Overlay the bottom of the dialog so that cancel button is covered.
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, myPDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50),cbxBlankPgsForDuplex.Checked);
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, myPDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50),cbxBlankPgsForDuplex.Checked, _AllProcedures||Automatic);
|
||||
frmStatus.CloseWhenDone = true;
|
||||
Application.DoEvents();
|
||||
frmStatus.CancelStop = true;
|
||||
@@ -577,7 +577,7 @@ namespace VEPROMS
|
||||
// this.Text = string.Format("Create PDF for {0} ({1} of {2})", myProc.DisplayNumber, ++i, n);
|
||||
MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave);
|
||||
// RHM 20120925 Overlay the bottom of the dialog so that cancel button is covered.
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, PDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50), cbxBlankPgsForDuplex.Checked);
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, PDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50), cbxBlankPgsForDuplex.Checked, _AllProcedures || Automatic);
|
||||
frmStatus.CloseWhenDone = true;
|
||||
Application.DoEvents();
|
||||
frmStatus.CancelStop = true;
|
||||
@@ -600,7 +600,7 @@ namespace VEPROMS
|
||||
else
|
||||
MyProcedure = ProcedureInfo.GetItemAndChildren(MyProcedure.ItemID);
|
||||
ProfileTimer.Pop(profileDepth1);
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, PDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50), cbxBlankPgsForDuplex.Checked);
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, PDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50), cbxBlankPgsForDuplex.Checked, _AllProcedures || Automatic);
|
||||
frmStatus.CloseWhenDone = true;
|
||||
Application.DoEvents();
|
||||
frmStatus.CancelStop = true;
|
||||
@@ -680,7 +680,7 @@ namespace VEPROMS
|
||||
MyProcedure = ProcedureInfo.GetItemAndChildren(MyProcedure.ItemID);
|
||||
// RHM 20120925 Overlay the bottom of the dialog so that cancel button is covered.
|
||||
ProfileTimer.Pop(profileDepth2);
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, PDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50), cbxBlankPgsForDuplex.Checked);
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, PDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50), cbxBlankPgsForDuplex.Checked, _AllProcedures || Automatic);
|
||||
frmStatus.MakePlaceKeeper = cbxGeneratePlacekeeper.Checked;
|
||||
int profileDepth3 = ProfileTimer.Push(">>>> frmStatus");
|
||||
frmStatus.ShowDialog();
|
||||
|
@@ -1100,7 +1100,7 @@ namespace VEPROMS
|
||||
//ProcedureInfo myproc = pi;
|
||||
//frmPDFStatusForm frm = new frmPDFStatusForm(myproc, ap.RevNumber, /* revdate change: ap.RevDate.ToString("MM/dd/yyyy") ,*/ waterMark, false, false, ViewPDF, true, VlnSettings.TemporaryFolder, new ChangeBarDefinition(pi.MyDocVersion.MyConfig as DocVersionConfig, pi.ActiveFormat), pdfTmp, location);
|
||||
//myproc.ChangeBarDate = myDTS;
|
||||
frmPDFStatusForm frm = new frmPDFStatusForm(pi, ap.RevNumAndDate, /* revdate change: ap.RevDate.ToString("MM/dd/yyyy") ,*/ waterMark, false, false, ViewPDF, true, VlnSettings.TemporaryFolder, new ChangeBarDefinition(pi.MyDocVersion.MyConfig as DocVersionConfig, pi.ActiveFormat), pdfTmp, location, pi.MyDocVersion.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts);
|
||||
frmPDFStatusForm frm = new frmPDFStatusForm(pi, ap.RevNumAndDate, /* revdate change: ap.RevDate.ToString("MM/dd/yyyy") ,*/ waterMark, false, false, ViewPDF, true, VlnSettings.TemporaryFolder, new ChangeBarDefinition(pi.MyDocVersion.MyConfig as DocVersionConfig, pi.ActiveFormat), pdfTmp, location, pi.MyDocVersion.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts, true);
|
||||
frm.AllowAllWatermarks = true;
|
||||
frm.CloseWhenDone = !ViewPDF;
|
||||
frm.ShowDialog();
|
||||
|
@@ -60,13 +60,13 @@ namespace VEPROMS
|
||||
set { _OpenPDF = value; }
|
||||
}
|
||||
private Point _NewLocation;
|
||||
public frmPDFStatusForm(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, bool openPDF, bool overWrite, string pdfPath, ChangeBarDefinition cbd,string pdfFile, Point newLocation,bool insertBlankPages)
|
||||
public frmPDFStatusForm(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, bool openPDF, bool overWrite, string pdfPath, ChangeBarDefinition cbd,string pdfFile, Point newLocation,bool insertBlankPages, bool allOrAuto)
|
||||
{
|
||||
OpenPDF = openPDF;
|
||||
InitializeComponent();
|
||||
// if the version number of PROMS is 1.0, then we are running a Demo version.
|
||||
// When running a Demo version, force a "Sample" watermark when printing.
|
||||
MyPromsPrinter = new PromsPrinter(myItem, rev, (VlnSettings.ReleaseMode.Equals("DEMO")) ? "Sample" : watermark, debugOutput, origPgBrk, pdfPath + @"\\Compare", false, overWrite, cbd, pdfFile, insertBlankPages);//openPDF);
|
||||
MyPromsPrinter = new PromsPrinter(myItem, rev, (VlnSettings.ReleaseMode.Equals("DEMO")) ? "Sample" : watermark, debugOutput, origPgBrk, pdfPath + @"\\Compare", false, overWrite, cbd, pdfFile, insertBlankPages, allOrAuto);
|
||||
PDFPath = pdfPath;
|
||||
this.Text = "Creating PDF of " + myItem.DisplayNumber;
|
||||
_NewLocation = newLocation;
|
||||
|
29
PROMS/VEPROMS User Interface/frmPSI.Designer.cs
generated
29
PROMS/VEPROMS User Interface/frmPSI.Designer.cs
generated
@@ -30,15 +30,16 @@ namespace VEPROMS
|
||||
{
|
||||
this.btnOk = new System.Windows.Forms.Button();
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.panelPSI = new System.Windows.Forms.Panel();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnOk
|
||||
//
|
||||
this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
this.btnOk.Location = new System.Drawing.Point(9, 180);
|
||||
this.btnOk.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||
this.btnOk.Location = new System.Drawing.Point(12, 222);
|
||||
this.btnOk.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.btnOk.Name = "btnOk";
|
||||
this.btnOk.Size = new System.Drawing.Size(56, 19);
|
||||
this.btnOk.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnOk.TabIndex = 0;
|
||||
this.btnOk.Text = "Ok";
|
||||
this.btnOk.UseVisualStyleBackColor = true;
|
||||
@@ -46,24 +47,33 @@ namespace VEPROMS
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Location = new System.Drawing.Point(82, 180);
|
||||
this.btnCancel.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||
this.btnCancel.Location = new System.Drawing.Point(109, 222);
|
||||
this.btnCancel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(56, 19);
|
||||
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnCancel.TabIndex = 1;
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// panelPSI
|
||||
//
|
||||
this.panelPSI.AutoScroll = true;
|
||||
this.panelPSI.Location = new System.Drawing.Point(12, 12);
|
||||
this.panelPSI.Name = "panelPSI";
|
||||
this.panelPSI.Size = new System.Drawing.Size(349, 205);
|
||||
this.panelPSI.TabIndex = 2;
|
||||
//
|
||||
// frmPSI
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoSize = true;
|
||||
this.ClientSize = new System.Drawing.Size(280, 209);
|
||||
this.ClientSize = new System.Drawing.Size(373, 257);
|
||||
this.Controls.Add(this.panelPSI);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOk);
|
||||
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.Name = "frmPSI";
|
||||
this.Text = "frmPSI";
|
||||
this.TopMost = true;
|
||||
@@ -75,5 +85,6 @@ namespace VEPROMS
|
||||
|
||||
private System.Windows.Forms.Button btnOk;
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
private System.Windows.Forms.Panel panelPSI;
|
||||
}
|
||||
}
|
@@ -33,6 +33,9 @@ namespace VEPROMS
|
||||
this.Location = new Point((int)psiDialogDef.x * 2, (int)psiDialogDef.y * 2);
|
||||
int maxx = 0;
|
||||
int maxy = 0;
|
||||
int xB4Scroll = 900;
|
||||
int yB4Scroll = 630;
|
||||
this.panelPSI.AutoScroll = false;
|
||||
foreach (PsiLabel lbl in psiDialogDef.LabelList)
|
||||
{
|
||||
Label wlbl = new Label();
|
||||
@@ -41,7 +44,7 @@ namespace VEPROMS
|
||||
wlbl.AutoSize = true;
|
||||
//wlbl.Size = new Size((int)lbl.width * 2, (int)lbl.height * 2);
|
||||
wlbl.Visible = true;
|
||||
this.Controls.Add(wlbl);
|
||||
this.panelPSI.Controls.Add(wlbl);
|
||||
maxx = ((int)lbl.x * 2 + (int)lbl.width * 2) > maxx ? ((int)lbl.x * 2 + (int)lbl.width * 2) : maxx;
|
||||
maxy = ((int)lbl.y * 2 + (int)lbl.height * 2) > maxy ? ((int)lbl.y * 2 + (int)lbl.height * 2) : maxy;
|
||||
}
|
||||
@@ -69,7 +72,7 @@ namespace VEPROMS
|
||||
tb.Location = new Point((int)fld.x * 2, (int)fld.y * 2);
|
||||
tb.Size = new Size((int)fld.width * 2, (int)fld.height * 2);
|
||||
tb.Visible = true;
|
||||
this.Controls.Add(tb);
|
||||
this.panelPSI.Controls.Add(tb);
|
||||
maxx = ((int)fld.x * 2 + (int)fld.width * 2) > maxx ? ((int)fld.x * 2 + (int)fld.width * 2) : maxx;
|
||||
maxy = ((int)fld.y * 2 + (int)fld.height * 2) > maxy ? ((int)fld.y * 2 + (int)fld.height * 2) : maxy;
|
||||
}
|
||||
@@ -83,15 +86,31 @@ namespace VEPROMS
|
||||
cb.Width = (int)fld.width * 2;
|
||||
string val = procConfig.GetValue("PSI", fld.name);
|
||||
cb.Checked = val!=null && val!="" && val.ToUpper()[0] == 'Y' ? true : false;
|
||||
this.Controls.Add(cb);
|
||||
this.panelPSI.Controls.Add(cb);
|
||||
maxx = ((int)fld.x * 2 + (int)fld.width * 2) > maxx ? ((int)fld.x * 2 + (int)fld.width * 2) : maxx;
|
||||
maxy = ((int)fld.y * 2 + (int)fld.height * 2) > maxy ? ((int)fld.y * 2 + (int)fld.height * 2) : maxy;
|
||||
}
|
||||
}
|
||||
if (maxx > xB4Scroll)
|
||||
{
|
||||
maxx = xB4Scroll;
|
||||
this.panelPSI.Width = xB4Scroll;
|
||||
this.panelPSI.AutoScroll = true;
|
||||
}
|
||||
else
|
||||
this.panelPSI.Width = maxx + 50;
|
||||
if (maxy > yB4Scroll)
|
||||
{
|
||||
maxy = yB4Scroll;
|
||||
this.panelPSI.Height = yB4Scroll;
|
||||
this.panelPSI.AutoScroll = true;
|
||||
}
|
||||
else
|
||||
this.panelPSI.Height = maxy + 50;
|
||||
if (psiDialogDef.ButtonsOnBottom == null || psiDialogDef.ButtonsOnBottom.ToUpper() == "NO")
|
||||
{
|
||||
btnOk.Location = new Point(maxx+20, 30);
|
||||
btnCancel.Location = new Point(maxx + 20, 60);
|
||||
btnOk.Location = new Point(maxx+70, 30);
|
||||
btnCancel.Location = new Point(maxx + 70, 60);
|
||||
}
|
||||
}
|
||||
private void FieldStepRTB_Enter(object sender, EventArgs e)
|
||||
|
Reference in New Issue
Block a user