註解功能
This commit is contained in:
parent
b757669d14
commit
e8873251d1
@ -946,7 +946,6 @@ namespace SolarPower.Controllers
|
|||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 軟刪除單一土地房屋資訊
|
/// 軟刪除單一土地房屋資訊
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -1044,7 +1043,11 @@ namespace SolarPower.Controllers
|
|||||||
|
|
||||||
return apiResult;
|
return apiResult;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 新增/修改異常
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="exceptionModal"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task<ApiResult<string>> SaveException(ExceptionModal exceptionModal)
|
public async Task<ApiResult<string>> SaveException(ExceptionModal exceptionModal)
|
||||||
{
|
{
|
||||||
ApiResult<string> apiResult = new ApiResult<string>();
|
ApiResult<string> apiResult = new ApiResult<string>();
|
||||||
@ -1112,7 +1115,11 @@ namespace SolarPower.Controllers
|
|||||||
}
|
}
|
||||||
return apiResult;
|
return apiResult;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 異常dataTable
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="stationId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task<ActionResult> ExceptionTable(int stationId)
|
public async Task<ActionResult> ExceptionTable(int stationId)
|
||||||
{
|
{
|
||||||
List<ExceptionTable> exceptionTable = new List<ExceptionTable>();
|
List<ExceptionTable> exceptionTable = new List<ExceptionTable>();
|
||||||
@ -1148,7 +1155,11 @@ namespace SolarPower.Controllers
|
|||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 取一筆異常設定
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task<ApiResult<ExceptionModal>> GetOneException(int id)
|
public async Task<ApiResult<ExceptionModal>> GetOneException(int id)
|
||||||
{
|
{
|
||||||
ExceptionModal Exception = new ExceptionModal();
|
ExceptionModal Exception = new ExceptionModal();
|
||||||
@ -1167,7 +1178,11 @@ namespace SolarPower.Controllers
|
|||||||
|
|
||||||
return apiResult;
|
return apiResult;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 刪除一筆異常設定
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task<ApiResult<string>> DeleteOneException(int id)
|
public async Task<ApiResult<string>> DeleteOneException(int id)
|
||||||
{
|
{
|
||||||
ApiResult<string> apiResult = new ApiResult<string>();
|
ApiResult<string> apiResult = new ApiResult<string>();
|
||||||
|
|||||||
@ -301,6 +301,9 @@ namespace SolarPower.Models.PowerStation
|
|||||||
{
|
{
|
||||||
public List<Type> Type { get; set; }
|
public List<Type> Type { get; set; }
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 表Variable 取來解析
|
||||||
|
/// </summary>
|
||||||
public class Variable
|
public class Variable
|
||||||
{
|
{
|
||||||
public string name { get; set; }
|
public string name { get; set; }
|
||||||
@ -328,11 +331,17 @@ namespace SolarPower.Models.PowerStation
|
|||||||
public string UID { get; set; }//設備編號
|
public string UID { get; set; }//設備編號
|
||||||
public int CreatedBy { get; set; }//建立者
|
public int CreatedBy { get; set; }//建立者
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
///設備dataTable
|
||||||
|
/// </summary>
|
||||||
public class DeviceTable : DeviceInfo
|
public class DeviceTable : DeviceInfo
|
||||||
{
|
{
|
||||||
public string UID { get; set; }//設備編號
|
public string UID { get; set; }//設備編號
|
||||||
public string Function { get; set; }//功能
|
public string Function { get; set; }//功能
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 異常modal
|
||||||
|
/// </summary>
|
||||||
public class ExceptionModal : Created
|
public class ExceptionModal : Created
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
@ -342,6 +351,9 @@ namespace SolarPower.Models.PowerStation
|
|||||||
public decimal LowerLimit { get; set; }
|
public decimal LowerLimit { get; set; }
|
||||||
public byte Alarm { get; set; }
|
public byte Alarm { get; set; }
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 異常設定Table
|
||||||
|
/// </summary>
|
||||||
public class ExceptionTable : ExceptionModal
|
public class ExceptionTable : ExceptionModal
|
||||||
{
|
{
|
||||||
public string PowerStationName { get; set; }
|
public string PowerStationName { get; set; }
|
||||||
|
|||||||
@ -407,7 +407,12 @@ namespace SolarPower.Repository.Implement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 新增運維
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="operation"></param>
|
||||||
|
/// <param name="properties"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task<int> AddOperation(OperationInfo operation, List<string> properties)
|
public async Task<int> AddOperation(OperationInfo operation, List<string> properties)
|
||||||
{
|
{
|
||||||
using (IDbConnection conn = _databaseHelper.GetConnection())
|
using (IDbConnection conn = _databaseHelper.GetConnection())
|
||||||
@ -493,7 +498,12 @@ namespace SolarPower.Repository.Implement
|
|||||||
return operation;
|
return operation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 更新運維
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="operation"></param>
|
||||||
|
/// <param name="properties"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task UpdateOperation(OperationInfo operation , List<string> properties)
|
public async Task UpdateOperation(OperationInfo operation , List<string> properties)
|
||||||
{
|
{
|
||||||
using IDbConnection conn = _databaseHelper.GetConnection();
|
using IDbConnection conn = _databaseHelper.GetConnection();
|
||||||
@ -640,7 +650,11 @@ namespace SolarPower.Repository.Implement
|
|||||||
}
|
}
|
||||||
return Device;
|
return Device;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 取單一筆DeviceInfo
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task<DeviceInfo> OneDeviceInfo(int id)
|
public async Task<DeviceInfo> OneDeviceInfo(int id)
|
||||||
{
|
{
|
||||||
using (IDbConnection conn = _databaseHelper.GetConnection())
|
using (IDbConnection conn = _databaseHelper.GetConnection())
|
||||||
@ -663,7 +677,12 @@ namespace SolarPower.Repository.Implement
|
|||||||
return Device;
|
return Device;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 新增 異常設定
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Exception"></param>
|
||||||
|
/// <param name="properties"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task AddException(ExceptionModal Exception, List<string> properties)
|
public async Task AddException(ExceptionModal Exception, List<string> properties)
|
||||||
{
|
{
|
||||||
using IDbConnection conn = _databaseHelper.GetConnection();
|
using IDbConnection conn = _databaseHelper.GetConnection();
|
||||||
@ -713,7 +732,11 @@ namespace SolarPower.Repository.Implement
|
|||||||
}
|
}
|
||||||
return Exception;
|
return Exception;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 取一筆異常設定
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task<ExceptionModal> OneException(int id)
|
public async Task<ExceptionModal> OneException(int id)
|
||||||
{
|
{
|
||||||
using (IDbConnection conn = _databaseHelper.GetConnection())
|
using (IDbConnection conn = _databaseHelper.GetConnection())
|
||||||
@ -736,7 +759,12 @@ namespace SolarPower.Repository.Implement
|
|||||||
return Exception;
|
return Exception;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 更新異常設定
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Exception"></param>
|
||||||
|
/// <param name="properties"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public async Task UpdateException(ExceptionModal Exception, List<string> properties)
|
public async Task UpdateException(ExceptionModal Exception, List<string> properties)
|
||||||
{
|
{
|
||||||
using IDbConnection conn = _databaseHelper.GetConnection();
|
using IDbConnection conn = _databaseHelper.GetConnection();
|
||||||
|
|||||||
@ -98,6 +98,12 @@ namespace SolarPower.Repository.Interface
|
|||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task DeleteOneLandBuildingInfo(int id);
|
Task DeleteOneLandBuildingInfo(int id);
|
||||||
|
/// <summary>
|
||||||
|
/// 新增運維
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="operation"></param>
|
||||||
|
/// <param name="properties"></param>
|
||||||
|
/// <returns></returns>
|
||||||
Task<int> AddOperation(OperationInfo operation, List<string> properties);
|
Task<int> AddOperation(OperationInfo operation, List<string> properties);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 運維dataTable
|
/// 運維dataTable
|
||||||
@ -105,7 +111,18 @@ namespace SolarPower.Repository.Interface
|
|||||||
/// <param name="stationId"></param>
|
/// <param name="stationId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<OperationTable>> OperationTable (int stationId);
|
Task<List<OperationTable>> OperationTable (int stationId);
|
||||||
|
/// <summary>
|
||||||
|
/// 取一筆運維
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="stationId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
Task<OperationInfo> OneOperationInfo (int stationId);
|
Task<OperationInfo> OneOperationInfo (int stationId);
|
||||||
|
/// <summary>
|
||||||
|
/// 更新運維
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="operation"></param>
|
||||||
|
/// <param name="properties"></param>
|
||||||
|
/// <returns></returns>
|
||||||
Task UpdateOperation(OperationInfo operation, List<string> properties);
|
Task UpdateOperation(OperationInfo operation, List<string> properties);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 裝置類型下拉式選單
|
/// 裝置類型下拉式選單
|
||||||
@ -151,9 +168,18 @@ namespace SolarPower.Repository.Interface
|
|||||||
/// <param name="properties"></param>
|
/// <param name="properties"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task AddException(ExceptionModal Exception, List<string> properties);
|
Task AddException(ExceptionModal Exception, List<string> properties);
|
||||||
|
/// <summary>
|
||||||
|
/// 取一筆異常設定
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
Task<ExceptionModal> OneException(int id);
|
Task<ExceptionModal> OneException(int id);
|
||||||
|
/// <summary>
|
||||||
|
/// 更新異常設定
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Exception"></param>
|
||||||
|
/// <param name="properties"></param>
|
||||||
|
/// <returns></returns>
|
||||||
Task UpdateException(ExceptionModal Exception, List<string> properties);
|
Task UpdateException(ExceptionModal Exception, List<string> properties);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user