Пример #1
0
 private void setHttpRequestStockPlace(HttpServletRequest request, OutMgr outMgr) {
   outMgr.setCurrentInventoryPlace(request.getParameter("place"));
   outMgr.setLocationPlace(
       (LocationPlace)
           Utility.getObject(
               outMgr.getStockPlaceMeta().getStockPlaceList(), request.getParameter("place")));
 }
Пример #2
0
  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");
    }
  }