|
@@ -11,6 +11,7 @@ import cn.hmsoft.art.data.model.std.StdReg;
|
|
|
import cn.hmsoft.art.helper.ArtParamHelper;
|
|
|
import cn.hmsoft.frame.util.FrameZoneUtil;
|
|
|
import cn.hmsoft.helper.LocalDateHelper;
|
|
|
+import cn.hmsoft.helper.StringHelper;
|
|
|
import cn.hmsoft.helper.pdf.ItextPdfHelper;
|
|
|
import cn.hmsoft.log.LogHelper;
|
|
|
import com.itextpdf.io.image.ImageDataFactory;
|
|
@@ -203,7 +204,8 @@ public class Ticket10047FZ extends TicketHelper {
|
|
|
table.addCell(new Cell(1, 1).add(showDate).setFontSize(fontSize)
|
|
|
.setVerticalAlignment(VerticalAlignment.MIDDLE).setHorizontalAlignment(HorizontalAlignment.CENTER)
|
|
|
.setTextAlignment(TextAlignment.CENTER));
|
|
|
- table.addCell(new Cell(1, 1).add("美术馆" + (!writtenList.isEmpty() ? writtenList.get(0).getReal_checkin_seq() : "") + "号").setFontSize(fontSize)
|
|
|
+ String bootPlace = getBootPlace(enrol.getAspect_name());
|
|
|
+ table.addCell(new Cell(1, 1).add(bootPlace + (!writtenList.isEmpty() ? writtenList.get(0).getReal_checkin_seq() : "") + "号").setFontSize(fontSize)
|
|
|
.setVerticalAlignment(VerticalAlignment.MIDDLE).setHorizontalAlignment(HorizontalAlignment.CENTER)
|
|
|
.setTextAlignment(TextAlignment.CENTER));
|
|
|
|
|
@@ -326,6 +328,20 @@ public class Ticket10047FZ extends TicketHelper {
|
|
|
doc.add(noticeTable.setMarginLeft(20).setMarginTop(10).setMarginRight(20));
|
|
|
}
|
|
|
|
|
|
+ private String getBootPlace(String aspectName) {
|
|
|
+ String place = "美术馆";
|
|
|
+ if (StringHelper.isEmpty(aspectName)) {
|
|
|
+ return place;
|
|
|
+ }
|
|
|
+ if (aspectName.equals("设计学类(艺术设计)") || aspectName.equals("艺术设计学") || aspectName.equals("设计学类(城市艺术设计)") || aspectName.equals(
|
|
|
+ "建筑学")) {
|
|
|
+ place = "美术馆2层";
|
|
|
+ } else {
|
|
|
+ place = "美术馆1层";
|
|
|
+ }
|
|
|
+ return place;
|
|
|
+ }
|
|
|
+
|
|
|
private String getMonthDay(String value) {
|
|
|
String result = "";
|
|
|
switch (value) {
|