数据库变更CNPC_XJYJ
This commit is contained in:
@@ -21,7 +21,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static Model.TestRecordItem getTestRecordInfo(string testPlanId, string testManId, string userType, string identityCard)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.TestRecordItem newTestRecord = new Model.TestRecordItem();
|
||||
var getTestPlan = db.Test_TestPlan.FirstOrDefault(x => x.TestPlanId == testPlanId);
|
||||
@@ -105,7 +105,7 @@ namespace BLL
|
||||
/// <param name="testRecord">考试计划记录</param>
|
||||
public static Model.TestRecordItem SaveTestRecord(Model.TestRecordItem testRecord)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getTestPlan = db.Test_TestPlan.FirstOrDefault(x => x.TestPlanId == testRecord.TestPlanId);
|
||||
if (getTestPlan != null)
|
||||
@@ -232,7 +232,7 @@ namespace BLL
|
||||
/// <returns>考试人员</returns>
|
||||
public static List<Model.TestRecordItem> getTestRecordListByTestPlanId(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_TestRecord
|
||||
where x.TestPlanId == testPlanId
|
||||
@@ -266,7 +266,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static Model.TestRecordItem getTestRecordByTestRecordId(string testRecordId)
|
||||
{
|
||||
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_TestRecord
|
||||
join y in db.Training_TestPlan on x.TestPlanId equals y.TestPlanId
|
||||
@@ -307,7 +307,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static string CreateTestRecordItem(string testPlanId, string testRecordId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getTestPlan = db.Test_TestPlan.FirstOrDefault(x => x.TestPlanId == testPlanId);
|
||||
var getTestRecord = db.Test_TestRecord.FirstOrDefault(x => x.TestRecordId == testRecordId);
|
||||
@@ -439,7 +439,7 @@ namespace BLL
|
||||
/// <returns>考试人员</returns>
|
||||
public static List<Model.TestRecordItemItem> geTestRecordItemListByTestRecordId(string testRecordId)
|
||||
{
|
||||
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_TestRecordItem
|
||||
where x.TestRecordId == testRecordId
|
||||
@@ -476,7 +476,7 @@ namespace BLL
|
||||
/// <param name="answerItems"></param>
|
||||
public static void getTestRecordItemAnswerBySelectedItem(Model.Test_TestRecordItem getTItemT, string selectedItem)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getTItem = db.Test_TestRecordItem.FirstOrDefault(x => x.TestRecordItemId == getTItemT.TestRecordItemId);
|
||||
if (getTItem != null)
|
||||
@@ -532,7 +532,7 @@ namespace BLL
|
||||
public static decimal getSubmitTestRecord(string testRecordId)
|
||||
{
|
||||
decimal getCode = 0;
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getTestRecord = db.Test_TestRecord.FirstOrDefault(e => e.TestRecordId == testRecordId);
|
||||
/////试卷
|
||||
|
||||
Reference in New Issue
Block a user