userFundChange.js
790 Bytes
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
/**
*
*/
var userFund = function(){
return {
init : function() {
$('#startDate').datebox('setValue', (new Date()).format('yyyy-M-d'));
},
formatStatus : function(value, row, index){
var status;
switch (value) {
case 2516:
status = '资金红冲';
break;
case 2515:
status = '资金蓝补';
break;
case 2522:
status = '存管银行资金调减';
break;
case 2521:
status = '存管银行资金调增';
break;
}
return status;
},
search : function(){
$("#data-grid").datagrid({
url : "/report/fund/record?" + $("#search-form").serialize(),
});
},
export : function(){
window.open("/report/fund/export?" + $("#search-form").serialize());
}
}
}();
$(function() {
userFund.init();
});