数据库变更CNPC_XJYJ
This commit is contained in:
@@ -18,7 +18,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.TrainRecordItem> getTrainRecordListByProjectIdTrainTypeIdTrainStates(string projectId, string trainTypeId, string trainStates)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getDataLists = (from x in db.EduTrain_TrainRecord
|
||||
where x.ProjectId == projectId && x.TrainTypeId == trainTypeId
|
||||
@@ -50,7 +50,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static Model.TrainRecordItem getTrainRecordByTrainingId(string trainRecordId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getDataLists = from x in db.EduTrain_TrainRecord
|
||||
where x.TrainingId == trainRecordId
|
||||
@@ -87,7 +87,7 @@ namespace BLL
|
||||
|
||||
public static void InsertTrainRecord(Model.Training_TestPlan getTestPlan)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
////获取培训计划
|
||||
var getTrainingPlan = db.Training_Plan.FirstOrDefault(e => e.PlanId == getTestPlan.PlanId);
|
||||
|
||||
Reference in New Issue
Block a user