WCNTRN: Add Step Responsibility

WCNTRN: Added SectTop (for section number & continue message)
WCNTRN: Added Responsibility textbox
This commit is contained in:
Kathy Ruffing 2015-06-04 14:54:04 +00:00
parent 7cc3f73b66
commit c0dc3f174b
4 changed files with 229 additions and 63 deletions

View File

@ -278,6 +278,25 @@ namespace VEPROMS.CSLA.Library
OnPropertyChanged("Step_ChangeID");
}
}
public string Step_Responsibility
{
get
{
string s = _Xp["Step", "Responsibility"];
if (s == string.Empty) return null;
return s;
}
set
{
string s = _Xp["Step", "Responsibility"];
if (value != null && value.ToString() == s) return;
if (value == null && s != null) _Xp["Step", "Responsibility"] = null;
else _Xp["Step", "Responsibility"] = value.ToString();
OnPropertyChanged("Step_Responsibility");
}
}
#endregion
#region IItemConfig Members

View File

@ -333,6 +333,14 @@ namespace VEPROMS.CSLA.Library
return (_Layout == null ? _Layout = new Layout(SelectSingleNode("Layout")) : _Layout);
}
}
private SectTop _SectTop;
public SectTop SectTop
{
get
{
return (_SectTop == null ? _SectTop = new SectTop(SelectSingleNode("SectTop")) : _SectTop);
}
}
private Continue _Continue;
public Continue Continue
{
@ -491,6 +499,53 @@ namespace VEPROMS.CSLA.Library
#endregion
}
#endregion
#region SectTop
[TypeConverter(typeof(ExpandableObjectConverter))]
public class SectTop : vlnFormatItem
{
public SectTop(XmlNode xmlNode) : base(xmlNode) { }
public SectTop() : base() { }
#region Font
private VE_Font _Font;
[Category("Font")]
[DisplayName("Font")]
[Description("Font")]
public VE_Font Font
{
get
{
return (_Font == null) ? _Font = new VE_Font(XmlNode) : _Font;
}
}
#endregion
#region Margin
private LazyLoad<float?> _Margin;
[Category("Section Continue Msg")]
[DisplayName("Margin for Section top msg")]
[Description("Margin for Section top msg")]
public float? Margin
{
get
{
return LazyLoad(ref _Margin, "@Margin");
}
}
#endregion
#region Message
private LazyLoad<string> _Message;
[Category("Continue Msg")]
[DisplayName("Section Top Continue Msg")]
[Description("Section Top Continue Msg")]
public string Message
{
get
{
return LazyLoad(ref _Message, "@Message");
}
}
#endregion
}
#endregion
#region ContinueAll
#region Continue
[TypeConverter(typeof(ExpandableObjectConverter))]

View File

