DatasetControl 인스턴스 생성방법 수정

main
이범준 3 months ago
parent 66eae53cb0
commit 7e7ffea547

@ -270,7 +270,7 @@ $(document).ready(function(){
**************************************************************************/
$P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
var ctrl = newCrdn01020DatasetControl($P);
var ctrl = newCrdn01020Control($P, { taskSeCd : "${taskSeCd}" });
ctrl.dataset.onCurrentChange = (dataItem) => {
if(!dataItem){

@ -384,7 +384,7 @@ $(document).ready(function(){
$P.uploadSet = uploadSupport($P.selectorn("inputUploadSet"));
var ctrl = newCrdn05030Control($P);
var ctrl = newCrdn05030Control($P, { taskSeCd : "${taskSeCd}" });
$P.uploadSet.onDatasetChange = () => {
var files = $P.uploadSet.getDataset();

@ -221,6 +221,7 @@
<script>
LoadScript("cvlc01010Script",wctx.url("/resources/js/fims/cvlc/cvlc01010.js?ver=${ver}"));
/**************************************************************************
* Global Variable
@ -243,20 +244,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, DatasetSupport, FormFields
**************************************************************************/
var ctrl = $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
urls : {
load : "",
getInfo : "",
remove : ""
},
formats : {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : datetimeFormat,
CRDN_YMD_TM : datetimeFormat
}
});
var ctrl = newCvlc01010Control($P);
ctrl.defaultFetchSize = FETCH_XS;
ctrl.query = { pageNum : 1, fetchSize : ctrl.defaultFetchSize };
ctrl.beforeCurrent = null;

@ -386,6 +386,7 @@
<script>
LoadScript("cvlc01020Script",wctx.url("/resources/js/fims/cvlc/cvlc01020.js?ver=${ver}"));
/**************************************************************************
* Global Variable
@ -421,19 +422,7 @@ $(document).ready(function(){
**************************************************************************/
$P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
var ctrl = $P.ctrl = new DatasetControl({
dataGetter:obj => obj.crdnInfo,
keymapper:info => info ? info.CRDN_ID : "",
urls : {
getInfo : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/info.do"),
update : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/update.do"),
create : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/create.do"),
remove : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/remove.do")
},
formats: {
}
});
var ctrl = newCvlc01020Control($P, { taskSeCd : "${taskSeCd}" });
ctrl.dataset.onCurrentChange = (dataItem) => {
$P.formFields.set(ctrl,dataItem);

@ -90,6 +90,8 @@
</div>
</div>
<script>
LoadScript("cvlc01050Script",wctx.url("/resources/js/fims/cvlc/cvlc01050.js?ver=${ver}"));
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
pageObject["${pageName}"].provided = {};
@ -118,21 +120,8 @@ $(document).ready(function() {
**************************************************************************/
$P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
var ctrl = $P.ctrl = new DatasetControl({
dataGetter:obj => obj.cvlcptInfo,
keymapper:info => info ? info.CRDN_ID : "",
urls : {
getInfo : wctx.url("/"+$P.taskSeCd+"/cvlc/cvlc01/050/info.do")
},
formats: {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : dateFormat
}
});
var ctrl = newCvlc01050Control($P);
/**************************************************************************
* Dataset.on
**************************************************************************/
ctrl.dataset.onCurrentChange = (dataItem) => {
$P.formFields.set(ctrl,dataItem);
}

@ -233,6 +233,7 @@
<script>
LoadScript("cvlc02010Script",wctx.url("/resources/js/fims/cvlc/cvlc02010.js?ver=${ver}"));
/**************************************************************************
* Global Variable
@ -249,20 +250,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, DatasetSupport, FormFields
**************************************************************************/
var ctrl = $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
urls : {
load : "",
getInfo : "",
update : ""
},
formats : {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : datetimeFormat,
CRDN_YMD_TM : datetimeFormat
}
});
var ctrl = newCvlc02010Control($P);
ctrl.defaultFetchSize = FETCH_XS;
ctrl.query = { pageNum : 1, fetchSize : ctrl.defaultFetchSize };
ctrl.beforeCurrent = null;

@ -58,6 +58,7 @@
</div>
<script>
LoadScript("cvlc02060Script",wctx.url("/resources/js/fims/cvlc/cvlc02060.js?ver=${ver}"));
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
pageObject["${pageName}"].parentRes = {};
@ -86,18 +87,7 @@ $(document).ready(function() {
**************************************************************************/
$P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
var ctrl = $P.ctrl = new DatasetControl({
dataGetter:obj => obj.cvlcptInfo,
keymapper:info => info ? info.CRDN_ID : "",
urls : {
getInfo : wctx.url("/"+$P.taskSeCd+"/cvlc/cvlc02/060/info.do"),
update : wctx.url("/"+$P.taskSeCd+"/cvlc/cvlc02/060/update.do")
},
formats: {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : dateFormat
}
});
var ctrl = newCvlc02060Control($P);
ctrl.dataset.onCurrentChange = (dataItem) => {
$P.formFields.set(ctrl,dataItem);

@ -217,6 +217,7 @@
<script>
LoadScript("cvlc03010Script",wctx.url("/resources/js/fims/cvlc/cvlc03010.js?ver=${ver}"));
/**************************************************************************
* Global Variable
@ -239,20 +240,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, DatasetSupport, FormFields
**************************************************************************/
var ctrl = $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
urls : {
load : "",
getInfo : "",
remove : ""
},
formats : {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : datetimeFormat,
CRDN_YMD_TM : datetimeFormat
}
});
var ctrl = newCvlc03010Control($P);
ctrl.defaultFetchSize = FETCH_XS;
ctrl.query = { pageNum : 1, fetchSize : ctrl.defaultFetchSize };
ctrl.beforeCurrent = null;

@ -157,6 +157,7 @@
</div>
<script>
LoadScript("cvlc04010Script",wctx.url("/resources/js/fims/cvlc/cvlc04010.js?ver=${ver}"));
/**************************************************************************
* Global Variable
@ -177,20 +178,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, DatasetSupport, FormFields
**************************************************************************/
var ctrl = $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.INDIV_ID : "",
urls : {
load : "",
create : "",
remove : ""
},
formats : {
DMND_YMD : dateFormat,
RCPT_YMD : dateFormat,
RSPNS_DT : datetimeFormat
}
});
var ctrl = newCvlc04010Control($P);
ctrl.defaultFetchSize = FETCH_XS;
ctrl.query = { pageNum : 1, fetchSize : ctrl.defaultFetchSize };
ctrl.beforeCurrent = null;

@ -118,6 +118,8 @@
</div>
<script>
LoadScript("cvlc06010Script",wctx.url("/resources/js/fims/cvlc/cvlc06010.js?ver=${ver}"));
/**************************************************************************
* Global Variable
**************************************************************************/
@ -136,12 +138,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, DatasetSupport, FormFields
**************************************************************************/
var ctrl = $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"],
keymapper : info => info ? info.LEVY_EXCL_RSN_CD : "",
urls : {},
formats : {}
});
var ctrl = newCvlc06010Control($P);
/**************************************************************************
* pageObject.function

@ -1,11 +1,11 @@
function newCrdn01020Control(page, doctx = ""){
function newCrdn01020Control(page, conf = {}){
page.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true,
keymapper : info => info ? info.FILE_LAYOUT_ID : "",
urls : {
create : wctx.url("/${taskSeCd}/crdn/crdn01/020/create.do"),
update : wctx.url("/${taskSeCd}/crdn/crdn01/020/update.do"),
remove : wctx.url("/${taskSeCd}/crdn/crdn01/020/remove.do")
create : wctx.url("/"+conf.taskSeCd+"/crdn/crdn01/020/create.do"),
update : wctx.url("/"+conf.taskSeCd+"/crdn/crdn01/020/update.do"),
remove : wctx.url("/"+conf.taskSeCd+"/crdn/crdn01/020/remove.do")
},
formats: {

@ -1,9 +1,9 @@
function newCrdn05030Control(page, doctx = ""){
function newCrdn05030Control(page, conf = {}){
page.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true,
keymapper : info => info ? info.CRDN_ID : "",
urls : {
create : wctx.url("/${taskSeCd}/crdn/crdn05/030/create.do")
create : wctx.url("/"+conf.taskSeCd+"/crdn/crdn05/030/create.do")
},
formats: {

@ -0,0 +1,17 @@
function newCvlc01010Control(page, doctx = ""){
page.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
urls : {
load : "",
getInfo : "",
remove : ""
},
formats : {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : datetimeFormat,
CRDN_YMD_TM : datetimeFormat
}
});
return page.ctrl;
}

@ -0,0 +1,16 @@
function newCvlc01020Control(page, conf = {}){
page.ctrl = new DatasetControl({
dataGetter:obj => obj.crdnInfo,
keymapper:info => info ? info.CRDN_ID : "",
urls : {
getInfo : wctx.url("/"+conf.taskSeCd+"/cvlc/cvlc01/020/info.do"),
update : wctx.url("/"+conf.taskSeCd+"/cvlc/cvlc01/020/update.do"),
create : wctx.url("/"+conf.taskSeCd+"/cvlc/cvlc01/020/create.do"),
remove : wctx.url("/"+conf.taskSeCd+"/cvlc/cvlc01/020/remove.do")
},
formats: {
}
});
return page.ctrl;
}

@ -0,0 +1,14 @@
function newCvlc01050Control(page, doctx = ""){
page.ctrl = new DatasetControl({
dataGetter:obj => obj.cvlcptInfo,
keymapper:info => info ? info.CRDN_ID : "",
urls : {
getInfo : wctx.url("/"+page.taskSeCd+"/cvlc/cvlc01/050/info.do")
},
formats: {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : dateFormat
}
});
return page.ctrl;
}

@ -0,0 +1,17 @@
function newCvlc02010Control(page, doctx = ""){
page.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
urls : {
load : "",
getInfo : "",
update : ""
},
formats : {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : datetimeFormat,
CRDN_YMD_TM : datetimeFormat
}
});
return page.ctrl;
}

@ -0,0 +1,15 @@
function newCvlc02060Control(page, doctx = ""){
page.ctrl = new DatasetControl({
dataGetter:obj => obj.cvlcptInfo,
keymapper:info => info ? info.CRDN_ID : "",
urls : {
getInfo : wctx.url("/"+page.taskSeCd+"/cvlc/cvlc02/060/info.do"),
update : wctx.url("/"+page.taskSeCd+"/cvlc/cvlc02/060/update.do")
},
formats: {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : dateFormat
}
});
return page.ctrl;
}

@ -0,0 +1,17 @@
function newCvlc03010Control(page, doctx = ""){
page.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
urls : {
load : "",
getInfo : "",
remove : ""
},
formats : {
CVLCPT_RCPT_YMD : dateFormat,
CVLCPT_PRCS_PRNMNT_DT : datetimeFormat,
CRDN_YMD_TM : datetimeFormat
}
});
return page.ctrl;
}

@ -0,0 +1,17 @@
function newCvlc04010Control(page, doctx = ""){
page.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.INDIV_ID : "",
urls : {
load : "",
create : "",
remove : ""
},
formats : {
DMND_YMD : dateFormat,
RCPT_YMD : dateFormat,
RSPNS_DT : datetimeFormat
}
});
return page.ctrl;
}

@ -0,0 +1,9 @@
function newCvlc06010Control(page, doctx = ""){
page.ctrl = new DatasetControl({
dataGetter : obj => obj["List"],
keymapper : info => info ? info.LEVY_EXCL_RSN_CD : "",
urls : {},
formats : {}
});
return page.ctrl;
}
Loading…
Cancel
Save