三库
This commit is contained in:
@@ -530,6 +530,13 @@ namespace BLL
|
||||
itemRecord.TestScores = db.Training_TestRecordItem.Where(x => x.TestRecordId == itemRecord.TestRecordId).Sum(x => x.SubjectScore) ?? 0;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
//更新三库考试考核
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateExaminationRecord(getTestPlan.TestPlanId, ref message);
|
||||
//if (!string.IsNullOrWhiteSpace(message))
|
||||
//{
|
||||
// ShowNotify(message, MessageBoxIcon.Warning);
|
||||
//}
|
||||
|
||||
var getTrainingTasks = from x in db.Training_Task
|
||||
where x.PlanId == getTestPlan.PlanId && (x.States != "2" || x.States == null)
|
||||
|
||||
@@ -777,6 +777,13 @@ namespace BLL
|
||||
db.SubmitChanges();
|
||||
|
||||
getCode = getTestRecord.TestScores ?? 0;
|
||||
//更新三库考试考核
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateExaminationRecordItem(testRecord.TestRecordId, ref message);
|
||||
//if (!string.IsNullOrWhiteSpace(message))
|
||||
//{
|
||||
// ShowNotify(message, MessageBoxIcon.Warning);
|
||||
//}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -824,6 +831,17 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getAllTestRecords.Count() > 0)
|
||||
{
|
||||
//更新三库考试考核
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateExaminationRecord(getTestPlan.TestPlanId, ref message);
|
||||
//if (!string.IsNullOrWhiteSpace(message))
|
||||
//{
|
||||
// ShowNotify(message, MessageBoxIcon.Warning);
|
||||
//}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,6 +314,14 @@ namespace BLL
|
||||
|
||||
|
||||
}
|
||||
//更新三库教育培训
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateTrainingRecord(newTrainRecord.TrainingId, ref message);
|
||||
//if (!string.IsNullOrWhiteSpace(message))
|
||||
//{
|
||||
// ShowNotify(message, MessageBoxIcon.Warning);
|
||||
//}
|
||||
|
||||
|
||||
////增加一条编码记录
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectTrainRecordMenuId, newTrainRecord.ProjectId, null, newTrainRecord.TrainingId, newTrainRecord.TrainStartDate);
|
||||
|
||||
Reference in New Issue
Block a user