|
@@ -505,31 +505,43 @@ public class Ticket10047 extends TicketHelper {
|
|
|
protected void makePdfFile(LyStdTicketDao daoTicket, LyStdTicket ticket, StdReg std, LyAgent lyAgent, CfAgent agent,
|
|
|
CfCategory category, Image imgStdUpload, Document doc, PdfFont pdfFont) {
|
|
|
doc.setMargins(30, 50, 20, 50);
|
|
|
- doc.setFont(getSchoolFont("10047"));
|
|
|
+
|
|
|
imgStdUpload.scaleAbsolute(60, 68);
|
|
|
- Table headTable = new Table(new float[] { 2, 5 });
|
|
|
+ Table headTable = new Table(new float[] { 1.3f, 6f });
|
|
|
headTable.setWidthPercent(100).setBorder(null);
|
|
|
|
|
|
Image imageLogo = null;
|
|
|
try {
|
|
|
String path = SpringHelper.WebServletContext.getRealPath("/") + "fonts" + File.separator + "school"
|
|
|
- + File.separator + "10047.png";
|
|
|
- imageLogo = new Image(ImageDataFactory.create(path)).scaleAbsolute(120, 80);
|
|
|
+ + File.separator + "100472.png";
|
|
|
+ imageLogo = new Image(ImageDataFactory.create(path)).scaleAbsolute(70, 55);
|
|
|
} catch (Exception e) {
|
|
|
LogHelper.error(e.getMessage());
|
|
|
|
|
|
}
|
|
|
+// headTable.addCell(new Cell(3, 1).add(imageLogo).setVerticalAlignment(VerticalAlignment.MIDDLE).setMarginLeft(10)
|
|
|
+// .setHorizontalAlignment(HorizontalAlignment.CENTER).setBorder(null));
|
|
|
+//// headTable.addCell(new Cell(1, 1).add("").setBorder(null));
|
|
|
+// // 添加标题
|
|
|
+// String title = "本科招生";
|
|
|
+// headTable.addCell(new Cell(1, 1).add(new Paragraph("中央美术学院" +ArtParamHelper.ArtYear + title+"现场考试").setFontSize(20)
|
|
|
+// .setTextAlignment(TextAlignment.CENTER)).setBorder(null).setMarginLeft(-35f));
|
|
|
+// headTable.addCell(new Cell(1, 1)
|
|
|
+// .add(new Paragraph("准 考 证").setFontSize(25).setBold().setTextAlignment(TextAlignment.CENTER).setMarginLeft(-35f).setMarginTop(-10f))
|
|
|
+// .setBorder(null));
|
|
|
+// doc.add(headTable);
|
|
|
+
|
|
|
headTable.addCell(new Cell(3, 1).add(imageLogo).setVerticalAlignment(VerticalAlignment.MIDDLE).setMarginLeft(10)
|
|
|
.setHorizontalAlignment(HorizontalAlignment.CENTER).setBorder(null));
|
|
|
headTable.addCell(new Cell(1, 1).add("").setBorder(null));
|
|
|
// 添加标题
|
|
|
- String title = "本科招生";
|
|
|
- headTable.addCell(new Cell(1, 1).add(new Paragraph(ArtParamHelper.ArtYear + title+"现场考试").setFontSize(20)
|
|
|
- .setTextAlignment(TextAlignment.CENTER)).setBorder(null));
|
|
|
+ headTable.addCell(new Cell(1, 1).add(new Paragraph("中央美术学院" + ArtParamHelper.ArtYear + "年本科招生现场考试\n准考证").setFontSize(22)
|
|
|
+ .setTextAlignment(TextAlignment.CENTER)).setBorder(null).setBold().setMarginLeft(-20));
|
|
|
headTable.addCell(new Cell(1, 1)
|
|
|
- .add(new Paragraph("准 考 证").setFontSize(25).setBold().setTextAlignment(TextAlignment.CENTER))
|
|
|
+ .add(new Paragraph("").setFontSize(25).setBold().setTextAlignment(TextAlignment.CENTER))
|
|
|
.setBorder(null));
|
|
|
doc.add(headTable);
|
|
|
+ doc.setFont(getSchoolFont("10047"));
|
|
|
|
|
|
doc.add(new Paragraph("_____________________________________________________________________________________________________")
|
|
|
.setMarginLeft(20).setMarginTop(-5).setMarginRight(20).setFontSize(8));
|
|
@@ -542,7 +554,7 @@ public class Ticket10047 extends TicketHelper {
|
|
|
// 准考证号,姓名
|
|
|
|
|
|
float std_font = 13;
|
|
|
- stdTable.addCell(new Cell(1, 1).add("姓 名:").setFontSize(std_font)
|
|
|
+ stdTable.addCell(new Cell(1, 1).add("姓 名:").setFontSize(std_font)
|
|
|
.setVerticalAlignment(VerticalAlignment.MIDDLE).setHorizontalAlignment(HorizontalAlignment.RIGHT)
|
|
|
.setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
float std_name_font = 13;
|
|
@@ -568,17 +580,19 @@ public class Ticket10047 extends TicketHelper {
|
|
|
ssList = daoSubject.listBySql(LyStdSubject.class,"select * from ly_std_subject where std_id=? order by exam_start_time ", std.getStd_id());
|
|
|
enrol = enrolList.get(0);
|
|
|
} else if(enrolList.size() > 1) { //只查询美术学,美术学中外合作办学,单独在生成(一个考生有2个准考证的情况,系统不支持,暂时特殊处理)
|
|
|
- if(ticket.getTicket_no().equals("F2410H001") || ticket.getTicket_no().equals("F2410H002") || ticket.getTicket_no().equals("F2410H003")) {
|
|
|
+ if(ticket.getTicket_no().equals("F25100478") || ticket.getTicket_no().equals("F25100479") || ticket.getTicket_no().equals("F25100480")) {
|
|
|
ssList = daoSubject.listBySql(LyStdSubject.class,"select * from ly_std_subject where std_id=? and subject_id in (2070101) order by exam_start_time", std.getStd_id());
|
|
|
enrol = enrolList.get(0);
|
|
|
}
|
|
|
- if(ticket.getTicket_no().equals("F2409H003") || ticket.getTicket_no().equals("F2409H005") || ticket.getTicket_no().equals("F2409H006")) {
|
|
|
+ if(ticket.getTicket_no().equals("F25090001") || ticket.getTicket_no().equals("F25090002") || ticket.getTicket_no().equals("F25090003")) {
|
|
|
ssList = daoSubject.listBySql(LyStdSubject.class,"select * from ly_std_subject where std_id=? and subject_id not in (2070101) order by exam_start_time", std.getStd_id());
|
|
|
enrol = enrolList.get(1);
|
|
|
}
|
|
|
}
|
|
|
//区分考点
|
|
|
- if (enrol != null && enrol.getAspect_name().equals("造型艺术")) {
|
|
|
+ if (enrol != null && (enrol.getAspect_name().equals("美术学类(造型艺术)")
|
|
|
+ || enrol.getAspect_name().equals("中国画(造型基础类)")
|
|
|
+ || enrol.getAspect_name().equals("中国画(笔墨基础类)"))) {
|
|
|
agentName = "中央美术学院燕郊校区";
|
|
|
} else {
|
|
|
agentName = "燕京理工学院";
|
|
@@ -600,7 +614,7 @@ public class Ticket10047 extends TicketHelper {
|
|
|
stdTable.addCell(
|
|
|
new Cell(1, 3).add(std.getCert_id()).setFontSize(std_font).setBold().setMarginLeft(-5).setBorder(null));
|
|
|
|
|
|
- stdTable.addCell(new Cell(1, 1).add("省 份:").setFontSize(std_font)
|
|
|
+ stdTable.addCell(new Cell(1, 1).add("省 份:").setFontSize(std_font)
|
|
|
.setVerticalAlignment(VerticalAlignment.MIDDLE).setHorizontalAlignment(HorizontalAlignment.RIGHT)
|
|
|
.setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
stdTable.addCell(
|
|
@@ -614,11 +628,11 @@ public class Ticket10047 extends TicketHelper {
|
|
|
.setBold().setMarginLeft(-5).setBorder(null));
|
|
|
}
|
|
|
|
|
|
- stdTable.addCell(new Cell(1, 1).add("考 点:").setFontSize(std_font).setVerticalAlignment(VerticalAlignment.MIDDLE)
|
|
|
- .setHorizontalAlignment(HorizontalAlignment.RIGHT).setTextAlignment(TextAlignment.LEFT)
|
|
|
- .setBorder(null));
|
|
|
- stdTable.addCell(new Cell(1, 3).add(agentName).setFontSize(12).setBold()
|
|
|
- .setMarginLeft(-8).setBorder(null));
|
|
|
+ stdTable.addCell(new Cell(1, 1).add("考 点:").setFontSize(std_font)
|
|
|
+ .setVerticalAlignment(VerticalAlignment.MIDDLE).setHorizontalAlignment(HorizontalAlignment.RIGHT)
|
|
|
+ .setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
+ stdTable.addCell(new Cell(1, 3).add(agentName).setFontSize(std_font).setBold()
|
|
|
+ .setMarginLeft(-5).setBorder(null));
|
|
|
|
|
|
// 考生信息
|
|
|
table.addCell(new Cell(1, 1).add(stdTable).setPadding(0).setMargin(0).setBorder(null));
|
|
@@ -752,7 +766,7 @@ public class Ticket10047 extends TicketHelper {
|
|
|
.setVerticalAlignment(VerticalAlignment.MIDDLE).setHorizontalAlignment(HorizontalAlignment.CENTER)
|
|
|
.setTextAlignment(TextAlignment.CENTER));
|
|
|
Integer seat_no = writtenList.get(0).getLy_room_seq();
|
|
|
- table.addCell(new Cell(1, 1).add(seat_no == null ? "现场抽签" : seat_no.toString()).setFontSize(bFontSize)
|
|
|
+ table.addCell(new Cell(1, 1).add(seat_no == null || seat_no == 0 ? "现场抽签" : seat_no.toString()).setFontSize(bFontSize)
|
|
|
.setVerticalAlignment(VerticalAlignment.MIDDLE).setHorizontalAlignment(HorizontalAlignment.CENTER)
|
|
|
.setTextAlignment(TextAlignment.CENTER));
|
|
|
|
|
@@ -773,7 +787,7 @@ public class Ticket10047 extends TicketHelper {
|
|
|
table.addCell(new Cell(1, 1).add("考场编号").setBold().setFontSize(bFontSize)
|
|
|
.setVerticalAlignment(VerticalAlignment.MIDDLE).setHorizontalAlignment(HorizontalAlignment.CENTER)
|
|
|
.setTextAlignment(TextAlignment.CENTER));
|
|
|
- table.addCell(new Cell(1, 3).add(enrol.getAspect_name()+"-" + faceList.get(0).getSubject_name()+roomInterview.getRoom_seq()+"考场")
|
|
|
+ table.addCell(new Cell(1, 3).add(enrol.getAspect_name()+"-" + faceList.get(0).getSubject_name()+ "0"+ roomInterview.getRoom_seq()+"考场")
|
|
|
.setFontSize(bFontSize).setVerticalAlignment(VerticalAlignment.MIDDLE).setHorizontalAlignment(HorizontalAlignment.CENTER)
|
|
|
.setTextAlignment(TextAlignment.CENTER));
|
|
|
//第七行
|
|
@@ -795,36 +809,34 @@ public class Ticket10047 extends TicketHelper {
|
|
|
.setBold().setBorder(null));
|
|
|
|
|
|
Paragraph p1 = new Paragraph(
|
|
|
- "1.考生凭本人《准考证》和有效身份证原件按规定时间和地点参加考试,主动接受考点工作人员按规定对其进行的身份验证和随身物品检查等。").setFixedLeading(8)
|
|
|
+ "1.考生凭《准考证》和有效身份证原件按规定时间和地点参加考试,《准考证》正、反两面在考试期间不得书写或涂画。").setFixedLeading(8)
|
|
|
.setMultipliedLeading(1.2f);
|
|
|
noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
- p1 = new Paragraph("2.取得线上考试合格的考生在现场考试当日参加第一科考试入场时将线上考试纸质试卷交给所在考场的监考员。").setMarginTop(0)
|
|
|
+ p1 = new Paragraph("2.线上考试合格的考生在参加第一科考试入场时将线上考试纸质试卷交给所在考场的监考员。").setMarginTop(0)
|
|
|
.setFixedLeading(8).setMultipliedLeading(1.2f);
|
|
|
noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
p1 = new Paragraph(
|
|
|
- "3.考生只准携带考试规定以内的考试用品参加笔试,如绘画工具、画板、画架、颜料、黑色签字笔、铅笔、橡皮、笔墨工具及毡子等。不得携带任何书刊、报纸、稿纸、图片、资料、具有通讯功能的工具(如手机、照相设备、扫描设备、智能设备等)或者有存储、编程、查询功能的电子用品以及涂改液、色卡、修正带等物品进入考场。").setMarginTop(
|
|
|
+ "3.考生只准携带绘画工具、画板、画架、颜料、黑色签字笔、铅笔、橡皮、笔、墨工具及毡子等考试规定的考试用品参加笔试。不得携带任何书刊、报纸、稿纸、图片、资料、具有通讯功能的工具(如手机、智能手表(手环)、智能眼镜和照相、扫描等设备)或者有存储、编程、查询功能的电子用品以及涂改液、修正带等物品进入考场。").setMarginTop(
|
|
|
0).setFixedLeading(8).setMultipliedLeading(1.2f);
|
|
|
noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
p1 = new Paragraph(
|
|
|
- "4.考生应自觉遵守考场纪律,服从考场安排。造型艺术、中国画专业考生入场后,抽签入座,考试抽签位置为前排的考生在使用画架时,高度以不遮挡后排考生为原则。文物保护与修复、书法学、实验与科技、艺术设计、艺术设计学、城市艺术设计、建筑学、美术学、美术学(中外合作办学)专业考生使用桌椅类考场考试,禁止使用画架。 ")
|
|
|
+ "4.考美术学类(造型艺术)、中国画(造型基础类)专业考生上、下午入场时抽签确定座位,中国画(造型基础类)专业速写科目座位同专业写生。抽签位置为前排的考生在使用画架时,高度以不遮挡后排考生为原则。中国画(笔墨基础类)、书法学、美术学类(实验与科技)、设计学类(艺术设计)、艺术设计学、设计学类(城市艺术设计)、文物保护与修复、建筑学、美术学、美术学(中外合作办学)专业考生严禁使用画架。 ")
|
|
|
.setMarginTop(0).setFixedLeading(8).setMultipliedLeading(1.2f);
|
|
|
noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
p1 = new Paragraph(
|
|
|
- "5.考生在考试过程中应按照《中央美术学院2024年本科校考专业招生简章》要求,规范使用绘画工具及材料。考生可以使用圆规、直尺、三角尺、定画液。不得使用油画颜料、各种图文数字模板模具、喷枪、以及需外接电源的绘画辅助工具及设备。《准考证》正、反两面在使用期间均不得涂改或书写。 ").setMarginTop(
|
|
|
+ "5.开考15分钟后,迟到考生不得进入考场参加考试。美术学类(造型艺术)、中国画(造型基础类)专业考生交卷出场时间不得早于考试结束前60分钟,其他专业不得提前交卷。 ").setMarginTop(
|
|
|
0).setFixedLeading(8)
|
|
|
.setMultipliedLeading(1.2f);
|
|
|
noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
- /*p1 = new Paragraph("6. ").setMarginTop(0).setFixedLeading(8).setMultipliedLeading(1.2f);
|
|
|
- noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));*/
|
|
|
- p1 = new Paragraph("6.开考15分钟后,迟到考生不准进入考场参加考试。考试中途不可离开考场。").setMarginTop(0).setFixedLeading(8).setMultipliedLeading(1.2f);
|
|
|
+ p1 = new Paragraph("6.本次考试属国家教育考试的组成部分,考生应自觉遵守考场纪律,服从考试安排。考生不遵守考场规则,不服从考务工作人员管理,有违纪、作弊等行为的,将按照《中华人民共和国教育法》及《国家教育考试违规处理办法》进行处理,并按规定记入国家教育考试考生诚信档案;涉嫌违法的,移送司法机关,依照《中华人民共和国刑法》等追究法律责任。").setMarginTop(0).setFixedLeading(8).setMultipliedLeading(1.2f);
|
|
|
noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
- p1 = new Paragraph("7.考生交卷出场时间不得早于考试结束前60分钟,交卷出场后不得再进场续考,也不得在考点规定的区域逗留或者交谈。").setMarginTop(0)
|
|
|
+ /*p1 = new Paragraph("7.考生交卷出场时间不得早于考试结束前60分钟,交卷出场后不得再进场续考,也不得在考点规定的区域逗留或者交谈。").setMarginTop(0)
|
|
|
.setFixedLeading(8).setMultipliedLeading(1.2f);
|
|
|
noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
p1 = new Paragraph(
|
|
|
"8.考生不遵守考场规则,不服从考务工作人员管理,有违纪、作弊等行为的,将按照《中华人民共和国教育法》以及《国家教育考试违规处理办法》进行处理,并记入国家教育考试考生诚信档案;涉嫌违法的,移送司法机关,依照《中华人民共和国刑法》等追究法律责任。").setMarginTop(
|
|
|
0).setFixedLeading(8).setMultipliedLeading(1.2f);
|
|
|
- noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));
|
|
|
+ noticeTable.addCell(new Cell(1, 1).add(p1).setTextAlignment(TextAlignment.LEFT).setBorder(null));*/
|
|
|
|
|
|
doc.add(noticeTable.setMarginLeft(20).setMarginTop(10).setMarginRight(20));
|
|
|
}
|