32c19f775b6f016a1dded2dee63139937cb5e09c.svn-base
19.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<style type="text/css">
.inter{
}
.inter .w{
background-color: red;
}
</style>
<title>关系人信息管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
$(document).ready(function() {
//$("#name").focus();
$("#inputForm").validate({
submitHandler : function(form) {
loading('正在提交,请稍等...');
form.submit();
//winConfirm();
},
errorContainer : "#messageBox",
errorPlacement : function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
if("${msg}"){
alert("${msg}");
window.close();
}
//readonly有个问题就是下拉框控制不了;disabled可以满足当前页面要求
views();
var qlrid = "${ycslGxr.id}";//通过当前关系人ID是否为空来判断是新增还是修改,新增时才可以这样赋值
if (qlrid == undefined || qlrid == null || qlrid == "") {
$("#qlrmctext").val("${maps['QLR']}");
$("#dztext").val("${maps['ZL']}");
}
//暂时放开共有方式修改
//if('${gyfs}' != "" && '${gyfs}' != null && '${gyfs}' != undefined){
// $("#gyfstext").attr("readOnly","true");
//}
$("#zjzltext").attr("readOnly","true");
$("#xbtext").attr("readOnly","true");
});
function winConfirm() {
var qlrid = "${ycslGxr.id}";
if (confirm("保存成功!确认关闭并且对父页面进行局部刷新吗?")) {
if (window.opener) {
if (qlrid == undefined || qlrid == null || qlrid == "") {
window.opener.document.qlrframe.location.reload();
} else {
window.opener.parent.document.qlrframe.location.reload();
}
window.close();
}
}
}
function winBack() {
var qlrid = "${ycslGxr.id}";
if (window.opener) {
if (qlrid == undefined || qlrid == null || qlrid == "") {
window.opener.document.getElementById('reLoadQlr').onclick();
} else {
window.opener.parent.document.getElementById('reLoadQlr').onclick();
}
window.close();
}
}
//readonly有个问题就是下拉框控制不了;disabled可以满足当前页面要求
function views() {
var viewid = "${VIEWS}";
if (viewid == undefined || viewid == null || viewid == "") {
return;
}
$("input:not(:button,:submit,:hidden),select,textarea").attr(
"disabled", "disabled");
}
//共有方式只要是共有的,能在[共有情况]中显示必填
function gyqkRequired() {
var sel = $("#gyfs").val();
$("#gyqktextspan").remove();
//共有时,共有情况必填
if (sel == "2") {
$("#gyqk").addClass("required");
$("#gyqk").after("<span id='gyqktextspan' class='help-inline'><font color='red'>*</font></span>");
}else if(sel == "0"){
$("#qlbl").val("100");
} else {
$("#gyqk").removeClass("required");
$("#gyqk").remove();
$("#qlbl").val("");
}
}
//打开人员基础信息维护
function personOpen(){
var iWidth=1100;
var iHeight=600;
var iTop = (window.screen.height - 30 - iHeight) / 2;
var iLeft = (window.screen.width - 10 - iWidth) / 2;
window.open("/ODM/a/reg/base/regBasePerson/list?WO=1","人员信息",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
function interHisOpen(){
var iWidth=1300;
var iHeight=600;
var iTop = (window.screen.height - 30 - iHeight) / 2;
var iLeft = (window.screen.width - 10 - iWidth) / 2;
window.open("/ODM/a/InterSi/list?pcode=${pcode}","核验记录信息",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
function readValue(){
var sczt = $("#veritysczt_text").val();
if(sczt == '1'){
verityData();
}
}
function verityData() {
var si_code = "";
var params = new Object();
var interHis = new Object();
var rylx = $("#rylx").val();
var zjzl = $("#gxrsfzjzl").val();
var zjh = $("#gxrzjh").val();
var gxrlxdh = $("#gxrlxdh").val();
var rymc = $("#gxrmc").val();
var sczt = $("#veritysczt_text").val();
var pcode = $("#pcode").val();
if(rylx ==''){
alert("请选择人员类型!!!");
return;
}
if(rymc ==''){
alert("请输入人员名称!");
return;
}
if(zjh ==''){
alert("请输入证件号!!!");
return;
}
if(gxrlxdh ==''){
alert("请输入联系电话!!!");
return;
}
if(rylx=='1'){
var interHis = new Object();
interHis.chyw="关系人信息";
interHis.personid = "";
interHis.pcode = pcode;
var veritydata_label = "公安公民身份核验";
interHis.rymc = rymc;
interHis.zjhm = zjh;
interHis.jkmc = veritydata_label;
interHis.rylx = "个人";
var id = $("#id").val();
si_code = 'out/rkjzxxcx';
params.sfzh = zjh;
params.name = rymc;
$.ajax({
type : "POST",
url : "${ctx}/InterSi/" + si_code,
cache : false,
data : {"data":JSON.stringify(params),
"interdata":JSON.stringify(interHis)
},
async : false,
success : function(modelmap) {
if (modelmap.success == 0) {
var res_data = modelmap.data;
if(sczt == '1' && res_data.SWBS =='1'){
$("#veritysczt_text").attr("disabled","disabled");
$("#t_veritysczt").val("1");//死亡验证通过
$("#sczt_jk").html('<span>公安人口库生存状态:</span> <label style="color:red;">死亡</label> ');
}else{
$("#sczt_jk").html('<span>公安人口库生存状态:</span> <label style="color:#32CD32;">正常</label> ');
}
verityswzm(params,interHis);
} else {
alert(modelmap.error_msg);
return;
}
}
});
}else{
return;
}
}
function verityswzm(params,interHis){
var zjh = $("#gxrzjh").val();
var rymc = $("#gxrmc").val();
var pcode = $("#pcode").val();
params.sfzhm = zjh;
params.xm = rymc;
var interHis = new Object();
interHis.chyw="关系人信息";
interHis.personid = "";
interHis.pcode = pcode;
var veritydata_label = "死亡医学证明查询";
interHis.rymc = rymc;
interHis.zjhm = zjh;
interHis.jkmc = veritydata_label;
interHis.rylx = "个人";
var si_code = "out/swyxzmcx";
$.ajax({
type : "POST",
url : "${ctx}/InterSi/" + si_code,
cache : false,
data : {"data":JSON.stringify(params),
"interdata":JSON.stringify(interHis)
},
async : false,
success : function(modelmap) {
if (modelmap.success == 0) {
console.log(modelmap.data);
var res_data = modelmap.data;
var html = $("#sczt_jk").html();
if(res_data.SWRQ.length == 0){
$("#sczt_jk").html(html+'<span style="padding: 0 0 0 50px;">卫健委死亡证明生存状态: </span> <label style="color:#32CD32;">正常</label> ');
}else{
$("#sczt_jk").html(html+'<span style="padding: 0 0 0 50px;">卫健委死亡证明生存状态: </span> <label style="color:red;">死亡</label> ');
$("#veritysczt_text").attr("disabled","disabled");
$("#t_veritysczt").val("1");//死亡验证通过
}
veritybzfw(params,interHis);
}
}
})
}
function veritybzfw(params,interHis){
params = new Object();
var zjh = $("#gxrzjh").val();
var rymc = $("#gxrmc").val();
var pcode = $("#pcode").val();
params.sfzh = zjh;
params.xm = rymc;
var interHis = new Object();
interHis.chyw="关系人信息";
interHis.personid = "";
interHis.pcode = pcode;
var veritydata_label = "殡葬服务火化信息查询";
interHis.rymc = rymc;
interHis.zjhm = zjh;
interHis.jkmc = veritydata_label;
interHis.rylx = "个人";
var si_code = "out/bzfwhhxxcx";
$.ajax({
type : "POST",
url : "${ctx}/InterSi/" + si_code,
cache : false,
data : {"data":JSON.stringify(params),
"interdata":JSON.stringify(interHis)
},
async : false,
success : function(modelmap) {
if (modelmap.success == 0) {
var res_data = modelmap.data;
var html = $("#sczt_jk").html();
if(res_data.data.length == 0){
$("#sczt_jk").html(html+'<span style="padding: 0 0 0 50px;">民政殡葬服务生存状态:</span> <label style="color:#32CD32;">正常</label> ');
}else{
$("#sczt_jk").html(html+'<span style="padding: 0 0 0 50px;">民政殡葬服务生存状态:</span> <label style="color:red;">死亡</label> ');
}
}
}
})
}
function getUrl(obj){
var url = "${ctx}/ycsl/ycslGxr/form?proid=${proid}&ids="+obj.trim()+"&SXH=${SXH}&gxrid=${gxrid}";
window.location = url;
}
function save(){
var trueOrfalse;
trueOrfalse=false;
if($("#gxrmc").val() == ""){
$("<label for='name' class='error'>必填信息</label>").insertAfter("#gxrmc");
trueOrfalse=true;
}
if($("#gxrsfzjzl").val() == ""){
$("<label for='name' class='error'>必填信息</label>").insertAfter("#gxrsfzjzl");
trueOrfalse=true;
}
if($("#gxrzjh").val() == ""){
$("<label for='name' class='error'>必填信息</label>").insertAfter("#gxrzjh");
trueOrfalse=true;
}
if($("#gyfs").val() == ""){
$("<label for='name' class='error'>必填信息</label>").insertAfter("#gyfs");
trueOrfalse=true;
}
/**
if($("#gxrlxdh").val() == ""){
$("<label for='name' class='error'>必填信息</label>").insertAfter("#gxrlxdh");
trueOrfalse=true;
}
if($("#gxrlxdh").val().length != 11 ){
$("<label for='name' class='error'>格式错误</label>").insertAfter("#gxrlxdh");
trueOrfalse=true;
}
**/
if(trueOrfalse){return;}
$.ajax({
type:"POST",
url:"${ctx}/ycsl/ycslGxr/save", //请求路径
cache: false,
data:"id="+$("#id").val()+"&proid="+$("#proid").val()+"&pcode="+$("#pcode").val()+"&rylx="+$("#rylx").val()+"&gj="+$("#gj").val()+"&gxrmc="+$("#gxrmc").val()+"&sxh="+$("#sxh").val()+"&gxrsfzjzl="+$("#gxrsfzjzl").val()+"&gxrzjh="+$("#gxrzjh").val()+"&gxrlxdh="+$("#gxrlxdh").val()+"&gxrtxdz="+$("#gxrtxdz").val()+"&gxrlx="+$("#gxrlx").val()+"&qlbl="+$("#qlbl").val()+"&gyfs="+$("#gyfs").val()+"&gxrdlr="+$("#gxrdlr").val()+"&gzrdlrdh="+$("#gzrdlrdh").val()+"&gxrdlrzjzl="+$("#gxrdlrzjzl").val()+"&gxrfddbr="+$("#gxrfddbr").val()+"&gxrfddbrzjzl="+$("#gxrfddbrzjzl").val()+"&gxrfddbrzjh="+$("#gxrfddbrzjh").val()+"&gxrid=${gxrid}",
async : false,
success:function(modelmap){
if(window.opener.parent.document.getElementById("qlrframe")){
window.opener.parent.document.getElementById("qlrframe").src="${ctx}/ycsl/ycslGxr/list?proid=${ycslGxr.proid}&gxrlx=qlr";
}else{
window.opener.document.getElementById("qlrframe").src="${ctx}/ycsl/ycslGxr/list?proid=${ycslGxr.proid}&gxrlx=qlr";
}
}
});
window.close();
}
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li class="active"><a href="#">关系人信息${not empty ycslGxr.id?'修改':'添加'}查看</a></li>
</ul>
<br />
<form:form id="inputForm" name="inputForm" modelAttribute="ycslGxr" action="${ctx}/ycsl/ycslGxr/save?gxrid=${gxrid}" method="post" class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="proid"/>
<form:hidden path="pcode"/>
<form:hidden path="gj"/>
<form:hidden path="rylx"/>
<sys:message content="${message}" />
<fieldset>
<legend>关系人信息</legend>
<div class="form-actions inter" style="margin-top:3px;">
<c:if test="${not empty ycslGxr.rylx }">
<div style="float: left;width: 90%;">
<c:if test="${ycslGxr.rylx eq '1'}">
<c:choose>
<c:when test="${empty gonganshenfen }">
<span class="btn btn-danger"> 公安公民身份核验(未验证)</span>
</c:when>
<c:otherwise>
<span class="btn btn-inverse">公安公民身份核验(${gonganshenfen})</span>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${empty renxiangbidui }">
<span class="btn btn-danger"> 人像比对(未验证)</span>
</c:when>
<c:otherwise>
<span class="btn btn-inverse">人像比对(${renxiangbidui})</span>
</c:otherwise>
</c:choose>
<c:if test="${ swbs eq '1'}">
<c:choose>
<c:when test="${empty shencunzhuangtai }">
<span class="btn btn-danger">生存状态(未验证)</span>
</c:when>
<c:otherwise>
<span class="btn btn-inverse">生存状态(${shencunzhuangtai})</span>
</c:otherwise>
</c:choose>
</c:if>
<c:choose>
<c:when test="${empty minzhenhunyin }">
<span class="btn btn-danger"> 婚姻状态(未验证)</span>
</c:when>
<c:otherwise>
<span class="btn btn-inverse">婚姻状态(${minzhenhunyin})</span>
</c:otherwise>
</c:choose>
</c:if>
<c:if test="${ycslGxr.rylx eq '2010' or ycslGxr.rylx eq '2020' or ycslGxr.rylx eq '2030' or ycslGxr.rylx eq '2040'}">
<c:choose>
<c:when test="${empty minzhenzuzhi }">
<span class="btn btn-danger"> 民政社会组织核验(未验证)</span>
</c:when>
<c:otherwise>
<span class="btn btn-inverse">民政社会组织核验(${minzhenzuzhi})</span>
</c:otherwise>
</c:choose>
</c:if>
<c:if test="${ycslGxr.rylx eq '2050' or ycslGxr.rylx eq '2060'}">
<c:choose>
<c:when test="${empty yinbaojianjigou }">
<span class="btn btn-danger"> 银保监机构核验(未验证)</span>
</c:when>
<c:otherwise>
<span class="btn btn-inverse">银保监机构核验(${yinbaojianjigou})</span>
</c:otherwise>
</c:choose>
</c:if>
<c:if test="${ycslGxr.rylx eq '2'}">
<c:choose>
<c:when test="${empty shichangjianguanqy }">
<span class="btn btn-danger"> 市场监管企业核验(未验证)</span>
</c:when>
<c:otherwise>
<span class="btn btn-inverse">市场监管企业核验(${shichangjianguanqy})</span>
</c:otherwise>
</c:choose>
</c:if>
<c:if test="${ycslGxr.rylx eq '3' or ycslGxr.rylx eq '4'}">
<c:choose>
<c:when test="${empty zhongbianbumen }">
<span class="btn btn-danger"> 中编办部门核验 (未验证)</span>
</c:when>
<c:otherwise>
<span class="btn btn-inverse">中编办部门核验 (${zhongbianbumen})</span>
</c:otherwise>
</c:choose>
</c:if>
</div>
<div style="float: right;width: 10%;text-align: right;">
<input class="btn btn-primary " title="点击查看关系人信息核验记录" type="button" value=" 核验记录 " onclick="interHisOpen();" />
</div>
</c:if>
</div>
<table class="table-form">
<tr>
<td class="tit">关系人名称</td>
<td>
<form:input path="gxrmc" id="gxrmc" readonly="true"
htmlEscape="false" rows="3" maxlength="200"
class="input-medium" />
<span class="help-inline"><font
color="red">*</font> </span>
<input id="button" class="btn btn-primary" type="button" onclick="personOpen();" value="..."/>
</td>
<td class="tit">顺序号</td>
<td><form:input path="sxh" id="sxh" htmlEscape="false" value="${SXH}" readonly="true"
maxlength="6" class="input-medium" /></td>
<td class="tit">证件种类</td>
<td><form:select path="gxrsfzjzl" id="gxrsfzjzl" class="input-medium required">
<form:option value="" label="" />
<form:options items="${fns:getDictList('reg_bus_zjlx')}"
itemLabel="label" itemValue="value" htmlEscape="false" />
</form:select> <span class="help-inline"><font color="red">*</font> </span></td>
</tr>
<tr>
<td class="tit">证件号</td>
<td><form:input path="gxrzjh" id="gxrzjh" htmlEscape="false" maxlength="50" readonly="true"
class="input-medium required" /> <span class="help-inline"><font
color="red">*</font> </span></td>
<td class="tit">电话</td>
<td><form:input path="gxrlxdh" id='gxrlxdh' value="${maps['QLRDH']}"
htmlEscape="false" maxlength="50" class="input-medium" />
<span class="help-inline"> </span></td>
<td class="tit">地址</td>
<td><form:textarea path="gxrtxdz" id="gxrtxdz" htmlEscape="false" readonly="true"
rows="2" maxlength="200" class="input-large " /></td>
</tr>
<tr>
<td class="tit">关系人类型</td>
<td><form:select path="gxrlx" id="gxrlx" class="input-medium required">
<form:option value="qlr" label="权利人" />
</form:select>
<span class="help-inline"><font color="red">*</font> </span>
</td>
<td class="tit">权利比例(%)</td>
<td><form:input path="qlbl" id="qlbl" htmlEscape="false" maxlength="100"
class="input-medium " /></td>
<td class="tit">共有方式</td>
<td><form:select path="gyfs" id="gyfs"
class="input-medium required" onChange="gyqkRequired()">
<form:option value="" label="" />
<form:options items="${fns:getDictList('reg_bus_gyfs')}"
itemLabel="label" itemValue="value" htmlEscape="false" />
</form:select> <span class="help-inline"><font color="red">*</font> </span></td>
</tr>
<tr>
<td class="tit">代理人姓名</td>
<td ><form:input path="gxrdlr" id="gxrdlr" htmlEscape="false" rows="3" value="${dlrmc}"
maxlength="200" class="input-medium" /></td>
<td class="tit">代理人电话</td>
<td><form:input path="gzrdlrdh" id="gzrdlrdh" htmlEscape="false" maxlength="50" class="input-medium"/></td>
<td class="tit">代理人证件种类</td>
<td><form:select path="gxrdlrzjzl" id="gxrdlrzjzl" class="input-medium ">
<form:option value="" label="" />
<form:options items="${fns:getDictList('reg_bus_zjlx')}"
itemLabel="label" itemValue="value" htmlEscape="false" />
</form:select></td>
</tr>
<tr>
<td class="tit">法定代表人</td>
<td ><form:input path="gxrfddbr" id="gxrfddbr" htmlEscape="false" rows="3"
maxlength="200" class="input-medium" /></td>
<td class="tit">法定代表人证件号</td>
<td><form:input path="gxrfddbrzjh" id="gxrfddbrzjh" htmlEscape="false" maxlength="50" class="input-medium" /></td>
<td class="tit">法定代表人证件种类</td>
<td><form:select path="gxrfddbrzjzl" id="gxrfddbrzjzl" class="input-medium">
<form:option value="" label="" />
<form:options items="${fns:getDictList('reg_bus_zjlx')}"
itemLabel="label" itemValue="value" htmlEscape="false" />
</form:select></td>
</tr>
</table>
</fieldset>
<div class="form-actions">
<!-- 当查看标识为空时,为修改操作,才显示保存按钮 -->
<c:if test="${empty views}">
<input id="btnSubmit" class="btn btn-primary" type="button" value="保 存" onclick="save()"/>
</c:if>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="javascript:window.close();" />
</div>
</form:form>
</body>
</html>