数据库变更CNPC_XJYJ
This commit is contained in:
@@ -14,7 +14,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static void AddDriverPrepareDriverPlan(Model.DriverPrepare_ConStudy DriverPrepareDriverPlan)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.DriverPrepare_ConStudy newDriverData = new Model.DriverPrepare_ConStudy();
|
||||
newDriverData.ConStudyId = DriverPrepareDriverPlan.ConStudyId;
|
||||
@@ -35,7 +35,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static void UpdateDriverPrepareDriverPlan(Model.DriverPrepare_ConStudy DriverPrepareDriverPlan)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.DriverPrepare_ConStudy newDriverData = db.DriverPrepare_ConStudy.FirstOrDefault(e => e.ConStudyId == DriverPrepareDriverPlan.ConStudyId);
|
||||
if (newDriverData != null)
|
||||
@@ -58,7 +58,7 @@ namespace BLL
|
||||
/// <param name="DriverDataId"></param>
|
||||
public static void DeleteDriverPlan(string ConStudyId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.DriverPrepare_ConStudy newDriverData = db.DriverPrepare_ConStudy.FirstOrDefault(e => e.ConStudyId == ConStudyId);
|
||||
if (newDriverData != null)
|
||||
|
||||
Reference in New Issue
Block a user