public void servicePerfilturnoTableContent(
      HttpServletRequest request, HttpServletResponse response)
      throws IOException, ServletException, TorqueException {
    utf8RequestService(request);
    int numElemPedidosBD = 40;
    int gap = 0; // gap = viewedRows - numElemVisiblesUltPag	
    DinamicGridBean dgb = WebUtils.getDinamicGridBeanParam(request, numElemPedidosBD, gap);
    Criteria c = PerfilturnoManager.buildSearchCriteria(dgb);
    c = criteriaPerfilturnoTableContent(request, c);
    PerfilturnoGroupBean cgb = PerfilturnoManager.getPerfilturnos(c);
    dgb.setTotalSize(cgb.getTotalSize());

    String[] methodos =
        new String[] {
          PerfilturnoHelper.IDPERFIL_GET_METHOD_NAME + "PerfilturnoParsed",
          PerfilturnoHelper.IDTURNO_GET_METHOD_NAME + "PerfilturnoParsed",
          PerfilturnoHelper.VALORCOSTE_GET_METHOD_NAME + "PerfilturnoParsed",
          "getEditPerfilturno",
          "getDeletePerfilturno"
        };

    StringBuffer cadena = null;
    cadena =
        AjaxUtils.buildXmlAjaxResponseTableContentFromListObj(
            cgb.getAlmacen(), methodos, PerfilturnoHelper.IDTP_GET_METHOD_NAME, dgb, "ISO-8859-1");
    cadena.insert(
        cadena.indexOf("</ajax-response>"),
        "<response type='object' id='divPath'>"
            + getPathTableContentPerfilturno(request, response)
            + "</response>");
    xmlResponseService(response, cadena);
  }
  public void servicePerfilturnoUlContent(HttpServletRequest request, HttpServletResponse response)
      throws IOException, ServletException {
    utf8RequestService(request);
    String[] methodos = new String[] {"getULContentPerfilturnoParsed"};
    String param = WebUtils.getStringParam(request, "value");

    PerfilturnoGroupBean mgb =
        PerfilturnoManager.getPerfilturnos(PerfilturnoManager.buildSearchCriteria(param));
    simpleResponseService(
        response,
        AjaxUtils.buildAjaxULContentFromListObj(
            mgb.getAlmacen(), methodos, PerfilturnoHelper.COMPLEX_ID_GET_METHOD, "Perfilturno"));
  }
Esempio n. 3
0
 public String getComplexId() {
   ArrayList a = new ArrayList();
   a.add(Integer.toString(this.getId()));
   return AjaxUtils.concatenateIdFields(a);
 }
 protected StringBuffer updateValorcosteResponseCallBack(String s) {
   ArrayList a = AjaxUtils.splitIdFields(s);
   return new StringBuffer(
       PerfilturnoManager.getPerfilturno(Integer.parseInt(a.get(0).toString()))
           .getValorcostePerfilturnoParsed());
 }