public boolean mySave() {
    HtmlTagKit.processHtmlSpecialTag(this, "narrative_description");

    this.set("create_time", ToolKit.getCurrentTime());
    this.set("last_modified_time", ToolKit.getCurrentTime());

    return this.save();
  }
 public String reportToPdf(int reportId, String pdfType) {
   String pdfName = pdfType + "-report-" + reportId + "-" + ToolKit.getCurrentTimeStr() + ".pdf";
   Html2Pdf.genPdf(
       "http://127.0.0.1/print/" + reportId, PathKit.getWebRootPath() + "/pdf_report/" + pdfName);
   return pdfName;
 }
 public boolean myUpdate() {
   this.set("last_modified_time", ToolKit.getCurrentTime());
   return this.update();
 }
 public String genLogNumberById(int reportId) {
   String timeStamp = ToolKit.getCurrentTimeStr();
   String idStr = String.format("%06d", reportId);
   return "LN" + timeStamp + idStr;
 }