SGGL_HBAZ/SGGL/WebAPI/Controllers/HSSE/AwardStandardsController.cs

57 lines
1.6 KiB
C#
Raw Permalink Normal View History

2025-02-20 17:21:35 +08:00
using BLL;
using System;
using System.Linq;
using System.Web.Http;
namespace WebAPI.Controllers.HSSE
{
public class AwardStandardsController : ApiController
{
#region
/// <summary>
/// 获取集合
/// </summary>
/// <returns></returns>
2025-02-20 17:55:00 +08:00
public Model.ResponeData getAwardStandardsList(int PageNumber, int PageSize)
2025-02-20 17:21:35 +08:00
{
var responeData = new Model.ResponeData();
try
{
2025-02-20 17:55:00 +08:00
responeData.data = AwardStandardsService.GetAwardStandardsList(PageNumber,PageSize);
2025-02-20 17:21:35 +08:00
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
#region id获取
/// <summary>
/// 根据id获取
/// </summary>
/// <returns></returns>
public Model.ResponeData getAwardStandardsListById(string AwardStandardsId)
{
var responeData = new Model.ResponeData();
try
{
2025-03-07 16:30:12 +08:00
var data = AwardStandardsService.GetAwardStandardsListById(AwardStandardsId);
data.AttachUrl = BLL.AttachFileService.getFileUrl(data.AwardStandardsId);
responeData.data = data;
2025-02-20 17:21:35 +08:00
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
}
}