This commit is contained in:
Kathy Ruffing 2008-11-19 13:59:54 +00:00
parent 155000586d
commit b8f6a4df10
5 changed files with 32 additions and 11 deletions

View File

@ -114,7 +114,7 @@ namespace VEPROMS.CSLA.Library
{
get { return MyFormat; }
}
public DynamicTypeDescriptor MyConfig
public ConfigDynamicTypeDescriptor MyConfig
{
get { return DocVersionConfig; }
}
@ -359,7 +359,7 @@ namespace VEPROMS.CSLA.Library
{
get { return MyFormat; }
}
public DynamicTypeDescriptor MyConfig
public ConfigDynamicTypeDescriptor MyConfig
{
get { return Get().DocVersionConfig; }
}

View File

@ -88,7 +88,7 @@ namespace VEPROMS.CSLA.Library
{
get { return MyFormat; }
}
public DynamicTypeDescriptor MyConfig
public ConfigDynamicTypeDescriptor MyConfig
{
get { return FolderConfig; }
}
@ -221,7 +221,7 @@ namespace VEPROMS.CSLA.Library
{
get { return MyFormat; }
}
public DynamicTypeDescriptor MyConfig
public ConfigDynamicTypeDescriptor MyConfig
{
get { return Get().FolderConfig; }
}

View File

@ -91,7 +91,7 @@ namespace VEPROMS.CSLA.Library
{
get { return MyContent.MyFormat; }
}
public DynamicTypeDescriptor MyConfig
public ConfigDynamicTypeDescriptor MyConfig
{
get { return null; }
}
@ -593,7 +593,7 @@ namespace VEPROMS.CSLA.Library
{
get
{
if (((MyContent.Type / 10000) == 2) && ((((int)MyContent.Type) % 10000) == 0)) return true;
if (((MyContent.Type / 10000) == 2) && ((((int)MyContent.Type) % 10000) == 1)) return true;
return false;
}
}
@ -615,6 +615,19 @@ namespace VEPROMS.CSLA.Library
return parent.IsInRNO;
}
}
/// <summary>
/// FormatStepType - Maps to step type in format file. All types map directly from step type in content
/// to step type in format except rno. The '39' is the RNO index in the format file. Note that we
/// could loop through the format's stepdata to find rnotype if we want this to be more flexible?
/// </summary>
public int FormatStepType
{
get
{
if (IsRNO) return 40;
else return (((int)MyContent.Type) % 10000);
}
}
public ItemInfo FirstSibling
{
get
@ -1078,8 +1091,8 @@ namespace VEPROMS.CSLA.Library
{
get { return MyContent.MyFormat; }
}
private DynamicTypeDescriptor _MyConfig=null;
public DynamicTypeDescriptor MyConfig
private ConfigDynamicTypeDescriptor _MyConfig=null;
public ConfigDynamicTypeDescriptor MyConfig
{
get
{
@ -1093,10 +1106,18 @@ namespace VEPROMS.CSLA.Library
case 1:
_MyConfig = new SectionConfig(MyContent.Config);
break;
case 2:
_MyConfig = new StepConfig(MyContent.Config);
break;
}
}
return _MyConfig;
}
set
{
if (_MyConfig == null) return;
// MyContent.Config = value;
}
}
//public bool HasStandardSteps()
//{ return MyContent.ContentItemCount > 1; }
@ -1285,7 +1306,7 @@ namespace VEPROMS.CSLA.Library
public ProcedureConfig ProcedureConfig
{ get { return (_ProcedureConfig != null ? _ProcedureConfig : _ProcedureConfig = new ProcedureConfig(this)); } }
#endregion
public new DynamicTypeDescriptor MyConfig
public new ConfigDynamicTypeDescriptor MyConfig
{
get { return ProcedureConfig ; }
}
@ -1402,7 +1423,7 @@ namespace VEPROMS.CSLA.Library
public SectionConfig SectionConfig
{ get { return (_SectionConfig != null ? _SectionConfig : _SectionConfig = new SectionConfig(this)); } }
#endregion
public new DynamicTypeDescriptor MyConfig
public new ConfigDynamicTypeDescriptor MyConfig
{
get { return SectionConfig; }
}

View File

@ -120,7 +120,7 @@ namespace VEPROMS.CSLA.Library
{
get { return null; }
}
public DynamicTypeDescriptor MyConfig
public ConfigDynamicTypeDescriptor MyConfig
{
get { return null; }
}