Exemple #1
0
 /**
  * 查询工单
  *
  * @return
  * @throws Exception
  */
 public String queryTasks() throws Exception {
   if (taskCond == null) {
     return JSON_PAGE;
   }
   taskCond.setStart(start);
   taskCond.setLimit(limit);
   getRoot().setPage(taskService.queryTask(taskCond));
   return JSON_PAGE;
 }
Exemple #2
0
 /**
  * 查询工单打印信息
  *
  * @return
  * @throws Exception
  */
 public String queryPrintContent() throws Exception {
   String[] tasks = request.getParameterValues("tasks");
   if (tasks == null || tasks.length == 0) {
     return JSON_RECORDS;
   }
   String[] task_types = new String[tasks.length];
   task_ids = new String[tasks.length];
   cust_ids = new String[tasks.length];
   for (int i = 0; i < tasks.length; i++) {
     String[] tmp = tasks[i].split("#");
     task_types[i] = tmp[0];
     cust_ids[i] = tmp[1];
     task_ids[i] = tmp[2];
   }
   List<Map<String, Object>> records =
       taskService.queryPrintContent(task_types, cust_ids, task_ids);
   getRoot().setRecords(records);
   return JSON_RECORDS;
 }
Exemple #3
0
 public String assignTask() throws Exception {
   taskService.assignTask(this.task_ids);
   getRoot().setSuccess(true);
   return JSON_SUCCESS;
 }
Exemple #4
0
 public String cancelTask() throws Exception {
   taskService.cancelTask(this.task_ids, cancelRemark);
   getRoot().setSuccess(true);
   return JSON_SUCCESS;
 }
Exemple #5
0
 public String getTaskType() throws Exception {
   getRoot().setRecords(taskService.getTaskType());
   return JSON_RECORDS;
 }
Exemple #6
0
 public String saveNewTask() throws Exception {
   taskService.saveNewTask();
   return JSON_SUCCESS;
 }
Exemple #7
0
 public String saveBugTask() throws Exception {
   String bugCause = request.getParameter("bugCause");
   taskService.saveBugTask(bugCause);
   return JSON_SUCCESS;
 }
Exemple #8
0
 public String modifyTask() throws Exception {
   taskService.modifyTask(task_id, booksTime, taskCustName, tel, remark, bugCause);
   return JSON_SUCCESS;
 }