1
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -35,7 +35,7 @@ namespace FineUIPro.Web.HSSE.Meeting
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
this.ProjectId = this.ProjectId;
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
|
||||
@@ -490,7 +490,7 @@ namespace WebAPI.Controllers
|
||||
var getTestTrainingItemList = (from x in Funs.DB.Training_TestTrainingItem
|
||||
join y in Funs.DB.Training_TestTraining on x.TrainingId equals y.TrainingId
|
||||
where y.TrainingName.Contains("岗位人员试题") &&
|
||||
x.WorkPostNames.Contains(person.WorkPostName)
|
||||
x.WorkPostIds.Contains(person.WorkPostId)
|
||||
orderby x.TestType, x.TrainingItemCode
|
||||
select new
|
||||
{
|
||||
|
||||
@@ -804,7 +804,37 @@ namespace WebAPI.Controllers
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region 根据personId获取用户考试分数
|
||||
/// <summary>
|
||||
/// 根据personId获取用户信息
|
||||
/// </summary>
|
||||
/// <param name="personId"></param>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData getTestScoreByPersonId(string personId)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
Model.Training_TestRecord testRecord = Funs.DB.Training_TestRecord
|
||||
.Where(e => e.TestManId == personId && e.TestScores != null && e.TestEndTime.HasValue && e.TestStartTime.HasValue)
|
||||
.OrderByDescending(e => e.TestStartTime)
|
||||
.FirstOrDefault();
|
||||
if (testRecord != null)
|
||||
{
|
||||
responeData.data = new {testRecord.TestScores};
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,6 +160,7 @@ namespace WebAPI.Filter
|
||||
, "TestRecord*getTestTimesByTestRecordId"
|
||||
, "TestRecord*getTestRecordItemAnswerBySelectedItem"
|
||||
, "TestRecord*postSubmitTestRecord"
|
||||
, "TestRecord*getTestScoreByPersonId"
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user