1
This commit is contained in:
@@ -532,5 +532,26 @@ namespace BLL
|
|||||||
APITrainRecordService.InsertTrainRecord(getTestPlan);
|
APITrainRecordService.InsertTrainRecord(getTestPlan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region 获取考试试题类型列表
|
||||||
|
/// <summary>
|
||||||
|
/// 获取考试试题类型列表
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static List<Model.TestPlanTrainingItem> getTestTraining()
|
||||||
|
{
|
||||||
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
|
var getDataLists = (from x in db.Training_TestTraining
|
||||||
|
orderby x.TrainingCode
|
||||||
|
select new Model.TestPlanTrainingItem
|
||||||
|
{
|
||||||
|
TrainingTypeId = x.TrainingId,
|
||||||
|
TrainingTypeName = x.TrainingName,
|
||||||
|
}).ToList();
|
||||||
|
return getDataLists;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -244,5 +244,27 @@ namespace WebAPI.Controllers
|
|||||||
return responeData;
|
return responeData;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 获取考试试题类型列表
|
||||||
|
/// <summary>
|
||||||
|
/// 获取考试试题类型列表
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="testPlanId">考试计划ID</param>
|
||||||
|
/// <returns>试题类型</returns>
|
||||||
|
public Model.ResponeData getTestTrainingList()
|
||||||
|
{
|
||||||
|
var responeData = new Model.ResponeData();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
responeData.data = APITestPlanService.getTestTraining();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
responeData.code = 0;
|
||||||
|
responeData.message = ex.Message;
|
||||||
|
}
|
||||||
|
return responeData;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user