Examples of YearReportId


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

    {
      SimpleDateFormat sdfy = new SimpleDateFormat("yyyy");//得到的日期是yyyy-1-1
      try {
        String yDateString = sdfy.format(queryDatePar);
        Date yDate = sdfy.parse(stringValue(yDateString));
        YearReportId reportID = new YearReportId(template.getId(), new Timestamp(yDate.getTime()));
        yearReport = yearReportDAO.findById(reportID);
        if(yearReport!=null&&!queryStyle.equalsIgnoreCase("refresh"))
        {
          //不是刷新模式,则直接返回离线库中的值
          bean.set("code", yearReport.getCode());
View Full Code Here

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

    List<ReportTemplate>templates = reportTemplateDAO.findByProperty("reportType", "year");
    Date timeStamp = new Date();
    for(ReportTemplate template:templates)
    {
      String code = getReport(template, date);//实例化报表
      YearReportId ID = new YearReportId(template.getId(), new Timestamp(date.getTime()));
      YearReport yearReport = new YearReport(ID);
      yearReport.setCode(code);
      yearReport.setUpdateTime(new Timestamp(timeStamp.getTime()));
      yearReportDAO.merge(yearReport);
    }
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.