添加项目文件。
This commit is contained in:
@@ -0,0 +1,231 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using IRaCIS.Core.Infrastructure.Extention;
|
||||
|
||||
namespace IRaCIS.Application.Contracts
|
||||
{
|
||||
/// <summary>
|
||||
///后台 工作量审核视图模型
|
||||
/// </summary>
|
||||
public class WorkLoadDetailDTO : WorkloadDTO
|
||||
{
|
||||
public DateTime CreateTime { get; set; }
|
||||
public string ChineseName { get; set; } = String.Empty;
|
||||
|
||||
public string FirstName { get; set; } = String.Empty;
|
||||
public string LastName { get; set; } = String.Empty;
|
||||
public string Code { get; set; } = String.Empty;
|
||||
public string Indication { get; set; } = String.Empty;
|
||||
public int RowIntId { get; set; }
|
||||
public Guid RowGuid { get; set; }
|
||||
public string YearMonthStr { get; set; } = String.Empty;
|
||||
|
||||
public string WorkTimeStr => YearMonthStr;
|
||||
|
||||
public bool IsLock { get; set; } = false;
|
||||
}
|
||||
|
||||
public class WorkLoadDetailViewModel : WorkloadDTO
|
||||
{
|
||||
public DateTime CreateTime { get; set; }
|
||||
public string ChineseName { get; set; } = String.Empty;
|
||||
public string FirstName { get; set; } = String.Empty;
|
||||
public string LastName { get; set; } = String.Empty;
|
||||
public string Code { get; set; } = String.Empty;
|
||||
public string Indication { get; set; } = String.Empty;
|
||||
|
||||
public Guid RowGuid { get; set; }
|
||||
public string YearMonthStr { get; set; } = String.Empty;
|
||||
|
||||
public bool IsLock { get; set; } = false;
|
||||
public string DeclareTimeStr => CreateTime.ToString("yyyy-MM-dd");
|
||||
|
||||
public string WorkTimeStr => WorkTime.ToString("yyyy-MM-dd");
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class CalculatePaymentDTO : WorkloadDTO
|
||||
{
|
||||
public string TrialCode { get; set; } = String.Empty;
|
||||
public decimal? TrialAdditional { get; set; }
|
||||
public decimal AdjustmentMultiple { get; set; }
|
||||
//public double RankPrice { get; set; }
|
||||
public decimal PersonalAdditional { get; set; }
|
||||
public decimal TimepointPrice { get; set; }
|
||||
public decimal TimepointIn24HPrice { get; set; }
|
||||
public decimal TimepointIn48HPrice { get; set; }
|
||||
public decimal AdjudicationPrice { get; set; }
|
||||
public decimal AdjudicationIn24HPrice { get; set; }
|
||||
public decimal AdjudicationIn48HPrice { get; set; }
|
||||
public decimal GlobalPrice { get; set; }
|
||||
public decimal TrainingPrice { get; set; }
|
||||
public decimal DowntimePrice { get; set; }
|
||||
public decimal RefresherTrainingPrice { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 工作量审核数据库查询模型
|
||||
/// </summary>
|
||||
public class WorkloadDTO
|
||||
{
|
||||
public Guid? Id { get; set; }
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public Guid DoctorId { get; set; }
|
||||
|
||||
public int DataFrom { get; set; }
|
||||
|
||||
public DateTime WorkTime { get; set; }
|
||||
|
||||
public int Training { get; set; }
|
||||
|
||||
public int Downtime { get; set; }
|
||||
|
||||
public int Timepoint { get; set; }
|
||||
|
||||
public int TimepointIn24H { get; set; }
|
||||
|
||||
public int TimepointIn48H { get; set; }
|
||||
|
||||
public int Adjudication { get; set; }
|
||||
|
||||
public int AdjudicationIn24H { get; set; }
|
||||
|
||||
public int AdjudicationIn48H { get; set; }
|
||||
|
||||
public int Global { get; set; }
|
||||
public int RefresherTraining { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 工作量分页列表模型 医生端查询模型
|
||||
/// </summary>
|
||||
public class WorkLoadQueryDTO : PageInput
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
public int WorkLoadFromStatus { get; set; } // 关联枚举
|
||||
public DateTime? SearchBeginDateTime { get; set; }
|
||||
public DateTime? SearchEndDateTime { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 后台查询模型
|
||||
/// </summary>
|
||||
public class WorkLoadStatsQueryDTO : PageInput
|
||||
{
|
||||
public Guid? TrialId { get; set; }
|
||||
public Guid? DoctorId { get; set; } = Guid.Empty;
|
||||
public List<int> WorkLoadFromStatus { get; set; } = new List<int>(); // 关联枚举
|
||||
public DateTime? SearchBeginDateTime { get; set; }
|
||||
public DateTime? SearchEndDateTime { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class WorkLoadDetailQueryDTO
|
||||
{
|
||||
public Guid TrialId { get; set; } = Guid.Empty;
|
||||
public Guid DoctorId { get; set; } = Guid.Empty;
|
||||
public string YearMonthStr { get; set; } = String.Empty;
|
||||
}
|
||||
|
||||
public class CalculateDoctorAndMonthDTO
|
||||
{
|
||||
[Required(ErrorMessage = "需要有效的时间")]
|
||||
public DateTime CalculateMonth { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "需要有效的医生列表")]
|
||||
public List<Guid> NeedCalculateReviewers { get; set; } = new List<Guid>();
|
||||
}
|
||||
|
||||
public class WorkLoadDoctorQueryDTO : PageInput
|
||||
{
|
||||
public Guid TrialId { get; set; } = Guid.Empty;
|
||||
}
|
||||
|
||||
public class WorkLoadCommand : WorkloadDTO
|
||||
{
|
||||
public Guid CreateUserId { get; set; }
|
||||
public int CreateUserType { get; set; }
|
||||
public Guid UpdateUserId { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class ExistWorkloadViewModel
|
||||
{
|
||||
public bool IsExist { get; set; }
|
||||
public WorkloadDTO WorkLoad { get; set; } = new WorkloadDTO();
|
||||
}
|
||||
|
||||
public class WorkloadCommand : WorkloadDTO
|
||||
{
|
||||
}
|
||||
|
||||
public class WorkloadExistQueryDTO
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid DoctorId { get; set; }
|
||||
public DateTime WorkDate { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class WorkLoadAndTrainingDTO
|
||||
{
|
||||
|
||||
public Guid DoctorId { get; set; }/*=Guid.Empty;*/
|
||||
public string Code { get; set; } = String.Empty;
|
||||
public string FirstName { get; set; } = String.Empty;
|
||||
public string LastName { get; set; } = String.Empty;
|
||||
public string ChineseName { get; set; } = String.Empty;
|
||||
|
||||
public DateTime? EnrollTime { get; set; }
|
||||
|
||||
public int ReviewerReadingType { get; set; }
|
||||
|
||||
public string? EnrollTimeStr => EnrollTime?.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
|
||||
public string? UpdateTimeStr => UpdateTime?.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
public int? TrainingTimes { get; set; }
|
||||
public int? Downtime { get; set; }
|
||||
|
||||
//读片点
|
||||
public int? Timepoint { get; set; }
|
||||
public int? TimepointIn24H { get; set; }
|
||||
public int? TimepointIn48H { get; set; }
|
||||
|
||||
//裁判阅片
|
||||
public int? Adjudication { get; set; }
|
||||
public int? AdjudicationIn24H { get; set; }
|
||||
public int? AdjudicationIn48H { get; set; }
|
||||
|
||||
//全局阅片
|
||||
public int? Global { get; set; }
|
||||
|
||||
public int? RefresherTraining { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class WorkLoadAndAgreementDTO : WorkLoadAndTrainingDTO
|
||||
{
|
||||
public DateTime? OutEnrollTime { get; set; }
|
||||
public Guid AgreementId { get; set; }
|
||||
|
||||
public string AgreementPath { get; set; } = String.Empty;
|
||||
|
||||
public string? AgreementFileName => AgreementPath?.Split('/').Last();
|
||||
|
||||
public string AgreementFullPath => AgreementPath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace IRaCIS.Core.Application.Service.WorkLoad.DTO
|
||||
{
|
||||
public class EnrollViewModel
|
||||
{
|
||||
[StringLength(50)]
|
||||
public string ChineseName { get; set; } = string.Empty;
|
||||
|
||||
|
||||
[StringLength(100)]
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
|
||||
|
||||
[StringLength(100)]
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
|
||||
public decimal? AdjustmentMultiple { get; set; } = 0;
|
||||
|
||||
public Guid DoctorId { get; set; }
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public int? Training { get; set; }
|
||||
|
||||
public int? RefresherTraining { get; set; }
|
||||
|
||||
public int? Timepoint { get; set; }
|
||||
|
||||
public int? Timepoint48H { get; set; }
|
||||
|
||||
public int? Timepoint24H { get; set; }
|
||||
|
||||
public int? Adjudication { get; set; }
|
||||
|
||||
public int? Adjudication48H { get; set; }
|
||||
|
||||
public int? Adjudication24H { get; set; }
|
||||
|
||||
public int? Global { get; set; }
|
||||
|
||||
|
||||
public int? Downtime { get; set; }
|
||||
|
||||
public string ReviewerCode { get; set; } = string.Empty;
|
||||
|
||||
public int? Code { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class EnrollGetQuery:PageInput
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class EnrollCommand
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
|
||||
public decimal? Training { get; set; }
|
||||
|
||||
public decimal? RefresherTraining { get; set; }
|
||||
|
||||
public decimal? Timepoint { get; set; }
|
||||
|
||||
public decimal? Timepoint48H { get; set; }
|
||||
|
||||
public decimal? Timepoint24H { get; set; }
|
||||
|
||||
public decimal? Adjudication { get; set; }
|
||||
|
||||
public decimal? Adjudication48H { get; set; }
|
||||
|
||||
public decimal? Adjudication24H { get; set; }
|
||||
|
||||
public decimal? Global { get; set; }
|
||||
|
||||
|
||||
public decimal? Downtime { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
using IRaCIS.Core.Infrastructure.Extention;
|
||||
|
||||
namespace IRaCIS.Application.Contracts
|
||||
{
|
||||
#region TP
|
||||
public class WorkloadTPDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid SiteId { get; set; }
|
||||
public string SiteName { get; set; } = String.Empty;
|
||||
public Guid SubjectId { get; set; }
|
||||
public string SubjectCode { get; set; } = String.Empty;
|
||||
public Guid SubjectVisitId { get; set; }
|
||||
public string VisitName { get; set; } = String.Empty;
|
||||
public decimal VisitNum { get; set; }
|
||||
public Guid StudyId { get; set; }
|
||||
public string StudyCode { get; set; } = String.Empty;
|
||||
public string TimepointCode { get; set; } = String.Empty;
|
||||
public Guid ReviewerId { get; set; }
|
||||
public string ReviewerCode { get; set; } = String.Empty;
|
||||
public string ReviewerFirstName { get; set; } = String.Empty;
|
||||
public string ReviewerLastName { get; set; } = String.Empty;
|
||||
public string ReviewerChineseName { get; set; } = String.Empty;
|
||||
public int Status { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Global
|
||||
public class WorkloadGlobalDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid SiteId { get; set; }
|
||||
public string SiteName { get; set; } = String.Empty;
|
||||
public Guid VisitId { get; set; }
|
||||
public string VisitName { get; set; } = String.Empty;
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid SubjectId { get; set; }
|
||||
public string SubjectCode { get; set; } = String.Empty;
|
||||
public decimal VisitNum { get; set; }
|
||||
|
||||
public string GlobalCode { get; set; } = String.Empty;
|
||||
public Guid ReviewerId { get; set; }
|
||||
public string ReviewerCode { get; set; } = String.Empty;
|
||||
public string ReviewerFirstName { get; set; } = String.Empty;
|
||||
public string ReviewerLastName { get; set; } = String.Empty;
|
||||
public string ReviewerChineseName { get; set; } = String.Empty;
|
||||
public int Status { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region AD
|
||||
public class WorkloadADDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid SiteId { get; set; }
|
||||
public string SiteName { get; set; }=String.Empty;
|
||||
public Guid SubjectId { get; set; }
|
||||
public string SubjectCode { get; set; } = String.Empty;
|
||||
public string ADCode { get; set; } = String.Empty;
|
||||
public Guid ReviewerId { get; set; }
|
||||
public string ReviewerCode { get; set; } = String.Empty;
|
||||
public string ReviewerFirstName { get; set; } = String.Empty;
|
||||
public string ReviewerLastName { get; set; } = String.Empty;
|
||||
public string ReviewerChineseName { get; set; } = String.Empty;
|
||||
public int Status { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public Guid Global1Id { get; set; }
|
||||
public Guid Global2Id { get; set; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
public class WorkloadDistributionQueryParam : PageInput
|
||||
{
|
||||
public Guid TrialId { get; set; } = Guid.Empty;
|
||||
public Guid? SiteId { get; set; } = Guid.Empty;
|
||||
public string SubjectCode { get; set; } = string.Empty;
|
||||
public string WorkloadCode { get; set; } = string.Empty;
|
||||
public string Reviewer { get; set; } = string.Empty;
|
||||
public int? Status { get; set; }
|
||||
public int? GroupId { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class WorkloadTPInfo
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid StudyId { get; set; }
|
||||
}
|
||||
public class WorkloadTPCommand
|
||||
{
|
||||
public List<WorkloadTPInfo> TpList { get; set; } = new List<WorkloadTPInfo>();
|
||||
public Guid ReviewerId { get; set; }
|
||||
public string ReviewerName { get; set; } = String.Empty;
|
||||
}
|
||||
|
||||
public class WorkloadGlobalInfo
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid SubjectId { get; set; }
|
||||
public decimal VisitNum { get; set; }
|
||||
}
|
||||
public class WorkloadGlobalCommand
|
||||
{
|
||||
public List<WorkloadGlobalInfo> GlobalList { get; set; } = new List<WorkloadGlobalInfo>();
|
||||
public Guid ReviewerId { get; set; }
|
||||
public string ReviewerName { get; set; } = String.Empty;
|
||||
}
|
||||
public class WorkloadAdCommand
|
||||
{
|
||||
public List<Guid> IdList { get; set; } = new List<Guid>();
|
||||
public Guid ReviewerId { get; set; }
|
||||
public string ReviewerName { get; set; } = String.Empty;
|
||||
}
|
||||
|
||||
//public class WorkloadDistributionUpdateCommand
|
||||
//{
|
||||
// public Guid Id { get; set; }
|
||||
// public Guid? ReviewerId { get; set; }
|
||||
//}
|
||||
|
||||
public class WorkloadDetailDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid WorkloadId { get; set; }
|
||||
public string OptUserName { get; set; } = String.Empty;
|
||||
public DateTime OptTime { get; set; }
|
||||
public string ReviewerFirstName { get; set; } = String.Empty;
|
||||
public string ReviewerLastName { get; set; } = String.Empty;
|
||||
public string ReviewerChineseName { get; set; } = String.Empty;
|
||||
public int Status { get; set; }
|
||||
}
|
||||
|
||||
//public class WorkloadDetailQueryParam
|
||||
//{
|
||||
// public int WorkloadType { get; set; } //1-tp,2-global,3-ad
|
||||
// public Guid WorkloadId { get; set; }
|
||||
|
||||
//}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user