using SolarPower.Models.PowerStation; using SolarPower.Models.User; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SolarPower.Repository.Interface { public interface IPowerStationRepository : IRepositoryBase { /// /// 查詢縣市列表 /// /// /// Task> GetCitySelectOptionListAsync(); /// /// 查詢地區列表 /// /// /// Task> GetAreaSelectOptionListAsync(int cityId); /// /// 透過編號取得,縣市資訊 /// /// /// Task GetOneCityByIdAsync(int cityId); /// /// 透過編號取得,地區資訊 /// /// /// Task GetOneAreaByIdAsync(int areaId); /// /// 取得縣市地區代碼 /// /// /// Task GetCityAreaZipcodeAsync(int areaId); /// /// 透過縣市地區編號,取得該縣市地區最後的流水號 /// /// /// /// Task GetLastSerialNumberByCityAreaIdAsync(int cityId, int areaId); /// /// 修改電站基本資訊 /// /// /// /// Task UpdatePowerStationInfo(UpdatePowerStationInfo entity, List properties); /// /// 修改能源局與台電資訊 /// /// /// /// Task UpdateBoETPCInfo(UpdateBoETPCInfo entity, List properties); /// /// 取得 土地房屋資訊 /// /// /// Task GetOneLandBuildingInfo(int id); /// /// 新增 土地房屋資訊 /// /// /// /// Task AddOneLandBuildingInfo(LandBuilding entity, List properties); /// /// 更新 土地房屋資訊 /// /// /// /// Task UpdateLandBuildingInfo(UpdateLandBuilding entity, List properties); /// /// 軟刪除土地房屋資訊 /// /// /// Task DeleteOneLandBuildingInfo(int id); Task AddOperation(OperationInfo operation, List properties); /// /// 運維dataTable /// /// /// Task> OperationTable (int stationId); Task OneOperationInfo (int stationId); Task UpdateOperation(OperationInfo operation, List properties); /// /// 裝置類型下拉式選單 /// /// Task> DeviceType(); /// /// 新增 裝置 /// /// /// Task AddDevice(Device DeviceInfo, List properties); /// /// 修改 裝置 /// /// /// /// Task UpdateDevice(Device DeviceInfo, List properties); /// /// 設備datatable /// /// /// Task> DeviceTable(int stationId); /// /// 異常datatable /// /// /// Task> ExceptionTable(int stationId); /// /// 取單一筆DeviceInfo /// /// /// Task OneDeviceInfo(int id); /// /// 新增 異常設定 /// /// /// /// Task AddException(ExceptionModal Exception, List properties); Task OneException(int id); Task UpdateException(ExceptionModal Exception, List properties); } }