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.SOLD)
                    .setParameter("item", itemWarehouse)
                    .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


            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.SOLD)
                    .setParameter("item", itemWarehouse)
                    .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

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.