Ejemplo n.º 1
0
  /**
   * Query special price
   *
   * @param request HttpServletRequest
   * @param form ActionForm
   * @return String Return query page,forward = "specPriceViewList"
   */
  public String specPriceViewList(HttpServletRequest request, ActionForm form) {
    String forward = "specPriceViewList";

    try {
      SpecPriceForm uf = (SpecPriceForm) form;
      //			SpecPriceBo ubo = new SpecPriceBo();
      request.setAttribute("specPriceList", specPriceBo.list(uf));
    } catch (Exception e) {
      e.printStackTrace();
    }
    return forward;
  }
Ejemplo n.º 2
0
  /**
   * View special price details
   *
   * @param request HttpServletRequest
   * @param form ActionForm
   * @return String Return details page,forward = "detial"
   */
  public String specPriceViewDetial(HttpServletRequest request, ActionForm form) {
    String forward = "detial";
    try {

      String chkId = (String) request.getParameter("id");
      chkId = chkId.trim();

      if (chkId != null && !chkId.equals("")) {
        //				SpecPriceBo bo = new SpecPriceBo();
        SpecPriceForm uf = new SpecPriceForm();
        uf = specPriceBo.find(chkId);

        request.setAttribute("specPriceForm", uf);
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
    return forward;
  }