项目文档稽查
parent
cec39898f2
commit
66e9139ecd
|
@ -24,6 +24,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public List<TrialDocNeedConfirmedUserType> NeedConfirmedUserTypeList { get; set; }
|
public List<TrialDocNeedConfirmedUserType> NeedConfirmedUserTypeList { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public Trial Trial { get; set; }
|
public Trial Trial { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("FileTypeId")]
|
[ForeignKey("FileTypeId")]
|
||||||
public Dictionary FileType { get; set; }
|
public Dictionary FileType { get; set; }
|
||||||
|
|
|
@ -126,19 +126,28 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialDocUserTypeConfirmedUser)))
|
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialDocUserTypeConfirmedUser)))
|
||||||
{
|
{
|
||||||
var entity = item.Entity as TrialDocUserTypeConfirmedUser;
|
var entity = item.Entity as TrialDocUserTypeConfirmedUser;
|
||||||
var trialDocument = await _dbContext.TrialDocument.Where(x => x.Id == entity.TrialDocumentId).FirstOrDefaultAsync();
|
|
||||||
|
|
||||||
var trialid = trialDocument.TrialId;
|
var trialId = await _dbContext.TrialDocument.Where(x => x.Id == entity.TrialDocumentId).Select(t => t.TrialId).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
//var trialDocument = await _dbContext.TrialDocument.Where(x => x.Id == entity.TrialDocumentId).FirstOrDefaultAsync();
|
||||||
|
//var trialid = trialDocument.TrialId;
|
||||||
|
|
||||||
await InsertInspection<TrialDocUserTypeConfirmedUser>(entity as TrialDocUserTypeConfirmedUser, type, x => new InspectionConvertDTO()
|
await InsertInspection<TrialDocUserTypeConfirmedUser>(entity as TrialDocUserTypeConfirmedUser, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
TrialId = trialid,
|
TrialId = trialId,
|
||||||
|
|
||||||
ObjectRelationParentId = x.TrialDocumentId
|
ObjectRelationParentId = x.TrialDocumentId
|
||||||
}, new
|
}, new
|
||||||
{
|
{
|
||||||
FileTypeId = trialDocument.FileTypeId,
|
//FileTypeId = trialDocument.FileTypeId,
|
||||||
Name = trialDocument.Name,
|
//Name = trialDocument.Name,
|
||||||
CreateTime = trialDocument.CreateTime,
|
//CreateTime = trialDocument.CreateTime,
|
||||||
IsSigned = "是",// 是否签署 添加了就是签署了
|
//IsSigned = "是",// 是否签署 添加了就是签署了
|
||||||
|
|
||||||
|
|
||||||
|
CreateUserName=_userInfo.UserName,
|
||||||
|
UserType=_userInfo.UserTypeShortName,
|
||||||
|
IsSigned =true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue