Package com.openbravo.pos.ticket

Examples of com.openbravo.pos.ticket.TicketInfo


        String place = (String) floorForm.getId();
        String str = (String) floorForm.getMode();
        String[] array = floorForm.getParameters();
        List<TicketLineInfo> linesList = new ArrayList<TicketLineInfo>();
        List products = new ArrayList<ProductInfoExt>();
        TicketInfo ticket = manager.findTicket(place);
        linesList = ticket.getM_aLines();
        if (array != null) {
            for (int i = 0; i < array.length; i++) {
                linesList.get(Integer.valueOf(array[i]) - 0).setMultiply(linesList.get(Integer.valueOf(array[i]) - 0).getMultiply() + 1);    //strange
            }
        }
View Full Code Here


        Connection con = null;
        PreparedStatement ps = null;
        ResultSet rs = null;

        String sqlStr = "Select CONTENT from SHAREDTICKETS where ID = ?";
        TicketInfo ticket = new TicketInfo();
        try {
            //get connection
            con = getConnection();
            //prepare statement
            ps = con.prepareStatement(sqlStr);
View Full Code Here

    public void initTicket(String id) {
        Connection con = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        String sqlStr = "INSERT INTO SHAREDTICKETS (ID, NAME,CONTENT) VALUES (?, ?, ?)";
        TicketInfo ticket = new TicketInfo();
        try {
            //get connection
            con = getConnection();
            //prepare statement
            ps = con.prepareStatement(sqlStr);
            ps.setString(1, id);
            ps.setString(2, ticket.getName());
            ByteArrayOutputStream bytes = new ByteArrayOutputStream();
            ObjectOutputStream out = new ObjectOutputStream(bytes);
            out.writeObject(ticket);
            ps.setBytes(3, bytes.toByteArray());
            //execute
View Full Code Here

*/
public class TicketLineDAO extends BaseJdbcDAO {

    public List<TicketLineInfo> findLinesByTicket(String ticketId) {
        TicketDAO ticketDao = new TicketDAO();
        TicketInfo ticket = ticketDao.getTicket(ticketId);

        return ticket.getM_aLines();

    }
View Full Code Here

    }

    @Override
    protected TicketInfo map2VO(ResultSet rs) throws SQLException {
        ObjectInputStream in = null;
        TicketInfo ticket = new TicketInfo();

        return ticket;

    }
View Full Code Here

TOP

Related Classes of com.openbravo.pos.ticket.TicketInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.