if(typeof ttrj == "undefined") ttrj={};
if(typeof ttrj.Components == "undefined") ttrj.Components={};
if(typeof ttrj.Components.RoomManager == "undefined") ttrj.Components.RoomManager={};
ttrj.Components.RoomManager_class = function() {};
Object.extend(ttrj.Components.RoomManager_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	GetRooms: function(storeid, isrecommend, pageindex, pagesize, isapproved) {
		return this.invoke("GetRooms", {"storeid":storeid, "isrecommend":isrecommend, "pageindex":pageindex, "pagesize":pagesize, "isapproved":isapproved}, this.GetRooms.getArguments().slice(5));
	},
	Room_Get_ByUnit: function(unitid) {
		return this.invoke("Room_Get_ByUnit", {"unitid":unitid}, this.Room_Get_ByUnit.getArguments().slice(1));
	},
	GetAllRoomByStoreID: function(storeid) {
		return this.invoke("GetAllRoomByStoreID", {"storeid":storeid}, this.GetAllRoomByStoreID.getArguments().slice(1));
	},
	UpDateRoomPhoto: function(photoid, description) {
		return this.invoke("UpDateRoomPhoto", {"photoid":photoid, "description":description}, this.UpDateRoomPhoto.getArguments().slice(2));
	},
	UpDateRoomPrice: function(unitid, number, uprice, mprice, mnprice, dprice, roomid) {
		return this.invoke("UpDateRoomPrice", {"unitid":unitid, "number":number, "uprice":uprice, "mprice":mprice, "mnprice":mnprice, "dprice":dprice, "roomid":roomid}, this.UpDateRoomPrice.getArguments().slice(7));
	},
	UpDateRoomRentCase: function(id, rentcase) {
		return this.invoke("UpDateRoomRentCase", {"id":id, "rentcase":rentcase}, this.UpDateRoomRentCase.getArguments().slice(2));
	},
	SetRoomDefaultPhoto: function(roomid, pic) {
		return this.invoke("SetRoomDefaultPhoto", {"roomid":roomid, "pic":pic}, this.SetRoomDefaultPhoto.getArguments().slice(2));
	},
	AveragePrice_Get: function(year, quarter, branchid) {
		return this.invoke("AveragePrice_Get", {"year":year, "quarter":quarter, "branchid":branchid}, this.AveragePrice_Get.getArguments().slice(3));
	},
	Room_Clone: function(roomid) {
		return this.invoke("Room_Clone", {"roomid":roomid}, this.Room_Clone.getArguments().slice(1));
	},
	HouseUnit_GetByBranchID: function(branchid) {
		return this.invoke("HouseUnit_GetByBranchID", {"branchid":branchid}, this.HouseUnit_GetByBranchID.getArguments().slice(1));
	},
	url: '/ajaxpro/ttrj.Components.RoomManager,ttrj.Components.ashx'
}));
ttrj.Components.RoomManager = new ttrj.Components.RoomManager_class();


