|
|
|
|
@ -36,11 +36,13 @@
|
|
|
|
|
<span class="form-label form-search-title w-px-120 text-end fw-bold">업무구분</span>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<c:forEach items="${taskListForSgg}" var="item">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
|
|
|
|
|
value="${item.code}" onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);">
|
|
|
|
|
${item.value}
|
|
|
|
|
</label>
|
|
|
|
|
<c:if test="${item.code == 'PVS' or item.code == 'BPV'}">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
|
|
|
|
|
value="${item.code}" onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);">
|
|
|
|
|
${item.value}
|
|
|
|
|
</label>
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
@ -388,8 +390,20 @@
|
|
|
|
|
// 업무 구분 변경 이벤트
|
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
|
// 업무 구분 코드
|
|
|
|
|
if (!taskSeCd) {
|
|
|
|
|
if (!taskSeCd || (taskSeCd != 'PVS' && taskSeCd != 'BPV')) {
|
|
|
|
|
taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
if(taskSeCd != 'PVS' && taskSeCd != 'BPV'){
|
|
|
|
|
var taskForUser = MY_INFO.info.taskForUser;
|
|
|
|
|
var hasPVS = taskForUser.indexOf("PVS") != -1;
|
|
|
|
|
var hasBPV = taskForUser.indexOf("BPV") != -1;
|
|
|
|
|
if(hasPVS && !hasBPV){
|
|
|
|
|
taskSeCd = "PVS";
|
|
|
|
|
} else if(!hasPVS && hasBPV){
|
|
|
|
|
taskSeCd = "BPV";
|
|
|
|
|
} else {
|
|
|
|
|
taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']").eq(0).val();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 초기화
|
|
|
|
|
|