pdf null 오류
This commit is contained in:
parent
65a0fd430e
commit
4db0654e73
@ -2288,34 +2288,42 @@ public class PwrGnrSimService {
|
|||||||
|
|
||||||
// 상단 요약정보
|
// 상단 요약정보
|
||||||
elm = doc.getElementById("objectNo");
|
elm = doc.getElementById("objectNo");
|
||||||
elm.text(
|
if (elm != null) {
|
||||||
StringUtils.defaultString(data.getObjectNo() + " (Plan No : " + data.getPlanNo() + ")"));
|
elm.text(
|
||||||
|
StringUtils.defaultString(data.getObjectNo() + " (Plan No : " + data.getPlanNo() + ")"));
|
||||||
|
}
|
||||||
elm = doc.getElementById("drawingEstimateCreateDate");
|
elm = doc.getElementById("drawingEstimateCreateDate");
|
||||||
elm.text(StringUtils.defaultString(data.getDrawingEstimateCreateDate()));
|
if (elm != null) {
|
||||||
|
elm.text(StringUtils.defaultString(data.getDrawingEstimateCreateDate()));
|
||||||
|
}
|
||||||
elm = doc.getElementById("prefName");
|
elm = doc.getElementById("prefName");
|
||||||
|
if (elm != null) {
|
||||||
elm.text(StringUtils.defaultString(data.getPrefName()));
|
elm.text(StringUtils.defaultString(data.getPrefName()));
|
||||||
|
}
|
||||||
elm = doc.getElementById("areaName");
|
elm = doc.getElementById("areaName");
|
||||||
elm.text(StringUtils.defaultString(data.getAreaName()));
|
if (elm != null) {
|
||||||
|
elm.text(StringUtils.defaultString(data.getAreaName()));
|
||||||
|
}
|
||||||
elm = doc.getElementById("capacity");
|
elm = doc.getElementById("capacity");
|
||||||
elm.text(StringUtils.defaultString(data.getCapacity()) + " kW");
|
if (elm != null) {
|
||||||
|
elm.text(StringUtils.defaultString(data.getCapacity()) + " kW");
|
||||||
|
}
|
||||||
elm = doc.getElementById("anlFrcsGnrt");
|
elm = doc.getElementById("anlFrcsGnrt");
|
||||||
elm.text(StringUtils.defaultString(String.valueOf(pwrGnrSimList[12])));
|
if (elm != null) {
|
||||||
|
elm.text(StringUtils.defaultString(String.valueOf(pwrGnrSimList[12])));
|
||||||
|
}
|
||||||
elm = doc.getElementById("snowfall");
|
elm = doc.getElementById("snowfall");
|
||||||
elm.text(StringUtils.defaultString(data.getSnowfall()) + " cm");
|
if (elm != null) {
|
||||||
|
elm.text(StringUtils.defaultString(data.getSnowfall()) + " cm");
|
||||||
|
}
|
||||||
elm = doc.getElementById("standardWindSpeedId");
|
elm = doc.getElementById("standardWindSpeedId");
|
||||||
elm.text(StringUtils.defaultString(data.getStandardWindSpeedId()));
|
if (elm != null) {
|
||||||
|
elm.text(StringUtils.defaultString(data.getStandardWindSpeedId()));
|
||||||
|
}
|
||||||
elm = doc.getElementById("pwrGnrSimTypeName");
|
elm = doc.getElementById("pwrGnrSimTypeName");
|
||||||
elm.text(StringUtils.defaultString(data.getPwrGnrSimTypeName()));
|
if (elm != null) {
|
||||||
|
elm.text(StringUtils.defaultString(data.getPwrGnrSimTypeName()));
|
||||||
|
}
|
||||||
boolean isUnchanged = Arrays.stream(pwrGnrSimList).allMatch(value -> value == "00");
|
boolean isUnchanged = Arrays.stream(pwrGnrSimList).allMatch(value -> value == "00");
|
||||||
if (!isUnchanged) { // 변경된값 확인
|
if (!isUnchanged) { // 변경된값 확인
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user