Package com.supinfo.analytics.entities

Examples of com.supinfo.analytics.entities.Sale


            channelDAO.addChannel(c);
            productDAO.addProduct(p);
            customerDAO.addCustomer(cu);

            Sale sale = new com.supinfo.analytics.entities.Sale();
            sale.setAgency(agency);
            sale.setAmountSold(s.getAmountSold());
            sale.setChannel(c);
            sale.setCustomer(cu);
            sale.setId(s.getSaleId());
            sale.setProduct(p);
            sale.setQuantitySold(s.getQuantitySold());

            SimpleDateFormat formatter = new SimpleDateFormat("y-M-d");
            try
            {
                sale.setTime(formatter.parse(s.getTimeId()));
            }
            catch (ParseException ex)
            {
                Logger.getLogger(SOAPService.class.getName()).log(Level.SEVERE, null, ex);
            }
View Full Code Here


               
                channelDAO.addChannel(c);
                productDAO.addProduct(p);
                customerDAO.addCustomer(cu);
               
                Sale s = new Sale();
                s.setAgency(agency);
                s.setAmountSold(BigDecimal.valueOf(jsonSale.getDouble("amountSold")));
                s.setChannel(c);
                s.setCustomer(cu);
                s.setId(jsonSale.getInt("saleId"));
                s.setProduct(p);
                s.setQuantitySold(BigDecimal.valueOf(jsonSale.getInt("quantitySold")));
               
                SimpleDateFormat formatter = new SimpleDateFormat("y-M-d");
                try
                {
                    s.setTime(formatter.parse(jsonSale.getString("timeId")));
                }
                catch (ParseException ex)
                {
                    Logger.getLogger(JSONService.class.getName()).log(Level.SEVERE, null, ex);
                }
View Full Code Here

                channelDAO.addChannel(c);
                productDAO.addProduct(p);
                customerDAO.addCustomer(cu);

                Sale s = new Sale();
                s.setAgency(agency);
                s.setAmountSold(new BigDecimal(info[SALE_AMOUNT_SOLD]));
                s.setChannel(c);
                s.setCustomer(cu);
                s.setId(Integer.valueOf(info[SALE_ID]));
                s.setProduct(p);
                s.setQuantitySold(new BigDecimal(info[SALE_QUANTITY_SOLD]));

                SimpleDateFormat formatter = new SimpleDateFormat("y-M-d");
                try
                {
                    s.setTime(formatter.parse(info[SALE_TIME]));
                }
                catch (ParseException ex)
                {
                    Logger.getLogger(CSVService.class.getName()).log(Level.SEVERE, null, ex);
                }
View Full Code Here

TOP

Related Classes of com.supinfo.analytics.entities.Sale

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.