$(function () {
//替换保障类别名称
$("#lbl_sBZJLQZH").text(GetBzName($("#hidType").val()));
//排序字段
list_sortname = " "; // 'AreaInfo';
//排序方式
list_softorder = " "; // 'asc';
//主键字段标识
list_idfield = 'GID';
//保障金标题
var bzjtitle = GetBzName($("#hidType").val().substring(0, 2));
//活动列
var sortNum = 1, sortStart = 0;
var paramhidType = $("#hidType").val().substring(0, 2);
var config = $("#hidSJK").val();
list_columns = [];
var columns = [
{
name: 'XIAN', title: '序号', width: 30, sortable: false,
formatter: function (value) {
var sortPage = $('#TList').getGridParam('page');
var sortFirst = typeof sortPage == 'undefined' ? 0 : (parseInt(sortPage) - 1) * 15;
if (sortNum == 16 || sortStart != sortFirst) {
sortNum = 1;
}
sortStart = sortFirst;
return sortFirst + sortNum++;
}
},
{ name: 'XIAN', title: '县', width: 80, align: 'center', sortable: false },
{ name: 'XIANG', title: '乡', width: 100, align: 'center', sortable: false },
{ name: 'CUN', title: '村', width: 100, align: 'center', sortable: false },
{ name: 'SPEOPNAME', title: '成员姓名', width: 60, align: 'center', sortable: false },
{ name: 'SSEXNAME', title: '性别', width: 40, align: 'center', sortable: false },
{ name: 'SIDCARD', title: '身份证号', width: 100, align: 'center', sortable: false },
{ name: 'AGE', title: '年龄', width: 40, align: 'center', sortable: false },
{ name: 'SDATE', title: '出生日期', width: 100, align: 'center', sortable: false },
{ name: 'SNATIONNAME', title: '民族', width: 50, align: 'center', sortable: false },
{ name: 'SFAMILYGXNAME', title: '家庭关系', width: 50, align: 'center', sortable: false },
{ name: 'SHZNAME', title: '户主姓名', width: 60, align: 'center', sortable: false },
{ name: 'SHZIDCARD', title: '户主身份证', width: 120, align: 'center', sortable: false },
{ name: 'SKHR', title: '开户人', width: 60, align: 'center', sortable: false },
{ name: 'ISSBZRKS', title: '保障人口数', width: 130, align: 'center', sortable: false },
{
name: 'SLBCODE', title: '特困类别', width: 130, align: 'center', sortable: false,
formatter: function (value) {
if (value == "0301") return "农村特困AA";
if (value == "0302") return "农村特困BB";
return "";
}
},
{ name: 'SGYFSNAME', title: '供养方式', width: 130, align: 'center', sortable: false },
{ name: 'STEL', title: '联系电话', width: 130, align: 'center', sortable: false },
{ name: 'SADDRESS', title: '居住地址', width: 130, align: 'center', sortable: false },
{
name: 'SCJLBCODE', title: '是否残疾', width: 130, align: 'center', sortable: false,
formatter: function (value) {
if (value != null) return "是";
if (value == null) return "否";
return "";
}
},
{ name: 'SCJDJNAME', title: '残疾等级', width: 130, align: 'center', sortable: false },
{
name: 'SZLNL', title: '自理能力', width: 130, align: 'center', sortable: false,
formatter: function (value) {
if (value == "01") return "轻度失能";
if (value == "02") return "中度失能";
return "";
}
},
{ name: 'SZBBZNAME', title: '患病类型', width: 130, align: 'center', sortable: false },
{
name: 'FBZJE', title: '发放金额', width: 80, align: 'center', sortable: false,
formatter: function (value, a, rowData) {
return parseInt(rowData.JBSHJ) + parseInt(rowData.SKVALUE) + parseInt(rowData.FTJJE);
}
},
{
name: 'JBSHJ', title: '基本生活金', width: 80, align: 'center', sortable: false,
formatter: function (value) {
if (value == null) return "";
return parseFloat(value).toFixed(2);
}
}
];
//将动态列追加到列表上
var len = columns.length;
for (var i = 0; i < len; i++) {
list_columns.push(columns[i]);
}
Listquery();
});