@ -46,11 +46,14 @@ namespace Volian.Controls.Library
this.groupPanelIncludeOn = new DevComponents.DotNetBar.Controls.GroupPanel();
this.cbPlaceKeeperCont = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cbPlaceKeeper = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.groupPanelWcnTrnResp = new DevComponents.DotNetBar.Controls.GroupPanel();
this.tbRespons = new System.Windows.Forms.TextBox();
this.groupPanelPaginate.SuspendLayout();
this.groupPanelCheckoff.SuspendLayout();
this.groupPanelChgBar.SuspendLayout();
this.groupPanelChgStepType.SuspendLayout();
this.groupPanelIncludeOn.SuspendLayout();
this.groupPanelWcnTrnResp.SuspendLayout();
this.SuspendLayout();
//
// groupPanelPaginate
@ -60,10 +63,10 @@ namespace Volian.Controls.Library
this.groupPanelPaginate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.groupPanelPaginate.Controls.Add(this.cbPageBreak);
this.groupPanelPaginate.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelPaginate.Location = new System.Drawing.Point(0, 330);
this.groupPanelPaginate.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupPanelPaginate.Location = new System.Drawing.Point(0, 382);
this.groupPanelPaginate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupPanelPaginate.Name = "groupPanelPaginate";
this.groupPanelPaginate.Size = new System.Drawing.Size(172, 58);
this.groupPanelPaginate.Size = new System.Drawing.Size(229, 71);
//
//
//
@ -102,10 +105,10 @@ namespace Volian.Controls.Library
//
//
this.cbPageBreak.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.cbPageBreak.Location = new System.Drawing.Point(3, 11);
this.cbPageBreak.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbPageBreak.Location = new System.Drawing.Point(4, 14);
this.cbPageBreak.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbPageBreak.Name = "cbPageBreak";
this.cbPageBreak.Size = new System.Drawing.Size(122, 15);
this.cbPageBreak.Size = new System.Drawing.Size(140, 17);
this.superTooltipTags.SetSuperTooltip(this.cbPageBreak, new DevComponents.DotNetBar.SuperTooltipInfo("Manual Page Break", "", "When set, starts this step at the top of a page.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbPageBreak.TabIndex = 0;
this.cbPageBreak.Text = "Manual Page Break";
@ -119,29 +122,29 @@ namespace Volian.Controls.Library
//
//
this.cbCAS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.cbCAS.Location = new System.Drawing.Point(3, 14);
this.cbCAS.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbCAS.Enabled = false;
this.cbCAS.Location = new System.Drawing.Point(4, 17);
this.cbCAS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbCAS.Name = "cbCAS";
this.cbCAS.Size = new System.Drawing.Size(162, 15);
this.cbCAS.Size = new System.Drawing.Size(187, 17);
this.superTooltipTags.SetSuperTooltip(this.cbCAS, new DevComponents.DotNetBar.SuperTooltipInfo("Continuous Action Summary", "", "Include this in the Continuous Action Summary section", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbCAS.TabIndex = 1;
this.cbCAS.Text = "Continuous Action Summary";
this.cbCAS.Enabled = false;
this.cbCAS.CheckedChanged += new System.EventHandler(this.cbCAS_CheckedChanged);
//
// cmbCheckoff
//
this.cmbCheckoff.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbCheckoff.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cmbCheckoff.DisplayMember = "Text";
this.cmbCheckoff.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cmbCheckoff.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbCheckoff.FormattingEnabled = true;
this.cmbCheckoff.ItemHeight = 17;
this.cmbCheckoff.Location = new System.Drawing.Point(3, 17);
this.cmbCheckoff.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cmbCheckoff.Location = new System.Drawing.Point(4, 21);
this.cmbCheckoff.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cmbCheckoff.Name = "cmbCheckoff";
this.cmbCheckoff.Size = new System.Drawing.Size(164, 23);
this.cmbCheckoff.Size = new System.Drawing.Size(217, 23);
this.cmbCheckoff.TabIndex = 0;
this.cmbCheckoff.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cmbCheckoff.WatermarkText = "select signoff / checkoff";
@ -153,10 +156,10 @@ namespace Volian.Controls.Library
this.groupPanelCheckoff.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.groupPanelCheckoff.Controls.Add(this.cmbCheckoff);
this.groupPanelCheckoff.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelCheckoff.Location = new System.Drawing.Point(0, 145);
this.groupPanelCheckoff.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupPanelCheckoff.Location = new System.Drawing.Point(0, 154);
this.groupPanelCheckoff.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupPanelCheckoff.Name = "groupPanelCheckoff";
this.groupPanelCheckoff.Size = new System.Drawing.Size(172, 77);
this.groupPanelCheckoff.Size = new System.Drawing.Size(229, 95);
//
//
//
@ -199,10 +202,10 @@ namespace Volian.Controls.Library
this.groupPanelChgBar.Controls.Add(this.rbChgBarOff);
this.groupPanelChgBar.Controls.Add(this.rbChgBarOn);
this.groupPanelChgBar.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelChgBar.Location = new System.Drawing.Point(0, 222);
this.groupPanelChgBar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupPanelChgBar.Location = new System.Drawing.Point(0, 249);
this.groupPanelChgBar.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupPanelChgBar.Name = "groupPanelChgBar";
this.groupPanelChgBar.Size = new System.Drawing.Size(172, 108);
this.groupPanelChgBar.Size = new System.Drawing.Size(229, 133);
//
//
//
@ -236,32 +239,31 @@ namespace Volian.Controls.Library
//
// tbChgID
//
this.tbChgID.Location = new System.Drawing.Point(0, 67);
this.tbChgID.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tbChgID.Location = new System.Drawing.Point(0, 82);
this.tbChgID.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tbChgID.Name = "tbChgID";
this.tbChgID.Size = new System.Drawing.Size(81, 20);
this.tbChgID.Size = new System.Drawing.Size(107, 22);
this.tbChgID.TabIndex = 4;
this.tbChgID.TextChanged += new System.EventHandler(this.tbChgID_TextChanged);
//
// lblChgId
//
this.lblChgId.AutoSize = true;
this.lblChgId.Location = new System.Drawing.Point(0, 52);
this.lblChgId.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblChgId.Location = new System.Drawing.Point(0, 64);
this.lblChgId.Name = "lblChgId";
this.lblChgId.Size = new System.Drawing.Size(58, 13);
this.lblChgId.Size = new System.Drawing.Size(74, 17);
this.lblChgId.TabIndex = 3;
this.lblChgId.Text = "Change ID";
//
// rbChgBarOff
//
this.rbChgBarOff.AutoSize = true;
this.rbChgBarOff.Location = new System.Drawing.Point(0, 26);
this.rbChgBarOff.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.rbChgBarOff.Location = new System.Drawing.Point(0, 32);
this.rbChgBarOff.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.rbChgBarOff.Name = "rbChgBarOff";
this.rbChgBarOff.Size = new System.Drawing.Size(45, 17);
this.rbChgBarOff.Size = new System.Drawing.Size(56, 21);
this.superTooltipTags.SetSuperTooltip(this.rbChgBarOff, new DevComponents.DotNetBar.SuperTooltipInfo("Change Bar OFF", "", "Turn change bar off. Note that \'OVERRIDE\' will turn off a change bar even though" +
" text is changed.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
" text is changed.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.rbChgBarOff.TabIndex = 2;
this.rbChgBarOff.TabStop = true;
this.rbChgBarOff.Text = "OFF";
@ -271,10 +273,10 @@ namespace Volian.Controls.Library
// rbChgBarOn
//
this.rbChgBarOn.AutoSize = true;
this.rbChgBarOn.Location = new System.Drawing.Point(0, 4);
this.rbChgBarOn.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.rbChgBarOn.Location = new System.Drawing.Point(0, 5);
this.rbChgBarOn.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.rbChgBarOn.Name = "rbChgBarOn";
this.rbChgBarOn.Size = new System.Drawing.Size(41, 17);
this.rbChgBarOn.Size = new System.Drawing.Size(50, 21);
this.superTooltipTags.SetSuperTooltip(this.rbChgBarOn, new DevComponents.DotNetBar.SuperTooltipInfo("Change Bar ON", "", "Add a change bar on this step", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.rbChgBarOn.TabIndex = 1;
this.rbChgBarOn.TabStop = true;
@ -284,6 +286,7 @@ namespace Volian.Controls.Library
//
// groupPanelChgStepType
//
this.groupPanelChgStepType.AutoSize = true;
this.groupPanelChgStepType.BackColor = System.Drawing.SystemColors.Control;
this.groupPanelChgStepType.CanvasColor = System.Drawing.SystemColors.Control;
this.groupPanelChgStepType.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
@ -292,9 +295,9 @@ namespace Volian.Controls.Library
this.groupPanelChgStepType.Controls.Add(this.listBoxStepTypes);
this.groupPanelChgStepType.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelChgStepType.Location = new System.Drawing.Point(0, 0);
this.groupPanelChgStepType.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupPanelChgStepType.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupPanelChgStepType.Name = "groupPanelChgStepType";
this.groupPanelChgStepType.Size = new System.Drawing.Size(172, 145);
this.groupPanelChgStepType.Size = new System.Drawing.Size(229, 154);
//
//
//
@ -328,45 +331,46 @@ namespace Volian.Controls.Library
//
// lblNoTypeChgReason
//
this.lblNoTypeChgReason.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblNoTypeChgReason.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblNoTypeChgReason.BackColor = System.Drawing.Color.Transparent;
//
//
//
this.lblNoTypeChgReason.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblNoTypeChgReason.ForeColor = System.Drawing.Color.Red;
this.lblNoTypeChgReason.Location = new System.Drawing.Point(2, 28);
this.lblNoTypeChgReason.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.lblNoTypeChgReason.Location = new System.Drawing.Point(3, 34);
this.lblNoTypeChgReason.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNoTypeChgReason.Name = "lblNoTypeChgReason";
this.lblNoTypeChgReason.Size = new System.Drawing.Size(164, 96);
this.lblNoTypeChgReason.Size = new System.Drawing.Size(219, 118);
this.lblNoTypeChgReason.TabIndex = 5;
//
// cbChgAll
//
this.cbChgAll.AutoSize = true;
this.cbChgAll.BackColor = System.Drawing.Color.Transparent;
this.cbChgAll.Location = new System.Drawing.Point(2, 6);
this.cbChgAll.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbChgAll.Location = new System.Drawing.Point(3, 7);
this.cbChgAll.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbChgAll.Name = "cbChgAll";
this.cbChgAll.Size = new System.Drawing.Size(119, 17);
this.cbChgAll.Size = new System.Drawing.Size(153, 21);
this.superTooltipTags.SetSuperTooltip(this.cbChgAll, new DevComponents.DotNetBar.SuperTooltipInfo("Change Step Type - All At Level", "", "When checked, all steps at the level of current step will have their step type ch" +
"anged to the selected type in list below...", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
"anged to the selected type in list below...", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbChgAll.TabIndex = 4;
this.cbChgAll.Text = "Change All At Level";
this.cbChgAll.UseVisualStyleBackColor = false;
//
// listBoxStepTypes
//
this.listBoxStepTypes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listBoxStepTypes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listBoxStepTypes.FormattingEnabled = true;
this.listBoxStepTypes.Location = new System.Drawing.Point(2, 28);
this.listBoxStepTypes.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.listBoxStepTypes.ItemHeight = 16;
this.listBoxStepTypes.Location = new System.Drawing.Point(3, 34);
this.listBoxStepTypes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.listBoxStepTypes.Name = "listBoxStepTypes";
this.listBoxStepTypes.Size = new System.Drawing.Size(164, 95);
this.listBoxStepTypes.Size = new System.Drawing.Size(217, 116);
this.superTooltipTags.SetSuperTooltip(this.listBoxStepTypes, new DevComponents.DotNetBar.SuperTooltipInfo("Possible Step Types", "", "This list allows change of type showing all selections of any possible step type " +
"for the current step.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
"for the current step.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.listBoxStepTypes.TabIndex = 3;
this.listBoxStepTypes.SelectedIndexChanged += new System.EventHandler(this.listBoxStepTypes_SelectedIndexChanged);
//
@ -383,10 +387,10 @@ namespace Volian.Controls.Library
this.groupPanelIncludeOn.Controls.Add(this.cbPlaceKeeper);
this.groupPanelIncludeOn.Controls.Add(this.cbCAS);
this.groupPanelIncludeOn.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelIncludeOn.Location = new System.Drawing.Point(0, 388);
this.groupPanelIncludeOn.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupPanelIncludeOn.Location = new System.Drawing.Point(0, 453);
this.groupPanelIncludeOn.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupPanelIncludeOn.Name = "groupPanelIncludeOn";
this.groupPanelIncludeOn.Size = new System.Drawing.Size(172, 94);
this.groupPanelIncludeOn.Size = new System.Drawing.Size(229, 116);
//
//
//
@ -426,10 +430,10 @@ namespace Volian.Controls.Library
//
//
this.cbPlaceKeeperCont.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.cbPlaceKeeperCont.Location = new System.Drawing.Point(3, 52);
this.cbPlaceKeeperCont.Margin = new System.Windows.Forms.Padding(2);
this.cbPlaceKeeperCont.Location = new System.Drawing.Point(4, 64);
this.cbPlaceKeeperCont.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbPlaceKeeperCont.Name = "cbPlaceKeeperCont";
this.cbPlaceKeeperCont.Size = new System.Drawing.Size(158, 15);
this.cbPlaceKeeperCont.Size = new System.Drawing.Size(183, 17);
this.cbPlaceKeeperCont.TabIndex = 1;
this.cbPlaceKeeperCont.Text = "Placekeeper as Cont Action";
this.cbPlaceKeeperCont.CheckedChanged += new System.EventHandler(this.cbPlaceKeeperCont_CheckedChanged);
@ -442,26 +446,79 @@ namespace Volian.Controls.Library
//
//
this.cbPlaceKeeper.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.cbPlaceKeeper.Location = new System.Drawing.Point(3, 33);
this.cbPlaceKeeper.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbPlaceKeeper.Location = new System.Drawing.Point(4, 41);
this.cbPlaceKeeper.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbPlaceKeeper.Name = "cbPlaceKeeper";
this.cbPlaceKeeper.Size = new System.Drawing.Size(84, 15);
this.cbPlaceKeeper.Size = new System.Drawing.Size(95, 17);
this.cbPlaceKeeper.TabIndex = 1;
this.cbPlaceKeeper.Text = "Placekeeper";
this.cbPlaceKeeper.CheckedChanged += new System.EventHandler(this.cbPlacekeeper_CheckedChanged);
//
// groupPanelWcnTrnResp
//
this.groupPanelWcnTrnResp.BackColor = System.Drawing.Color.Transparent;
this.groupPanelWcnTrnResp.CanvasColor = System.Drawing.SystemColors.Control;
this.groupPanelWcnTrnResp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.groupPanelWcnTrnResp.Controls.Add(this.tbRespons);
this.groupPanelWcnTrnResp.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelWcnTrnResp.Location = new System.Drawing.Point(0, 569);
this.groupPanelWcnTrnResp.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupPanelWcnTrnResp.Name = "groupPanelWcnTrnResp";
this.groupPanelWcnTrnResp.Size = new System.Drawing.Size(229, 138);
//
//
//
this.groupPanelWcnTrnResp.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.groupPanelWcnTrnResp.Style.BackColorGradientAngle = 90;
this.groupPanelWcnTrnResp.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.groupPanelWcnTrnResp.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelWcnTrnResp.Style.BorderBottomWidth = 1;
this.groupPanelWcnTrnResp.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.groupPanelWcnTrnResp.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelWcnTrnResp.Style.BorderLeftWidth = 1;
this.groupPanelWcnTrnResp.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelWcnTrnResp.Style.BorderRightWidth = 1;
this.groupPanelWcnTrnResp.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelWcnTrnResp.Style.BorderTopWidth = 1;
this.groupPanelWcnTrnResp.Style.CornerDiameter = 4;
this.groupPanelWcnTrnResp.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
this.groupPanelWcnTrnResp.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
this.groupPanelWcnTrnResp.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.groupPanelWcnTrnResp.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
//
//
//
this.groupPanelWcnTrnResp.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.groupPanelWcnTrnResp.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPanelWcnTrnResp.TabIndex = 20;
this.groupPanelWcnTrnResp.Text = "Responsibilty";
//
// tbRespons
//
this.tbRespons.Location = new System.Drawing.Point(27, 16);
this.tbRespons.Multiline = true;
this.tbRespons.Name = "tbRespons";
this.tbRespons.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.tbRespons.Size = new System.Drawing.Size(164, 81);
this.tbRespons.TabIndex = 0;
this.tbRespons.Leave += new System.EventHandler(this.tbRespons_Leave);
//
// DisplayTags
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.groupPanelWcnTrnResp);
this.Controls.Add(this.groupPanelIncludeOn);
this.Controls.Add(this.groupPanelPaginate);
this.Controls.Add(this.groupPanelChgBar);
this.Controls.Add(this.groupPanelCheckoff);
this.Controls.Add(this.groupPanelChgStepType);
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "DisplayTags";
this.Size = new System.Drawing.Size(172, 512);
this.Size = new System.Drawing.Size(229, 729);
this.groupPanelPaginate.ResumeLayout(false);
this.groupPanelPaginate.PerformLayout();
this.groupPanelCheckoff.ResumeLayout(false);
@ -471,7 +528,10 @@ namespace Volian.Controls.Library
this.groupPanelChgStepType.PerformLayout();
this.groupPanelIncludeOn.ResumeLayout(false);
this.groupPanelIncludeOn.PerformLayout();
this.groupPanelWcnTrnResp.ResumeLayout(false);
this.groupPanelWcnTrnResp.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
@ -495,5 +555,7 @@ namespace Volian.Controls.Library
private DevComponents.DotNetBar.Controls.CheckBoxX cbPlaceKeeperCont;
private System.Windows.Forms.TextBox tbChgID;
private System.Windows.Forms.Label lblChgId;
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelWcnTrnResp;
private System.Windows.Forms.TextBox tbRespons;
}
}

View File

@ -145,6 +145,7 @@ namespace Volian.Controls.Library
groupPanelPaginate.Style.BackColor = Color.Cornsilk;
groupPanelCheckoff.Style.BackColor = Color.Cornsilk;
groupPanelIncludeOn.Style.BackColor = Color.Cornsilk;
groupPanelWcnTrnResp.Style.BackColor = Color.Cornsilk;
cbPageBreak.Checked = false; // will be set below if HLS & config has it on
cbPlaceKeeper.Checked = false; // will be set below if HLS & config has this set
cbPlaceKeeperCont.Checked = false; // will be set below if substep & config has this set
@ -288,6 +289,13 @@ namespace Volian.Controls.Library
cbChgAll.Enabled = (listBoxStepTypes.Items.Count > 0);
listBoxStepTypes.Visible = (listBoxStepTypes.Items.Count>0);
cbPlaceKeeper.Enabled = MyEditItem.MyItemInfo.CanSetPlacekeeper;
groupPanelWcnTrnResp.Visible = fmtdata.PrintData.WCNTraining && MyEditItem.MyItemInfo.IsHigh;
if (groupPanelWcnTrnResp.Visible)
{
StepConfig sc2 = CurItemInfo.MyConfig as StepConfig;
tbRespons.Text = sc2.Step_Responsibility;
}
_Initalizing = false;
}
private int DoListStepTypes(FormatData fmtdata, StepData topType, string curType)
@ -493,5 +501,27 @@ namespace Volian.Controls.Library
sc.Step_CBOverride = null;
}
}
#region WCNTRN format
// The following supports the Wolf Creek Training format/Responsibility data
// off of the High Level Step
private void tbRespons_Leave(object sender, EventArgs e)
{
// User left responsibilty field. If text changed, then prompt
// to see if save should occur.
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
if (sc == null) return;
bool bothEmpty = (sc.Step_Responsibility == null || sc.Step_Responsibility == "") && (tbRespons.Text == null || tbRespons.Text == "");
if (!bothEmpty && sc.Step_Responsibility != tbRespons.Text)
{
if (MessageBox.Show(this, "Do you want to save the Responsibility Text?", "Confirm Save", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
MyEditItem.SaveContents();
sc.Step_Responsibility = tbRespons.Text; // this actually saves the config
}
else
tbRespons.Text = sc.Step_Responsibility;
}
}
#endregion
}
}