단속팀관리 업무구분 초기화 수정

main
이범준 11 months ago
parent 1893949348
commit 97f1ddab41

@ -222,7 +222,7 @@ $(document).ready(function(){
case "BPV" : case "BPV" :
case "DPV" : case "DPV" :
case "ECA" : case "ECA" :
case "미세먼지" : case "DVS" :
$("#btnInsertByFile--${pageName}").show(); $("#btnInsertByFile--${pageName}").show();
break; break;
case "TPV" : case "TPV" :

@ -414,6 +414,7 @@ $(document).ready(function(){
$P.fnSave = () => { $P.fnSave = () => {
var formFields = new FimsFormFields("#frmEdit--${pageName}"); var formFields = new FimsFormFields("#frmEdit--${pageName}");
var data = formFields.get(); var data = formFields.get();
data.taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val(); data.taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
ajax.get({ ajax.get({
@ -480,7 +481,21 @@ $(document).ready(function(){
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true); if(defaultBizValue == "PVS" || defaultBizValue == "BPV"){
$("#frmSearch--${pageName} 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);
} else if(!hasPVS && hasBPV){
$("#frmSearch--${pageName} input[name='taskSeCd'][value='BPV']").prop("checked",true);
} else {
$("#frmSearch--${pageName} input[name='taskSeCd']").eq(0).prop("checked",true);
}
}
$P.fnResetAndChangeBiz(defaultBizValue); $P.fnResetAndChangeBiz(defaultBizValue);
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) { $("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {

Loading…
Cancel
Save