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

            cur     = cur2;
            element = new TRptQuery(order);
            element.strCondition = StringHelper.CleanString(GetAttribute(cur, "condition"));
            cur = NextNotBlank(cur.FirstChild);
            rg  = ParseGroup(cur, ref report.valuesId, "value", out cur);

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

            rg = ParseGroup(cur, ref report.parametersId, "parameter", out cur);

            if (rg != null)
            {
                element.rptGrpParameter = ((List <TRptParameter>)rg);
            }

            rg = ParseGroup(cur, ref report.switchesId, "switch", out cur);

            if (rg != null)
            {
                element.rptGrpSwitch = ((List <TRptSwitch>)rg);
            }

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

            cur = cur2;
            element = new TRptQuery(order);
            element.strCondition = StringHelper.CleanString(GetAttribute(cur, "condition"));
            cur = NextNotBlank(cur.FirstChild);
            rg = ParseGroup(cur, ref report.valuesId, "value", out cur);

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

            rg = ParseGroup(cur, ref report.parametersId, "parameter", out cur);

            if (rg != null)
            {
                element.rptGrpParameter = ((List <TRptParameter> )rg);
            }

            rg = ParseGroup(cur, ref report.switchesId, "switch", out cur);

            if (rg != null)
            {
                element.rptGrpSwitch = ((List <TRptSwitch> )rg);
            }

            return element;
        }