diff --git a/platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java b/platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java index df941c8..92a0b35 100644 --- a/platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java +++ b/platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java @@ -756,100 +756,104 @@ public class ExcelUtil ws.setColumnView(j, 7); } //创建Excel标题格式 - ws.mergeCells(0, 0, 0, 3); - ws.addCell(new Label(0, 0, "填报单位", wcf)); - ws.mergeCells(1, 0, 2, 0); - ws.addCell(new Label(1, 0, "结婚登记人数", wcf)); - ws.mergeCells(1, 1, 1, 3); - ws.addCell(new Label(1, 1, "男", wcf)); - ws.mergeCells(2, 1, 2, 3); - ws.addCell(new Label(2, 1, "女", wcf)); - ws.mergeCells(3, 0, 4, 0); - ws.addCell(new Label(3, 0, "婚前医学检查人数", wcf)); - ws.mergeCells(3, 1, 3, 3); - ws.addCell(new Label(3, 1, "男", wcf)); - ws.mergeCells(4, 1, 4, 3); - ws.addCell(new Label(4, 1, "女", wcf)); - ws.mergeCells(5, 0, 6, 0); - ws.addCell(new Label(5, 0, "婚前卫生咨询情况", wcf)); - ws.mergeCells(5, 1, 5, 3); - ws.addCell(new Label(5, 1, "男", wcf)); - ws.mergeCells(6, 1, 6, 3); - ws.addCell(new Label(6, 1, "女", wcf)); - ws.mergeCells(7, 0, 20, 0); - ws.addCell(new Label(7, 0, "检出疾病分类情况", wcf)); - ws.mergeCells(7, 1, 8, 1); - ws.addCell(new Label(7, 1, "检出疾病人数", wcf)); - ws.mergeCells(7, 2, 7, 3); - ws.addCell(new Label(7, 2, "男", wcf)); - ws.mergeCells(8, 2, 8, 3); - ws.addCell(new Label(8, 2, "女", wcf)); - ws.mergeCells(9, 1, 12, 1); - ws.addCell(new Label(9, 1, "指定传染病", wcf)); - ws.mergeCells(9, 2, 9, 3); - ws.addCell(new Label(9, 2, "男", wcf)); - ws.mergeCells(10, 2, 10, 3); - ws.addCell(new Label(10, 2, "女", wcf)); - ws.mergeCells(11, 2, 12, 2); - ws.addCell(new Label(11, 2, "性病", wcf)); - ws.addCell(new Label(11, 3, "男", wcf)); - ws.addCell(new Label(12,3,"女",wcf)); - ws.mergeCells(13, 1, 14, 1); - ws.addCell(new Label(13, 1, "严重遗传病",wcf)); - ws.mergeCells(13, 2, 13, 3); - ws.addCell(new Label(13,2,"男",wcf)); - ws.mergeCells(14, 2, 14, 3); - ws.addCell(new Label(14,2,"女",wcf)); - ws.mergeCells(15, 1, 16, 1); - ws.addCell(new Label(15,1,"有关精神病",wcf)); - ws.mergeCells(15, 2, 15, 3); - ws.addCell(new Label(15,2,"男",wcf)); - ws.mergeCells(16, 2, 16, 3); - ws.addCell(new Label(16,2,"女",wcf)); - ws.mergeCells(17, 1, 18, 1); - ws.addCell(new Label(17,1,"生殖系统疾病",wcf)); - ws.mergeCells(17, 2, 17, 3); - ws.addCell(new Label(17,2,"男",wcf)); - ws.mergeCells(18, 2, 18, 3); - ws.addCell(new Label(18,2,"女",wcf)); - ws.mergeCells(19, 1, 20, 1); - ws.addCell(new Label(19,1,"内科系统疾病",wcf)); - ws.mergeCells(19, 2, 19, 3); - ws.addCell(new Label(19,2,"男",wcf)); - ws.mergeCells(20, 2, 20, 3); - ws.addCell(new Label(20,2,"女",wcf)); - ws.mergeCells(21, 0, 30, 0); - ws.addCell(new Label(21,0,"对影响婚育疾病的医学指导意见",wcf)); - ws.mergeCells(21, 1, 22, 1); - ws.addCell(new Label(21,1,"对影响婚育疾病的医学意见总人数",wcf)); - ws.mergeCells(21, 2, 21, 3); - ws.addCell(new Label(21, 2, "男", wcf)); - ws.mergeCells(22, 2, 22, 3); - ws.addCell(new Label(22,2,"女",wcf)); - ws.mergeCells(23, 1, 24, 1); - ws.addCell(new Label(23,1,"不宜结婚",wcf)); - ws.mergeCells(23, 2, 23, 3); - ws.addCell(new Label(23,2,"男",wcf)); - ws.mergeCells(24, 2, 24, 3); - ws.addCell(new Label(24,2,"女",wcf)); - ws.mergeCells(25, 1, 26, 1); - ws.addCell(new Label(25,1,"不宜生育",wcf)); - ws.mergeCells(25, 2, 25, 3); - ws.addCell(new Label(25,2,"男",wcf)); - ws.mergeCells(26, 2, 26, 3); - ws.addCell(new Label(26,2,"女",wcf)); - ws.mergeCells(27, 1, 28, 1); - ws.addCell(new Label(27,1,"暂缓结婚",wcf)); - ws.mergeCells(27, 2, 27, 3); - ws.addCell(new Label(27,2,"男",wcf)); - ws.mergeCells(28, 2, 28, 3); - ws.addCell(new Label(28,2,"女",wcf)); - ws.mergeCells(29, 1, 30, 1); - ws.addCell(new Label(29,1,"尊重受检者意愿",wcf)); - ws.mergeCells(29, 2, 29, 3); - ws.addCell(new Label(29,2,"男",wcf)); - ws.mergeCells(30, 2, 30, 3); - ws.addCell(new Label(30,2,"女",wcf)); + ws.mergeCells(0,0,30,0); + ws.addCell(new Label(0, 0, "婚前保健情况季报表", wcf)); + ws.mergeCells(0,1,30,1); + ws.addCell(new Label(0, 1, "2018-2019", wcf)); + ws.mergeCells(0, 2, 0, 5); + ws.addCell(new Label(0, 2, "填报单位", wcf)); + ws.mergeCells(1, 2, 2, 2); + ws.addCell(new Label(1, 2, "结婚登记人数", wcf)); + ws.mergeCells(1, 3, 1, 5); + ws.addCell(new Label(1, 2, "男", wcf)); + ws.mergeCells(2, 3, 2, 5); + ws.addCell(new Label(2, 3, "女", wcf)); + ws.mergeCells(3, 2, 4, 2); + ws.addCell(new Label(3, 2, "婚前医学检查人数", wcf)); + ws.mergeCells(3, 3, 3, 5); + ws.addCell(new Label(3, 3, "男", wcf)); + ws.mergeCells(4, 3, 4, 5); + ws.addCell(new Label(4, 3, "女", wcf)); + ws.mergeCells(5, 2, 6, 2); + ws.addCell(new Label(5, 2, "婚前卫生咨询情况", wcf)); + ws.mergeCells(5, 3, 5, 5); + ws.addCell(new Label(5, 3, "男", wcf)); + ws.mergeCells(6, 3, 6, 5); + ws.addCell(new Label(6, 3, "女", wcf)); + ws.mergeCells(7, 2, 20, 2); + ws.addCell(new Label(7, 2, "检出疾病分类情况", wcf)); + ws.mergeCells(7, 3, 8, 3); + ws.addCell(new Label(7, 3, "检出疾病人数", wcf)); + ws.mergeCells(7, 4, 7, 5); + ws.addCell(new Label(7, 4, "男", wcf)); + ws.mergeCells(8, 4, 8, 5); + ws.addCell(new Label(8, 4, "女", wcf)); + ws.mergeCells(9, 3, 12, 3); + ws.addCell(new Label(9, 3, "指定传染病", wcf)); + ws.mergeCells(9, 4, 9, 5); + ws.addCell(new Label(9, 4, "男", wcf)); + ws.mergeCells(10, 4, 10, 5); + ws.addCell(new Label(10, 4, "女", wcf)); + ws.mergeCells(11, 4, 12, 4); + ws.addCell(new Label(11, 4, "性病", wcf)); + ws.addCell(new Label(11, 5, "男", wcf)); + ws.addCell(new Label(12,5,"女",wcf)); + ws.mergeCells(13, 3, 14, 3); + ws.addCell(new Label(13, 3, "严重遗传病",wcf)); + ws.mergeCells(13, 4, 13, 5); + ws.addCell(new Label(13,4,"男",wcf)); + ws.mergeCells(14, 4, 14, 5); + ws.addCell(new Label(14,4,"女",wcf)); + ws.mergeCells(15, 3, 16, 3); + ws.addCell(new Label(15,3,"有关精神病",wcf)); + ws.mergeCells(15, 4, 15, 5); + ws.addCell(new Label(15,4,"男",wcf)); + ws.mergeCells(16, 4, 16, 5); + ws.addCell(new Label(16,4,"女",wcf)); + ws.mergeCells(17, 3, 18, 3); + ws.addCell(new Label(17,3,"生殖系统疾病",wcf)); + ws.mergeCells(17, 4, 17, 5); + ws.addCell(new Label(17,4,"男",wcf)); + ws.mergeCells(18, 4, 18, 5); + ws.addCell(new Label(18,4,"女",wcf)); + ws.mergeCells(19, 3, 20, 3); + ws.addCell(new Label(19,3,"内科系统疾病",wcf)); + ws.mergeCells(19, 4, 19, 5); + ws.addCell(new Label(19,4,"男",wcf)); + ws.mergeCells(20, 4, 20, 5); + ws.addCell(new Label(20,4,"女",wcf)); + ws.mergeCells(21, 2, 30, 2); + ws.addCell(new Label(21,2,"对影响婚育疾病的医学指导意见",wcf)); + ws.mergeCells(21, 3, 22, 3); + ws.addCell(new Label(21,3,"对影响婚育疾病的医学意见总人数",wcf)); + ws.mergeCells(21, 4, 21, 5); + ws.addCell(new Label(21, 4, "男", wcf)); + ws.mergeCells(22, 4, 22, 5); + ws.addCell(new Label(22,4,"女",wcf)); + ws.mergeCells(23, 3, 24, 3); + ws.addCell(new Label(23,3,"不宜结婚",wcf)); + ws.mergeCells(23, 4, 23, 5); + ws.addCell(new Label(23,4,"男",wcf)); + ws.mergeCells(24, 4, 24, 5); + ws.addCell(new Label(24,4,"女",wcf)); + ws.mergeCells(25, 3, 26, 3); + ws.addCell(new Label(25,3,"不宜生育",wcf)); + ws.mergeCells(25, 4, 25, 5); + ws.addCell(new Label(25,4,"男",wcf)); + ws.mergeCells(26, 4, 26, 5); + ws.addCell(new Label(26,4,"女",wcf)); + ws.mergeCells(27, 3, 28, 3); + ws.addCell(new Label(27,3,"暂缓结婚",wcf)); + ws.mergeCells(27, 4, 27, 5); + ws.addCell(new Label(27,4,"男",wcf)); + ws.mergeCells(28, 4, 28, 5); + ws.addCell(new Label(28,4,"女",wcf)); + ws.mergeCells(29, 3, 30, 3); + ws.addCell(new Label(29,3,"尊重受检者意愿",wcf)); + ws.mergeCells(29, 4, 29, 5); + ws.addCell(new Label(29,4,"男",wcf)); + ws.mergeCells(30, 4, 30, 5); + ws.addCell(new Label(30,4,"女",wcf)); /*int k = 0; //填充数据