This commit is contained in:
parent
4c49f001ac
commit
1ef722b9d4
@ -86,10 +86,12 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
//
|
||||
this.groupPanelMisc.StyleMouseDown.Class = "";
|
||||
this.groupPanelMisc.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelMisc.StyleMouseOver.Class = "";
|
||||
this.groupPanelMisc.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.groupPanelMisc.TabIndex = 11;
|
||||
this.groupPanelMisc.Text = "Miscellaneous";
|
||||
//
|
||||
@ -100,9 +102,10 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
//
|
||||
this.cbCAS.BackgroundStyle.Class = "";
|
||||
this.cbCAS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.cbCAS.Location = new System.Drawing.Point(0, 32);
|
||||
this.cbCAS.Name = "cbCAS";
|
||||
this.cbCAS.Size = new System.Drawing.Size(191, 23);
|
||||
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";
|
||||
@ -115,9 +118,10 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
//
|
||||
this.cbPageBreak.BackgroundStyle.Class = "";
|
||||
this.cbPageBreak.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.cbPageBreak.Location = new System.Drawing.Point(0, 3);
|
||||
this.cbPageBreak.Name = "cbPageBreak";
|
||||
this.cbPageBreak.Size = new System.Drawing.Size(191, 23);
|
||||
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";
|
||||
@ -137,6 +141,7 @@ namespace Volian.Controls.Library
|
||||
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";
|
||||
this.cmbCheckoff.SelectedIndexChanged += new System.EventHandler(this.cmbCheckoff_SelectedIndexChanged);
|
||||
//
|
||||
// groupPanelCheckoff
|
||||
//
|
||||
@ -172,10 +177,12 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
//
|
||||
this.groupPanelCheckoff.StyleMouseDown.Class = "";
|
||||
this.groupPanelCheckoff.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelCheckoff.StyleMouseOver.Class = "";
|
||||
this.groupPanelCheckoff.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.groupPanelCheckoff.TabIndex = 8;
|
||||
this.groupPanelCheckoff.Text = "Signoff / Checkoff";
|
||||
this.groupPanelCheckoff.VisibleChanged += new System.EventHandler(this.groupPanelCheckoff_VisibleChanged);
|
||||
@ -230,10 +237,12 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
//
|
||||
this.groupPanelApplic.StyleMouseDown.Class = "";
|
||||
this.groupPanelApplic.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelApplic.StyleMouseOver.Class = "";
|
||||
this.groupPanelApplic.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.groupPanelApplic.TabIndex = 17;
|
||||
this.groupPanelApplic.Text = "Applicability";
|
||||
this.groupPanelApplic.Visible = false;
|
||||
@ -274,10 +283,12 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
//
|
||||
this.groupPanelChgBar.StyleMouseDown.Class = "";
|
||||
this.groupPanelChgBar.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelChgBar.StyleMouseOver.Class = "";
|
||||
this.groupPanelChgBar.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.groupPanelChgBar.TabIndex = 18;
|
||||
this.groupPanelChgBar.Text = "Change Bar";
|
||||
//
|
||||
@ -345,10 +356,12 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
//
|
||||
this.groupPanelChgStepType.StyleMouseDown.Class = "";
|
||||
this.groupPanelChgStepType.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelChgStepType.StyleMouseOver.Class = "";
|
||||
this.groupPanelChgStepType.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.groupPanelChgStepType.TabIndex = 19;
|
||||
this.groupPanelChgStepType.Text = "Change Step Type";
|
||||
//
|
||||
@ -361,6 +374,7 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
//
|
||||
this.lblNoTypeChgReason.BackgroundStyle.Class = "";
|
||||
this.lblNoTypeChgReason.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.lblNoTypeChgReason.ForeColor = System.Drawing.Color.Red;
|
||||
this.lblNoTypeChgReason.Location = new System.Drawing.Point(3, 35);
|
||||
this.lblNoTypeChgReason.Name = "lblNoTypeChgReason";
|
||||
|
@ -165,14 +165,15 @@ namespace Volian.Controls.Library
|
||||
cbCAS.Checked = sc.Step_CAS;
|
||||
}
|
||||
|
||||
//if (!(fmtdata.ProcData.CheckOffData.CheckOffList == null) && !(fmtdata.ProcData.CheckOffData.CheckOffList.Count == 0))
|
||||
//{
|
||||
// foreach (CheckOff co in fmtdata.ProcData.CheckOffData.CheckOffList)
|
||||
// {
|
||||
// cmbCheckoff.Items.Add(co.RightCheckOffPrompt);
|
||||
// }
|
||||
// if (sc.Step_CheckOffIndex != -1) cmbCheckoff.SelectedIndex = sc.Step_CheckOffIndex;
|
||||
//}
|
||||
if (!(fmtdata.ProcData.CheckOffData.CheckOffList == null) && !(fmtdata.ProcData.CheckOffData.CheckOffList.Count == 0))
|
||||
{
|
||||
cmbCheckoff.Items.Clear();
|
||||
foreach (CheckOff co in fmtdata.ProcData.CheckOffData.CheckOffList)
|
||||
{
|
||||
cmbCheckoff.Items.Add(co.MenuItem);
|
||||
}
|
||||
if (sc.Step_CheckOffIndex != -1) cmbCheckoff.SelectedIndex = sc.Step_CheckOffIndex;
|
||||
}
|
||||
|
||||
// change bar setting depends on whether step has changed (dts) as compared to date/time off the
|
||||
// procedure that it's in.
|
||||
@ -375,6 +376,21 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
private void cmbCheckoff_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (_Initalizing) return;
|
||||
|
||||
// set selected index in the step's config.
|
||||
int indx = cmbCheckoff.SelectedIndex;
|
||||
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||
sc.Step_CheckOffIndex = indx;
|
||||
using (Content cnt = Content.Get(CurItemInfo.MyContent.ContentID))
|
||||
{
|
||||
cnt.DTS = CurItemInfo.MyProcedure.DTS;
|
||||
cnt.UserID = CurItemInfo.MyProcedure.UserID;
|
||||
cnt.Save();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user