1464 lines
35 KiB
Java
1464 lines
35 KiB
Java
|
|
package it.acxent.contab;
|
||
|
|
|
||
|
|
import it.acxent.anag.Aspetto;
|
||
|
|
import it.acxent.anag.Banca;
|
||
|
|
import it.acxent.anag.Clifor;
|
||
|
|
import it.acxent.anag.Esercizio;
|
||
|
|
import it.acxent.anag.Nazione;
|
||
|
|
import it.acxent.anag.TipoPagamento;
|
||
|
|
import it.acxent.anag.Users;
|
||
|
|
import it.acxent.anag.Vettore;
|
||
|
|
import it.acxent.annotation.CRDescriptor;
|
||
|
|
import it.acxent.art.Articolo;
|
||
|
|
import it.acxent.art.ArticoloVariante;
|
||
|
|
import it.acxent.art.Marca;
|
||
|
|
import it.acxent.art.Tipo;
|
||
|
|
import it.acxent.db.ApplParmFull;
|
||
|
|
import it.acxent.db.CRAdapter;
|
||
|
|
import it.acxent.db.DBAdapter;
|
||
|
|
import it.acxent.db.FieldsDescriptor;
|
||
|
|
import it.acxent.tex.anag.ArticoloTessuto;
|
||
|
|
import it.acxent.tex.anag.Telaio;
|
||
|
|
import it.acxent.util.SimpleDateFormat;
|
||
|
|
import java.sql.Date;
|
||
|
|
import java.sql.Time;
|
||
|
|
import java.util.Calendar;
|
||
|
|
import java.util.HashMap;
|
||
|
|
|
||
|
|
public class DocumentoCR extends CRAdapter {
|
||
|
|
private static final long serialVersionUID = -6450723676308692559L;
|
||
|
|
|
||
|
|
private String flgClienteFornitore;
|
||
|
|
|
||
|
|
private long id_documentoS;
|
||
|
|
|
||
|
|
private long id_tipoDocumento;
|
||
|
|
|
||
|
|
private long id_vettore;
|
||
|
|
|
||
|
|
private long id_iva;
|
||
|
|
|
||
|
|
private long id_tipoPagamento;
|
||
|
|
|
||
|
|
private String flgSys;
|
||
|
|
|
||
|
|
private long flgStato = -1L;
|
||
|
|
|
||
|
|
@CRDescriptor(descrizione = "Data Da", abilita = true)
|
||
|
|
private Date dataDocumentoDa;
|
||
|
|
|
||
|
|
@CRDescriptor(descrizione = "Data A", abilita = true)
|
||
|
|
private Date dataDocumentoA;
|
||
|
|
|
||
|
|
private Date dataScontrino;
|
||
|
|
|
||
|
|
private long progDocumento;
|
||
|
|
|
||
|
|
private long id_contatore;
|
||
|
|
|
||
|
|
private String filePdf;
|
||
|
|
|
||
|
|
private Date dataRiferimento;
|
||
|
|
|
||
|
|
private Date dataRiferimentoDa;
|
||
|
|
|
||
|
|
private Date dataRiferimentoA;
|
||
|
|
|
||
|
|
private long flgTipoDocumento;
|
||
|
|
|
||
|
|
private double sconto;
|
||
|
|
|
||
|
|
private Date dataPagamento;
|
||
|
|
|
||
|
|
private Date dataRegistrazioneDI;
|
||
|
|
|
||
|
|
private String dichiarazioneIntento;
|
||
|
|
|
||
|
|
private long flgSimulazione;
|
||
|
|
|
||
|
|
private long flgPagata = -1L;
|
||
|
|
|
||
|
|
private long flgExport;
|
||
|
|
|
||
|
|
private long flgPA = -1L;
|
||
|
|
|
||
|
|
private long flgInviatoAvviso = -1L;
|
||
|
|
|
||
|
|
private String kg;
|
||
|
|
|
||
|
|
private long nColli;
|
||
|
|
|
||
|
|
private Date dataStampaBollato;
|
||
|
|
|
||
|
|
private Date dataStampaIva;
|
||
|
|
|
||
|
|
private long flgTrasportoAssicurato;
|
||
|
|
|
||
|
|
private String notaSpedizione;
|
||
|
|
|
||
|
|
private Date dataConsegna;
|
||
|
|
|
||
|
|
private Time oraConsegna;
|
||
|
|
|
||
|
|
private double speseTrasporto;
|
||
|
|
|
||
|
|
private double speseAltre;
|
||
|
|
|
||
|
|
private String descSpeseAltre;
|
||
|
|
|
||
|
|
private long id_aspetto;
|
||
|
|
|
||
|
|
private String descrizioneRiga;
|
||
|
|
|
||
|
|
private TipoDocumento tipoDocumento;
|
||
|
|
|
||
|
|
private Clifor clifor;
|
||
|
|
|
||
|
|
private Vettore vettore;
|
||
|
|
|
||
|
|
private TipoPagamento tipoPagamento;
|
||
|
|
|
||
|
|
private Esercizio esercizio;
|
||
|
|
|
||
|
|
private Aspetto aspetto;
|
||
|
|
|
||
|
|
private long blankLabels;
|
||
|
|
|
||
|
|
private long numLabels;
|
||
|
|
|
||
|
|
private long flgDocumentoPrelevato = -1L;
|
||
|
|
|
||
|
|
private Date dataDocumento;
|
||
|
|
|
||
|
|
private long numScontrino;
|
||
|
|
|
||
|
|
private String seriale;
|
||
|
|
|
||
|
|
private ArticoloVariante articoloVariante;
|
||
|
|
|
||
|
|
private long id_articoloVariante;
|
||
|
|
|
||
|
|
private Articolo articolo;
|
||
|
|
|
||
|
|
private long id_articolo;
|
||
|
|
|
||
|
|
private long flgStatoPrenotazione = -1L;
|
||
|
|
|
||
|
|
private long flgStatoPrenotazioneArt = -1L;
|
||
|
|
|
||
|
|
private String riferimento;
|
||
|
|
|
||
|
|
private String eMailInvio;
|
||
|
|
|
||
|
|
private long id_clifor;
|
||
|
|
|
||
|
|
private long id_tipo;
|
||
|
|
|
||
|
|
private Tipo tipo;
|
||
|
|
|
||
|
|
private long flgArt8;
|
||
|
|
|
||
|
|
private long flgSlip = -1L;
|
||
|
|
|
||
|
|
private long flgStampaSlip = -1L;
|
||
|
|
|
||
|
|
private long flgStatoRiparazione = -1L;
|
||
|
|
|
||
|
|
private long flgTrasporto;
|
||
|
|
|
||
|
|
private String nominativoDocumento;
|
||
|
|
|
||
|
|
private String descrizioneCompletaArticolo;
|
||
|
|
|
||
|
|
private long id_esercizio;
|
||
|
|
|
||
|
|
private Date dataChiusuraA;
|
||
|
|
|
||
|
|
private Date dataChiusuraDa;
|
||
|
|
|
||
|
|
private String testoMessaggio;
|
||
|
|
|
||
|
|
private long id_documentoNo;
|
||
|
|
|
||
|
|
private long flgStatoOrdineWww = 10L;
|
||
|
|
|
||
|
|
private long flgRitiroNegozio = -1L;
|
||
|
|
|
||
|
|
private long progDocumentoA;
|
||
|
|
|
||
|
|
private long id_bancaAnticipo = -1L;
|
||
|
|
|
||
|
|
private long flgHasDocumentiPrelevabili = -1L;
|
||
|
|
|
||
|
|
private long flgProvvisoria;
|
||
|
|
|
||
|
|
private long id_marca;
|
||
|
|
|
||
|
|
private Marca marca;
|
||
|
|
|
||
|
|
private String notaBarcode;
|
||
|
|
|
||
|
|
private Banca bancaAnticipo;
|
||
|
|
|
||
|
|
private long flgSuper;
|
||
|
|
|
||
|
|
private String riferimentoAzienda;
|
||
|
|
|
||
|
|
private long flgSuperR = -1L;
|
||
|
|
|
||
|
|
private long id_tipoDocumentoF;
|
||
|
|
|
||
|
|
private String fileName;
|
||
|
|
|
||
|
|
private Date dataEmissioneDocumento;
|
||
|
|
|
||
|
|
private Users users;
|
||
|
|
|
||
|
|
private long flgInvioMail = 1L;
|
||
|
|
|
||
|
|
private long flgSoloFattureElettroniche;
|
||
|
|
|
||
|
|
private long flgStatoLavorazione = -2L;
|
||
|
|
|
||
|
|
private long id_tipoStampaDocumento;
|
||
|
|
|
||
|
|
private TipoStampaDocumento tipoStampaDocumento;
|
||
|
|
|
||
|
|
private long flgTipologia = -1L;
|
||
|
|
|
||
|
|
private long flgRicercaPerTaglio;
|
||
|
|
|
||
|
|
private long id_telaio;
|
||
|
|
|
||
|
|
private Telaio telaio;
|
||
|
|
|
||
|
|
private long flgTipoGenerazione;
|
||
|
|
|
||
|
|
private long id_articoloDocumento;
|
||
|
|
|
||
|
|
private long flgBartolini = -1L;
|
||
|
|
|
||
|
|
private long flgXmlGenerato = -1L;
|
||
|
|
|
||
|
|
private long flgSplitPayment = -1L;
|
||
|
|
|
||
|
|
private long flgLink;
|
||
|
|
|
||
|
|
private String nMatricola;
|
||
|
|
|
||
|
|
private long progOrdineWww;
|
||
|
|
|
||
|
|
private long id_articoloTessuto;
|
||
|
|
|
||
|
|
private ArticoloTessuto articoloTessuto;
|
||
|
|
|
||
|
|
private String searchArticolo;
|
||
|
|
|
||
|
|
private long flgMl = -1L;
|
||
|
|
|
||
|
|
private long flgOss;
|
||
|
|
|
||
|
|
private long flgGRS = -1L;
|
||
|
|
|
||
|
|
private double totaleDocumentoDa;
|
||
|
|
|
||
|
|
private double totaleDocumentoA;
|
||
|
|
|
||
|
|
@CRDescriptor(descrizione = "Nazione", abilita = true)
|
||
|
|
private String id_nazione;
|
||
|
|
|
||
|
|
private Nazione nazione;
|
||
|
|
|
||
|
|
public static final int ORDER_BY_NUMERO_FATT_DESC = 0;
|
||
|
|
|
||
|
|
public static final int ORDER_BY_NUMERO_FATT_ASC = 1;
|
||
|
|
|
||
|
|
public static final int ORDER_BY_CLIENTE = 2;
|
||
|
|
|
||
|
|
public static final int ORDER_BY_REG_IVA = 9;
|
||
|
|
|
||
|
|
public static final long INVIO_MAIL_TUTTE = 1L;
|
||
|
|
|
||
|
|
public static final long INVIO_MAIL_NON_INVIATE = 0L;
|
||
|
|
|
||
|
|
public DocumentoCR(ApplParmFull newApplParmFull) {
|
||
|
|
super(newApplParmFull);
|
||
|
|
}
|
||
|
|
|
||
|
|
public DocumentoCR() {}
|
||
|
|
|
||
|
|
public void setId_documentoS(long newId_documento) {
|
||
|
|
this.id_documentoS = newId_documento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_tipoDocumento(long newId_tipoDocumento) {
|
||
|
|
this.id_tipoDocumento = newId_tipoDocumento;
|
||
|
|
setTipoDocumento(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_clifor(long newId_clifor) {
|
||
|
|
this.id_clifor = newId_clifor;
|
||
|
|
setClifor(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_vettore(long newId_vettore) {
|
||
|
|
this.id_vettore = newId_vettore;
|
||
|
|
setVettore(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_tipoPagamento(long newId_tipoPagamento) {
|
||
|
|
this.id_tipoPagamento = newId_tipoPagamento;
|
||
|
|
setTipoPagamento(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgSys(String newFlgSys) {
|
||
|
|
this.flgSys = newFlgSys;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgStato(long newFlgStato) {
|
||
|
|
this.flgStato = newFlgStato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataDocumento(Date newDataDocumento) {
|
||
|
|
this.dataDocumento = newDataDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setProgDocumento(long newProgDocumento) {
|
||
|
|
this.progDocumento = newProgDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_esercizio(long newId_esercizio) {
|
||
|
|
this.id_esercizio = newId_esercizio;
|
||
|
|
setEsercizio(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setRiferimento(String newRiferimento) {
|
||
|
|
this.riferimento = newRiferimento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataRiferimento(Date newDataRiferimento) {
|
||
|
|
this.dataRiferimento = newDataRiferimento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgTipoDocumento(long newFlgTipoDocumento) {
|
||
|
|
this.flgTipoDocumento = newFlgTipoDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setSconto(double newSconto) {
|
||
|
|
this.sconto = newSconto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataPagamento(Date newDataPagamento) {
|
||
|
|
this.dataPagamento = newDataPagamento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataRegistrazioneDI(Date newDataRegistrazioneDI) {
|
||
|
|
this.dataRegistrazioneDI = newDataRegistrazioneDI;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDichiarazioneIntento(String newDichiarazioneIntento) {
|
||
|
|
this.dichiarazioneIntento = newDichiarazioneIntento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgArt8(long newFlgArt8) {
|
||
|
|
this.flgArt8 = newFlgArt8;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgPagata(long newFlgPagata) {
|
||
|
|
this.flgPagata = newFlgPagata;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgExport(long newFlgExport) {
|
||
|
|
this.flgExport = newFlgExport;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgTrasporto(long newFlgTrasporto) {
|
||
|
|
this.flgTrasporto = newFlgTrasporto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setKg(String newKg) {
|
||
|
|
this.kg = newKg;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNColli(long newNColli) {
|
||
|
|
this.nColli = newNColli;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataStampaBollato(Date newDataStampaBollato) {
|
||
|
|
this.dataStampaBollato = newDataStampaBollato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataStampaIva(Date newDataStampaIva) {
|
||
|
|
this.dataStampaIva = newDataStampaIva;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgTrasportoAssicurato(long newFlgTrasportoAssicurato) {
|
||
|
|
this.flgTrasportoAssicurato = newFlgTrasportoAssicurato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNotaSpedizione(String newNotaSpedizione) {
|
||
|
|
this.notaSpedizione = newNotaSpedizione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataConsegna(Date newDataConsegna) {
|
||
|
|
this.dataConsegna = newDataConsegna;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setOraConsegna(Time newOraConsegna) {
|
||
|
|
this.oraConsegna = newOraConsegna;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setSpeseTrasporto(double newSpeseTrasporto) {
|
||
|
|
this.speseTrasporto = newSpeseTrasporto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setSpeseAltre(double newSpeseAltre) {
|
||
|
|
this.speseAltre = newSpeseAltre;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDescSpeseAltre(String newDescSpeseAltre) {
|
||
|
|
this.descSpeseAltre = newDescSpeseAltre;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_aspetto(long newId_aspetto) {
|
||
|
|
this.id_aspetto = newId_aspetto;
|
||
|
|
setAspetto(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_documentoS() {
|
||
|
|
return this.id_documentoS;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_tipoDocumento() {
|
||
|
|
return this.id_tipoDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_clifor() {
|
||
|
|
return this.id_clifor;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_vettore() {
|
||
|
|
return this.id_vettore;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_tipoPagamento() {
|
||
|
|
return this.id_tipoPagamento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getFlgSys() {
|
||
|
|
return (this.flgSys == null) ? "" : this.flgSys.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgStato() {
|
||
|
|
return this.flgStato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataDocumento() {
|
||
|
|
return this.dataDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getProgDocumento() {
|
||
|
|
return this.progDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_esercizio() {
|
||
|
|
return this.id_esercizio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getRiferimento() {
|
||
|
|
return (this.riferimento == null) ? "" : this.riferimento.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataRiferimento() {
|
||
|
|
return this.dataRiferimento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgTipoDocumento() {
|
||
|
|
return this.flgTipoDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public double getSconto() {
|
||
|
|
return this.sconto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataPagamento() {
|
||
|
|
return this.dataPagamento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataRegistrazioneDI() {
|
||
|
|
return this.dataRegistrazioneDI;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getDichiarazioneIntento() {
|
||
|
|
return (this.dichiarazioneIntento == null) ? "" : this.dichiarazioneIntento.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgArt8() {
|
||
|
|
return this.flgArt8;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgPagata() {
|
||
|
|
return this.flgPagata;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgExport() {
|
||
|
|
return this.flgExport;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgTrasporto() {
|
||
|
|
return this.flgTrasporto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getKg() {
|
||
|
|
return (this.kg == null) ? "" : this.kg.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getNColli() {
|
||
|
|
return this.nColli;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataStampaBollato() {
|
||
|
|
return this.dataStampaBollato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataStampaIva() {
|
||
|
|
return this.dataStampaIva;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgTrasportoAssicurato() {
|
||
|
|
return this.flgTrasportoAssicurato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getNotaSpedizione() {
|
||
|
|
return (this.notaSpedizione == null) ? "" : this.notaSpedizione.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataConsegna() {
|
||
|
|
return this.dataConsegna;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Time getOraConsegna() {
|
||
|
|
return this.oraConsegna;
|
||
|
|
}
|
||
|
|
|
||
|
|
public double getSpeseTrasporto() {
|
||
|
|
return this.speseTrasporto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public double getSpeseAltre() {
|
||
|
|
return this.speseAltre;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getDescSpeseAltre() {
|
||
|
|
return (this.descSpeseAltre == null) ? "" : this.descSpeseAltre.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_aspetto() {
|
||
|
|
return this.id_aspetto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTipoDocumento(TipoDocumento newTipoDocumento) {
|
||
|
|
this.tipoDocumento = newTipoDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public TipoDocumento getTipoDocumento() {
|
||
|
|
this.tipoDocumento = (TipoDocumento)getSecondaryObject(this.tipoDocumento, TipoDocumento.class, getId_tipoDocumento());
|
||
|
|
return this.tipoDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setClifor(Clifor newClifor) {
|
||
|
|
this.clifor = newClifor;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Clifor getClifor() {
|
||
|
|
this.clifor = (Clifor)getSecondaryObject(this.clifor, Clifor.class, getId_clifor());
|
||
|
|
return this.clifor;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setVettore(Vettore newVettore) {
|
||
|
|
this.vettore = newVettore;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Vettore getVettore() {
|
||
|
|
this.vettore = (Vettore)getSecondaryObject(this.vettore, Vettore.class, getId_vettore());
|
||
|
|
return this.vettore;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTipoPagamento(TipoPagamento newTipoPagamento) {
|
||
|
|
this.tipoPagamento = newTipoPagamento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public TipoPagamento getTipoPagamento() {
|
||
|
|
this.tipoPagamento = (TipoPagamento)getSecondaryObject(this.tipoPagamento, TipoPagamento.class, getId_tipoPagamento());
|
||
|
|
return this.tipoPagamento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEsercizio(Esercizio newEsercizio) {
|
||
|
|
this.esercizio = newEsercizio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Esercizio getEsercizio() {
|
||
|
|
this.esercizio = (Esercizio)getSecondaryObject(this.esercizio, Esercizio.class, getId_esercizio());
|
||
|
|
return this.esercizio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setAspetto(Aspetto newAspetto) {
|
||
|
|
this.aspetto = newAspetto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Aspetto getAspetto() {
|
||
|
|
this.aspetto = (Aspetto)getSecondaryObject(this.aspetto, Aspetto.class, getId_aspetto());
|
||
|
|
return this.aspetto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataDocumentoDa() {
|
||
|
|
return this.dataDocumentoDa;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataDocumentoDa(Date dataDocumentoDa) {
|
||
|
|
this.dataDocumentoDa = dataDocumentoDa;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataDocumentoA() {
|
||
|
|
return this.dataDocumentoA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataDocumentoA(Date dataDocumentoA) {
|
||
|
|
this.dataDocumentoA = dataDocumentoA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getStato() {
|
||
|
|
return getStato(getFlgStato());
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isProgConBuchi() {
|
||
|
|
Calendar cal = Calendar.getInstance();
|
||
|
|
return isProgConBuchi((long)cal.get(1));
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isProgConBuchi(long anno) {
|
||
|
|
if (getApFull() == null || getId_tipoDocumento() == 0L)
|
||
|
|
return false;
|
||
|
|
if (anno == 0L) {
|
||
|
|
Calendar cal = Calendar.getInstance();
|
||
|
|
anno = (long)cal.get(1);
|
||
|
|
}
|
||
|
|
Documento bean = new Documento(getApFull());
|
||
|
|
bean.setId_tipoDocumento(getId_tipoDocumento());
|
||
|
|
return bean.isProgConBuchi(anno);
|
||
|
|
}
|
||
|
|
|
||
|
|
public String trovaPrimoBuco() {
|
||
|
|
Calendar cal = Calendar.getInstance();
|
||
|
|
return trovaPrimoBuco((long)cal.get(1));
|
||
|
|
}
|
||
|
|
|
||
|
|
public String trovaPrimoBuco(long anno) {
|
||
|
|
if (getApFull() == null)
|
||
|
|
return "Impossibbile calcolare protocolli Fattura anno" + anno;
|
||
|
|
if (anno == 0L) {
|
||
|
|
Calendar cal = Calendar.getInstance();
|
||
|
|
anno = (long)cal.get(1);
|
||
|
|
}
|
||
|
|
Documento bean = new Documento(getApFull());
|
||
|
|
bean.setId_tipoDocumento(getId_tipoDocumento());
|
||
|
|
return bean.trovaPrimoBuco(anno);
|
||
|
|
}
|
||
|
|
|
||
|
|
public static final String getStato(long l_flgStato) {
|
||
|
|
return Documento.getStato(l_flgStato);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getBlankLabels() {
|
||
|
|
return this.blankLabels;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setBlankLabels(long blankLabels) {
|
||
|
|
this.blankLabels = blankLabels;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getNumLabels() {
|
||
|
|
return this.numLabels;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNumLabels(long numLabels) {
|
||
|
|
this.numLabels = numLabels;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgDocumentoPrelevato() {
|
||
|
|
return this.flgDocumentoPrelevato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgDocumentoPrelevato(long flgDocumentoPrelevato) {
|
||
|
|
this.flgDocumentoPrelevato = flgDocumentoPrelevato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataScontrino() {
|
||
|
|
return this.dataScontrino;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataScontrino(Date dataScontrino) {
|
||
|
|
this.dataScontrino = dataScontrino;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getNumScontrino() {
|
||
|
|
return this.numScontrino;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNumScontrino(long numScontrino) {
|
||
|
|
this.numScontrino = numScontrino;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getSeriale() {
|
||
|
|
return (this.seriale == null) ? AB_EMPTY_STRING : this.seriale.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setSeriale(String seriale) {
|
||
|
|
this.seriale = seriale;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getDescrizioneCompletaArticolo() {
|
||
|
|
if (getId_articoloVariante() != 0L)
|
||
|
|
return getArticoloVariante().getDescrizioneCompleta();
|
||
|
|
if (getId_articolo() != 0L)
|
||
|
|
return getArticolo().getDescrizioneCompleta();
|
||
|
|
return (this.descrizioneCompletaArticolo == null) ? AB_EMPTY_STRING : this.descrizioneCompletaArticolo.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public ArticoloVariante getArticoloVariante() {
|
||
|
|
this.articoloVariante = (ArticoloVariante)getSecondaryObject(this.articoloVariante, ArticoloVariante.class, getId_articoloVariante());
|
||
|
|
return this.articoloVariante;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_articoloVariante() {
|
||
|
|
return this.id_articoloVariante;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setArticoloVariante(ArticoloVariante newArticoloVariante) {
|
||
|
|
this.articoloVariante = newArticoloVariante;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_articoloVariante(long newId_articoloVariante) {
|
||
|
|
this.id_articoloVariante = newId_articoloVariante;
|
||
|
|
setArticoloVariante(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public Articolo getArticolo() {
|
||
|
|
this.articolo = (Articolo)getSecondaryObject(this.articolo, Articolo.class, getId_articolo());
|
||
|
|
return this.articolo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_articolo() {
|
||
|
|
return this.id_articolo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setArticolo(Articolo newArticolo) {
|
||
|
|
this.articolo = newArticolo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_articolo(long newId_articolo) {
|
||
|
|
this.id_articolo = newId_articolo;
|
||
|
|
setArticolo(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getDataScontrinoF() {
|
||
|
|
if (this.dataScontrino != null) {
|
||
|
|
SimpleDateFormat df = new SimpleDateFormat("dd-MM-yy");
|
||
|
|
return df.format(this.dataScontrino);
|
||
|
|
}
|
||
|
|
return AB_EMPTY_STRING;
|
||
|
|
}
|
||
|
|
|
||
|
|
public final String getTipoReport() {
|
||
|
|
return Documento.getTipoReport(getFlgTipoReport());
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getDescrizioneCR() {
|
||
|
|
return super.getDescrizioneCR();
|
||
|
|
}
|
||
|
|
|
||
|
|
public static final String getTipoReport(long l_flgTipoReport) {
|
||
|
|
return Documento.getTipoReport(l_flgTipoReport);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgStatoPrenotazione() {
|
||
|
|
return this.flgStatoPrenotazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgStatoPrenotazione(long flgStatoPrenotazione) {
|
||
|
|
this.flgStatoPrenotazione = flgStatoPrenotazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public static String getStatoOrdineWww(long l_flgPrenotazione) {
|
||
|
|
return Documento.getStatoOrdineWww(l_flgPrenotazione);
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getFilePdf() {
|
||
|
|
return (this.filePdf == null) ? AB_EMPTY_STRING : this.filePdf.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFilePdf(String filePdf) {
|
||
|
|
this.filePdf = filePdf;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getEMailInvio() {
|
||
|
|
return this.eMailInvio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEMailInvio(String mailInvio) {
|
||
|
|
this.eMailInvio = mailInvio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Tipo getTipo() {
|
||
|
|
this.tipo = (Tipo)getSecondaryObject(this.tipo, Tipo.class, getId_tipo());
|
||
|
|
return this.tipo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_tipo(long id_tipo) {
|
||
|
|
this.id_tipo = id_tipo;
|
||
|
|
setTipo(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_tipo() {
|
||
|
|
return this.id_tipo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTipo(Tipo tipo) {
|
||
|
|
this.tipo = tipo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgSimulazione() {
|
||
|
|
return this.flgSimulazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgSimulazione(long flgSimulazione) {
|
||
|
|
this.flgSimulazione = flgSimulazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgSlip() {
|
||
|
|
return this.flgSlip;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgSlip(long flgSlip) {
|
||
|
|
this.flgSlip = flgSlip;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgStampaSlip() {
|
||
|
|
return this.flgStampaSlip;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgStampaSlip(long flgStampaSlip) {
|
||
|
|
this.flgStampaSlip = flgStampaSlip;
|
||
|
|
}
|
||
|
|
|
||
|
|
public static String getStatoRiparazione(long l_flgRiparazione) {
|
||
|
|
return Documento.getStatoRiparazione(l_flgRiparazione);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgStatoRiparazione() {
|
||
|
|
return this.flgStatoRiparazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgStatoRiparazione(long flgStatoRiparazione) {
|
||
|
|
this.flgStatoRiparazione = flgStatoRiparazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgInviatoAvviso() {
|
||
|
|
return this.flgInviatoAvviso;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgInviatoAvviso(long flgInviatoAvviso) {
|
||
|
|
this.flgInviatoAvviso = flgInviatoAvviso;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getNominativoDocumento() {
|
||
|
|
if (getId_clifor() == 0L)
|
||
|
|
return (this.nominativoDocumento == null) ? AB_EMPTY_STRING : this.nominativoDocumento.trim();
|
||
|
|
return getClifor().getDescrizioneCompleta();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNominativoDocumento(String descrizioneClifor) {
|
||
|
|
this.nominativoDocumento = descrizioneClifor;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDescrizioneCompletaArticolo(String descrizioneCompletaArticolo) {
|
||
|
|
this.descrizioneCompletaArticolo = descrizioneCompletaArticolo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_contatore() {
|
||
|
|
return this.id_contatore;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_contatore(long id_contatore) {
|
||
|
|
this.id_contatore = id_contatore;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataChiusuraA() {
|
||
|
|
return this.dataChiusuraA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataChiusuraA(Date dataChiusuraA) {
|
||
|
|
this.dataChiusuraA = dataChiusuraA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataChiusuraDa() {
|
||
|
|
return this.dataChiusuraDa;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataChiusuraDa(Date dataChiusuraDa) {
|
||
|
|
this.dataChiusuraDa = dataChiusuraDa;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getTestoMessaggio() {
|
||
|
|
return (this.testoMessaggio == null) ? AB_EMPTY_STRING : this.testoMessaggio.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTestoMessaggio(String testoMessaggio) {
|
||
|
|
this.testoMessaggio = testoMessaggio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_documentoNo() {
|
||
|
|
return this.id_documentoNo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_documentoNo(long idDocumentoNo) {
|
||
|
|
this.id_documentoNo = idDocumentoNo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgStatoOrdineWww() {
|
||
|
|
return this.flgStatoOrdineWww;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgStatoOrdineWww(long flgStatoOrdineWww) {
|
||
|
|
this.flgStatoOrdineWww = flgStatoOrdineWww;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgRitiroNegozio() {
|
||
|
|
return this.flgRitiroNegozio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgRitiroNegozio(long flgRitiroNegozio) {
|
||
|
|
this.flgRitiroNegozio = flgRitiroNegozio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgLink() {
|
||
|
|
return this.flgLink;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgLink(long flgLink) {
|
||
|
|
this.flgLink = flgLink;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getProgDocumentoA() {
|
||
|
|
return this.progDocumentoA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setProgDocumentoA(long progDocumentoA) {
|
||
|
|
this.progDocumentoA = progDocumentoA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_bancaAnticipo() {
|
||
|
|
return this.id_bancaAnticipo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_bancaAnticipo(long id_bancaAnticipo) {
|
||
|
|
this.id_bancaAnticipo = id_bancaAnticipo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgHasDocumentiPrelevabili() {
|
||
|
|
return this.flgHasDocumentiPrelevabili;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgHasDocumentiPrelevabili(long flgHasDocumentiPrelevabili) {
|
||
|
|
this.flgHasDocumentiPrelevabili = flgHasDocumentiPrelevabili;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgProvvisoria() {
|
||
|
|
return this.flgProvvisoria;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgProvvisoria(long flgProvvisoria) {
|
||
|
|
this.flgProvvisoria = flgProvvisoria;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_marca() {
|
||
|
|
return this.id_marca;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_marca(long id_marca) {
|
||
|
|
this.id_marca = id_marca;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Marca getMarca() {
|
||
|
|
this.marca = (Marca)getSecondaryObject(this.marca, Marca.class, new Long(getId_marca()));
|
||
|
|
return this.marca;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setMarca(Marca marca) {
|
||
|
|
this.marca = marca;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getNotaBarcode() {
|
||
|
|
return (this.notaBarcode == null) ? AB_EMPTY_STRING : this.notaBarcode;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNotaBarcode(String notaBarcode) {
|
||
|
|
this.notaBarcode = notaBarcode;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataRiferimentoDa() {
|
||
|
|
return this.dataRiferimentoDa;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataRiferimentoDa(Date dataRiferimentoDa) {
|
||
|
|
this.dataRiferimentoDa = dataRiferimentoDa;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataRiferimentoA() {
|
||
|
|
return this.dataRiferimentoA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataRiferimentoA(Date dataRiferimentoA) {
|
||
|
|
this.dataRiferimentoA = dataRiferimentoA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getCriteriDiRicerca() {
|
||
|
|
SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
|
||
|
|
StringBuilder sb = new StringBuilder();
|
||
|
|
if (getProgDocumento() > 0L)
|
||
|
|
sb.append("Numero documento Da: " + getProgDocumento());
|
||
|
|
if (getProgDocumentoA() > 0L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Numero documento A: " + getProgDocumentoA());
|
||
|
|
}
|
||
|
|
if (getId_esercizio() > 0L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Anno documento: " + getId_esercizio());
|
||
|
|
}
|
||
|
|
if (getFlgStato() > 0L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Stato documento: " + getStato());
|
||
|
|
}
|
||
|
|
if (getFlgTipologia() > 0L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Tipologia Documento: " + getTipoDocumento().getTipologia(getFlgTipologia()));
|
||
|
|
}
|
||
|
|
if (getId_clifor() > 0L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Cliente/Fornitore: " + getClifor().getDescrizioneCompleta());
|
||
|
|
}
|
||
|
|
if (getDataDocumentoDa() != null) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Data documento Da: " + df.format(getDataDocumentoDa()));
|
||
|
|
}
|
||
|
|
if (getDataDocumentoA() != null) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Data documento A: " + df.format(getDataDocumentoA()));
|
||
|
|
}
|
||
|
|
if (getId_tipoPagamento() > 0L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Tipo pagamento: " + getTipoPagamento().getDescrizione());
|
||
|
|
}
|
||
|
|
if (!getRiferimento().isEmpty()) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Riferimento fornitore: " + getRiferimento());
|
||
|
|
}
|
||
|
|
if (getDataRiferimentoDa() != null) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Data riferimento Da: " + df.format(getDataRiferimentoDa()));
|
||
|
|
}
|
||
|
|
if (getDataRiferimentoA() != null) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Data riferimento A: " + df.format(getDataRiferimentoA()));
|
||
|
|
}
|
||
|
|
if (getFlgPagata() == -1L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Pagato: Tutti");
|
||
|
|
}
|
||
|
|
if (getFlgPagata() == 0L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Pagato: No");
|
||
|
|
}
|
||
|
|
if (getFlgPagata() == 1L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Pagato: Si");
|
||
|
|
}
|
||
|
|
if (getId_bancaAnticipo() > 0L) {
|
||
|
|
if (sb.length() > 0)
|
||
|
|
sb.append(" ");
|
||
|
|
sb.append("Anticipo: " + getBancaAnticipo().getDescrizione());
|
||
|
|
}
|
||
|
|
return sb.toString();
|
||
|
|
}
|
||
|
|
|
||
|
|
public Banca getBancaAnticipo() {
|
||
|
|
this.bancaAnticipo = (Banca)getSecondaryObject(this.bancaAnticipo, Banca.class, getId_bancaAnticipo());
|
||
|
|
return this.bancaAnticipo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setBancaAnticipo(Banca bancaAnticipo) {
|
||
|
|
this.bancaAnticipo = bancaAnticipo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgSuper() {
|
||
|
|
return this.flgSuper;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgSuper(long flgSuper) {
|
||
|
|
this.flgSuper = flgSuper;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getFlgClienteFornitore() {
|
||
|
|
return (this.flgClienteFornitore == null) ? AB_EMPTY_STRING : this.flgClienteFornitore;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgClienteFornitore(String flgClienteFornitore) {
|
||
|
|
this.flgClienteFornitore = flgClienteFornitore;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getRiferimentoAzienda() {
|
||
|
|
return (this.riferimentoAzienda == null) ? AB_EMPTY_STRING : this.riferimentoAzienda;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setRiferimentoAzienda(String riferimentoAzienda) {
|
||
|
|
this.riferimentoAzienda = riferimentoAzienda;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgSuperR() {
|
||
|
|
return this.flgSuperR;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgSuperR(long flgSuperR) {
|
||
|
|
this.flgSuperR = flgSuperR;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getFileName() {
|
||
|
|
return (this.fileName == null) ? AB_EMPTY_STRING : this.fileName;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFileName(String fileName) {
|
||
|
|
this.fileName = fileName;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getDataEmissioneDocumento() {
|
||
|
|
return this.dataEmissioneDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataEmissioneDocumento(Date dataEmissioneDocumento) {
|
||
|
|
this.dataEmissioneDocumento = dataEmissioneDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Users getUsers() {
|
||
|
|
if (this.users == null)
|
||
|
|
this.users = (Users)getSecondaryObject((DBAdapter)this.users, Users.class, getId_users());
|
||
|
|
return this.users;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setUsers(Users users) {
|
||
|
|
this.users = users;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_tipoDocumentoF() {
|
||
|
|
return this.id_tipoDocumentoF;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_tipoDocumentoF(long id_tipoDocumentoF) {
|
||
|
|
this.id_tipoDocumentoF = id_tipoDocumentoF;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgStatoPrenotazioneArt() {
|
||
|
|
return this.flgStatoPrenotazioneArt;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgStatoPrenotazioneArt(long flgStatoPrenotazioneArt) {
|
||
|
|
this.flgStatoPrenotazioneArt = flgStatoPrenotazioneArt;
|
||
|
|
}
|
||
|
|
|
||
|
|
public static String getStatoPrenotazioneArt(long l_flgPrenotazioneArt) {
|
||
|
|
return Documento.getStatoPrenotazioneArt(l_flgPrenotazioneArt);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgInvioMail() {
|
||
|
|
return this.flgInvioMail;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgInvioMail(long flgInvioMail) {
|
||
|
|
this.flgInvioMail = flgInvioMail;
|
||
|
|
}
|
||
|
|
|
||
|
|
public static String getStatoPrenotazione(long l_flgPrenotazione) {
|
||
|
|
return Documento.getStatoPrenotazione(l_flgPrenotazione);
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void initCrFieldDescriptor() {
|
||
|
|
if (this.crFieldDescriptor == null) {
|
||
|
|
this.crFieldDescriptor = new HashMap();
|
||
|
|
this.crFieldDescriptor.put("progDocumento", new FieldsDescriptor("progDocumento", 10L, "Numero Documento", ""));
|
||
|
|
this.crFieldDescriptor.put("id_esercizio", new FieldsDescriptor("id_esercizio", 20L, "Anno Documento", ""));
|
||
|
|
this.crFieldDescriptor.put("id_clifor", new FieldsDescriptor("id_clifor", 30L, "Cliente/Fornitore", ""));
|
||
|
|
this.crFieldDescriptor.put("dataDocumentoDa", new FieldsDescriptor("dataDocumentoDa", 40L, "Data Documento Da", ""));
|
||
|
|
this.crFieldDescriptor.put("dataDocumentoA", new FieldsDescriptor("dataDocumentoA", 50L, "Data Documento A", ""));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgSoloFattureElettroniche() {
|
||
|
|
return this.flgSoloFattureElettroniche;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgSoloFattureElettroniche(long flgSoloFattureElettroniche) {
|
||
|
|
this.flgSoloFattureElettroniche = flgSoloFattureElettroniche;
|
||
|
|
}
|
||
|
|
|
||
|
|
public static final String getStatoLavorazione(long l_flgStatoLavorazione) {
|
||
|
|
return Documento.getStatoLavorazione(l_flgStatoLavorazione);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgStatoLavorazione() {
|
||
|
|
return this.flgStatoLavorazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getStatoLavorazione() {
|
||
|
|
return Documento.getStatoLavorazione(getFlgStatoLavorazione());
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgStatoLavorazione(long flgStatoLavorazione) {
|
||
|
|
this.flgStatoLavorazione = flgStatoLavorazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_tipoStampaDocumento() {
|
||
|
|
return this.id_tipoStampaDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public TipoStampaDocumento getTipoStampaDocumento() {
|
||
|
|
this.tipoStampaDocumento = (TipoStampaDocumento)getSecondaryObject(this.tipoStampaDocumento, TipoStampaDocumento.class,
|
||
|
|
getId_tipoStampaDocumento());
|
||
|
|
return this.tipoStampaDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_tipoStampaDocumento(long newId_tipoStampaDocumento) {
|
||
|
|
this.id_tipoStampaDocumento = newId_tipoStampaDocumento;
|
||
|
|
setTipoStampaDocumento(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTipoStampaDocumento(TipoStampaDocumento newTipoStampaDocumento) {
|
||
|
|
this.tipoStampaDocumento = newTipoStampaDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgTipologia() {
|
||
|
|
return this.flgTipologia;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgTipologia(long flgTipologia) {
|
||
|
|
this.flgTipologia = flgTipologia;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgRicercaPerTaglio() {
|
||
|
|
return this.flgRicercaPerTaglio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgRicercaPerTaglio(long flgRicercaPerTaglio) {
|
||
|
|
this.flgRicercaPerTaglio = flgRicercaPerTaglio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_telaio() {
|
||
|
|
return this.id_telaio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Telaio getTelaio() {
|
||
|
|
this.telaio = (Telaio)getSecondaryObject(this.telaio, Telaio.class, getId_telaio());
|
||
|
|
return this.telaio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_telaio(long id_telaio) {
|
||
|
|
this.id_telaio = id_telaio;
|
||
|
|
setTelaio(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTelaio(Telaio telaio) {
|
||
|
|
this.telaio = telaio;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgTipoGenerazione() {
|
||
|
|
return this.flgTipoGenerazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgTipoGenerazione(long flgTipoGenerazione) {
|
||
|
|
this.flgTipoGenerazione = flgTipoGenerazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_articoloDocumento() {
|
||
|
|
return this.id_articoloDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_articoloDocumento(long id_articoloDocumento) {
|
||
|
|
this.id_articoloDocumento = id_articoloDocumento;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isFatturaElettronicaOn() {
|
||
|
|
return getParm("FATTURA_ELETTRONICA_ON").isTrue();
|
||
|
|
}
|
||
|
|
|
||
|
|
public static String getBartolini(long l_flgBartolini) {
|
||
|
|
return Documento.getBartolini(l_flgBartolini);
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getBartolini() {
|
||
|
|
return Documento.getBartolini(getFlgBartolini());
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgBartolini() {
|
||
|
|
return this.flgBartolini;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgBartolini(long flgBartolini) {
|
||
|
|
this.flgBartolini = flgBartolini;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgXmlGenerato() {
|
||
|
|
return this.flgXmlGenerato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgXmlGenerato(long flgXmlGenerato) {
|
||
|
|
this.flgXmlGenerato = flgXmlGenerato;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgPA() {
|
||
|
|
return this.flgPA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgPA(long flgPA) {
|
||
|
|
this.flgPA = flgPA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgSplitPayment() {
|
||
|
|
return this.flgSplitPayment;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgSplitPayment(long flgSplitPayment) {
|
||
|
|
this.flgSplitPayment = flgSplitPayment;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getNMatricola() {
|
||
|
|
return (this.nMatricola == null) ? AB_EMPTY_STRING : this.nMatricola;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNMatricola(String matricola) {
|
||
|
|
this.nMatricola = matricola;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getProgOrdineWww() {
|
||
|
|
return this.progOrdineWww;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setProgOrdineWww(long progOrdineWww) {
|
||
|
|
this.progOrdineWww = progOrdineWww;
|
||
|
|
}
|
||
|
|
|
||
|
|
public ArticoloTessuto getArticoloTessuto() {
|
||
|
|
this.articoloTessuto = (ArticoloTessuto)getSecondaryObject(this.articoloTessuto, ArticoloTessuto.class, getId_articoloTessuto());
|
||
|
|
return this.articoloTessuto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setArticoloTessuto(ArticoloTessuto articoloTessuto) {
|
||
|
|
this.articoloTessuto = articoloTessuto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_articoloTessuto() {
|
||
|
|
return this.id_articoloTessuto;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_articoloTessuto(long id_articoloTessuto) {
|
||
|
|
this.id_articoloTessuto = id_articoloTessuto;
|
||
|
|
setArticoloTessuto(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getSearchArticolo() {
|
||
|
|
if (getId_articolo() > 0L)
|
||
|
|
return getDescrizioneCompletaArticolo();
|
||
|
|
return (this.searchArticolo == null) ? AB_EMPTY_STRING : this.searchArticolo.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setSearchArticolo(String searchArticolo) {
|
||
|
|
this.searchArticolo = searchArticolo;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_iva() {
|
||
|
|
return this.id_iva;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_iva(long id_iva) {
|
||
|
|
this.id_iva = id_iva;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgMl() {
|
||
|
|
return this.flgMl;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgMl(long flgMl) {
|
||
|
|
this.flgMl = flgMl;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgOss() {
|
||
|
|
return this.flgOss;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgOss(long flgOss) {
|
||
|
|
this.flgOss = flgOss;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgGRS() {
|
||
|
|
return this.flgGRS;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgGRS(long flgGRS) {
|
||
|
|
this.flgGRS = flgGRS;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getId_nazione() {
|
||
|
|
return (this.id_nazione == null) ? AB_EMPTY_STRING : this.id_nazione.trim();
|
||
|
|
}
|
||
|
|
|
||
|
|
public Nazione getNazione() {
|
||
|
|
this.nazione = (Nazione)getSecondaryObject(this.nazione, Nazione.class, getId_nazione());
|
||
|
|
return this.nazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_nazione(String newId_nazione) {
|
||
|
|
this.id_nazione = newId_nazione;
|
||
|
|
setNazione(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNazione(Nazione newNazione) {
|
||
|
|
this.nazione = newNazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public double getTotaleDocumentoDa() {
|
||
|
|
return this.totaleDocumentoDa;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTotaleDocumentoDa(double totaleDocumentoDa) {
|
||
|
|
this.totaleDocumentoDa = totaleDocumentoDa;
|
||
|
|
}
|
||
|
|
|
||
|
|
public double getTotaleDocumentoA() {
|
||
|
|
return this.totaleDocumentoA;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTotaleDocumentoA(double totaleDocumentoA) {
|
||
|
|
this.totaleDocumentoA = totaleDocumentoA;
|
||
|
|
}
|
||
|
|
}
|