Compare commits

..

No commits in common. "d789c4800466078379f722768c1704e785f20557" and "01ade2d62fd8413bfa32a32670571c448dcd539e" have entirely different histories.

5 changed files with 102 additions and 110 deletions

View File

@ -282,19 +282,10 @@ namespace IRaCIS.Application.Services
Console.WriteLine(RSAEncryption.Encrypt(publicKey, MD5Helper.Md5("123456"))); Console.WriteLine(RSAEncryption.Encrypt(publicKey, MD5Helper.Md5("123456")));
//U2FsdGVkX1+atIRsUP6uhWIMHIVmn7U2sy4HlgWiWJG1qc0WdYyQqzgTJ1JLeQGHvYrIYm90/YCkBYclYbnm1g==
string plainText = "Hello, BouncyCastle!"; string plainText = "Hello, BouncyCastle!";
string key = "12345678901234567890123456789012"; // AES 密钥长度应为 16 字节128 位) string key = "12345678901234567890123456789012"; // AES 密钥长度应为 16 字节128 位)
string iv = "your-iv-12345678"; // IV 长度为 16 字节 string iv = "your-iv-12345678"; // IV 长度为 16 字节
Console.WriteLine(AesEncryption.Encrypt(MD5Helper.Md5("123456"), key));
Console.WriteLine(AesEncryption.Encrypt("cyldev", key));
Console.WriteLine($"原始文本: {plainText}"); Console.WriteLine($"原始文本: {plainText}");
// 加密 // 加密

View File

@ -1,15 +1,12 @@
using Microsoft.EntityFrameworkCore;
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models; namespace IRaCIS.Core.Domain.Models
[Comment("医生 - 医生字典关联表")]
[Table("DoctorDictionary")]
public class DoctorDictionary : Entity
{ {
[Table("DoctorDictionary")]
public partial class DoctorDictionary : Entity
{
#region 导航属性 #region 导航属性
[JsonIgnore] [JsonIgnore]
[ForeignKey("DoctorId")] [ForeignKey("DoctorId")]
@ -20,10 +17,12 @@ public class DoctorDictionary : Entity
public Dictionary Dictionary { get; set; } public Dictionary Dictionary { get; set; }
#endregion #endregion
public Guid DictionaryId { get; set; }
[StringLength(50)]
public string KeyName { get; set; } = string.Empty;
public Guid DoctorId { get; set; } public Guid DoctorId { get; set; }
[StringLength(400)] public Guid DictionaryId { get; set; }
public string KeyName { get; set; } = null!; }
} }

View File

