<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 41, comments - 15, trackbacks - 0, articles - 1
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    在jsp中使用jquery的ajax

    Posted on 2012-04-18 16:36 yuhaibo736 閱讀(2285) 評論(2)  編輯  收藏
    jQuery.ajax({
           url: 'getAssessmentStaffEvaluation.html',
           type: 'post',
           data: 'userId=' + userid + '&startDate=' + startDate + '&endDate=' + endDate,
           dataType:'json',
           success: function(returnObj){
            $("#countTd").text("服務客戶次數:" + returnObj.customerService + "    閱讀報告篇數:" + returnObj.reportReadLog +"    撰寫產品篇數:" + returnObj.htreport + "    完成任務情況:" + returnObj.task + "    工作申請情況:" + returnObj.applyTask);
           }
          });

    public ModelAndView getAssessmentStaffEvaluationHandler(HttpServletRequest request, HttpServletResponse response)
             throws ServletException, IOException, ParseException {

      String userId = Utils.trim(request.getParameter("userId"));
      String startDate = Utils.trim(request.getParameter("startDate"));
      String endDate = Utils.trim(request.getParameter("endDate"));
      SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
      Map param = new HashMap();
      param.put("inputid", userId);
      param.put("beginDate", sdf.parse(startDate));
      param.put("endDate", sdf.parse(endDate));
      Response response1 = customerServiceService.getCustomerServiceCount(param);
      Integer count1 = response1.getReturnInt();

      Calendar c = Calendar.getInstance();
      c.setTime(sdf.parse(endDate));
      c.add(Calendar.DATE, 1);
      Map param1 = new HashMap();
      param1.put("userid", userId);
      param1.put("beginDate", sdf.parse(startDate));
      param1.put("endDate", c.getTime());
      Response response2 = reportReadLogService.getReportReadLogCount(param1);
      Integer count2 = (Integer) response2.getReturnObject();

      Response response3 = htreportService.getHtreportCount(param1);
      Integer count3 = (Integer) response3.getReturnObject();

      Map param2 = new HashMap();
      param2.put("createId", userId);
      param2.put("flag", 1);
      param2.put("startTime", sdf.parse(startDate));
      param2.put("endTime", c.getTime());
      Response response4 = taskService.getTaskCount(param2);
      Integer count4 = (Integer) response4.getReturnObject();

      Map param3 = new HashMap();
      param3.put("createId", userId);
      param3.put("beginDate", sdf.parse(startDate));
      param3.put("endDate", c.getTime());
      Response response5 = applyTaskService.getApplyTaskCount(param3);
      Integer count5 = (Integer) response5.getReturnObject();

      response.setContentType("text/json");
      PrintWriter out = response.getWriter();
      out.println("{\"customerService\":\"" + count1 + "\", \"reportReadLog\":\"" + count2 + "\", \"htreport\":\""
              + count3 + "\", \"task\":\"" + count4 + "\", \"applyTask\":\"" + count5 + "\"}");
      out.flush();
      out.close();

      return null;
     }


    評論

    # re: 在jsp中使用jquery的ajax  回復  更多評論   

    2014-10-28 14:45 by fdsa
    sadf

    # re: 在jsp中使用jquery的ajax[未登錄]  回復  更多評論   

    2016-01-21 13:51 by oo
    的地方是否

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲国产综合精品中文字幕| 久久精品免费一区二区| 美女免费视频一区二区三区| 亚洲一卡一卡二新区无人区| 亚洲午夜电影一区二区三区| 亚洲免费一级视频| 亚洲国产精品久久人人爱| 亚洲经典在线中文字幕| 亚洲性猛交xx乱| 97se亚洲国产综合自在线| 亚洲GV天堂GV无码男同| 久久精品国产亚洲AV天海翼| 日韩亚洲人成网站| 国产精品午夜免费观看网站| 国产免费人成视频尤勿视频| 99精品全国免费观看视频..| 久久爰www免费人成| 中国人xxxxx69免费视频| 57PAO成人国产永久免费视频| 青草草色A免费观看在线| 国内免费高清在线观看| 白白国产永久免费视频| 又色又污又黄无遮挡的免费视| www国产亚洲精品久久久| 国产日韩成人亚洲丁香婷婷| 亚洲日韩激情无码一区| 中文字幕亚洲综合久久2| 国产亚洲国产bv网站在线 | 国产精品免费观看久久| 日本不卡免费新一二三区| 亚洲国产精品自产在线播放| 中文字幕亚洲不卡在线亚瑟| 亚洲综合精品香蕉久久网97| 亚洲成a人片在线看| 一级成人生活片免费看| 午夜影院免费观看| 成人在线免费观看| 一本色道久久综合亚洲精品高清| 亚洲高清国产拍精品26U| 2020久久精品亚洲热综合一本| 免费亚洲视频在线观看|