123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
- <jsp:include page="../../common/include.jsp" />
- <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
- <%-- 应发补贴人员家庭成员民政、房产审核页面 --%>
- <script type="text/javascript">
- //家庭关系
- var relativeObj = null;
- var relative_array = null;
-
- //婚姻状况
- var maritalStatusObj = null;
- var maritalStatus_array = null;
- //家庭关系
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"homeRelative" ,"aa10.name":"家庭关系" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- relativeObj = msg.obj.rows;
- }
- }
- });
-
- //婚姻情况
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"maritalStatus" ,"aa10.name":"婚姻情况" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- maritalStatusObj = msg.obj.rows;
- var select_arr = [];
- var data = maritalStatusObj;
- }
- }
- });
- /**用户显示区*/
- $(function() {
- $('#securityPersonRelativeDataGrid').datagrid({
- rownumbers:true,
- fit:true,
- pageSize:20,
- pageList : [ 10, 20, 30, 40, 50 ],
- fitColumns:false,
- border:false,
- sortOrder:'desc',
- pagination:true,
- url:whzl.basePath + '/securityPersonAction_civilHouseReviewList',
- toolbar:'#searchtool',
- checkOnSelect:true,
- selectOnCheck:true,
- singleSelect:true,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- $.messager.alert("提示",result.message);
- return ;
- }
- }
- });
- });
- /**查询*/
- function searchFun(){
- $("#securityPersonRelativeDataGrid").datagrid("load", {
- "securityPersonRelative.name":$("#tblQuery").find("input[id='name']").val(),
- "securityPersonRelative.idCard":$("#tblQuery").find("input[id='idCard']").val()
- });
- //$('#securityPersonRelativeDataGrid').datagrid({url:whzl.basePath + '/securityPersonAction_civilHouseReviewList',pageNumber:1});
- }
-
- /*清除查询条件**/
- function ClearQuery() {
- $("#tblQuery").find("input").val("");
- }
-
- var securityPersonIdFormatter = function(value , row , index){
- return row.securityPerson.id;
- }
-
- var relativeFormatter = function(value , row , index){
- var relative = "";
- for(var nItem = 0; nItem < relativeObj.length; nItem++ ){
- if(relativeObj[nItem].code == row.relative){
- relative = relativeObj[nItem].value;
- break;
- }
- }
- return relative;
- }
- //详情
- var detailsFormatter = function(value , row , index){
- if(row.civilEntry==1){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/detail.png' onclick=details(" + row.id +","+ row.securityPerson.id + ") style='cursor:pointer'>";
- }else{
- return "";
- }
- }
-
- //民政表格导出
- function exportPersonInfo(){
- var rows = $('#securityPersonRelativeDataGrid').datagrid('getSelections');
- var ids = [];
- $.each(rows,function(index,item){
- ids.push(item.id);
- })
- var idsStr = ids.join(",");
- window.location.href = whzl.basePath+"/securityPersonAction_exportPersonInfo?ids="+idsStr;
- }
-
- //民政表格导入
- function importPersonInfo(){
- $("#importPersonInfoDialog").dialog({
- buttons:[{
- text : '确定',
- iconCls : 'icon-ok',
- handler : function(){
- import_submit();
- }
- },{
- text : '取消',
- iconCls : 'icon-cancel',
- handler : function(){
- $("#importPersonInfoDialog").dialog("close");
- }
- }]
- })
- }
- </script>
- <div class="easyui-layout" data-options="fit:true,border:false">
- <div data-options="region:'center',border:false">
- <div id="searchtool" data-options="region:'north' , border:false">
- <div class="clear"></div>
- <table id="tblQuery" style="width:100%;">
- <tr>
- <td align="right" style="width: 10%;"><span>姓名</span></td><td style="width: 10%;"><input id="name" name="securityPersonRelative.name" type="text" style="width: 100px;"/></td>
- <td align="right" style="width: 8%;"><span>身份证号</span></td><td style="width: 10%;"><input id="idCard" name="securityPersonRelative.idCard" type="text" style="width: 140px;"/></td>
- <td align="left" style="width: 40%;">
- <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
- <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
- <a href="javascript:importPersonInfo();" id="importPersonInfo" class="easyui-linkbutton" data-options="iconCls:'icon-import',plain:true">导入</a>
- <a href="javascript:exportPersonInfo();" id="exportPersonInfo" class="easyui-linkbutton" data-options="iconCls:'icon-export',plain:true">导出</a>
- </td>
- </tr>
- </table>
- <div class="clear"></div>
- </div>
-
- <table id="securityPersonRelativeDataGrid">
- <thead frozen="true">
- <tr>
- <th data-options="field:'id',checkbox:true,width:30">ID</th>
- </tr>
- </thead>
- <thead>
- <tr>
- <th data-options="field:'securityPersonId',formatter:securityPersonIdFormatter,width:60">申请编号</th>
- <th data-options="field:'residenceNo',width:120">户号</th>
- <th data-options="field:'relative',width:120,formatter:relativeFormatter">与户主关系</th>
- <th data-options="field:'name',width:120">姓名</th>
- <th data-options="field:'idCard',width:150">身份证号</th>
- <!-- <th data-options="field:'details',align:'center',width:60,formatter:detailsFormatter">查看详细</th> -->
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div id="importPersonInfoDialog" data-options="title:' 导入',iconCls:'icon-cog',width:500,height:370,modal:true,href:'<%=basePath %>/securityPersonAction_toImportPersonInfo'">
- </div>
- <script type="text/javascript">
- <!--
- parent.$.messager.progress('close');
- //-->
- </script>
|