Beispiel #1
0
        public vLCO CSDValidar(string cadena)
        {
            vLCO result;

            try
            {
                using (DescargasSatEntities db = new DescargasSatEntities())
                {
                    result = db.vLCO.FirstOrDefault((vLCO p) => p.noCertificado == cadena);
                }
            }
            catch (Exception ee_A1)
            {
                result = null;
            }
            return(result);
        }
Beispiel #2
0
        public vLCO SearchLCOByRFC(string rfc)
        {
            vLCO result;

            try
            {
                using (DescargasSatEntities db = new DescargasSatEntities())
                {
                    vLCO lco = db.vLCO.FirstOrDefault((vLCO p) => p.Rfc == rfc);
                    result = lco;
                }
            }
            catch (Exception ee_A4)
            {
                result = null;
            }
            return(result);
        }
Beispiel #3
0
        public vI_RFC Consultar_IRFC(string rfc)
        {
            vI_RFC result;

            try
            {
                using (DescargasSatEntities db = new DescargasSatEntities())
                {
                    vI_RFC tabla = db.vI_RFC.FirstOrDefault((vI_RFC p) => p.RFC == rfc);
                    result = tabla;
                }
            }
            catch (Exception ex_A4)
            {
                result = null;
            }
            return(result);
        }
Beispiel #4
0
        public vLCO SearchLCOByNoCertificado(string noCertificado)
        {
            vLCO result;

            try
            {
                using (DescargasSatEntities db = new DescargasSatEntities())
                {
                    vLCO lco = db.vLCO.FirstOrDefault((vLCO p) => p.noCertificado == noCertificado);
                    result = lco;
                }
            }
            catch (Exception ee_A4)
            {
                result = null;
            }
            return(result);
        }
Beispiel #5
0
        public vLCO RFCValidezObligacionesAll(string rfc)
        {
            vLCO result;

            try
            {
                using (DescargasSatEntities db = new DescargasSatEntities())
                {
                    vLCO lco = db.vLCO.FirstOrDefault((vLCO p) => p.Rfc == rfc);
                    result = lco;
                }
            }
            catch (Exception ee_E02)
            {
                result = null;
            }
            return(result);
        }