This commit is contained in:
parent
155000586d
commit
b8f6a4df10
Binary file not shown.
@ -114,7 +114,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
get { return MyFormat; }
|
get { return MyFormat; }
|
||||||
}
|
}
|
||||||
public DynamicTypeDescriptor MyConfig
|
public ConfigDynamicTypeDescriptor MyConfig
|
||||||
{
|
{
|
||||||
get { return DocVersionConfig; }
|
get { return DocVersionConfig; }
|
||||||
}
|
}
|
||||||
@ -359,7 +359,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
get { return MyFormat; }
|
get { return MyFormat; }
|
||||||
}
|
}
|
||||||
public DynamicTypeDescriptor MyConfig
|
public ConfigDynamicTypeDescriptor MyConfig
|
||||||
{
|
{
|
||||||
get { return Get().DocVersionConfig; }
|
get { return Get().DocVersionConfig; }
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
get { return MyFormat; }
|
get { return MyFormat; }
|
||||||
}
|
}
|
||||||
public DynamicTypeDescriptor MyConfig
|
public ConfigDynamicTypeDescriptor MyConfig
|
||||||
{
|
{
|
||||||
get { return FolderConfig; }
|
get { return FolderConfig; }
|
||||||
}
|
}
|
||||||
@ -221,7 +221,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
get { return MyFormat; }
|
get { return MyFormat; }
|
||||||
}
|
}
|
||||||
public DynamicTypeDescriptor MyConfig
|
public ConfigDynamicTypeDescriptor MyConfig
|
||||||
{
|
{
|
||||||
get { return Get().FolderConfig; }
|
get { return Get().FolderConfig; }
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
get { return MyContent.MyFormat; }
|
get { return MyContent.MyFormat; }
|
||||||
}
|
}
|
||||||
public DynamicTypeDescriptor MyConfig
|
public ConfigDynamicTypeDescriptor MyConfig
|
||||||
{
|
{
|
||||||
get { return null; }
|
get { return null; }
|
||||||
}
|
}
|
||||||
@ -593,7 +593,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
get
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -615,6 +615,19 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return parent.IsInRNO;
|
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
|
public ItemInfo FirstSibling
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -1078,8 +1091,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
get { return MyContent.MyFormat; }
|
get { return MyContent.MyFormat; }
|
||||||
}
|
}
|
||||||
private DynamicTypeDescriptor _MyConfig=null;
|
private ConfigDynamicTypeDescriptor _MyConfig=null;
|
||||||
public DynamicTypeDescriptor MyConfig
|
public ConfigDynamicTypeDescriptor MyConfig
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
@ -1093,10 +1106,18 @@ namespace VEPROMS.CSLA.Library
|
|||||||
case 1:
|
case 1:
|
||||||
_MyConfig = new SectionConfig(MyContent.Config);
|
_MyConfig = new SectionConfig(MyContent.Config);
|
||||||
break;
|
break;
|
||||||
|
case 2:
|
||||||
|
_MyConfig = new StepConfig(MyContent.Config);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return _MyConfig;
|
return _MyConfig;
|
||||||
}
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (_MyConfig == null) return;
|
||||||
|
// MyContent.Config = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//public bool HasStandardSteps()
|
//public bool HasStandardSteps()
|
||||||
//{ return MyContent.ContentItemCount > 1; }
|
//{ return MyContent.ContentItemCount > 1; }
|
||||||
@ -1285,7 +1306,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
public ProcedureConfig ProcedureConfig
|
public ProcedureConfig ProcedureConfig
|
||||||
{ get { return (_ProcedureConfig != null ? _ProcedureConfig : _ProcedureConfig = new ProcedureConfig(this)); } }
|
{ get { return (_ProcedureConfig != null ? _ProcedureConfig : _ProcedureConfig = new ProcedureConfig(this)); } }
|
||||||
#endregion
|
#endregion
|
||||||
public new DynamicTypeDescriptor MyConfig
|
public new ConfigDynamicTypeDescriptor MyConfig
|
||||||
{
|
{
|
||||||
get { return ProcedureConfig ; }
|
get { return ProcedureConfig ; }
|
||||||
}
|
}
|
||||||
@ -1402,7 +1423,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
public SectionConfig SectionConfig
|
public SectionConfig SectionConfig
|
||||||
{ get { return (_SectionConfig != null ? _SectionConfig : _SectionConfig = new SectionConfig(this)); } }
|
{ get { return (_SectionConfig != null ? _SectionConfig : _SectionConfig = new SectionConfig(this)); } }
|
||||||
#endregion
|
#endregion
|
||||||
public new DynamicTypeDescriptor MyConfig
|
public new ConfigDynamicTypeDescriptor MyConfig
|
||||||
{
|
{
|
||||||
get { return SectionConfig; }
|
get { return SectionConfig; }
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
get { return null; }
|
get { return null; }
|
||||||
}
|
}
|
||||||
public DynamicTypeDescriptor MyConfig
|
public ConfigDynamicTypeDescriptor MyConfig
|
||||||
{
|
{
|
||||||
get { return null; }
|
get { return null; }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user