Pager.prototype.goLSS0043 = function(params) { var self = this; indicator.on(); self.execApi('/SLS_UII_LSS0043.json', params, function(response) { var pageInfo = response.pageInfo; self.getHtml('LSS0043.html', function() { viewNumber.on("S043"); footer.on(); $('#goLSS0040Back').click(function() { indicator.on(); self.goLSS0040(self.getLSS0040BackParams()); return false; }); $('#goLSS0050').click(function() { indicator.on(); self.goLSS0050(self.getLSS0050RequestParams()); return false; }); self.setLSS0043DefaultParams(pageInfo); indicator.off(); }); }); }; Pager.prototype.setLSS0043DefaultParams = function(pageInfo) { var plan_code = pageInfo.elm_PLAN_CODE; if (plan_code == "G") { $('#elm_PLAN1').hide(); $('#elm_PLAN2').show(); $('#elm_PLAN3').hide(); $('#elm_PLAN4').hide(); } else if (plan_code == "M2") { $('#elm_PLAN1').hide(); $('#elm_PLAN2').hide(); $('#elm_PLAN3').hide(); $('#elm_PLAN4').show(); } else if (plan_code == "M1") { $('#elm_PLAN1').hide(); $('#elm_PLAN2').hide(); $('#elm_PLAN3').show(); $('#elm_PLAN4').hide(); } else { $('#elm_PLAN1').show(); $('#elm_PLAN2').hide(); $('#elm_PLAN3').hide(); $('#elm_PLAN4').hide(); } this.pageId = 'LSS0043'; }; Pager.prototype.getLSS0040BackParams = function() { return { "MODE" : "LSS0040_BACK_DISPLAY" }; }; Pager.prototype.getLSS0050RequestParams = function() { return { "MODE" : "LSS0050_DISPLAY" }; };