예제 #1
0
 public String getColonnaDomRimbAggreg() {
   if (this.progressivoDomRimbAggreg != null && this.dataChiusuraDomRimbAggreg != null) {
     String sData = Util.getStringFromDate(this.dataChiusuraDomRimbAggreg, "dd/MM/yyyy");
     return this.progressivoDomRimbAggreg + "-" + sData;
   } else return "";
 }
예제 #2
0
 public String getColonnaDocSpesa() {
   if (!Util.isEmpty(this.numeroDocSpesa) && (!Util.isEmptyDate(this.dataDocSpesa))) {
     String sDataDocSpesa = Util.getStringFromDate(this.dataDocSpesa, "dd/MM/yyyy");
     return this.numeroDocSpesa + "-" + sDataDocSpesa;
   } else return "";
 }
예제 #3
0
 public String getColonnaDichSpesa() {
   if (this.progressivoDichiarazSpesa != null && this.dataChiusuraDichiarazSpesa != null) {
     String sData = Util.getStringFromDate(this.dataChiusuraDichiarazSpesa, "dd/MM/yyyy");
     return this.progressivoDichiarazSpesa + "-" + sData;
   } else return "";
 }
예제 #4
0
 public String getColonnaDomDiPagamento() {
   if (this.progressivoDomandaPagam != null && this.dataChiusuraDomandaPagam != null) {
     String sData = Util.getStringFromDate(this.dataChiusuraDomandaPagam, "dd/MM/yyyy");
     return this.progressivoDomandaPagam + "-" + sData;
   } else return "";
 }
예제 #5
0
  public void setFilterSelected(Object object) {

    if (object instanceof Interventi) {
      this.idIntervento = ((Interventi) object).getId();
      this.intervento = "";
      if (((Interventi) object).getIdIntervento() != null)
        this.intervento =
            ((Interventi) object).getCodice() + " - " + ((Interventi) object).getTitolo();
      this.filtroSelezionato = "interventi";
    }

    if (object instanceof Soggetti) {
      this.idSoggetto = ((Soggetti) object).getId();
      this.soggetto = "";
      if (((Soggetti) object).getIdSoggetto() != null) {
        if (((Soggetti) object).getNome() == null)
          this.soggetto = ((Soggetti) object).getDenominazione();
        else
          this.soggetto =
              ((Soggetti) object).getDenominazione() + " - " + ((Soggetti) object).getNome();
      }
      this.filtroSelezionato = "soggetti";
    }

    if (object instanceof NpgDocumentiSpesa) {
      this.idDocumentoSpesa = ((NpgDocumentiSpesa) object).getId();
      this.documentoSpesa = "";
      if (((NpgDocumentiSpesa) object).getIdDocumentoSpesa() != null)
        //				this.documentoSpesa=( (NpgDocumentiSpesa)object ).getNumDocumento()+" - "+(
        // (NpgDocumentiSpesa)object ).getDataDocumento();
        this.idDocumentoSpesa = ((NpgDocumentiSpesa) object).getIdDocumentoSpesa().toString();
      StringBuffer sb = new StringBuffer();
      if (((NpgDocumentiSpesa) object).getIdDocumentoSpesa() != null) {
        if (((NpgDocumentiSpesa) object).getNumDocumento() != null)
          sb.append(
              "Numero Documento: "
                  + ((NpgDocumentiSpesa) object).getNumDocumento().toString()
                  + " - ");
        if (((NpgDocumentiSpesa) object).getDataDocumento() != null)
          sb.append(
              "Data Documento: "
                  + Util.getStringFromDate(
                      ((NpgDocumentiSpesa) object).getDataDocumento(), "dd/MM/yyyy"));
        this.documentoSpesa = sb.toString();
      }
      this.filtroSelezionato = "documentiSpesa";
    }

    if (object instanceof NpgRichiestePagamento) {
      this.idRichiestaPagamento = "";
      if (((NpgRichiestePagamento) object).getIdRichiestaPagamento() != null)
        this.idRichiestaPagamento =
            ((NpgRichiestePagamento) object).getIdRichiestaPagamento().toString();
      this.richiestaPagamento = "";
      //			if(((NpgRichiestePagamento)object ).getIdRichiestaPagamento()!=null)
      //				if(((NpgRichiestePagamento)object ).getNumElenco()!=null)
      //					this.richiestaPagamento=( (NpgRichiestePagamento)object ).getNumElenco().toString() +
      // "-" +  Util.getStringFromDate(( (NpgRichiestePagamento)object ).getDataProtocollo(),
      // "dd/MM/yyyy");
      //				else
      //					this.richiestaPagamento= Util.getStringFromDate(( (NpgRichiestePagamento)object
      // ).getDataProtocollo(), "dd/MM/yyyy");
      StringBuffer sb = new StringBuffer();
      if (((NpgRichiestePagamento) object).getIdRichiestaPagamento() != null) {
        if (((NpgRichiestePagamento) object).getNumElenco() != null)
          sb.append(
              "Numero Richiesta: "
                  + ((NpgRichiestePagamento) object).getNumElenco().toString()
                  + " - ");
        if (((NpgRichiestePagamento) object).getNumProtocollo() != null)
          sb.append(
              "Numero Protocollo: "
                  + ((NpgRichiestePagamento) object).getNumProtocollo().toString()
                  + " - ");
        if (((NpgRichiestePagamento) object).getDataProtocollo() != null)
          sb.append(
              "Data Protocollo: "
                  + Util.getStringFromDate(
                      ((NpgRichiestePagamento) object).getDataProtocollo(), "dd/MM/yyyy"));
        this.richiestaPagamento = sb.toString();
      }
      this.filtroSelezionato = "richiestePagamento";
    }
  }