Uat_Study
parent
f13ecb5972
commit
9e19dcb8b6
|
@ -128,10 +128,24 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
var entity = item.Entity as SubjectVisit;
|
||||
switch (GetRequestUrl())
|
||||
{
|
||||
case "QCOperation/ObtainOrCancelQCTask":
|
||||
case "QCOperation/obtainOrCancelQCTask":
|
||||
type = type +"/"+ entity.IsTake.ToString();
|
||||
break;
|
||||
case "QCOperation/QCPassedOrFailed":
|
||||
try
|
||||
{
|
||||
type = type + "/" + (40 % (int)entity.AuditState).ToString();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
var subjectCode = entity.Subject?.Code;
|
||||
await InsertInspection<SubjectVisit>(item, type, x => new DataInspection()
|
||||
|
@ -207,6 +221,14 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
// 非Dicom
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(NoneDicomStudy)))
|
||||
{
|
||||
var entity = item.Entity as NoneDicomStudy;
|
||||
switch (GetRequestUrl().ToLower())
|
||||
{
|
||||
case "nonedicomstudy/addorupdatenonedicomstudy":
|
||||
type = _userInfo.UserTypeShortName + "/" + type;
|
||||
break;
|
||||
}
|
||||
|
||||
await InsertInspection<NoneDicomStudy>(item, type, x => new DataInspection()
|
||||
{
|
||||
GeneralId = x.Id,
|
||||
|
|
|
@ -715,6 +715,10 @@ namespace IRaCIS.Core.Infra.EFCore
|
|||
/// <exception cref="BusinessValidationFailedException"></exception>
|
||||
public async Task<string> SetEnum(Guid trilaid, string identification, string json)
|
||||
{
|
||||
if (json == null||json=="null")
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var list = await (from u in _dbContext.FrontAuditConfig.Where(x => x.Identification == identification)
|
||||
join p in _dbContext.FrontAuditConfig.Where(x => x.Code != "AuditState" && x.EnumType == "Dictionary"&&x.IsEnable.HasValue&& x.IsEnable.Value) on u.Id equals p.ParentId
|
||||
select new
|
||||
|
|
Loading…
Reference in New Issue