@ -1,52 +1,50 @@
using Microsoft.EntityFrameworkCore;
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models; namespace IRaCIS.Core.Domain.Models
[Comment("Ò½Éú¼Æ·Ñ - ¹¤×÷Á¿¼Ç¼±í")]
[Table("DoctorWorkload")]
public partial class Workload :BaseFullAuditEntity
{ {
[Table("DoctorWorkload")]
public partial class Workload :BaseFullAuditEntity
{
#region µ¼º½ÊôÐÔ #region µ¼º½ÊôÐÔ
#endregion #endregion
[Required]
public int Adjudication { get; set; } public Guid TrialId { get; set; }
public int AdjudicationIn24H { get; set; }
public int AdjudicationIn48H { get; set; }
public int CreateUserType { get; set; }
public int DataFrom { get; set; }
public Guid DoctorId { 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 Downtime { get; set; }
public int Global { get; set; }
public bool IsLock { get; set; }
public int RefresherTraining { get; set; }
public int Timepoint { get; set; } public int Timepoint { get; set; }
public int TimepointIn24H { get; set; } public int TimepointIn24H { get; set; }
public int TimepointIn48H { get; set; } public int TimepointIn48H { get; set; }
public int Training { get; set; } public int Adjudication { get; set; }
public Guid TrialId { get; set; } public int AdjudicationIn24H { get; set; }
public DateTime WorkTime { get; set; } public int AdjudicationIn48H { get; set; }
[StringLength(400)] public int Global { get; set; }
public string YearMonth { get; set; } = null!; public int RefresherTraining { get; set; }
public int CreateUserType { get; set; }
[Required]
public string YearMonth { get; set; } = string.Empty;
public bool IsLock { get; set; } = false;
}
} }

View File

@ -1,59 +1,64 @@
using Microsoft.EntityFrameworkCore;
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models; namespace IRaCIS.Core.Domain.Models
[Comment("Ò½Éú - ½ÌÓýÐÅÏ¢")]
[Table("Education")]
public class Education : BaseFullAuditEntity
{ {
[Table("Education")]
public partial class Education : BaseFullAuditEntity
{
#region 导航属性 #region 导航属性
#endregion #endregion
public DateOnly? BeginDate { get; set; }
[StringLength(400)]
public string City { get; set; } = null!;
[StringLength(400)]
public string CityCN { get; set; } = null!;
[StringLength(400)]
public string Country { get; set; } = null!;
[StringLength(400)]
public string CountryCN { get; set; } = null!;
[StringLength(400)]
public string Degree { get; set; } = null!;
[StringLength(400)]
public string DegreeCN { get; set; } = null!;
public Guid DoctorId { get; set; } public Guid DoctorId { get; set; }
public DateOnly? EndDate { get; set; } [Column(TypeName = "date")]
public DateTime? BeginDate { get; set; }
[Column(TypeName = "date")]
public DateTime? EndDate { get; set; }
[StringLength(400)] [StringLength(50)]
public string Major { get; set; } = null!; public string Degree { get; set; } = string.Empty;
[StringLength(100)]
public string Major { get; set; } = string.Empty;
[StringLength(400)] [StringLength(100)]
public string MajorCN { get; set; } = null!; public string Organization { get; set; } = string.Empty;
[StringLength(400)]
public string Organization { get; set; } = null!;
[StringLength(400)] [StringLength(50)]
public string OrganizationCN { get; set; } = null!; public string Country { get; set; } = string.Empty;
[StringLength(400)]
public string Province { get; set; } = null!;
[StringLength(400)] [StringLength(50)]
public string ProvinceCN { get; set; } = null!; public string Province { get; set; } = string.Empty;
[StringLength(50)]
public string City { get; set; } = string.Empty;
[StringLength(50)]
public string DegreeCN { get; set; } = string.Empty;
[StringLength(100)]
public string MajorCN { get; set; } = string.Empty;
[StringLength(100)]
public string OrganizationCN { get; set; } = string.Empty;
[StringLength(50)]
public string CountryCN { get; set; } = string.Empty;
[StringLength(50)]
public string ProvinceCN { get; set; } = string.Empty;
[StringLength(50)]
public string CityCN { get; set; } = string.Empty;
public int ShowOrder { get; set; } public int ShowOrder { get; set; }
}
} }

View File

@ -1,29 +1,28 @@
using Microsoft.EntityFrameworkCore;
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models; namespace IRaCIS.Core.Domain.Models
[Comment("Ò½Éú¼Æ·Ñ - Ö§¸¶ÐÅÏ¢±í")]
[Table("DoctorPayInformation")]
public partial class ReviewerPayInformation : BaseFullAuditEntity
{ {
[DecimalPrecision(18, 2)] [Table("DoctorPayInformation")]
public decimal Additional { get; set; } public partial class ReviewerPayInformation : BaseFullAuditEntity
{
[StringLength(400)]
public string BankCardNumber { get; set; } = null!;
public string BankName { get; set; } = null!;
public Guid DoctorId { get; set; } public Guid DoctorId { get; set; }
[StringLength(200)]
public string DoctorNameInBank { get; set; } = string.Empty;
public string DoctorNameInBank { get; set; } = null!; [StringLength(100)]
public string IDCard { get; set; } = string.Empty;
[StringLength(400)] [StringLength(100)]
public string IDCard { get; set; } = null!; public string BankCardNumber { get; set; } = string.Empty;
[StringLength(200)]
public string BankName { get; set; } = string.Empty;
public Guid RankId { get; set; } public Guid RankId { get; set; }
[Column(TypeName = "decimal(18,2)")]
public decimal Additional { get; set; }
}
} }