[1219] 견적서 PDF에 방위각도 추가
This commit is contained in:
parent
c494df23a7
commit
ad52e484b4
@ -2183,6 +2183,9 @@ public class EstimateService {
|
||||
elm = doc.getElementById("standardWindSpeedName4");
|
||||
elm.text(StringUtils.defaultString(data.getStandardWindSpeedName()));
|
||||
|
||||
// elm = doc.getElementById("deg1");
|
||||
// elm.text(StringUtils.defaultString(data.getRoofInfo().getCompasDeg())+"°");
|
||||
|
||||
// 도면(가대제외 이미지)
|
||||
if (data.getDrawingImg1() != null) {
|
||||
elm = doc.getElementById("drawingImg1");
|
||||
@ -2190,6 +2193,16 @@ public class EstimateService {
|
||||
elm.html("<img src='data:image/png;base64," + imgSrc1 + "' width='660'/>");
|
||||
}
|
||||
|
||||
if (data.getRoofInfo().getCompasDegImg() != null) {
|
||||
elm = doc.getElementById("degImg1");
|
||||
String imgSrc1 = Base64.getEncoder().encodeToString(data.getRoofInfo().getCompasDegImg());
|
||||
elm.html(
|
||||
"<img src='data:image/png;base64,"
|
||||
+ imgSrc1
|
||||
+ "' width='50'/><div class=\"guide-img-tit\" >"+ StringUtils.defaultString(data.getRoofInfo().getCompasDeg()) + "°</div>");
|
||||
}
|
||||
|
||||
|
||||
int no = 1;
|
||||
sb = new StringBuilder();
|
||||
for (ItemResponse itemResponse : list) {
|
||||
@ -2297,6 +2310,15 @@ public class EstimateService {
|
||||
elm.html("<img src='data:image/png;base64," + imgSrc2 + "' width='660'/>");
|
||||
}
|
||||
|
||||
if (data.getRoofInfo().getCompasDegImg() != null) {
|
||||
elm = doc.getElementById("degImg2");
|
||||
String imgSrc2 = Base64.getEncoder().encodeToString(data.getRoofInfo().getCompasDegImg());
|
||||
elm.html(
|
||||
"<img src='data:image/png;base64,"
|
||||
+ imgSrc2
|
||||
+ "' width='50'/><div class=\"guide-img-tit\" >"+ StringUtils.defaultString(data.getRoofInfo().getCompasDeg()) + "°</div>");
|
||||
}
|
||||
|
||||
no = 1;
|
||||
sb = new StringBuilder();
|
||||
for (ItemResponse itemResponse : list) {
|
||||
|
||||
@ -67,15 +67,24 @@
|
||||
|
||||
/* 가이드박스 */
|
||||
.guide-box {
|
||||
position: relative;
|
||||
border: 1px solid #000;
|
||||
padding: 15px;
|
||||
margin: 10px 0
|
||||
margin: 10px 0;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.guide-image {
|
||||
margin-right: 15px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.guide-content {
|
||||
white-space: pre-line;
|
||||
line-height: 1.4;
|
||||
font-size: 14px
|
||||
font-size: 14px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* 차트퍼블 */
|
||||
@ -345,7 +354,17 @@
|
||||
padding: 30px 0;
|
||||
border: 1px solid #000;
|
||||
}
|
||||
.guide-image{
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.guide-img-tit{
|
||||
text-align: center;
|
||||
font-size: 8px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
@ -663,7 +682,11 @@
|
||||
</table>
|
||||
|
||||
<div class="guide-box">
|
||||
<div class="guide-image" id="degImg1">
|
||||
</div>
|
||||
|
||||
<div class="guide-content" id="drawingImg1">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -774,6 +797,8 @@
|
||||
</table>
|
||||
|
||||
<div class="guide-box">
|
||||
<div class="guide-image" id="degImg2">
|
||||
</div>
|
||||
<div class="guide-content" id="drawingImg2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user