userFundChange.js 790 Bytes
/**
 * 
 */
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();
});