예제 #1
0
        public XbrlNodeCollection GetXbrlNodesWithParent(string node)
        {
            XbrlNodeCollection nodes = null;

            MySqlParameter[] parms = new MySqlParameter[] {
                new MySqlParameter("@PARENT_ID", MySqlDbType.VarChar)
            };
            parms[0].Value = string.Format("%{0}%", node);

            //Execute Query
            using (MySqlDataReader rdr = MySqlHelper.ExecuteReader(MySqlHelper.SV_CONN_STRING, SQL_SELECT_XBRL_NODES_PARENT, parms))
            {
                if (rdr.Read())
                {
                    //If there is one result
                    nodes = new XbrlNodeCollection();
                    //Scroll through the results
                    do
                    {
                        nodes.Add(ConvertReaderToXbrlNodeObject(rdr));
                    }while (rdr.Read());
                }
            }

            return(nodes);
        }
        public XbrlNodeCollection GetXbrlNodesWithParent(string node)
        {
            XbrlNodeCollection nodes = null;

            MySqlParameter[] parms = new MySqlParameter[] {
                new MySqlParameter("@PARENT_ID", MySqlDbType.VarChar)
            };
            parms[0].Value = string.Format("%{0}%", node);

            //Execute Query
            using (MySqlDataReader rdr = MySqlHelper.ExecuteReader(MySqlHelper.SV_CONN_STRING, SQL_SELECT_XBRL_NODES_PARENT, parms))
            {
                if (rdr.Read())
                {
                    //If there is one result
                    nodes = new XbrlNodeCollection();
                    //Scroll through the results
                    do
                    {
                        nodes.Add(ConvertReaderToXbrlNodeObject(rdr));
                    }
                    while (rdr.Read());
                }
            }

            return nodes;
        }
예제 #3
0
        public XbrlNodeCollection GetXbrlNodes()
        {
            XbrlNodeCollection nodes = null;

            //Execute Query
            using (MySqlDataReader rdr = MySqlHelper.ExecuteReader(MySqlHelper.SV_CONN_STRING, SQL_SELECT_XBRL_NODES))
            {
                if (rdr.Read())
                {
                    //If there is one result
                    nodes = new XbrlNodeCollection();
                    //Scroll through the results
                    do
                    {
                        nodes.Add(ConvertReaderToXbrlNodeObject(rdr));
                    }while (rdr.Read());
                }
            }

            return(nodes);
        }
        public XbrlNodeCollection GetXbrlNodes()
        {
            XbrlNodeCollection nodes = null;

            //Execute Query
            using (MySqlDataReader rdr = MySqlHelper.ExecuteReader(MySqlHelper.SV_CONN_STRING, SQL_SELECT_XBRL_NODES))
            {
                if (rdr.Read())
                {
                    //If there is one result
                    nodes = new XbrlNodeCollection();
                    //Scroll through the results
                    do
                    {
                        nodes.Add(ConvertReaderToXbrlNodeObject(rdr));
                    }
                    while (rdr.Read());
                }
            }

            return nodes;
        }