数据库变更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
+2 -2
View File
@@ -13,7 +13,7 @@ namespace BLL
/// </summary>
public static class SYHSEData_BaseService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
#region
/// <summary>
@@ -80,7 +80,7 @@ namespace BLL
/// <param name="Id"></param>
public static void DeleteProjectById(string id)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getData = db.SYHSEData_Base.FirstOrDefault(e => e.Id == id);
if (getData != null)
@@ -13,7 +13,7 @@ namespace BLL
/// </summary>
public static class SYHSEData_EnvironmentProtectionService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
#region
/// <summary>
@@ -95,7 +95,7 @@ namespace BLL
/// <param name="Id"></param>
public static void DeleteProjectById(string id)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getData = db.SYHSEData_EnvironmentProtection.FirstOrDefault(e => e.Id == id);
if (getData != null)
@@ -13,7 +13,7 @@ namespace BLL
/// </summary>
public static class SYHSEData_HiddenDangersService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
#region
/// <summary>
@@ -97,7 +97,7 @@ namespace BLL
/// <param name="Id"></param>
public static void DeleteProjectById(string id)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getData = db.SYHSEData_HiddenDangers.FirstOrDefault(e => e.Id == id);
if (getData != null)
+2 -2
View File
@@ -13,7 +13,7 @@ namespace BLL
/// </summary>
public static class SYHSEData_LicenceService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
#region
/// <summary>
@@ -82,7 +82,7 @@ namespace BLL
/// <param name="Id"></param>
public static void DeleteProjectById(string id)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getData = db.SYHSEData_Licence.FirstOrDefault(e => e.Id == id);
if (getData != null)
@@ -13,7 +13,7 @@ namespace BLL
/// </summary>
public static class SYHSEData_MajorHazardService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
#region
/// <summary>
@@ -88,7 +88,7 @@ namespace BLL
/// <param name="Id"></param>
public static void DeleteProjectById(string id)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getData = db.SYHSEData_MajorHazard.FirstOrDefault(e => e.Id == id);
if (getData != null)
+2 -2
View File
@@ -13,7 +13,7 @@ namespace BLL
/// </summary>
public static class SYHSEData_PromiseService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
#region
/// <summary>
@@ -80,7 +80,7 @@ namespace BLL
/// <param name="Id"></param>
public static void DeleteProjectById(string id)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getData = db.SYHSEData_Promise.FirstOrDefault(e => e.PromiseId == id);
if (getData != null)
+2 -2
View File
@@ -13,7 +13,7 @@ namespace BLL
/// </summary>
public static class SYHSEData_RiskService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
#region
/// <summary>
@@ -86,7 +86,7 @@ namespace BLL
/// <param name="Id"></param>
public static void DeleteProjectById(string id)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getData = db.SYHSEData_Risk.FirstOrDefault(e => e.Id == id);
if (getData != null)