数据库变更CNPC_XJYJ
This commit is contained in:
@@ -22,7 +22,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.TestPlanItem> getTestPlanListByProjectIdStates(string projectId, 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.Training_TestPlan
|
||||
where x.ProjectId == projectId && (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.Training_TestPlan
|
||||
where x.TestPlanId == testPlanId
|
||||
@@ -97,7 +97,7 @@ namespace BLL
|
||||
public static string SaveTestPlan(Model.TestPlanItem getTestPlan)
|
||||
{
|
||||
string alterStr =string.Empty ;
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.Training_TestPlan newTestPlan = new Model.Training_TestPlan
|
||||
{
|
||||
@@ -303,7 +303,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static void AddTrainingTestPlanTraining(List<Model.TestPlanTrainingItem> TestPlanItems, string testPlanId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
foreach (var item in TestPlanItems)
|
||||
{
|
||||
@@ -336,7 +336,7 @@ namespace BLL
|
||||
public static string SaveTestPlanByTrainingPlanId(string trainingPlanId,string userId)
|
||||
{
|
||||
string testPlanId = string.Empty;
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
////培训计划
|
||||
var getTrainingPlan = db.Training_Plan.FirstOrDefault(x => x.PlanId == trainingPlanId); ;
|
||||
@@ -480,7 +480,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.TestPlanTrainingItem> getTestPlanTrainingListByTestPlanId(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.Training_TestPlanTraining
|
||||
join y in db.Training_TestTraining on x.TrainingId equals y.TrainingId
|
||||
@@ -506,7 +506,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static void SubmitTest(Model.Training_TestPlan getTestPlan)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
////所有交卷的人员 交卷 并计算分数
|
||||
var getTrainingTestRecords = from x in db.Training_TestRecord
|
||||
|
||||
Reference in New Issue
Block a user