소스 정리

main
이범준 6 months ago
parent 21df072845
commit 84e3993ab0

@ -439,7 +439,7 @@ $(document).ready(function(){
* Dataset.on * Dataset.on
**************************************************************************/ **************************************************************************/
$P.crdnControl.dataset.onCurrentChange = (dataItem) => { $P.crdnControl.dataset.onCurrentChange = (dataItem) => {
$P.formFields.set(dataItem); $P.formFields.set($P.crdnControl,dataItem);
} }

@ -194,8 +194,8 @@ $(document).ready(function(){
$("#tbody--${pageName}").setCurrentRow(key); $("#tbody--${pageName}").setCurrentRow(key);
var info = $P.provided.getInfo(key); var info = $P.provided.getInfo(key);
var ff = new FimsFormFields("#frmEdit--${pageName}"); var formFields = new FimsFormFields("#frmEdit--${pageName}");
ff.set(info); formFields.set(info);
} }
//교부청구서 파일 생성 //교부청구서 파일 생성

@ -111,8 +111,8 @@ $(document).ready(function(){
$("#tbody--${pageName}").setCurrentRow(key); $("#tbody--${pageName}").setCurrentRow(key);
var info = $P.provided.getInfo(key); var info = $P.provided.getInfo(key);
var ff = new FimsFormFields("#frmEdit--${pageName}"); var formFields = new FimsFormFields("#frmEdit--${pageName}");
ff.set(info); formFields.set(info);
} }
$P.fnMakeFile = (fileType, paper) => { $P.fnMakeFile = (fileType, paper) => {

@ -109,8 +109,8 @@ $(document).ready(function(){
$("#tbody--${pageName}").setCurrentRow(key); $("#tbody--${pageName}").setCurrentRow(key);
var info = $P.provided.getInfo(key); var info = $P.provided.getInfo(key);
var ff = new FimsFormFields("#frmEdit--${pageName}"); var formFields = new FimsFormFields("#frmEdit--${pageName}");
ff.set(info); formFields.set(info);
} }
$P.fnMakeFile = (fileType, paper) => { $P.fnMakeFile = (fileType, paper) => {

@ -274,8 +274,8 @@ $(document).ready(function(){
$P.fnLoad = () => { $P.fnLoad = () => {
var ff = new FimsFormFields("#frmSearch--${pageName}"); var formFields = new FimsFormFields("#frmSearch--${pageName}");
var query = ff.get(); var query = formFields.get();
ajax.post({ ajax.post({
url : wctx.url("/stng/stng01/010/info.do"), url : wctx.url("/stng/stng01/010/info.do"),
data : query, data : query,
@ -723,11 +723,11 @@ $(document).ready(function(){
dialog.alert("저장되었습니다."); dialog.alert("저장되었습니다.");
} }
var ff = new FimsFormFields("#frmEdit--${pageName}").get(); var formFields = new FimsFormFields("#frmEdit--${pageName}").get();
$("#frmSearch--${pageName}").find("[name='sggCd']").val(ff.sggCd); $("#frmSearch--${pageName}").find("[name='sggCd']").val(formFields.sggCd);
$("#frmSearch--${pageName}").find("[name='taskSeCd']").val(ff.taskSeCd); $("#frmSearch--${pageName}").find("[name='taskSeCd']").val(formFields.taskSeCd);
$("#frmSearch--${pageName}").find("[name='sndngSeCd']").val(ff.sndngSeCd); $("#frmSearch--${pageName}").find("[name='sndngSeCd']").val(formFields.sndngSeCd);
$("#frmSearch--${pageName}").find("[name='paperSeCd']").val(ff.paperSeCd); $("#frmSearch--${pageName}").find("[name='paperSeCd']").val(formFields.paperSeCd);
$("#btnLoad--${pageName}").click(); $("#btnLoad--${pageName}").click();

@ -188,8 +188,8 @@ $(document).ready(function(){
$P.fnLoad = () => { $P.fnLoad = () => {
var ff = new FimsFormFields("#frmSearch--${pageName}"); var formFields = new FimsFormFields("#frmSearch--${pageName}");
var query = ff.get(); var query = formFields.get();
ajax.post({ ajax.post({
url : wctx.url("/stng/stng01/020/info.do"), url : wctx.url("/stng/stng01/020/info.do"),
data : query, data : query,
@ -460,10 +460,10 @@ $(document).ready(function(){
alert("저장되었습니다."); alert("저장되었습니다.");
var ff = new FimsFormFields("#frmEdit--${pageName}").get(); var formFields = new FimsFormFields("#frmEdit--${pageName}").get();
$("#frmSearch--${pageName}").find("[name='sggCd']").val(ff.sggCd); $("#frmSearch--${pageName}").find("[name='sggCd']").val(formFields.sggCd);
$("#frmSearch--${pageName}").find("[name='taskSeCd']").val(ff.taskSeCd); $("#frmSearch--${pageName}").find("[name='taskSeCd']").val(formFields.taskSeCd);
$("#frmSearch--${pageName}").find("[name='tmplatId']").val(ff.tmplatId); $("#frmSearch--${pageName}").find("[name='tmplatId']").val(formFields.tmplatId);
$("#btnLoad--${pageName}").click(); $("#btnLoad--${pageName}").click();
} }

@ -156,8 +156,8 @@ $(document).ready(function(){
$P.fnLoad = () => { $P.fnLoad = () => {
var ff = new FimsFormFields("#frmSearch--${pageName}"); var formFields = new FimsFormFields("#frmSearch--${pageName}");
var query = ff.get(); var query = formFields.get();
ajax.post({ ajax.post({
url : wctx.url("/stng/stng01/030/info.do"), url : wctx.url("/stng/stng01/030/info.do"),
data : query, data : query,
@ -365,10 +365,10 @@ $(document).ready(function(){
dialog.alert("저장되었습니다."); dialog.alert("저장되었습니다.");
var ff = new FimsFormFields("#frmEdit--${pageName}").get(); var formFields = new FimsFormFields("#frmEdit--${pageName}").get();
$("#frmSearch--${pageName}").find("[name='sggCd']").val(ff.sggCd); $("#frmSearch--${pageName}").find("[name='sggCd']").val(formFields.sggCd);
$("#frmSearch--${pageName}").find("[name='taskSeCd']").val(ff.taskSeCd); $("#frmSearch--${pageName}").find("[name='taskSeCd']").val(formFields.taskSeCd);
$("#frmSearch--${pageName}").find("[name='sndngSeCd']").val(ff.sndngSeCd); $("#frmSearch--${pageName}").find("[name='sndngSeCd']").val(formFields.sndngSeCd);
$("#btnLoad--${pageName}").click(); $("#btnLoad--${pageName}").click();

Loading…
Cancel
Save