|
|
|
@ -414,6 +414,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.fnSave = () => {
|
|
|
|
|
var formFields = new FimsFormFields("#frmEdit--${pageName}");
|
|
|
|
|
var data = formFields.get();
|
|
|
|
|
|
|
|
|
|
data.taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
@ -480,7 +481,21 @@ $(document).ready(function(){
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
|
|
|
|