数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class TrainTestDBItemService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除安全试题库明细信息
|
||||
@@ -38,7 +38,7 @@ namespace BLL
|
||||
/// <param name="trainTestDBItem"></param>
|
||||
public static void AddTrainTestDBItem(Model.Training_TrainTestDBItem trainTestDBItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Training_TrainTestDBItem newTrainTestDBItem = new Model.Training_TrainTestDBItem
|
||||
{
|
||||
TrainTestItemId = trainTestDBItem.TrainTestItemId,
|
||||
@@ -62,7 +62,7 @@ namespace BLL
|
||||
/// <param name="trainTestDBItem"></param>
|
||||
public static void UpdateTrainTestDBItem(Model.Training_TrainTestDBItem trainTestDBItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Training_TrainTestDBItem newTrainTestDBItem = db.Training_TrainTestDBItem.FirstOrDefault(e => e.TrainTestItemId == trainTestDBItem.TrainTestItemId);
|
||||
if (newTrainTestDBItem != null)
|
||||
{
|
||||
@@ -81,7 +81,7 @@ namespace BLL
|
||||
/// <param name="trainTestDBItem"></param>
|
||||
public static void UpdateTrainTestDBItemIsPass(Model.Training_TrainTestDBItem trainTestDBItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Training_TrainTestDBItem newTrainTestDBItem = db.Training_TrainTestDBItem.FirstOrDefault(e => e.TrainTestItemId == trainTestDBItem.TrainTestItemId);
|
||||
if (newTrainTestDBItem != null)
|
||||
{
|
||||
@@ -99,7 +99,7 @@ namespace BLL
|
||||
/// <param name="trainTestItemId"></param>
|
||||
public static void DeleteTrainTestDBItemById(string trainTestItemId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Training_TrainTestDBItem trainTestDBItem = db.Training_TrainTestDBItem.FirstOrDefault(e => e.TrainTestItemId == trainTestItemId);
|
||||
if (trainTestDBItem != null)
|
||||
{
|
||||
@@ -116,7 +116,7 @@ namespace BLL
|
||||
/// <param name="trainTestId"></param>
|
||||
public static void DeleteTrainTestDBItemList(string trainTestId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Training_TrainTestDBItem where x.TrainTestId == trainTestId select x).ToList();
|
||||
if (q != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user