public bool bTieneConsumosPE(int nCodPE)
    {
        bool bConsumos;

        try
        {
            bConsumos = EstrProy.ExistenConsumosPE(null, nCodPE);
        }
        catch (Exception)
        {
            bConsumos = false;
        }
        return(bConsumos);
    }
Beispiel #2
0
        //public string bTieneConsumosPE(short nCodCr, int nCodPE)
        public string bTieneConsumosPE(int nCodPE)
        {
            string strReturn = "0";

            try
            {
                //bool bConsumos = EstrProy.ExistenConsumosPE(null, nCodCr, nCodPE);
                bool bConsumos = EstrProy.ExistenConsumosPE(null, nCodPE);
                if (bConsumos)
                {
                    strReturn = "1";
                }
            }
            catch (Exception)
            {
                strReturn = "Error";
            }

            return(strReturn);
        }