public void service(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    response.setCharacterEncoding("utf-8");
    response.setContentType("text/html;charset = utf-8");

    int operation = Integer.parseInt(request.getParameter(MyOpcode.Operation.OPERATION));
    int EmployeeId = Integer.parseInt(request.getParameter(MyOpcode.Employee.EmployeeId));

    PrintWriter out = response.getWriter();
    MySpring context = MySpring.getInstance();
    IBllFrame iBllFrame = (IBllFrame) context.getContext().getBean("cBllFrameImpl");

    CEntityEmployee cEntityEmployee = new CEntityEmployee.Builder().EmployeeId(EmployeeId).build();
    CEntityMissionArray cEntityMissionArray = iBllFrame.GetWaitTakeMissionArray(cEntityEmployee);

    boolean bisGet = false;
    if (cEntityMissionArray != null) {
      bisGet = true;
    }

    JSONObject outjson =
        new CEntityMission.BuildJsonObject()
            .Operation(operation)
            .Check(bisGet)
            .MyJSONArray(cEntityMissionArray.toJsonArray())
            .build();

    System.out.println(outjson);
    out.println(outjson);
    out.flush();
    out.close();
  }
  public void service(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {

    response.setCharacterEncoding("utf-8");
    response.setContentType("text/html;charset = utf-8");

    PrintWriter out = response.getWriter();
    MySpring context = MySpring.getInstance();
    IBllFrame iBllFrame = (IBllFrame) context.getContext().getBean("cBllFrameImpl");

    int MissionId = Integer.parseInt(request.getParameter(MyOpcode.Mission.MissionId));
    String MissionDelayDeadline =
        new String(
            request.getParameter(MyOpcode.MissionDelay.MissionDelayDeadline).getBytes("ISO-8859-1"),
            "utf-8");
    String MissionDelayTime =
        new String(
            request.getParameter(MyOpcode.MissionDelay.MissionDelayTime).getBytes("ISO-8859-1"),
            "utf-8");

    CEntityMission cEntityMission =
        new CEntityMission.Builder()
            .MissionId(MissionId)
            .MissionDeadline(MissionDelayDeadline)
            .build();
    CEntityMissionDelay cEntityMissionDelay =
        new CEntityMissionDelay.Builder()
            .MissionDelayTime(MissionDelayTime)
            .MissionDelayDeadline(MissionDelayDeadline)
            .build();

    boolean bisDelay = iBllFrame.delayMission(cEntityMission, cEntityMissionDelay);
    JSONObject outjson = new CEntityMission.BuildJsonObject().Check(bisDelay).build();
    System.out.println(outjson);
    out.println(outjson);
    out.flush();
    out.close();
  }