Advertisement
Guest User

depositoService

a guest
Sep 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package snp.gob.bo.gimodel.servicio;
  7.  
  8. import java.math.BigDecimal;
  9. import java.util.Date;
  10. import java.util.List;
  11. import java.util.Map;
  12. import javax.sql.DataSource;
  13. import snp.gob.bo.gimodel.entidad.Deposito;
  14. import snp.gob.bo.gimodel.entidad.Recibo;
  15. import snp.gob.bo.gimodel.entidad.ReciboDeposito;
  16. import snp.gob.bo.gimodel.entidad.Tasa;
  17. import snp.gob.bo.gimodel.entidad.Usuario;
  18.  
  19. /**
  20. *
  21. * @author Chano Rojas
  22. * @see ReciboService
  23. * @see ReciboService
  24. * @version 1.0, 05/06/2016
  25. */
  26. public interface DepositoService {
  27.  
  28. /**
  29. * Método que permite setear la conexion con dataSource
  30. *
  31. * @param dataSource
  32. * @throws java.lang.Exception
  33. */
  34. public void setDataSource(DataSource dataSource) throws Exception;
  35.  
  36. /**
  37. * Método que permite setear la conexion con dataSource
  38. *
  39. * @param dataSource
  40. * @throws java.lang.Exception
  41. */
  42. /**
  43. * Método que permite setear la conexion con dataSource
  44. *
  45. * @param deposito
  46. * @param parametro
  47. * @return
  48. * @throws java.lang.Exception
  49. */
  50. Deposito crudDeposito(Deposito deposito, int parametro) throws Exception;
  51.  
  52. /**
  53. * Método que permite listar la tabla Dosificacion
  54. *
  55. * @param deposito
  56. * @param parametro
  57. * @return
  58. * @throws java.lang.Exception
  59. */
  60. List<Deposito> lstDeposito(Deposito deposito, int parametro) throws Exception;
  61.  
  62. List<Deposito> listaDepositoConSaldoPorUSuario(Usuario usuario) throws Exception;
  63.  
  64. List<Deposito> listaDepositoConSaldoPorUSuarioSaldo(Usuario usuario);
  65.  
  66. List<Deposito> listaDepositoConSaldo();
  67.  
  68. BigDecimal actualizaSaldoDepositoPorTasa(Tasa tasa, Deposito deposito);
  69.  
  70. BigDecimal actualizaSaldoDepositoModificar(Recibo rec, Deposito depos);
  71.  
  72. ReciboDeposito encuentrareciboDepositoPorIdreciboyIdDeposito(Recibo rec, Deposito deposito);
  73.  
  74. List<Deposito> generalistaDepositosConSaldo(List<Deposito> listaDepositos);
  75.  
  76. /**
  77. *
  78. * @param recibo
  79. * @return
  80. * @throws Exception
  81. */
  82. String encuentraDepositantePorRecibo(Recibo recibo) throws Exception;
  83.  
  84. String encuentraFechaDespositoPorRecibo(Recibo recibo) throws Exception;
  85.  
  86. String encuentraCodigoDepositoPorRecibo(Recibo recibo) throws Exception;
  87.  
  88. String encuentraDepositosPorRecibo(Recibo recibo) throws Exception;
  89.  
  90. List<Deposito> depositosPorRecibo(Recibo recibo) throws Exception;
  91.  
  92. int encuentraPosicionDeposito(Deposito deposito, List<Deposito> lstdeposito) throws Exception;
  93.  
  94. Boolean depositoParaModificarEliminar(Deposito deposito) throws Exception;
  95.  
  96. Deposito depositoPorIdDeposto(Long idDeposito);
  97.  
  98. /**
  99. * Método que permite listar la tabla Deposito de acuerdo al id de recibo
  100. *
  101. * @author Ruben Ramirez
  102. * @version 1.0, 14/12/2016
  103. * @see DepositoServiceImpl
  104. * @param recibo
  105. * @return
  106. * @throws java.lang.Exception
  107. */
  108. List<Deposito> listaDepositosPorRecibo(Recibo recibo) throws Exception;
  109.  
  110. /**
  111. * Método que permite listar la tabla Deposito de acuerdo a un rango de
  112. * fechas determninada.
  113. *
  114. * @author Ruben Ramirez
  115. * @version 1.0, 16/12/2016
  116. * @param ini
  117. * @param fin
  118. * @see DepositoServiceImpl
  119. * @return
  120. * @throws java.lang.Exception
  121. */
  122. List<Deposito> listaDepositosPorRangoDeFechas(Date ini, Date fin) throws Exception;
  123.  
  124. /**
  125. * Método que permite listar la tabla Deposito de acuerdo a un rango de
  126. * fechas determninada y por id usuario.
  127. *
  128. * @author Ruben Ramirez
  129. * @version 1.0, 07/04/2017
  130. * @param ini
  131. * @param fin
  132. * @param idUsuario
  133. * @see DepositoServiceImpl
  134. * @return
  135. * @throws java.lang.Exception
  136. */
  137. List<Deposito> listaDepositosPorRangoDeFechasPorIdUsuario(Date ini, Date fin, Long idUsuario) throws Exception;
  138.  
  139. /**
  140. * Método que permite listar la tabla Deposito de acuerdo a un rango de
  141. * fechas determninada y por id reginal.
  142. *
  143. * @author Ruben Ramirez
  144. * @version 1.0, 07/04/2017
  145. * @param ini
  146. * @param fin
  147. * @param idRegional
  148. * @see DepositoServiceImpl
  149. * @return
  150. * @throws java.lang.Exception
  151. */
  152. List<Deposito> listaDepositosPorRangoDeFechasPorIdRegional(Date ini, Date fin, Long idRegional) throws Exception;
  153.  
  154. /**
  155. * Método que permite listar la tabla Deposito de acuerdo a un rango de
  156. * fechas determninada y por deps_cod_dep (agencia).
  157. *
  158. * @author Ruben Ramirez
  159. * @version 1.0, 07/04/2017
  160. * @param ini
  161. * @param fin
  162. * @param agencia
  163. * @see DepositoServiceImpl
  164. * @return
  165. * @throws java.lang.Exception
  166. */
  167. List<Deposito> listaDepositosPorRangoDeFechasPorAgencia(Date ini, Date fin, Integer agencia) throws Exception;
  168.  
  169. /**
  170. * Método que permite obtener el total del monto en un rango de fechas
  171. * determinadas.
  172. *
  173. * @author Ruben Ramirez
  174. * @version 1.0, 16/12/2016
  175. * @param ini
  176. * @param fin
  177. * @see DepositoServiceImpl
  178. * @return
  179. * @throws java.lang.Exception
  180. */
  181. BigDecimal totalMontoPorRangoDeFechas(Date ini, Date fin) throws Exception;
  182.  
  183. /**
  184. * Método que permite obtener el total del monto en un rango de fechas
  185. * determinadas.
  186. *
  187. * @author Ruben Ramirez
  188. * @version 1.0, 16/12/2016
  189. * @param deposito
  190. * @see DepositoServiceImpl
  191. * @return
  192. */
  193. Boolean validaNumeroDeposito(Deposito deposito);
  194.  
  195. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement