Examples of ItemDetail


Examples of efrei.ngo.entity.ItemDetail

 
  /*
   * return a single detail of the post; content included.
   */
  public static ItemDetail dbGetPostD(String postID) {
    ItemDetail result=null;

    try{
      Statement statement = conn.createStatement();
      String sql = "SELECT postID,titleName,description,postDate,useName,content FROM forumitemlist,PersonalInformation WHERE forumitemlist.owner=PersonalInformation.id_pi AND postID="+postID;
      ResultSet rs=statement.executeQuery(sql);
     
      if(rs.next()){
        result = new ItemDetail(rs.getString("postID"), rs.getString("titleName"), rs.getString("description"),
            efrei.ngo.util.GeneralUnil.changeDateToGregorianCalendar(rs.getDate("postDate")), rs.getString("useName"),rs.getString("content"));
      }
      statement.close();
    }catch(Exception ex){
      ex.printStackTrace();
View Full Code Here

Examples of lukeperkin.craftingtableii.ItemDetail

        TileEntityCraftingTableII theTile = (TileEntityCraftingTableII)(Proxy.getPlayer(network).worldObj).getBlockTileEntity(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
       
        ArrayList<ItemDetail> Temp = new ArrayList();
        for (int i=0; i<RecipeLength; i++)
        {
          Temp.add(new ItemDetail(dataStream.readInt(),dataStream.readInt(),dataStream.readInt(),null));
        }
        int RecipeIndex = Zeldo.FindRecipe(Temp, new ItemDetail(toMake));
        if (RecipeIndex > -1) {
          ContainerClevercraft.onRequestSingleRecipeOutput(Proxy.getPlayer(network), RecipeToMake, theTile, RecipeIndex);
        }

        if (Proxy.SendContainerUpdate(Proxy.getPlayer(network)))
        {
          Proxy.SendPacketTo(Proxy.getPlayer(network), SendUpdatePacket());
        }
      }
     
      if (PacketID == kPacketTypeMaximumCraftingRequest && !Proxy.IsClient())
      {
        ItemStack toMake = new ItemStack(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
        int RecipeLength = dataStream.readInt();
        IRecipe RecipeToMake = Zeldo.getCraftingRecipe(toMake);
        TileEntityCraftingTableII theTile = (TileEntityCraftingTableII)(Proxy.getPlayer(network).worldObj).getBlockTileEntity(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
       
        ArrayList Temp = new ArrayList();
        for (int i=0; i<RecipeLength; i++)
        {
          Temp.add(new ItemDetail(dataStream.readInt(),dataStream.readInt(),dataStream.readInt(),null));
        }
        int RecipeIndex = Zeldo.FindRecipe(Temp, new ItemDetail(toMake));
        if (RecipeIndex > -1) {
          ContainerClevercraft.onRequestMaximumRecipeOutput(Proxy.getPlayer(network), RecipeToMake, theTile, RecipeIndex);
        }

        if (Proxy.SendContainerUpdate(Proxy.getPlayer(network)))
View Full Code Here

Examples of lukeperkin.craftingtableii.ItemDetail

        TileEntityCraftingTableII theTile = (TileEntityCraftingTableII)(Proxy.getPlayer(network).worldObj).getBlockTileEntity(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
       
        ArrayList<ItemDetail> Temp = new ArrayList();
        for (int i=0; i<RecipeLength; i++)
        {
          Temp.add(new ItemDetail(dataStream.readInt(),dataStream.readInt(),dataStream.readInt(),null));
        }
        int RecipeIndex = Zeldo.FindRecipe(Temp, new ItemDetail(toMake));
        if (RecipeIndex > -1) {
          ContainerClevercraft.onRequestSingleRecipeOutput(Proxy.getPlayer(network), RecipeToMake, theTile, RecipeIndex);
        }

        if (Proxy.SendContainerUpdate(Proxy.getPlayer(network)))
        {
          Proxy.SendPacketTo(Proxy.getPlayer(network), SendUpdatePacket());
        }
      }
     
      if (PacketID == kPacketTypeMaximumCraftingRequest && !Proxy.IsClient())
      {
        ItemStack toMake = new ItemStack(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
        int RecipeLength = dataStream.readInt();
        IRecipe RecipeToMake = Zeldo.getCraftingRecipe(toMake);
        TileEntityCraftingTableII theTile = (TileEntityCraftingTableII)(Proxy.getPlayer(network).worldObj).getBlockTileEntity(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
       
        ArrayList Temp = new ArrayList();
        for (int i=0; i<RecipeLength; i++)
        {
          Temp.add(new ItemDetail(dataStream.readInt(),dataStream.readInt(),dataStream.readInt(),null));
        }
        int RecipeIndex = Zeldo.FindRecipe(Temp, new ItemDetail(toMake));
        if (RecipeIndex > -1) {
          ContainerClevercraft.onRequestMaximumRecipeOutput(Proxy.getPlayer(network), RecipeToMake, theTile, RecipeIndex);
        }

        if (Proxy.SendContainerUpdate(Proxy.getPlayer(network)))
View Full Code Here

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

Examples of org.blueoxygen.postila.entity.ItemDetail

                                        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

Examples of org.blueoxygen.postila.entity.ItemDetail

                    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

Examples of org.blueoxygen.postila.entity.ItemDetail

                    .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

Examples of org.blueoxygen.postila.entity.ItemDetail

                                        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

Examples of org.blueoxygen.postila.entity.ItemDetail

            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

Examples of org.blueoxygen.postila.entity.ItemDetail

                                        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
TOP
Copyright © 2018 www.massapi.com. 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.