com.ferri.service.interfaces
Interface FacturaService

All Known Implementing Classes:
FacturaServiceImpl

public interface FacturaService

Servei de la capa de negoci per les enitats Factura, Pressupost, Estat i Contador(numeració de Factures i Pressupostos).

Author:
dferri

Method Summary
 String createFactura(FacturaSrvInDTO paramFacturaSrvInDTO)
          Crea una instancia Factura
 String createPressupost(PressupostSrvInDTO paramPressupostSrvInDTO)
          Crea una instancia Pressupost
 Boolean deleteFactura(FacturaSrvInDTO paramFacturaSrvInDTO)
          Elimina una instancia Factura
 Boolean deletePressupost(PressupostSrvInDTO paramPressupostSrvInDTO)
          Elimina una instancia Pressupost
 FacturaSrvOutDTO getAllFactura()
          Carrega totes les Factures
 PressupostSrvOutDTO getAllPressupost()
          Carrega tots els Pressupostos
 ConstantsSrvOutDTO getConstants(ConstantsSrvInDTO paramConstantsSrvInDTO)
          Busca sobre Constants amb els criteris informats
 EstatSrvOutDTO getEstat(EstatSrvInDTO paramEstatSrvInDTO)
          Busca sobre Estats amb els criteris informats
 EstatSrvOutDTO getEstatsContracte()
          Carrega tots els Estats de Contracte
 EstatSrvOutDTO getEstatsFactura()
          Carrega tots els Estats de Factura
 EstatSrvOutDTO getEstatsIntervencio()
          Carrega tots els Estats de Intervencio
 EstatSrvOutDTO getEstatsPressupost()
          Carrega tots els Estats de Pressupost
 FacturaSrvOutDTO getFactura(FacturaSrvInDTO paramFacturaSrvInDTO)
          Busca sobre Factures amb els criteris informats
 FacturaSrvOutDTO getFacturasByCriteria(FacturaSrvInDTO paramFacturaSrvInDTO)
          Busca sobre Factures amb els criteris informats
 PressupostSrvOutDTO getPressupost(PressupostSrvInDTO paramPressupostSrvInDTO)
          Busca sobre Pressupostos amb els criteris informats
 PressupostSrvOutDTO getPressupostsByCriteria(PressupostSrvInDTO paramPressupostSrvInDTO)
          Busca sobre Pressupostos amb els criteris informats
 String nextNumeroFactura()
          Crida el següent numero de Factura
 String nextNumeroPressupost()
          Crida el següent numero de Pressupost
 Boolean updateFactura(FacturaSrvInDTO paramFacturaSrvInDTO)
          Actualitza una instancia Factura
 Boolean updatePressupost(PressupostSrvInDTO paramPressupostSrvInDTO)
          Actualitza una instancia Pressupost
 

Method Detail

updateFactura

Boolean updateFactura(FacturaSrvInDTO paramFacturaSrvInDTO)
                      throws CommonServiceException
Actualitza una instancia Factura

Parameters:
paramFacturaSrvInDTO -
Returns:
boolean resultat
Throws:
CommonServiceException

createFactura

String createFactura(FacturaSrvInDTO paramFacturaSrvInDTO)
                     throws CommonServiceException
Crea una instancia Factura

Parameters:
paramFacturaSrvInDTO -
Returns:
String key
Throws:
CommonServiceException

deleteFactura

Boolean deleteFactura(FacturaSrvInDTO paramFacturaSrvInDTO)
                      throws CommonServiceException
Elimina una instancia Factura

Parameters:
paramFacturaSrvInDTO -
Returns:
boolean resultat
Throws:
CommonServiceException

getFactura

FacturaSrvOutDTO getFactura(FacturaSrvInDTO paramFacturaSrvInDTO)
                            throws CommonServiceException
Busca sobre Factures amb els criteris informats

Parameters:
paramFacturaSrvInDTO -
Returns:
FacturaSrvInDTO amb una Factura
Throws:
CommonServiceException

getFacturasByCriteria

FacturaSrvOutDTO getFacturasByCriteria(FacturaSrvInDTO paramFacturaSrvInDTO)
                                       throws CommonServiceException
Busca sobre Factures amb els criteris informats

