Uat_Study
parent
62b6d4176b
commit
6c81cf2612
|
@ -91,6 +91,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
{
|
{
|
||||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||||
}
|
}
|
||||||
|
opt.OptCommand.Id = Guid.Parse(fun.Data);
|
||||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace IRaCIS.Application.Interfaces
|
||||||
{
|
{
|
||||||
public interface IVisitPlanService
|
public interface IVisitPlanService
|
||||||
{
|
{
|
||||||
Task<IResponseOutput> AddOrUpdateVisitStage(VisitPlanCommand visitPlan);
|
Task<IResponseOutput<string>> AddOrUpdateVisitStage(VisitPlanCommand visitPlan);
|
||||||
Task<IResponseOutput> ConfirmTrialVisitPlan(Guid trialId);
|
Task<IResponseOutput> ConfirmTrialVisitPlan(Guid trialId);
|
||||||
Task<IResponseOutput> DeleteVisitStage(Guid id);
|
Task<IResponseOutput> DeleteVisitStage(Guid id);
|
||||||
Task<IActionResult> DownloadInflunceStudyList(Guid visitPlanInfluenceStatId);
|
Task<IActionResult> DownloadInflunceStudyList(Guid visitPlanInfluenceStatId);
|
||||||
|
|
|
@ -89,7 +89,7 @@ namespace IRaCIS.Application.Services
|
||||||
/// <summary> 添加或更新访视计划某项[New]</summary>
|
/// <summary> 添加或更新访视计划某项[New]</summary>
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> AddOrUpdateVisitStage(VisitPlanCommand visitPlan)
|
public async Task<IResponseOutput<string>> AddOrUpdateVisitStage(VisitPlanCommand visitPlan)
|
||||||
{
|
{
|
||||||
DateTime createtime = DateTime.Now;
|
DateTime createtime = DateTime.Now;
|
||||||
List<DataInspection> datas = new List<DataInspection>();
|
List<DataInspection> datas = new List<DataInspection>();
|
||||||
|
@ -195,6 +195,7 @@ namespace IRaCIS.Application.Services
|
||||||
visitPlanItem.BlindName = "B" + ((int)visitPlanItem.VisitNum * 10).ToString("D3");
|
visitPlanItem.BlindName = "B" + ((int)visitPlanItem.VisitNum * 10).ToString("D3");
|
||||||
|
|
||||||
var result = await _repository.AddAsync(visitPlanItem);
|
var result = await _repository.AddAsync(visitPlanItem);
|
||||||
|
visitPlan.Id = result.Id;
|
||||||
|
|
||||||
//更新项目访视计划状态为未确认
|
//更新项目访视计划状态为未确认
|
||||||
await _repository.UpdateFromQueryAsync<Trial>(u => u.Id == visitPlan.TrialId, t => new Trial() { VisitPlanConfirmed = false });
|
await _repository.UpdateFromQueryAsync<Trial>(u => u.Id == visitPlan.TrialId, t => new Trial() { VisitPlanConfirmed = false });
|
||||||
|
@ -248,7 +249,7 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
|
|
||||||
await _inspectionService.AddListInspectionRecordAsync(datas);
|
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||||
return ResponseOutput.Ok();
|
return ResponseOutput.Ok(visitPlan.Id.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary> 删除项目计划某一项[New]</summary>
|
/// <summary> 删除项目计划某一项[New]</summary>
|
||||||
|
|
Loading…
Reference in New Issue