public List <CXP_016_Info> GetList(int IdEmpresa, string IdUsuario, bool MostrarSaldo0, DateTime FechaIni, DateTime FechaFin) { try { List <CXP_016_Info> Lista; FechaIni = FechaIni.Date; FechaFin = FechaFin.Date; using (Entities_reportes db = new Entities_reportes()) { Lista = db.SPCXP_016(IdEmpresa, IdUsuario, MostrarSaldo0, FechaIni, FechaFin).Select(q => new CXP_016_Info { IdEmpresa = q.IdEmpresa, IdSucursal = q.IdSucursal, IdProveedor = q.IdProveedor, IdUsuario = q.IdUsuario, Su_Descripcion = q.Su_Descripcion, pe_CedulaRuc = q.pe_CedulaRuc, pe_nombreCompleto = q.pe_nombreCompleto, SaldoInicial = q.SaldoInicial, Compra = q.Compra, Retenciones = q.Retenciones, Pagos = q.Pagos, Saldo = q.Saldo }).ToList(); } return(Lista); } catch (Exception) { throw; } }