123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@ taglib prefix="s" uri="/struts-tags" %>
- <script type="text/javascript">
- /**小区名称*/
- var communityNameFormatter = function(value , row , index){
- return row.house.communityName ;
- };
-
- /**居住地点*/
- var addressFormatter = function(value , row , index){
- return row.house.address ;
- };
-
- /**房号*/
- var houseNumberFormatter = function(value , row , index){
- return row.house.houseNumber ;
- };
-
- /**面积*/
- var areaFormatter = function(value , row , index){
- return row.house.area ;
- };
-
- var task_submit = function(id){
- $.ajax({
- type: "post",//使用get方法访问后台
- dataType: "json",//返回json格式的数据
- url: "chooseHouseAction_confirmChooseHouse",//要访问的后台地址
- data: "chooseHouse.id="+id,//要发送的数据
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- $("#taskDialog").dialog("close");
- $.messager.alert('提示','处理成功!');
- if( $('#chooseHouseDataGrid') != null){
- $('#chooseHouseDataGrid').datagrid('reload');
- }
- if( $('#taskDataGrid') != null){
- $('#taskDataGrid').datagrid('reload');
- }
- }else{
- $.messager.alert('提示','处理失败!');
- }
- }
- });
- }
-
- var task_load = function(id){
- $.ajax({
- type: "post",//使用get方法访问后台
- dataType: "json",//返回json格式的数据
- url: "chooseHouseAction_findById",//要访问的后台地址
- data: "chooseHouse.id="+id,//要发送的数据
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- $("#title_detail").text(msg.obj.title);
- $("#content_detail").text(msg.obj.content);
- $("#businessDate_detail").text(dealDate(msg.obj.businessDate));
- $("#businessUserName_detail").text(dealDate(msg.obj.businessUserName));
- }
- });
-
- $('#chooseHouseInfo_detail').datagrid({
- rownumbers:true,
- border:false,
- sortOrder:'desc',
- url:whzl.basePath + '/chooseHouseAction_chooseHouseInfoList?chooseHouse.id='+id,
- checkOnSelect:true,
- selectOnCheck:false,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- $.messager.alert("提示",result.message);
- return ;
- }
- }
- });
- }
-
- var detail_load = function(id){
- $.ajax({
- type: "post",//使用get方法访问后台
- dataType: "json",//返回json格式的数据
- url: "chooseHouseAction_findById",//要访问的后台地址
- data: "chooseHouse.id="+id,//要发送的数据
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- $("#title_detail").text(msg.obj.title);
- $("#content_detail").text(msg.obj.content);
- }
- });
-
- $('#chooseHouseInfo_detail').datagrid({
- rownumbers:true,
- border:false,
- sortOrder:'desc',
- url:whzl.basePath + '/chooseHouseAction_chooseHouseInfoList?chooseHouse.id='+id,
- checkOnSelect:true,
- selectOnCheck:false,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- $.messager.alert("提示",result.message);
- return ;
- }
- }
- });
- }
- </script>
- <table class="mytable" style="width: 100%;">
- <tr>
- <th width="20%">标题</th>
- <td width="80%" colspan="3" style="width: 100%">
- <span id="title_detail"></span>
- </td>
- </tr>
- <tr>
- <th width="20%">业务时间</th>
- <td width="30%">
- <span id="businessDate_detail"></span>
- </td>
- <th width="20%">业务人</th>
- <td width="30%">
- <span id="businessUserName_detail"></span>
- </td>
- </tr>
- <tr>
- <th>装修清单</th>
- <td width="80%" colspan="3" style="width: 100%">
- <span id="decorationName_detail"></span>
- </td>
- </tr>
- </table>
- <table id="chooseHouseInfo_detail">
- <thead>
- <tr>
- <th data-options="field:'communityName',width:150,formatter:communityNameFormatter">小区名称</th>
- <th data-options="field:'address',width:200,formatter:addressFormatter">居住地点</th>
- <th data-options="field:'houseNumber',width:40,formatter:houseNumberFormatter">房号</th>
- <th data-options="field:'area',width:60,formatter:areaFormatter">面积</th>
- </tr>
- </thead>
- </table>
|