From af470cb08b90fafc13099d9a04476b09f33e90d7 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 14 May 2015 14:39:43 +0000 Subject: [PATCH] Folder/DocVersion Specific Info & Sign-off flag --- .../Format/PlantFormat.cs | 111 +++++++++++++++--- 1 file changed, 95 insertions(+), 16 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index e2325cf9..39c30d05 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -179,6 +179,22 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _Name, "@Name"); } } + private LazyLoad _SpecificInfo; + public bool SpecificInfo + { + get + { + return LazyLoad(ref _SpecificInfo, "@SpecificInfo"); + } + } + private SI _SI; + public SI SI + { + get + { + return _SI == null ? _SI = new SI(SelectSingleNode("SI")) : _SI; + } + } // TPL represents Templates which are sizes of columns for 'table' type data. If the format // has the 'UseSmartTemplate' format flag, this table will have starting location & widths, and // other data for the listed step types. Data from this table overrides width data as specified @@ -1064,32 +1080,32 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _ButtonsOnBottom, "@ButtonsOnBottom"); } } - private PsiLabels _LabelList; - public PsiLabels LabelList + private SILabels _LabelList; + public SILabels LabelList { get { - return _LabelList == null ? _LabelList = new PsiLabels(SelectNodes("/PlantFormat/FormatData/ProcData/PSI/Label")) : _LabelList; + return _LabelList == null ? _LabelList = new SILabels(SelectNodes("/PlantFormat/FormatData/ProcData/PSI/Label")) : _LabelList; } } - private PsiFields _FieldList; - public PsiFields FieldList + private SIFields _FieldList; + public SIFields FieldList { get { - return _FieldList == null ? _FieldList = new PsiFields(SelectNodes("/PlantFormat/FormatData/ProcData/PSI/Field")) : _FieldList; + return _FieldList == null ? _FieldList = new SIFields(SelectNodes("/PlantFormat/FormatData/ProcData/PSI/Field")) : _FieldList; } } } - public class PsiLabels : vlnFormatList + public class SILabels : vlnFormatList { - public PsiLabels(XmlNodeList xmlNodeList) : base(xmlNodeList) { } + public SILabels(XmlNodeList xmlNodeList) : base(xmlNodeList) { } } - public class PsiLabel : vlnFormatItem + public class SILabel : vlnFormatItem { - public PsiLabel(XmlNode xmlNode) : base(xmlNode) { } - public PsiLabel() : base() { } + public SILabel(XmlNode xmlNode) : base(xmlNode) { } + public SILabel() : base() { } private LazyLoad _text; public string text { @@ -1139,14 +1155,14 @@ namespace VEPROMS.CSLA.Library } } } - public class PsiFields : vlnFormatList + public class SIFields : vlnFormatList { - public PsiFields(XmlNodeList xmlNodeList) : base(xmlNodeList) { } + public SIFields(XmlNodeList xmlNodeList) : base(xmlNodeList) { } } - public class PsiField : vlnFormatItem + public class SIField : vlnFormatItem { - public PsiField(XmlNode xmlNode) : base(xmlNode) { } - public PsiField() : base() { } + public SIField(XmlNode xmlNode) : base(xmlNode) { } + public SIField() : base() { } private LazyLoad _name; public string name { @@ -1213,6 +1229,61 @@ namespace VEPROMS.CSLA.Library } } #endregion + #region SIAll + [TypeConverter(typeof(ExpandableObjectConverter))] + public class SI : vlnFormatItem + { + public SI(XmlNode xmlNode) : base(xmlNode) { } + private LazyLoad _x; + public int? x + { + get + { + return LazyLoad(ref _x, "@x"); + } + } + private LazyLoad _y; + public int? y + { + get + { + return LazyLoad(ref _y, "@y"); + } + } + private LazyLoad _Caption; + public string Caption + { + get + { + return LazyLoad(ref _Caption, "@Caption"); + } + } + private LazyLoad _ButtonsOnBottom; // change to bool + public string ButtonsOnBottom + { + get + { + return LazyLoad(ref _ButtonsOnBottom, "@ButtonsOnBottom"); + } + } + private SILabels _LabelList; + public SILabels LabelList + { + get + { + return _LabelList == null ? _LabelList = new SILabels(SelectNodes("/PlantFormat/FormatData/SI/Label")) : _LabelList; + } + } + private SIFields _FieldList; + public SIFields FieldList + { + get + { + return _FieldList == null ? _FieldList = new SIFields(SelectNodes("/PlantFormat/FormatData/SI/Field")) : _FieldList; + } + } + } + #endregion #region CheckOffAll #region CheckOffData [TypeConverter(typeof(ExpandableObjectConverter))] @@ -1448,6 +1519,14 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _NotOnEmpty, "@NotOnEmpty"); } } + private LazyLoad _DropCheckOff; + public bool DropCheckOff + { + get + { + return LazyLoad(ref _DropCheckOff, "@DropCheckOff"); + } + } public override string GetPDDisplayName() { return string.Format("[{0}]",Index); } public override string GetPDDescription()