|
@@ -37,7 +37,7 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
public virtual DbSet<Message> Messages { get; set; }
|
|
public virtual DbSet<Message> Messages { get; set; }
|
|
|
|
|
|
|
|
- public virtual DbSet<MessageReadRecord> MessageReadRecords { get;set;}
|
|
|
|
|
|
|
+ public virtual DbSet<MessageReadRecord> MessageReadRecords { get; set; }
|
|
|
|
|
|
|
|
public virtual DbSet<MessagePerformanceItem> MessagePerformanceItems { get; set; }
|
|
public virtual DbSet<MessagePerformanceItem> MessagePerformanceItems { get; set; }
|
|
|
|
|
|
|
@@ -99,7 +99,7 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
public virtual DbSet<DepartmentPosition> DepartmentPositions { get; set; }
|
|
public virtual DbSet<DepartmentPosition> DepartmentPositions { get; set; }
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
|
{
|
|
{
|
|
|
if (!optionsBuilder.IsConfigured)
|
|
if (!optionsBuilder.IsConfigured)
|
|
@@ -113,13 +113,14 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
|
{
|
|
{
|
|
|
- modelBuilder.Entity<CaseCeoffcient>( entity=>
|
|
|
|
|
|
|
+ modelBuilder.Entity<CaseCeoffcient>(entity =>
|
|
|
{
|
|
{
|
|
|
entity.ToTable("CaseCeofficient");
|
|
entity.ToTable("CaseCeofficient");
|
|
|
|
|
|
|
|
- entity.HasKey(e=>e.Ceoffcient);
|
|
|
|
|
|
|
+ entity.HasKey(e => e.Ceoffcient);
|
|
|
});
|
|
});
|
|
|
- modelBuilder.Entity<BasePointRule>(entity=> {
|
|
|
|
|
|
|
+ modelBuilder.Entity<BasePointRule>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("BasePointRule");
|
|
entity.ToTable("BasePointRule");
|
|
|
|
|
|
|
|
entity.Property(e => e.PointExpress).HasMaxLength(100);
|
|
entity.Property(e => e.PointExpress).HasMaxLength(100);
|
|
@@ -137,7 +138,7 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
entity.Property(e => e.Status).HasColumnName("status");
|
|
entity.Property(e => e.Status).HasColumnName("status");
|
|
|
}
|
|
}
|
|
|
- ) ;
|
|
|
|
|
|
|
+ );
|
|
|
modelBuilder.Entity<Customer>(entity =>
|
|
modelBuilder.Entity<Customer>(entity =>
|
|
|
{
|
|
{
|
|
|
entity.ToTable("Customer");
|
|
entity.ToTable("Customer");
|
|
@@ -226,7 +227,7 @@ namespace wispro.sp.api
|
|
|
entity.Property(e => e.PreOastaffId).HasColumnName("PreOAStaffId");
|
|
entity.Property(e => e.PreOastaffId).HasColumnName("PreOAStaffId");
|
|
|
|
|
|
|
|
entity.Property(e => e.ReturnDate).HasColumnType("date");
|
|
entity.Property(e => e.ReturnDate).HasColumnType("date");
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
entity.HasOne(d => d.Customer)
|
|
entity.HasOne(d => d.Customer)
|
|
|
.WithMany(p => p.PerformanceItems)
|
|
.WithMany(p => p.PerformanceItems)
|
|
@@ -264,7 +265,7 @@ namespace wispro.sp.api
|
|
|
{
|
|
{
|
|
|
entity.ToTable("ProjectInfo");
|
|
entity.ToTable("ProjectInfo");
|
|
|
|
|
|
|
|
- entity.HasKey(entity=>entity.CaseNo);
|
|
|
|
|
|
|
+ entity.HasKey(entity => entity.CaseNo);
|
|
|
|
|
|
|
|
entity.HasOne(d => d.Customer)
|
|
entity.HasOne(d => d.Customer)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
@@ -281,14 +282,14 @@ namespace wispro.sp.api
|
|
|
.HasForeignKey(d => d.ReviewerId)
|
|
.HasForeignKey(d => d.ReviewerId)
|
|
|
.HasConstraintName("FK_ProjectInfo_Reviewer");
|
|
.HasConstraintName("FK_ProjectInfo_Reviewer");
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
modelBuilder.Entity<ProjectContentRecord>(entity =>
|
|
modelBuilder.Entity<ProjectContentRecord>(entity =>
|
|
|
{
|
|
{
|
|
|
entity.ToTable("ProjectContentRecord");
|
|
entity.ToTable("ProjectContentRecord");
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
entity.HasOne(d => d.CalMonth)
|
|
entity.HasOne(d => d.CalMonth)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey(d => d.CalMonthId)
|
|
.HasForeignKey(d => d.CalMonthId)
|
|
@@ -317,11 +318,11 @@ namespace wispro.sp.api
|
|
|
entity.ToTable("ProjectWorkContent");
|
|
entity.ToTable("ProjectWorkContent");
|
|
|
|
|
|
|
|
entity.HasOne(d => d.ContentRecord)
|
|
entity.HasOne(d => d.ContentRecord)
|
|
|
- .WithMany(d=>d.ProjectWorkContents)
|
|
|
|
|
- .HasForeignKey(d=>d.ContentRecordId)
|
|
|
|
|
|
|
+ .WithMany(d => d.ProjectWorkContents)
|
|
|
|
|
+ .HasForeignKey(d => d.ContentRecordId)
|
|
|
.HasConstraintName("FK_ProjectRecord_WorkflowContent");
|
|
.HasConstraintName("FK_ProjectRecord_WorkflowContent");
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
@@ -400,7 +401,7 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
entity.HasOne(d => d.CalMonth)
|
|
entity.HasOne(d => d.CalMonth)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
- .HasForeignKey(d=>d.CalMonthId);
|
|
|
|
|
|
|
+ .HasForeignKey(d => d.CalMonthId);
|
|
|
|
|
|
|
|
entity.HasOne(d => d.Staff)
|
|
entity.HasOne(d => d.Staff)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
@@ -428,7 +429,7 @@ namespace wispro.sp.api
|
|
|
entity.HasOne(d => d.Grade)
|
|
entity.HasOne(d => d.Grade)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey(d => d.GradeId);
|
|
.HasForeignKey(d => d.GradeId);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
modelBuilder.Entity<AllocationRatio>(entity =>
|
|
modelBuilder.Entity<AllocationRatio>(entity =>
|
|
@@ -451,7 +452,7 @@ namespace wispro.sp.api
|
|
|
.HasForeignKey(d => d.ItemId)
|
|
.HasForeignKey(d => d.ItemId)
|
|
|
.OnDelete(DeleteBehavior.ClientSetNull)
|
|
.OnDelete(DeleteBehavior.ClientSetNull)
|
|
|
.HasConstraintName("FK_FK_AllocationRatio_PerformanceItem");
|
|
.HasConstraintName("FK_FK_AllocationRatio_PerformanceItem");
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
modelBuilder.Entity<Message>(entity =>
|
|
modelBuilder.Entity<Message>(entity =>
|
|
@@ -473,7 +474,7 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
modelBuilder.Entity<MessageReadRecord>(entity =>
|
|
modelBuilder.Entity<MessageReadRecord>(entity =>
|
|
|
{
|
|
{
|
|
|
- entity.HasKey(e => new { e.MessageId,e.StaffId});
|
|
|
|
|
|
|
+ entity.HasKey(e => new { e.MessageId, e.StaffId });
|
|
|
|
|
|
|
|
entity.ToTable("MessageReadRecord");
|
|
entity.ToTable("MessageReadRecord");
|
|
|
|
|
|
|
@@ -493,16 +494,16 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<MessagePerformanceItem>( entity =>
|
|
|
|
|
|
|
+ modelBuilder.Entity<MessagePerformanceItem>(entity =>
|
|
|
{
|
|
{
|
|
|
- entity.HasKey(e=> new { e.ItemId,e.MessageId});
|
|
|
|
|
|
|
+ entity.HasKey(e => new { e.ItemId, e.MessageId });
|
|
|
|
|
|
|
|
entity.HasOne(d => d.Message)
|
|
entity.HasOne(d => d.Message)
|
|
|
.WithMany(m => m.RelatedItem)
|
|
.WithMany(m => m.RelatedItem)
|
|
|
.HasForeignKey(d => d.MessageId)
|
|
.HasForeignKey(d => d.MessageId)
|
|
|
.HasConstraintName("FK_MessagePerformanceItem_Message");
|
|
.HasConstraintName("FK_MessagePerformanceItem_Message");
|
|
|
|
|
|
|
|
- entity.HasOne(d => d.Item )
|
|
|
|
|
|
|
+ entity.HasOne(d => d.Item)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey(d => d.ItemId)
|
|
.HasForeignKey(d => d.ItemId)
|
|
|
.HasConstraintName("FK_MessagePerformanceItem_Item");
|
|
.HasConstraintName("FK_MessagePerformanceItem_Item");
|
|
@@ -513,7 +514,7 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
entity.ToTable("AttachFile");
|
|
entity.ToTable("AttachFile");
|
|
|
|
|
|
|
|
- entity.Property(e=>e.Name).HasMaxLength(200);
|
|
|
|
|
|
|
+ entity.Property(e => e.Name).HasMaxLength(200);
|
|
|
entity.Property(e => e.SavePath).HasMaxLength(200);
|
|
entity.Property(e => e.SavePath).HasMaxLength(200);
|
|
|
|
|
|
|
|
entity.HasOne(d => d.UploadUser)
|
|
entity.HasOne(d => d.UploadUser)
|
|
@@ -523,10 +524,10 @@ namespace wispro.sp.api
|
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
|
|
|
|
|
|
entity.HasOne(d => d.AppealRecord)
|
|
entity.HasOne(d => d.AppealRecord)
|
|
|
- .WithMany(a=>a.AttachFiles)
|
|
|
|
|
|
|
+ .WithMany(a => a.AttachFiles)
|
|
|
.HasForeignKey(d => d.AppealRecordId)
|
|
.HasForeignKey(d => d.AppealRecordId)
|
|
|
.HasConstraintName("FK_AttachFile_AppealRecord")
|
|
.HasConstraintName("FK_AttachFile_AppealRecord")
|
|
|
- .IsRequired(false);
|
|
|
|
|
|
|
+ .IsRequired(false);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
modelBuilder.Entity<AppealType>(entity =>
|
|
modelBuilder.Entity<AppealType>(entity =>
|
|
@@ -559,40 +560,43 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
entity.HasOne(d => d.Item)
|
|
entity.HasOne(d => d.Item)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
- .HasForeignKey(d=>d.ItemId);
|
|
|
|
|
- }) ;
|
|
|
|
|
|
|
+ .HasForeignKey(d => d.ItemId);
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
- modelBuilder.Entity<InputField>(entity=> {
|
|
|
|
|
|
|
+ modelBuilder.Entity<InputField>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("InputField");
|
|
entity.ToTable("InputField");
|
|
|
|
|
|
|
|
- entity.Property(e=>e.FieldName).HasMaxLength(50);
|
|
|
|
|
- entity.Property(e => e.FieldType).HasMaxLength(50);
|
|
|
|
|
|
|
+ entity.Property(e => e.FieldName).HasMaxLength(50);
|
|
|
|
|
+ entity.Property(e => e.FieldType).HasMaxLength(50);
|
|
|
entity.Property(e => e.MapObjectField).HasMaxLength(50);
|
|
entity.Property(e => e.MapObjectField).HasMaxLength(50);
|
|
|
|
|
|
|
|
entity.HasOne(d => d.AppealType)
|
|
entity.HasOne(d => d.AppealType)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
- .HasForeignKey(d=>d.AppealTypeId);
|
|
|
|
|
|
|
+ .HasForeignKey(d => d.AppealTypeId);
|
|
|
|
|
|
|
|
//entity.HasKey(d=>new { d.AppealTypeId,d.AppealState});
|
|
//entity.HasKey(d=>new { d.AppealTypeId,d.AppealState});
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<SelectValue>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<SelectValue>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("SelectValue");
|
|
entity.ToTable("SelectValue");
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
entity.HasOne(d => d.InputField)
|
|
entity.HasOne(d => d.InputField)
|
|
|
- .WithMany(s=>s.SelectValues)
|
|
|
|
|
|
|
+ .WithMany(s => s.SelectValues)
|
|
|
.HasForeignKey(d => d.InputFieldId);
|
|
.HasForeignKey(d => d.InputFieldId);
|
|
|
|
|
|
|
|
//entity.HasKey(d=>new { d.AppealTypeId,d.AppealState});
|
|
//entity.HasKey(d=>new { d.AppealTypeId,d.AppealState});
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<InputFieldValue>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<InputFieldValue>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("InputFieldValue");
|
|
entity.ToTable("InputFieldValue");
|
|
|
|
|
|
|
|
entity.Property(e => e.Value).HasMaxLength(500);
|
|
entity.Property(e => e.Value).HasMaxLength(500);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
entity.HasOne(d => d.InputField)
|
|
entity.HasOne(d => d.InputField)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey(d => d.InputFieldId);
|
|
.HasForeignKey(d => d.InputFieldId);
|
|
@@ -601,20 +605,23 @@ namespace wispro.sp.api
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey(d => d.AppealRecordId);
|
|
.HasForeignKey(d => d.AppealRecordId);
|
|
|
|
|
|
|
|
- //entity.HasKey(d=>new { d.AppealRecordId,d.InputFieldId});
|
|
|
|
|
|
|
+ //entity.HasKey(d=>new { d.AppealRecordId,d.InputFieldId});
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<Department>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<Department>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("Department");
|
|
entity.ToTable("Department");
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<Position>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<Position>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("Position");
|
|
entity.ToTable("Position");
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<DepartmentPosition>(entity=> {
|
|
|
|
|
|
|
+ modelBuilder.Entity<DepartmentPosition>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("DepartmentPosition");
|
|
entity.ToTable("DepartmentPosition");
|
|
|
|
|
|
|
|
entity.HasOne(d => d.department)
|
|
entity.HasOne(d => d.department)
|
|
@@ -623,10 +630,10 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
entity.HasOne(d => d.Position)
|
|
entity.HasOne(d => d.Position)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
- .HasForeignKey(d=>d.PositionId);
|
|
|
|
|
|
|
+ .HasForeignKey(d => d.PositionId);
|
|
|
|
|
|
|
|
entity.HasOne(d => d.Staff)
|
|
entity.HasOne(d => d.Staff)
|
|
|
- .WithMany(d=>d.Positions)
|
|
|
|
|
|
|
+ .WithMany(d => d.Positions)
|
|
|
.HasForeignKey(d => d.StaffId);
|
|
.HasForeignKey(d => d.StaffId);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -654,7 +661,7 @@ namespace wispro.sp.api
|
|
|
modelBuilder.Entity<VerifyCoefficient>().HasData(
|
|
modelBuilder.Entity<VerifyCoefficient>().HasData(
|
|
|
new VerifyCoefficient[]
|
|
new VerifyCoefficient[]
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =5, Coefficient =0.3},
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =5, Coefficient =0.3},
|
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =6, Coefficient =0.3},
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =6, Coefficient =0.3},
|
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =7, Coefficient =0.3},
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =7, Coefficient =0.3},
|
|
@@ -664,7 +671,7 @@ namespace wispro.sp.api
|
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =11, Coefficient =0.5},
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =11, Coefficient =0.5},
|
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =12, Coefficient =0.5},
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =12, Coefficient =0.5},
|
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =13, Coefficient =0.6},
|
|
new VerifyCoefficient() { CheckerId = 1, DoPersonId =13, Coefficient =0.6},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =5, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =5, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =6, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =6, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =7, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =7, Coefficient =0.2},
|
|
@@ -674,7 +681,7 @@ namespace wispro.sp.api
|
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =11, Coefficient =0.4},
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =11, Coefficient =0.4},
|
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =12, Coefficient =0.4},
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =12, Coefficient =0.4},
|
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =13, Coefficient =0.5},
|
|
new VerifyCoefficient() { CheckerId = 2, DoPersonId =13, Coefficient =0.5},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =5, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =5, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =6, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =6, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =7, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =7, Coefficient =0.2},
|
|
@@ -684,7 +691,7 @@ namespace wispro.sp.api
|
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =11, Coefficient =0.4},
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =11, Coefficient =0.4},
|
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =12, Coefficient =0.4},
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =12, Coefficient =0.4},
|
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =13, Coefficient =0.5},
|
|
new VerifyCoefficient() { CheckerId = 3, DoPersonId =13, Coefficient =0.5},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =5, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =5, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =6, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =6, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =7, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =7, Coefficient =0.2},
|
|
@@ -694,7 +701,7 @@ namespace wispro.sp.api
|
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =11, Coefficient =0.4},
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =11, Coefficient =0.4},
|
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =12, Coefficient =0.4},
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =12, Coefficient =0.4},
|
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =13, Coefficient =0.5},
|
|
new VerifyCoefficient() { CheckerId = 4, DoPersonId =13, Coefficient =0.5},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =5, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =5, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =6, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =6, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =7, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =7, Coefficient =0.2},
|
|
@@ -704,7 +711,7 @@ namespace wispro.sp.api
|
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =11, Coefficient =0.4},
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =11, Coefficient =0.4},
|
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =12, Coefficient =0.4},
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =12, Coefficient =0.4},
|
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =13, Coefficient =0.5},
|
|
new VerifyCoefficient() { CheckerId = 5, DoPersonId =13, Coefficient =0.5},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
new VerifyCoefficient() { CheckerId = 6, DoPersonId =5, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 6, DoPersonId =5, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 6, DoPersonId =6, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 6, DoPersonId =6, Coefficient =0.2},
|
|
|
new VerifyCoefficient() { CheckerId = 6, DoPersonId =7, Coefficient =0.2},
|
|
new VerifyCoefficient() { CheckerId = 6, DoPersonId =7, Coefficient =0.2},
|
|
@@ -736,7 +743,7 @@ namespace wispro.sp.api
|
|
|
entity.HasOne(d => d.Reviewer)
|
|
entity.HasOne(d => d.Reviewer)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey(d => d.ReviewerId);
|
|
.HasForeignKey(d => d.ReviewerId);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
entity.HasOne(d => d.DRRAbstract)
|
|
entity.HasOne(d => d.DRRAbstract)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
@@ -827,7 +834,7 @@ namespace wispro.sp.api
|
|
|
new InputField(){Id=4,AppealTypeId =1,AppealState =1,FieldName ="备注",FieldType =typeof(string).ToString() },
|
|
new InputField(){Id=4,AppealTypeId =1,AppealState =1,FieldName ="备注",FieldType =typeof(string).ToString() },
|
|
|
new InputField(){Id=5,AppealTypeId =1,AppealState =1,FieldName ="审核意见",FieldType =typeof(string).ToString()},
|
|
new InputField(){Id=5,AppealTypeId =1,AppealState =1,FieldName ="审核意见",FieldType =typeof(string).ToString()},
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
new InputField(){Id=6,AppealTypeId =2,AppealState =0,FieldName ="案件系数", MapObjectField ="CaseCoefficient",FieldType = typeof(string).ToString() },
|
|
new InputField(){Id=6,AppealTypeId =2,AppealState =0,FieldName ="案件系数", MapObjectField ="CaseCoefficient",FieldType = typeof(string).ToString() },
|
|
|
new InputField(){Id=9,AppealTypeId =2,AppealState =1,FieldName ="备注",FieldType =typeof(string).ToString() },
|
|
new InputField(){Id=9,AppealTypeId =2,AppealState =1,FieldName ="备注",FieldType =typeof(string).ToString() },
|
|
|
new InputField(){Id=10,AppealTypeId =2,AppealState =1,FieldName ="审核意见",FieldType =typeof(string).ToString()},
|
|
new InputField(){Id=10,AppealTypeId =2,AppealState =1,FieldName ="审核意见",FieldType =typeof(string).ToString()},
|
|
@@ -841,7 +848,7 @@ namespace wispro.sp.api
|
|
|
new InputField(){Id=15,AppealTypeId =4,AppealState =0,FieldName ="处理事项", FieldType = typeof(string).ToString() },
|
|
new InputField(){Id=15,AppealTypeId =4,AppealState =0,FieldName ="处理事项", FieldType = typeof(string).ToString() },
|
|
|
new InputField(){Id=16,AppealTypeId =4,AppealState =1,FieldName ="备注",FieldType =typeof(string).ToString() },
|
|
new InputField(){Id=16,AppealTypeId =4,AppealState =1,FieldName ="备注",FieldType =typeof(string).ToString() },
|
|
|
new InputField(){Id=17,AppealTypeId =4,AppealState =1,FieldName ="审核意见",FieldType =typeof(string).ToString()},
|
|
new InputField(){Id=17,AppealTypeId =4,AppealState =1,FieldName ="审核意见",FieldType =typeof(string).ToString()},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
new InputField(){Id=18,AppealTypeId =5,AppealState =0,FieldName ="超期说明",MapObjectField ="OverDueMemo", FieldType = typeof(string).ToString() },
|
|
new InputField(){Id=18,AppealTypeId =5,AppealState =0,FieldName ="超期说明",MapObjectField ="OverDueMemo", FieldType = typeof(string).ToString() },
|
|
|
new InputField(){Id=21,AppealTypeId =5,AppealState =1,FieldName ="审核意见", FieldType = typeof(string).ToString() },
|
|
new InputField(){Id=21,AppealTypeId =5,AppealState =1,FieldName ="审核意见", FieldType = typeof(string).ToString() },
|
|
|
new InputField(){Id=22,AppealTypeId =5,AppealState =1,FieldName ="备注", FieldType = typeof(string).ToString() },
|
|
new InputField(){Id=22,AppealTypeId =5,AppealState =1,FieldName ="备注", FieldType = typeof(string).ToString() },
|
|
@@ -898,7 +905,8 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
#region 流程定义
|
|
#region 流程定义
|
|
|
|
|
|
|
|
- modelBuilder.Entity<Workflow>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<Workflow>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("Workflow");
|
|
entity.ToTable("Workflow");
|
|
|
|
|
|
|
|
entity.HasOne(d => d.InitAction)
|
|
entity.HasOne(d => d.InitAction)
|
|
@@ -908,10 +916,11 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
entity.HasOne(d => d.CreateUser)
|
|
entity.HasOne(d => d.CreateUser)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
- .HasForeignKey(d=>d.CreateUserId);
|
|
|
|
|
|
|
+ .HasForeignKey(d => d.CreateUserId);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<Step>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<Step>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("Step");
|
|
entity.ToTable("Step");
|
|
|
|
|
|
|
|
entity.HasOne(d => d.workflow)
|
|
entity.HasOne(d => d.workflow)
|
|
@@ -919,12 +928,13 @@ namespace wispro.sp.api
|
|
|
.HasForeignKey(d => d.workflowId);
|
|
.HasForeignKey(d => d.workflowId);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<TrasferCondition>(entity=> {
|
|
|
|
|
|
|
+ modelBuilder.Entity<TrasferCondition>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("TrasferCondition");
|
|
entity.ToTable("TrasferCondition");
|
|
|
|
|
|
|
|
- entity.HasOne(d=>d.Step)
|
|
|
|
|
|
|
+ entity.HasOne(d => d.Step)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
- .HasForeignKey(d=>d.StepId)
|
|
|
|
|
|
|
+ .HasForeignKey(d => d.StepId)
|
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
|
|
|
|
|
|
entity.HasOne(d => d.nextStep)
|
|
entity.HasOne(d => d.nextStep)
|
|
@@ -934,20 +944,22 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<entity.workflowDefine.Action>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<entity.workflowDefine.Action>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("Action");
|
|
entity.ToTable("Action");
|
|
|
|
|
|
|
|
entity.HasOne(d => d.step)
|
|
entity.HasOne(d => d.step)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
.HasForeignKey(d => d.StepId);
|
|
.HasForeignKey(d => d.StepId);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<InputValueSetting>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<InputValueSetting>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("InputValueSetting");
|
|
entity.ToTable("InputValueSetting");
|
|
|
|
|
|
|
|
entity.HasOne(d => d.action)
|
|
entity.HasOne(d => d.action)
|
|
|
- .WithMany(d=>d.inputValuesSettings)
|
|
|
|
|
|
|
+ .WithMany(d => d.inputValuesSettings)
|
|
|
.HasForeignKey(d => d.actionId)
|
|
.HasForeignKey(d => d.actionId)
|
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
|
|
|
|
|
@@ -956,15 +968,17 @@ namespace wispro.sp.api
|
|
|
.HasForeignKey(d => d.ParentSettingId);
|
|
.HasForeignKey(d => d.ParentSettingId);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<WorkflowInstance>(entity=> {
|
|
|
|
|
|
|
+ modelBuilder.Entity<WorkflowInstance>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("WorkflowInstance");
|
|
entity.ToTable("WorkflowInstance");
|
|
|
|
|
|
|
|
- entity.HasOne(d=>d.workflow)
|
|
|
|
|
|
|
+ entity.HasOne(d => d.workflow)
|
|
|
.WithMany()
|
|
.WithMany()
|
|
|
- .HasForeignKey(d=>d.workflowId);
|
|
|
|
|
|
|
+ .HasForeignKey(d => d.workflowId);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<StepInstance>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<StepInstance>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("StepInstance");
|
|
entity.ToTable("StepInstance");
|
|
|
|
|
|
|
|
entity.HasOne(d => d.Step)
|
|
entity.HasOne(d => d.Step)
|
|
@@ -977,7 +991,8 @@ namespace wispro.sp.api
|
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- modelBuilder.Entity<InputValue>(entity => {
|
|
|
|
|
|
|
+ modelBuilder.Entity<InputValue>(entity =>
|
|
|
|
|
+ {
|
|
|
entity.ToTable("InputValue");
|
|
entity.ToTable("InputValue");
|
|
|
|
|
|
|
|
entity.HasOne(d => d.workflowInstance)
|
|
entity.HasOne(d => d.workflowInstance)
|
|
@@ -991,7 +1006,7 @@ namespace wispro.sp.api
|
|
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
OnModelCreatingPartial(modelBuilder);
|
|
OnModelCreatingPartial(modelBuilder);
|
|
|
}
|
|
}
|