1
|
|
2
|
/*Strat OnDocAfterRender */
|
3
|
|
4
|
|
5
|
/* End OnDocAfterRender */
|
6
|
|
7
|
/* Start OnDocBefore Submit */
|
8
|
|
9
|
|
10
|
/* End OnDocBefore Submit */
|
11
|
|
12
|
/* start OnInitExtension */
|
13
|
|
14
|
'field[name=PHRPA0051ESSApp1Score_51]': {
|
15
|
change: function () {
|
16
|
fillApp1WeightScore();
|
17
|
}
|
18
|
},'field[name=PHRPA0051ESSApp2Score_51]': {
|
19
|
change: function () {
|
20
|
fillApp2WeightScore();
|
21
|
}
|
22
|
},'field[name=PHRPA0051ESSApp3Score_51]': {
|
23
|
change: function () {
|
24
|
fillApp3WeightScore();
|
25
|
}
|
26
|
},'field[name=PHRPA0051ESSApp4Score_51]': {
|
27
|
change: function () {
|
28
|
fillApp4WeightScore();
|
29
|
}
|
30
|
},'field[name=PHRPA0051ESSApp5Score_51]': {
|
31
|
change: function () {
|
32
|
fillApp5WeightScore();
|
33
|
}
|
34
|
},'field[name=PHRPA0051ESSApp6Score_51]': {
|
35
|
change: function () {
|
36
|
fillApp6WeightScore();
|
37
|
}
|
38
|
}
|
39
|
|
40
|
/* End OnInitExtension */
|
41
|
|
42
|
/* Start OnMethodExtension */
|
43
|
|
44
|
|
45
|
function fillApp1WeightScore() {
|
46
|
var grid = Ext.ComponentQuery.query('[name=gridPHRPA0051ESS]')[0];
|
47
|
var selectedRecord = grid.getSelectionModel().getSelection()[0];
|
48
|
var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp1Score_51]')[0].getValue();
|
49
|
MinovaUtil.ExecuteParamQuery({
|
50
|
ID: 'PmsScore',
|
51
|
score: app1Score
|
52
|
}, function (s) {
|
53
|
try {
|
54
|
var result = Ext.decode(s.responseText);
|
55
|
Dt = Ext.decode(Ext.decode(result.data));
|
56
|
if (Dt.length > 0) {
|
57
|
var App1WeightScore = Ext.ComponentQuery.query('[name=App1WeightScore_51]')[0];
|
58
|
App1WeightScore.setValue(Dt[0].weightScore)
|
59
|
}
|
60
|
} catch (e) {}
|
61
|
}, function (e) {});
|
62
|
}
|
63
|
function fillApp2WeightScore() {
|
64
|
var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp2Score_51]')[0].getValue();
|
65
|
MinovaUtil.ExecuteParamQuery({
|
66
|
ID: 'PmsScore',
|
67
|
score: app1Score
|
68
|
}, function (s) {
|
69
|
try {
|
70
|
var result = Ext.decode(s.responseText);
|
71
|
Dt = Ext.decode(Ext.decode(result.data));
|
72
|
if (Dt.length > 0) {
|
73
|
var App2WeightScore = Ext.ComponentQuery.query('[name=App2WeightScore_51]')[0];
|
74
|
App2WeightScore.setValue(Dt[0].weightScore)
|
75
|
}
|
76
|
} catch (e) {}
|
77
|
}, function (e) {});
|
78
|
}
|
79
|
function fillApp3WeightScore() {
|
80
|
var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp3Score_51]')[0].getValue();
|
81
|
MinovaUtil.ExecuteParamQuery({
|
82
|
ID: 'PmsScore',
|
83
|
score: app1Score
|
84
|
}, function (s) {
|
85
|
try {
|
86
|
var result = Ext.decode(s.responseText);
|
87
|
Dt = Ext.decode(Ext.decode(result.data));
|
88
|
if (Dt.length > 0) {
|
89
|
var App3WeightScore = Ext.ComponentQuery.query('[name=App3WeightScore_51]')[0];
|
90
|
App3WeightScore.setValue(Dt[0].weightScore)
|
91
|
}
|
92
|
} catch (e) {}
|
93
|
}, function (e) {});
|
94
|
}
|
95
|
function fillApp4WeightScore() {
|
96
|
var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp4Score_51]')[0].getValue();
|
97
|
MinovaUtil.ExecuteParamQuery({
|
98
|
ID: 'PmsScore',
|
99
|
score: app1Score
|
100
|
}, function (s) {
|
101
|
try {
|
102
|
var result = Ext.decode(s.responseText);
|
103
|
Dt = Ext.decode(Ext.decode(result.data));
|
104
|
if (Dt.length > 0) {
|
105
|
var App4WeightScore = Ext.ComponentQuery.query('[name=App4WeightScore_51]')[0];
|
106
|
App4WeightScore.setValue(Dt[0].weightScore)
|
107
|
}
|
108
|
} catch (e) {}
|
109
|
}, function (e) {});
|
110
|
}
|
111
|
function fillApp5WeightScore() {
|
112
|
var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp5Score_51]')[0].getValue();
|
113
|
MinovaUtil.ExecuteParamQuery({
|
114
|
ID: 'PmsScore',
|
115
|
score: app1Score
|
116
|
}, function (s) {
|
117
|
try {
|
118
|
var result = Ext.decode(s.responseText);
|
119
|
Dt = Ext.decode(Ext.decode(result.data));
|
120
|
if (Dt.length > 0) {
|
121
|
var App5WeightScore = Ext.ComponentQuery.query('[name=App5WeightScore_51]')[0];
|
122
|
App5WeightScore.setValue(Dt[0].weightScore)
|
123
|
}
|
124
|
} catch (e) {}
|
125
|
}, function (e) {});
|
126
|
}
|
127
|
function fillApp6WeightScore() {
|
128
|
var app1Score = Ext.ComponentQuery.query('[name=PHRPA0051ESSApp6Score_51]')[0].getValue();
|
129
|
MinovaUtil.ExecuteParamQuery({
|
130
|
ID: 'PmsScore',
|
131
|
score: app1Score
|
132
|
}, function (s) {
|
133
|
try {
|
134
|
var result = Ext.decode(s.responseText);
|
135
|
Dt = Ext.decode(Ext.decode(result.data));
|
136
|
if (Dt.length > 0) {
|
137
|
var App6WeightScore = Ext.ComponentQuery.query('[name=App6WeightScore_51]')[0];
|
138
|
App6WeightScore.setValue(Dt[0].weightScore)
|
139
|
}
|
140
|
} catch (e) {}
|
141
|
}, function (e) {});
|
142
|
}
|
143
|
|
144
|
/* End OnMethodExtension */
|