Pager.prototype.goJBS0040 = function(params) { var self = this; indicator.on(); self.execApi('/SJB_UII_JBS0040.json', params, function(response) { self.pageInfo = response.pageInfo; switch (self.pageInfo.nextID) { case 'JBS0040': self.getHtml('JBS0040.html', function() { $('#goJBS00601').click(function() { indicator.on(); self.goJBS0060(self.getJBS0060RequestParams("1",self.pageInfo.elm_HOKENMONEY1)); return false; }); $('#goJBS00602').click(function() { indicator.on(); self.goJBS0060(self.getJBS0060RequestParams("2",self.pageInfo.elm_HOKENMONEY2)); return false; }); $('#goJBS00603').click(function() { indicator.on(); self.goJBS0060(self.getJBS0060RequestParams("3",self.pageInfo.elm_HOKENMONEY3)); return false; }); $('#goJBS00604').click(function() { indicator.on(); self.goJBS0060(self.getJBS0060RequestParams("4",self.pageInfo.elm_HOKENMONEY4)); return false; }); $('#goJBS00605').click(function() { indicator.on(); self.goJBS0060(self.getJBS0060RequestParams("5",self.pageInfo.elm_HOKENMONEY5)); return false; }); $('#goJBS0030Back').click(function() { indicator.on(); self.scrollTo(); if (self.pageInfo.elm_RITOKBN == "2") { self.goJBS0040(self.getJBS0040BackParams2()); } else { self.goJBS0030(self.getJBS0030BackParams()); } return false; }); self.setJBS0040DefaultParams(self.pageInfo); indicator.off(); }); break; case 'JBS0045': self.getHtml('JBS0045.html', function() { $('#goJBS0040Yes').click(function() { indicator.on(); self.goJBS0040(self.getJBS0040RequestParams2()); return false; }); $('#goJBS0040No').click(function() { indicator.on(); self.goJBS0040(self.getJBS0040RequestParams3()); return false; }); $('#goJBS0030Back').click(function() { indicator.on(); self.scrollTo(); self.goJBS0030(self.getJBS0030BackParams()); return false; }); self.setJBS0045DefaultParams(self.pageInfo); indicator.off(); }); break; case 'JBS0130': self.goJBS0130(self.getJBS0130RequestParams(self.pageInfo.mode)); break; // case 'JBS0030': // self.goJBS0030(self.getJBS0030BackParams()); // break; } }); }; Pager.prototype.setJBS0040DefaultParams = function(pageInfo) { $('#HKN_RYO_1').text(pageInfo.elm_HKN_RYO_1); $('#HKN_RYO_2').text(pageInfo.elm_HKN_RYO_2); $('#HKN_RYO_3').text(pageInfo.elm_HKN_RYO_3); $('#HKN_RYO_4').text(pageInfo.elm_HKN_RYO_4); $('#HKN_RYO_5').text(pageInfo.elm_HKN_RYO_5); $('#SANKOUTI1').text(pageInfo.elm_SANKOUTI1); $('#SANKOUTI2').text(pageInfo.elm_SANKOUTI2); $('#SANKOUTI3').text(pageInfo.elm_SANKOUTI3); $('#SANKOUTI4').text(pageInfo.elm_SANKOUTI4); $('#SANKOUTI5').text(pageInfo.elm_SANKOUTI5); // ADD ƒ^ƒCƒgƒ‹Ý’è 20160912 START $("#TT").text("‚¨Œ©Ï‚茋‰Ê / Ž©”…Ó•ÛŒ¯`Œ´•tE250ccˆÈ‰ºƒoƒCƒN—p`[Ž©“®ŽÔ‘¹ŠQ”…žÓ”C•ÛŒ¯]"); // ADD ƒ^ƒCƒgƒ‹Ý’è 20160912 END this.pageId = 'JBS0040'; }; Pager.prototype.setJBS0045DefaultParams = function(pageInfo) { this.pageId = 'JBS0045'; }; Pager.prototype.getJBS0040BackParams2 = function() { return { "MODE" : "JBS0040_BACK_DISPLAY_2" }; }; Pager.prototype.getJBS0030BackParams = function() { return { "MODE" : "JBS0030_BACK_DISPLAY" }; }; Pager.prototype.getJBS0045BackParams = function() { return { "MODE" : "JBS0045_BACK_DISPLAY" }; }; Pager.prototype.getJBS0040RequestParams2 = function() { return { "MODE" : "JBS0040_DISPLAY_2" }; }; Pager.prototype.getJBS0040RequestParams3 = function() { return { "MODE" : "JBS0040_DISPLAY_3" }; }; Pager.prototype.getJBS0060RequestParams = function(HOKENKIKAN,HOKENMONEY) { return { "MODE" : "JBS0060_DISPLAY", "HOKENKIKAN" : HOKENKIKAN, "HOKENMONEY" : HOKENMONEY }; };