www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,159 @@
|
|||
package it.acxent.caship;
|
||||
|
||||
public class BarcodeCash {
|
||||
private long posizione;
|
||||
|
||||
private long larghezza;
|
||||
|
||||
private long altezza;
|
||||
|
||||
private long posizioneTesto;
|
||||
|
||||
private String fontTesto;
|
||||
|
||||
private String tipoBarcode;
|
||||
|
||||
private String code;
|
||||
|
||||
private long allineamentoQRCode;
|
||||
|
||||
private long dimensioneQRCode;
|
||||
|
||||
private long livelloCorrezioneQRCode;
|
||||
|
||||
public static String BARCODE_CODE39 = "CODE39";
|
||||
|
||||
public static String BARCODE_CODE128 = "CODE128";
|
||||
|
||||
public static String BARCODE_QRCODE1 = "QRCODE1";
|
||||
|
||||
public static String BARCODE_QRCODE2 = "QRCODE2";
|
||||
|
||||
public static long POSIZIONE_TESTO_DISABLED = 0L;
|
||||
|
||||
public static long POSIZIONE_TESTO_SOPRA = 1L;
|
||||
|
||||
public static long POSIZIONE_TESTO_SOTTO = 2L;
|
||||
|
||||
public static long POSIZIONE_TESTO_SOPRA_SOTTO = 3L;
|
||||
|
||||
public static String FONT_A = "A";
|
||||
|
||||
public static String FONT_B = "B";
|
||||
|
||||
public static String FONT_C = "C";
|
||||
|
||||
public static long QRCODE_ALLINEAMENTO_SINISTRA = 0L;
|
||||
|
||||
public static long QRCODE_ALLINEAMENTO_CENTRO = 1L;
|
||||
|
||||
public static long QRCODE_ALLINEAMENTO_DESTRA = 2L;
|
||||
|
||||
public static long QRCODE_LIVELLO_CORREZIONE_BASSO = 0L;
|
||||
|
||||
public static long QRCODE_LIVELLO_CORREZIONE_MEDIO_BASSO = 1L;
|
||||
|
||||
public static long QRCODE_LIVELLO_CORREZIONE_MEDIO_ALTO = 2L;
|
||||
|
||||
public static long QRCODE_LIVELLO_CORREZIONE_ALTO = 3L;
|
||||
|
||||
public long getPosizione() {
|
||||
return this.posizione;
|
||||
}
|
||||
|
||||
public void setPosizione(long posizione) {
|
||||
if (posizione >= 0L && posizione <= 511L) {
|
||||
this.posizione = posizione;
|
||||
} else {
|
||||
this.posizione = 10L;
|
||||
}
|
||||
}
|
||||
|
||||
public long getLarghezza() {
|
||||
return this.larghezza;
|
||||
}
|
||||
|
||||
public void setLarghezza(long larghezza) {
|
||||
if (larghezza >= 1L && larghezza <= 8L) {
|
||||
this.larghezza = larghezza;
|
||||
} else {
|
||||
this.larghezza = 1L;
|
||||
}
|
||||
}
|
||||
|
||||
public long getAltezza() {
|
||||
return this.altezza;
|
||||
}
|
||||
|
||||
public void setAltezza(long altezza) {
|
||||
if (altezza >= 1L && altezza <= 255L) {
|
||||
this.altezza = altezza;
|
||||
} else {
|
||||
this.altezza = 66L;
|
||||
}
|
||||
}
|
||||
|
||||
public long getPosizioneTesto() {
|
||||
return this.posizioneTesto;
|
||||
}
|
||||
|
||||
public void setPosizioneTesto(long posizioneTesto) {
|
||||
this.posizioneTesto = posizioneTesto;
|
||||
}
|
||||
|
||||
public String getFontTesto() {
|
||||
return this.fontTesto;
|
||||
}
|
||||
|
||||
public void setFontTesto(String fontTesto) {
|
||||
this.fontTesto = fontTesto;
|
||||
}
|
||||
|
||||
public String getTipoBarcode() {
|
||||
return this.tipoBarcode;
|
||||
}
|
||||
|
||||
public void setTipoBarcode(String tipoBarcode) {
|
||||
this.tipoBarcode = tipoBarcode;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code.equals(null) ? "" : this.code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
if (getTipoBarcode() == BARCODE_CODE128) {
|
||||
this.code = "{B" + code;
|
||||
} else {
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
|
||||
public long getAllineamentoQRCode() {
|
||||
return this.allineamentoQRCode;
|
||||
}
|
||||
|
||||
public void setAllineamentoQRCode(long allineamentoQRCode) {
|
||||
this.allineamentoQRCode = allineamentoQRCode;
|
||||
}
|
||||
|
||||
public long getDimensioneQRCode() {
|
||||
return this.dimensioneQRCode;
|
||||
}
|
||||
|
||||
public void setDimensioneQRCode(long dimensioneQRCode) {
|
||||
if (dimensioneQRCode >= 1L && dimensioneQRCode <= 16L) {
|
||||
this.dimensioneQRCode = dimensioneQRCode;
|
||||
} else {
|
||||
this.dimensioneQRCode = 66L;
|
||||
}
|
||||
}
|
||||
|
||||
public long getLivelloCorrezioneQRCode() {
|
||||
return this.livelloCorrezioneQRCode;
|
||||
}
|
||||
|
||||
public void setLivelloCorrezioneQRCode(long livelloCorrezioneQRCode) {
|
||||
this.livelloCorrezioneQRCode = livelloCorrezioneQRCode;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue