private void setHttpRequestStockPlace(HttpServletRequest request, OutMgr outMgr) {
   outMgr.setCurrentInventoryPlace(request.getParameter("place"));
   outMgr.setLocationPlace(
       (LocationPlace)
           Utility.getObject(
               outMgr.getStockPlaceMeta().getStockPlaceList(), request.getParameter("place")));
 }
  protected void processFindModel(
      String actionCode, String actionObject, HttpServletRequest request) throws SQLException {

    OutMgr outMgr = (OutMgr) this.getManagerFromSession(request);
    setHttpRequestStockPlace(request, outMgr);
    if (actionObject.equals("OutsourcingStock")) {
      outMgr.populateOutsourcingStockDetail();
    } else if (actionObject.equals("Material")) {
      setHttpRequestViewMaterial(request, outMgr);
      outMgr.populateMaterial();
    }
  }
  protected void initModel(String page, HttpServletRequest request) throws SQLException {

    /**
     * *********************************************************************************************************************************************************************************************
     * set entryMode *
     * ********************************************************************************************************************************************************************************************
     */
    OutMgr outMgr = new OutMgr();
    this.putManagerToSession(request, outMgr);
    if (page.equals("viewOutsourcingStock")) {
      outMgr.setEntryMode("VIEW_OUTSOURCING_STOCK");
      outMgr.getStockPlaceMeta().refreshStockPlace();
    } else if (page.equals("viewMaterial")) {
      outMgr.setEntryMode("VIEW_MATERIAL");
    }
  }
  protected void forwardView(
      String actionEvent,
      String actionObject,
      HttpServletRequest request,
      HttpServletResponse response)
      throws ServletException, IOException {

    OutMgr outMgr = (OutMgr) this.getManagerFromSession(request);
    DeBug.print("actionObject" + actionObject);
    if (outMgr.getEntryMode().equals("VIEW_OUTSOURCING_STOCK")) {
      getServletContext()
          .getRequestDispatcher("/jsp/mfg/inv/viewOutsourcingStock.jsp")
          .forward(request, response);
    } else if (outMgr.getEntryMode().equals("VIEW_MATERIAL")) {
      getServletContext()
          .getRequestDispatcher("/jsp/mfg/inv/viewMaterial.jsp")
          .forward(request, response);
    }
  }
 private void setHttpRequestViewMaterial(HttpServletRequest request, OutMgr outMgr) {
   outMgr.getViewMaterial().setStyle(request.getParameter("style"));
   outMgr.getViewMaterial().setOrderId(request.getParameter("orderId"));
   outMgr.getViewMaterial().setFromDate(request.getParameter("fromDate"));
   outMgr.getViewMaterial().setToDate(request.getParameter("toDate"));
 }