数据库变更CNPC_XJYJ

This commit is contained in:
2025-08-04 18:04:41 +08:00
parent bafbf97359
commit 79a7f35e22
679 changed files with 5590 additions and 3465 deletions
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ProjectDrillPlanHalfYearReportItemService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取应急演练工作计划半年报明细信息
@@ -38,7 +38,7 @@ namespace BLL
/// <param name="drillPlanHalfYearReportItem"></param>
public static void AddDrillPlanHalfYearReportItem(Model.InformationProject_DrillPlanHalfYearReportItem drillPlanHalfYearReportItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillPlanHalfYearReportItem newDrillPlanHalfYearReportItem = new Model.InformationProject_DrillPlanHalfYearReportItem
{
DrillPlanHalfYearReportItemId = drillPlanHalfYearReportItem.DrillPlanHalfYearReportItemId,
@@ -60,7 +60,7 @@ namespace BLL
/// <param name="drillPlanHalfYearReportItem"></param>
public static void UpdateDrillPlanHalfYearReportItem(Model.InformationProject_DrillPlanHalfYearReportItem drillPlanHalfYearReportItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillPlanHalfYearReportItem newDrillPlanHalfYearReportItem = db.InformationProject_DrillPlanHalfYearReportItem.FirstOrDefault(e => e.DrillPlanHalfYearReportItemId == drillPlanHalfYearReportItem.DrillPlanHalfYearReportItemId);
if (newDrillPlanHalfYearReportItem != null)
{
@@ -80,7 +80,7 @@ namespace BLL
/// <param name="drillPlanHalfYearReportItemId"></param>
public static void DeleteDrillPlanHalfYearReportItemById(string drillPlanHalfYearReportItemId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillPlanHalfYearReportItem drillPlanHalfYearReportItem = db.InformationProject_DrillPlanHalfYearReportItem.FirstOrDefault(e => e.DrillPlanHalfYearReportItemId == drillPlanHalfYearReportItemId);
if (drillPlanHalfYearReportItem != null)
{
@@ -95,7 +95,7 @@ namespace BLL
/// <param name="drillPlanHalfYearReportId"></param>
public static void DeleteDrillPlanHalfYearReportItemList(string drillPlanHalfYearReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var q = (from x in db.InformationProject_DrillPlanHalfYearReportItem where x.DrillPlanHalfYearReportId == drillPlanHalfYearReportId select x).ToList();
if (q != null)
{