luoyb
2024-06-07 6ca0f85f69b5a3d52d7d9cd755e032ae338f5a60
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/util/CreatePdf.java
@@ -337,20 +337,20 @@
      EmpBaseInfo empBaseInfo = empBaseInfoList.get(0);
      float[] ls={3.0f,3.0f,3.0f,3.0f};
      PdfPTable workheadtable = createTable(ls);
      PdfPTable empPhysicalheadtable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable empContractInfotable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable empJobChangetable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable leaveInfotable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable resigntable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f});
      PdfPTable dimissionAttendtable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable dimissionLogtable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable unemploymenttable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable insurancetable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable accidentCasestable = createTable(new float[]{2.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable empPhysicalheadtable = createTable(empPhysicalheadlength);
      PdfPTable empContractInfotable = createTable(empContractInfolength);
      PdfPTable empJobChangetable = createTable(empJobChangelength);
      PdfPTable leaveInfotable = createTable(leaveInfolength);
      PdfPTable resigntable = createTable(resignlength);
      PdfPTable dimissionAttendtable = createTable(dimissionAttendlength);
      PdfPTable dimissionLogtable = createTable(dimissionLoglength);
      PdfPTable unemploymenttable = createTable(unemploymentlength);
      PdfPTable insurancetable = createTable(insurancelength);
      PdfPTable accidentCasestable = createTable(accidentCaseslength);
      PdfPTable occtable = createTable(occupationallength);
      PdfPTable laborTroubletable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f,3.0f});
      PdfPTable badRecordtable = createTable(new float[]{3.0f,3.0f,3.0f,3.0f});
      PdfPTable remarkInfotable = createTable(new float[]{3.0f,3.0f});
      PdfPTable laborTroubletable = createTable(laborTroublelength);
      PdfPTable badRecordtable = createTable(badRecordlength);
      PdfPTable remarkInfotable = createTable(remarkInfolength);
      Object[][] basicDatas = {
            {"编号",empBaseInfo.getEmpNumb(),
                  "姓名",empBaseInfo.getEmpName(),
@@ -570,6 +570,7 @@
            empContractInfotable.addCell(createCell(user.getContractPeriod()==null?"":String.valueOf(user.getContractPeriod()), textfont));
            empContractInfotable.addCell(createCell(user.getContractStatusName()==null?"":user.getContractStatusName(), textfont));
            empContractInfotable.addCell(createCell(user.getTransactor()==null?"":user.getTransactor() , textfont));
            empContractInfotable.addCell(createCell(user.getRemark()==null?"":user.getRemark() , textfont));
         }
      }
      int re3=1;
@@ -584,6 +585,8 @@
            empJobChangetable.addCell(createCell(user.get("oldJobName")==null?"":user.get("oldJobName").toString(), textfont));
            empJobChangetable.addCell(createCell(user.get("changeDate")==null?"":user.get("changeDate").toString(), textfont));
            empJobChangetable.addCell(createCell(user.get("changeType")==null?"":user.get("changeType").toString(), textfont));
            empJobChangetable.addCell(createCell(user.get("changeReason")==null?"":user.get("changeReason").toString(), textfont));
         }
      }
      int re4=1;
@@ -591,6 +594,7 @@
         int size = records1.size();
         for (int i = 0; i < size; i++) {
            Map user = records1.get(i);
            dimissionLogtable.addCell(createCell(user.get("deptName")==null?"":user.get("deptName").toString(), textfont));
            dimissionLogtable.addCell(createCell(user.get("entryDate")==null?"":user.get("entryDate").toString(), textfont));
            dimissionLogtable.addCell(createCell(user.get("dimissionDate")==null?"":user.get("dimissionDate").toString(), textfont));
            dimissionLogtable.addCell(createCell(user.get("dimissionType")==null?"":user.get("dimissionType").toString(), textfont));