Pager.prototype.goKSS0070 = function(params) {
    var self = this;
    indicator.on();
    self.execApi('/MSAD_SKS_UII_KSS0070.json', params, function(response) {
        self.pageInfo = response.pageInfo;
        var pageInfo = self.pageInfo;
        self.getHtml('KSS0070.html', function() {
			viewNumber.on("S070");
			footer.on(2);

            $('#goKSS0080').click(function() {
            	indicator.on();
            	self.goKSS0080(self.getKSS0080RequestParams());
                return false;
            });

            $('#goKSS0060Back').click(function() {
				indicator.on();
				self.goKSS0060(self.getKSS0060BackParams());
        		return false;
        	});

            $('#elm_JISIN_CHK').change(function() {
            	if ($(this).prop('checked') && "1" == pageInfo.elm_MODE_FLG) {
            		$('.check_confirm_btn').addClass('check_confirm_btn_checked');
            		$('#goKSS0080').attr('href','#goKSS0080');
            	} else {
            		$('.check_confirm_btn').removeClass('check_confirm_btn_checked');
            		$('#goKSS0080').removeAttr('href');
            	}
            });

            self.setKSS0070DefaultParams(pageInfo);
		    indicator.off();
        });
    });
};

Pager.prototype.goKSS0071 = function(params) {
    var self = this;
    indicator.on();
    self.execApi('/MSAD_SKS_UII_KSS0070.json', params, function(response) {
        self.pageInfo = response.pageInfo;
        var pageInfo = self.pageInfo;
        self.getHtml('KSS0070.html', function() {
			viewNumber.on("S070");
			footer.on(2);

            $('#goKSS0080').click(function() {
            	indicator.on();
            	self.goKSS0080(self.getKSS0080RequestParams());
                return false;
            });

            $('#goKSS0060Back').click(function() {
				indicator.on();
				self.goKSS0061(self.getKSS0060BackParams());
        		return false;
        	});

            $('#elm_JISIN_CHK').change(function() {
            	if ($(this).prop('checked') && "1" == pageInfo.elm_MODE_FLG) {
            		$('.check_confirm_btn').addClass('check_confirm_btn_checked');
            		$('#goKSS0080').attr('href','#goKSS0080');
            	} else {
            		$('.check_confirm_btn').removeClass('check_confirm_btn_checked');
            		$('#goKSS0080').removeAttr('href');
            	}
            });
            self.setKSS0070DefaultParams(pageInfo);
		    indicator.off();
        });
    });
};

Pager.prototype.setKSS0070DefaultParams = function(pageInfo) {

	if ("1" == pageInfo.elm_DAZ1056){
		$("#elm_APP_NAME_KANNJI").parent().hide();
	} else {
		$('#elm_APP_NAME_KANNJI').text(pageInfo.elm_APP_NAME_KANNJI);
		$("#elm_APP_NAME_KANNJI").parent().show();
	}

	var tmpDaz00051 = "<p>" + pageInfo.elm_DAZ00051 + "</p>" + "<p>" + pageInfo.elm_AppJyusyoKanji + "</p>" + "<p>" + pageInfo.elm_PhoneNo + "</p>";
    $('#elm_DAZ00051').append(tmpDaz00051);
	$('#elm_APPLICATION_DT').text(pageInfo.elm_APPLICATION_DT);
	$('#elm_DJY0009A').text(pageInfo.elm_DJY0009A);
	/* 20210916 参考純率改定対応 枝松 Add start */
	if ("1" == pageInfo.elm_READ_METHOD) {
		$('#etsuran_shoken').text('保険証券:紙でお届け');
        $('#etsuran_yakkan').text('約款  :Web閲覧のみ');
	} else if ("2" == pageInfo.elm_READ_METHOD) {
		$('#etsuran_shoken').text('保険証券:紙でお届け');
        $('#etsuran_yakkan').text('約款  :紙でお届け');
	} else if ("3" == pageInfo.elm_READ_METHOD) {
		$('#etsuran_shoken').text('保険証券:Web閲覧のみ');
        $('#etsuran_yakkan').text('約款  :Web閲覧のみ');
	}
	/* 20210916 参考純率改定対応 枝松 Add end */
	$('#elm_KYK_MAILADRS').text(pageInfo.elm_KYK_MAILADRS);

	$('#elm_JISIN_BUNGEN').text(pageInfo.elm_JISIN_BUNGEN);


	if ("0" == pageInfo.elm_JISIN_CHK) {
		$("#elm_JISIN_CHK").parent().parent().hide();
		$("#checkBox_word").hide();

		if ("1" == pageInfo.elm_MODE_FLG) {
			$('.check_confirm_btn').addClass('check_confirm_btn_checked');
		}
	} else {
		$('#elm_JISIN_CHK').change();
	}

	$('#elm_IMPORT_BUNGEN').text(pageInfo.elm_IMPORT_BUNGEN);

    $('#tsuchisaki').hide();
	if(pageInfo.elm_DAZ1056 == "1"){
	    switch(pageInfo.elm_portalRegistFlg){
	        case "1":
	        case "2":
	            $('#elm_Tsuchisaki').text(pageInfo.elm_Tsuchisaki);
	            $('#tsuchisaki').show();
	            break;
	        default:
               if(pageInfo.elm_Tsuchisaki == ""){
                   $('#tsuchisaki').hide();
               }else{
                   $('#elm_Tsuchisaki').text(pageInfo.elm_Tsuchisaki);
                   $('#tsuchisaki').show();
               }
	    }
	}

    $('#aboutShorui').attr('href', pageInfo.elm_aboutShoruiUrl);

    this.pageId = 'KSS0070';
};

Pager.prototype.getKSS0060BackParams = function() {
    return {
        "MODE" : "KSS0060_BACK_DISPLAY",
    };
};

Pager.prototype.getKSS0080RequestParams = function() {
    return {
        "MODE" : "KSS0080_DISPLAY",
        "elm_JISIN_CHK" : trim($('input[id=elm_JISIN_CHK]:checked').val())
    };
};