/*Strat OnDocAfterRender */ /* End OnDocAfterRender */ /* Start OnDocBefore Submit */ /* End OnDocBefore Submit */ /* start OnInitExtension */ 'field[name=PHRPA0051ESSApp1Score_51]': { change: function () { fillApp1WeightScore(); } },'field[name=PHRPA0051ESSApp2Score_51]': { change: function () { fillApp2WeightScore(); } },'field[name=PHRPA0051ESSApp3Score_51]': { change: function () { fillApp3WeightScore(); } },'field[name=PHRPA0051ESSApp4Score_51]': { change: function () { fillApp4WeightScore(); } },'field[name=PHRPA0051ESSApp5Score_51]': { change: function () { fillApp5WeightScore(); } },'field[name=PHRPA0051ESSApp6Score_51]': { change: function () { fillApp6WeightScore(); } } /* End OnInitExtension */ /* Start OnMethodExtension */ function fillApp1WeightScore() { var grid = Ext.ComponentQuery.query('[name=gridPHRPA0051ESS]')[0]; var selectedRecord = grid.getSelectionModel().getSelection()[0]; var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp1Score_51]')[0].getValue(); MinovaUtil.ExecuteParamQuery({ ID: 'PmsScore', score: app1Score }, function (s) { try { var result = Ext.decode(s.responseText); Dt = Ext.decode(Ext.decode(result.data)); if (Dt.length > 0) { var App1WeightScore = Ext.ComponentQuery.query('[name=App1WeightScore_51]')[0]; App1WeightScore.setValue(Dt[0].weightScore) } } catch (e) {} }, function (e) {}); } function fillApp2WeightScore() { var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp2Score_51]')[0].getValue(); MinovaUtil.ExecuteParamQuery({ ID: 'PmsScore', score: app1Score }, function (s) { try { var result = Ext.decode(s.responseText); Dt = Ext.decode(Ext.decode(result.data)); if (Dt.length > 0) { var App2WeightScore = Ext.ComponentQuery.query('[name=App2WeightScore_51]')[0]; App2WeightScore.setValue(Dt[0].weightScore) } } catch (e) {} }, function (e) {}); } function fillApp3WeightScore() { var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp3Score_51]')[0].getValue(); MinovaUtil.ExecuteParamQuery({ ID: 'PmsScore', score: app1Score }, function (s) { try { var result = Ext.decode(s.responseText); Dt = Ext.decode(Ext.decode(result.data)); if (Dt.length > 0) { var App3WeightScore = Ext.ComponentQuery.query('[name=App3WeightScore_51]')[0]; App3WeightScore.setValue(Dt[0].weightScore) } } catch (e) {} }, function (e) {}); } function fillApp4WeightScore() { var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp4Score_51]')[0].getValue(); MinovaUtil.ExecuteParamQuery({ ID: 'PmsScore', score: app1Score }, function (s) { try { var result = Ext.decode(s.responseText); Dt = Ext.decode(Ext.decode(result.data)); if (Dt.length > 0) { var App4WeightScore = Ext.ComponentQuery.query('[name=App4WeightScore_51]')[0]; App4WeightScore.setValue(Dt[0].weightScore) } } catch (e) {} }, function (e) {}); } function fillApp5WeightScore() { var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp5Score_51]')[0].getValue(); MinovaUtil.ExecuteParamQuery({ ID: 'PmsScore', score: app1Score }, function (s) { try { var result = Ext.decode(s.responseText); Dt = Ext.decode(Ext.decode(result.data)); if (Dt.length > 0) { var App5WeightScore = Ext.ComponentQuery.query('[name=App5WeightScore_51]')[0]; App5WeightScore.setValue(Dt[0].weightScore) } } catch (e) {} }, function (e) {}); } function fillApp6WeightScore() { var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp6Score_51]')[0].getValue(); MinovaUtil.ExecuteParamQuery({ ID: 'PmsScore', score: app1Score }, function (s) { try { var result = Ext.decode(s.responseText); Dt = Ext.decode(Ext.decode(result.data)); if (Dt.length > 0) { var App6WeightScore = Ext.ComponentQuery.query('[name=App6WeightScore_51]')[0]; App6WeightScore.setValue(Dt[0].weightScore) } } catch (e) {} }, function (e) {}); } /* End OnMethodExtension */