Package org.jallinone.warehouse.java

Examples of org.jallinone.warehouse.java.InventoryVO


   * Callback method invoked when the user has double clicked on the selected row of the grid.
   * @param rowNumber selected row index
   * @param persistentObject v.o. related to the selected row
   */
  public void doubleClick(int rowNumber,ValueObject persistentObject) {
    InventoryVO vo = (InventoryVO)persistentObject;
    InventoryItemsFrame f = new InventoryItemsFrame(frame,vo);
    f.setParentFrame(frame);
    frame.pushFrame(f);
  }
View Full Code Here


   * @param row selected row index
   * @param attributeName attribute name that identifies the selected grid column
   * @return <code>true</code> if the selected cell is editable, <code>false</code> otherwise
   */
  public boolean isCellEditable(GridControl grid,int row,String attributeName) {
    InventoryVO vo = (InventoryVO)grid.getVOListTableModel().getObjectForRow(row);
    if (!vo.getStateWAR06().equals(ApplicationConsts.OPENED))
      return false;
    return super.isCellEditable(grid,row,attributeName);
  }
View Full Code Here

  /**
   * Callback method invoked when the user has clicked on the insert button
   * @param valueObject empty value object just created: the user can manage it to fill some attribute values
   */
  public void createValueObject(ValueObject valueObject) throws Exception {
    InventoryVO vo = (InventoryVO)valueObject;
    vo.setCompanyCodeSys01WAR06(frame.getCompanyCodeSys01());
    vo.setWarehouseCodeWar01WAR06(frame.getWarehouseCodeWar01());
    vo.setStartDateWAR06(new java.sql.Date(System.currentTimeMillis()));
    vo.setStateWAR06(ApplicationConsts.OPENED);
    vo.setItemTypeWAR06(frame.getItemType());
  }
View Full Code Here

    return "insertInventory";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    InventoryVO vo = (InventoryVO)inputPar;
    try {
      Inventories bean = (Inventories)JAIOBeanFactory.getInstance().getBean(Inventories.class);
      vo = bean.insertInventory(vo,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());

      return new VOResponse(vo);
View Full Code Here

  /**
   * Callback method invoked when the user has clicked on the insert button
   * @param valueObject empty value object just created: the user can manage it to fill some attribute values
   */
  public void createValueObject(ValueObject valueObject) throws Exception {
    InventoryVO inventoryVO = frame.getInventory();
    InventoryItemVO vo = (InventoryItemVO)valueObject;
    vo.setCompanyCodeSys01WAR07(inventoryVO.getCompanyCodeSys01WAR06());
    vo.setProgressiveWar06WAR07(inventoryVO.getProgressiveWAR06());
    vo.setQtyWAR07(new BigDecimal(1));
    vo.setStateWAR07(ApplicationConsts.OPENED);
  }
View Full Code Here


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    try {
      Object[] pars = (Object[])inputPar;
      InventoryVO vo = (InventoryVO)pars[0];
      BigDecimal progressiveHIE02 = (BigDecimal)pars[1];
      BigDecimal progressiveHIE01 = (BigDecimal)pars[2];

      Inventories bean = (Inventories)JAIOBeanFactory.getInstance().getBean(Inventories.class);
      Response answer = bean.importInventoryItems(vo,progressiveHIE02,progressiveHIE01,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

  public VOListResponse updateInventories(ArrayList oldVOs,ArrayList newVOs,String serverLanguageId,String username) throws Throwable {
    Connection conn = null;
    try {
      if (this.conn==null) conn = getConn(); else conn = this.conn;

      InventoryVO oldVO = null;
      InventoryVO newVO = null;
      Response res = null;

      HashSet pkAttrs = new HashSet();
      pkAttrs.add("companyCodeSys01WAR06");
      pkAttrs.add("progressiveWAR06");
View Full Code Here

    Connection conn = null;
    try {
      if (this.conn==null) conn = getConn(); else conn = this.conn;
      stmt = conn.createStatement();

      InventoryVO vo = null;
      for(int i=0;i<list.size();i++) {
        vo = (InventoryVO)list.get(i);

        // phisically  delete records in WAR07...
        stmt.execute(
          "delete from WAR08_INVENTORY_S_N where PROGRESSIVE_WAR06="+vo.getProgressiveWAR06()
        );

        // phisically  delete records in WAR07...
        stmt.execute(
          "delete from WAR07_INVENTORY_ITEMS where PROGRESSIVE_WAR06="+vo.getProgressiveWAR06()
        );

        // phisically delete the record in WAR06...
        stmt.execute(
          "delete from WAR06_INVENTORIES "+
          "where COMPANY_CODE_SYS01='"+vo.getCompanyCodeSys01WAR06()+"' and PROGRESSIVE="+vo.getProgressiveWAR06()
        );
      }

      return new VOResponse(new Boolean(true));
    }
View Full Code Here

TOP

Related Classes of org.jallinone.warehouse.java.InventoryVO

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.