var g; //列表加载参数 var loadParams = { "listId" : '261', "condition" : 'IS_DEL=0' }; function initComplete(){ g = $("#maingrid").quiGrid({ columns: [ { name: 'FD_OBJECTID261', hide : true}, { display: '队伍名称', name: 'TEAM_NAME_261', align: 'center', width: "10%", render : function(rowdata, value) { return ''+ rowdata.TEAM_NAME_261 +''; } }, { display: '所属单位', name: 'SUB_UNIT_261', align: 'center', width: "20%" }, { display: '队伍类型', name: 'TEAM_TYPE_261', align: 'center', width: "10%" }, { display: '驻扎地点', name: 'INFLUENCE_261', align: 'center', width: "20%" }, { display: '队长', name: 'CAPTAIN_261', align: 'center', width: "10%"}, { display: '联系手机', name: 'TEAM_PHONE_261', align: 'center', width: "10%" }, { display: '可用人数', name: '', align: 'center', width: "10%"}, { display: '总人数', name: 'TEAM_NUMBER_261', align: 'center', width: "10%" } ], url :$.pathname() + '/ws/crud/CRUDService/queryQui', params : loadParams, sortName : 'UPDATEDATE_261 ', sortOrder : 'desc nulls last', rownumbers:true, checkbox:true, height: '100%', width:"100%", pageSize: 10, percentWidthMode:true, //顶部图标按钮栏 toolbar:{ items:[ {text: '详情', click: onView, iconClass: 'icon_view'}, { line : true }, {text: '下载', click: downLoad, iconClass: 'icon_btn_down2'}, { line : true }, {text: '导出', click: exportTotalData, iconClass: 'icon_export'}, { line : true }, {text: '历史维护', click: historyUnit, iconClass: 'icon_history'}, { line : true }, {text: '综合汇总', click: sumUnit, iconClass: 'icon_poll'}, { line : true }, {text: '值班表', click: rotaUnit, iconClass: 'icon_list'}, { line : true } ] } }); } //查询 function searchHandler(){ var name = $('#TEAM_NAME_261').val();//队伍名称 var condition = " IS_DEL='0' "; if(name!=""){ condition += " AND TEAM_NAME LIKE '%" +name+"%'"; } g.setOptions({//重置加载列表的参数 params : { "listId" :'261' , "condition" : condition } }); g.setNewPage(1); g.loadData();//刷新列表 } //详情 function onView(){ var rows = g.getSelectedRows(); if(rows.length==0){ top.Dialog.alert("请选择一条记录"); return; } if(rows.length>1){ top.Dialog.alert("只能选择一条记录"); return; } var fd_id = rows[0].FD_OBJECTID261; window.location.href="teaminfo.jsp?"+fd_id; } //下载 function downLoad(){ } //导出 function exportTotalData(){ var name = $('#TEAM_NAME_261').val();//队伍名称 var condition = " IS_DEL='0' "; if(name!=""){ condition += " AND TEAM_NAME LIKE '%" +name+"%'"; } var sql = { "listId" :'261' , "condition" : condition }; excelExport(261,sql,"应急队伍信息",['IS_DEL','UPDATEDATE','FD_OBJECTID']); } //跳转到对人人员信息页面 function jumpPage(teamid){ window.location.href="teamer-query.jsp?"+teamid; } function historyUnit(){ } function sumUnit(){ } function rotaUnit(){ } $.messager=top.Dialog;