commonHouseHelpOrderList_all.jsp 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
  2. <jsp:include page="../../common/include.jsp" />
  3. <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
  4. <script type="text/javascript"><!--
  5. //人员类别
  6. var personTypeObj = null;
  7. var personType_array = null;
  8. //人员类别
  9. $.ajax({
  10. type: "post",//使用post方法访问后台
  11. dataType: "json",//返回json格式的数据
  12. url: "aa10Action_listAa10All",//要访问的后台地址
  13. data:{"aa10.letter":"personType" ,"aa10.name":"保障人员类别" },
  14. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  15. success: function(msg){//msg为返回的数据,在这里做数据绑定
  16. if(msg.success){
  17. personTypeObj = msg.obj.rows;
  18. var select_arr = [];
  19. var data = personTypeObj;
  20. for(var nItem = 0; nItem < data.length; nItem++ ){
  21. if(data[nItem].value!='新就业' && data[nItem].value!='外来务工' ){
  22. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  23. }
  24. }
  25. personType_array = select_arr.join("");
  26. }
  27. }
  28. });
  29. /**用户显示区*/
  30. $(function() {
  31. $('#commonHouseHelpOrderDataGrid').datagrid({
  32. rownumbers:true,
  33. fit:true,
  34. pageSize:20,
  35. pageList : [ 10, 20, 30, 40, 50 ],
  36. fitColumns:false,
  37. border:false,
  38. sortOrder:'desc',
  39. pagination:true,
  40. idField:'id',
  41. url:whzl.basePath + '/commonHouseHelpOrderAction_listCommonHouseHelpOrder',
  42. toolbar:'#searchtool',
  43. checkOnSelect:true,
  44. selectOnCheck:false,
  45. nowrap:true,
  46. loadFilter:function(result){
  47. if(result.success){
  48. return result.obj;
  49. }else{
  50. $.messager.alert("提示",result.message);
  51. return ;
  52. }
  53. }
  54. });
  55. });
  56. /**查询*/
  57. function searchFun(){
  58. $("#commonHouseHelpOrderDataGrid").datagrid("load", {
  59. "commonHouseHelpOrder.securityPersonName":$("#tblQuery").find("input[id='name']").val(),
  60. "commonHouseHelpOrder.securityPersonIdCard":$("#tblQuery").find("input[id='idCard']").val()
  61. });
  62. }
  63. /*清除查询条件**/
  64. function ClearQuery() {
  65. $("#tblQuery").find("input").val("");
  66. $("#tblQuery").find("select").val("-1");
  67. }
  68. /**详细*/
  69. var detailsFormatter = function(value , row , index){
  70. return "<img src='<%=basePath%>/js/easyui/themes/itemicon/detail.png' title='查看详情' onclick=commonHouseHelpOrderDetails(" + row.cid + ") style='cursor:pointer' />";
  71. };
  72. /**详细页面对话框*/
  73. var commonHouseHelpOrderDetails = function(id){
  74. $("#detailcommonHouseHelpOrderDialog").dialog(
  75. {
  76. buttons : [
  77. {
  78. text : '确定',
  79. iconCls : 'icon-ok',
  80. handler : function(){
  81. $("#detailcommonHouseHelpOrderDialog").dialog("close");
  82. }
  83. }
  84. ],
  85. onLoad : function(){
  86. detail_load(id);
  87. }
  88. }
  89. );
  90. };
  91. var getObjectURL = function (file) {
  92. var url = null;
  93. if (window.createObjectURL != undefined) {
  94. url = window.createObjectURL(file);
  95. } else if (window.URL != undefined) {
  96. url = window.URL.createObjectURL(file);
  97. } else if (window.webkitURL != undefined) {
  98. url = window.webkitURL.createObjectURL(file);
  99. }
  100. return url;
  101. }
  102. //显示对象属性
  103. function ShowObjProperty(Obj) {
  104. var PropertyList='';
  105. var PropertyCount=0;
  106. for(i in Obj){
  107. if(Obj.i !=null)
  108. PropertyList=PropertyList+i+'属性:'+Obj.i+'\r\n';
  109. else
  110. PropertyList=PropertyList+i+'方法\r\n';
  111. }
  112. alert(PropertyList);
  113. }
  114. /**人员类别格式化*/
  115. var personTypeFormatter = function(value , row , index){
  116. var personType = "";
  117. for(var nItem = 0; nItem < personTypeObj.length; nItem++ ){
  118. if(personTypeObj[nItem].code == row.securityPerson.personType){
  119. personType = personTypeObj[nItem].value;
  120. break;
  121. }
  122. }
  123. return personType;
  124. };
  125. function helpOrderExport(){
  126. var params = encodeURI("commonHouseHelpOrder.securityPersonName="+trim($('#name').val())+
  127. "&commonHouseHelpOrder.securityPersonIdCard="+trim($('#idCard').val())
  128. );
  129. window.location.href = whzl.basePath+"/commonHouseHelpOrderAction_export?"+params;
  130. }
  131. --></script>
  132. <div class="easyui-layout" data-options="fit:true,border:false">
  133. <div data-options="region:'center',border:false">
  134. <div id="searchtool" data-options="region:'north' , border:false">
  135. <div class="clear"></div>
  136. <table id="tblQuery" style="width:100%;">
  137. <tr>
  138. <td align="right" style="width: 12%;"><span>姓名</span></td><td style="width: 10%;"><input id="name" name="commonHouseHelpOrder.name" type="text" style="width: 100px;"/></td>
  139. <td align="right" style="width: 10%;"><span>身份证号</span></td><td style="width: 16%;"><input id="idCard" name="commonHouseHelpOrder.idCard" type="text" style="width: 140px;"/></td>
  140. <td align="left" style="width: 54%;">
  141. <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
  142. <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
  143. <a href="javascript:helpOrderExport();" class="easyui-linkbutton" data-options="iconCls:'icon-import',plain:true">导出</a>
  144. </td>
  145. </tr>
  146. </table>
  147. <div class="clear"></div>
  148. </div>
  149. <table id="commonHouseHelpOrderDataGrid">
  150. <thead frozen="true">
  151. <tr>
  152. <th data-options="field:'cid',checkbox:true,width:30">ID</th>
  153. <th data-options="field:'securityPersonName',sortable:true,width:75">姓名</th>
  154. </tr>
  155. </thead>
  156. <thead>
  157. <tr>
  158. <th data-options="field:'securityPersonIdCard',sortable:true,width:140">身份证号</th>
  159. <th data-options="field:'houseAddress',sortable:true,width:140">购房地址</th>
  160. <th data-options="field:'houseArea',sortable:true,width:80">购房面积</th>
  161. <th data-options="field:'totalMoney',sortable:true,width:80">总房款</th>
  162. <th data-options="field:'govMoney',sortable:true,width:80">助购房款</th>
  163. <th data-options="field:'personTotalMoney',sortable:true,width:80">个人房款</th>
  164. <!-- <th data-options="field:'personType',sortable:true,width:80">人员类别</th>-->
  165. <th data-options="field:'securityNum',align:'center',width:60">保障人口</th>
  166. <th data-options="field:'details',align:'center',width:60,formatter:detailsFormatter">查看详细</th>
  167. </tr>
  168. </thead>
  169. </table>
  170. </div>
  171. </div>
  172. <div id="detailcommonHouseHelpOrderDialog" data-options="title:'&nbsp;资料详细信息',iconCls:'icon-details',width:800,height:420,modal:true,href:'<%=basePath %>/commonHouseHelpOrderAction_toDetail'">
  173. </div>
  174. <div id="verify1commonHouseHelpOrderDialog" data-options="title:'&nbsp;供应科审核',iconCls:'icon-add',width:800,height:480,modal:true,href:'<%=basePath %>/commonHouseHelpOrderAction_toVerify1'">
  175. </div>
  176. <div id="detailDialog"></div>
  177. <div id="setCommonHouseHelpOrderAllDialog" data-options="title:'&nbsp;个性化设置',iconCls:'icon-cog',width:500,height:370,modal:true,href:'<%=basePath %>/columnSetAction_toSet?tname=commonHouseHelpOrderAll'">
  178. </div>
  179. <script type="text/javascript">
  180. <!--
  181. parent.$.messager.progress('close');
  182. //-->
  183. </script>