diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ProcConfig.cs b/PROMS/VEPROMS.CSLA.Library/Config/ProcConfig.cs index 1b2fd9b4..3596eedf 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ProcConfig.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ProcConfig.cs @@ -110,10 +110,14 @@ namespace VEPROMS.CSLA.Library //{ // _Xp = new XMLProperties(); //} - internal string GetValue(string group, string item) + public string GetValue(string group, string item) { return _Xp[group, item]; } + public void SetValue(string group, string item, string newvalue) + { + _Xp[group, item] = newvalue; + } #endregion #region Local Properties [Category("General")] diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index 09e6a15b..89c1ab0b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -681,6 +681,14 @@ namespace VEPROMS.CSLA.Library return _CheckOffData == null? _CheckOffData = new CheckOffData(SelectSingleNode("CheckOffData")):_CheckOffData; } } + private PSI _PSI; + public PSI PSI + { + get + { + return _PSI == null ? _PSI = new PSI(SelectSingleNode("PSI")) : _PSI; + } + } private LazyLoad _TitleLength; public int? TitleLength { @@ -737,14 +745,6 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _CountFoldoutPages, "@CountFoldoutPages"); } } - private LazyLoad _PSInfFile; - public string PSInfFile - { - get - { - return LazyLoad(ref _PSInfFile, "@PSInfFile"); - } - } private LazyLoad _ForeColor; public string ForeColor { @@ -796,6 +796,192 @@ namespace VEPROMS.CSLA.Library public ProcedureSuffixList(XmlNodeList xmlNodeList) : base(xmlNodeList) { } } #endregion + #region PsiAll + [TypeConverter(typeof(ExpandableObjectConverter))] + public class PSI : vlnFormatItem + { + public PSI(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 PsiLabels _LabelList; + public PsiLabels LabelList + { + get + { + return _LabelList == null ? _LabelList = new PsiLabels(SelectNodes("/PlantFormat/FormatData/ProcData/PSI/Label")) : _LabelList; + } + } + private PsiFields _FieldList; + public PsiFields FieldList + { + get + { + return _FieldList == null ? _FieldList = new PsiFields(SelectNodes("/PlantFormat/FormatData/ProcData/PSI/Field")) : _FieldList; + } + } + } + public class PsiLabels : vlnFormatList + { + public PsiLabels(XmlNodeList xmlNodeList) : base(xmlNodeList) { } + } + + public class PsiLabel : vlnFormatItem + { + public PsiLabel(XmlNode xmlNode) : base(xmlNode) { } + public PsiLabel() : base() { } + private LazyLoad _text; + public string text + { + get + { + return LazyLoad(ref _text, "@text"); + } + } + private LazyLoad _Justify; + public string Justify + { + get + { + return LazyLoad(ref _Justify, "@Justify"); + } + } + 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 _width; + public int? width + { + get + { + return LazyLoad(ref _width, "@width"); + } + } + private LazyLoad _height; + public int? height + { + get + { + return LazyLoad(ref _height, "@height"); + } + } + } + public class PsiFields : vlnFormatList + { + public PsiFields(XmlNodeList xmlNodeList) : base(xmlNodeList) { } + } + public class PsiField : vlnFormatItem + { + public PsiField(XmlNode xmlNode) : base(xmlNode) { } + public PsiField() : base() { } + private LazyLoad _name; + public string name + { + get + { + return LazyLoad(ref _name, "@name"); + } + } + private LazyLoad _type; + public string type + { + get + { + return LazyLoad(ref _type, "@type"); + } + } + private LazyLoad _text; + public string text + { + get + { + return LazyLoad(ref _text, "@text"); + } + } + private LazyLoad _Length; + public int? Length + { + get + { + return LazyLoad(ref _Length, "@Length"); + } + } + 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 _width; + public int? width + { + get + { + return LazyLoad(ref _width, "@width"); + } + } + private LazyLoad _height; + public int? height + { + get + { + return LazyLoad(ref _height, "@height"); + } + } + } + #endregion #region CheckOffAll #region CheckOffData [TypeConverter(typeof(ExpandableObjectConverter))]