소스정리(html엘리먼트 id제거 및 name추가)

main
이범준 3 months ago
parent 5c59e41a63
commit 4b4bff13ce

@ -16,7 +16,7 @@
title="엑셀 저장">엑셀</button>
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-6">
@ -176,7 +176,7 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
var searchForm = $("#frmSearch--${pageName}");
var searchForm = $P.$find("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
@ -190,7 +190,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector(frmSearch));
var data = formFields.get();
data.taskSeCd = "DPV";
data.fetchSize = $P.ctrl.defaultFetchSize;
@ -377,7 +377,7 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
//달력 초기화
initDatepicker("frmSearch--${pageName}");
initDatepicker($P.find("frmSearch"));
$P.fnReset();

@ -14,7 +14,7 @@
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-6">
@ -185,7 +185,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
return data;
@ -287,15 +287,15 @@ $(document).ready(function(){
/**************************************************************************
* 초기화
**************************************************************************/
initDatepicker("frmSearch--${pageName}"); //달력 초기화
initDatepicker($P.find("frmSearch")); //달력 초기화
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});

@ -22,7 +22,7 @@
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-12">
@ -349,7 +349,7 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
var searchForm = $("#frmSearch--${pageName}");
var searchForm = $P.$find("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
@ -371,7 +371,7 @@ $(document).ready(function(){
var clsForTask = taskSeCd.toLowerCase();
//업무별 조회조건
renderForTask("frmSearch--${pageName}", clsForTask);
renderForTask($P.find("frmSearch"), clsForTask);
//업무별 버튼
renderForTask("gridbuttonArea--${pageName}", clsForTask);
//버튼 이벤트 재매핑
@ -396,7 +396,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@ -447,7 +447,7 @@ $(document).ready(function(){
}
$P.getGridTemplate = () => {
var clsForTask = $("#frmSearch--${pageName} [name='taskSeCd']:checked").val().toLowerCase();
var clsForTask = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
var notFound = [document.getElementById("crdnNotFound--${pageName}").content.querySelector("."+clsForTask+",.cmn").outerHTML];
var foundContent = document.getElementById("crdnRow--${pageName}").content;
var foundTr = $(foundContent).find("tr")[0].cloneNode(false);
@ -595,21 +595,21 @@ $(document).ready(function(){
/**************************************************************************
* 초기화
**************************************************************************/
initDatepicker("frmSearch--${pageName}"); //달력 초기화
initDetailSearchButton("frmSearch--${pageName}");
initDatepicker($P.find("frmSearch")); //달력 초기화
initDetailSearchButton($P.find("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
if("${taskSeCd}" == ""){
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
} else {
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + "${taskSeCd}" + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + "${taskSeCd}" + "']").prop("checked",true);
$P.fnResetAndChangeBiz("${taskSeCd}");
}
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});

@ -16,7 +16,7 @@
</button>
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-6">
@ -333,7 +333,7 @@ $(document).ready(function(){
**************************************************************************/
$P.fnReset = () => {
var searchForm = $("#frmSearch--${pageName}");
var searchForm = $P.$find("frmSearch");
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
@ -355,7 +355,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
return data;
@ -417,7 +417,7 @@ $(document).ready(function(){
var formFields = new FimsFormFields("#frmEdit--${pageName}");
var data = formFields.get();
data.taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
data.taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.save,
@ -449,7 +449,7 @@ $(document).ready(function(){
var teamNm = $("#deletedTeamNm--${pageName}").val();
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : wctx.url("/" + taskSeCd + "/crdn/crdn07/010/removedTeamList.do"),
@ -484,23 +484,23 @@ $(document).ready(function(){
**************************************************************************/
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
if(defaultBizValue == "PVS" || defaultBizValue == "BPV"){
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
} else {
var taskForUser = MY_INFO.info.taskForUser;
var hasPVS = taskForUser.indexOf("PVS") != -1;
var hasBPV = taskForUser.indexOf("BPV") != -1;
if(hasPVS && !hasBPV){
$("#frmSearch--${pageName} input[name='taskSeCd'][value='PVS']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='PVS']").prop("checked",true);
} else if(!hasPVS && hasBPV){
$("#frmSearch--${pageName} input[name='taskSeCd'][value='BPV']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='BPV']").prop("checked",true);
} else {
$("#frmSearch--${pageName} input[name='taskSeCd']").eq(0).prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd']").eq(0).prop("checked",true);
}
}
$P.fnResetAndChangeBiz(defaultBizValue);
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});

@ -18,7 +18,7 @@
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-6">
@ -195,7 +195,7 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
var searchForm = $("#frmSearch--${pageName}");
var searchForm = $P.$find("frmSearch");
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
@ -203,7 +203,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
data.taskSeCd = "BPV";
data.fetchSize = $P.ctrl.defaultFetchSize;
@ -437,7 +437,7 @@ $(document).ready(function(){
/**************************************************************************
* 초기화
**************************************************************************/
initDatepicker("frmSearch--${pageName}"); //달력 초기화
initDatepicker($P.find("frmSearch")); //달력 초기화
$P.fnReset();
//보안모드

@ -19,7 +19,7 @@
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-12">
@ -305,7 +305,7 @@ $(document).ready(function(){
$("#btnDelete--${pageName}").show();
$("#btnDeleteSameRcptYmd--${pageName}").show();
var searchForm = $("#frmSearch--${pageName}");
var searchForm = $P.$find("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
@ -328,7 +328,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@ -590,7 +590,7 @@ $(document).ready(function(){
return;
}
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
var dialogId = "cvlcptOrgnlDialog--${pageName}";
ajax.get({
@ -694,17 +694,17 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
//달력 초기화
initDatepicker("frmSearch--${pageName}");
initDetailSearchButton("frmSearch--${pageName}");
initDatepicker($P.find("frmSearch"));
initDetailSearchButton($P.find("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});

@ -22,7 +22,7 @@
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-12">
@ -293,7 +293,7 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
var searchForm = $("#frmSearch--${pageName}");
var searchForm = $P.$find("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
@ -322,7 +322,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@ -457,7 +457,7 @@ $(document).ready(function(){
return;
}
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
var dialogId = "cvlcptOrgnlDialog--${pageName}";
ajax.get({
@ -494,7 +494,7 @@ $(document).ready(function(){
return;
}
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
var dialogId = "answerPreviewDialog--${pageName}";
ajax.get({
@ -691,17 +691,17 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
//달력 초기화
initDatepicker("frmSearch--${pageName}");
initDetailSearchButton("frmSearch--${pageName}");
initDatepicker($P.find("frmSearch"));
initDetailSearchButton($P.find("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});

@ -19,7 +19,7 @@
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-12">
@ -278,7 +278,7 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
var searchForm = $("#frmSearch--${pageName}");
var searchForm = $P.$find("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
@ -301,7 +301,7 @@ $(document).ready(function(){
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@ -470,7 +470,7 @@ $(document).ready(function(){
return;
}
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
var dialogId = "cvlcptOrgnlDialog--${pageName}";
ajax.get({
@ -561,17 +561,17 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
//달력 초기화
initDatepicker("frmSearch--${pageName}");
initDetailSearchButton("frmSearch--${pageName}");
initDatepicker($P.find("frmSearch"));
initDetailSearchButton($P.find("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});

@ -16,7 +16,7 @@
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-12">
@ -226,7 +226,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@ -413,7 +413,7 @@ $(document).ready(function(){
if(!customValidate($("#frmEdit--${pageName} input"))) return;
var info = (new FimsFormFields("#frmEdit--${pageName}")).get();
info.taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
info.taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.create,
@ -450,13 +450,13 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
//달력 초기화
initDatepicker("frmSearch--${pageName}");
initDatepicker($P.find("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});

@ -5,7 +5,7 @@
<div class="container-xxl flex-grow-1 px-0">
<div class="card wrapper-list">
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-12">
@ -350,13 +350,13 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
return data;
}
$P.searchWordsStng = () => {
var taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.load,
@ -537,7 +537,7 @@ $(document).ready(function(){
var cursor2 = $P.ctrl.warning.getCurrent()["LEVY_EXCL_RSN_CD"];
var cursor3 = $P.ctrl.nonlevy.getCurrent()["LEVY_EXCL_RSN_CD"];
var taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.load,
@ -596,7 +596,7 @@ $(document).ready(function(){
} else {
info.saveData = "body";
}
info.taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
info.taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
dialog.alert({
content : confirmMessage,
@ -769,10 +769,10 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});

@ -4,7 +4,7 @@
<div class="content-wrapper" id="wrapper--${pageName}" data-doctx="${pageName}">
<div class="container-xxl flex-grow-1 px-0">
<div class="card wrapper-list">
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-12">
@ -164,13 +164,13 @@ $(document).ready(function(){
}
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get();
return data;
}
$P.searchWordsStng = () => {
var taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.load,
@ -244,7 +244,7 @@ $(document).ready(function(){
var cursor = $P.ctrl.dataset.getCurrent()["LEVY_EXCL_RSN_CD"];
var taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.load,
@ -270,7 +270,7 @@ $(document).ready(function(){
var info = (new FimsFormFields("#frmEditWarningWords--${pageName}")).get();
info.taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
info.taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
dialog.alert({
content : "저장하시겠습니까?",
@ -305,10 +305,10 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});

Loading…
Cancel
Save