Parameters:
paramFacturaSrvInDTO -
Returns:
FacturaSrvInDTO amb una llista de Factures
Throws:
CommonServiceException

getAllFactura

FacturaSrvOutDTO getAllFactura()
                               throws CommonServiceException
Carrega totes les Factures

Returns:
FacturaSrvInDTO amb totes les Factures
Throws:
CommonServiceException

updatePressupost

Boolean updatePressupost(PressupostSrvInDTO paramPressupostSrvInDTO)
                         throws CommonServiceException
Actualitza una instancia Pressupost

Parameters:
paramPressupostSrvInDTO -
Returns:
boolean resultat
Throws:
CommonServiceException

createPressupost

String createPressupost(PressupostSrvInDTO paramPressupostSrvInDTO)
                        throws CommonServiceException
Crea una instancia Pressupost

Parameters:
paramPressupostSrvInDTO -
Returns:
String key
Throws:
CommonServiceException

deletePressupost

Boolean deletePressupost(PressupostSrvInDTO paramPressupostSrvInDTO)
                         throws CommonServiceException
Elimina una instancia Pressupost

Parameters:
paramPressupostSrvInDTO -
Returns:
boolean resultat
Throws:
CommonServiceException

getPressupost

PressupostSrvOutDTO getPressupost(PressupostSrvInDTO paramPressupostSrvInDTO)
                                  throws CommonServiceException
Busca sobre Pressupostos amb els criteris informats

Parameters:
paramPressupostSrvInDTO -
Returns:
PressupostSrvInDTO amb un Pressupost
Throws:
CommonServiceException

getPressupostsByCriteria

PressupostSrvOutDTO getPressupostsByCriteria(PressupostSrvInDTO paramPressupostSrvInDTO)
                                             throws CommonServiceException
Busca sobre Pressupostos amb els criteris informats

Parameters:
paramPressupostSrvInDTO -
Returns:
PressupostSrvInDTO amb una llista amb Pressupostos
Throws:
CommonServiceException

getAllPressupost

PressupostSrvOutDTO getAllPressupost()
                                     throws CommonServiceException
Carrega tots els Pressupostos

Returns:
PressupostSrvInDTO amb tots els pressupostos
Throws:
CommonServiceException

getEstat

EstatSrvOutDTO getEstat(EstatSrvInDTO paramEstatSrvInDTO)
                        throws CommonServiceException
Busca sobre Estats amb els criteris informats

Parameters:
paramEstatSrvInDTO -
Returns:
EstatSrvInDTO amb un Estat
Throws:
CommonServiceException

getEstatsFactura

EstatSrvOutDTO getEstatsFactura()
                                throws CommonServiceException
Carrega tots els Estats de Factura

Returns:
EstatSrvInDTO amb tots els Estats de Factura
Throws:
CommonServiceException

getEstatsPressupost

EstatSrvOutDTO getEstatsPressupost()
                                   throws CommonServiceException
Carrega tots els Estats de Pressupost

Returns:
EstatSrvInDTO amb tots els Estats de Pressupost
Throws:
CommonServiceException

getEstatsContracte

EstatSrvOutDTO getEstatsContracte()
                                  throws CommonServiceException
Carrega tots els Estats de Contracte

Returns:
EstatSrvInDTO amb tots els Estats de Contracte
Throws:
CommonServiceException

getEstatsIntervencio

EstatSrvOutDTO getEstatsIntervencio()
                                    throws CommonServiceException
Carrega tots els Estats de Intervencio

Returns:
EstatSrvInDTO amb tots els Estats de Intervencio
Throws:
CommonServiceException

nextNumeroFactura

String nextNumeroFactura()
                         throws CommonServiceException
Crida el següent numero de Factura

Returns:
String amb el següent numero
Throws:
CommonServiceException

nextNumeroPressupost

String nextNumeroPressupost()
                            throws CommonServiceException
Crida el següent numero de Pressupost

Returns:
String amb el següent numero
Throws:
CommonServiceException

getConstants

ConstantsSrvOutDTO getConstants(ConstantsSrvInDTO paramConstantsSrvInDTO)
                                throws CommonServiceException
Busca sobre Constants amb els criteris informats

Parameters:
paramConstantsSrvInDTO -
Returns:
ConstantsSrvInDTO amb una Constant
Throws:
CommonServiceException