|
|
@ -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();
|
|
|
|
|
|
|
|
if(defaultBizValue == "PVS" || defaultBizValue == "BPV"){
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
$("#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) {
|
|
|
|