<td class="text-center">{{demand.LOW_PRICE}}-{{demand.HIGH_PRICE}}Ԫ</td>
<td class="text-center">{{demand.LOW_SQUARE}}-{{demand.HIGH_SQUARE}}</td>
<td class="text-center">{{demand.ROOM1}}-{{demand.ROOM2}}</td>
<td class="text-center">{{demand.TYPE|T_}}/{{demand.SUBTYPE|ST_}}</td>
<td class="text-center">{{demand.CBD}}</td>
<td class="text-center">{{demand.CLOSED|CLOSED_}}</td>
<td class="text-center">{{demand.LOOKHDT | LOOKHDT_}}</td>
<td class="text-center">{{demand.DEMAND}}</td>
<td class="text-center">{{demand.INPUTDT|date:'yyyy-MM-dd'}}</td>
<td>{{demand.LASTDT|date:'yyyy-MM-dd'}}</td>
<td class="text-center">{{demand.SOURCE|SOURCE_}}</td>
<td class="text-center">{{demand.LOOKEDNUM}}/{{demand.LOOKED|date:'yyyy-MM-dd'}}</td>


reserve(demand.CRID, demand.CID,demand.TYPE,demand.SUBTYPE,demand.LOW_PRICE,
demand.HIGH_PRICE,demand.LOW_SQUARE,demand.HIGH_SQUARE,demand.ROOM1,
demand.ROOM2,demand.CBD,demand.DEMAND)

$scope.reserve = function(crid, cid, type, stype,low_price,high_price,low_square,high_square,room1,room2,cbd,demand){

$location.search("CRID", crid);
$location.search("CID",cid);
$location.search('TYPE', type);
$location.search('STYPE', stype);
$location.search('LOW_PRICE', low_price);
$location.search('HIGH_PRICE', high_price);
$location.search('LOW_SQUARE', low_square);
$location.search('HIGH_SQUARE',high_square);
$location.search('ROOM1', room1);
$location.search('ROOM2', room2);
$location.search('CBD', cbd)
$location.search('DEMAND', demand)
};

DataCenter.find("houses", {page:1,size:20,COMPANY:1,TYPE:$scope.type,STYPE:$scope.stype});
DataCenter.addEventListener("housesList",function(e){
$scope.housesList = e.data;
console.log("------------aaaaaa",$scope.housesList);
$scope.$apply();
});

posted on 2016-06-15 00:15  顺子2016  阅读(147)  评论(0编辑  收藏  举报