数据库变更CNPC_XJYJ
This commit is contained in:
@@ -21,7 +21,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.TestPlanItem> getTestPlanList(string states)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getDataLists = (from x in db.Test_TestPlan
|
||||
where (x.States == states || states == null)
|
||||
@@ -54,7 +54,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static Model.TestPlanItem getTestPlanByTestPlanId(string testPlanId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getDataLists = from x in db.Test_TestPlan
|
||||
where x.TestPlanId == testPlanId
|
||||
@@ -90,7 +90,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.TestPlanTrainingItem> getTestPlanTrainingListByTestPlanId(string testPlanId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var getDataLists = (from x in db.Test_TestPlanTraining
|
||||
join y in db.Training_TestTraining on x.TrainingId equals y.TrainingId
|
||||
where x.TestPlanId == testPlanId
|
||||
|
||||
Reference in New Issue
Block a user