Compare commits
6 Commits
B2025-031
...
DemoFormat
Author | SHA1 | Date | |
---|---|---|---|
69f8e3f4fc | |||
59372b23e4 | |||
2970c0d7d4 | |||
392f1b09b2 | |||
79f66e9641 | |||
e90fceca86 |
@@ -282,6 +282,10 @@
|
|||||||
<Content Include="fmtall\NSPWGall.xml" />
|
<Content Include="fmtall\NSPWGall.xml" />
|
||||||
<Content Include="fmtall\NSP_00all.xml" />
|
<Content Include="fmtall\NSP_00all.xml" />
|
||||||
<Content Include="fmtall\OHLPall.xml" />
|
<Content Include="fmtall\OHLPall.xml" />
|
||||||
|
<Content Include="fmtall\PROMSDemo1all.xml" />
|
||||||
|
<Content Include="fmtall\PROMSDemo2all.xml" />
|
||||||
|
<Content Include="fmtall\PROMSDemoALRall.xml" />
|
||||||
|
<Content Include="fmtall\PROMSDemoBCKall.xml" />
|
||||||
<Content Include="fmtall\PROMSMan1all.xml" />
|
<Content Include="fmtall\PROMSMan1all.xml" />
|
||||||
<Content Include="fmtall\PROMSMan2all.xml" />
|
<Content Include="fmtall\PROMSMan2all.xml" />
|
||||||
<Content Include="fmtall\RGEall.xml" />
|
<Content Include="fmtall\RGEall.xml" />
|
||||||
@@ -499,6 +503,10 @@
|
|||||||
<Content Include="genmacall\nspsam.svg" />
|
<Content Include="genmacall\nspsam.svg" />
|
||||||
<Content Include="genmacall\nspsamdev.svg" />
|
<Content Include="genmacall\nspsamdev.svg" />
|
||||||
<Content Include="genmacall\ohlp.svg" />
|
<Content Include="genmacall\ohlp.svg" />
|
||||||
|
<Content Include="genmacall\PROMSDemo1.svg" />
|
||||||
|
<Content Include="genmacall\PROMSDemo2.svg" />
|
||||||
|
<Content Include="genmacall\PROMSDemoALR.svg" />
|
||||||
|
<Content Include="genmacall\PROMSDemoBCK.svg" />
|
||||||
<Content Include="genmacall\PROMSMan1.svg" />
|
<Content Include="genmacall\PROMSMan1.svg" />
|
||||||
<Content Include="genmacall\PROMSMan2.svg" />
|
<Content Include="genmacall\PROMSMan2.svg" />
|
||||||
<Content Include="genmacall\rge.svg" />
|
<Content Include="genmacall\rge.svg" />
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -276,8 +276,10 @@ namespace ctlXMLEditLib
|
|||||||
bool imagechild; //whether this field is a subchild of an image
|
bool imagechild; //whether this field is a subchild of an image
|
||||||
string imagename; //if subchild of image, name of image parent (for save)
|
string imagename; //if subchild of image, name of image parent (for save)
|
||||||
string imagedate; //if this was filename, save the date/time stamp
|
string imagedate; //if this was filename, save the date/time stamp
|
||||||
|
string name; //name of element
|
||||||
|
string parenthtid; //name of parent element in hashtable for PC items
|
||||||
public TextBoxAttrTag(bool reqd, string ptn, RadioButton rd, bool img,
|
public TextBoxAttrTag(bool reqd, string ptn, RadioButton rd, bool img,
|
||||||
string imgname, string imgdate)
|
string imgname, string imgdate, string elemname)
|
||||||
{
|
{
|
||||||
this.req_msg = null;
|
this.req_msg = null;
|
||||||
this.required = reqd;
|
this.required = reqd;
|
||||||
@@ -286,6 +288,12 @@ namespace ctlXMLEditLib
|
|||||||
this.imagechild = img;
|
this.imagechild = img;
|
||||||
this.imagename = imgname;
|
this.imagename = imgname;
|
||||||
this.imagedate = imgdate;
|
this.imagedate = imgdate;
|
||||||
|
this.name = elemname;
|
||||||
|
|
||||||
|
if (name.Contains("_PCCHILD"))
|
||||||
|
this.parenthtid = name.Substring(0, name.IndexOf("_PCCHILD"));
|
||||||
|
else
|
||||||
|
this.parenthtid = null;
|
||||||
}
|
}
|
||||||
public void SetPattern(string pattern) {this.pattern = pattern;}
|
public void SetPattern(string pattern) {this.pattern = pattern;}
|
||||||
public void SetRequired(bool req) {this.required = req;}
|
public void SetRequired(bool req) {this.required = req;}
|
||||||
@@ -298,6 +306,10 @@ namespace ctlXMLEditLib
|
|||||||
public string GetImageName { get {return imagename;}}
|
public string GetImageName { get {return imagename;}}
|
||||||
public string GetImageDate { get {return imagedate;}}
|
public string GetImageDate { get {return imagedate;}}
|
||||||
public void SetImageDate(string imgdate) {this.imagedate = imgdate;}
|
public void SetImageDate(string imgdate) {this.imagedate = imgdate;}
|
||||||
|
public string GetName { get { return name; } }
|
||||||
|
public void SetName(string elemname) { this.name = elemname; }
|
||||||
|
public string GetParentHTId { get { return parenthtid; } }
|
||||||
|
public void SetParentHTId(string id) { this.parenthtid = id; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public ctlXMLEdit(VlnXmlElement myelem, XmlSchema myschema, ArrayList reqfields, ArrayList fldsWithApplic, string [] pckids)
|
public ctlXMLEdit(VlnXmlElement myelem, XmlSchema myschema, ArrayList reqfields, ArrayList fldsWithApplic, string [] pckids)
|
||||||
@@ -928,7 +940,7 @@ namespace ctlXMLEditLib
|
|||||||
// initialization.
|
// initialization.
|
||||||
if (mytextbox.Tag == null)
|
if (mytextbox.Tag == null)
|
||||||
{
|
{
|
||||||
TextBoxAttrTag tag = new TextBoxAttrTag(false, pattern, radio, img, (img?imgname:null), null);
|
TextBoxAttrTag tag = new TextBoxAttrTag(false, pattern, radio, img, (img?imgname:null), null, mytextbox.Name);
|
||||||
mytextbox.Tag = (object) tag;
|
mytextbox.Tag = (object) tag;
|
||||||
}
|
}
|
||||||
return getannot;
|
return getannot;
|
||||||
@@ -1136,6 +1148,7 @@ namespace ctlXMLEditLib
|
|||||||
mytextbox = new TextBox();
|
mytextbox = new TextBox();
|
||||||
mytextbox.Location = new Point(screenx+indent, screeny);
|
mytextbox.Location = new Point(screenx+indent, screeny);
|
||||||
string tFieldName = (pcChildIdx == 0) ? CvtUserFldToFld(element.Name) : CvtUserFldToFld(pcChildFldName);
|
string tFieldName = (pcChildIdx == 0) ? CvtUserFldToFld(element.Name) : CvtUserFldToFld(pcChildFldName);
|
||||||
|
mytextbox.Name = tFieldName;
|
||||||
myHT.Add(tFieldName, mytextbox);
|
myHT.Add(tFieldName, mytextbox);
|
||||||
tabindx++;
|
tabindx++;
|
||||||
Controls.Add(mytextbox);
|
Controls.Add(mytextbox);
|
||||||
@@ -1201,9 +1214,21 @@ namespace ctlXMLEditLib
|
|||||||
string dfTxt = "";
|
string dfTxt = "";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ctlXMLEdit tmp = (ctlXMLEdit)tb?.Parent;
|
string parentid = ((TextBoxAttrTag)tb.Tag).GetParentHTId;
|
||||||
if (!string.IsNullOrEmpty(tmp?.ActiveControl.Text))
|
if (!string.IsNullOrEmpty(parentid))
|
||||||
dfTxt = tmp.ActiveControl.Text;
|
{
|
||||||
|
object o = myHT[parentid];
|
||||||
|
if (o != null)
|
||||||
|
dfTxt = (o as TextBox).Text; // set to use the parent's value (default)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
string parName = pcGrpBox.Name.Substring(5);
|
||||||
|
object o = myHT[parName];
|
||||||
|
if (o != null)
|
||||||
|
dfTxt = (o as TextBox).Text; // set to use the parent's value (default)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
@@ -418,7 +418,12 @@ namespace VEPROMS
|
|||||||
//txbPDFLocation.Text = _PDFPath;
|
//txbPDFLocation.Text = _PDFPath;
|
||||||
BuildPDFFileName();
|
BuildPDFFileName();
|
||||||
ProcedureConfig pc = _MyProcedure.MyConfig as ProcedureConfig;
|
ProcedureConfig pc = _MyProcedure.MyConfig as ProcedureConfig;
|
||||||
if(SelectedSlave > 0) pc.SelectedSlave = SelectedSlave;
|
// C2025-033 set which Child procedure is being printed used for PageStyle items
|
||||||
|
VlnSvgPageHelper.PrintingChild = SelectedSlave;
|
||||||
|
if (SelectedSlave > 0)
|
||||||
|
{
|
||||||
|
pc.SelectedSlave = SelectedSlave;
|
||||||
|
}
|
||||||
if (pc != null)
|
if (pc != null)
|
||||||
{
|
{
|
||||||
//C2021-062 use the save rev number for all procedures if set, or just use the rev number in the current procedure config
|
//C2021-062 use the save rev number for all procedures if set, or just use the rev number in the current procedure config
|
||||||
|
@@ -2167,11 +2167,12 @@ namespace VEPROMS
|
|||||||
btnAdministrativeTools.Click += new EventHandler(btnAdministrativeTools_Click);
|
btnAdministrativeTools.Click += new EventHandler(btnAdministrativeTools_Click);
|
||||||
btnAdmin.SubItems.Add(btnAdministrativeTools);
|
btnAdmin.SubItems.Add(btnAdministrativeTools);
|
||||||
|
|
||||||
|
// C2025-031 added tool tip messages
|
||||||
this.superTooltip1.SetSuperTooltip(btnManageSecurity, new SuperTooltipInfo("Manage Security", "", "Add, Modify, and Delete PROMS User Access", null, null, eTooltipColor.Gray));
|
this.superTooltip1.SetSuperTooltip(btnManageSecurity, new SuperTooltipInfo("Manage Security", "", "Add, Modify, and Delete PROMS User Access", null, null, eTooltipColor.Gray));
|
||||||
// remove commented out line below when User Control of Formats code is deleted
|
// remove commented out line below when User Control of Formats code is deleted
|
||||||
//this.superTooltip1.SetSuperTooltip(btnUserControlOfFormats, new SuperTooltipInfo("User Control Of Formats", null, null, null, null, eTooltipColor.Gray));
|
//this.superTooltip1.SetSuperTooltip(btnUserControlOfFormats, new SuperTooltipInfo("User Control Of Formats", null, null, null, null, eTooltipColor.Gray));
|
||||||
this.superTooltip1.SetSuperTooltip(btnResetSecurity, new SuperTooltipInfo("Reset Security", "", "WARNING this will \nREMOVE ALL PROMS USERS and Reset to\nthe Oringal Volian Defaults", null, null, eTooltipColor.Gray));
|
this.superTooltip1.SetSuperTooltip(btnResetSecurity, new SuperTooltipInfo("Reset Security", "", "WARNING this will \nREMOVE ALL PROMS USERS and Reset to the\nOriginal Volian Defaults", null, null, eTooltipColor.Gray));
|
||||||
this.superTooltip1.SetSuperTooltip(btnAdministrativeTools, new SuperTooltipInfo("Administrative Tools", "", "Open the PROMS Adminstation Tools Window", null, null, eTooltipColor.Gray));
|
this.superTooltip1.SetSuperTooltip(btnAdministrativeTools, new SuperTooltipInfo("Administrative Tools", "", "Open the PROMS Adminstration Tools Window", null, null, eTooltipColor.Gray));
|
||||||
this.superTooltip1.SetSuperTooltip(btnUpdateFormats, new SuperTooltipInfo("Update Formats", "", "Install New Formats \n or Re-Install Formats", null, null, eTooltipColor.Gray));
|
this.superTooltip1.SetSuperTooltip(btnUpdateFormats, new SuperTooltipInfo("Update Formats", "", "Install New Formats \n or Re-Install Formats", null, null, eTooltipColor.Gray));
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@@ -244,6 +244,16 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return LazyLoad(ref _TrimEnding, "@TrimEnding");
|
return LazyLoad(ref _TrimEnding, "@TrimEnding");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// C2025-033 to specify to print pagestyle item for a specific Child procedure
|
||||||
|
private LazyLoad<int?> _ChildNum;
|
||||||
|
public int? ChildNum
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (LazyLoad(ref _ChildNum, "@ChildNum"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
#region Override ToString
|
#region Override ToString
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
@@ -252,6 +252,14 @@ namespace Volian.Print.Library
|
|||||||
get { return _CountInApplProcs; }
|
get { return _CountInApplProcs; }
|
||||||
set { _CountInApplProcs = value; }
|
set { _CountInApplProcs = value; }
|
||||||
}
|
}
|
||||||
|
// C2025-033 Child (slave) being printed
|
||||||
|
private static int _PrintingChild = 0;
|
||||||
|
public static int PrintingChild
|
||||||
|
{
|
||||||
|
get { return _PrintingChild; }
|
||||||
|
set { _PrintingChild = value; }
|
||||||
|
}
|
||||||
|
|
||||||
//private bool _AddBlankPagesForDuplexPrinting = false;
|
//private bool _AddBlankPagesForDuplexPrinting = false;
|
||||||
//public bool AddBlankPagesForDuplexPrinting // Tells us if a the option to add a blank page is turn on (for procedures with duplex foldouts)
|
//public bool AddBlankPagesForDuplexPrinting // Tells us if a the option to add a blank page is turn on (for procedures with duplex foldouts)
|
||||||
//{
|
//{
|
||||||
@@ -1363,6 +1371,8 @@ i = 0;
|
|||||||
foreach (VEPROMS.CSLA.Library.PageItem pageItem in pageStyle.PageItems)
|
foreach (VEPROMS.CSLA.Library.PageItem pageItem in pageStyle.PageItems)
|
||||||
{
|
{
|
||||||
if (pageItem.Token == null) continue; // can be null if token is dependent on PSI lookup!
|
if (pageItem.Token == null) continue; // can be null if token is dependent on PSI lookup!
|
||||||
|
// 2024-089 selectively print pagestyle item base on Child Procedure being printed
|
||||||
|
if (PrintingChild > 0 && pageItem.ChildNum > 0 && pageItem.ChildNum != PrintingChild) continue; // C2025-033 item should not be printed for this child
|
||||||
DidHLSText = false; // reset to false for this group of tokens.
|
DidHLSText = false; // reset to false for this group of tokens.
|
||||||
//if (pageItem.Token.Contains("HLSTEXT"))
|
//if (pageItem.Token.Contains("HLSTEXT"))
|
||||||
// Console.WriteLine("{0} - PageList Token", pageItem.Token);
|
// Console.WriteLine("{0} - PageList Token", pageItem.Token);
|
||||||
|
Reference in New Issue
Block a user