commonHouseHelpOrderList_pay.jsp 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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?state=4,5,14',
  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 securityPersonNameFormatter = function(value , row , index){
  116. return "<a href='javascript:' onclick=commonHouseHelpOrderDetails(" + row.cid + ")>"+row.securityPerson.name+"</a>";
  117. };
  118. /**人员身份证号格式化*/
  119. var securityPersonIdCardFormatter = function(value , row , index){
  120. return row.securityPerson.idCard;
  121. };
  122. /**人员类别格式化*/
  123. var personTypeFormatter = function(value , row , index){
  124. var personType = "";
  125. for(var nItem = 0; nItem < personTypeObj.length; nItem++ ){
  126. if(personTypeObj[nItem].code == row.securityPerson.personType){
  127. personType = personTypeObj[nItem].value;
  128. break;
  129. }
  130. }
  131. return personType;
  132. };
  133. /**更新*/
  134. var updateFormatter = function(value , row , index){
  135. if(row.govMoney <= row.payMoney){
  136. return "房款已支付";
  137. }else {
  138. return "<img src='<%=basePath%>/images/pencil.png' title='助购补贴支付' onclick=updateCommonHouseHelpOrder(" + row.cid + ") style='cursor:pointer' />";
  139. }
  140. };
  141. function updateRow(){
  142. var row = $('#commonHouseHelpOrderDataGrid').datagrid('getSelected');
  143. if(row == null){
  144. $.messager.alert("提示","请先选择要支付的申请记录!");
  145. }
  146. var id = row.cid;
  147. if(row.govMoney <= row.payMoney){
  148. $.messager.alert("提示","该房款已支付!");
  149. }else{
  150. updateCommonHouseHelpOrder(id);
  151. }
  152. }
  153. /**修改共有产权房*/
  154. function updateCommonHouseHelpOrder(id){
  155. $('#paycommonHouseHelpOrderDialog').dialog(
  156. {
  157. buttons : [
  158. {
  159. text : '确定',
  160. iconCls : 'icon-ok',
  161. handler : function(){
  162. task_submit();
  163. }
  164. },
  165. {
  166. text : '取消',
  167. iconCls : 'icon-cancel',
  168. handler : function(){
  169. $("#paycommonHouseHelpOrderDialog").dialog("close");
  170. }
  171. }
  172. ],
  173. onLoad : function(){
  174. task_load(id);
  175. }
  176. }
  177. );
  178. }
  179. --></script>
  180. <div class="easyui-layout" data-options="fit:true,border:false">
  181. <div data-options="region:'center',border:false">
  182. <div id="searchtool" data-options="region:'north' , border:false">
  183. <div class="clear"></div>
  184. <table id="tblQuery" style="width:100%;">
  185. <tr>
  186. <td align="right" style="width: 10%;"><span>姓名</span></td><td style="width: 10%;"><input id="name" name="commonHouseHelpOrder.name" type="text" style="width: 100px;"/></td>
  187. <td align="right" style="width: 8%;"><span>身份证号</span></td><td style="width: 18%;"><input id="idCard" name="commonHouseHelpOrder.idCard" type="text" style="width: 140px;"/></td>
  188. <td align="left" style="width: 54%;">
  189. <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
  190. <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
  191. <a href="javascript:updateRow();" class="easyui-linkbutton" data-options="iconCls:'icon-pay',plain:true">支付</a>
  192. </td>
  193. </tr>
  194. </table>
  195. <div class="clear"></div>
  196. </div>
  197. <table id="commonHouseHelpOrderDataGrid">
  198. <thead frozen="true">
  199. <tr>
  200. <th data-options="field:'cid',checkbox:true,width:30">ID</th>
  201. <th data-options="field:'securityPersonName',sortable:true,width:75">姓名</th>
  202. </tr>
  203. </thead>
  204. <thead>
  205. <tr>
  206. <th data-options="field:'securityPersonIdCard',sortable:true,width:140">身份证号</th>
  207. <th data-options="field:'houseAddress',sortable:true,width:140">购房地址</th>
  208. <th data-options="field:'houseArea',sortable:true,width:80">购房面积</th>
  209. <th data-options="field:'totalMoney',sortable:true,width:80">总房款</th>
  210. <th data-options="field:'govMoney',sortable:true,width:80">助购房款</th>
  211. <th data-options="field:'personTotalMoney',sortable:true,width:80">个人房款</th>
  212. <th data-options="field:'payMoney',sortable:true,width:80">已助购支付</th>
  213. <!-- <th data-options="field:'personType',sortable:true,width:80,formatter:personTypeFormatter">人员类别</th> -->
  214. <th data-options="field:'securityNum',align:'center',width:60">保障人口</th>
  215. <th data-options="field:'details',align:'center',width:60,formatter:detailsFormatter">查看详细</th>
  216. <th data-options="field:'update',align:'center',width:90,formatter:updateFormatter">助购补贴支付</th>
  217. </tr>
  218. </thead>
  219. </table>
  220. </div>
  221. </div>
  222. <div id="detailcommonHouseHelpOrderDialog" data-options="title:'&nbsp;资料详细信息',iconCls:'icon-details',width:800,height:400,modal:true,href:'<%=basePath %>/commonHouseHelpOrderAction_toDetail'">
  223. </div>
  224. <div id="paycommonHouseHelpOrderDialog" data-options="title:'&nbsp;助购补贴支付',iconCls:'icon-add',width:800,height:400,modal:true,href:'<%=basePath %>/commonHouseHelpOrderAction_toPay'">
  225. </div>
  226. <div id="detailDialog"></div>
  227. <div id="setCommonHouseHelpOrderPayDialog" data-options="title:'&nbsp;个性化设置',iconCls:'icon-cog',width:500,height:370,modal:true,href:'<%=basePath %>/columnSetAction_toSet?tname=commonHouseHelpOrderPay'">
  228. </div>
  229. <script type="text/javascript">
  230. <!--
  231. parent.$.messager.progress('close');
  232. //-->
  233. </script>