Examples of Mastro


Examples of it.pdor.contabilita.domain.hbm.Mastro

  }

  public void cambiaMastro(long codiceMastro) {
    try {
      Long codiceGruppo = getMovimentoContabile().getPianoDeiConti().getCodiceGruppo();
      Mastro mastro = controllaMastroValido(codiceGruppo, codiceMastro);
      cambiaMastro(mastro);
    } catch (MovimentoNonValidoException e) {
      alertMsgPopup.setMessage(e.getAlertMsg());
      alertMsgPopup.openPopup();
    }
View Full Code Here

Examples of it.pdor.contabilita.domain.hbm.Mastro

  private Mastro controllaMastroValido(Long codiceGruppo, long codiceMastro) throws MovimentoNonValidoException {
    try {
      if (codiceGruppo == null)
        throw new MovimentoNonValidoException("AlertMsgGruppoNonValido");
      Mastro mastro = contabilitaFacade.leggiMastro(codiceGruppo, codiceMastro);
      if (mastro == null)
        throw new MovimentoNonValidoException("AlertMsgMastroNonValido");
      return mastro;
    } catch (ContabilitaException e) {
      log.debug(e.getMessage(),e);
View Full Code Here

Examples of it.pdor.contabilita.domain.hbm.Mastro

   * @throws Exception
   */
  private String getDescrizioneMastro(Long codiceGruppo, Long codiceMastro) throws Exception {
    String descrMastro = "";
    try {
      Mastro tmpMastro = contabilitaFacade.leggiMastro(codiceGruppo, codiceMastro);
      if (tmpMastro != null) {
        descrMastro = tmpMastro.getDescrizioneMastro();
      } else
        throw new Exception(getMessageBundle().getMessage("ErroreDescrizioneMastro"));
    } catch (ContabilitaException e) {
      e.printStackTrace();
      throw new Exception(getMessageBundle().getMessage("ErroreDescrizioneMastro"));
View Full Code Here

Examples of it.pdor.contabilita.domain.hbm.Mastro

  }

  public void cambiaMastroDa(long codiceMastro) {
    try {
      Long codiceGruppo = getPianoDeiContiDa().getCodiceGruppo();
      Mastro mastro = controllaMastroValido(codiceGruppo, codiceMastro);
      if (mastro != null)
        getPianoDeiContiDa().setCodiceMastro(mastro.getCodiceMastro());
      else
        getPianoDeiContiA().setCodiceMastro(codiceMastro);
      getPianoDeiContiDa().setCodiceConto(null);
    } catch (MovimentoNonValidoException e) {
      alertMsgPopup.setMessage(e.getAlertMsg());
View Full Code Here

Examples of it.pdor.contabilita.domain.hbm.Mastro

  }

  public void cambiaMastroA(long codiceMastro) {
    try {
      Long codiceGruppo = getPianoDeiContiA().getCodiceGruppo();
      Mastro mastro = controllaMastroValido(codiceGruppo, codiceMastro);
      if (mastro != null)
        getPianoDeiContiA().setCodiceMastro(mastro.getCodiceMastro());
      else
        getPianoDeiContiA().setCodiceMastro(codiceMastro);
      getPianoDeiContiA().setCodiceConto(null);
    } catch (MovimentoNonValidoException e) {
      alertMsgPopup.setMessage(e.getAlertMsg());
View Full Code Here

Examples of it.pdor.contabilita.domain.hbm.Mastro

  private Mastro controllaMastroValido(Long codiceGruppo, long codiceMastro) throws MovimentoNonValidoException {
    try {
      if (codiceGruppo == null)
        throw new MovimentoNonValidoException("AlertMsgGruppoNonValido");
      Mastro mastro = contabilitaFacade.leggiMastro(codiceGruppo, codiceMastro);
      return mastro;
    } catch (ContabilitaException e) {
      log.debug(e.getMessage(), e);
      throw new MovimentoNonValidoException("AlertMsgMastroNonValido");
    }
View Full Code Here

Examples of it.pdor.contabilita.domain.hbm.Mastro

      conto = conti.get(0);
    }
    if (conto.getDataFineValidita() != null && conto.getDataFineValidita().before(dataRegistrazione))
      throw new ContoNonPiuAttivoException(pianoDeiConti);

    Mastro mastro = contabilitaDao.leggiMastro(pianoDeiConti.getCodiceGruppo(), pianoDeiConti.getCodiceMastro());

    String flagPartitario = mastro.getFlagPartitario();
    if (flagPartitario == null || "".equals(flagPartitario)) {
      flagPartitario = "N";
    }
    if (!"N".equals(flagPartitario) && !"C".equals(flagPartitario) && !"S".equals(flagPartitario) && !"M".equals(flagPartitario)
        && !"F".equals(flagPartitario)) {
      throw new TipoPartitarioNonPrevistoException(flagPartitario);
    }

    flagSoggetto = mastro.getTipoConto();

    flagFinanziamento = mastro.getFlagCodFinanziamento() != null ? mastro.getFlagCodFinanziamento() : "N";
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.