B2019-100: UCF check off & check off header issues
This commit is contained in:
parent
c6f615bceb
commit
2b74bd52ab
@ -775,6 +775,10 @@ namespace VEPROMS
|
||||
lblCheckoffHeading.Enabled = true;
|
||||
ppCmbxCheckoffHeading.Enabled = true;
|
||||
ppCmbxCheckoffHeading.DataSource = chkoffHeaderList;
|
||||
// B2019-100: the checkoffselection may be larger than number in the list if elements of list were made inactive from UCF. Adjust as necessary:
|
||||
if (_SectionConfig.Section_CheckoffHeaderSelection >= ppCmbxCheckoffHeading.Items.Count)
|
||||
ppCmbxCheckoffHeading.SelectedIndex = -1;
|
||||
else
|
||||
ppCmbxCheckoffHeading.SelectedIndex = _SectionConfig.Section_CheckoffHeaderSelection;
|
||||
}
|
||||
else
|
||||
|
@ -1672,8 +1672,8 @@ namespace VEPROMS.CSLA.Library
|
||||
if (!MyFormat.PlantFormat.FormatData.ProcData.CheckOffUCF || fc==null)
|
||||
{
|
||||
_CheckOffList = new CheckOffList(SelectNodes("CheckOffList/CheckOff"), MyFormat);
|
||||
// If Ignoring the UCF data, just return the entire list. Also, return entire list if there is no UCF data (fc == null)
|
||||
if (!PlantFormat.IgnoreUCF || fc == null) return _CheckOffList;
|
||||
// B2019-100: If Ignoring the UCF data, just return the entire list. Also, return entire list if there is no UCF data (fc == null)
|
||||
if (PlantFormat.IgnoreUCF || fc == null) return _CheckOffList;
|
||||
// If not ignoring UCF settings, only return those that are active
|
||||
foreach (FormatConfig.CheckOff co in fc.PlantFormat.FormatData.CheckOffList)
|
||||
{
|
||||
|
@ -87,10 +87,11 @@ namespace Volian.Base.Library
|
||||
ResetValue(propertyGrid.SelectedGridItem.Parent.Value, "PageLength");
|
||||
else if (SelectedGridField.Contains("WindowsFont"))
|
||||
ResetValue(propertyGrid.SelectedGridItem.Parent.Value, "WindowsFont");
|
||||
else if (SelectedGridField.Contains("Inactive CheckOff Header"))
|
||||
ResetValue(propertyGrid.SelectedGridItem.Parent.Value, "Inactive");
|
||||
else if (SelectedGridField.Contains("Inactive CheckOff"))
|
||||
ResetValue(propertyGrid.SelectedGridItem.Parent.Parent.Value, "Inactive");
|
||||
// B2019-100: for headers, use Parent's parent and also for both header & checkoffs the field name is 'Active' (not 'Inactive')
|
||||
else if (SelectedGridField.Contains("Active CheckOff Header"))
|
||||
ResetValue(propertyGrid.SelectedGridItem.Parent.Parent.Value, "Active");
|
||||
else if (SelectedGridField.Contains("Active CheckOff"))
|
||||
ResetValue(propertyGrid.SelectedGridItem.Parent.Parent.Value, "Active");
|
||||
}
|
||||
private void ShowReflection(Object data)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user