B2020-007: default step section setting/unsetting
This commit is contained in:
@@ -3659,7 +3659,7 @@ namespace VEPROMS.CSLA.Library
|
||||
item._IsDeleted = true;
|
||||
}
|
||||
}
|
||||
private ConfigDynamicTypeDescriptor _MyConfig = null;
|
||||
public ConfigDynamicTypeDescriptor _MyConfig = null;
|
||||
public ConfigDynamicTypeDescriptor MyConfig
|
||||
{
|
||||
get
|
||||
@@ -3696,8 +3696,16 @@ namespace VEPROMS.CSLA.Library
|
||||
string key = ItemID.ToString();
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(key))
|
||||
{
|
||||
foreach (ItemInfo tmpInfo in _CacheByPrimaryKey[key])
|
||||
{
|
||||
tmpInfo.MyConfig = null;
|
||||
// B2020-007: 'refresh' (by making null so get reset) Procedure, Section and Step configs also.
|
||||
if (tmpInfo is ProcedureInfo) (tmpInfo as ProcedureInfo)._ProcedureConfig = null;
|
||||
if (tmpInfo is SectionInfo) (tmpInfo as SectionInfo)._SectionConfig = null;
|
||||
if (tmpInfo is StepInfo) (tmpInfo as StepInfo)._StepConfig = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
public EnhancedDocuments GetMyEnhancedDocuments()
|
||||
{
|
||||
@@ -7674,7 +7682,7 @@ namespace VEPROMS.CSLA.Library
|
||||
|
||||
#region SectionConfig
|
||||
[NonSerialized]
|
||||
private SectionConfig _SectionConfig;
|
||||
public SectionConfig _SectionConfig;
|
||||
public SectionConfig SectionConfig
|
||||
{ get { return (_SectionConfig != null ? _SectionConfig : _SectionConfig = new SectionConfig(this)); } }
|
||||
#endregion
|
||||
@@ -7747,7 +7755,7 @@ namespace VEPROMS.CSLA.Library
|
||||
public partial class StepInfo : ItemInfo
|
||||
{
|
||||
#region StepConfig
|
||||
private StepConfig _StepConfig;
|
||||
public StepConfig _StepConfig;
|
||||
public StepConfig StepConfig
|
||||
{ get { return (_StepConfig != null ? _StepConfig : _StepConfig = new StepConfig(this)); } }
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user