コード例 #1
0
 /// <summary>
 /// constructor
 /// </summary>
 public TRptLevel(int order)
 {
     rptGrpHeaderField  = null;
     rptGrpHeaderSwitch = null;
     rptGrpFooterField  = null;
     rptGrpFooterSwitch = null;
     rptDetail          = null;
 }
コード例 #2
0
ファイル: Parser.cs プロジェクト: jsuen123/openpetragit
        /// <summary>
        /// todoComment
        /// </summary>
        /// <param name="cur2"></param>
        /// <param name="order"></param>
        /// <returns></returns>
        protected TRptDetail ParseDetail(XmlNode cur2, int order)
        {
            XmlNode    cur;
            Object     rg;
            Object     r;
            TRptDetail element;

            cur     = cur2;
            element = new TRptDetail(order);
            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.lowerReportsId, "lowerLevelReport");

            if (rg != null)
            {
                element.rptGrpLowerLevel = ((List <TRptLowerLevel>)rg);
            }

            rg = ParseGroup(cur, ref report.fieldsId, "field", out cur);

            if (rg != null)
            {
                element.rptGrpField = ((List <TRptField>)rg);
            }

            return(element);
        }
コード例 #3
0
ファイル: Parser.cs プロジェクト: Davincier/openpetra
        /// <summary>
        /// todoComment
        /// </summary>
        /// <param name="cur2"></param>
        /// <param name="order"></param>
        /// <returns></returns>
        protected TRptDetail ParseDetail(XmlNode cur2, int order)
        {
            XmlNode cur;
            Object rg;
            Object r;
            TRptDetail element;

            cur = cur2;
            element = new TRptDetail(order);
            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.lowerReportsId, "lowerLevelReport");

            if (rg != null)
            {
                element.rptGrpLowerLevel = ((List <TRptLowerLevel> )rg);
            }

            rg = ParseGroup(cur, ref report.fieldsId, "field", out cur);

            if (rg != null)
            {
                element.rptGrpField = ((List <TRptField> )rg);
            }

            return element;
        }
コード例 #4
0
ファイル: Store.cs プロジェクト: Davincier/openpetra
 /// <summary>
 /// constructor
 /// </summary>
 public TRptLevel(int order)
 {
     rptGrpHeaderField = null;
     rptGrpHeaderSwitch = null;
     rptGrpFooterField = null;
     rptGrpFooterSwitch = null;
     rptDetail = null;
 }