123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884 |
- <%@ 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 maritalStatusObj = null;
- var maritalStatus_array = null;
-
- //性别
- var sexObj = null;
- var sex_array = null;
-
- //申请保障类型
- var applyTypeObj = null;
- var applyType_array = null;
-
- //家庭住房困难类型
- var diffcultTypeObj = null;
- var diffcultType_array = null;
-
- //私有或公有
- var privateOrPublicObj = null;
- var privateOrPublic_array = null;
-
- //产权性质
- var propertyTypeObj = null;
- var propertyType_array = null;
-
-
- //是否
- var yesOrNoObj = null;
- var yesOrNo_array = null;
-
- //审核状态
- var stateObj = null;
- var state_array = null;
-
- //家庭关系
- var relativeObj = null;
- var relative_array = null;
-
- //人员类别
- var personTypeObj = null;
- var personType_array = null;
-
- //审核意见
- var opinionObj = null;
-
- var opinion_array = null;
-
- //区
- var areaObj = null;
-
- var area_array = null;
-
- //街道
- var streetObj = null;
-
- var street_array = null;
-
- //居委会
- var neighborhoodObj = null;
-
- var neighborhood_array = null;
-
- //学历
- var educationObj = null;
-
- var education_array = null;
-
- //收入线标准
- var personTypeRuleObj = null;
-
- var personTypeRule_array = null;
-
- var avgHouseAreaObj = null;
- var moneyObj = null;
- var carObj = null;
-
- //婚姻情况
- $.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;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- maritalStatus_array = select_arr.join("");
- }
- }
- });
-
- //性别
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"sex" ,"aa10.name":"性别" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- sexObj = msg.obj.rows;
- var select_arr = [];
- var data = sexObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- sex_array = select_arr.join("");
- }
- }
- });
-
- //保障类别
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"applyType" ,"aa10.name":"保障业务类别" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- applyTypeObj = msg.obj.rows;
- var select_arr = [];
- var data = applyTypeObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- applyType_array = select_arr.join("");
- $("#applyType").append(applyType_array);
- }
- }
- });
-
- //家庭住房困难类型
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"diffcultType" ,"aa10.name":"家庭住房困难类型" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- diffcultTypeObj = msg.obj.rows;
- var select_arr = [];
- var data = diffcultTypeObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- diffcultType_array = select_arr.join("");
- }
- }
- });
-
- //私有或公有
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"privateOrPublic" ,"aa10.name":"私有或公有" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- privateOrPublicObj = msg.obj.rows;
- var select_arr = [];
- var data = privateOrPublicObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- privateOrPublic_array = select_arr.join("");
- }
- }
- });
-
- //房屋产权性质
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"propertyType" ,"aa10.name":"产权性质" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- propertyTypeObj = msg.obj.rows;
- var select_arr = [];
- var data = propertyTypeObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- propertyType_array = select_arr.join("");
- }
- }
- });
-
- //是否
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"yesOrNo" ,"aa10.name":"是否" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- yesOrNoObj = msg.obj.rows;
- var select_arr = [];
- var data = yesOrNoObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- yesOrNo_array = select_arr.join("");
- }
- }
- });
-
- //人员类别
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"personType" ,"aa10.name":"保障人员类别" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- personTypeObj = msg.obj.rows;
- var select_arr = [];
- var data = personTypeObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- personType_array = select_arr.join("");
- $("#personType").append(personType_array);
- }
- }
- });
-
- //审批状态
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"reviewStatus" ,"aa10.name":"审核状态" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- stateObj = msg.obj.rows;
- var select_arr = [];
- var data = stateObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- state_array = select_arr.join("");
- $("#state").append(state_array);
- }
- }
- });
-
- //家庭关系
- $.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;
- var select_arr = [];
- var data = relativeObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- relative_array = select_arr.join("");
- }
- }
- });
-
- //审批意见
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"auditOpinion" ,"aa10.name":"申请意见" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- opinionObj = msg.obj.rows;
- var select_arr = [];
- var data = opinionObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- opinion_array = select_arr.join("");
- }
- }
- });
-
- //获取区
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "houseRegisterAction_listChildren",//要访问的后台地址
- //data:{"id":id},
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- areaObj = msg.obj.rows;
- var select_arr = [];
- var data = areaObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].id+">"+data[nItem].name+"</option>");
- }
- area_array = select_arr.join("");
- }
- }
- });
-
- //学历
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"education" ,"aa10.name":"学历" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- educationObj = msg.obj.rows;
- var select_arr = [];
- var data = educationObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- education_array = select_arr.join("");
- }
- }
- });
- //人均住房面积
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"avgHouseArea" ,"aa10.name":"人均住房面积" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- avgHouseAreaObj = msg.obj.rows;
- }
- }
- });
- //家庭金融资产
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"money" ,"aa10.name":"家庭金融资产" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- moneyObj = msg.obj.rows;
- }
- }
- });
- //家庭车辆资产
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"car" ,"aa10.name":"家庭车辆资产" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- carObj = msg.obj.rows;
- }
- }
- });
- /**用户显示区*/
- $(function() {
- $('#compareSecurityPersonApplyDataGrid').datagrid({
- rownumbers:true,
- fit:true,
- pageSize:20,
- pageList : [ 10, 20, 30, 40, 50 ],
- fitColumns:false,
- border:false,
- sortOrder:'desc',
- pagination:true,
- idField:'id',
- url:whzl.basePath + '/securityPersonApplyAction_reviewGuaranteeList',
- toolbar:'#searchtool',
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- $.messager.alert("提示",result.message);
- return ;
- }
- }
- });
- });
-
- /**获取街道列表*/
- function getStreetList(id,streetId,objId){
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "houseRegisterAction_listChildren",//要访问的后台地址
- data:{"id":id},
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- streetObj = msg.obj.rows;
- var select_arr = [];
- var data = streetObj;
- select_arr.push("<option value=''>请选择</option>");
- if(id != null && id != ""){
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].id+">"+data[nItem].name+"</option>");
- }
- }
- street_array = select_arr.join("");
- $("#" + objId).append(street_array);
- $("#" + objId).val(streetId);
- }
- }
- });
- }
-
- /**获取街道列表*/
- function getWorkAreaList(id,streetId,objId){
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "houseRegisterAction_listChildren",//要访问的后台地址
- data:{"id":id},
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- streetObj = msg.obj.rows;
- var select_arr = [];
- var data = streetObj;
- select_arr.push("<option value=''>请选择</option>");
- if(id != null && id != ""){
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].id+">"+data[nItem].name+"</option>");
- }
- }
- street_array = select_arr.join("");
- $("#" + objId).append(street_array);
- $("#" + objId).val(streetId);
- }
- }
- });
- }
- /**获取居委会列表*/
- function getNeighborhoodList(id,neighborhoodId,objId){
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "houseRegisterAction_listChildren",//要访问的后台地址
- data:{"id":id},
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- neighborhoodObj = msg.obj.rows;
- var select_arr = [];
- var data = neighborhoodObj;
- select_arr.push("<option value=''>请选择</option>");
- if(id != null && id != ""){
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].id+">"+data[nItem].name+"</option>");
- }
- }
- neighborhood_array = select_arr.join("");
- $("#" + objId).append(neighborhood_array);
- $("#" + objId).val(neighborhoodId);
- }
- }
- });
- }
-
- /**查询*/
- function searchFun(){
- $("#compareSecurityPersonApplyDataGrid").datagrid("load", {
- "securityPersonApply.securityPersonName":$("#tblQuery").find("input[id='name']").val(),
- "securityPersonApply.securityPersonIdCard":$("#tblQuery").find("input[id='idCard']").val(),
- "securityPersonApply.personType":$("#tblQuery").find("select[id='personType']").val(),
- "securityPersonApply.applyType":$("#tblQuery").find("select[id='applyType']").val(),
- "securityPersonApply.state":$("#tblQuery").find("select[id='state']").val(),
- "securityPersonApply.addType":$("#tblQuery").find("select[id='addType']").val()
- });
- }
-
- /*清除查询条件**/
- function ClearQuery() {
- $("#tblQuery").find("input").val("");
- $("#tblQuery").find("select").val("-1");
- }
-
- //姓名
- var nameFormatter = function(value , row , index){
- return row.securityPersonName;
- }
-
- //身份证号
- var idCardFormatter = function(value , row , index){
- return row.securityPersonIdCard;
- }
-
- /**性别*/
- var sexFormatter = function(value , row , index){
- return "";
- };
-
- /**审核状态*/
- var stateFormatter = function(value , row , index){
- var state = "";
- for(var nItem = 0; nItem < stateObj.length; nItem++ ){
- if(stateObj[nItem].code == row.state){
- state = stateObj[nItem].value;
- break;
- }
- }
- return state;
- };
-
- /**经办人*/
- var pickUpUserNameFormatter = function(value , row , index){
- return row.pickUpUserName;
- };
-
-
- /**户口所在地*/
- var residenceFormatter = function(value , row , index){
- if(row.houseRegister != null && row.houseRegister.parent != null && row.houseRegister.parent.parent != null){
- return row.houseRegister.parent.parent.name + "-" + row.houseRegister.parent.name + "-" + row.houseRegister.name;
- }
- };
-
- /**详细*/
- var detailsFormatter = function(value , row , index){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/detail.png' title='查看详情' onclick=securityPersonApplyDetails(" + row.id + ") style='cursor:pointer' />";
- };
-
- /**详细页面对话框*/
- var securityPersonApplyDetails = function(id){
- $("#detailsecurityPersonApplyDialog").dialog(
- {
- buttons : [
- {
- text : '确定',
- iconCls : 'icon-ok',
- handler : function(){
- $("#detailsecurityPersonApplyDialog").dialog("close");
- }
- }
- ],
- onLoad : function(){
- detail_load(id);
- }
- }
- );
- };
-
- /**详细*/
- var updateFormatter = function(value , row , index){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/update.png' title='修改' onclick=securityPersonApplyUpdate(" + row.id + ") style='cursor:pointer' />";
- };
-
- /**详细页面对话框*/
- var securityPersonApplyUpdate= function(id){
- $("#detailsecurityPersonApplyDialog").dialog(
- {
- buttons : [
- {
- text : '确定',
- iconCls : 'icon-ok',
- handler : function(){
- $("#detailsecurityPersonApplyDialog").dialog("close");
- }
- }
- ],
- onLoad : function(){
- detail_load(id);
- }
- }
- );
- };
-
-
- /**人员类别格式化*/
- var personTypeFormatter = function(value , row , index){
- var personType = "";
- for(var nItem = 0; nItem < personTypeObj.length; nItem++ ){
- if(personTypeObj[nItem].code == row.personType){
- personType = personTypeObj[nItem].value;
- break;
- }
- }
- return personType;
- };
- /**申请类别格式化*/
- var applyTypeFormatter = function(value , row , index){
- var applyType = "";
- for(var nItem = 0; nItem < applyTypeObj.length; nItem++ ){
- if(applyTypeObj[nItem].code == row.applyType){
- applyType = applyTypeObj[nItem].value;
- break;
- }
- }
- return applyType;
- };
-
- /**家庭关系格式*/
- 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 maritalStatusFormatter = function(value , row , index){
- var maritalStatus = "";
- for(var nItem = 0; nItem < maritalStatusObj.length; nItem++ ){
- if(maritalStatusObj[nItem].code == row.maritalStatus){
- maritalStatus = maritalStatusObj[nItem].value;
- break;
- }
- }
- return maritalStatus;
- };
-
- /**是否在保障范围内格式*/
- var isInRangeFormatter = function(value , row , index){
- var yesOrNo = "";
- for(var nItem = 0; nItem < yesOrNoObj.length; nItem++ ){
- if(yesOrNoObj[nItem].code == row.isInRange){
- yesOrNo = yesOrNoObj[nItem].value;
- break;
- }
- }
- return yesOrNo;
- };
-
- //开始处理时间
- var startRemainTimeFormatter = function(value , row , index){
- if(row.type==1||row.type==2||row.type==10){
- if(row.state==2){
- return dealDate(row.pickUpDate);
- }
- if(row.state==5){
- return dealDate(row.publicity1ResultDate);
- }
- if(row.state==6){
- return dealDate(row.streetDate);
- }
- if(row.state==7){
- return dealDate(row.housesOwnershipDate);
- }
- }
- }
-
- //剩余处理时间
- var remainTimeFormatter = function(value , row , index){
- var currentDate = new Date();
- var reviewDate = null;
- var time = null;
- var date = null;
- if(row.type==1||row.type==2||row.type==10){
- //街道办审核
- if(row.state==2){
- reviewDate = new Date(row.pickUpDate.replace(/-/gm ,"/"));
- reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 3;
- }
- //区保障中心审核
- if(row.state==5){
- reviewDate = new Date(row.publicity1ResultDate.replace(/-/gm ,"/"));
- reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 5;
- }
- //房屋审核
- if(row.state==6){
- reviewDate = new Date(row.streetDate.replace(/-/gm ,"/"));
- reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 10;
- }
- //民政审核
- if(row.state==7){
- reviewDate = new Date(row.streetDate.replace(/-/gm ,"/"));
- reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 15;
- }
- //保障处审核
- if(row.state==8){
- if(row.civilDate>row.housesOwnershipDate){
- reviewDate = new Date(row.civilDate.replace(/-/gm ,"/"));
- }else{
- reviewDate = new Date(row.housesOwnershipDate.replace(/-/gm ,"/"));
- }
- //reviewDate = new Date(row.civilDate);
- reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 10;
- }
- }else{
- if(row.state==2){
- reviewDate = new Date(row.pickUpDate.replace(/-/gm ,"/"));
- reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 10;
- }
- if(row.state==7){
- reviewDate = new Date(row.housesOwnershipDate.replace(/-/gm ,"/"));
- reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 5;
- }
- }
- time =reviewDate -currentDate;
- date = parseInt(time / (1000 * 60 * 60 * 24))
- if(date>=0){
- return "<span style='color:green;'>剩余"+date+"天</span>";
- }else{
- return "<span style='color:red;'>已超时"+date*-1+"天</span>";
- }
- }
-
- var addTypeFormatter = function(value , row , index){
- if(value=="1"){
- return "新申请";
- }else if(value=="2"){
- return "年审";
- }
- }
- var dateFormatter = function(value , row , index){
- return dealDate(value);
- }
- function compare(){
- var rows = $('#compareSecurityPersonApplyDataGrid').datagrid('getSelections');
- if(rows.length>1||rows.length<1){
- $.messager.alert("提示","请选择一条要对比的人员信息!");
- return;
- }
- var id = rows[0].id
- $("#compareInfoDialog").dialog({
- buttons:[{
- text : '确定',
- iconCls : 'icon-ok',
- handler : function(){
- compare_submit(id);
- $("#compareSecurityPersonApplyDataGrid").datagrid("clearSelections");
- }
- },{
- text : '取消',
- iconCls : 'icon-cancel',
- handler : function(){
- $("#compareInfoDialog").dialog("close");
- $("#compareSecurityPersonApplyDataGrid").datagrid("clearSelections");
- }
- }],
- onLoad : function(){
- compare_load(id);
- }
- })
- }
-
- //提供佐证
- var evidenceFormatter = function(value , row , index){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/add.png' onclick=evidence(" + row.id +") style='cursor:pointer'>";;
- }
-
- function evidence(id){
- $("#evidenceDialog").dialog({
- buttons:[{
- text:"关闭",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#evidenceDialog").dialog("close");
- }
- }],
- onLoad:function(){
- evidence_load(id);
- }
- })
- }
- --></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="securityPersonApply.securityPerson.name" type="text" style="width: 100px;"/></td>
- <td align="right" style="width: 8%;"><span>身份证号</span></td><td style="width: 10%;"><input id="idCard" name="securityPersonApply.securityPerson.idCard" type="text" style="width: 140px;"/></td>
- <td style="width: 8%;"></td>
- <td style="width: 10%;"></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>
- </td>
- </tr>
-
- <tr>
- <td align="right" style="width: 10%;"><span>人员类别</span></td>
- <td style="width: 10%;">
- <select id="personType" name="securityPersonApply.personType" style="width:100px" onchange="searchFun();">
- <option value="">全部</option>
- </select>
- </td>
- <td align="right" style="width: 8%;"><span>保障类别</span></td>
- <td style="width: 10%;">
- <select id="applyType" name="securityPersonApply.applyType" style="width:140px" onchange="searchFun();">
- <option value="">全部</option>
- </select>
- </td>
- <td align="right" style="width: 8%;"><span>新增类型</span></td>
- <td><select id="addType" name="securityPersonApply.addType" style="width:100px" >
- <option value="">全部</option>
- <option value="1">新申请</option>
- <option value="2">年审</option>
- </select>
- </td>
- <td>
- <a href="javascript:compare();" id="compare" class="easyui-linkbutton" data-options="iconCls:'icon-review',plain:true">对比</a>
- </td>
- </tr>
- </table>
- <div class="clear"></div>
- </div>
-
- <table id="compareSecurityPersonApplyDataGrid">
- <thead frozen="true">
- <tr>
- <th data-options="field:'id',checkbox:true,width:30">ID</th>
- </tr>
- </thead>
- <thead>
- <tr>
- <th data-options="field:'name',width:60">姓名</th>
- <th data-options="field:'idCard',width:150">身份证号</th>
- <th data-options="field:'personType',width:80,formatter:personTypeFormatter">人员类别</th>
- <th data-options="field:'applyType',width:150,formatter:applyTypeFormatter">保障类别</th>
- <th data-options="field:'applyDepartmentName',width:200">户口所在地</th>
- <th data-options="field:'addType',width:100,formatter:addTypeFormatter">新增类型</th>
- <th data-options="field:'pickUpDate',width:100,formatter:dateFormatter">收件时间</th>
- <th data-options="field:'mzPushDate',width:100,formatter:dateFormatter">推送民政时间</th>
- <th data-options="field:'pickUpUser',width:100,formatter:pickUpUserNameFormatter">经办人</th>
- <th data-options="field:'state',width:100,formatter:stateFormatter">当前状态</th>
- <th data-options="field:'details',align:'center',width:60,formatter:detailsFormatter">查看详细</th>
- <th data-options="field:'evidence',align:'center',width:60,formatter:evidenceFormatter">佐证</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div id="detailsecurityPersonApplyDialog" data-options="title:' 资料详细信息',iconCls:'icon-details',width:800,height:400,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toSearchDetail'">
- </div>
- <div id="taskDialog"></div>
- <div id="compareInfoDialog" data-options="title:' 对比',iconCls:'icon-cog',width:1200,height:500,modal:true,href:'<%=basePath %>/securityPersonApplyAction_toReviewGuarantee'">
- </div>
- <div id="setFailReasonDialog" data-options="title:' 不通过原因',iconCls:'icon-cog',width:300,height:200,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toFailReason'">
- </div>
- <div id="evidenceDialog" data-options="title:' 佐证信息',iconCls:'icon-edit',width:500,height:320,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toEvidence'">
- </div>
- <div id="evidenceAddDialog" data-options="title:' 佐证信息',iconCls:'icon-edit',width:500,height:300,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toEvidenceAdd'">
- </div>
- <script type="text/javascript">
- <!--
- parent.$.messager.progress('close');
- //-->
- </script>
|