Package org.blueoxygen.postila.entity

Examples of org.blueoxygen.postila.entity.ItemWarehouse


                        itemWarehouseFrom = (ItemWarehouse) sess.createQuery("FROM "+ItemWarehouse.class.getName()+" as iw WHERE iw.item=:item and iw.warehouse=:ware")
                                .setParameter("item", items)
                                .setParameter("ware", warehouses.get(cbFrom.getSelectedIndex()))
                                .uniqueResult();
                        if(itemWarehouseFrom == null || itemWarehouseFrom.getId().equalsIgnoreCase("")){
                            itemWarehouseFrom = new ItemWarehouse();
                            LogInformation log = new LogInformation();
                            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                            log.setActiveFlag(1);
                            itemWarehouseFrom.setItem(items);
                            itemWarehouseFrom.setWarehouse(warehouses.get(cbFrom.getSelectedIndex()));
                            itemWarehouseFrom.setQuantity("0");
                            itemWarehouseFrom.setLogInformation(log);
                            sess.save(itemWarehouseFrom);
                        }
                        itemWarehouseTo = (ItemWarehouse) sess.createQuery("FROM "+ItemWarehouse.class.getName()+" as iw WHERE iw.item=:item and iw.warehouse=:ware")
                                .setParameter("item", items)
                                .setParameter("ware", warehouses.get(cbTo.getSelectedIndex()))
                                .uniqueResult();
                        if(itemWarehouseTo == null || itemWarehouseTo.getId().equalsIgnoreCase("")){
                            itemWarehouseTo = new ItemWarehouse();
                            LogInformation log = new LogInformation();
                            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                            log.setActiveFlag(1);
                            itemWarehouseTo.setItem(items);
                            itemWarehouseTo.setWarehouse(warehouses.get(cbTo.getSelectedIndex()));
View Full Code Here


                model.removeRow(model.getRowCount()-1);
        }
        if(!list.isEmpty()){
            String sContact = "";
            for(Object ob : list){
                ItemWarehouse pw = (ItemWarehouse) ob;
                model.addRow(new Object[]{pw.getItem().getItemsName(), pw.getWarehouse().getName(), pw.getQuantity()});
            }
        }
    }
View Full Code Here

                        itemWarehouse = (ItemWarehouse) sess.createQuery("FROM "+ItemWarehouse.class.getName()+" as iw WHERE iw.item=:item and warehouse=:ware")
                                .setParameter("item", items)
                                .setParameter("ware", war.get(cbWarehouse.getSelectedIndex()))
                                .uniqueResult();
                        if(itemWarehouse == null || itemWarehouse.getId().equalsIgnoreCase("")){
                            itemWarehouse = new ItemWarehouse();
                            LogInformation log = new LogInformation();
                            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                            log.setActiveFlag(1);
                            itemWarehouse.setItem(items);
                            itemWarehouse.setWarehouse(war.get(cbWarehouse.getSelectedIndex()));
View Full Code Here

                        itemWarehouse = (ItemWarehouse) sess.createQuery("FROM "+ItemWarehouse.class.getName()+" as iw WHERE iw.item=:item and warehouse=:ware")
                                .setParameter("item", items)
                                .setParameter("ware", war.get(cbWarehouse.getSelectedIndex()))
                                .uniqueResult();
                        if(itemWarehouse == null || itemWarehouse.getId().equalsIgnoreCase("")){
                            itemWarehouse = new ItemWarehouse();
                            LogInformation log = new LogInformation();
                            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                            log.setActiveFlag(1);
                            itemWarehouse.setItem(items);
                            itemWarehouse.setWarehouse(war.get(cbWarehouse.getSelectedIndex()));
View Full Code Here

                        itemWarehouse = (ItemWarehouse) sess.createQuery("FROM "+ItemWarehouse.class.getName()+" as iw WHERE iw.item=:item and warehouse=:ware")
                                .setParameter("item", items)
                                .setParameter("ware", war.get(cbWarehouse.getSelectedIndex()))
                                .uniqueResult();
                        if(itemWarehouse == null || itemWarehouse.getId().equalsIgnoreCase("")){
                            itemWarehouse = new ItemWarehouse();
                            LogInformation log = new LogInformation();
                            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                            log.setActiveFlag(1);
                            itemWarehouse.setItem(items);
                            itemWarehouse.setWarehouse(war.get(cbWarehouse.getSelectedIndex()));
View Full Code Here

TOP

Related Classes of org.blueoxygen.postila.entity.ItemWarehouse

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.