F2024-080 Add Initial Line/Ability to Disable to UI for South Texas #442
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -474,6 +474,25 @@ namespace VEPROMS.CSLA.Library
|
|||||||
OnPropertyChanged("Step_FixedTblForSrch");
|
OnPropertyChanged("Step_FixedTblForSrch");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//CSM F2024-080: For South Texas - Ability to toggle off Initial Line
|
||||||
|
public bool Step_DisableInitialLine
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
string s = _Xp["Step", "DisableInitialLine"];
|
||||||
|
|
||||||
|
if (s == string.Empty) return false;
|
||||||
|
if (s == "True") return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
string s = _Xp["Step", "DisableInitialLine"];
|
||||||
|
if (value.ToString() == s) return;
|
||||||
|
_Xp["Step", "DisableInitialLine"] = value.ToString();
|
||||||
|
OnPropertyChanged("Step_DisableInitialLine");
|
||||||
|
}
|
||||||
|
}
|
||||||
#region RO image sizing
|
#region RO image sizing
|
||||||
// if the RO image (figure) is resized, save it in the step config, not in the ROImageConfig. If stored in ROImageConfig
|
// if the RO image (figure) is resized, save it in the step config, not in the ROImageConfig. If stored in ROImageConfig
|
||||||
// the size is set for ALL uses.
|
// the size is set for ALL uses.
|
||||||
|
@ -4251,6 +4251,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (tbformat.Contains("{!.+?}"))
|
if (tbformat.Contains("{!.+?}"))
|
||||||
tstr = tbformat.Replace("{!.+?}", " "); // Comanche Peak Indented Paragraph
|
tstr = tbformat.Replace("{!.+?}", " "); // Comanche Peak Indented Paragraph
|
||||||
_MyTab.Text = tstr;
|
_MyTab.Text = tstr;
|
||||||
|
//CSM F2024 - 080: For South Texas - if format contains initial line and it is not disabled, show an initial line
|
||||||
|
if (!string.IsNullOrEmpty(FormatStepData.TabData.MacroEditTag) && FormatStepData.TabData.MacroList != null && FormatStepData.TabData.MacroList.Count > 0 && !(this.IsRNOPart && FormatStepData.TabData.MacroList[0].NotInRNO) && !IsInitialLineDisabled)
|
||||||
|
{
|
||||||
|
if (tstr.StartsWith(" "))
|
||||||
|
tstr = tstr.Substring(1);
|
||||||
|
tstr = FormatStepData.TabData.MacroEditTag + tstr;
|
||||||
|
}
|
||||||
_MyTab.CleanText = tstr;
|
_MyTab.CleanText = tstr;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -4341,25 +4348,73 @@ namespace VEPROMS.CSLA.Library
|
|||||||
incSub = (ord + 1).ToString();
|
incSub = (ord + 1).ToString();
|
||||||
if (MyParent.MyTab.CleanText.Trim().EndsWith(")"))
|
if (MyParent.MyTab.CleanText.Trim().EndsWith(")"))
|
||||||
{
|
{
|
||||||
_MyTab.CleanText = MyParent.MyTab.CleanText.Trim() + "." + incSub;
|
//CSM F2024 - 080: For South Texas - if format contains initial line and it is not disabled, show an initial line
|
||||||
|
string tstr = MyParent.MyTab.CleanText.Trim() + "." + incSub;
|
||||||
|
if (!string.IsNullOrEmpty(FormatStepData.TabData.MacroEditTag) && FormatStepData.TabData.MacroList != null && FormatStepData.TabData.MacroList.Count > 0 && !(this.IsRNOPart && FormatStepData.TabData.MacroList[0].NotInRNO) && !IsInitialLineDisabled && !tstr.StartsWith("_"))
|
||||||
|
{
|
||||||
|
if (tstr.StartsWith(" "))
|
||||||
|
tstr = tstr.Substring(1);
|
||||||
|
tstr = FormatStepData.TabData.MacroEditTag + tstr;
|
||||||
|
}
|
||||||
|
else if (IsInitialLineDisabled && tstr.StartsWith("_"))
|
||||||
|
tstr = tstr.Substring(1);
|
||||||
|
|
||||||
|
_MyTab.CleanText = tstr;
|
||||||
_MyTab.Text = _MyTab.CleanText;
|
_MyTab.Text = _MyTab.CleanText;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (MyParent.MyTab.CleanText.Contains(ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB))
|
if (MyParent.MyTab.CleanText.Contains(ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB))
|
||||||
{
|
{
|
||||||
_MyTab.CleanText = MyParent.MyTab.CleanText.Trim() + "." + incSub + " ";
|
//CSM F2024 - 080: For South Texas - if format contains initial line and it is not disabled, show an initial line
|
||||||
|
string tstr = MyParent.MyTab.CleanText.Trim() + "." + incSub + " ";
|
||||||
|
if (!string.IsNullOrEmpty(FormatStepData.TabData.MacroEditTag) && FormatStepData.TabData.MacroList != null && FormatStepData.TabData.MacroList.Count > 0 && !(this.IsRNOPart && FormatStepData.TabData.MacroList[0].NotInRNO) && !IsInitialLineDisabled && !tstr.StartsWith("_"))
|
||||||
|
{
|
||||||
|
if (tstr.StartsWith(" "))
|
||||||
|
tstr = tstr.Substring(1);
|
||||||
|
tstr = FormatStepData.TabData.MacroEditTag + tstr;
|
||||||
|
}
|
||||||
|
else if(IsInitialLineDisabled && tstr.StartsWith("_"))
|
||||||
|
tstr = tstr.Substring(1);
|
||||||
|
|
||||||
|
_MyTab.CleanText = tstr;
|
||||||
_MyTab.Text = _MyTab.CleanText;
|
_MyTab.Text = _MyTab.CleanText;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
string tmprnotab = MyParent.MyTab.CleanText.Substring(0, MyParent.MyTab.CleanText.IndexOf(".") + 1) + incSub;
|
string tmprnotab = MyParent.MyTab.CleanText.Substring(0, MyParent.MyTab.CleanText.IndexOf(".") + 1) + incSub;
|
||||||
_MyTab.CleanText = tmprnotab.TrimStart();
|
//CSM F2024 - 080: For South Texas - if format contains initial line and it is not disabled, show an initial line
|
||||||
_MyTab.Text = tmprnotab.TrimStart();
|
tmprnotab = tmprnotab.TrimStart();
|
||||||
|
if (!string.IsNullOrEmpty(FormatStepData.TabData.MacroEditTag) && FormatStepData.TabData.MacroList != null && FormatStepData.TabData.MacroList.Count > 0 && !(this.IsRNOPart && FormatStepData.TabData.MacroList[0].NotInRNO) && !IsInitialLineDisabled && !tmprnotab.StartsWith("_"))
|
||||||
|
{
|
||||||
|
if (tmprnotab.StartsWith(" "))
|
||||||
|
tmprnotab = tmprnotab.Substring(1);
|
||||||
|
tmprnotab = FormatStepData.TabData.MacroEditTag + tmprnotab;
|
||||||
|
}
|
||||||
|
else if (IsInitialLineDisabled && tmprnotab.StartsWith("_"))
|
||||||
|
tmprnotab = tmprnotab.Substring(1);
|
||||||
|
|
||||||
|
_MyTab.CleanText = tmprnotab;
|
||||||
|
_MyTab.Text = tmprnotab;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((((ItemInfo)ActiveParent).IsHigh && FormatStepData.NumberHighLevel) || ((!((ItemInfo)ActiveParent).IsHigh) && ((tbformat == null || tbformat == "") && (RNOLevel <= ColumnMode))))
|
if ((((ItemInfo)ActiveParent).IsHigh && FormatStepData.NumberHighLevel) || ((!((ItemInfo)ActiveParent).IsHigh) && ((tbformat == null || tbformat == "") && (RNOLevel <= ColumnMode))))
|
||||||
{
|
{
|
||||||
_MyTab.CleanText = ((ItemInfo)ActiveParent).MyTab.CleanText;
|
_MyTab.CleanText = ((ItemInfo)ActiveParent).MyTab.CleanText;
|
||||||
_MyTab.Text = ((ItemInfo)ActiveParent).MyTab.Text;
|
_MyTab.Text = ((ItemInfo)ActiveParent).MyTab.Text;
|
||||||
|
//CSM F2024 - 080: For South Texas - if format contains initial line and it is not disabled, show an initial line
|
||||||
|
if (!string.IsNullOrEmpty(FormatStepData.TabData.MacroEditTag) && FormatStepData.TabData.MacroList != null && FormatStepData.TabData.MacroList.Count > 0 && !(this.IsRNOPart && FormatStepData.TabData.MacroList[0].NotInRNO) && !IsInitialLineDisabled && !_MyTab.CleanText.StartsWith("_"))
|
||||||
|
{
|
||||||
|
if (_MyTab.CleanText.StartsWith(" "))
|
||||||
|
_MyTab.CleanText = _MyTab.CleanText.Substring(1);
|
||||||
|
_MyTab.CleanText = FormatStepData.TabData.MacroEditTag + _MyTab.CleanText;
|
||||||
|
}
|
||||||
|
if (IsInitialLineDisabled && _MyTab.CleanText.StartsWith("_"))
|
||||||
|
{
|
||||||
|
_MyTab.CleanText = _MyTab.CleanText.Substring(1);
|
||||||
|
}
|
||||||
|
if (IsInitialLineDisabled && _MyTab.Text.StartsWith("_"))
|
||||||
|
{
|
||||||
|
_MyTab.Text = _MyTab.Text.Substring(1);
|
||||||
|
}
|
||||||
_MyTab.RNOTabWidthAdjust = ((ItemInfo)ActiveParent).FormatStepData.TabData.RNOAdjustTabSize ?? 0;
|
_MyTab.RNOTabWidthAdjust = ((ItemInfo)ActiveParent).FormatStepData.TabData.RNOAdjustTabSize ?? 0;
|
||||||
if (((ItemInfo)ActiveParent).MyTab.Offset != 0) _MyTab.Offset = ((ItemInfo)ActiveParent).MyTab.Offset;
|
if (((ItemInfo)ActiveParent).MyTab.Offset != 0) _MyTab.Offset = ((ItemInfo)ActiveParent).MyTab.Offset;
|
||||||
if (((ItemInfo)ActiveParent).FormatStepData.TabData.RNOExcludeMacros)
|
if (((ItemInfo)ActiveParent).FormatStepData.TabData.RNOExcludeMacros)
|
||||||
@ -4716,6 +4771,15 @@ namespace VEPROMS.CSLA.Library
|
|||||||
cltext = cltext + " ";
|
cltext = cltext + " ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//CSM F2024 - 080: For South Texas - if format contains initial line and it is not disabled, show an initial line
|
||||||
|
else if (macroindx == -1 && !string.IsNullOrEmpty(FormatStepData.TabData.MacroEditTag) && FormatStepData.TabData.MacroList != null && FormatStepData.TabData.MacroList.Count > 0 && !(this.IsRNOPart && FormatStepData.TabData.MacroList[0].NotInRNO) && !IsInitialLineDisabled)
|
||||||
|
{
|
||||||
|
if (cltext == null)
|
||||||
|
cltext = tbformat;
|
||||||
|
if (cltext.StartsWith(" "))
|
||||||
|
cltext = cltext.Substring(1);
|
||||||
|
cltext = FormatStepData.TabData.MacroEditTag + cltext;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
macroindx = tbformat.IndexOf("{!diamond1}");
|
macroindx = tbformat.IndexOf("{!diamond1}");
|
||||||
if (macroindx > -1) //i found it
|
if (macroindx > -1) //i found it
|
||||||
@ -5520,10 +5584,27 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
if (count <= macro.Grouping) addToList = false;
|
if (count <= macro.Grouping) addToList = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//CSM F2024 - 080: For South Texas - if initial line is disabled for this step, do not add the macro
|
||||||
|
if (macro.Name.ToUpper() == "CHECKOFF" && ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.ShowInitialLineDisable && !string.IsNullOrEmpty(FormatStepData.TabData.MacroEditTag) && FormatStepData.TabData.MacroEditTag == "_" && IsInitialLineDisabled)
|
||||||
|
addToList = false;
|
||||||
|
|
||||||
if (addToList) tmp.Add(macro);
|
if (addToList) tmp.Add(macro);
|
||||||
}
|
}
|
||||||
if (tmp.Count > 0) _MyMacros = tmp;
|
if (tmp.Count > 0) _MyMacros = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//CSM F2024 - 080: For South Texas - check if initial line is disabled for this step
|
||||||
|
public bool IsInitialLineDisabled
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (!IsStep) return false;
|
||||||
|
StepConfig sc = MyConfig as StepConfig;
|
||||||
|
return sc.Step_DisableInitialLine;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
#region UseSmartTemplate
|
#region UseSmartTemplate
|
||||||
|
|
||||||
|
@ -3175,6 +3175,17 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return LazyLoad(ref _ChangeFontUpperCaseIinArial, "@ChangeFontUpperCaseIinArial");
|
return LazyLoad(ref _ChangeFontUpperCaseIinArial, "@ChangeFontUpperCaseIinArial");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// F2024-080 South Texas
|
||||||
|
// Used to show if "Initial Line Disable" checkbox should show in the DisplayTab
|
||||||
|
private LazyLoad<bool> _ShowInitialLineDisable;
|
||||||
|
public bool ShowInitialLineDisable
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return LazyLoad(ref _ShowInitialLineDisable, "@ShowInitialLineDisable");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endregion - StepSectionData
|
#endregion - StepSectionData
|
||||||
#region TextTypeValue
|
#region TextTypeValue
|
||||||
|
@ -34,6 +34,7 @@ namespace Volian.Controls.Library
|
|||||||
this.cbCAS = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
this.cbCAS = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||||
this.cmbCheckoff = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
this.cmbCheckoff = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||||
this.groupPanelCheckoff = new DevComponents.DotNetBar.Controls.GroupPanel();
|
this.groupPanelCheckoff = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||||
|
this.cbInitialLine = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||||
this.groupPanelChgBar = new DevComponents.DotNetBar.Controls.GroupPanel();
|
this.groupPanelChgBar = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||||
this.tbChgID = new System.Windows.Forms.TextBox();
|
this.tbChgID = new System.Windows.Forms.TextBox();
|
||||||
this.lblChgId = new System.Windows.Forms.Label();
|
this.lblChgId = new System.Windows.Forms.Label();
|
||||||
@ -78,7 +79,7 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelPaginate.Controls.Add(this.cbPageBreak);
|
this.groupPanelPaginate.Controls.Add(this.cbPageBreak);
|
||||||
this.groupPanelPaginate.DisabledBackColor = System.Drawing.Color.Empty;
|
this.groupPanelPaginate.DisabledBackColor = System.Drawing.Color.Empty;
|
||||||
this.groupPanelPaginate.Dock = System.Windows.Forms.DockStyle.Top;
|
this.groupPanelPaginate.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
this.groupPanelPaginate.Location = new System.Drawing.Point(0, 330);
|
this.groupPanelPaginate.Location = new System.Drawing.Point(0, 339);
|
||||||
this.groupPanelPaginate.Margin = new System.Windows.Forms.Padding(2);
|
this.groupPanelPaginate.Margin = new System.Windows.Forms.Padding(2);
|
||||||
this.groupPanelPaginate.Name = "groupPanelPaginate";
|
this.groupPanelPaginate.Name = "groupPanelPaginate";
|
||||||
this.groupPanelPaginate.Size = new System.Drawing.Size(202, 58);
|
this.groupPanelPaginate.Size = new System.Drawing.Size(202, 58);
|
||||||
@ -187,13 +188,14 @@ namespace Volian.Controls.Library
|
|||||||
//
|
//
|
||||||
this.groupPanelCheckoff.CanvasColor = System.Drawing.SystemColors.Control;
|
this.groupPanelCheckoff.CanvasColor = System.Drawing.SystemColors.Control;
|
||||||
this.groupPanelCheckoff.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
this.groupPanelCheckoff.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||||
|
this.groupPanelCheckoff.Controls.Add(this.cbInitialLine);
|
||||||
this.groupPanelCheckoff.Controls.Add(this.cmbCheckoff);
|
this.groupPanelCheckoff.Controls.Add(this.cmbCheckoff);
|
||||||
this.groupPanelCheckoff.DisabledBackColor = System.Drawing.Color.Empty;
|
this.groupPanelCheckoff.DisabledBackColor = System.Drawing.Color.Empty;
|
||||||
this.groupPanelCheckoff.Dock = System.Windows.Forms.DockStyle.Top;
|
this.groupPanelCheckoff.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
this.groupPanelCheckoff.Location = new System.Drawing.Point(0, 145);
|
this.groupPanelCheckoff.Location = new System.Drawing.Point(0, 145);
|
||||||
this.groupPanelCheckoff.Margin = new System.Windows.Forms.Padding(2);
|
this.groupPanelCheckoff.Margin = new System.Windows.Forms.Padding(2);
|
||||||
this.groupPanelCheckoff.Name = "groupPanelCheckoff";
|
this.groupPanelCheckoff.Name = "groupPanelCheckoff";
|
||||||
this.groupPanelCheckoff.Size = new System.Drawing.Size(202, 77);
|
this.groupPanelCheckoff.Size = new System.Drawing.Size(202, 86);
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@ -226,6 +228,25 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelCheckoff.Text = "Signoff / Checkoff";
|
this.groupPanelCheckoff.Text = "Signoff / Checkoff";
|
||||||
this.groupPanelCheckoff.VisibleChanged += new System.EventHandler(this.groupPanelCheckoff_VisibleChanged);
|
this.groupPanelCheckoff.VisibleChanged += new System.EventHandler(this.groupPanelCheckoff_VisibleChanged);
|
||||||
//
|
//
|
||||||
|
// cbInitialLine
|
||||||
|
//
|
||||||
|
this.cbInitialLine.AutoSize = true;
|
||||||
|
this.cbInitialLine.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
this.cbInitialLine.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
|
this.cbInitialLine.Location = new System.Drawing.Point(3, 44);
|
||||||
|
this.cbInitialLine.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.cbInitialLine.Name = "cbInitialLine";
|
||||||
|
this.cbInitialLine.Size = new System.Drawing.Size(112, 15);
|
||||||
|
this.superTooltipTags.SetSuperTooltip(this.cbInitialLine, new DevComponents.DotNetBar.SuperTooltipInfo("Manual Page Break", "", "When set, starts this step at the top of a page.\r\n\r\nkeyboard command: <Ctrl><Ente" +
|
||||||
|
"r>", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||||
|
this.cbInitialLine.TabIndex = 1;
|
||||||
|
this.cbInitialLine.Text = "Disable Initial Line";
|
||||||
|
this.cbInitialLine.Visible = false;
|
||||||
|
this.cbInitialLine.CheckedChanged += new System.EventHandler(this.cbInitialLine_CheckedChanged);
|
||||||
|
//
|
||||||
// groupPanelChgBar
|
// groupPanelChgBar
|
||||||
//
|
//
|
||||||
this.groupPanelChgBar.BackColor = System.Drawing.Color.Transparent;
|
this.groupPanelChgBar.BackColor = System.Drawing.Color.Transparent;
|
||||||
@ -237,7 +258,7 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelChgBar.Controls.Add(this.rbChgBarOn);
|
this.groupPanelChgBar.Controls.Add(this.rbChgBarOn);
|
||||||
this.groupPanelChgBar.DisabledBackColor = System.Drawing.Color.Empty;
|
this.groupPanelChgBar.DisabledBackColor = System.Drawing.Color.Empty;
|
||||||
this.groupPanelChgBar.Dock = System.Windows.Forms.DockStyle.Top;
|
this.groupPanelChgBar.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
this.groupPanelChgBar.Location = new System.Drawing.Point(0, 222);
|
this.groupPanelChgBar.Location = new System.Drawing.Point(0, 231);
|
||||||
this.groupPanelChgBar.Margin = new System.Windows.Forms.Padding(2);
|
this.groupPanelChgBar.Margin = new System.Windows.Forms.Padding(2);
|
||||||
this.groupPanelChgBar.Name = "groupPanelChgBar";
|
this.groupPanelChgBar.Name = "groupPanelChgBar";
|
||||||
this.groupPanelChgBar.Size = new System.Drawing.Size(202, 108);
|
this.groupPanelChgBar.Size = new System.Drawing.Size(202, 108);
|
||||||
@ -498,7 +519,7 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelIncludeOn.Controls.Add(this.cbCAS);
|
this.groupPanelIncludeOn.Controls.Add(this.cbCAS);
|
||||||
this.groupPanelIncludeOn.DisabledBackColor = System.Drawing.Color.Empty;
|
this.groupPanelIncludeOn.DisabledBackColor = System.Drawing.Color.Empty;
|
||||||
this.groupPanelIncludeOn.Dock = System.Windows.Forms.DockStyle.Top;
|
this.groupPanelIncludeOn.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
this.groupPanelIncludeOn.Location = new System.Drawing.Point(0, 388);
|
this.groupPanelIncludeOn.Location = new System.Drawing.Point(0, 397);
|
||||||
this.groupPanelIncludeOn.Margin = new System.Windows.Forms.Padding(2);
|
this.groupPanelIncludeOn.Margin = new System.Windows.Forms.Padding(2);
|
||||||
this.groupPanelIncludeOn.Name = "groupPanelIncludeOn";
|
this.groupPanelIncludeOn.Name = "groupPanelIncludeOn";
|
||||||
this.groupPanelIncludeOn.Size = new System.Drawing.Size(202, 121);
|
this.groupPanelIncludeOn.Size = new System.Drawing.Size(202, 121);
|
||||||
@ -541,7 +562,7 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelWcnTrnResp.Controls.Add(this.tbRespons);
|
this.groupPanelWcnTrnResp.Controls.Add(this.tbRespons);
|
||||||
this.groupPanelWcnTrnResp.DisabledBackColor = System.Drawing.Color.Empty;
|
this.groupPanelWcnTrnResp.DisabledBackColor = System.Drawing.Color.Empty;
|
||||||
this.groupPanelWcnTrnResp.Dock = System.Windows.Forms.DockStyle.Top;
|
this.groupPanelWcnTrnResp.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
this.groupPanelWcnTrnResp.Location = new System.Drawing.Point(0, 509);
|
this.groupPanelWcnTrnResp.Location = new System.Drawing.Point(0, 518);
|
||||||
this.groupPanelWcnTrnResp.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
this.groupPanelWcnTrnResp.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
this.groupPanelWcnTrnResp.Name = "groupPanelWcnTrnResp";
|
this.groupPanelWcnTrnResp.Name = "groupPanelWcnTrnResp";
|
||||||
this.groupPanelWcnTrnResp.Size = new System.Drawing.Size(202, 138);
|
this.groupPanelWcnTrnResp.Size = new System.Drawing.Size(202, 138);
|
||||||
@ -600,7 +621,7 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelFigSize.Controls.Add(this.lblFSWidth);
|
this.groupPanelFigSize.Controls.Add(this.lblFSWidth);
|
||||||
this.groupPanelFigSize.DisabledBackColor = System.Drawing.Color.Empty;
|
this.groupPanelFigSize.DisabledBackColor = System.Drawing.Color.Empty;
|
||||||
this.groupPanelFigSize.Dock = System.Windows.Forms.DockStyle.Top;
|
this.groupPanelFigSize.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
this.groupPanelFigSize.Location = new System.Drawing.Point(0, 647);
|
this.groupPanelFigSize.Location = new System.Drawing.Point(0, 656);
|
||||||
this.groupPanelFigSize.Margin = new System.Windows.Forms.Padding(2);
|
this.groupPanelFigSize.Margin = new System.Windows.Forms.Padding(2);
|
||||||
this.groupPanelFigSize.Name = "groupPanelFigSize";
|
this.groupPanelFigSize.Name = "groupPanelFigSize";
|
||||||
this.groupPanelFigSize.Size = new System.Drawing.Size(202, 135);
|
this.groupPanelFigSize.Size = new System.Drawing.Size(202, 135);
|
||||||
@ -724,6 +745,7 @@ namespace Volian.Controls.Library
|
|||||||
this.groupPanelPaginate.ResumeLayout(false);
|
this.groupPanelPaginate.ResumeLayout(false);
|
||||||
this.groupPanelPaginate.PerformLayout();
|
this.groupPanelPaginate.PerformLayout();
|
||||||
this.groupPanelCheckoff.ResumeLayout(false);
|
this.groupPanelCheckoff.ResumeLayout(false);
|
||||||
|
this.groupPanelCheckoff.PerformLayout();
|
||||||
this.groupPanelChgBar.ResumeLayout(false);
|
this.groupPanelChgBar.ResumeLayout(false);
|
||||||
this.groupPanelChgBar.PerformLayout();
|
this.groupPanelChgBar.PerformLayout();
|
||||||
this.groupPanelChgStepType.ResumeLayout(false);
|
this.groupPanelChgStepType.ResumeLayout(false);
|
||||||
@ -772,5 +794,6 @@ namespace Volian.Controls.Library
|
|||||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbPrefPageBreak;
|
private DevComponents.DotNetBar.Controls.CheckBoxX cbPrefPageBreak;
|
||||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbIncludeInTOC;
|
private DevComponents.DotNetBar.Controls.CheckBoxX cbIncludeInTOC;
|
||||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbTCAS;
|
private DevComponents.DotNetBar.Controls.CheckBoxX cbTCAS;
|
||||||
|
private DevComponents.DotNetBar.Controls.CheckBoxX cbInitialLine;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,6 +142,8 @@ namespace Volian.Controls.Library
|
|||||||
tbChgID.Enabled = false;
|
tbChgID.Enabled = false;
|
||||||
lblChgId.Visible = tbChgID.Visible = false;
|
lblChgId.Visible = tbChgID.Visible = false;
|
||||||
CurItemInfo = null;
|
CurItemInfo = null;
|
||||||
|
cbInitialLine.Visible = cbInitialLine.Enabled = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
private bool StepOverRide()
|
private bool StepOverRide()
|
||||||
{
|
{
|
||||||
@ -553,6 +555,16 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//CSM F2024 - 080: For South Texas (HLP formats), enable the initial line checkbox if it is in the formats
|
||||||
|
//Also, they want disable being selected to impact substeps - so do not show toggle if selected on a parent step
|
||||||
|
cbInitialLine.Visible = cbInitialLine.Enabled = false;
|
||||||
|
if (CurItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.ShowInitialLineDisable && !string.IsNullOrEmpty(CurItemInfo.FormatStepData.TabData.MacroEditTag) && CurItemInfo.FormatStepData.TabData.MacroEditTag == "_" && CurItemInfo.FormatStepData.TabData.MacroList != null && CurItemInfo.FormatStepData.TabData.MacroList.Count > 0 && !(CurItemInfo.IsRNOPart && CurItemInfo.FormatStepData.TabData.MacroList[0].NotInRNO))
|
||||||
|
{
|
||||||
|
cbInitialLine.Visible = cbInitialLine.Enabled = true;
|
||||||
|
cbInitialLine.Checked = sc.Step_DisableInitialLine;
|
||||||
|
}
|
||||||
|
|
||||||
_Initalizing = false;
|
_Initalizing = false;
|
||||||
}
|
}
|
||||||
public void SetFigure(double wd, double wd2)
|
public void SetFigure(double wd, double wd2)
|
||||||
@ -969,6 +981,23 @@ namespace Volian.Controls.Library
|
|||||||
sc.Step_PreferredPagebreak = cbPrefPageBreak.Checked;
|
sc.Step_PreferredPagebreak = cbPrefPageBreak.Checked;
|
||||||
MyEditItem.ChangeBarForConfigItemChange = true;
|
MyEditItem.ChangeBarForConfigItemChange = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void cbInitialLine_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (_Initalizing) return;
|
||||||
|
MyEditItem.SaveContents();
|
||||||
|
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||||
|
if (sc == null) return;
|
||||||
|
MyEditItem.ChangeBarForConfigItemChange = false;
|
||||||
|
sc.Step_DisableInitialLine = cbInitialLine.Checked;
|
||||||
|
MyEditItem.ChangeBarForConfigItemChange = true;
|
||||||
|
|
||||||
|
//needed to refresh display changing
|
||||||
|
MyEditItem.RefreshContent();
|
||||||
|
MyEditItem.SetAllTabs();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//private void txbxAltConActSumText_Leave(object sender, EventArgs e)
|
//private void txbxAltConActSumText_Leave(object sender, EventArgs e)
|
||||||
//{
|
//{
|
||||||
// // User left Atlernate Continuous Action Text field. If text changed, then prompt
|
// // User left Atlernate Continuous Action Text field. If text changed, then prompt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user