Package org.blueoxygen.postila.entity

Examples of org.blueoxygen.postila.entity.ItemDetail


            for(ItemDetail id : itemDetails){
                if(id.getSerialNo().equalsIgnoreCase(txtSerialNumber.getText())){
                    r = false;
                }
            }
            ItemDetail temp = (ItemDetail) sess.createQuery("FROM "+ItemDetail.class.getName()+" as itd WHERE itd.status=:status and itd.itemWarehouse=:item and itd.serialNo=:sn")
                    .setParameter("status", ItemDetail.AVAILABLE)
                    .setParameter("item", itemWarehouseFrom)
                    .setParameter("sn", txtSerialNumber.getText())
                    .uniqueResult();
            if(temp == null){
                r = false;
            }
            if(r){
                ItemDetail itemDetail = temp;
                itemDetails.add(itemDetail);
                model.addRow(new Object[]{txtSerialNumber.getText(), txtItemsType.getText()});
            } else {
                JOptionPane.showMessageDialog(this, "Serial Number doesn't exist");
            }
View Full Code Here


                                        stds.add(std);
                                    }
                                    if(evt.getPropertyName().equalsIgnoreCase("ItemDetails")){
                                        List ar = (List) evt.getNewValue();
                                        for(Object o : ar){
                                            ItemDetail i = (ItemDetail) o;
                                            LogInformation log = new LogInformation();
                                            log.setActiveFlag(1);
                                            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                                            log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
                                            i.setStockTransfer(st);
                                            i.setStatus(ItemDetail.TRANSFERED);
                                            i.setLogInformation(log);
                                        }
                                        listData.add(ar);
                                    }
                                    tfItemCode.setText("");
                                    tfItemCode.requestFocus();
View Full Code Here

                    sess.saveOrUpdate(tmp.getItemWarehouseFrom());
                    sess.saveOrUpdate(tmp.getItemWarehouseTo());
                    for(Object a : listData){
                        List li = (List)a;
                        for(Object b : li){
                            ItemDetail id = (ItemDetail) b;
                            sess.saveOrUpdate(id);
                        }
                    }
                    sess.saveOrUpdate(tmp);
                }
View Full Code Here

                    .list().isEmpty()){
                r = false;
            }
           
            if(r){
                ItemDetail itemDetail = new ItemDetail();
                itemDetail.setItemWarehouse(itemWarehouse);
                itemDetail.setSerialNo(txtSerialNumber.getText());
                itemDetails.add(itemDetail);
                model.addRow(new Object[]{txtSerialNumber.getText(), txtItemsType.getText()});
            } else {
                JOptionPane.showMessageDialog(this, "Duplicate Serial Number");
           
View Full Code Here

                                        rds.add(rd);
                                    }
                                    if(evt.getPropertyName().equalsIgnoreCase("ItemDetails")){
                                        List ar = (List) evt.getNewValue();
                                        for(Object o : ar){
                                            ItemDetail i = (ItemDetail) o;
                                            LogInformation log = new LogInformation();
                                            log.setActiveFlag(1);
                                            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                                            log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
                                            i.setReceiveDetail(rd);
                                            i.setStatus(ItemDetail.AVAILABLE);
                                            i.setLogInformation(log);
                                        }
                                        listData.add(ar);
                                    }
                                    tfItemCode.setText("");
                                    tfItemCode.requestFocus();
View Full Code Here

            tmp.getItemWarehouse().setQuantity(""+(Long.parseLong(tmp.getItemWarehouse().getQuantity())+Long.parseLong(tmp.getQuantity())));
            sess.saveOrUpdate(tmp.getItemWarehouse());
            for(Object a : listData){
                List li = (List)a;
                for(Object b : li){
                    ItemDetail id = (ItemDetail) b;
                    id.setStatus(ItemDetail.AVAILABLE);
                    sess.saveOrUpdate(id);
                }
            }
            sess.saveOrUpdate(tmp);
        }
View Full Code Here

                                        sds.add(sd);
                                    }
                                    if(evt.getPropertyName().equalsIgnoreCase("ItemDetails")){
                                        List ar = (List) evt.getNewValue();
                                        for(Object o : ar){
                                            ItemDetail i = (ItemDetail) o;
                                            LogInformation log = new LogInformation();
                                            log.setActiveFlag(1);
                                            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                                            log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
                                            i.setShipmentDetail(sd);
                                            i.setStatus(ItemDetail.SOLD);
                                            i.setLogInformation(log);
                                        }
                                        listData.add(ar);
                                    }
                                    tfItemCode.setText("");
                                    tfItemCode.requestFocus();
View Full Code Here

                tmp.getItemWarehouse().setQuantity(""+(Long.parseLong(tmp.getItemWarehouse().getQuantity())-Long.parseLong(tmp.getQuantity())));
                sess.saveOrUpdate(tmp.getItemWarehouse());
                for(Object a : listData){
                    List li = (List)a;
                    for(Object b : li){
                        ItemDetail id = (ItemDetail) b;
                        sess.saveOrUpdate(id);
                    }
                }
                sess.saveOrUpdate(tmp);
            }
View Full Code Here

                                        posItems.add(posItem);
                                    }
                                    if(evt.getPropertyName().equalsIgnoreCase("ItemDetails")){
                                        List ar = (List) evt.getNewValue();
                                        for(Object o : ar){
                                            ItemDetail i = (ItemDetail) o;
                                            LogInformation log = new LogInformation();
                                            log.setActiveFlag(1);
                                            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                                            log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
                                            i.setPosItem(posItem);
                                            i.setStatus(ItemDetail.SOLD);
                                            i.setLogInformation(log);
                                        }
                                        listData.add(ar);
                                    }
                                    tfItemCode.setText("");
                                    tfItemCode.requestFocus();
View Full Code Here

                tmp.getItemWarehouse().setQuantity(""+(Long.parseLong(tmp.getItemWarehouse().getQuantity())-Long.parseLong(tmp.getQuantity())));
                sess.saveOrUpdate(tmp.getItemWarehouse());
                for(Object a : listData){
                    List li = (List)a;
                    for(Object b : li){
                        ItemDetail id = (ItemDetail) b;
                        sess.saveOrUpdate(id);
                    }
                }
                sess.saveOrUpdate(tmp);
            }
View Full Code Here

TOP

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

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.