Table shrinking support
Support for mutilple ItemIDs in the TextBox in the ToolBar
This commit is contained in:
parent
39f4daa237
commit
cf79062b90
@ -1051,7 +1051,6 @@ namespace VEPROMS
|
||||
this.txtSearch.TextChanged+=txtSearch_TextChanged; // RHM20150506 Multiline ItemID TextBox
|
||||
this.btnNext.Click += btnNext_Click; // RHM20150506 Multiline ItemID TextBox
|
||||
this.btnPrint1.Click += btnPrint1_Click; // RHM20150506 Multiline ItemID TextBox
|
||||
this.cbScrunch.Click += cbScrunch_Click; // RHM20150506 Multiline ItemID TextBox
|
||||
this.btnPrevious.Click += btnPrevious_Click; // RHM20150506 Multiline ItemID TextBox
|
||||
if (Settings.Default["Location"] != null) this.Location = Settings.Default.Location;
|
||||
if (Settings.Default["Size"] != null) this.Size = Settings.Default.Size;
|
||||
@ -1124,10 +1123,8 @@ namespace VEPROMS
|
||||
// RHM20150506 Multiline ItemID TextBox
|
||||
this.txtSearch.Text = Volian.Base.Library.VlnSettings.GetCommand("ItemIDs", "").Replace(",","\r\n");
|
||||
}
|
||||
void cbScrunch_Click(object sender, EventArgs e) // RHM20150506 Multiline ItemID TextBox
|
||||
{
|
||||
//Rtf2Pdf._AllowTableScrunching = TableScrunching.Phase1;
|
||||
}
|
||||
// RHM20150507 Table Scrunch
|
||||
private TableScrunching _DefaultScrunchingRules = TableScrunching.Phase1 | TableScrunching.Phase5 | TableScrunching.Phase2 | TableScrunching.Phase3 | TableScrunching.Phase4 | TableScrunching.Phase5 | TableScrunching.Phase6 | TableScrunching.Phase7 | TableScrunching.Phase8;
|
||||
void btnPrint1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string[] ids = txtSearch.Text.Split("\r\n ".ToCharArray());
|
||||
@ -1143,13 +1140,12 @@ namespace VEPROMS
|
||||
}
|
||||
DialogResult dr = System.Windows.Forms.DialogResult.Yes;
|
||||
//dr = MessageBox.Show("Do you want all of the PDFs to be opened?", "Open After Create", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
//Rtf2Pdf.AllowTableScrunching = TableScrunching.None;//TableScrunching.Phase1 | TableScrunching.Phase2 | TableScrunching.Phase3 | TableScrunching.Phase4| TableScrunching.Phase5 | TableScrunching.Phase6 | TableScrunching.Phase7 | TableScrunching.Phase8;
|
||||
//Rtf2Pdf.AllowTableScrunching = TableScrunching.Phase5 | TableScrunching.Phase2 | TableScrunching.Phase3 | TableScrunching.Phase4| TableScrunching.Phase5 | TableScrunching.Phase6 | TableScrunching.Phase7 | TableScrunching.Phase8 |
|
||||
// 0;
|
||||
// RHM20150507 Table Scrunch
|
||||
Rtf2Pdf.AllowTableScrunching = cbScrunch.Checked ? _DefaultScrunchingRules : TableScrunching.None;
|
||||
foreach (int key in dicProcs.Keys)
|
||||
{
|
||||
ProcedureInfo proc = dicProcs[key];
|
||||
Console.WriteLine("{0}", proc.ShortPath);
|
||||
//Console.WriteLine("{0}", proc.ShortPath);
|
||||
DlgPrintProcedure prnDlg = new DlgPrintProcedure(proc,true);//dvi.DocVersionConfig,pnum);
|
||||
prnDlg.MySessionInfo = MySessionInfo;
|
||||
//prnDlg.ShowDialog(this); // RHM 20120925 - Center dialog over PROMS window
|
||||
@ -1163,17 +1159,17 @@ namespace VEPROMS
|
||||
bool ProcessingPaste = false;
|
||||
private void txtSearch_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!ProcessingPaste)
|
||||
{
|
||||
if (txtSearch.Text.Contains("\n"))
|
||||
if (!ProcessingPaste) // RHM20150507 Multiline ItemID TextBox
|
||||
{
|
||||
ProcessingPaste = true;
|
||||
if (txtSearch.Text.Contains("\n"))
|
||||
{
|
||||
txtSearch.Text = txtSearch.Text.Trim("\r\n ".ToCharArray());
|
||||
btnNext.Visible = btnPrint1.Visible = cbScrunch.Visible = btnPrevious.Visible = txtSearch.Text.Contains("\r\n");
|
||||
txtSearch.SelectionStart = 0;
|
||||
CurrentID = GetCurrentLine();
|
||||
ProcessingPaste = false;
|
||||
}
|
||||
btnNext.Visible = btnPrint1.Visible = cbScrunch.Visible = btnPrevious.Visible = txtSearch.Text.Contains("\r\n");
|
||||
ProcessingPaste = false;
|
||||
}
|
||||
}
|
||||
void btnPrevious_Click(object sender, EventArgs e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user