count() публичный Метод

public count ( ) : int
Результат int
Пример #1
0
        internal bool save(CSXml.cXml xDoc, XmlNode nodeFather)
        {
            CSXml.cXmlProperty xProperty = null;
            XmlNode            nodeObj   = null;

            xProperty = new CSXml.cXmlProperty();

            xProperty.setName(m_key);
            nodeObj = xDoc.addNodeToNode(nodeFather, xProperty);

            xProperty.setName("Name");
            xProperty.setValue(eTypes.eText, m_name);
            xDoc.addPropertyToNode(nodeObj, xProperty);

            xProperty.setName("Key");
            xProperty.setValue(eTypes.eText, m_key);
            xDoc.addPropertyToNode(nodeObj, xProperty);

            // TODO: fix me - this is Spanish - English bug we should use Index
            //
            xProperty.setName("Indice");
            xProperty.setValue(eTypes.eInteger, m_index);
            xDoc.addPropertyToNode(nodeObj, xProperty);

            xProperty.setName("TypeSection");
            xProperty.setValue(eTypes.eInteger, getTypeSection());
            xDoc.addPropertyToNode(nodeObj, xProperty);

            xProperty.setName("HasFormulaHide");
            xProperty.setValue(eTypes.eBoolean, m_hasFormulaHide);
            xDoc.addPropertyToNode(nodeObj, xProperty);

            if (!m_aspect.save(xDoc, nodeObj))
            {
                return(false);
            }
            if (!m_formulaHide.save(xDoc, nodeObj))
            {
                return(false);
            }

            xProperty.setName(C_NODERPTSECTIONLINES);
            xProperty.setValue(eTypes.eText, "");
            nodeObj = xDoc.addNodeToNode(nodeObj, xProperty);

            cReportSectionLine seccLn = null;

            for (int _i = 0; _i < m_sectionLines.count(); _i++)
            {
                seccLn = m_sectionLines.item(_i);
                seccLn.save(xDoc, nodeObj);
            }

            return(true);
        }
Пример #2
0
        private float pGetMinBottomWithSecLn(cReportSectionLines secLns, float minBottom) { 
            int i = 0;

            for (i = 1; i <= secLns.count() - 1; i++) {
                minBottom = minBottom + secLns.item(i).getAspect().getHeight();
            }

            return minBottom;
        }
Пример #3
0
        private void pSetGroupsInCtrlFormulaHideAux(cReportSectionLines scls, int idxGrop)
        { // TODO: Use of ByRef founded Private Sub pSetGroupsInCtrlFormulaHideAux(ByRef Scls As cReportSectionLines, ByVal IdxGrop As Integer)
            cReportSectionLine scl = null;
            cReportControl ctrl = null;

            for (int _i = 0; _i < scls.count(); _i++)
            {
                scl = scls.item(_i);
                for (int _j = 0; _j < scl.getControls().count(); _j++)
                {
                    ctrl = scl.getControls().item(_j);
                    if (ctrl.getHasFormulaHide())
                    {
                        if (ctrl.getFormulaHide().getIdxGroup() == 0)
                        {
                            ctrl.getFormulaHide().setIdxGroup(idxGrop);
                        }
                    }
                }
            }
        }