Наследование: System.Collections.Specialized.NameObjectCollectionBase
Пример #1
0
 public void setGroups(cReportGroups rhs)
 {
     m_groups = rhs;
 }
Пример #2
0
        public bool moveGroup(int from, int to)
        {
            if (from < 1 || from > m_groups.count())
            {
                return false;
            }
            if (to < 1 || to > m_groups.count())
            {
                return false;
            }

            if (from != to)
            {

                cReportGroup group = null;
                cReportGroups collGroups = new cReportGroups();

                for (int _i = 0; _i < m_groups.count(); _i++)
                {
                    group = m_groups.item(_i);
                    collGroups.add(group, group.getKey());
                }

                m_groups.clear();

                int index = 0;

                for (int _i = 0; _i < collGroups.count(); _i++)
                {
                    group = collGroups.item(_i);
                    index = index + 1;
                    if (index != from)
                    {
                        if (index == to)
                        {
                            cReportGroup group2 = collGroups.item(from);
                            m_groups.add2(group2, group2.getKey());
                        }
                        m_groups.add2(group, group.getKey());
                    }
                }
            }
            return true;
        }
Пример #3
0
        public cReport()
        {
            try
            {
                m_headers = new cReportSections();
                m_details = new cReportSections();
                m_footers = new cReportSections();
                m_groups = new cReportGroups();
                m_groupsHeaders = getGroups().getGroupsHeaders();
                m_groupsFooters = getGroups().getGroupsFooters();
                m_paperInfo = new cReportPaperInfo();
                m_controls = new cReportControls2();
                m_formulas = new cReportFormulas();
                m_formulaTypes = new cReportFormulaTypes();
                m_connect = new cReportConnect();
                m_pageSetting = new cReportPageSettings();
                m_pages = new cReportPages();

                m_compiler = new cReportCompiler();

                setConnectsAux(new cReportConnectsAux());

                m_details.setCopyColl(m_controls);
                m_headers.setCopyColl(m_controls);
                m_footers.setCopyColl(m_controls);
                m_groupsHeaders.setCopyColl(m_controls);
                m_groupsFooters.setCopyColl(m_controls);

                m_details.setTypeSection(csRptSectionType.DETAIL);
                m_headers.setTypeSection(csRptSectionType.HEADER);
                m_footers.setTypeSection(csRptSectionType.FOOTER);
                m_groupsHeaders.setTypeSection(csRptSectionType.GROUP_HEADER);
                m_groupsFooters.setTypeSection(csRptSectionType.GROUP_FOOTER);

                m_details.setMainTypeSection(csRptSectionType.MAIN_DETAIL);
                m_headers.setMainTypeSection(csRptSectionType.MAIN_HEADER);
                m_footers.setMainTypeSection(csRptSectionType.MAIN_FOOTER);
            }
            catch (Exception ex)
            {
                cError.mngError(ex, "Class_Initialize", C_MODULE, "");
            }
        }