|
@@ -328,9 +328,10 @@ namespace wispro.sp.api
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
|
|
|
|
entity.HasOne(d => d.AppealRecord)
|
|
entity.HasOne(d => d.AppealRecord)
|
|
- .WithMany()
|
|
|
|
|
|
+ .WithMany(a=>a.AttachFiles)
|
|
.HasForeignKey(d => d.AppealRecordId)
|
|
.HasForeignKey(d => d.AppealRecordId)
|
|
- .HasConstraintName("FK_AttachFile_AppealRecord");
|
|
|
|
|
|
+ .HasConstraintName("FK_AttachFile_AppealRecord")
|
|
|
|
+ .IsRequired(false);
|
|
});
|
|
});
|
|
|
|
|
|
modelBuilder.Entity<AppealType>(entity =>
|
|
modelBuilder.Entity<AppealType>(entity =>
|
|
@@ -361,6 +362,9 @@ namespace wispro.sp.api
|
|
.OnDelete(DeleteBehavior.NoAction)
|
|
.OnDelete(DeleteBehavior.NoAction)
|
|
.HasForeignKey(d => d.TypeId);
|
|
.HasForeignKey(d => d.TypeId);
|
|
|
|
|
|
|
|
+ entity.HasOne(d => d.Item)
|
|
|
|
+ .WithMany()
|
|
|
|
+ .HasForeignKey(d=>d.ItemId);
|
|
}) ;
|
|
}) ;
|
|
|
|
|
|
modelBuilder.Entity<InputField>(entity=> {
|
|
modelBuilder.Entity<InputField>(entity=> {
|
|
@@ -525,7 +529,8 @@ namespace wispro.sp.api
|
|
new AppealType(){Id=2,Name ="案件系数复核",CanDoExpress = "p.DoItem==\"新申请\"",ReviewerExpress ="p.Reviewer"},
|
|
new AppealType(){Id=2,Name ="案件系数复核",CanDoExpress = "p.DoItem==\"新申请\"",ReviewerExpress ="p.Reviewer"},
|
|
new AppealType(){Id=3,Name ="处理事项系数复核",CanDoExpress = "p.DoItem==\"新申请\"",ReviewerExpress ="p.Reviewer"},
|
|
new AppealType(){Id=3,Name ="处理事项系数复核",CanDoExpress = "p.DoItem==\"新申请\"",ReviewerExpress ="p.Reviewer"},
|
|
new AppealType(){Id=4,Name ="案件缺漏申诉",CanDoExpress ="",ReviewerExpress ="p.Reviewer",Type =1},
|
|
new AppealType(){Id=4,Name ="案件缺漏申诉",CanDoExpress ="",ReviewerExpress ="p.Reviewer",Type =1},
|
|
- new AppealType(){Id=5,Name ="案件严重超期说明",CanDoExpress ="p.isDanger()"}
|
|
|
|
|
|
+ new AppealType(){Id=5,Name ="案件严重超期说明",CanDoExpress ="p.isDanger()"},
|
|
|
|
+ new AppealType(){Id=6,Name ="按照翻译字数算绩效备注",CanDoExpress ="p.DoItem==\"新申请\" || p.DoItem==\"翻译\""}
|
|
};
|
|
};
|
|
|
|
|
|
InputField[] inputFields = new InputField[] {
|
|
InputField[] inputFields = new InputField[] {
|
|
@@ -536,19 +541,25 @@ namespace wispro.sp.api
|
|
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(double).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()},
|
|
|
|
|
|
|
|
|
|
- new InputField(){Id=11,AppealTypeId =3,AppealState =0,FieldName ="处理事项系数", MapObjectField ="DoItemCoefficient",FieldType = typeof(double).ToString() },
|
|
|
|
|
|
+ new InputField(){Id=11,AppealTypeId =3,AppealState =0,FieldName ="处理事项系数", MapObjectField ="DoItemCoefficient",FieldType = typeof(string).ToString() },
|
|
new InputField(){Id=12,AppealTypeId =3,AppealState =1,FieldName ="备注",FieldType =typeof(string).ToString() },
|
|
new InputField(){Id=12,AppealTypeId =3,AppealState =1,FieldName ="备注",FieldType =typeof(string).ToString() },
|
|
new InputField(){Id=13,AppealTypeId =3,AppealState =1,FieldName ="审核意见",FieldType =typeof(string).ToString()},
|
|
new InputField(){Id=13,AppealTypeId =3,AppealState =1,FieldName ="审核意见",FieldType =typeof(string).ToString()},
|
|
|
|
|
|
- new InputField(){Id=14,AppealTypeId =4,AppealState =0,FieldName ="我方文号", FieldType = typeof(double).ToString() },
|
|
|
|
- new InputField(){Id=15,AppealTypeId =4,AppealState =0,FieldName ="处理事项", FieldType = typeof(double).ToString() },
|
|
|
|
|
|
+ new InputField(){Id=14,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=19,AppealTypeId =6,AppealState =0,FieldName ="翻译类型", MapObjectField ="AgentFeedbackMemo", FieldType = typeof(string).ToString() },
|
|
|
|
+ new InputField(){Id=20,AppealTypeId =6,AppealState =0,FieldName ="翻译字数", FieldType = typeof(int).ToString() },
|
|
|
|
+
|
|
};
|
|
};
|
|
|
|
|
|
List<SelectValue> selectValues = new List<SelectValue>() {
|
|
List<SelectValue> selectValues = new List<SelectValue>() {
|
|
@@ -559,7 +570,20 @@ namespace wispro.sp.api
|
|
new SelectValue(){Id =5, InputFieldId =13, Value ="同意" },
|
|
new SelectValue(){Id =5, InputFieldId =13, Value ="同意" },
|
|
new SelectValue(){Id =6, InputFieldId =13, Value ="拒绝" },
|
|
new SelectValue(){Id =6, InputFieldId =13, Value ="拒绝" },
|
|
new SelectValue(){Id =7, InputFieldId =17, Value ="同意" },
|
|
new SelectValue(){Id =7, InputFieldId =17, Value ="同意" },
|
|
- new SelectValue(){Id =8, InputFieldId =17, Value ="拒绝" }
|
|
|
|
|
|
+ new SelectValue(){Id =8, InputFieldId =17, Value ="拒绝" },
|
|
|
|
+
|
|
|
|
+ new SelectValue(){Id =9, InputFieldId =6, Value ="S" },
|
|
|
|
+ new SelectValue(){Id =10, InputFieldId =6, Value ="A" },
|
|
|
|
+ new SelectValue(){Id =11, InputFieldId =6, Value ="B" },
|
|
|
|
+ new SelectValue(){Id =12, InputFieldId =6, Value ="C" },
|
|
|
|
+ new SelectValue(){Id =13, InputFieldId =6, Value ="D" },
|
|
|
|
+
|
|
|
|
+ new SelectValue(){Id =14, InputFieldId =11, Value ="实质" },
|
|
|
|
+ new SelectValue(){Id =15, InputFieldId =11, Value ="形式" },
|
|
|
|
+
|
|
|
|
+ new SelectValue(){Id =16, InputFieldId =19, Value ="中-德" },
|
|
|
|
+ new SelectValue(){Id =17, InputFieldId =19, Value ="中-英" },
|
|
|
|
+ new SelectValue(){Id =18, InputFieldId =19, Value ="英-中" }
|
|
};
|
|
};
|
|
|
|
|
|
modelBuilder.Entity<AppealType>().HasData(appealTypes);
|
|
modelBuilder.Entity<AppealType>().HasData(appealTypes);
|