public static object AJAX_traeCatalogo(string _psClaveCatalogo, long _plLlaveTipoCat)
        {
            nCatalogo nCat = new nCatalogo();

            try
            {
                nCat.ClaveCatalogo = _psClaveCatalogo;
                nCat.LlaveTipoCat  = _plLlaveTipoCat;
                nCat.Catalogos();

                if (nCat.Exception != null)
                {
                    return(nCat.Exception.Message);
                }
                else
                {
                    return(nCat.CatList);
                }
            }
            catch (Exception ex)
            {
                return(ex.Message);
            }
            finally
            {
                nCat = null;
            }
        }
        public static object AJAX_cargaCP(string _pClaveCatalogo)
        {
            nCatalogo nCat = new nCatalogo();



            try
            {
                nCat.ClaveCatalogo = _pClaveCatalogo;
                nCat.Catalogos();

                if (nCat.Exception != null)
                {
                    return(nCat.Exception.Message);
                }
                else
                {
                    return(nCat.CatList);
                }
            }
            catch (Exception ex)
            {
                return(ex.Message);
            }
            finally
            {
                nCat = null;
            }
        }