gyPrint3.jsp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. <%-- 农民共有产权住房申请表打印 --%>
  2. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  3. <jsp:include page="../../common/include.jsp" />
  4. <%
  5. String path = request.getContextPath();
  6. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  7. %>
  8. <%String securityPersonApplyId = request.getParameter("securityPersonApplyId");%>
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  10. <html>
  11. <head>
  12. <script type="text/javascript" src="<%=basePath%>/js/jquery.jqprint.js"></script>
  13. <style>
  14. * {
  15. padding: 0;
  16. margin: 0;
  17. }
  18. .setunderline {
  19. display: inline-block;
  20. border-bottom: 1px solid #000;
  21. min-width: 150px;
  22. }
  23. .table1 table td {
  24. text-align: center;
  25. }
  26. .table1 table:last-child tr td {
  27. border-bottom: 0 none;
  28. }
  29. tbody td {
  30. padding: 5px;
  31. font-size: 14px;
  32. }
  33. body {
  34. font-size: 15px !important;
  35. }
  36. .nopadding_td td,.nopadding td {
  37. height: 0 !important;
  38. padding: 0 !important;
  39. border: 0 none !important;
  40. }
  41. tbody td {
  42. border: 1px solid #000;
  43. height: 35px;
  44. }
  45. .noborder_top td {
  46. border-top: 0 none !important;
  47. }
  48. .noborder_right {
  49. border-right: 0 none !important;
  50. }
  51. .noborder_left {
  52. border-left: 0 none !important;
  53. }
  54. .noborder_bottom td {
  55. border-bottom: 0 none !important;
  56. }
  57. .textalign-left {
  58. text-align: left;
  59. }
  60. .choose {
  61. margin-right: 20px;
  62. }
  63. .choose em {
  64. margin-right: 5px;
  65. font-size: 20px;
  66. }
  67. em {
  68. font-style: normal;
  69. }
  70. .choose_active {
  71. background: url(<%=basePath%>images/gou.png) no-repeat left center;
  72. }
  73. td p {
  74. margin-top: 10px;
  75. }
  76. @media print {
  77. #printBtn1 {
  78. display: none
  79. }
  80. }
  81. </style>
  82. </head>
  83. <script>
  84. //婚姻状况
  85. var maritalStatusObj = null;
  86. var relativeObj = null;
  87. $(function() {
  88. //婚姻情况
  89. $.ajax({
  90. type: "post",//使用post方法访问后台
  91. dataType: "json",//返回json格式的数据
  92. async:false,
  93. url: "aa10Action_listAa10All",//要访问的后台地址
  94. data:{"aa10.letter":"maritalStatus" ,"aa10.name":"婚姻情况" },
  95. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  96. success: function(msg){//msg为返回的数据,在这里做数据绑定
  97. if(msg.success){
  98. maritalStatusObj = msg.obj.rows;
  99. }
  100. }
  101. });
  102. //家庭关系
  103. $.ajax({
  104. type: "post",//使用post方法访问后台
  105. dataType: "json",//返回json格式的数据
  106. async:false,
  107. url: "aa10Action_listAa10All",//要访问的后台地址
  108. data:{"aa10.letter":"homeRelative" ,"aa10.name":"家庭关系" },
  109. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  110. success: function(msg){//msg为返回的数据,在这里做数据绑定
  111. if(msg.success){
  112. relativeObj = msg.obj.rows;
  113. }
  114. }
  115. });
  116. $.ajax({
  117. type: "post",//使用post方法访问后台
  118. dataType: "json",//返回json格式的数据
  119. async:false,
  120. url: "securityPersonApply2Action_findById",//要访问的后台地址
  121. data:{"securityPersonApply.id":<%=securityPersonApplyId%>},
  122. success: function(msg){//msg为返回的数据,在这里做数据绑定
  123. if(msg.success){
  124. $("#name").html(msg.obj.securityPersonName);
  125. var securityPersonIdCard = msg.obj.securityPersonIdCard;
  126. var sex = parseInt(securityPersonIdCard.substr(16,1))%2;
  127. if(sex =="1"){
  128. $("#sex").text("男");
  129. }else{
  130. $("#sex").text("女");
  131. }
  132. $("#idCard").text(securityPersonIdCard);
  133. var maritalStatus = "";
  134. for(var nItem = 0; nItem < maritalStatusObj.length; nItem++ ){
  135. if(maritalStatusObj[nItem].code == msg.obj.maritalStatus){
  136. maritalStatus = maritalStatusObj[nItem].value;
  137. }
  138. }
  139. $("#maritalStatus").text(maritalStatus);
  140. if(msg.obj.accountLocation != null ){
  141. $("#accountLocation").text(msg.obj.accountLocation);
  142. }
  143. //现住房情况
  144. if(msg.obj.currentHouseSituation!=null){
  145. if(msg.obj.currentHouseSituation=="1"){
  146. $('.house_info span').eq(0).addClass('choose_active');
  147. $("#existReal").val(msg.obj.existReal);
  148. $("#existArea").val(msg.obj.existArea);
  149. $("#propertyCompany").val(msg.obj.propertyCompany);
  150. }else{
  151. $('.house_info span').eq(1).addClass('choose_active');
  152. }
  153. }
  154. $.ajax({
  155. type: "post",//使用get方法访问后台
  156. dataType: "json",//返回json格式的数据
  157. async:false,
  158. url: "securityPersonApply2Action_listSecurityPersonApplyRelative",//要访问的后台地址
  159. data: "securityPersonApplyId="+<%=securityPersonApplyId%>,//要发送的数据
  160. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  161. success: function(msg){//msg为返回的数据,在这里做数据绑定
  162. var data = msg.obj.rows;
  163. var isSubsistenceAllowancesNum = 0;
  164. var bankTotal = 0;
  165. var securitiesTotal = 0;
  166. var commercialInsurance = 0;
  167. var carList = new Array();
  168. var businessList = new Array();
  169. for(var i = 0; i < data.length; i++){
  170. $("#name"+i).text(data[i].name);
  171. var relative = "";
  172. for(var nItem = 0; nItem < relativeObj.length; nItem++ ){
  173. if(relativeObj[nItem].code == data[i].relative){
  174. relative = relativeObj[nItem].value;
  175. }
  176. }
  177. $("#relative"+i).text(relative);
  178. $("#idCard"+i).text(data[i].idCard);
  179. var maritalStatus = "";
  180. for(var nItem = 0; nItem < maritalStatusObj.length; nItem++ ){
  181. if(maritalStatusObj[nItem].code == data[i].maritalStatus){
  182. maritalStatus = maritalStatusObj[nItem].value;
  183. }
  184. }
  185. $("#maritalStatus"+i).text(maritalStatus);
  186. $("#company"+i).text(data[i].company);
  187. $("#phone"+i).text(data[i].phone);
  188. }
  189. }
  190. })
  191. }
  192. }
  193. });
  194. //打印按钮
  195. $('#printBtn1').click(function() {
  196. window.print();
  197. })
  198. })
  199. </script>
  200. <body>
  201. <input type="button" value="打印申请表" id="printBtn1" style="width: 100px;position: absolute;left: 10;top: 10;">
  202. <div id="content" style="width:793px;margin:0 auto;">
  203. <table class="table1" style="width:790px;border-collapse: collapse;margin: 0 auto;text-align: center;table-layout: fixed;">
  204. <caption style="font-size: 26px;font-weight: bold!important;padding:8px 0;font-family: '黑体';">
  205. 淮安市农民申购共有产权住房申请表</br></caption>
  206. <thead>
  207. <tr>
  208. <td width="30"></td>
  209. <td width="80"></td>
  210. <td width="90"></td>
  211. <td width="90"></td>
  212. <td width="60"></td>
  213. <td width="120"></td>
  214. <td width="50"></td>
  215. <td width="90"></td>
  216. <td width="80"></td>
  217. <td></td>
  218. </tr>
  219. </thead>
  220. <tbody>
  221. <tr>
  222. <td colspan="2">申请人姓名</td>
  223. <td colspan="2"><span id="name"></span></td>
  224. <td>性别</td>
  225. <td><span id="sex"></span></td>
  226. <td colspan="2">身份证号码</td>
  227. <td colspan="2"><span id="idCard"></span></td>
  228. </tr>
  229. <tr>
  230. <td colspan="2">户口所在地</td>
  231. <td colspan="8"><span id="accountLocation"></span></td>
  232. </tr>
  233. <tr>
  234. <td>共同申请人信息</td>
  235. <td colspan="9" style="padding: 0;">
  236. <table
  237. style="width:100%;border-collapse: collapse;border-top:0 none;border-bottom:0 none;table-layout: fixed;">
  238. <tr class="nopadding">
  239. <td width="79"></td>
  240. <td width="90"></td>
  241. <td width="100"></td>
  242. <td width="60"></td>
  243. <td width="100"></td>
  244. <td width="50"></td>
  245. <td width="90"></td>
  246. <td width="90"></td>
  247. <td></td>
  248. </tr>
  249. <tr class="noborder_top">
  250. <td class="noborder_left">姓名</td>
  251. <td>与户主<br />关系</td>
  252. <td colspan="2">身份证号码</td>
  253. <td colspan="2">婚姻状况</td>
  254. <td colspan="2">工作单位</td>
  255. <td class="noborder_right">联系电话</td>
  256. </tr>
  257. <tr>
  258. <td class="noborder_left"><span id="name0"></span></td>
  259. <td><span id="relative0"></span></td>
  260. <td colspan="2"><span id="idCard0"></span></td>
  261. <td colspan="2"><span id="maritalStatus0"></span></td>
  262. <td colspan="2"><span id="company0"></span></td>
  263. <td class="noborder_right"><span id="phone0"></span></td>
  264. </tr>
  265. <tr>
  266. <td class="noborder_left"><span id="name1"></span></td>
  267. <td><span id="relative1"></span></td>
  268. <td colspan="2"><span id="idCard1"></span></td>
  269. <td colspan="2"><span id="maritalStatus1"></span></td>
  270. <td colspan="2"><span id="company1"></span></td>
  271. <td class="noborder_right"><span id="phone1"></span></td>
  272. </tr>
  273. <tr>
  274. <td class="noborder_left"><span id="name1"></span></td>
  275. <td><span id="relative1"></span></td>
  276. <td colspan="2"><span id="idCard1"></span></td>
  277. <td colspan="2"><span id="maritalStatus1"></span></td>
  278. <td colspan="2"><span id="company1"></span></td>
  279. <td class="noborder_right"><span id="phone1"></span></td>
  280. </tr>
  281. <tr>
  282. <td class="noborder_left"><span id="name1"></span></td>
  283. <td><span id="relative1"></span></td>
  284. <td colspan="2"><span id="idCard1"></span></td>
  285. <td colspan="2"><span id="maritalStatus1"></span></td>
  286. <td colspan="2"><span id="company1"></span></td>
  287. <td class="noborder_right"><span id="phone1"></span></td>
  288. </tr>
  289. <tr>
  290. <td class="noborder_left"><span id="name2"></span></td>
  291. <td><span id="relative2"></span></td>
  292. <td colspan="2"><span id="idCard2"></span></td>
  293. <td colspan="2"><span id="maritalStatus2"></span></td>
  294. <td colspan="2"><span id="company2"></span></td>
  295. <td class="noborder_right"><span id="phone2"></span></td>
  296. </tr>
  297. <tr>
  298. <td class="noborder_left"><span id="name3"></span></td>
  299. <td><span id="relative3"></span></td>
  300. <td colspan="2"><span id="idCard3"></span></td>
  301. <td colspan="2"><span id="maritalStatus3"></span></td>
  302. <td colspan="2"><span id="company3"></span></td>
  303. <td class="noborder_right"><span id="phone3"></span></td>
  304. </tr>
  305. <tr>
  306. <td class="noborder_left"><span id="name4"></span></td>
  307. <td><span id="relative4"></span></td>
  308. <td colspan="2"><span id="idCard4"></span></td>
  309. <td colspan="2"><span id="maritalStatus4"></span></td>
  310. <td colspan="2"><span id="company4"></span></td>
  311. <td class="noborder_right"><span id="phone4"></span></td>
  312. </tr>
  313. <tr>
  314. <td class="noborder_left"><span id="name5"></span></td>
  315. <td><span id="relative5"></span></td>
  316. <td colspan="2"><span id="idCard5"></span></td>
  317. <td colspan="2"><span id="maritalStatus5"></span></td>
  318. <td colspan="2"><span id="company5"></span></td>
  319. <td class="noborder_right"><span id="phone5"></span></td>
  320. </tr>
  321. <tr>
  322. <td class="noborder_left"><span id="name6"></span></td>
  323. <td><span id="relative6"></span></td>
  324. <td colspan="2"><span id="idCard6"></span></td>
  325. <td colspan="2"><span id="maritalStatus6"></span></td>
  326. <td colspan="2"><span id="company6"></span></td>
  327. <td class="noborder_right"><span id="phone6"></span></td>
  328. </tr>
  329. <tr>
  330. <td class="noborder_left"><span id="name7"></span></td>
  331. <td><span id="relative7"></span></td>
  332. <td colspan="2"><span id="idCard7"></span></td>
  333. <td colspan="2"><span id="maritalStatus7"></span></td>
  334. <td colspan="2"><span id="company7"></span></td>
  335. <td class="noborder_right"><span id="phone7"></span></td>
  336. </tr>
  337. </table>
  338. </td>
  339. </tr>
  340. <tr>
  341. <td rowspan="2" colspan="2">市区住房情况</td>
  342. <td colspan="8" class="textalign-left house_info" style="white-space: nowrap;font-size:15px;">自有房产
  343. <span class="choose"><em>□</em>是 </span>
  344. <span class="choose"><em>□</em>否 </span>
  345. <br/>
  346. 房屋坐落:<input readonly="readonly" id="existReal" type="text" style="width:180px;border:0 none;border-bottom:1px solid #000;">,
  347. 面积:<input readonly="readonly" id="existArea" type="text" style="width:50px;border:0 none;border-bottom:1px solid #000;">平方米,
  348. 产权人:<input readonly="readonly" id="propertyCompany" type="text" style="width:50px;border:0 none;border-bottom:1px solid #000;">
  349. </td>
  350. </tr>
  351. <tr>
  352. <td colspan="8" class="textalign-left turn_info">是否存在转让房产、取得拆迁安置补偿不满两年的情况:&emsp;<span class="choose"><em>□</em>是 </span> <span class="choose"><em>□</em>否 </span>
  353. </td>
  354. </tr>
  355. <tr>
  356. <td colspan="10" style="text-align:left;text-indent: 30px;letter-spacing: 2px;">
  357. <p>以上填写的所有信息及提供的资料真实无误,无隐瞒。并同意相关部门和单位审查申请人和共同申请人经济、财产状况等情况,并严格遵守淮安市保障性住房相关规定。如有不诚信申报行为或不实,本人及家庭承诺在相关规定的禁止申请期限内不再申请保障性住房。</p>
  358. <!-- <p>如有不实,本人愿意承担由此产生的一切后果和法律责任。</p> -->
  359. <img src="<%=basePath%>images/commitment.png" alt="">
  360. <div style="float:right;margin: 10px 160px 0px 0;">
  361. <p>申请人(签字):</p>
  362. <p>联系电话:</p>
  363. <p>&emsp;&emsp;年&emsp;&emsp;月&emsp;&emsp;日</p>
  364. </div>
  365. </td>
  366. </tr>
  367. </tbody>
  368. </table>
  369. </div>
  370. </body>
  371. </html>