using SolarPower.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SolarPower.Repository.Interface { public interface IOperationRepository : IRepositoryBase { Task> GetPowerStationIdList(int UserId); Task AddOperationPlan(OperationCreatePlan OperationPlan, List properties); Task> OperationPlanTable(List id,int Type); Task GetOneOperation(int id); Task UpdateOperationPlan(OperationCreatePlan OperationPlan, List properties); Task AddToRecord(PlanToRecord record, List properties2); Task ReductionOneOperationRecordAsync(int id); /// /// 透過搜尋條件,查詢過濾後的運維作業記錄 /// /// /// Task> GetAllRecordByFilterAsync(PostOperationRecordFilter filter); /// /// 透過Id,取得單一筆運維作業記錄 /// /// /// Task GetOneOperationRecordAsync(int id); /// /// 新增一筆運維作業記錄 /// /// /// /// Task AddOneOperationRecordAsync(OperationRecord entity, List properties); /// /// 修改運維作業記錄 /// /// /// /// Task UpdateOperationRecordAsync(UpdateOperationRecord entity, List properties); /// /// 新增運維作業記錄的檔案 /// /// /// /// Task AddOperationRecordFilesAsync(List entity, List properties); Task DeleteOneOperationRecordAsync(int id); /// /// 透過Id,取得單一運維作業記錄檔案 /// /// /// Task GetOneOperationRecordFileAsync(int id); /// /// 透過Id,軟刪除運維作業記錄檔案 /// /// /// Task DeleteOneOperationRecordFile(int id); Task> GetOperationSchedules(); Task> GetOperationPersonnel(int PowerStationId); Task InsertNoticeSchedule(List personal, string Title, string content, int emailType); Task AddOperationRecordPersonnelAsync(List entity, List properties); Task> GetOperationRecordPersonnelIdsByOperationRecordId(int operationRecordId); Task DeleteOperationRecordPersonnel(List operationRecordPersonnels); Task DeleteRecord(List operations); /// /// 取所有維運人員 /// /// Task> GetAllOperations(); } }