Commit ad648ea11e7a368a9f953dc191bb0bf600ee51c5

Authored by gengxiaokai
1 parent c9f9afe8f7

婚检导出

Showing 1 changed file with 98 additions and 94 deletions

platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java View file @ ad648ea
... ... @@ -756,100 +756,104 @@
756 756 ws.setColumnView(j, 7);
757 757 }
758 758 //创建Excel标题格式
759   - ws.mergeCells(0, 0, 0, 3);
760   - ws.addCell(new Label(0, 0, "填报单位", wcf));
761   - ws.mergeCells(1, 0, 2, 0);
762   - ws.addCell(new Label(1, 0, "结婚登记人数", wcf));
763   - ws.mergeCells(1, 1, 1, 3);
764   - ws.addCell(new Label(1, 1, "男", wcf));
765   - ws.mergeCells(2, 1, 2, 3);
766   - ws.addCell(new Label(2, 1, "女", wcf));
767   - ws.mergeCells(3, 0, 4, 0);
768   - ws.addCell(new Label(3, 0, "婚前医学检查人数", wcf));
769   - ws.mergeCells(3, 1, 3, 3);
770   - ws.addCell(new Label(3, 1, "男", wcf));
771   - ws.mergeCells(4, 1, 4, 3);
772   - ws.addCell(new Label(4, 1, "女", wcf));
773   - ws.mergeCells(5, 0, 6, 0);
774   - ws.addCell(new Label(5, 0, "婚前卫生咨询情况", wcf));
775   - ws.mergeCells(5, 1, 5, 3);
776   - ws.addCell(new Label(5, 1, "男", wcf));
777   - ws.mergeCells(6, 1, 6, 3);
778   - ws.addCell(new Label(6, 1, "女", wcf));
779   - ws.mergeCells(7, 0, 20, 0);
780   - ws.addCell(new Label(7, 0, "检出疾病分类情况", wcf));
781   - ws.mergeCells(7, 1, 8, 1);
782   - ws.addCell(new Label(7, 1, "检出疾病人数", wcf));
783   - ws.mergeCells(7, 2, 7, 3);
784   - ws.addCell(new Label(7, 2, "男", wcf));
785   - ws.mergeCells(8, 2, 8, 3);
786   - ws.addCell(new Label(8, 2, "女", wcf));
787   - ws.mergeCells(9, 1, 12, 1);
788   - ws.addCell(new Label(9, 1, "指定传染病", wcf));
789   - ws.mergeCells(9, 2, 9, 3);
790   - ws.addCell(new Label(9, 2, "男", wcf));
791   - ws.mergeCells(10, 2, 10, 3);
792   - ws.addCell(new Label(10, 2, "女", wcf));
793   - ws.mergeCells(11, 2, 12, 2);
794   - ws.addCell(new Label(11, 2, "性病", wcf));
795   - ws.addCell(new Label(11, 3, "男", wcf));
796   - ws.addCell(new Label(12,3,"女",wcf));
797   - ws.mergeCells(13, 1, 14, 1);
798   - ws.addCell(new Label(13, 1, "严重遗传病",wcf));
799   - ws.mergeCells(13, 2, 13, 3);
800   - ws.addCell(new Label(13,2,"男",wcf));
801   - ws.mergeCells(14, 2, 14, 3);
802   - ws.addCell(new Label(14,2,"女",wcf));
803   - ws.mergeCells(15, 1, 16, 1);
804   - ws.addCell(new Label(15,1,"有关精神病",wcf));
805   - ws.mergeCells(15, 2, 15, 3);
806   - ws.addCell(new Label(15,2,"男",wcf));
807   - ws.mergeCells(16, 2, 16, 3);
808   - ws.addCell(new Label(16,2,"女",wcf));
809   - ws.mergeCells(17, 1, 18, 1);
810   - ws.addCell(new Label(17,1,"生殖系统疾病",wcf));
811   - ws.mergeCells(17, 2, 17, 3);
812   - ws.addCell(new Label(17,2,"男",wcf));
813   - ws.mergeCells(18, 2, 18, 3);
814   - ws.addCell(new Label(18,2,"女",wcf));
815   - ws.mergeCells(19, 1, 20, 1);
816   - ws.addCell(new Label(19,1,"内科系统疾病",wcf));
817   - ws.mergeCells(19, 2, 19, 3);
818   - ws.addCell(new Label(19,2,"男",wcf));
819   - ws.mergeCells(20, 2, 20, 3);
820   - ws.addCell(new Label(20,2,"女",wcf));
821   - ws.mergeCells(21, 0, 30, 0);
822   - ws.addCell(new Label(21,0,"对影响婚育疾病的医学指导意见",wcf));
823   - ws.mergeCells(21, 1, 22, 1);
824   - ws.addCell(new Label(21,1,"对影响婚育疾病的医学意见总人数",wcf));
825   - ws.mergeCells(21, 2, 21, 3);
826   - ws.addCell(new Label(21, 2, "男", wcf));
827   - ws.mergeCells(22, 2, 22, 3);
828   - ws.addCell(new Label(22,2,"女",wcf));
829   - ws.mergeCells(23, 1, 24, 1);
830   - ws.addCell(new Label(23,1,"不宜结婚",wcf));
831   - ws.mergeCells(23, 2, 23, 3);
832   - ws.addCell(new Label(23,2,"男",wcf));
833   - ws.mergeCells(24, 2, 24, 3);
834   - ws.addCell(new Label(24,2,"女",wcf));
835   - ws.mergeCells(25, 1, 26, 1);
836   - ws.addCell(new Label(25,1,"不宜生育",wcf));
837   - ws.mergeCells(25, 2, 25, 3);
838   - ws.addCell(new Label(25,2,"男",wcf));
839   - ws.mergeCells(26, 2, 26, 3);
840   - ws.addCell(new Label(26,2,"女",wcf));
841   - ws.mergeCells(27, 1, 28, 1);
842   - ws.addCell(new Label(27,1,"暂缓结婚",wcf));
843   - ws.mergeCells(27, 2, 27, 3);
844   - ws.addCell(new Label(27,2,"男",wcf));
845   - ws.mergeCells(28, 2, 28, 3);
846   - ws.addCell(new Label(28,2,"女",wcf));
847   - ws.mergeCells(29, 1, 30, 1);
848   - ws.addCell(new Label(29,1,"尊重受检者意愿",wcf));
849   - ws.mergeCells(29, 2, 29, 3);
850   - ws.addCell(new Label(29,2,"男",wcf));
851   - ws.mergeCells(30, 2, 30, 3);
852   - ws.addCell(new Label(30,2,"女",wcf));
  759 + ws.mergeCells(0,0,30,0);
  760 + ws.addCell(new Label(0, 0, "婚前保健情况季报表", wcf));
  761 + ws.mergeCells(0,1,30,1);
  762 + ws.addCell(new Label(0, 1, "2018-2019", wcf));
  763 + ws.mergeCells(0, 2, 0, 5);
  764 + ws.addCell(new Label(0, 2, "填报单位", wcf));
  765 + ws.mergeCells(1, 2, 2, 2);
  766 + ws.addCell(new Label(1, 2, "结婚登记人数", wcf));
  767 + ws.mergeCells(1, 3, 1, 5);
  768 + ws.addCell(new Label(1, 2, "男", wcf));
  769 + ws.mergeCells(2, 3, 2, 5);
  770 + ws.addCell(new Label(2, 3, "女", wcf));
  771 + ws.mergeCells(3, 2, 4, 2);
  772 + ws.addCell(new Label(3, 2, "婚前医学检查人数", wcf));
  773 + ws.mergeCells(3, 3, 3, 5);
  774 + ws.addCell(new Label(3, 3, "男", wcf));
  775 + ws.mergeCells(4, 3, 4, 5);
  776 + ws.addCell(new Label(4, 3, "女", wcf));
  777 + ws.mergeCells(5, 2, 6, 2);
  778 + ws.addCell(new Label(5, 2, "婚前卫生咨询情况", wcf));
  779 + ws.mergeCells(5, 3, 5, 5);
  780 + ws.addCell(new Label(5, 3, "男", wcf));
  781 + ws.mergeCells(6, 3, 6, 5);
  782 + ws.addCell(new Label(6, 3, "女", wcf));
  783 + ws.mergeCells(7, 2, 20, 2);
  784 + ws.addCell(new Label(7, 2, "检出疾病分类情况", wcf));
  785 + ws.mergeCells(7, 3, 8, 3);
  786 + ws.addCell(new Label(7, 3, "检出疾病人数", wcf));
  787 + ws.mergeCells(7, 4, 7, 5);
  788 + ws.addCell(new Label(7, 4, "男", wcf));
  789 + ws.mergeCells(8, 4, 8, 5);
  790 + ws.addCell(new Label(8, 4, "女", wcf));
  791 + ws.mergeCells(9, 3, 12, 3);
  792 + ws.addCell(new Label(9, 3, "指定传染病", wcf));
  793 + ws.mergeCells(9, 4, 9, 5);
  794 + ws.addCell(new Label(9, 4, "男", wcf));
  795 + ws.mergeCells(10, 4, 10, 5);
  796 + ws.addCell(new Label(10, 4, "女", wcf));
  797 + ws.mergeCells(11, 4, 12, 4);
  798 + ws.addCell(new Label(11, 4, "性病", wcf));
  799 + ws.addCell(new Label(11, 5, "男", wcf));
  800 + ws.addCell(new Label(12,5,"女",wcf));
  801 + ws.mergeCells(13, 3, 14, 3);
  802 + ws.addCell(new Label(13, 3, "严重遗传病",wcf));
  803 + ws.mergeCells(13, 4, 13, 5);
  804 + ws.addCell(new Label(13,4,"男",wcf));
  805 + ws.mergeCells(14, 4, 14, 5);
  806 + ws.addCell(new Label(14,4,"女",wcf));
  807 + ws.mergeCells(15, 3, 16, 3);
  808 + ws.addCell(new Label(15,3,"有关精神病",wcf));
  809 + ws.mergeCells(15, 4, 15, 5);
  810 + ws.addCell(new Label(15,4,"男",wcf));
  811 + ws.mergeCells(16, 4, 16, 5);
  812 + ws.addCell(new Label(16,4,"女",wcf));
  813 + ws.mergeCells(17, 3, 18, 3);
  814 + ws.addCell(new Label(17,3,"生殖系统疾病",wcf));
  815 + ws.mergeCells(17, 4, 17, 5);
  816 + ws.addCell(new Label(17,4,"男",wcf));
  817 + ws.mergeCells(18, 4, 18, 5);
  818 + ws.addCell(new Label(18,4,"女",wcf));
  819 + ws.mergeCells(19, 3, 20, 3);
  820 + ws.addCell(new Label(19,3,"内科系统疾病",wcf));
  821 + ws.mergeCells(19, 4, 19, 5);
  822 + ws.addCell(new Label(19,4,"男",wcf));
  823 + ws.mergeCells(20, 4, 20, 5);
  824 + ws.addCell(new Label(20,4,"女",wcf));
  825 + ws.mergeCells(21, 2, 30, 2);
  826 + ws.addCell(new Label(21,2,"对影响婚育疾病的医学指导意见",wcf));
  827 + ws.mergeCells(21, 3, 22, 3);
  828 + ws.addCell(new Label(21,3,"对影响婚育疾病的医学意见总人数",wcf));
  829 + ws.mergeCells(21, 4, 21, 5);
  830 + ws.addCell(new Label(21, 4, "男", wcf));
  831 + ws.mergeCells(22, 4, 22, 5);
  832 + ws.addCell(new Label(22,4,"女",wcf));
  833 + ws.mergeCells(23, 3, 24, 3);
  834 + ws.addCell(new Label(23,3,"不宜结婚",wcf));
  835 + ws.mergeCells(23, 4, 23, 5);
  836 + ws.addCell(new Label(23,4,"男",wcf));
  837 + ws.mergeCells(24, 4, 24, 5);
  838 + ws.addCell(new Label(24,4,"女",wcf));
  839 + ws.mergeCells(25, 3, 26, 3);
  840 + ws.addCell(new Label(25,3,"不宜生育",wcf));
  841 + ws.mergeCells(25, 4, 25, 5);
  842 + ws.addCell(new Label(25,4,"男",wcf));
  843 + ws.mergeCells(26, 4, 26, 5);
  844 + ws.addCell(new Label(26,4,"女",wcf));
  845 + ws.mergeCells(27, 3, 28, 3);
  846 + ws.addCell(new Label(27,3,"暂缓结婚",wcf));
  847 + ws.mergeCells(27, 4, 27, 5);
  848 + ws.addCell(new Label(27,4,"男",wcf));
  849 + ws.mergeCells(28, 4, 28, 5);
  850 + ws.addCell(new Label(28,4,"女",wcf));
  851 + ws.mergeCells(29, 3, 30, 3);
  852 + ws.addCell(new Label(29,3,"尊重受检者意愿",wcf));
  853 + ws.mergeCells(29, 4, 29, 5);
  854 + ws.addCell(new Label(29,4,"男",wcf));
  855 + ws.mergeCells(30, 4, 30, 5);
  856 + ws.addCell(new Label(30,4,"女",wcf));
853 857  
854 858 /*int k = 0;
855 859 //填充数据