1
This commit is contained in:
@@ -1517,5 +1517,31 @@ namespace BLL
|
||||
|
||||
return strValues;
|
||||
}
|
||||
public static string getStrTrainingTestRecordByPersonId(string personId)
|
||||
{
|
||||
string strValues = string.Empty;
|
||||
var getDataLists = from x in Funs.DB.Training_TestRecord
|
||||
join z in Funs.DB.Training_TestPlan on x.TestPlanId equals z.TestPlanId
|
||||
where x.TestManId == personId
|
||||
orderby z.PlanDate descending
|
||||
select new
|
||||
{
|
||||
z.PlanName,
|
||||
z.PlanDate,
|
||||
CheckResultName = x.TestScores >=60 ? "合格" : "不合格",
|
||||
z.TestPlanId,
|
||||
};
|
||||
if (getDataLists.Count() > 0)
|
||||
{
|
||||
foreach (var item in getDataLists)
|
||||
{
|
||||
string strV = string.Format("{0:yyyy-MM-dd HH:mm}", item.PlanDate) + " " + item.PlanName + " " + item.CheckResultName + ";";
|
||||
strValues += strV;
|
||||
}
|
||||
}
|
||||
|
||||
return strValues;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user