55 lines
1.4 KiB
C#
55 lines
1.4 KiB
C#
using BLL;
|
|
using Model;
|
|
using System;
|
|
using System.Web.Http;
|
|
using System.Web.Mvc;
|
|
|
|
namespace WebAPI.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 问题通知单
|
|
/// </summary>
|
|
public class ProblemNoticeController : ApiController
|
|
{
|
|
/// <summary>
|
|
/// 获取整改详情详情
|
|
/// </summary>
|
|
/// <param name="proNoticeCId"></param>
|
|
/// <returns></returns>
|
|
public Model.ResponeData GetDetailItem(string proNoticeCId)
|
|
{
|
|
var responeData = new Model.ResponeData();
|
|
try
|
|
{
|
|
responeData.data = ProblemNoticeService.GetDetailItem(proNoticeCId);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
responeData.code = 0;
|
|
responeData.message = ex.Message;
|
|
}
|
|
|
|
return responeData;
|
|
}
|
|
/// <summary>
|
|
/// 保存整改
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
public Model.ResponeData SaveDetailItem(ProblemNoticeDetailInput model)
|
|
{
|
|
var responeData = new Model.ResponeData();
|
|
try
|
|
{
|
|
ProblemNoticeService.SaveDetailItem(model);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
responeData.code = 0;
|
|
responeData.message = ex.Message;
|
|
}
|
|
|
|
return responeData;
|
|
}
|
|
}
|
|
} |