public static CT_RangePr Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_RangePr ctObj = new CT_RangePr(); if (node.Attributes["autoStart"] != null) ctObj.autoStart = XmlHelper.ReadBool(node.Attributes["autoStart"]); if (node.Attributes["autoEnd"] != null) ctObj.autoEnd = XmlHelper.ReadBool(node.Attributes["autoEnd"]); if (node.Attributes["groupBy"] != null) ctObj.groupBy = (ST_GroupBy)Enum.Parse(typeof(ST_GroupBy), node.Attributes["groupBy"].Value); if (node.Attributes["startNum"] != null) ctObj.startNum = XmlHelper.ReadDouble(node.Attributes["startNum"]); if (node.Attributes["endNum"] != null) ctObj.endNum = XmlHelper.ReadDouble(node.Attributes["endNum"]); if (node.Attributes["startDate"] != null) ctObj.startDate = XmlHelper.ReadDateTime(node.Attributes["startDate"]); if (node.Attributes["endDate"] != null) ctObj.endDate = XmlHelper.ReadDateTime(node.Attributes["endDate"]); if (node.Attributes["groupInterval"] != null) ctObj.groupInterval = XmlHelper.ReadDouble(node.Attributes["groupInterval"]); return ctObj; }
public CT_FieldGroup() { this.groupItemsField = new CT_GroupItems(); this.discretePrField = new CT_DiscretePr(); this.rangePrField = new CT_RangePr(); }