Esempio n. 1
0
        /// <summary>
        /// todoComment
        /// </summary>
        /// <param name="cur2"></param>
        /// <param name="order"></param>
        /// <returns></returns>
        protected TRptValue ParseValue(XmlNode cur2, int order)
        {
            XmlNode   cur;
            TRptValue element;

            cur     = cur2;
            element = new TRptValue(order);
            element.strCondition   = StringHelper.CleanString(GetAttribute(cur, "condition"));
            element.strFormat      = StringHelper.CleanString(GetAttribute(cur, "format"));
            element.strFunction    = StringHelper.CleanString(GetAttribute(cur, "function"));
            element.strVariable    = GetAttribute(cur, "variable");
            element.strCalculation = GetAttribute(cur, "calculation");
            element.strText        = GetAttribute(cur, "text");

            if ((element.strText.Length == 0) && (cur.InnerText != null))
            {
                element.strText = StringHelper.CleanString(cur.InnerText);
            }

            return(element);
        }
Esempio n. 2
0
        /// <summary>
        /// todoComment
        /// </summary>
        /// <param name="cur2"></param>
        /// <param name="order"></param>
        /// <returns></returns>
        protected TRptValue ParseValue(XmlNode cur2, int order)
        {
            XmlNode cur;
            TRptValue element;

            cur = cur2;
            element = new TRptValue(order);
            element.strCondition = StringHelper.CleanString(GetAttribute(cur, "condition"));
            element.strFormat = StringHelper.CleanString(GetAttribute(cur, "format"));
            element.strFunction = StringHelper.CleanString(GetAttribute(cur, "function"));
            element.strVariable = GetAttribute(cur, "variable");
            element.strCalculation = GetAttribute(cur, "calculation");
            element.strText = GetAttribute(cur, "text");

            if ((element.strText.Length == 0) && (cur.InnerText != null))
            {
                element.strText = StringHelper.CleanString(cur.InnerText);
            }

            return element;
        }