|
@@ -586,8 +586,8 @@ namespace wispro.sp.api
|
|
new StaffGrade() {Id=12, Grade = "D2级", Coefficient = 0.6},
|
|
new StaffGrade() {Id=12, Grade = "D2级", Coefficient = 0.6},
|
|
new StaffGrade() {Id=13, Grade = "D1级", Coefficient = 0.5},
|
|
new StaffGrade() {Id=13, Grade = "D1级", Coefficient = 0.5},
|
|
new StaffGrade() {Id=14, Grade = "A级", Coefficient = 1.1},
|
|
new StaffGrade() {Id=14, Grade = "A级", Coefficient = 1.1},
|
|
- new StaffGrade() {Id=15, Grade = "C级", Coefficient = 1.0},
|
|
|
|
- new StaffGrade() {Id=16, Grade = "D级", Coefficient = 0.9}
|
|
|
|
|
|
+ new StaffGrade() {Id=15, Grade = "B级", Coefficient = 1.0},
|
|
|
|
+ new StaffGrade() {Id=16, Grade = "C级", Coefficient = 0.9}
|
|
});
|
|
});
|
|
|
|
|
|
modelBuilder.Entity<VerifyCoefficient>().HasData(
|
|
modelBuilder.Entity<VerifyCoefficient>().HasData(
|
|
@@ -658,40 +658,40 @@ namespace wispro.sp.api
|
|
);
|
|
);
|
|
|
|
|
|
#region 初始化绩效点数规则
|
|
#region 初始化绩效点数规则
|
|
- List<BasePointRule> rules = new List<BasePointRule>();
|
|
|
|
- DataTable dt = wispro.sp.utility.NPOIExcel.ExcelToDataTable("c:\\temp\\20211130-点数规则-lcy-v1.xlsx", true);
|
|
|
|
|
|
+ //List<BasePointRule> rules = new List<BasePointRule>();
|
|
|
|
+ //DataTable dt = wispro.sp.utility.NPOIExcel.ExcelToDataTable("c:\\temp\\20211130-点数规则-lcy-v1.xlsx", true);
|
|
|
|
|
|
- foreach (DataRow row in dt.Rows)
|
|
|
|
- {
|
|
|
|
- BasePointRule rule = new BasePointRule()
|
|
|
|
- {
|
|
|
|
- Rule = row["规则"].ToString(),
|
|
|
|
- PointExpress = row["点数计算"].ToString(),
|
|
|
|
- Priority = int.Parse(row["优先级修订"].ToString()),
|
|
|
|
- Type = row["类型"].ToString()
|
|
|
|
|
|
+ //foreach (DataRow row in dt.Rows)
|
|
|
|
+ //{
|
|
|
|
+ // BasePointRule rule = new BasePointRule()
|
|
|
|
+ // {
|
|
|
|
+ // Rule = row["规则"].ToString(),
|
|
|
|
+ // PointExpress = row["点数计算"].ToString(),
|
|
|
|
+ // Priority = int.Parse(row["优先级修订"].ToString()),
|
|
|
|
+ // Type = row["类型"].ToString()
|
|
|
|
|
|
- };
|
|
|
|
|
|
+ // };
|
|
|
|
|
|
- rules.Add(rule);
|
|
|
|
- }
|
|
|
|
|
|
+ // rules.Add(rule);
|
|
|
|
+ //}
|
|
|
|
|
|
- for (int i = 0; i < rules.Count; i++)
|
|
|
|
- {
|
|
|
|
- rules[i].Id = i + 1;
|
|
|
|
- }
|
|
|
|
|
|
+ //for (int i = 0; i < rules.Count; i++)
|
|
|
|
+ //{
|
|
|
|
+ // rules[i].Id = i + 1;
|
|
|
|
+ //}
|
|
|
|
|
|
|
|
|
|
- modelBuilder.Entity<BasePointRule>().HasData(rules);
|
|
|
|
|
|
+ //modelBuilder.Entity<BasePointRule>().HasData(rules);
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
AppealType[] appealTypes = new AppealType[]
|
|
AppealType[] appealTypes = new AppealType[]
|
|
{
|
|
{
|
|
- new AppealType(){Id=1, Name ="绩效点数分配比率",CanDoExpress = "p.ItemStaffs.Count()>1"},
|
|
|
|
- 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=4,Name ="案件缺漏申诉",CanDoExpress ="",ReviewerExpress ="p.Reviewer",Type =1},
|
|
|
|
- new AppealType(){Id=5,Name ="案件严重超期说明",CanDoExpress ="p.isDanger()"},
|
|
|
|
- new AppealType(){Id=6,Name ="按照翻译字数算绩效备注",CanDoExpress ="p.DoItem==\"新申请\" || p.DoItem==\"翻译\""}
|
|
|
|
|
|
+ new AppealType(){Id=1, Name ="绩效点数分配比率",CanDoExpress = "p.ItemStaffs.Count()>1",NeedReview=true},
|
|
|
|
+ new AppealType(){Id=2,Name ="案件系数复核",CanDoExpress = "p.DoItem==\"新申请\"",ReviewerExpress ="p.Reviewer",NeedReview =true },
|
|
|
|
+ new AppealType(){Id=3,Name ="处理事项系数复核",CanDoExpress = "p.DoItem==\"新申请\"",ReviewerExpress ="p.Reviewer", NeedReview = true},
|
|
|
|
+ new AppealType(){Id=4,Name ="案件缺漏申诉",CanDoExpress ="",ReviewerExpress ="p.Reviewer",Type =1, NeedReview = true},
|
|
|
|
+ new AppealType(){Id=5,Name ="案件严重超期说明",CanDoExpress ="p.isDanger()", NeedReview = true},
|
|
|
|
+ new AppealType(){Id=6,Name ="按照翻译字数算绩效备注",CanDoExpress ="p.DoItem==\"新申请\" || p.DoItem==\"翻译\"", NeedReview = true}
|
|
};
|
|
};
|
|
|
|
|
|
InputField[] inputFields = new InputField[] {
|
|
InputField[] inputFields = new InputField[] {
|
|
@@ -725,7 +725,7 @@ namespace wispro.sp.api
|
|
|
|
|
|
new InputField(){Id=19,AppealTypeId =6,AppealState =0,FieldName ="翻译类型", MapObjectField ="AgentFeedbackMemo", 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 ="翻译字数", MapObjectField ="WordCount", FieldType = typeof(int).ToString() },
|
|
new InputField(){Id=20,AppealTypeId =6,AppealState =0,FieldName ="翻译字数", MapObjectField ="WordCount", FieldType = typeof(int).ToString() },
|
|
- new InputField(){Id=23,AppealTypeId =6,AppealState =1,FieldName ="审核意见", FieldType = typeof(int).ToString() },
|
|
|
|
|
|
+ new InputField(){Id=23,AppealTypeId =6,AppealState =1,FieldName ="审核意见", FieldType = typeof(string).ToString() },
|
|
new InputField(){Id=24,AppealTypeId =6,AppealState =1,FieldName ="翻译字数", MapObjectField ="WordCount", FieldType = typeof(int).ToString() },
|
|
new InputField(){Id=24,AppealTypeId =6,AppealState =1,FieldName ="翻译字数", MapObjectField ="WordCount", FieldType = typeof(int).ToString() },
|
|
|
|
|
|
};
|
|
};
|
|
@@ -755,6 +755,9 @@ namespace wispro.sp.api
|
|
|
|
|
|
new SelectValue(){Id =19, InputFieldId =21, Value ="同意" },
|
|
new SelectValue(){Id =19, InputFieldId =21, Value ="同意" },
|
|
new SelectValue(){Id =20, InputFieldId =21, Value ="拒绝" },
|
|
new SelectValue(){Id =20, InputFieldId =21, Value ="拒绝" },
|
|
|
|
+
|
|
|
|
+ new SelectValue(){Id =21, InputFieldId =23, Value ="同意" },
|
|
|
|
+ new SelectValue(){Id =22, InputFieldId =23, Value ="拒绝" },
|
|
};
|
|
};
|
|
|
|
|
|
List<CaseCeoffcient> caseCeoffcients = new List<CaseCeoffcient>()
|
|
List<CaseCeoffcient> caseCeoffcients = new List<CaseCeoffcient>()
|