Pager.prototype.goJBS0220 = function(params) {
var self = this;
indicator.on();
self.execApi('/SJB_UII_JBS0220.json', params, function(response) {
self.pageInfo = response.pageInfo;
self.getHtml('JBS0220.html', function() {
if ('C' == response.pageInfo.elm_errorKBN) {
$('#messages').show();
}
self.setJBS0220DefaultParams(self.pageInfo);
indicator.off();
});
});
};
Pager.prototype.setJBS0220DefaultParams = function(pageInfo) {
var self = this;
var sjb_BO_CONTJBISEKI_JIZEN = pageInfo.sjb_BO_CONTJBISEKI_JIZEN;
if(!sjb_BO_CONTJBISEKI_JIZEN[0].sjb_JIZEN_NO == ""){
$.each(sjb_BO_CONTJBISEKI_JIZEN,function(i,elm_contbike){
var table = $('
').attr('class','scope size12 borderNB mb20');
var tbody = $('');
var thHead1 = $(' | ').attr('class','taL').append("事前申込番号").attr('style','width:30%;');
var thHead2 = $(' | ').attr('class','taL').append("保険契約者名").attr('style','width:30%;');
var thHead3 = $(' | ').attr('class','taL').append("申込日").attr('style','width:30%;');
var thHead4 = $(' | ').attr('class','taL').append("保険期間").attr('style','width:30%;');
var thHead5 = $(' | ').attr('class','taL').attr('style','background-color:transparent; border-style:none;');
var td_sjb_KYK_SIMEI_KNJ = $(' | ').attr('class','taL').append(elm_contbike.sjb_KYK_SIMEI_KNJ_1+" "+elm_contbike.sjb_KYK_SIMEI_KNJ_2);
var td_sjb_CONTRACTDATE = $(' | ').attr('class','taL').append(elm_contbike.sjb_CONTRACTDATE);
var td_sjb_HOKEN_TERM = $(' | ').attr('class','taL').append(elm_contbike.sjb_HOKEN_SIKI+"〜"+elm_contbike.sjb_HOKEN_SYUKI);
var td_sjb_JIZEN_NO = $(' | ').attr('class','taL').append(
$('').attr('href','#goJBS0230Detail').bind("click",function(){
var json = {
"MODE" : "JBS0230_DISPLAY",
"JIZEN_NO" : elm_contbike.sjb_JIZEN_NO
};
indicator.on();
self.goJBS0230(json);
return false;
}).append(elm_contbike.sjb_JIZEN_NO)
).append(
$('').attr('href','#goJizenNoDel').bind("click",function(){
if(window.confirm(Messages.get('SPMSG022001'))){
var deleteNow = {
"MODE" : "JBS0220_DELETE",
"JIZEN_NO" : elm_contbike.sjb_JIZEN_NO
};
indicator.on();
indicator.off();
self.goJBS0220(deleteNow);
return false;
}
}).append($('
').attr('src','./images/common/btn_delete.png').attr('style','float:right;width:100px;height:25px;'))
);
var td_sjb_HONTOROKU_URL = $(' | ').attr('class','taL')
.append('●「自賠責保険手続きQRコード」は')
.append( $('').attr('href', elm_contbike.sjb_HONTOROKU_URL ).append('こちら') );
tbody.append($('
').append(thHead1).append(td_sjb_JIZEN_NO))
.append($('
').append(thHead2).append(td_sjb_KYK_SIMEI_KNJ))
.append($('
').append(thHead3).append(td_sjb_CONTRACTDATE))
.append($('
').append(thHead4).append(td_sjb_HOKEN_TERM))
.append($('
').append(thHead5).append(td_sjb_HONTOROKU_URL));
table.append(tbody);
$('#keiyakuinfo').append(table);
});
}
this.pageId = 'JBS0220';
$('#logout_after').hide();
};
function shokenFormSubmit(shokenNo) {
$('#SHOKEN_NO').val(shokenNo);
$('#shokenForm').submit();
};
function logout(){
var nextFlg = true;
nextFlg = window.confirm(Messages.get('SPSYSMSG003'));
if(nextFlg){
commonApi.get('/NET_UII_SessionInvalidate.json', {}, function(response) {
// var userAgent = navigator.userAgent;
// if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) {
// window.location.href="about:blank";
// } else {
// window.opener = null;
// window.open("", "_self");
// window.close();
// };
var opened=window.open('about:blank','_self');
opened.opener=null;
opened.close();
$('#logout_after').show();
$('#logout_before').hide();
$('#messages').hide();
$('#logout').hide();
});
}
}