Examples of DayReportId


Examples of com.narirelays.ems.persistence.orm.DayReportId

    {
      reportType="other";//默认以other处理
    }
    if(reportType.equalsIgnoreCase("day"))//日报表
    {
      DayReportId reportID = new DayReportId(template.getId(),new Timestamp(queryDatePar.getTime()));
      dayReport = dayReportDAO.findById(reportID);
      if(dayReport!=null&&!queryStyle.equalsIgnoreCase("refresh"))//说明在报表库中找到了该报表,直接返回
      {
        //不是刷新模式,则直接返回离线库中的值
        bean.set("code", dayReport.getCode());
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.DayReportId

    List<ReportTemplate>templates = reportTemplateDAO.findByProperty("reportType", "day");
    Timestamp timeStamp = new Timestamp(new Date().getTime());
    for(ReportTemplate template:templates)
    {
      String code = getReport(template, date);//,通过date去查询单元格查询条件,实例化报表
      DayReportId ID = new DayReportId(template.getId(), new Timestamp(date.getTime()));
      DayReport dayReport = new DayReport(ID);
      dayReport.setCode(code);
      dayReport.setUpdateTime(timeStamp);
      dayReportDAO.merge(dayReport);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.