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

main
이범준 3 months ago
parent 6a399961c8
commit 95cf737c18

@ -5,7 +5,7 @@
<div class="card"> <div class="card">
<form name="frmEdit"> <form name="frmEdit">
<input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" /> <input type="hidden" name="crdnId" data-map="CRDN_ID" />
<div class="row g-1"> <div class="row g-1">
<div class="col-md-12"> <div class="col-md-12">

@ -380,7 +380,7 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selector("frmEdit"));
$P.uploadSet = uploadSupport("#inputUploadSet--${pageName}"); $P.uploadSet = uploadSupport($P.selector("inputUploadSet"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true, dataGetter : obj => obj["List"], appendData : true,
@ -441,7 +441,7 @@ $(document).ready(function(){
if($P.$find("doWarning").is(":checked")){ if($P.$find("doWarning").is(":checked")){
var rtpyrNm = document.getElementById("rtpyrNm--${pageName}"); var rtpyrNm = $P.find("rtpyrNm");
if(rtpyrNm.value == ""){ if(rtpyrNm.value == ""){
dialog.alert({ dialog.alert({
content:"계고 처리를 하기 위해선 소유주정보가 입력되어야 합니다.", content:"계고 처리를 하기 위해선 소유주정보가 입력되어야 합니다.",

@ -188,7 +188,7 @@
</tr> </tr>
</thead> </thead>
<tbody name="crdnTbody"></tbody> <tbody name="crdnTbody"></tbody>
<template id="crdnCols--${pageName}" name="crdnCols"> <template name="crdnCols">
<th style="width: 80px;" class="cmn">No.</th> <th style="width: 80px;" class="cmn">No.</th>
<th class="cmn" style="width: 56px;"> <th class="cmn" style="width: 56px;">
<input type="checkbox" class="form-check-input" id="gridAllCheckbox--${pageName}" <input type="checkbox" class="form-check-input" id="gridAllCheckbox--${pageName}"
@ -377,7 +377,7 @@ $(document).ready(function(){
$P.$find("btnSendCrdn").on("click", () => $P.fnSendCrdn()); $P.$find("btnSendCrdn").on("click", () => $P.fnSendCrdn());
//업무별 그리드 //업무별 그리드
var colsContent = document.getElementById("crdnCols--${pageName}").content; var colsContent = $P.find("crdnCols").content;
var cols = $(colsContent).find("."+clsForTask+",.cmn"); var cols = $(colsContent).find("."+clsForTask+",.cmn");
var colsStr = ""; var colsStr = "";
cols.each(function(){ cols.each(function(){

@ -50,7 +50,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <div class="col-6">
<button type="button" class="w-px-120" onclick="$('#cvlcptPrcsPicNm--${pageName}').val('${currentUserName}');"> <button type="button" class="w-px-120" onclick="pageObject.${pageName}.$find('cvlcptPrcsPicNm').val('${currentUserName}');">
담당자명 지정 담당자명 지정
</button> </button>
<input type="text" id="cvlcptPrcsPicNm--${pageName}" name="cvlcptPrcsPicNm" <input type="text" id="cvlcptPrcsPicNm--${pageName}" name="cvlcptPrcsPicNm"

@ -452,7 +452,7 @@ $(document).ready(function(){
$P.openLevyExclPop = (levyExclSeCd) => { $P.openLevyExclPop = (levyExclSeCd) => {
if(levyExclSeCd == "2"){ if(levyExclSeCd == "2"){
var rtpyrNm = document.getElementById("rtpyrNm--${pageName}"); var rtpyrNm = $P.find("rtpyrNm");
if(rtpyrNm.value == ""){ if(rtpyrNm.value == ""){
dialog.alert({ dialog.alert({
@ -776,8 +776,8 @@ $(document).ready(function(){
if(!customValidate($P.$find("frmEdit").find("input"))) return; if(!customValidate($P.$find("frmEdit").find("input"))) return;
var vhrno = document.getElementById("vhrno--${pageName}"); var vhrno = $P.find("vhrno");
var rtpyrNm = document.getElementById("rtpyrNm--${pageName}"); var rtpyrNm = $P.find("rtpyrNm");
if(vhrno.value == ""){ if(vhrno.value == ""){
dialog.alert({ dialog.alert({

@ -50,7 +50,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <div class="col-6">
<button type="button" class="w-px-120" onclick="$('#cvlcptPrcsPicNm--${pageName}').val('${currentUserName}');"> <button type="button" class="w-px-120" onclick="pageObject.${pageName}.$find('cvlcptPrcsPicNm').val('${currentUserName}');">
담당자명 지정 담당자명 지정
</button> </button>
<input type="text" id="cvlcptPrcsPicNm--${pageName}" name="cvlcptPrcsPicNm" <input type="text" id="cvlcptPrcsPicNm--${pageName}" name="cvlcptPrcsPicNm"

Loading…
Cancel
Save