출력정보 설정 화면 추가
parent
c615de89be
commit
579fdc4114
@ -0,0 +1,62 @@
|
||||
package cokr.xit.fims.sprt.service.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import cokr.xit.fims.cmmn.pdf.DefaultOtptStng;
|
||||
import cokr.xit.fims.cmmn.pdf.PDFFormat;
|
||||
import cokr.xit.fims.cmmn.pdf.format.Advntce;
|
||||
import cokr.xit.fims.sprt.OtptStngQuery;
|
||||
import cokr.xit.fims.sprt.dao.OtptStngMapper;
|
||||
import cokr.xit.foundation.AbstractComponent;
|
||||
import cokr.xit.foundation.data.DataObject;
|
||||
|
||||
@Component("otptStngBean")
|
||||
public class OtptStngBean extends AbstractComponent {
|
||||
|
||||
@Resource(name = "otptStngMapper")
|
||||
private OtptStngMapper otptStngMapper;
|
||||
|
||||
public Map<String, Object> getOtptStngMap(OtptStngQuery query){
|
||||
Map<String,Object> otptStngMap = new HashMap<String,Object>();
|
||||
|
||||
PDFFormat pdfFormat = null;
|
||||
switch(query.getSndngSeCd()) {
|
||||
case "02" :
|
||||
pdfFormat = new Advntce();
|
||||
break;
|
||||
}
|
||||
|
||||
List<DataObject> otptStngList = otptStngMapper.selectOtptStngList(query);
|
||||
if(otptStngList == null) {
|
||||
otptStngList = new ArrayList<DataObject>();
|
||||
}
|
||||
|
||||
pdfFormat.appendOtptAttribute(otptStngList);
|
||||
|
||||
List<DefaultOtptStng> uniquePrototypeList = pdfFormat.getPrototypeStngs(true);
|
||||
List<DefaultOtptStng> multiplePrototypeList = pdfFormat.getPrototypeStngs(false);
|
||||
|
||||
List<DataObject> uniqueDataList = otptStngList.stream().filter(item -> item.string("UNIQUE_YN").equals("Y")).toList();
|
||||
List<DataObject> multipleDataList = otptStngList.stream().filter(item -> item.string("UNIQUE_YN").equals("N")).toList();
|
||||
|
||||
Map<String, Object> unique = new HashMap<String,Object>();
|
||||
unique.put("prototypeList", uniquePrototypeList);
|
||||
unique.put("dataList", uniqueDataList);
|
||||
|
||||
Map<String, Object> multiple = new HashMap<String,Object>();
|
||||
multiple.put("prototypeList", multiplePrototypeList);
|
||||
multiple.put("dataList", multipleDataList);
|
||||
|
||||
|
||||
otptStngMap.put("unique", unique);
|
||||
otptStngMap.put("multiple", multiple);
|
||||
return otptStngMap;
|
||||
}
|
||||
}
|
@ -0,0 +1,322 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
||||
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
||||
|
||||
<c:set var="prefixName" scope="request">출력설정</c:set>
|
||||
|
||||
<div class="d-flex flex-row justify-content-evenly">
|
||||
<div class="card p-3">
|
||||
<div class="row mb-3 justify-content-start">
|
||||
<div class="col-md-12">
|
||||
<div class="float-start">
|
||||
<form id="frmSearch--${pageName}" name="frmSearch">
|
||||
<input type="hidden" name="sggCd" />
|
||||
업무
|
||||
<select class="form-select" name="taskSeCd">
|
||||
<c:forEach items="${FIM054List}" var="item">
|
||||
<option value="${item.code}">${item.value}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
출력물
|
||||
<select class="form-select" name="sndngSeCd">
|
||||
<option value="02">사전통지서</option>
|
||||
</select>
|
||||
용지
|
||||
<select class="form-select" name="otptPaperSeCd">
|
||||
<c:forEach items="${FIM078List}" var="item">
|
||||
<option value="${item.code}">${item.value}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<button type="button" id="btnLoad--${pageName}" class="btn btn-primary">불러오기</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="float-end">
|
||||
<button type="button" id="btnSave--${pageName}" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 id="currentOtpt--${pageName}" class="bg-lighter" style="min-height:30px;">
|
||||
</h3>
|
||||
|
||||
<div class="row mb-3 justify-content-start">
|
||||
<div class="col-md-12">
|
||||
<div class="float-start">
|
||||
<button type="button" id="btnUniqueAdd--${pageName}" class="btn btn-info">추가</button>
|
||||
<button type="button" id="btnUniqueDel--${pageName}" class="btn btn-info">삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-datatable text-nowrap mb-3">
|
||||
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
||||
<div class="table-responsive"
|
||||
style="overflow-x:scroll; height:300px; overflow-y:scroll;" >
|
||||
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer"
|
||||
id="tableUnique--${pageName}" aria-describedby="DataTables_Table_0_info">
|
||||
<thead class="sticky-thead">
|
||||
<tr id="theadTrUnique--${pageName}">
|
||||
<th style="width:200px">출력항목명</th>
|
||||
<th style="width:120px">텍스트/이미지</th>
|
||||
<th style="width:120px">위치(좌)</th>
|
||||
<th style="width:120px">위치(상)</th>
|
||||
<th style="width:120px">사이즈(좌우)</th>
|
||||
<th style="width:120px">사이즈(상하)</th>
|
||||
<th style="width:120px">텍스트정렬</th>
|
||||
<th style="width:120px">글꼴</th>
|
||||
<th style="width:120px">글꼴크기</th>
|
||||
<th style="width:120px">글꼴색</th>
|
||||
<th style="width:120px">글꼴스타일</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbodyUnique--${pageName}">
|
||||
</tbody>
|
||||
<template id="foundUnique--${pageName}">
|
||||
<tr data-key="{OTPT_FORM_ID}">
|
||||
<td>
|
||||
<input type="text" readonly />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="300" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="300" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="300" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="300" />
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="left">왼쪽</option>
|
||||
<option value="center">중앙</option>
|
||||
<option value="right">오른쪽</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="gulimche">굴림체</option>
|
||||
<option value="gulim">굴림</option>
|
||||
<option value="batangche">바탕체</option>
|
||||
<option value="batang">바탕</option>
|
||||
<option value="dotumche">돋움체</option>
|
||||
<option value="dotum">돋움</option>
|
||||
<option value="gungsuhche">궁서체</option>
|
||||
<option value="gungsuh">궁서</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
<option value="13">13</option>
|
||||
<option value="14">14</option>
|
||||
<option value="15">15</option>
|
||||
<option value="16">16</option>
|
||||
<option value="17">17</option>
|
||||
<option value="18">18</option>
|
||||
<option value="19">19</option>
|
||||
<option value="20">20</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="BLACK">검정</option>
|
||||
<option value="RED">빨강</option>
|
||||
<option value="ORANGE">주황</option>
|
||||
<option value="YELLOW">노랑</option>
|
||||
<option value="YELLOW_GREEN">연두</option>
|
||||
<option value="GREEN">초록</option>
|
||||
<option value="CYAN">청록</option>
|
||||
<option value="BLUE">파랑</option>
|
||||
<option value="VIOLET">보라</option>
|
||||
<option value="MAGENTA">마젠타</option>
|
||||
<option value="DEEP_PINK">짙은분홍</option>
|
||||
<option value="LIGHT_GREY">밝은회색</option>
|
||||
<option value="GREY">회색</option>
|
||||
<option value="DARK_GREY">어두운회색</option>
|
||||
<option value="WHITE">하양</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="FILL">일반</option>
|
||||
<option value="FILL_STROKE">굵게</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3 justify-content-start">
|
||||
<div class="col-md-12">
|
||||
<div class="float-start">
|
||||
<button type="button" id="btnMultipleAdd--${pageName}" class="btn btn-info">추가</button>
|
||||
<button type="button" id="btnMultipleDel--${pageName}" class="btn btn-info">삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-datatable text-nowrap mb-3">
|
||||
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
||||
<div class="table-responsive"
|
||||
style="overflow-x:scroll; height:300px; overflow-y:scroll;" >
|
||||
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer"
|
||||
id="tableMultiple--${pageName}" aria-describedby="DataTables_Table_0_info">
|
||||
<thead class="sticky-thead">
|
||||
<tr id="theadTrMultiple--${pageName}">
|
||||
<th style="width:200px">출력항목명</th>
|
||||
<th style="width:120px">텍스트/이미지</th>
|
||||
<th style="width:120px">위치(좌)</th>
|
||||
<th style="width:120px">위치(상)</th>
|
||||
<th style="width:120px">사이즈(좌우)</th>
|
||||
<th style="width:120px">사이즈(상하)</th>
|
||||
<th style="width:120px">텍스트정렬</th>
|
||||
<th style="width:120px">글꼴</th>
|
||||
<th style="width:120px">글꼴크기</th>
|
||||
<th style="width:120px">글꼴색</th>
|
||||
<th style="width:120px">글꼴스타일</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbodyMultiple--${pageName}">
|
||||
</tbody>
|
||||
<template id="foundMultiple--${pageName}">
|
||||
<tr data-key="{OTPT_FORM_ID}">
|
||||
<td>
|
||||
<select></select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="300" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="300" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="300" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="300" />
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="left">왼쪽</option>
|
||||
<option value="center">중앙</option>
|
||||
<option value="right">오른쪽</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="gulimche">굴림체</option>
|
||||
<option value="gulim">굴림</option>
|
||||
<option value="batangche">바탕체</option>
|
||||
<option value="batang">바탕</option>
|
||||
<option value="dotumche">돋움체</option>
|
||||
<option value="dotum">돋움</option>
|
||||
<option value="gungsuhche">궁서체</option>
|
||||
<option value="gungsuh">궁서</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
<option value="13">13</option>
|
||||
<option value="14">14</option>
|
||||
<option value="15">15</option>
|
||||
<option value="16">16</option>
|
||||
<option value="17">17</option>
|
||||
<option value="18">18</option>
|
||||
<option value="19">19</option>
|
||||
<option value="20">20</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="BLACK">검정</option>
|
||||
<option value="RED">빨강</option>
|
||||
<option value="ORANGE">주황</option>
|
||||
<option value="YELLOW">노랑</option>
|
||||
<option value="YELLOW_GREEN">연두</option>
|
||||
<option value="GREEN">초록</option>
|
||||
<option value="CYAN">청록</option>
|
||||
<option value="BLUE">파랑</option>
|
||||
<option value="VIOLET">보라</option>
|
||||
<option value="MAGENTA">마젠타</option>
|
||||
<option value="DEEP_PINK">짙은분홍</option>
|
||||
<option value="LIGHT_GREY">밝은회색</option>
|
||||
<option value="GREY">회색</option>
|
||||
<option value="DARK_GREY">어두운회색</option>
|
||||
<option value="WHITE">하양</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select>
|
||||
<option value="FILL">일반</option>
|
||||
<option value="FILL_STROKE">굵게</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="frmEdit--${pageName}" name="frmEdit">
|
||||
<input type="hidden" name="sggCd" />
|
||||
<input type="hidden" name="taskSeCd" />
|
||||
<input type="hidden" name="sndngSeCd" />
|
||||
<input type="hidden" name="otptPaperSeCd" />
|
||||
|
||||
<input type="text" name="dialogId" hidden />
|
||||
</form>
|
||||
|
||||
<span id="tempArea--${pageName}" hidden></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
pageObject["${pageName}"] = {};
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var $P = pageObject["${pageName}"];
|
||||
|
||||
$P.fnLoad = () => {
|
||||
|
||||
var ff = new FimsFormFields("#frmSearch--${pageName}");
|
||||
|
||||
ajax.post({
|
||||
url : wctx.url("/sprt/sprt01/200/info.do"),
|
||||
data : ff.get(),
|
||||
success : (resp) => {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
$P.fnSave = () => {
|
||||
|
||||
}
|
||||
|
||||
$("#btnLoad--${pageName}").on("click", () => $P.fnLoad() );
|
||||
$("#btnSave--${pageName}").on("click", () => $P.fnSave() );
|
||||
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue