public cReportPageInfo add(
            cReportSectionLine sectionLine,
            cReportPageInfo c,
            String key)
        {
            try
            {
                if (c == null)
                {
                    c = new cReportPageInfo();
                }
                if (key == "")
                {
                    key = cReportGlobals.getNextKey().ToString();
                }

                key = cReportGlobals.getKey(key);
                Add(key, c);
                c.setSectionLine(sectionLine);
                return(c);
            }
            catch
            {
                return(null);
            }
        }
Beispiel #2
0
        internal bool load(CSXml.cXml xDoc, XmlNode nodeObj)
        {
            m_objectID = new cReportPageID();
            m_info     = new cReportPageInfo();

            m_value   = xDoc.getNodeProperty(nodeObj, "Value").getValueString(eTypes.eText);
            m_visible = xDoc.getNodeProperty(nodeObj, "Visible").getValueBool(eTypes.eBoolean);
            m_top     = xDoc.getNodeProperty(nodeObj, "Top").getValueInt(eTypes.eLong);
            m_height  = xDoc.getNodeProperty(nodeObj, "Height").getValueInt(eTypes.eLong);
            m_width   = xDoc.getNodeProperty(nodeObj, "Width").getValueInt(eTypes.eLong);

            XmlNode nodeObjAux = null;

            nodeObjAux = nodeObj;
            if (!m_objectID.load(xDoc, nodeObjAux))
            {
                return(false);
            }
            nodeObjAux = nodeObj;
            if (!m_info.load(xDoc, nodeObjAux))
            {
                return(false);
            }

            return(true);
        }
        public cReportPageInfo add(
            cReportSectionLine sectionLine,
            cReportPageInfo c,
            String key)
        {
            try
            {
                if (c == null) 
                { 
                    c = new cReportPageInfo(); 
                }
                if (key == "")
                {
                    key = cReportGlobals.getNextKey().ToString();
                }

                key = cReportGlobals.getKey(key);
                Add(key, c);
                c.setSectionLine(sectionLine);
                return c;
            }
            catch
            {
                return null;
            }
        }
Beispiel #4
0
 public void setInfo(cReportPageInfo rhs)
 {
     m_info = rhs;
 }
 public void setInfo(cReportPageInfo rhs)
 {
     m_info = rhs;
 }
        internal bool load(CSXml.cXml xDoc, XmlNode nodeObj)
        {
            m_objectID = new cReportPageID();
            m_info = new cReportPageInfo();

            m_value = xDoc.getNodeProperty(nodeObj, "Value").getValueString(eTypes.eText);
            m_visible = xDoc.getNodeProperty(nodeObj, "Visible").getValueBool(eTypes.eBoolean);
            m_top = xDoc.getNodeProperty(nodeObj, "Top").getValueInt(eTypes.eLong);
            m_height = xDoc.getNodeProperty(nodeObj, "Height").getValueInt(eTypes.eLong);
            m_width = xDoc.getNodeProperty(nodeObj, "Width").getValueInt(eTypes.eLong);

            XmlNode nodeObjAux = null;
            nodeObjAux = nodeObj;
            if (!m_objectID.load(xDoc, nodeObjAux)) 
            { 
                return false; 
            }
            nodeObjAux = nodeObj;
            if (!m_info.load(xDoc, nodeObjAux)) 
            { 
                return false; 
            }

            return true;
        }