Ejemplo n.º 1
0
        /// <summary>
        /// todoComment
        /// </summary>
        /// <param name="cur2"></param>
        /// <param name="order"></param>
        /// <returns></returns>
        protected TRptFieldDetail ParseFieldDetail(XmlNode cur2, int order)
        {
            XmlNode         cur;
            Object          rg;
            Object          r;
            TRptFieldDetail element;

            cur     = cur2;
            element = new TRptFieldDetail(order);
            element.strCondition = StringHelper.CleanString(GetAttribute(cur, "condition"));
            cur = NextNotBlank(cur.FirstChild);
            r   = Parse(cur, ref report.switchesId, "switch");

            if (r != null)
            {
                element.rptSwitch = ((TRptSwitch)r);
            }
            else
            {
                r = Parse(cur, ref report.switchesId, "if");

                if (r != null)
                {
                    element.rptSwitch = ((TRptSwitch)r);
                }
            }

            rg = ParseGroup(cur, ref report.valuesId, "value", out cur);

            if (rg != null)
            {
                element.rptGrpValue = ((List <TRptValue>)rg);
            }

            return(element);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// todoComment
        /// </summary>
        /// <param name="cur2"></param>
        /// <param name="order"></param>
        /// <returns></returns>
        protected TRptFieldDetail ParseFieldDetail(XmlNode cur2, int order)
        {
            XmlNode cur;
            Object rg;
            Object r;
            TRptFieldDetail element;

            cur = cur2;
            element = new TRptFieldDetail(order);
            element.strCondition = StringHelper.CleanString(GetAttribute(cur, "condition"));
            cur = NextNotBlank(cur.FirstChild);
            r = Parse(cur, ref report.switchesId, "switch");

            if (r != null)
            {
                element.rptSwitch = ((TRptSwitch)r);
            }
            else
            {
                r = Parse(cur, ref report.switchesId, "if");

                if (r != null)
                {
                    element.rptSwitch = ((TRptSwitch)r);
                }
            }

            rg = ParseGroup(cur, ref report.valuesId, "value", out cur);

            if (rg != null)
            {
                element.rptGrpValue = ((List <TRptValue> )rg);
            }

            return element;
        }