|
@@ -8,6 +8,7 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.Map.Entry;
|
|
|
|
|
|
+import cn.hmsoft.art.data.model.cf.CfAgent;
|
|
|
import com.itextpdf.kernel.color.Color;
|
|
|
import com.itextpdf.kernel.color.DeviceRgb;
|
|
|
import com.itextpdf.layout.Document;
|
|
@@ -624,8 +625,8 @@ public class WrittenMaterialDefault extends WrittenMaterialHelper {
|
|
|
// 判断分页
|
|
|
if ((stdIndex + 1) % pageStdCount == 0) {
|
|
|
doc.add(mainTable.setMarginTop(10));
|
|
|
- doc.add(new Paragraph("监考教师核对完毕后签名:______________________").setFontSize(12).setBold()
|
|
|
- .setTextAlignment(TextAlignment.RIGHT).setFixedPosition(470, 10, 300));
|
|
|
+ doc.add(new Paragraph("监考员1签名:____________ 监考员2签名:____________").setFontSize(12).setBold()
|
|
|
+ .setTextAlignment(TextAlignment.RIGHT).setFixedPosition(420, 10, 350));
|
|
|
// 判断本考场是否还有考生
|
|
|
if (stdIndex != array.size() - 1) {
|
|
|
doc.add(new AreaBreak());
|
|
@@ -643,8 +644,8 @@ public class WrittenMaterialDefault extends WrittenMaterialHelper {
|
|
|
doc.add(mainTable);
|
|
|
hasStd = false;
|
|
|
mainTable = new Table(new float[] { 1, 1, 1 }).setWidthPercent(100).setBorder(null);
|
|
|
- doc.add(new Paragraph("监考教师核对完毕后签名:______________________").setFontSize(12).setBold()
|
|
|
- .setTextAlignment(TextAlignment.RIGHT).setFixedPosition(470, 10, 300));
|
|
|
+ doc.add(new Paragraph("监考员1签名:____________ 监考员2签名:____________").setFontSize(12).setBold()
|
|
|
+ .setTextAlignment(TextAlignment.RIGHT).setFixedPosition(420, 10, 350));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -659,8 +660,8 @@ public class WrittenMaterialDefault extends WrittenMaterialHelper {
|
|
|
}
|
|
|
if (!hasStd && roomIndex == roomStdMap.keySet().size() - 1) {
|
|
|
doc.add(mainTable);
|
|
|
- doc.add(new Paragraph("监考教师核对完毕后签名:______________________").setFontSize(12).setBold()
|
|
|
- .setTextAlignment(TextAlignment.RIGHT).setFixedPosition(470, 10, 300));
|
|
|
+ doc.add(new Paragraph("监考员1签名:____________ 监考员2签名:____________").setFontSize(12).setBold()
|
|
|
+ .setTextAlignment(TextAlignment.RIGHT).setFixedPosition(420, 10, 350));
|
|
|
|
|
|
}
|
|
|
if (roomIndex < roomStdMap.keySet().size() - 1)
|
|
@@ -945,13 +946,18 @@ public class WrittenMaterialDefault extends WrittenMaterialHelper {
|
|
|
// if(FrameStatus.InActive.toString().equals(param.getGroup_name_flag()))
|
|
|
v = subjectArray.get(0).getSubject_name();
|
|
|
LogHelper.info(v);
|
|
|
- String title = "学位英语签到表";
|
|
|
+ String title = ArtParamHelper.ArtYear+ "年秋季学士学位外语考试签到表 考试日期:2024年10月26日 考试语种:";
|
|
|
+ if(group.getGroup_name().contains("日语")) {
|
|
|
+ title += "日语 ";
|
|
|
+ } else {
|
|
|
+ title += "英语 ";
|
|
|
+ }
|
|
|
if (group.getGroup_name().contains("上午场")) {
|
|
|
title += " 上午场(9:00-11:00)";
|
|
|
} else if (group.getGroup_name().contains("下午场")) {
|
|
|
title += " 下午场(13:00-15:00)";
|
|
|
} else {
|
|
|
- title += "上午场(9:00-11:00)";
|
|
|
+ title += " 上午场(9:00-11:00)";
|
|
|
}
|
|
|
Paragraph p1 = new Paragraph(title).setFontSize(param.getSubject_name_font()).setBold()
|
|
|
.setTextAlignment(TextAlignment.CENTER);
|
|
@@ -972,7 +978,11 @@ public class WrittenMaterialDefault extends WrittenMaterialHelper {
|
|
|
private void createSeatNewPage(Document doc, LyGroup group, LyMaterialWrittenParam param,
|
|
|
ItextDocumentModel pageModel, LyRoomWritten room) {
|
|
|
param.setRoom_addr_font(12);
|
|
|
+ CfAgent agent = daoGroup.find(CfAgent.class, group.getLy_agent_id());
|
|
|
String title = "学位英语桌贴";
|
|
|
+ if(group.getGroup_name().contains("日语")) {
|
|
|
+ title = "学位日语桌贴";
|
|
|
+ }
|
|
|
if (group.getGroup_name().contains("上午场")) {
|
|
|
title += " 上午场(9:00-11:00)";
|
|
|
} else if (group.getGroup_name().contains("下午场")) {
|
|
@@ -987,7 +997,7 @@ public class WrittenMaterialDefault extends WrittenMaterialHelper {
|
|
|
if (FrameStatus.Active.toString().equals(param.getTicket_aspect_num())) {
|
|
|
ticket_value = room.getMin_aspect_ticket_num() + " --- " + room.getMax_aspect_ticket_num();
|
|
|
}
|
|
|
- String value = "考场序号:" + room.getRoom_seq() + " 考场地址:" + room.getRoom_addr() + " 考生数量:"
|
|
|
+ String value = "考场序号:" + room.getRoom_seq() + " 考场地址:" + agent.getAgent_name() + room.getRoom_addr() + " 考生数量:"
|
|
|
+ room.getReal_std_total() + " 准考证号:" + ticket_value;
|
|
|
|
|
|
p1 = new Paragraph(value).setFontSize(param.getRoom_addr_font()).setBold().setTextAlignment(TextAlignment.LEFT)
|