242 lines
5.6 KiB
Java
242 lines
5.6 KiB
Java
package it.acxent.tex.lav;
|
|
|
|
import it.acxent.anag.Clifor;
|
|
import it.acxent.contab.Documento;
|
|
import it.acxent.contab.RigaDocumento;
|
|
import it.acxent.contab.TipoDocumento;
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import java.sql.Date;
|
|
import java.sql.Timestamp;
|
|
|
|
public class LavPezzaCR extends CRAdapter {
|
|
private long id_lavPezza;
|
|
|
|
private long id_rigaDocumento;
|
|
|
|
private Timestamp tsInserimento;
|
|
|
|
private String codicePezza;
|
|
|
|
private RigaDocumento rigaDocumento;
|
|
|
|
private Clifor clifor;
|
|
|
|
private long id_clifor;
|
|
|
|
private long id_documento;
|
|
|
|
private String riferimento;
|
|
|
|
private Date dataEmissioneDocumento;
|
|
|
|
private long id_tipoDocumento;
|
|
|
|
private long flgStato = -1L;
|
|
|
|
private long flgConBolla = 0L;
|
|
|
|
private TipoDocumento tipoDocumento;
|
|
|
|
private long id_rigaDocumentoBolla;
|
|
|
|
private String codicePancale;
|
|
|
|
private Date dataDocumentoA;
|
|
|
|
private Date dataDocumentoDa;
|
|
|
|
private long progDocumento;
|
|
|
|
private long progDocumentoA;
|
|
|
|
private long id_documentoBolla;
|
|
|
|
public LavPezzaCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public LavPezzaCR() {}
|
|
|
|
public void setId_lavPezza(long newId_lavPezza) {
|
|
this.id_lavPezza = newId_lavPezza;
|
|
}
|
|
|
|
public void setId_rigaDocumento(long newId_rigaDocumento) {
|
|
this.id_rigaDocumento = newId_rigaDocumento;
|
|
setRigaDocumento(null);
|
|
}
|
|
|
|
public void setTsInserimento(Timestamp newTsInserimento) {
|
|
this.tsInserimento = newTsInserimento;
|
|
}
|
|
|
|
public void setCodicePezza(String newCodicePezza) {
|
|
this.codicePezza = newCodicePezza;
|
|
}
|
|
|
|
public long getId_lavPezza() {
|
|
return this.id_lavPezza;
|
|
}
|
|
|
|
public long getId_rigaDocumento() {
|
|
return this.id_rigaDocumento;
|
|
}
|
|
|
|
public Timestamp getTsInserimento() {
|
|
return this.tsInserimento;
|
|
}
|
|
|
|
public String getCodicePezza() {
|
|
return (this.codicePezza == null) ? "" : this.codicePezza.trim();
|
|
}
|
|
|
|
public void setRigaDocumento(RigaDocumento newRigaDocumento) {
|
|
this.rigaDocumento = newRigaDocumento;
|
|
}
|
|
|
|
public RigaDocumento getRigaDocumento() {
|
|
this.rigaDocumento = (RigaDocumento)getSecondaryObject(this.rigaDocumento, RigaDocumento.class, getId_rigaDocumento());
|
|
return this.rigaDocumento;
|
|
}
|
|
|
|
public Clifor getClifor() {
|
|
this.clifor = (Clifor)getSecondaryObject(this.clifor, Clifor.class, getId_clifor());
|
|
return this.clifor;
|
|
}
|
|
|
|
public long getId_clifor() {
|
|
return this.id_clifor;
|
|
}
|
|
|
|
public void setClifor(Clifor newClifor) {
|
|
this.clifor = newClifor;
|
|
}
|
|
|
|
public void setId_clifor(long newId_clifor) {
|
|
this.id_clifor = newId_clifor;
|
|
setClifor(null);
|
|
}
|
|
|
|
public long getId_documento() {
|
|
return this.id_documento;
|
|
}
|
|
|
|
public void setId_documento(long id_documento) {
|
|
this.id_documento = id_documento;
|
|
}
|
|
|
|
public String getRiferimento() {
|
|
return (this.riferimento == null) ? AB_EMPTY_STRING : this.riferimento.trim();
|
|
}
|
|
|
|
public void setRiferimento(String riferimento) {
|
|
this.riferimento = riferimento;
|
|
}
|
|
|
|
public Date getDataEmissioneDocumento() {
|
|
return this.dataEmissioneDocumento;
|
|
}
|
|
|
|
public void setDataEmissioneDocumento(Date dataEmissioneDocumento) {
|
|
this.dataEmissioneDocumento = dataEmissioneDocumento;
|
|
}
|
|
|
|
public long getId_tipoDocumento() {
|
|
return this.id_tipoDocumento;
|
|
}
|
|
|
|
public void setId_tipoDocumento(long id_tipoDocumento) {
|
|
this.id_tipoDocumento = id_tipoDocumento;
|
|
setTipoDocumento(null);
|
|
}
|
|
|
|
public long getFlgStato() {
|
|
return this.flgStato;
|
|
}
|
|
|
|
public void setFlgStato(long flgStato) {
|
|
this.flgStato = flgStato;
|
|
}
|
|
|
|
public static final String getStato(long l_flgStato) {
|
|
return Documento.getStato(l_flgStato);
|
|
}
|
|
|
|
public String getStato() {
|
|
return getStato(getFlgStato());
|
|
}
|
|
|
|
public long getFlgConBolla() {
|
|
return this.flgConBolla;
|
|
}
|
|
|
|
public void setFlgConBolla(long flgSenzaBolla) {
|
|
this.flgConBolla = flgSenzaBolla;
|
|
}
|
|
|
|
public TipoDocumento getTipoDocumento() {
|
|
this.tipoDocumento = (TipoDocumento)getSecondaryObject(this.tipoDocumento, TipoDocumento.class, getId_tipoDocumento());
|
|
return this.tipoDocumento;
|
|
}
|
|
|
|
public void setTipoDocumento(TipoDocumento tipoDocumento) {
|
|
this.tipoDocumento = tipoDocumento;
|
|
}
|
|
|
|
public long getId_rigaDocumentoBolla() {
|
|
return this.id_rigaDocumentoBolla;
|
|
}
|
|
|
|
public void setId_rigaDocumentoBolla(long id_rigaDocumentoBolla) {
|
|
this.id_rigaDocumentoBolla = id_rigaDocumentoBolla;
|
|
}
|
|
|
|
public String getCodicePancale() {
|
|
return (this.codicePancale == null) ? AB_EMPTY_STRING : this.codicePancale.trim();
|
|
}
|
|
|
|
public void setCodicePancale(String codicePancale) {
|
|
this.codicePancale = codicePancale;
|
|
}
|
|
|
|
public Date getDataDocumentoA() {
|
|
return this.dataDocumentoA;
|
|
}
|
|
|
|
public void setDataDocumentoA(Date dataDocumentoA) {
|
|
this.dataDocumentoA = dataDocumentoA;
|
|
}
|
|
|
|
public Date getDataDocumentoDa() {
|
|
return this.dataDocumentoDa;
|
|
}
|
|
|
|
public void setDataDocumentoDa(Date dataDocumentoDa) {
|
|
this.dataDocumentoDa = dataDocumentoDa;
|
|
}
|
|
|
|
public long getProgDocumento() {
|
|
return this.progDocumento;
|
|
}
|
|
|
|
public void setProgDocumento(long progDocumento) {
|
|
this.progDocumento = progDocumento;
|
|
}
|
|
|
|
public long getProgDocumentoA() {
|
|
return this.progDocumentoA;
|
|
}
|
|
|
|
public void setProgDocumentoA(long progDocumentoA) {
|
|
this.progDocumentoA = progDocumentoA;
|
|
}
|
|
|
|
public long getId_documentoBolla() {
|
|
return this.id_documentoBolla;
|
|
}
|
|
|
|
public void setId_documentoBolla(long id_documentoBolla) {
|
|
this.id_documentoBolla = id_documentoBolla;
|
|
}
|
|
}
|