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