aggiunta descrizione funzioni
This commit is contained in:
parent
8f1a75b4d7
commit
02e6cdb77c
@ -20,6 +20,7 @@ import java.text.ParseException;
|
|||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
@ -1936,6 +1937,11 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* funzione che calcola i prezzi dei prodotti e il totale in base alla fascia dello studente
|
||||||
|
* oppure utilizza la fascia di default
|
||||||
|
* @param model
|
||||||
|
*/
|
||||||
private void sommaColonne(MyTableModel model) {
|
private void sommaColonne(MyTableModel model) {
|
||||||
Double t = model.somma(colImporto);
|
Double t = model.somma(colImporto);
|
||||||
MyTableModel model2 = (MyTableModel) tblLista1.getModel();
|
MyTableModel model2 = (MyTableModel) tblLista1.getModel();
|
||||||
@ -3474,6 +3480,13 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
return testo;
|
return testo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* Metodo che gestisce la pressione dei bottoni relativi alle modalita di pagamento
|
||||||
|
* 0 -> a scalare
|
||||||
|
* 1 -> contanti
|
||||||
|
* 2 -> ticket
|
||||||
|
* 3 -> differito
|
||||||
|
*/
|
||||||
private void pulsantiModoPagamento() {
|
private void pulsantiModoPagamento() {
|
||||||
switch (Integer.parseInt(idModoPagamento.toString())) {
|
switch (Integer.parseInt(idModoPagamento.toString())) {
|
||||||
case 0 -> {
|
case 0 -> {
|
||||||
@ -4005,6 +4018,10 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* funzione richiamata in seguito alla selezione di una tessera
|
||||||
|
*
|
||||||
|
*/
|
||||||
public void cercaTessera() {//String QueryCF) {
|
public void cercaTessera() {//String QueryCF) {
|
||||||
MyApplication myApp = new MyApplication();
|
MyApplication myApp = new MyApplication();
|
||||||
myApp.unaVolta = false;
|
myApp.unaVolta = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user