数据库变更CNPC_XJYJ
This commit is contained in:
@@ -9,7 +9,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ServerTestPlanService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取知识竞赛计划
|
||||
@@ -27,7 +27,7 @@ namespace BLL
|
||||
/// <param name="TestPlan"></param>
|
||||
public static void AddTestPlan(Model.Test_TestPlan TestPlan)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Test_TestPlan newTestPlan = new Model.Test_TestPlan
|
||||
{
|
||||
TestPlanId = TestPlan.TestPlanId,
|
||||
@@ -57,7 +57,7 @@ namespace BLL
|
||||
/// <param name="TestPlan"></param>
|
||||
public static void UpdateTestPlan(Model.Test_TestPlan TestPlan)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Test_TestPlan newTestPlan = db.Test_TestPlan.FirstOrDefault(e => e.TestPlanId == TestPlan.TestPlanId);
|
||||
if (newTestPlan != null)
|
||||
{
|
||||
@@ -86,7 +86,7 @@ namespace BLL
|
||||
/// <param name="TestPlanId"></param>
|
||||
public static void DeleteTestPlanById(string TestPlanId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Test_TestPlan TestPlan = db.Test_TestPlan.FirstOrDefault(e => e.TestPlanId == TestPlanId);
|
||||
if (TestPlan != null)
|
||||
{
|
||||
@@ -107,7 +107,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static string EndTestPlan(string testPlanId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
string info = string.Empty;
|
||||
var getTestPlans = from x in db.Test_TestPlan
|
||||
where x.States == Const.State_2 && x.TestEndTime.Value.AddMinutes(x.Duration.Value) < DateTime.Now
|
||||
|
||||
Reference in New Issue
Block a user