コード例 #1
0
        //public System.Collections.Generic.List<Entidades.EntidadRecuperaClientes> recuperarTodosRegs(ref string strError, string Aplicacion)
        //{
        //    System.Collections.Generic.List<masMobile.mipyme.ENTIDADES.EntidadListaImpuestos> list1;

        //    System.Collections.Generic.List<masMobile.mipyme.ENTIDADES.EntidadListaImpuestos> list = new System.Collections.Generic.List<masMobile.mipyme.ENTIDADES.EntidadListaImpuestos>();
        //    try
        //    {
        //        masMobile.mipyme.DAL.listaImpuestos listaImpuestos = new masMobile.mipyme.DAL.listaImpuestos();
        //        list = listaImpuestos.consultarListaImpuestos(ref strError, Aplicacion);
        //        list1 = list;
        //    }
        //    catch (System.Exception e)
        //    {
        //        string s = strError + "Pila: " + e.InnerException.ToString();
        //        strError = strError + "Pila: " + e.InnerException.ToString();
        //        throw new System.Exception(s);
        //    }
        //    return list1;
        //}



        public int enviaDatos(whusa.EntidadRecuperaClientes parametrosIn, ref string strError, string Aplicacion)
        {
            int retorno = -1;

            try
            {
                DAL.clientesApp dal = new DAL.clientesApp();

                retorno = dal.enviarDatos(ref parametrosIn);
                return(retorno);
            }
            catch (Exception ex)
            {
                throw new Exception(strError += "Pila: " + ex.InnerException.ToString());
            }
        }
コード例 #2
0
        public DataTable listaClientes()
        {
            //int retorno = -1;
            DataTable retorno;

            try
            {
                DAL.clientesApp dal = new DAL.clientesApp();

                retorno = dal.listaClientes();
                return(retorno);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.InnerException.ToString());
            }
        }