예제 #1
0
  public void setReportHeader() {
    dtfwh.setDate(new Date());
    reportHeader = new StringBuilder();
    reportHeader
        .append("Mshengu Vehicle/Driver Allocation Sheet")
        .append('\n')
        .append("Print date  : ")
        .append("\t")
        .append(dtfwh.getTodayForTbaleFormat());

    fileName = "Mshengu_Vehicle_Allocation_" + dtfwh.getTodayForTbaleFormat() + ".xls";
  }
예제 #2
0
 public String getFileName() {
   if (fileName.equals("")) {
     return fileName = "Mshengu_Vehicle_Allocation_" + dtfwh.getTodayForTbaleFormat() + ".xls";
   } else {
     return fileName;
   }
 }