123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <script type="text/javascript">
- var exchangeHouseIntent_update_submit = function(){
- if($('#exchangeReason').val() != ''){
- $('#updateExchangeHouseIntentForm').form('submit',{
- url : whzl.basePath+'/exchangeHouseIntentAction_updateExchangeHouseIntent',
- success : function(result){
- var parseResult = $.parseJSON(result);
- if(parseResult.success){
- $("#updateExchangeHouseIntentDialog").dialog("close");
- $('#exchangeHouseIntentDataGrid').datagrid('reload');
- $.messager.alert('提示','修改成功!');
- }
- }
- }
- );
- }else{
- $.messager.alert('提示','请填写意向换房原因!');
- }
- }
-
- var exchangeHouseIntent_update_load = function(id){
-
- $.ajax({
- type: "post",//使用get方法访问后台
- dataType: "json",//返回json格式的数据
- url: "exchangeHouseIntentAction_findById",//要访问的后台地址
- data: "exchangeHouseIntent.id="+id,//要发送的数据
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- $("#id_update").val(msg.obj.id);
-
- $("#securityPersonIdCard_update").val(msg.obj.securityPerson.idCard);
- $("#securityPersonName_update").val(msg.obj.securityPerson.name);
- $("#securityPersonPhone_update").val(msg.obj.securityPerson.phone);
- $("#securityNum_update").numberbox('setValue',msg.obj.securityPerson.securityNum);
- $("#houseAddress_update").val(msg.obj.house.address);
-
- var array = (msg.obj.communities).split(",");
- var nums = [ ];
- for (var i=0 ; i< array.length ; i++)
- {
- nums.push(array[i].replace(/\s+/g,""));
- }
- $('#communities_update').combobox('setValues',nums);
-
- $("#communitieNames_update").val(msg.obj.communitieNames);
- $("#houseArea_update").numberbox('setValue',msg.obj.house.area);
-
- var garageArea = msg.obj.house.garageAreava;
- if(garageArea == null){
- garageArea = 0;
- }
-
- $("#garageArea_update").numberbox('setValue',garageArea);
- $("#exchangeReason_update").text(msg.obj.exchangeReason);
- }
- });
-
- $('#communities_update').combobox({
- url: whzl.basePath + '/communityAction_findAll',
- valueField:'value',
- textField:'text',
- multiple:true,
- filter:function(q,row){
- var opts=$(this).combobox("options");
- return row[opts.textField].indexOf(q)>-1;
- },
- onChange:function (newValue,oldValue) {
- $('#communitieNames_update').val($('#communities_update').combobox('getText'));
- }
- });
- }
- </script>
- <form id="updateExchangeHouseIntentForm" method="post">
- <table class="mytable" style="width:100%;">
- <tr>
- <th colspan="4">换房意向人员登记信息</th>
- </tr>
- <tr>
- <th width="20%">身份证号</th>
- <td width="30%">
- <input class="easyui-validatebox" type="text" id="securityPersonIdCard_update" readonly="readonly">
- <input type="hidden" id="id_update" name="exchangeHouseIntent.id" />
- <input type="hidden" id="securityPersonHouseId_update" name="securityPersonHouse.id" />
- </td>
- <th width="20%">姓名</th>
- <td width="30%">
- <input class="easyui-validatebox" type="text" id="securityPersonName_update" readonly="readonly">
- </td>
- </tr>
- <tr>
- <th>联系电话</th>
- <td>
- <input type="text" class="easyui-validatebox" readonly="readonly" id="securityPersonPhone_update">
- </td>
-
- <th>保障人口数量</th>
- <td >
- <input type="text" class="easyui-numberbox" readonly="readonly" id="securityNum_update">
- </td>
- </tr>
- <tr>
- <th>房源面积</th>
- <td>
- <input type="text" class="easyui-numberbox" precision="2" readonly="readonly" id="houseArea_update">
- </td>
- <th>车库面积</th>
- <td>
- <input type="text" class="easyui-numberbox" precision="2" readonly="readonly" id="garageArea_update" >
- </td>
- </tr>
- <tr>
- <th>现住房源地址</th>
- <td colspan="3">
- <input type="text" class="easyui-validatebox" readonly="readonly" id="houseAddress_update" style="width:370px" >
- </td>
- </tr>
-
- <tr>
- <th>意向房源小区</th>
- <td colspan="3">
- <input id="communities_update" name="exchangeHouseIntent.communities" style="width:370px;">
- <input id="communitieNames_update" name="exchangeHouseIntent.communitieNames" type="hidden" >
- </td>
- </tr>
-
- <tr>
- <th >换房原因</th>
- <td colspan="3">
- <textarea rows="2" cols="50" id="exchangeReason_update" name= "exchangeHouseIntent.exchangeReason" class="easyui-validatebox" ></textarea>
- </th>
- </tr>
-
- </table>
- </form>
|