|
|
@ -54,7 +54,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-datatable text-nowrap mb-3">
|
|
|
|
<div class="card-datatable text-nowrap mb-3">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div class="table-responsive"
|
|
|
|
<div id="scrollUnique--${pageName}" class="table-responsive"
|
|
|
|
style="overflow-x:scroll; height:300px; overflow-y:scroll;" >
|
|
|
|
style="overflow-x:scroll; height:300px; overflow-y:scroll;" >
|
|
|
|
<table
|
|
|
|
<table
|
|
|
|
class="table-layout-fixed compress-cell dataTable table table-bordered"
|
|
|
|
class="table-layout-fixed compress-cell dataTable table table-bordered"
|
|
|
@ -79,7 +79,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-datatable text-nowrap mb-3">
|
|
|
|
<div class="card-datatable text-nowrap mb-3">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div class="table-responsive"
|
|
|
|
<div id="scrollMultiple--${pageName}" class="table-responsive"
|
|
|
|
style="overflow-x:scroll; height:300px; overflow-y:scroll;" >
|
|
|
|
style="overflow-x:scroll; height:300px; overflow-y:scroll;" >
|
|
|
|
<table
|
|
|
|
<table
|
|
|
|
class="table-layout-fixed compress-cell dataTable table table-bordered"
|
|
|
|
class="table-layout-fixed compress-cell dataTable table table-bordered"
|
|
|
@ -110,6 +110,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<template id="theadTr--${pageName}">
|
|
|
|
<template id="theadTr--${pageName}">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<th style="width:130px">순서</th>
|
|
|
|
<th style="width:40px"></th>
|
|
|
|
<th style="width:40px"></th>
|
|
|
|
<th style="width:200px">출력항목명</th>
|
|
|
|
<th style="width:200px">출력항목명</th>
|
|
|
|
<th style="width:110px">유형</th>
|
|
|
|
<th style="width:110px">유형</th>
|
|
|
@ -128,6 +129,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
<template id="found--${pageName}">
|
|
|
|
<template id="found--${pageName}">
|
|
|
|
<tr data-key="{OTPT_FORM_ID}">
|
|
|
|
<tr data-key="{OTPT_FORM_ID}">
|
|
|
|
|
|
|
|
<td data-col="otptArtclOrdr" class="text-center">
|
|
|
|
|
|
|
|
<button type="button">▲</button>
|
|
|
|
|
|
|
|
<input type="text" readonly class="w-px-50 text-center" />
|
|
|
|
|
|
|
|
<button type="button">▼</button>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td data-col="checkbox" class="text-center">
|
|
|
|
<td data-col="checkbox" class="text-center">
|
|
|
|
<input type="checkbox" class="form-check-input" />
|
|
|
|
<input type="checkbox" class="form-check-input" />
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
@ -321,6 +327,16 @@ $(document).ready(function(){
|
|
|
|
var toPrev = $(sel).siblings()[0];
|
|
|
|
var toPrev = $(sel).siblings()[0];
|
|
|
|
var toNext = $(sel).siblings()[1];
|
|
|
|
var toNext = $(sel).siblings()[1];
|
|
|
|
fnMakeSpinnerSelect(sel, toPrev, toNext);
|
|
|
|
fnMakeSpinnerSelect(sel, toPrev, toNext);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var scrollDiv = "";
|
|
|
|
|
|
|
|
if(tbodyId == "tbodyUnique--${pageName}"){
|
|
|
|
|
|
|
|
scrollDiv = "scrollUnique--${pageName}";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
scrollDiv = "scrollMultiple--${pageName}";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var rowSpinButtons = $(this).find("td[data-col='otptArtclOrdr']").find("button");
|
|
|
|
|
|
|
|
fnMakeRowSpinner(this,rowSpinButtons[0],rowSpinButtons[1],document.getElementById(scrollDiv));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -412,6 +428,15 @@ $(document).ready(function(){
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontColor"));
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontColor"));
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontStyle"));
|
|
|
|
fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontStyle"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var scrollDiv = "";
|
|
|
|
|
|
|
|
if(tbodyId == "tbodyUnique--${pageName}"){
|
|
|
|
|
|
|
|
scrollDiv = "scrollUnique--${pageName}";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
scrollDiv = "scrollMultiple--${pageName}";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var rowSpinButtons = $(lastTr).find("td[data-col='otptArtclOrdr']").find("button");
|
|
|
|
|
|
|
|
fnMakeRowSpinner(lastTr,rowSpinButtons[0],rowSpinButtons[1],document.getElementById(scrollDiv));
|
|
|
|
|
|
|
|
|
|
|
|
if(otptArtclNm != null && otptArtclNm != ""){
|
|
|
|
if(otptArtclNm != null && otptArtclNm != ""){
|
|
|
|
|
|
|
|
|
|
|
|
$($P.fnGetElement(lastTr,"otptArtclNm")).set(otptArtclNm);
|
|
|
|
$($P.fnGetElement(lastTr,"otptArtclNm")).set(otptArtclNm);
|
|
|
@ -528,6 +553,7 @@ $(document).ready(function(){
|
|
|
|
var fontSz = $($P.fnGetElement(this,"fontSz")).val();
|
|
|
|
var fontSz = $($P.fnGetElement(this,"fontSz")).val();
|
|
|
|
var fontColor = $($P.fnGetElement(this,"fontColor")).val();
|
|
|
|
var fontColor = $($P.fnGetElement(this,"fontColor")).val();
|
|
|
|
var fontStyle = $($P.fnGetElement(this,"fontStyle")).val();
|
|
|
|
var fontStyle = $($P.fnGetElement(this,"fontStyle")).val();
|
|
|
|
|
|
|
|
var otptArtclOrdr = $($P.fnGetElement(this,"otptArtclOrdr")).val();
|
|
|
|
|
|
|
|
|
|
|
|
var row = {
|
|
|
|
var row = {
|
|
|
|
otptFormId : otptFormId,
|
|
|
|
otptFormId : otptFormId,
|
|
|
@ -541,6 +567,7 @@ $(document).ready(function(){
|
|
|
|
fontSz : fontSz,
|
|
|
|
fontSz : fontSz,
|
|
|
|
fontColor : fontColor,
|
|
|
|
fontColor : fontColor,
|
|
|
|
fontStyle : fontStyle,
|
|
|
|
fontStyle : fontStyle,
|
|
|
|
|
|
|
|
otptArtclOrdr : otptArtclOrdr,
|
|
|
|
|
|
|
|
|
|
|
|
sggCd : query.sggCd,
|
|
|
|
sggCd : query.sggCd,
|
|
|
|
taskSeCd : query.taskSeCd,
|
|
|
|
taskSeCd : query.taskSeCd,
|
|
|
@ -644,5 +671,16 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnSave--${pageName}").on("click", () => $P.fnSave() );
|
|
|
|
$("#btnSave--${pageName}").on("click", () => $P.fnSave() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var markerFinder = function(tr){
|
|
|
|
|
|
|
|
return $P.fnGetElement(tr,"otptArtclOrdr");
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var markerSetter = function(marker, value){
|
|
|
|
|
|
|
|
marker.value = value;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fnMakeRowNumberingTable(document.getElementById('tbodyUnique--${pageName}'), markerFinder, markerSetter);
|
|
|
|
|
|
|
|
fnMakeRowNumberingTable(document.getElementById('tbodyMultiple--${pageName}'), markerFinder, markerSetter);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|