修改访视计划
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 受试者
|
||||
|
||||
Reference in New Issue
Block a user