새올관련 변수명 변경

main
이범준 2 months ago
parent 58dd69a4f3
commit 5f709be67f

@ -119,7 +119,7 @@
<div class="content-backdrop fade"></div> <div class="content-backdrop fade"></div>
<template name="seallDmndDialogTemplate"> <template name="saeolDmndDialogTemplate">
<form name="frmEdit"> <form name="frmEdit">
<div class="card"> <div class="card">
<div class="row g-1"> <div class="row g-1">
@ -369,18 +369,18 @@ $(document).ready(function(){
//요청 등록 팝업 호출 //요청 등록 팝업 호출
$P.fnOpenDmndPop = () => { $P.fnOpenDmndPop = () => {
let dialogName = "seallDmndDialog"; let dialogName = "saeolDmndDialog";
let dialogId = dialogName+"-"+uuid(); let dialogId = dialogName+"-"+uuid();
dialog.open({ dialog.open({
id : dialogId, id : dialogId,
title : "새올 접수 요청", title : "새올 접수 요청",
content : $P.findn("seallDmndDialogTemplate").innerHTML, content : $P.findn("saeolDmndDialogTemplate").innerHTML,
size : "lg", size : "lg",
init : () => { init : () => {
$("#"+dialogId).attr("name", dialogName); $("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}"); $("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId("seallDmndDialog"); let refDlgId = $P.refDlgId("saeolDmndDialog");
AppSupport.initDatepicker(document.getElementById(refDlgId)); AppSupport.initDatepicker(document.getElementById(refDlgId));
$("#"+refDlgId).find("[name='rcptYmd']").datepicker('setDate', TODAY()); $("#"+refDlgId).find("[name='rcptYmd']").datepicker('setDate', TODAY());
$("#"+refDlgId).find("[name='btnCreate']").on("click", () => $P.fnCreateDmnd()); $("#"+refDlgId).find("[name='btnCreate']").on("click", () => $P.fnCreateDmnd());
@ -392,9 +392,9 @@ $(document).ready(function(){
//요청 등록 //요청 등록
$P.fnCreateDmnd = () => { $P.fnCreateDmnd = () => {
if(!AppSupport.customValidate($("#"+$P.refDlgId("seallDmndDialog")).find("[name='frmEdit']").find("input"))) return; if(!AppSupport.customValidate($("#"+$P.refDlgId("saeolDmndDialog")).find("[name='frmEdit']").find("input"))) return;
let selectorStr = "#"+$P.refDlgId("seallDmndDialog")+" "+"form[name='frmEdit']"; let selectorStr = "#"+$P.refDlgId("saeolDmndDialog")+" "+"form[name='frmEdit']";
let ff = new FimsFormFields(selectorStr); let ff = new FimsFormFields(selectorStr);
var info = ff.get(); var info = ff.get();
info.taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val(); info.taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
@ -404,7 +404,7 @@ $(document).ready(function(){
data : info, data : info,
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){
dialog.close($P.refDlgId("seallDmndDialog")); dialog.close($P.refDlgId("saeolDmndDialog"));
$P.$findn("toastText").html("등록 되었습니다."); $P.$findn("toastText").html("등록 되었습니다.");
$P.toast.show(); $P.toast.show();

Loading…
Cancel
Save