puzhibing
2024-02-05 640ff18d2d7f4be02ddb7f8f75e899f05545eb98
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
/**
 * 管理初始化
 */
var TRecordMinimumIncome = {
    id: "TRecordMinimumIncomeTable",    //表格id
    seItem: null,        //选中的条目
    table: null,
    layerIndex: -1
};
 
var language =$("#language").val()
 
/**
 * 初始化表格的列
 */
TRecordMinimumIncome.initColumn = function () {
    return [
        {field: 'selectItem', radio: true},
        {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
        {title: language==1?'司机姓名':(language==2?"Driver name":"Nama pengemudi"), field: 'driverName', type: 'date',visible: true, align: 'center', valign: 'middle'},
        {title: language==1?'联系方式':(language==2?"contact information":"informasi kontak"), field: 'driverPhone', visible: true, align: 'center', valign: 'middle'},
        {title: language==1?'累计补贴':(language==2?"Accumulated subsidies":"Subvensi terkumpul"), field: 'money', visible: true, align: 'center', valign: 'middle'},
    ];
};
 
/**
 * 检查是否选中
 */
TRecordMinimumIncome.check = function () {
    var selected = $('#' + this.id).bootstrapTable('getSelections');
    if(selected.length == 0){
        Feng.info("请先选中表格中的某一记录!");
        return false;
    }else{
        TRecordMinimumIncome.seItem = selected[0];
        return true;
    }
};
 
 
 
/**
 * 查询列表
 */
// TRecordMinimumIncome.search = function () {
//     var queryData = {};
//     queryData['tEnsureIncomeRuleId'] = window.$('#tEnsureIncomeRuleId').val();
//     TRecordMinimumIncome.table.refresh({query: queryData});
// };
 
$(function () {
    var defaultColunms = TRecordMinimumIncome.initColumn();
    var table = new BSTable(TRecordMinimumIncome.id, "/tEnsureIncomeRule/incomeList", defaultColunms);
    table.setPaginationType("client");
    TRecordMinimumIncome.table = table.init();
});