123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943 |
- <%@ 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 areaObj = null;
-
- var area_array = null;
- //学历
- var educationObj = null;
-
- var education_array = null;
- //家庭关系
- var relativeObj = null;
- var relative_array = null;
- //是否
- var yesOrNoObj = null;
- var yesOrNo_array = null;
- //性别
- var sexObj = null;
- var sex_array = null;
- //申请保障类型
- var applyTypeObj = null;
- var applyType_array = null;
-
- var personTypeObj = null;
- var personType_array = null;
- //审核状态
- var stateObj = null;
- var state_array = null;
- /**用户显示区*/
- $(function() {
- $('#securityPersonInfoDataGrid').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 + '/securityPersonApply2Action_annualReviewList',
- toolbar:'#searchtool',
- checkOnSelect:true,
- selectOnCheck:true,
- nowrap:true,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- $.messager.alert("提示",result.message);
- return ;
- }
- }
- });
- });
- $.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("");
- $("#maritalStatus_add").append(select_arr)
- }
- }
- });
-
- //获取区
- $.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":"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("");
- }
- }
- });
- //学历
- $.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":"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":"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":"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":"personType" ,"aa10.name":"保障人员类别" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- personTypeObj = msg.obj.rows;
- }
- }
- });
- /**获取街道列表*/
- 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 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 getCommunityList(id,communityId,objId){
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "houseRegisterAction_listChildren",//要访问的后台地址
- data:{"id":id},
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- communityObj = msg.obj.rows;
- var select_arr = [];
- var data = communityObj;
- 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>");
- }
- }
- community_array = select_arr.join("");
- $("#" + objId).append(community_array);
- $("#" + objId).val(communityId);
- }
- }
- });
- }
-
- /**查询*/
- function searchFun(){
- $("#securityPersonInfoDataGrid").datagrid("load", {
- "securityPerson.name":$("#tblQuery").find("input[id='name']").val(),
- "securityPerson.idCard":$("#tblQuery").find("input[id='idCard']").val()
- });
- }
-
- /*清除查询条件**/
- function ClearQuery() {
- $("#tblQuery").find("input").val("");
- $("#tblQuery").find("select").val("-1");
- }
-
- var annualReviewFormatter = function(value , row , index){
- /*if(row.applyType=="2"){
- var day = countDay(row.houseEndTime);
- if(day>0){
- return ""
- }else{
- if(row.nsRegisterState != "4"){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/update.png' title='年审' onclick=annualReview('" + row.securityPersonId +"','" + row.name + "','" +row.idCard + "','" +row.applyType+"') style='cursor:pointer'/>";
- }else{
- return "已提交申请";
- }
- }
- }else{
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/update.png' title='年审' onclick=annualReview('" + row.securityPersonId +"','" + row.name + "','" +row.idCard + "','" +row.applyType + "','" + row.personType +"') style='cursor:pointer'/>";
- }*/
- if(row.nsRegisterState == "0"){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/update.png' title='年审' onclick=annualReview('" + row.securityPersonId +"','" + row.name + "','" +row.idCard + "','" +row.applyType + "','" + row.personType +"') style='cursor:pointer'/>";
-
- }else if(row.nsRegisterState == "4"){
- return "已提交申请";
- }else if(row.nsRegisterState == "5"){
- return "已关闭";
- }
- }
-
- function annualReview(id,name,idCard,applyType,personType){
- if(applyType =="1"){
- if(personType=="4"){//新就业
- $('#bt2AnnualReviewDialog').dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- btAnnualReview_submit();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#bt2AnnualReviewDialog").dialog("close");
- }
- }],
- onLoad:function(){
- btAnnualReview_load(id,name,idCard);
- $("#maritalStatus_btAnnualReview").append(maritalStatus_array);
- $("#maritalStatus1").append(maritalStatus_array);
- }
- })
- }else if(personType=="5"){//外来务工
- $('#bt3AnnualReviewDialog').dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- btAnnualReview_submit();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#bt3AnnualReviewDialog").dialog("close");
- }
- }],
- onLoad:function(){
- btAnnualReview_load(id,name,idCard);
- $("#maritalStatus_btAnnualReview").append(maritalStatus_array);
- $("#maritalStatus1").append(maritalStatus_array);
- $("#area_btAnnualReview").append(area_array);
- $("#area_btAnnualReview").change(function(){
- $("#street_btAnnualReview").children('option').remove();
- getStreetList($("#area_btAnnualReview").val(),0,"street_btAnnualReview");
- $("#neighborhood_btAnnualReview").children('option').remove();
- $("#neighborhood_btAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#street_btAnnualReview").change(function(){
- $("#neighborhood_btAnnualReview").children('option').remove();
- getNeighborhoodList($("#street_btAnnualReview").val(),0,"neighborhood_btAnnualReview");
- $("#communityId_btAnnualReview").children('option').remove();
- $("#communityId_btAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#neighborhood_btAnnualReview").change(function(){
- $("#communityId_btAnnualReview").children('option').remove();
- getCommunityList($("#neighborhood_btAnnualReview").val(),0,"communityId_btAnnualReview");
- $("#community_btAnnualReview").val("");
- });
-
- $("#communityId_btAnnualReview").change(function(){
- var community = $("#communityId_btAnnualReview").find("option:selected").text();
- $("#community_btAnnualReview").val(community);
- });
- }
- })
- }else {
- $('#btAnnualReviewDialog').dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- btAnnualReview_submit();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#btAnnualReviewDialog").dialog("close");
- }
- }],
- onLoad:function(){
- btAnnualReview_load(id,name,idCard);
- $("#maritalStatus_btAnnualReview").append(maritalStatus_array);
- $("#maritalStatus1").append(maritalStatus_array);
- $("#area_btAnnualReview").append(area_array);
- $("#area_btAnnualReview").change(function(){
- $("#street_btAnnualReview").children('option').remove();
- getStreetList($("#area_btAnnualReview").val(),0,"street_btAnnualReview");
- $("#neighborhood_btAnnualReview").children('option').remove();
- $("#neighborhood_btAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#street_btAnnualReview").change(function(){
- $("#neighborhood_btAnnualReview").children('option').remove();
- getNeighborhoodList($("#street_btAnnualReview").val(),0,"neighborhood_btAnnualReview");
- $("#communityId_btAnnualReview").children('option').remove();
- $("#communityId_btAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#neighborhood_btAnnualReview").change(function(){
- $("#communityId_btAnnualReview").children('option').remove();
- getCommunityList($("#neighborhood_btAnnualReview").val(),0,"communityId_btAnnualReview");
- $("#community_btAnnualReview").val("");
- });
-
- $("#communityId_btAnnualReview").change(function(){
- var community = $("#communityId_btAnnualReview").find("option:selected").text();
- $("#community_btAnnualReview").val(community);
- });
- $("#area2_btAnnualReview").append(area_array);
- $("#area2_btAnnualReview").change(function(){
- $("#street2_btAnnualReview").children('option').remove();
- getStreetList($("#area2_btAnnualReview").val(),0,"street2_btAnnualReview");
- $("#neighborhood2_btAnnualReview").children('option').remove();
- $("#neighborhood2_btAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#street2_btAnnualReview").change(function(){
- $("#neighborhood2_btAnnualReview").children('option').remove();
- getNeighborhoodList($("#street2_btAnnualReview").val(),0,"neighborhood2_btAnnualReview");
- $("#communityId2_btAnnualReview").children('option').remove();
- $("#communityId2_btAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#neighborhood2_btAnnualReview").change(function(){
- $("#communityId2_btAnnualReview").children('option').remove();
- getCommunityList($("#neighborhood2_btAnnualReview").val(),0,"communityId2_btAnnualReview");
- $("#community2_btAnnualReview").val(community);
- });
-
- $("#communityId2_btAnnualReview").change(function(){
- var community2 = $("#communityId2_btAnnualReview").find("option:selected").text();
- $("#community2_btAnnualReview").val(community2);
- });
- }
- })
- }
- }else if(applyType =="2"){
- if(personType=="4"){//新就业
- $('#swpz2AnnualReviewDialog').dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- swpzAnnualReview_submit();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#swpz2AnnualReviewDialog").dialog("close");
- }
- }],
- onLoad:function(){
- swpzAnnualReview_load(id,name,idCard);
- $("#maritalStatus_swpzAnnualReview").append(maritalStatus_array);
- $("#maritalStatus1").append(maritalStatus_array);
- }
- })
- }else if(personType=="5"){//外来务工
- $('#swpz3AnnualReviewDialog').dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- swpzAnnualReview_submit();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#swpz3AnnualReviewDialog").dialog("close");
- }
- }],
- onLoad:function(){
- swpzAnnualReview_load(id,name,idCard);
- $("#maritalStatus_swpzAnnualReview").append(maritalStatus_array);
- $("#maritalStatus1").append(maritalStatus_array);
- $("#area_swpzAnnualReview").append(area_array);
- $("#area_swpzAnnualReview").change(function(){
- $("#street_swpzAnnualReview").children('option').remove();
- getStreetList($("#area_swpzAnnualReview").val(),0,"street_swpzAnnualReview");
- $("#neighborhood_swpzAnnualReview").children('option').remove();
- $("#neighborhood_swpzAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#street_swpzAnnualReview").change(function(){
- $("#neighborhood_swpzAnnualReview").children('option').remove();
- getNeighborhoodList($("#street_swpzAnnualReview").val(),0,"neighborhood_swpzAnnualReview");
- $("#communityId_swpzAnnualReview").children('option').remove();
- $("#communityId_swpzAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#neighborhood_swpzAnnualReview").change(function(){
- $("#communityId_swpzAnnualReview").children('option').remove();
- getCommunityList($("#neighborhood_swpzAnnualReview").val(),0,"communityId_swpzAnnualReview");
- $("#community_swpzAnnualReview").val("");
- });
-
- $("#communityId_swpzAnnualReview").change(function(){
- var community = $("#communityId_swpzAnnualReview").find("option:selected").text();
- $("#community_swpzAnnualReview").val(community);
- });
- }
- })
- }else {//中等偏下
- $('#swpzAnnualReviewDialog').dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- swpzAnnualReview_submit();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#swpzAnnualReviewDialog").dialog("close");
- }
- }],
- onLoad:function(){
- swpzAnnualReview_load(id,name,idCard);
- $("#maritalStatus_swpzAnnualReview").append(maritalStatus_array);
- $("#maritalStatus1").append(maritalStatus_array);
- $("#area_swpzAnnualReview").append(area_array);
- $("#area_swpzAnnualReview").change(function(){
- $("#street_swpzAnnualReview").children('option').remove();
- getStreetList($("#area_swpzAnnualReview").val(),0,"street_swpzAnnualReview");
- $("#neighborhood_swpzAnnualReview").children('option').remove();
- $("#neighborhood_swpzAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#street_swpzAnnualReview").change(function(){
- $("#neighborhood_swpzAnnualReview").children('option').remove();
- getNeighborhoodList($("#street_swpzAnnualReview").val(),0,"neighborhood_swpzAnnualReview");
- $("#communityId_swpzAnnualReview").children('option').remove();
- $("#communityId_swpzAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#neighborhood_swpzAnnualReview").change(function(){
- $("#communityId_swpzAnnualReview").children('option').remove();
- getCommunityList($("#neighborhood_swpzAnnualReview").val(),0,"communityId_swpzAnnualReview");
- $("#community_swpzAnnualReview").val("");
- });
-
- $("#communityId_swpzAnnualReview").change(function(){
- var community = $("#communityId_swpzAnnualReview").find("option:selected").text();
- $("#community_swpzAnnualReview").val(community);
- });
-
- $("#area2_swpzAnnualReview").append(area_array);
- $("#area2_swpzAnnualReview").change(function(){
- $("#street2_swpzAnnualReview").children('option').remove();
- getStreetList($("#area2_swpzAnnualReview").val(),0,"street2_swpzAnnualReview");
- $("#neighborhood2_swpzAnnualReview").children('option').remove();
- $("#neighborhood2_swpzAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#street2_swpzAnnualReview").change(function(){
- $("#neighborhood2_swpzAnnualReview").children('option').remove();
- getNeighborhoodList($("#street2_swpzAnnualReview").val(),0,"neighborhood2_swpzAnnualReview");
- $("#communityId2_swpzAnnualReview").children('option').remove();
- $("#communityId2_swpzAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#neighborhood2_swpzAnnualReview").change(function(){
- $("#communityId2_swpzAnnualReview").children('option').remove();
- getCommunityList($("#neighborhood2_swpzAnnualReview").val(),0,"communityId2_swpzAnnualReview");
- $("#community2_swpzAnnualReview").val(community);
- });
-
- $("#communityId2_swpzAnnualReview").change(function(){
- var community2 = $("#communityId2_swpzAnnualReview").find("option:selected").text();
- $("#community2_swpzAnnualReview").val(community2);
- });
- }
- })
- }
- }
- /*if(applyType =="1"){
- $('#btAnnualReviewDialog').dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- btAnnualReview_submit();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#btAnnualReviewDialog").dialog("close");
- }
- }],
- onLoad:function(){
- btAnnualReview_load(id,name,idCard);
- $("#maritalStatus_btAnnualReview").append(maritalStatus_array);
- $("#maritalStatus1").append(maritalStatus_array);
- $("#area_btAnnualReview").append(area_array);
- $("#area_btAnnualReview").change(function(){
- $("#street_btAnnualReview").children('option').remove();
- getStreetList($("#area_btAnnualReview").val(),0,"street_btAnnualReview");
- $("#neighborhood_btAnnualReview").children('option').remove();
- $("#neighborhood_btAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#street_btAnnualReview").change(function(){
- $("#neighborhood_btAnnualReview").children('option').remove();
- getNeighborhoodList($("#street_btAnnualReview").val(),0,"neighborhood_btAnnualReview");
- $("#communityId_btAnnualReview").children('option').remove();
- $("#communityId_btAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#neighborhood_btAnnualReview").change(function(){
- $("#communityId_btAnnualReview").children('option').remove();
- getCommunityList($("#neighborhood_btAnnualReview").val(),0,"communityId_btAnnualReview");
- $("#community_btAnnualReview").val("");
- });
-
- $("#communityId_btAnnualReview").change(function(){
- var community = $("#communityId_btAnnualReview").find("option:selected").text();
- $("#community_btAnnualReview").val(community);
- });
- }
- })
- }else if(applyType =="2"){
- $('#swpzAnnualReviewDialog').dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- swpzAnnualReview_submit();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#swpzAnnualReviewDialog").dialog("close");
- }
- }],
- onLoad:function(){
- swpzAnnualReview_load(id,name,idCard);
- $("#maritalStatus_swpzAnnualReview").append(maritalStatus_array);
- $("#maritalStatus1").append(maritalStatus_array);
- $("#area_swpzAnnualReview").append(area_array);
- $("#area_swpzAnnualReview").change(function(){
- $("#street_swpzAnnualReview").children('option').remove();
- getStreetList($("#area_swpzAnnualReview").val(),0,"street_swpzAnnualReview");
- $("#neighborhood_swpzAnnualReview").children('option').remove();
- $("#neighborhood_swpzAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#street_swpzAnnualReview").change(function(){
- $("#neighborhood_swpzAnnualReview").children('option').remove();
- getNeighborhoodList($("#street_swpzAnnualReview").val(),0,"neighborhood_swpzAnnualReview");
- $("#communityId_swpzAnnualReview").children('option').remove();
- $("#communityId_swpzAnnualReview").append("<option value=''>请选择</option>");
- });
-
- $("#neighborhood_swpzAnnualReview").change(function(){
- $("#communityId_swpzAnnualReview").children('option').remove();
- getCommunityList($("#neighborhood_swpzAnnualReview").val(),0,"communityId_swpzAnnualReview");
- $("#community_swpzAnnualReview").val("");
- });
-
- $("#communityId_swpzAnnualReview").change(function(){
- var community = $("#communityId_swpzAnnualReview").find("option:selected").text();
- $("#community_swpzAnnualReview").val(community);
- });
- }
- })
- }*/
- }
- /**性别*/
- var sexFormatter = function(value , row , index){
- var sex = "";
- for(var nItem = 0; nItem < sexObj.length; nItem++ ){
- if(sexObj[nItem].code == row.sex){
- sex = sexObj[nItem].value;
- break;
- }
- }
- return sex;
- };
- 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 dateFormatter = function(value , row , index){
- return dealDate(value);
- }
-
- 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 countDay = function(time){
- var today = new Date();
- var endTime = new Date(time.replace(/\-/g, "/"));
- return parseInt(parseInt(today - endTime)/1000/60/60/24);
- }
-
- /**核实个人信息*/
- var updateSecurityPersonInfoFormatter = function(value , row , index){
- if(row.applyType=="2"){
- var day = countDay(row.houseEndTime);
- if(day>0){
- return ""
- }else{
- if(row.nsRegisterState != "1" && row.nsRegisterState != "2"&& row.nsRegisterState != "3"){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/update.png' title='年审' onclick=updateSecurityPersonInfo(" + row.securityPersonId + ") style='cursor:pointer'/>";
- }else{
- return "";
- }
- }
- }else{
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/update.png' title='年审' onclick=updateSecurityPersonInfo(" + row.securityPersonId + ") style='cursor:pointer'/>";
- }
- }
-
- function updateSecurityPersonInfo(id){
- $("#updateSecurityPersonInfoDialog").dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- task_submit();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#updateSecurityPersonInfoDialog").dialog("close")
- }
- }],
- onLoad : function(){
- task_load(id);
- }
- })
- }
-
- var nsRegisterFormatter = function(value , row , index){
- if(row.nsRegisterState == "1"){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/update.png' title='年审' onclick=nsRegister(" + row.securityPersonId + ") style='cursor:pointer'/>";
- }else if(row.nsRegisterState == "2"){
- return "已提交年审登记"
- }else if(row.nsRegisterState == "3"){
- return "已导出年审登记";
- }
- }
-
- function nsRegister(id){
- $.messager.confirm('确认','确认提交年审登记吗?',function(r){
- if (r){
- $.ajax({
- type: "POST",
- url:"securityPersonAction_nsRegister",
- data: "securityPerson.id="+id,// 你的formid
- error: function(data) {
- $.messager.alert("提示","提交失败");
- },
- success: function(result) {
- $("#securityPersonInfoDataGrid").datagrid("reload");
- $('#securityPersonInfoDataGrid').datagrid('clearSelections');
- $('#securityPersonInfoDataGrid').datagrid('clearChecked');
- }
- })
- }
- });
- }
-
- /**详细*/
- var detailsFormatter = function(value , row , index){
- return "<img src='<%=basePath%>/js/easyui/themes/itemicon/detail.png' title='查看详情' onclick=securityPersonDetails(" + row.securityPersonId +") style='cursor:pointer' />";
- };
-
- /**详细页面对话框*/
- var securityPersonDetails = function(id,fileNum){
- $("#detailsecurityPersonDialog").dialog(
- {
- buttons : [
- {
- text : '确定',
- iconCls : 'icon-ok',
- handler : function(){
- $("#detailsecurityPersonDialog").dialog("close");
- }
- }
- ],
- onLoad : function(){
- securityPersonApply_detail_load(id,"undefined");
- }
- }
- );
- };
-
-
- </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: 8%;"><span>姓名</span></td><td style="width: 10%;"><input id="name" name="securityPerson.name" type="text" style="width: 100px;"/></td>
- <td align="right" style="width: 6%;"><span>身份证号</span></td><td style="width: 10%;"><input id="idCard" name="securityPerson.idCard" type="text" style="width: 140px;"/></td>
- <td align="left" style="width: 30%;" >
- <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>
- </table>
- <div class="clear"></div>
- </div>
-
- <table id="securityPersonInfoDataGrid">
- <thead frozen="true">
- <tr>
- <th data-options="field:'id',checkbox:true,width:30">ID</th>
- <th data-options="field:'name',sortable:true,width:100 ">姓名</th>
- </tr>
- </thead>
- <thead>
- <tr>
- <th data-options="field:'idCard',width:140">身份证号</th>
- <th data-options="field:'phone',width:90">联系电话</th>
- <th data-options="field:'applyType',sortable:true,width:140,formatter:applyTypeFormatter">保障类型</th>
- <th data-options="field:'houseRegisterName',sortable:true,width:140">所属街道</th>
- <th data-options="field:'address',sortable:true,width:140">房屋坐落</th>
- <th data-options="field:'houseEndTime',sortable:true,width:140,formatter:dateFormatter">到期时间</th>
- <th data-options="field:'nsRemark',align:'center',width:120">年审备注</th>
- <th data-options="field:'annualReviewYear',align:'center',width:120">年度审核</th>
- <th data-options="field:'annualReview',align:'center',width:80,formatter:annualReviewFormatter">年审</th>
- <th data-options="field:'details',align:'center',width:60,formatter:detailsFormatter">申请记录</th>
- <!-- <th data-options="field:'updateSecurityPersonInfo',align:'center',width:80,formatter:updateSecurityPersonInfoFormatter">核实信息</th>
- <th data-options="field:'nsRegister',align:'center',width:90,formatter:nsRegisterFormatter">年审登记2</th> -->
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div id="addSecurityPersonApplyDialog" data-options="title:' 年审信息',iconCls:'icon-add',width:1100,height:500,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toAnnualReviewAdd'">
- </div>
- <div id="addAssetsInfoDialog" data-options="title:' 资产信息',iconCls:'icon-add',width:600,height:200,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toAssetsInfo'">
- </div>
- <div id="swpzAnnualReviewDialog" data-options="title:' 年审信息',iconCls:'icon-add',width:1200,height:500,modal:true,href:'<%=basePath %>/securityPersonApply2Action_swpzAnnualReview'">
- </div>
- <div id="swpz2AnnualReviewDialog" data-options="title:' 年审信息',iconCls:'icon-add',width:1200,height:500,modal:true,href:'<%=basePath %>/securityPersonApply2Action_swpz2AnnualReview'">
- </div>
- <div id="swpz3AnnualReviewDialog" data-options="title:' 年审信息',iconCls:'icon-add',width:1200,height:500,modal:true,href:'<%=basePath %>/securityPersonApply2Action_swpz3AnnualReview'">
- </div>
- <div id="btAnnualReviewDialog" data-options="title:' 年审信息',iconCls:'icon-add',width:1200,height:500,modal:true,href:'<%=basePath %>/securityPersonApply2Action_btAnnualReview'">
- </div>
- <div id="bt2AnnualReviewDialog" data-options="title:' 年审信息',iconCls:'icon-add',width:1200,height:500,modal:true,href:'<%=basePath %>/securityPersonApply2Action_bt2AnnualReview'">
- </div>
- <div id="bt3AnnualReviewDialog" data-options="title:' 年审信息',iconCls:'icon-add',width:1200,height:500,modal:true,href:'<%=basePath %>/securityPersonApply2Action_bt3AnnualReview'">
- </div>
- <div id="updateSecurityPersonInfoDialog" data-options="title:' 修改信息',iconCls:'icon-update',width:600,height:350,modal:true,href:'<%=basePath %>/securityPersonAction_toUpdateSecurityPersonInfo'">
- </div>
- <div id="detailsecurityPersonDialog" data-options="title:' 资料详细信息',iconCls:'icon-details',width:900,height:500,modal:true,href:'<%=basePath %>/securityPersonAction_toSecurityPersonApplyList'">
- </div>
- <div id="detailsecurityPersonApplyDialog" data-options="title:' 资料详细信息',iconCls:'icon-details',width:900,height:500,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toSearchDetail'">
- </div>
- <script type="text/javascript">
- <!--
- parent.$.messager.progress('close');
- //-->
- </script>
|