This commit is contained in:
@@ -62,6 +62,15 @@ namespace VEPROMS
|
||||
// also disable if there is no word content yet - the user may want to change from step type to
|
||||
// word type, as long as there is no content yet.
|
||||
if (ii.HasStepContent || !ii.HasWordContent) tcpLibDoc.Enabled = false;
|
||||
|
||||
// if this section has subsections, show the editable data check box. If showing 'editable data',
|
||||
// the procedures steps are shown in editor (tree view & editor) & printed before any subsections.
|
||||
// If not showing 'editable data', the steps are not shown in editor or print.
|
||||
ppCbEditableData.Enabled = _SectionConfig.MySection.MySectionInfo.Sections != null && _SectionConfig.MySection.MySectionInfo.Sections.Count > 1; // subsection.hassections?
|
||||
|
||||
// Check for the print section num/title config item to determine whether that checkbox should
|
||||
// be checked.
|
||||
ppCbPrnSecNumTitle.Checked = _SectionConfig.SubSection_PH != "N";
|
||||
}
|
||||
|
||||
private void btnSectPropOK_Click(object sender, EventArgs e)
|
||||
@@ -242,6 +251,9 @@ namespace VEPROMS
|
||||
// set up some of the format tab:
|
||||
SetupPpCmbxSectionType();
|
||||
ShowAvailableOptionsForSectionType();
|
||||
|
||||
// set the section level configs:
|
||||
ppCbEditableData.Checked = !(_SectionConfig.SubSection_Edit == "N");
|
||||
_Initializing = false;
|
||||
}
|
||||
|
||||
@@ -382,7 +394,7 @@ namespace VEPROMS
|
||||
if (_isStepSection)
|
||||
SetupCheckoffsDropdowns();
|
||||
}
|
||||
|
||||
private List<CheckOff> SectionPropertyCheckOffList = null;
|
||||
private void SetupCheckoffsDropdowns()
|
||||
{
|
||||
if (!_isStepSection) return; // not needed for accessory pages (word attachments)
|
||||
@@ -393,15 +405,22 @@ namespace VEPROMS
|
||||
CheckOffHeaderList chkoffHeaderList = pf.FormatData.ProcData.CheckOffData.CheckOffHeaderList;
|
||||
if (chkoffList != null && chkoffList.Count > 0)
|
||||
{
|
||||
if (SectionPropertyCheckOffList!=null)SectionPropertyCheckOffList.Clear();
|
||||
SectionPropertyCheckOffList = new List<CheckOff>();
|
||||
// Don't put up the first item in the chkoffList, it is '{Section Default}'.
|
||||
for (int i = 1; i < chkoffList.Count; i++)
|
||||
{
|
||||
SectionPropertyCheckOffList.Add(chkoffList[i]);
|
||||
}
|
||||
ppGpbxSignoffCheckoff.Enabled = true;
|
||||
ppCmbxCheckoffType.DataSource = chkoffList;
|
||||
ppCmbxCheckoffType.SelectedIndex = _SectionConfig.Section_CheckoffListSelection;
|
||||
ppCmbxCheckoffType.DataSource = SectionPropertyCheckOffList;
|
||||
ppCmbxCheckoffType.SelectedIndex = _SectionConfig.Section_CheckoffListSelection-1;
|
||||
}
|
||||
else
|
||||
{
|
||||
ppGpbxSignoffCheckoff.Enabled = false;
|
||||
}
|
||||
if (chkoffHeaderList != null && chkoffHeaderList.Count > 0)
|
||||
if (chkoffHeaderList != null && chkoffHeaderList.Count > 1)
|
||||
{
|
||||
lblCheckoffHeading.Enabled = true;
|
||||
ppCmbxCheckoffHeading.Enabled = true;
|
||||
@@ -770,6 +789,20 @@ namespace VEPROMS
|
||||
ppSectNumberStpRTB.Focus();
|
||||
}
|
||||
|
||||
private void ppCbEditableData_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool isEditable = ppCbEditableData.Checked;
|
||||
if (!_Initializing)
|
||||
_SectionConfig.SubSection_Edit = isEditable ? "Y" : "N";
|
||||
}
|
||||
|
||||
private void ppCbPrnSecNumTitle_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
bool isEditable = ppCbPrnSecNumTitle.Checked;
|
||||
if (!_Initializing)
|
||||
_SectionConfig.SubSection_PH = isEditable ? "Y" : "N";
|
||||
}
|
||||
|
||||
//private void ppBtnDefaultPrintSize_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// // Get the parent setting
|
||||
|
Reference in New Issue
Block a user