Пример #1
0
        /// <summary>
        /// Return all data from table Zone
        /// </summary>
        /// <returns></returns>
        public DataTable dtGetAllZone()
        {
            DataTable dtAllZo;

            Class.Catalogos.CatZone clsCatZone = new Class.Catalogos.CatZone();
            clsCatZone.intActivo = 1;
            dtAllZo = clsCatZone.GetAllZone();

            return(dtAllZo);
        }
Пример #2
0
        /// <summary>
        /// Function to return all datat from table Zone filtering by division
        /// </summary>
        /// <param name="strDivision"></param>
        /// <returns></returns>
        public DataTable dtGetZoneByDivision(string strDivision)
        {
            Class.Catalogos.CatZone clsCatZone = new Class.Catalogos.CatZone();
            DataTable dtZBD;

            clsCatZone.intActivo   = 1;
            clsCatZone.strDivision = strDivision;
            if (strDivision == "-- TODOS --")
            {
                dtZBD = clsCatZone.GetAllZone();
            }
            else
            {
                dtZBD = clsCatZone.GetAllZoneByDivision();
            }
            return(dtZBD);
        }