修改访视计划
This commit is contained in:
@@ -637,25 +637,25 @@ namespace IRaCIS.Core.API.Controllers
|
||||
}
|
||||
#endregion
|
||||
#region 访视计划
|
||||
/// <summary>
|
||||
/// 新增或添加访视计划
|
||||
/// </summary>
|
||||
/// <param name="opt"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Inspection/VisitPlan/AddOrUpdateVisitStage")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> AddOrUpdateVisitStage(DataInspectionDto<VisitPlanCommand> opt)
|
||||
{
|
||||
var fun = await _visitPlanService.AddOrUpdateVisitStage(opt.OptCommand);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
}
|
||||
opt.AuditInfo.VisitStageId = fun.Data.Id;
|
||||
opt.OptCommand.Id = fun.Data.Id;
|
||||
opt.AuditInfo.BlindName = fun.Data.BlindName;
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
}
|
||||
///// <summary>
|
||||
///// 新增或添加访视计划
|
||||
///// </summary>
|
||||
///// <param name="opt"></param>
|
||||
///// <returns></returns>
|
||||
//[HttpPost, Route("Inspection/VisitPlan/AddOrUpdateVisitStage")]
|
||||
//[UnitOfWork]
|
||||
//public async Task<IResponseOutput> AddOrUpdateVisitStage(DataInspectionDto<VisitPlanCommand> opt)
|
||||
//{
|
||||
// var fun = await _visitPlanService.AddOrUpdateVisitStage(opt.OptCommand);
|
||||
// if (!fun.IsSuccess)
|
||||
// {
|
||||
// return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
// }
|
||||
// opt.AuditInfo.VisitStageId = fun.Data.Id;
|
||||
// opt.OptCommand.Id = fun.Data.Id;
|
||||
// opt.AuditInfo.BlindName = fun.Data.BlindName;
|
||||
// return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
//}
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -878,23 +878,23 @@ namespace IRaCIS.Core.API.Controllers
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 保存并确认访视计划
|
||||
/// </summary>
|
||||
/// <param name="opt"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Inspection/VisitPlan/SaveConfirmTrialVisitPlan")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> SaveConfirmTrialVisitPlan(DataInspectionDto<VisitPlanCommand> opt)
|
||||
{
|
||||
var update = await _visitPlanService.AddOrUpdateVisitStage(opt.OptCommand);
|
||||
if (!update.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(update.ErrorMessage);
|
||||
}
|
||||
var fun = _visitPlanService.ConfirmTrialVisitPlan;
|
||||
return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
///// <summary>
|
||||
///// 保存并确认访视计划
|
||||
///// </summary>
|
||||
///// <param name="opt"></param>
|
||||
///// <returns></returns>
|
||||
//[HttpPost, Route("Inspection/VisitPlan/SaveConfirmTrialVisitPlan")]
|
||||
//[UnitOfWork]
|
||||
//public async Task<IResponseOutput> SaveConfirmTrialVisitPlan(DataInspectionDto<VisitPlanCommand> opt)
|
||||
//{
|
||||
// var update = await _visitPlanService.AddOrUpdateVisitStage(opt.OptCommand);
|
||||
// if (!update.IsSuccess)
|
||||
// {
|
||||
// return ResponseOutput.NotOk(update.ErrorMessage);
|
||||
// }
|
||||
// var fun = _visitPlanService.ConfirmTrialVisitPlan;
|
||||
// return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun);
|
||||
//}
|
||||
|
||||
#endregion
|
||||
#region 受试者
|
||||
|
||||
@@ -282,13 +282,6 @@
|
||||
<param name="opt"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.AddOrUpdateVisitStage(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Application.Contracts.VisitPlanCommand})">
|
||||
<summary>
|
||||
新增或添加访视计划
|
||||
</summary>
|
||||
<param name="opt"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.DeleteVisitStage(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.IDDto})">
|
||||
<summary>
|
||||
删除访视计划对象
|
||||
@@ -358,13 +351,6 @@
|
||||
<param name="opt"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.SaveConfirmTrialVisitPlan(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Application.Contracts.VisitPlanCommand})">
|
||||
<summary>
|
||||
保存并确认访视计划
|
||||
</summary>
|
||||
<param name="opt"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.AddOrUpdateSubject(IRaCIS.Core.Application.Service.Inspection.DTO.InsSubjectCommand)">
|
||||
<summary>
|
||||
添加或更新受试者信息[New]
|
||||
|
||||
Reference in New Issue
Block a user