|
|
@ -33,12 +33,12 @@
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="col-6">
|
|
|
|
<label class="form-label fw-bold form-search-title">요청일자</label>
|
|
|
|
<label class="form-label fw-bold form-search-title">요청일자</label>
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<input type="text" id="schRequestYmdFrom--${pageName}" name="schRequestYmdFrom"
|
|
|
|
<input type="text" id="schDmndYmdFrom--${pageName}" name="schDmndYmdFrom"
|
|
|
|
class="form-control form-date"
|
|
|
|
class="form-control form-date"
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
~
|
|
|
|
~
|
|
|
|
<input type="text" id="schRequestYmdTo--${pageName}" name="schRequestYmdTo"
|
|
|
|
<input type="text" id="schDmndYmdTo--${pageName}" name="schDmndYmdTo"
|
|
|
|
class="form-control form-date"
|
|
|
|
class="form-control form-date"
|
|
|
|
data-fmt-type="day" title="종료 날짜 선택">
|
|
|
|
data-fmt-type="day" title="종료 날짜 선택">
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
@ -82,21 +82,21 @@
|
|
|
|
<th style="min-width: 80px;">접수일자</th>
|
|
|
|
<th style="min-width: 80px;">접수일자</th>
|
|
|
|
<th style="min-width: 80px;">목록번호</th>
|
|
|
|
<th style="min-width: 80px;">목록번호</th>
|
|
|
|
<th style="min-width: 80px;">요청자</th>
|
|
|
|
<th style="min-width: 80px;">요청자</th>
|
|
|
|
<th style="min-width: 80px;">등록일시</th>
|
|
|
|
<th style="min-width: 80px;">응답일시</th>
|
|
|
|
<th style="min-width: 80px;">상태</th>
|
|
|
|
<th style="min-width: 80px;">상태</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="requestTbody--${pageName}"></tbody>
|
|
|
|
<tbody id="requestTbody--${pageName}"></tbody>
|
|
|
|
<template id="requestRow--${pageName}">
|
|
|
|
<template id="requestRow--${pageName}">
|
|
|
|
<tr data-key="{REQUEST_ID}">
|
|
|
|
<tr data-key="{INDIV_ID}">
|
|
|
|
<td onclick="{onclick}" class="text-end">{ROW_NUM}</td>
|
|
|
|
<td onclick="{onclick}" class="text-end">{ROW_NUM}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{요청일시}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{DMND_YMD}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{요청구분}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{DMND_SE_CD}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{접수일자}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{RCPT_YMD}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{목록번호}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{PST_NO}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{요청자}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{RGTR}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{등록일시}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{RSPNS_DT}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{상태}</td>
|
|
|
|
<td onclick="{onclick}" class="text-center">{STTS_CD}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="requestNotFound--${pageName}">
|
|
|
|
<template id="requestNotFound--${pageName}">
|
|
|
@ -159,7 +159,8 @@
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
//var 상태 = new CommonCodes();
|
|
|
|
var FIM062 = new CommonCodes(${FIM062});
|
|
|
|
|
|
|
|
var FIM063 = new CommonCodes(${FIM063});
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
@ -178,11 +179,13 @@ $(document).ready(function(){
|
|
|
|
$P.requestControl = new DatasetControl({
|
|
|
|
$P.requestControl = new DatasetControl({
|
|
|
|
urls : { load : "", create : "", remove : "" },
|
|
|
|
urls : { load : "", create : "", remove : "" },
|
|
|
|
dataGetter : obj => obj["List"], appendData:true,
|
|
|
|
dataGetter : obj => obj["List"], appendData:true,
|
|
|
|
keymapper : info => info ? info.REQUEST_ID : "",
|
|
|
|
keymapper : info => info ? info.INDIV_ID : "",
|
|
|
|
formats : {
|
|
|
|
formats : {
|
|
|
|
//STTS : [],
|
|
|
|
DMND_SE_CD : FIM062,
|
|
|
|
REQUEST_DT : datetimeFormat,
|
|
|
|
STTS_CD : FIM063,
|
|
|
|
RCPT_YMD : dateFormat
|
|
|
|
DMND_YMD : dateFormat,
|
|
|
|
|
|
|
|
RCPT_YMD : dateFormat,
|
|
|
|
|
|
|
|
RSPNS_DT : datetimeFormat
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$P.requestControl.defaultFetchSize = FETCH_XS;
|
|
|
|
$P.requestControl.defaultFetchSize = FETCH_XS;
|
|
|
@ -233,7 +236,7 @@ $(document).ready(function(){
|
|
|
|
info = $P.requestControl.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
info = $P.requestControl.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.requestControl.dataset.setCurrent(info["REQUEST_ID"],true);
|
|
|
|
$P.requestControl.dataset.setCurrent(info["INDIV_ID"],true);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -242,7 +245,7 @@ $(document).ready(function(){
|
|
|
|
if(!item){
|
|
|
|
if(!item){
|
|
|
|
$P.clickRequestList("", true);
|
|
|
|
$P.clickRequestList("", true);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.clickRequestList($P.requestControl.getCurrent()["REQUEST_ID"], true);
|
|
|
|
$P.clickRequestList($P.requestControl.getCurrent()["INDIV_ID"], true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -258,8 +261,8 @@ $(document).ready(function(){
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.fnReset = () => {
|
|
|
|
$P.fnReset = () => {
|
|
|
|
|
|
|
|
|
|
|
|
$('#schRequestYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
|
|
|
|
$('#schDmndYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
|
|
|
|
$('#schRequestYmdTo--${pageName}').datepicker('setDate', new Date());
|
|
|
|
$('#schDmndYmdTo--${pageName}').datepicker('setDate', new Date());
|
|
|
|
$P.requestControl.setData([]);
|
|
|
|
$P.requestControl.setData([]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -274,7 +277,7 @@ $(document).ready(function(){
|
|
|
|
$P.requestControl.untilPageNum = $P.requestControl.query.pageNum;
|
|
|
|
$P.requestControl.untilPageNum = $P.requestControl.query.pageNum;
|
|
|
|
$P.requestControl.query.fetchSize = $P.requestControl.defaultFetchSize * $P.requestControl.query.pageNum;
|
|
|
|
$P.requestControl.query.fetchSize = $P.requestControl.defaultFetchSize * $P.requestControl.query.pageNum;
|
|
|
|
$P.requestControl.beforeCurrent = {
|
|
|
|
$P.requestControl.beforeCurrent = {
|
|
|
|
key : $P.requestControl.getCurrent()["REQUEST_ID"],
|
|
|
|
key : $P.requestControl.getCurrent()["INDIV_ID"],
|
|
|
|
index : $P.requestControl.getCurrent()["ROW_NUM"] - 1
|
|
|
|
index : $P.requestControl.getCurrent()["ROW_NUM"] - 1
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$P.requestControl.load(1);
|
|
|
|
$P.requestControl.load(1);
|
|
|
@ -283,7 +286,8 @@ $(document).ready(function(){
|
|
|
|
$P.searchRequestList = () => {
|
|
|
|
$P.searchRequestList = () => {
|
|
|
|
|
|
|
|
|
|
|
|
$P.requestControl.query = $P.getParams();
|
|
|
|
$P.requestControl.query = $P.getParams();
|
|
|
|
// TODO : 요청자료 조회 서비스 // $P.requestControl.load(1);
|
|
|
|
|
|
|
|
|
|
|
|
$P.requestControl.load(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.scrollEnd = (obj) => {
|
|
|
|
$P.scrollEnd = (obj) => {
|
|
|
@ -330,7 +334,7 @@ $(document).ready(function(){
|
|
|
|
var notFound = [document.getElementById("requestNotFound--${pageName}").innerHTML];
|
|
|
|
var notFound = [document.getElementById("requestNotFound--${pageName}").innerHTML];
|
|
|
|
var found = document.getElementById("requestRow--${pageName}").innerHTML;
|
|
|
|
var found = document.getElementById("requestRow--${pageName}").innerHTML;
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickRequestList('" + dataItem.getValue("REQUEST_ID") + "');");
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickRequestList('" + dataItem.getValue("INDIV_ID") + "');");
|
|
|
|
var trs = empty ? notFound : requestList.inStrings(found, replacer);
|
|
|
|
var trs = empty ? notFound : requestList.inStrings(found, replacer);
|
|
|
|
$("#requestTbody--${pageName}").html(trs.join());
|
|
|
|
$("#requestTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
@ -361,7 +365,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var requestIds = ds.map(function(item){
|
|
|
|
var requestIds = ds.map(function(item){
|
|
|
|
if(item['STTS_CD'] == 'complete'){
|
|
|
|
if(item['STTS_CD'] == 'complete'){
|
|
|
|
return item["REQUEST_ID"];
|
|
|
|
return item["INDIV_ID"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -372,7 +376,7 @@ $(document).ready(function(){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var curKey = cur["REQUEST_ID"];
|
|
|
|
var curKey = cur["INDIV_ID"];
|
|
|
|
$P.requestControl.select(curKey,true);
|
|
|
|
$P.requestControl.select(curKey,true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|