Commit e14fa96c authored by liudong1993's avatar liudong1993

1

parent efdaa7ce
......@@ -1046,11 +1046,11 @@ namespace Edu.Module.Course
decimal FullClassRate = 0;
if (teachModel.BaseStuNum > 0)
{
FullClassRate = Math.Round(Convert.ToDecimal(TotalPeopleNum) / teachModel.BaseStuNum, 2, MidpointRounding.AwayFromZero);
FullClassRate = Math.Round(Convert.ToDecimal(TotalPeopleNum) / teachModel.BaseStuNum, 2, MidpointRounding.AwayFromZero) * 100;
}
//班级平均上课率
decimal AvgTakeClassRate = class_CheckRepository.GetClassAvgTakeClassRate(classId, classModel.Group_Id);
decimal AvgTakeClassRate = class_CheckRepository.GetClassAvgTakeClassRate(classId, classModel.Group_Id) * 100;
//查询奖金金额
decimal UnitPrice = 0;
......@@ -1169,15 +1169,15 @@ namespace Edu.Module.Course
{
new
{
CostTypeId = Config.ReadConfigKey("BonusCostTypeId"),
CostTypeId = Config.ReadConfigKey("PerfCostTypeId"),
Number = tmodel.ClassHours,
OriginalMoney = tmodel.UnitPrice,
tmodel.UnitPrice,
Remark = "满班率:" + tmodel.FullClassRate + ",平均上课率:" + tmodel.AvgCheckRate + ",累计课时:" + tmodel.ClassHours
}
};
string Remark = teacherModel.TeacherName + "教师绩效";
var classModel = classRepository.GetEntity(tmodel.ClassId);
string Remark = teacherModel.TeacherName + "教师【" + (classModel?.ClassName ?? "") + "】绩效";
var financeObj = new
{
IsPublic,
......@@ -1186,7 +1186,7 @@ namespace Edu.Module.Course
CurrencyId,
WBMoney = tmodel.Money,
PayDate = DateTime.Now.ToString("yyyy-MM-dd"),
TemplateId = Config.ReadConfigKey("TeachingBonusTemplete"),
TemplateId = Config.ReadConfigKey("TeachingPerfTemplete"),
OrderSource = 17,
OtherType = 27,
ReFinanceId = perfId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment