batchEntrust.js
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
* 批量委托
*/
var batchEntrust = function(){
return {
init : function() {
},
formatOtcProp : function(value, row, index){
var status = value;
switch (value) {
case '0S0':
status = '卖出';
break;
case '0B0':
status = '买入';
break;
}
return status;
},
formatEntrustStatus : function(value, row, index){
var status = value;
switch (value) {
case '2':
status = '已报';
break;
case '7':
status = '部成';
break;
case '8':
status = '已成';
break;
}
return status;
},
formatSuccess : function(value, row, index){
var status = value;
switch (value) {
case '0':
status = '失败';
break;
case '1':
status = '成功';
break;
}
return status;
},
formatResult : function(value, row, index){
return '<a href="#" title=\'' + value + '\'>查看</a>';
},
search : function(){
$('#data-grid').datagrid({
url : '/entrust/batch/search',
queryParams : App.dataGridQueryParams('search-form')
});
}
}
}();
batchEntrust.init();