-
大小: 55KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-06-15
- 语言: Java
- 标签: highcharts
资源简介
Java和Highcharts结合实现折线图
代码片段和文件信息
package com.yuanls.operation.controller;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import javax.persistence.EntityManager;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.activiti.engine.task.Attachment;
import org.activiti.engine.task.Task;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.yuanls._comm.util.Utils;
import com.yuanls._commweb.controller.baseController;
import com.yuanls._commweb.domain.ResMessage;
import com.yuanls._commweb.domain.factory.ResMessageFactory;
import com.yuanls._limit.user.entity.LUser;
import com.yuanls.dutytask.mana.controller.DutyController;
import com.yuanls.operation.entity.OperationDef;
import com.yuanls.operation.entity.OperationTaskdetail;
import com.yuanls.operation.entity.WorkPlan;
import com.yuanls.operation.service.OperationService;
import com.yuanls.shiftschedule.service.StaffService;
import com.yuanls.uitl.PropertiesUtil;
import com.yuanls.uitl.UtilsJson;
import com.yuanls.zqx.szybzx.ybzxdutytask.dao.Dao;
import com.yuanls.zqx.szybzx.ybzxdutytask.service.WorkFlowService;
import com.yuanls.zqx.szybzx.ybzxdutytask.service.YbzxTwoService;
import net.sf.json.JSONobject;
@Controller
@RequestMapping(value = “/operation“)
public class OperationController extends baseController {
private static final long serialVersionUID = 1L;
private static final Logger LOGGER = Logger.getLogger(DutyController.class);
@Autowired
private OperationService operationService;
@Autowired
private StaffService staffService;
@Autowired
private Dao dao;
@Autowired
private YbzxTwoService ybzxTwoService;
@Autowired
private WorkFlowService workFlowService;
@RequestMapping(value = “/faultaccept“)
public String inposttaskgroup(HttpServletRequest request) {
// 1 判断是否登入
LUser user = (LUser) request.getSession().getAttribute(“user“);
if (user == null) {
return “/loginout/login“;
}
return “/operation/faultIndex“;
}
@RequestMapping(value = “/allTaskIndex“)
public String allTaskIndex(HttpServletRequest request) {
return “/operation/allTaskIndex“;
}
/**
* 查看任务
*/
@RequestMapping(value = “/checkTask“)
public String checkTask(HttpServletRequest requestHttpServletResponse responseModel model) throws Exception{
ResMessage message = ResMessageFactory.getDefaultInstance(request);
try {
String pid = request.getParameter(“opid“);
String task
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1168851 2017-05-15 17:47 折线图代码\OperationController.java
文件 1873 2016-09-27 11:18 折线图代码\UtilsJson.java
文件 3805 2017-05-09 16:37 折线图代码\dblinechart.js
文件 3320 2017-05-12 14:09 折线图代码\dblinechart.jsp
文件 4433 2017-05-11 17:34 折线图代码\dblinechart2.js
文件 3724 2017-05-12 14:09 折线图代码\dblinechart2.jsp
目录 0 2017-05-15 20:05 折线图代码\
评论
共有 条评论