数据库变更CNPC_XJYJ
This commit is contained in:
@@ -11,7 +11,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ConstructionPlanService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取总承包商施工计划
|
||||
@@ -29,7 +29,7 @@ namespace BLL
|
||||
/// <param name="ConstructionPlan"></param>
|
||||
public static void AddConstructionPlan(Model.ZHGL_ConstructionPlan ConstructionPlan)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ZHGL_ConstructionPlan newConstructionPlan = new Model.ZHGL_ConstructionPlan
|
||||
{
|
||||
ConstructionPlanId = ConstructionPlan.ConstructionPlanId,
|
||||
@@ -50,7 +50,7 @@ namespace BLL
|
||||
/// <param name="ConstructionPlan"></param>
|
||||
public static void UpdateConstructionPlan(Model.ZHGL_ConstructionPlan ConstructionPlan)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ZHGL_ConstructionPlan newConstructionPlan = db.ZHGL_ConstructionPlan.FirstOrDefault(e => e.ConstructionPlanId == ConstructionPlan.ConstructionPlanId);
|
||||
if (newConstructionPlan != null)
|
||||
{
|
||||
@@ -67,7 +67,7 @@ namespace BLL
|
||||
/// <param name="ConstructionPlanId"></param>
|
||||
public static void DeleteConstructionPlanById(string ConstructionPlanId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.ZHGL_ConstructionPlan ConstructionPlan = db.ZHGL_ConstructionPlan.FirstOrDefault(e => e.ConstructionPlanId == ConstructionPlanId);
|
||||
if (ConstructionPlan != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user