23242526272829
} return ret; } static Ticket toViewTicket(TicketDTO t) { return new Ticket(t.getId(), t.getDataEmissaolong(), t.getHoraEmissaolong()); }
48495051525354555657
void generateTicket() throws NegocioException { fachada.GenerateTicket(); } double liberaTicket(int rowSelec) throws NegocioException{ Ticket t = getTicket(rowSelec); double ret = fachada.ExecutaPagamento(t); fachada.liberaTicket(t); return ret; }
108109110111112113114115116
ListModel getListaFuncModel() { return modelFunc; } double extravio(int rowSelec) throws NegocioException { Ticket t = (Ticket)modelTicket.getDataVector().get(rowSelec); double aux = fachada.extravio(t); return aux; }
114115116117118119120121122123
double aux = fachada.extravio(t); return aux; } void liberaTicketSemPgto(int rowSelec) throws NegocioException{ Ticket t = (Ticket) modelTicket.getDataVector().get(rowSelec); fachada.liberaSemPagamento(t); }
4546474849505152535455
} @Override public Ticket GenerateTicket() throws NegocioException { try{ Ticket ret = convercao.toViewTicket(dao.GenerateTicket()); return ret; } catch(DAOSQLExcep e){ throw new NegocioException(e.getMessage()); }