34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Data;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using Domain;
|
|||
|
|
using Dao;
|
|||
|
|
|
|||
|
|
namespace Service.Implement
|
|||
|
|
{
|
|||
|
|
public class HostFaultsManager : GenericManagerBase<HostFaults>, IHostFaultsManager
|
|||
|
|
{
|
|||
|
|
public IList<HostFaults> LoadAllByPage(out long total, int page, int rows, string order, string sort, int hotelID)
|
|||
|
|
{
|
|||
|
|
return ((IHostFaultsRepository)CurrentRepository).LoadAllByPage(out total, page, rows, order, sort, hotelID).ToList();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//public IList<object[]> LoadCurrentHostFault(int hostID)
|
|||
|
|
//{
|
|||
|
|
// return ((IHostFaultsRepository)CurrentRepository).LoadCurrentHostFault(hostID);
|
|||
|
|
//}
|
|||
|
|
|
|||
|
|
public IList<object[]> LoadHostFault(int hostID)
|
|||
|
|
{
|
|||
|
|
return ((IHostFaultsRepository)CurrentRepository).LoadHostFault(hostID);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void DeleteByAddress(string address, int roomTypeID)
|
|||
|
|
{
|
|||
|
|
((IHostFaultsRepository)CurrentRepository).DeleteByAddress(address, roomTypeID);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|