CSLA - Format, Minimal, VEObject

This commit is contained in:
2026-09-01 08:30:06 -04:00
parent dab65dbfb6
commit dc5d547449
15 changed files with 2423 additions and 6420 deletions
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Xml;
using System.Linq;
@@ -32,54 +31,27 @@ namespace VEPROMS.CSLA.Library
private LazyLoad<string> _Name;
[DisplayName("Name")]
[Description("EP Viewer File Name")]
public string Name
{
get
{
return LazyLoad(ref _Name, "@Name");
}
}
public string Name => LazyLoad(ref _Name, "@Name");
// Name of the EP Viewer Format File
private LazyLoad<string> _Description;
[DisplayName("Description")]
[Description("EP Viewer Description")]
public string Description
{
get
{
return LazyLoad(ref _Description, "@Description");
}
}
public string Description => LazyLoad(ref _Description, "@Description");
// Id of Annotation Type Associated with this file
private LazyLoad<int?> _AnnotationTypeID;
[DisplayName("AnnotationTypeID")]
[Description("Id of Annotation Type Associated with this file")]
public int? AnnotationTypeID
{
get
{
return LazyLoad(ref _AnnotationTypeID, "@AnnotationTypeID");
}
}
public int? AnnotationTypeID => LazyLoad(ref _AnnotationTypeID, "@AnnotationTypeID");
// Return Name of Annotation that EP Format File is Attached to
public string AnnotationName()
{
return AnnotationTypeInfo.Get((int) AnnotationTypeID).Name;
}
public string AnnotationName() => AnnotationTypeInfo.Get((int)AnnotationTypeID).Name;
//if xml value is blank, should element export?
//defaults to true
private LazyLoad<bool> _exportblank;
[DisplayName("exportblank")]
[Description("if xml value is blank, should element export?")]
public bool exportblank
{
get
{
return LazyLoad(ref _exportblank, "@exportblank");
}
}
public bool exportblank => LazyLoad(ref _exportblank, "@exportblank");
// returns a list of fields that are defined in the EP format's structure
private EPFields _FieldList;
public EPFields FieldList
@@ -141,8 +113,10 @@ namespace VEPROMS.CSLA.Library
{
if (dr.Read())
{
XmlDocument xd = new XmlDocument();
xd.XmlResolver = null;
XmlDocument xd = new XmlDocument
{
XmlResolver = null
};
xd.LoadXml(dr.GetString("Data"));
return xd;
}
@@ -255,21 +229,9 @@ namespace VEPROMS.CSLA.Library
public EPField(XmlNode xmlNode) : base(xmlNode) { }
public EPField() : base() { }
private LazyLoad<string> _name;
public string name
{
get
{
return LazyLoad(ref _name, "@name");
}
}
public string name => LazyLoad(ref _name, "@name");
private LazyLoad<string> _type;
public string type
{
get
{
return LazyLoad(ref _type, "@type");
}
}
public string type => LazyLoad(ref _type, "@type");
private LazyLoad<string> _label;
public string label
{
@@ -284,22 +246,10 @@ namespace VEPROMS.CSLA.Library
}
}
private LazyLoad<string> _text;
public string text
{
get
{
return LazyLoad(ref _text, "@text");
}
}
public string text => LazyLoad(ref _text, "@text");
//roid of group item that individual sub-items will be the choices for the list/combobox for ROSINGLE and ROMULTI
private LazyLoad<string> _rosource;
public string rosource
{
get
{
return LazyLoad(ref _rosource, "@rosource");
}
}
public string rosource => LazyLoad(ref _rosource, "@rosource");
//the columns in the RO that will be included in the exports
private LazyLoad<string> _returncols;
public List<string> returncols()