|
|
|
@ -116,7 +116,7 @@
|
|
|
|
|
<th style="width:140px">텍스트정렬</th>
|
|
|
|
|
<th style="width:110px">글꼴</th>
|
|
|
|
|
<th style="width:110px">글꼴크기</th>
|
|
|
|
|
<th style="width:140px">글꼴색</th>
|
|
|
|
|
<th style="width:80px">글꼴색</th>
|
|
|
|
|
<th style="width:110px">글꼴스타일</th>
|
|
|
|
|
<th class="dummy-th"></th>
|
|
|
|
|
</tr>
|
|
|
|
@ -172,22 +172,22 @@
|
|
|
|
|
<input type="number" class="form-control w-px-90" min="8" max="25" />
|
|
|
|
|
</td>
|
|
|
|
|
<td data-col="fontColor" class="text-center">
|
|
|
|
|
<select class="form-select no-bgi">
|
|
|
|
|
<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 class="form-select no-bgi w-automin">
|
|
|
|
|
<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="DARK_GREY"></option>
|
|
|
|
|
<option value="GREY"></option>
|
|
|
|
|
<option value="LIGHT_GREY"></option>
|
|
|
|
|
<option value="WHITE"></option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td data-col="fontStyle" class="text-center">
|
|
|
|
@ -276,28 +276,33 @@ $(document).ready(function(){
|
|
|
|
|
$("#"+tbodyId).append(found);
|
|
|
|
|
|
|
|
|
|
var lastTr = $("#"+tbodyId).find("tr").last()[0];
|
|
|
|
|
$($P.fnGetElement(lastTr,"otptNm")).val(data.OTPT_NM);
|
|
|
|
|
$($P.fnGetElement(lastTr,"componentType")).val(data.COMPONENT_TYPE);
|
|
|
|
|
|
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontNm"));
|
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontColor"));
|
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontStyle"));
|
|
|
|
|
|
|
|
|
|
$($P.fnGetElement(lastTr,"otptNm")).set(data.OTPT_NM);
|
|
|
|
|
$($P.fnGetElement(lastTr,"componentType")).set(data.COMPONENT_TYPE);
|
|
|
|
|
|
|
|
|
|
$($P.fnGetElement(lastTr,"leftPstn"))
|
|
|
|
|
.val(!isEmpty(data.LEFT_PSTN) ? data.LEFT_PSTN : $P.fnGetProto(prototypeList, data.OTPT_NM, "leftPstn"));
|
|
|
|
|
.set(!isEmpty(data.LEFT_PSTN) ? data.LEFT_PSTN : $P.fnGetProto(prototypeList, data.OTPT_NM, "leftPstn"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"topPstn"))
|
|
|
|
|
.val(!isEmpty(data.TOP_PSTN) ? data.TOP_PSTN : $P.fnGetProto(prototypeList, data.OTPT_NM, "topPstn"));
|
|
|
|
|
.set(!isEmpty(data.TOP_PSTN) ? data.TOP_PSTN : $P.fnGetProto(prototypeList, data.OTPT_NM, "topPstn"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"widthSz"))
|
|
|
|
|
.val(!isEmpty(data.WIDTH_SZ) ? data.WIDTH_SZ : $P.fnGetProto(prototypeList, data.OTPT_NM, "widthSz"));
|
|
|
|
|
.set(!isEmpty(data.WIDTH_SZ) ? data.WIDTH_SZ : $P.fnGetProto(prototypeList, data.OTPT_NM, "widthSz"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"heightSz"))
|
|
|
|
|
.val(!isEmpty(data.HEIGHT_SZ) ? data.HEIGHT_SZ : $P.fnGetProto(prototypeList, data.OTPT_NM, "heightSz"));
|
|
|
|
|
.set(!isEmpty(data.HEIGHT_SZ) ? data.HEIGHT_SZ : $P.fnGetProto(prototypeList, data.OTPT_NM, "heightSz"));
|
|
|
|
|
|
|
|
|
|
$($P.fnGetElement(lastTr,"textSort"))
|
|
|
|
|
.val(!isEmpty(data.TEXT_SORT) ? data.TEXT_SORT : $P.fnGetProto(prototypeList, data.OTPT_NM, "textSort"));
|
|
|
|
|
.set(!isEmpty(data.TEXT_SORT) ? data.TEXT_SORT : $P.fnGetProto(prototypeList, data.OTPT_NM, "textSort"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"fontNm"))
|
|
|
|
|
.val(!isEmpty(data.FONT_NM) ? data.FONT_NM : $P.fnGetProto(prototypeList, data.OTPT_NM, "fontNm"));
|
|
|
|
|
.set(!isEmpty(data.FONT_NM) ? data.FONT_NM : $P.fnGetProto(prototypeList, data.OTPT_NM, "fontNm"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"fontSz"))
|
|
|
|
|
.val(!isEmpty(data.FONT_SZ) ? data.FONT_SZ : $P.fnGetProto(prototypeList, data.OTPT_NM, "fontSz"));
|
|
|
|
|
.set(!isEmpty(data.FONT_SZ) ? data.FONT_SZ : $P.fnGetProto(prototypeList, data.OTPT_NM, "fontSz"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"fontColor"))
|
|
|
|
|
.val(!isEmpty(data.FONT_COLOR) ? data.FONT_COLOR : $P.fnGetProto(prototypeList, data.OTPT_NM, "fontColor"));
|
|
|
|
|
.set(!isEmpty(data.FONT_COLOR) ? data.FONT_COLOR : $P.fnGetProto(prototypeList, data.OTPT_NM, "fontColor"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"fontStyle"))
|
|
|
|
|
.val(!isEmpty(data.FONT_STYLE) ? data.FONT_STYLE : $P.fnGetProto(prototypeList, data.OTPT_NM, "fontStyle"));
|
|
|
|
|
.set(!isEmpty(data.FONT_STYLE) ? data.FONT_STYLE : $P.fnGetProto(prototypeList, data.OTPT_NM, "fontStyle"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#"+tbodyId).find("tr").each(function(){
|
|
|
|
@ -373,6 +378,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//행 추가
|
|
|
|
|
$P.addRow = (otptNm) => {
|
|
|
|
|
var paperSeCd = $("#frmEdit--${pageName}").find("[name='otptPaperSeCd']").val();
|
|
|
|
|
var prototypeList;
|
|
|
|
@ -398,33 +404,36 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var lastTr = $("#"+tbodyId).find("tr").last()[0];
|
|
|
|
|
|
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontNm"));
|
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontColor"));
|
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontStyle"));
|
|
|
|
|
|
|
|
|
|
if(otptNm != null && otptNm != ""){
|
|
|
|
|
|
|
|
|
|
$($P.fnGetElement(lastTr,"otptNm")).val(otptNm);
|
|
|
|
|
$($P.fnGetElement(lastTr,"otptNm")).set(otptNm);
|
|
|
|
|
|
|
|
|
|
$($P.fnGetElement(lastTr,"componentType"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "componentType"));
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "componentType"));
|
|
|
|
|
|
|
|
|
|
$($P.fnGetElement(lastTr,"leftPstn"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "leftPstn"));
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "leftPstn"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"topPstn"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "topPstn"));
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "topPstn"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"widthSz"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "widthSz"));
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "widthSz"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"heightSz"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "heightSz"));
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "heightSz"));
|
|
|
|
|
|
|
|
|
|
$($P.fnGetElement(lastTr,"textSort"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "textSort"));
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "textSort"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"fontNm"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "fontNm"));
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "fontNm"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"fontSz"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "fontSz"));
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "fontSz"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"fontColor"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "fontColor"));
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "fontColor"));
|
|
|
|
|
$($P.fnGetElement(lastTr,"fontStyle"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptNm, "fontStyle"));
|
|
|
|
|
|
|
|
|
|
.set($P.fnGetProto(prototypeList, otptNm, "fontStyle"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(tbodyId == "tbodyUnique--${pageName}"){
|
|
|
|
@ -440,6 +449,7 @@ $(document).ready(function(){
|
|
|
|
|
fnMakeSpinnerSelect(sel, toPrev, toNext);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//행 삭제
|
|
|
|
|
$P.delRow = (tbodyId) => {
|
|
|
|
|
|
|
|
|
|
if($("#"+tbodyId).find("tr").length <= 0){
|
|
|
|
|