self.createGrid = function(){
var params={"userCode":$("#codeValue").val(),
"userName":$("#nameValue").val()};
$("#fsUserTable").datagrid({
url:"/bie/mobileuser/queryMobileUserRight.pvt",
nowrap :false,
idField :"serialNo",
halign:"left",
striped:true,
singleSelect:true,
pagePosition:"bottom",
queryParams : params,
fitColumns:true,
rownumbers:true,
pagination:true,
pageNumber:1,
pageSize:10,
pageLise:[10,20,30],
totalProperty :"total",
rowsProperty:"mobileUsers",
columns:[[
{field:"serialNo",title:"ID",align:"center",width:countBoxWidht(0.1),hidden:true},
{field:"userName",title:"用户姓名",align:"center",width:countBoxWidht(0.12)},
{field:"userCode",title:"用户工号",align:"center",width:countBoxWidht(0.12)},
{field:"status",title:"状态",align:"center",width:countBoxWidht(0.1),formatter:function(value,row,index){
var status;
value==0?status="无效":status="有效";
return status
}},
{field:"modifier",title:"修改人工号",align:"center",width:countBoxWidht(0.12)},
{field:"funcCode",title:"功能编码",align:"center",width:countBoxWidht(0.15),hidden:true},
{field:"modifyTm",title:"修改时间",align:"center",width:countBoxWidht(0.2),hideen:true},
{field:"dongzuo",title:"操作",align:"center",width:countBoxWidht(0.15),formatter:function(value,row,index){
return "
""+
""+
""+
""+
""+
""+
"
}
}
]]
});
}