Compare commits
No commits in common. "b8c0bd7082bb4e2a57890671ba122ff70f45ada9" and "73912fd875fef06fed64c24f8632012916b86b65" have entirely different histories.
b8c0bd7082
...
73912fd875
|
@ -1480,13 +1480,6 @@
|
||||||
<param name="inDto"></param>
|
<param name="inDto"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.Service.TrialFileTypeService.SetAuthorizedView(IRaCIS.Core.Application.ViewModel.SetAuthorizedViewInDto)">
|
|
||||||
<summary>
|
|
||||||
修改授权状态
|
|
||||||
</summary>
|
|
||||||
<param name="inDto"></param>
|
|
||||||
<returns></returns>
|
|
||||||
</member>
|
|
||||||
<member name="T:IRaCIS.Core.Application.Service.TrialFinalRecordService">
|
<member name="T:IRaCIS.Core.Application.Service.TrialFinalRecordService">
|
||||||
<summary>
|
<summary>
|
||||||
项目定稿记录
|
项目定稿记录
|
||||||
|
@ -14183,41 +14176,11 @@
|
||||||
<member name="T:IRaCIS.Core.Application.ViewModel.TrialEmailNoticeConfigAddOrEdit">
|
<member name="T:IRaCIS.Core.Application.ViewModel.TrialEmailNoticeConfigAddOrEdit">
|
||||||
<summary> TrialEmailNoticeConfigAddOrEdit 列表查询参数模型</summary>
|
<summary> TrialEmailNoticeConfigAddOrEdit 列表查询参数模型</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.ViewModel.GetTrialFileTypeDataInDto.IsAuthorizedView">
|
|
||||||
<summary>
|
|
||||||
是否授权
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.ViewModel.TrialFileTypeAddOrEdit.IsAuthorizedView">
|
|
||||||
<summary>
|
|
||||||
是否授权
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.ViewModel.TrialFileTypeAddOrEdit.ShowOrder">
|
<member name="P:IRaCIS.Core.Application.ViewModel.TrialFileTypeAddOrEdit.ShowOrder">
|
||||||
<summary>
|
<summary>
|
||||||
显示顺序
|
显示顺序
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.ViewModel.TrialFinalRecordAddOrEdit.PDFFileRecord">
|
|
||||||
<summary>
|
|
||||||
定稿PDF
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.ViewModel.TrialFinalRecordAddOrEdit.WordFileRecord">
|
|
||||||
<summary>
|
|
||||||
定稿Word
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.ViewModel.TrialFinalRecordAddOrEdit.SignFileRecord">
|
|
||||||
<summary>
|
|
||||||
签名页
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.ViewModel.TrialFinalRecordAddOrEdit.HistoryFileRecord">
|
|
||||||
<summary>
|
|
||||||
历史记录
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="T:IRaCIS.Core.Application.ViewModel.SystemAnonymizationView">
|
<member name="T:IRaCIS.Core.Application.ViewModel.SystemAnonymizationView">
|
||||||
<summary> SystemAnonymizationView 列表视图模型 </summary>
|
<summary> SystemAnonymizationView 列表视图模型 </summary>
|
||||||
</member>
|
</member>
|
||||||
|
|
|
@ -32,21 +32,12 @@ public class TrialFileTypeData
|
||||||
public List<TrialFileTypeView> TrialFileTypeList { get; set; }
|
public List<TrialFileTypeView> TrialFileTypeList { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SetAuthorizedViewInDto
|
|
||||||
{
|
|
||||||
public Guid Id { get; set; }
|
|
||||||
|
|
||||||
public bool IsAuthorizedView { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class GetTrialFileTypeDataInDto
|
public class GetTrialFileTypeDataInDto
|
||||||
{
|
{
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
public bool IsCheck { get; set; } = false;
|
||||||
/// 是否授权
|
|
||||||
/// </summary>
|
|
||||||
public bool IsAuthorizedView { get; set; } = false;
|
|
||||||
}
|
}
|
||||||
public class CopySystemFileTypeToTrialInDto
|
public class CopySystemFileTypeToTrialInDto
|
||||||
{
|
{
|
||||||
|
@ -91,11 +82,6 @@ public class TrialFileTypeAddOrEdit
|
||||||
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 是否授权
|
|
||||||
/// </summary>
|
|
||||||
public bool IsAuthorizedView { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 显示顺序
|
/// 显示顺序
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
using System;
|
using System;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
|
||||||
namespace IRaCIS.Core.Application.ViewModel;
|
namespace IRaCIS.Core.Application.ViewModel;
|
||||||
|
|
||||||
public class TrialFinalRecordView : TrialFinalRecordAddOrEdit
|
public class TrialFinalRecordView : TrialFinalRecordAddOrEdit
|
||||||
|
@ -24,15 +23,15 @@ public class TrialFinalRecordAddOrEdit
|
||||||
{
|
{
|
||||||
public Guid? Id { get; set; }
|
public Guid? Id { get; set; }
|
||||||
|
|
||||||
public Guid? HistoryFileRecordId { get; set; }
|
public Guid HistoryFileRecordId { get; set; }
|
||||||
|
|
||||||
public bool IsAuthorizedView { get; set; }
|
public bool IsAuthorizedView { get; set; }
|
||||||
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
public Guid? PDFFileRecordId { get; set; }
|
public Guid PDFFileRecordId { get; set; }
|
||||||
|
|
||||||
public Guid? SignFileRecordId { get; set; }
|
public Guid SignFileRecordId { get; set; }
|
||||||
|
|
||||||
public int State { get; set; }
|
public int State { get; set; }
|
||||||
|
|
||||||
|
@ -42,28 +41,8 @@ public class TrialFinalRecordAddOrEdit
|
||||||
|
|
||||||
public string Version { get; set; }
|
public string Version { get; set; }
|
||||||
|
|
||||||
public Guid? WordFileRecordId { get; set; }
|
public Guid WordFileRecordId { get; set; }
|
||||||
|
}
|
||||||
/// <summary>
|
|
||||||
/// 定稿PDF
|
|
||||||
/// </summary>
|
|
||||||
public TrialFile PDFFileRecord { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 定稿Word
|
|
||||||
/// </summary>
|
|
||||||
public TrialFile WordFileRecord { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 签名页
|
|
||||||
/// </summary>
|
|
||||||
public TrialFile SignFileRecord { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 历史记录
|
|
||||||
/// </summary>
|
|
||||||
public TrialFile HistoryFileRecord { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class TrialFinalRecordQuery : PageInput
|
public class TrialFinalRecordQuery : PageInput
|
||||||
{
|
{
|
||||||
|
@ -72,7 +51,10 @@ public class TrialFinalRecordQuery : PageInput
|
||||||
public bool? IsAuthorizedView { get; set; }
|
public bool? IsAuthorizedView { get; set; }
|
||||||
|
|
||||||
public string? Name { get; set; }
|
public string? Name { get; set; }
|
||||||
|
|
||||||
|
public Guid? PDFFileRecordId { get; set; }
|
||||||
|
|
||||||
|
public Guid? SignFileRecordId { get; set; }
|
||||||
|
|
||||||
public int? State { get; set; }
|
public int? State { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class TrialFileTypeService(IRepository<TrialFileType> _trialFileTypeRepos
|
||||||
TrialId = inDto.TrialId
|
TrialId = inDto.TrialId
|
||||||
});
|
});
|
||||||
var trialFileTypeList = await _trialFileTypeRepository.Where(x=>x.TrialId==inDto.TrialId)
|
var trialFileTypeList = await _trialFileTypeRepository.Where(x=>x.TrialId==inDto.TrialId)
|
||||||
.WhereIf(inDto.IsAuthorizedView, x => x.IsAuthorizedView)
|
.WhereIf(inDto.IsCheck, x => x.IsEnable)
|
||||||
.OrderBy(x=>x.ShowOrder)
|
.OrderBy(x=>x.ShowOrder)
|
||||||
.ProjectTo<TrialFileTypeView>(_mapper.ConfigurationProvider)
|
.ProjectTo<TrialFileTypeView>(_mapper.ConfigurationProvider)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
@ -153,18 +153,6 @@ public class TrialFileTypeService(IRepository<TrialFileType> _trialFileTypeRepos
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 修改授权状态
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="inDto"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost]
|
|
||||||
public async Task<IResponseOutput> SetAuthorizedView(SetAuthorizedViewInDto inDto)
|
|
||||||
{
|
|
||||||
await _trialFileTypeRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new TrialFileType() { IsAuthorizedView = inDto.IsAuthorizedView }, true);
|
|
||||||
return ResponseOutput.Ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,16 +27,13 @@ public class TrialFinalRecordService(IRepository<TrialFinalRecord> _trialFinalRe
|
||||||
|
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<PageOutput<TrialFinalRecordView>> GetTrialFinalRecordList(TrialFinalRecordQuery inDto)
|
public async Task<PageOutput<TrialFinalRecordView>> GetTrialFinalRecordList(TrialFinalRecordQuery inQuery)
|
||||||
{
|
{
|
||||||
|
|
||||||
var trialFinalRecordQueryable = _trialFinalRecordRepository
|
var trialFinalRecordQueryable = _trialFinalRecordRepository
|
||||||
.WhereIf(inDto.Name.IsNotNullOrEmpty(),x=>x.Name.Contains(inDto.Name))
|
.ProjectTo<TrialFinalRecordView>(_mapper.ConfigurationProvider);
|
||||||
.WhereIf(inDto.Version.IsNotNullOrEmpty(), x => x.Version.Contains(inDto.Version))
|
|
||||||
.WhereIf(inDto.IsAuthorizedView!=null, x => x.IsAuthorizedView==inDto.IsAuthorizedView)
|
|
||||||
.ProjectTo<TrialFinalRecordView>(_mapper.ConfigurationProvider);
|
|
||||||
|
|
||||||
var pageList = await trialFinalRecordQueryable.ToPagedListAsync(inDto);
|
var pageList = await trialFinalRecordQueryable.ToPagedListAsync(inQuery);
|
||||||
|
|
||||||
return pageList;
|
return pageList;
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,8 +127,6 @@ public class TrialFileType : BaseFullAuditEntity
|
||||||
[Comment("是否确认收入项")]
|
[Comment("是否确认收入项")]
|
||||||
public bool IsConfirmRecord { get; set; }
|
public bool IsConfirmRecord { get; set; }
|
||||||
|
|
||||||
[Comment("是否授权查看")]
|
|
||||||
public bool IsAuthorizedView { get; set; }
|
|
||||||
|
|
||||||
[Comment("首次定稿日期")]
|
[Comment("首次定稿日期")]
|
||||||
public DateOnly FirstFinalDate { get; set; }
|
public DateOnly FirstFinalDate { get; set; }
|
||||||
|
|
|
@ -12,37 +12,6 @@ namespace IRaCIS.Core.Domain.Models;
|
||||||
[Table("TrialFinalRecord")]
|
[Table("TrialFinalRecord")]
|
||||||
public class TrialFinalRecord : BaseFullAuditEntity
|
public class TrialFinalRecord : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
#region 文件
|
|
||||||
/// <summary>
|
|
||||||
/// 定稿PDF
|
|
||||||
/// </summary>
|
|
||||||
[ForeignKey("PDFFileRecordId")]
|
|
||||||
public TrialFile PDFFileRecord { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 定稿Word
|
|
||||||
/// </summary>
|
|
||||||
[ForeignKey("WordFileRecordId")]
|
|
||||||
public TrialFile WordFileRecord { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 签名页
|
|
||||||
/// </summary>
|
|
||||||
[ForeignKey("SignFileRecordId")]
|
|
||||||
public TrialFile SignFileRecord { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 历史记录
|
|
||||||
/// </summary>
|
|
||||||
[ForeignKey("HistoryFileRecordId")]
|
|
||||||
public TrialFile HistoryFileRecord { get; set; }
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
[Comment("关联项目文件类型")]
|
[Comment("关联项目文件类型")]
|
||||||
|
@ -63,16 +32,16 @@ public class TrialFinalRecord : BaseFullAuditEntity
|
||||||
|
|
||||||
|
|
||||||
[Comment("定稿PDF")]
|
[Comment("定稿PDF")]
|
||||||
public Guid? PDFFileRecordId { get; set; }
|
public Guid PDFFileRecordId { get; set; }
|
||||||
|
|
||||||
[Comment("定稿Word")]
|
[Comment("定稿Word")]
|
||||||
public Guid? WordFileRecordId { get; set; }
|
public Guid WordFileRecordId { get; set; }
|
||||||
|
|
||||||
[Comment("签名页")]
|
[Comment("签名页")]
|
||||||
public Guid? SignFileRecordId { get; set; }
|
public Guid SignFileRecordId { get; set; }
|
||||||
|
|
||||||
[Comment("历史记录")]
|
[Comment("历史记录")]
|
||||||
public Guid? HistoryFileRecordId { get; set; }
|
public Guid HistoryFileRecordId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue