| | |
| | | cell.setCellValue("端口协议文本"); |
| | | cell.setCellStyle(cellStyle); |
| | | cell=row.createCell(1); |
| | | if(bomAcceptance.getBomAgreement()!=null||!bomAcceptance.getBomAgreement().equals("")){ |
| | | if(bomAcceptance.getBomAgreement()!=null&&bomAcceptance.getBomAgreement().length()>0){ |
| | | String agreement=bomAcceptance.getBomAgreement(); |
| | | String agreementName = agreement.substring(agreement.lastIndexOf(".")+1); |
| | | String agreementName = agreement.substring(agreement.lastIndexOf(File.separator)+1); |
| | | agreementName = agreementName.substring(0,agreementName.lastIndexOf(".")); |
| | | cell.setCellValue(agreementName); |
| | | cell.setCellStyle(cellStyle); |
| | | } |