tableDevice.addCell(cellDevice0);
for(int i=0;i
QybjProduceDevice device=devices.get(i);
Paragraph xuhaoText = new Paragraph((i+1)+".", contextFont);
cellParam.add(xuhaoText);
tableDevice.addCell(cellParam);
cellParam = new Cell();//参数名字
Paragraph deviceNameText = new Paragraph(device.getDevicename(), contextFont);
cellParam.add(deviceNameText);
tableDevice.addCell(cellParam);
cellParam = new Cell();//参数值
Paragraph sizeText = new Paragraph(device.getSize(), contextFont);
cellParam.add(sizeText);
tableDevice.addCell(cellParam);
cellParam = new Cell();//参数值
Paragraph amountText = new Paragraph(device.getAmount(), contextFont);
cellParam.add(amountText);
tableDevice.addCell(cellParam);
cellParam = new Cell();//参数值
Paragraph factoryText = new Paragraph(device.getFactory(), contextFont);
cellParam.add(factoryText);
tableDevice.addCell(cellParam);
cellParam = new Cell();//参数值
Paragraph funcText = new Paragraph(device.getFunc(), contextFont);
cellParam.add(funcText);
tableDevice.addCell(cellParam);
cellParam = new Cell();//参数值
Paragraph remark1Text = new Paragraph(device.getRemark(), contextFont);
cellParam.add(remark1Text);
tableDevice.addCell(cellParam);
}
document.add(tableDevice);
Paragraph specsTitleText = new Paragraph("三. 设备构成规范: ", contextTitle1Font);
document.add(specsTitleText);
Table tableSpecs = new Table(2,devices.size());
float[] widthSpecss = { 0.04f, 0.96f};
tableSpecs.setWidths(widthSpecss);
tableSpecs.setBorderWidth(1);
tableSpecs.setBorder(0);
tableSpecs.setBorderColor(Color.BLACK);
tableSpecs.setPadding(0);
tableSpecs.setSpacing(0);
tableSpecs.setWidth(100f);
for(int i=0;i
QybjProduceDevice device=devices.get(i);
Paragraph xuhaoText = new Paragraph((i+1)+".", contextFont);
cellSpec.add(xuhaoText);
cellSpec.setRowspan(2);//设置表格为2行
tableSpecs.addCell(cellSpec);