数据库变更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 AccidentReportOtherService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取事故调查处理报告
@@ -191,7 +191,7 @@ namespace BLL
/// <param name="accidentReportOther"></param>
public static void AddAccidentReportOther(Model.Accident_AccidentReportOther accidentReportOther)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Accident_AccidentReportOther newAccidentReportOther = new Model.Accident_AccidentReportOther
{
AccidentReportOtherId = accidentReportOther.AccidentReportOtherId,
@@ -232,7 +232,7 @@ namespace BLL
/// <param name="accidentReportOther"></param>
public static void UpdateAccidentReportOther(Model.Accident_AccidentReportOther accidentReportOther)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Accident_AccidentReportOther newAccidentReportOther = db.Accident_AccidentReportOther.FirstOrDefault(e => e.AccidentReportOtherId == accidentReportOther.AccidentReportOtherId);
if (newAccidentReportOther != null)
{
@@ -270,7 +270,7 @@ namespace BLL
/// <param name="accidentReportOtherId"></param>
public static void DeleteAccidentReportOtherById(string accidentReportOtherId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Accident_AccidentReportOther accidentReportOther = db.Accident_AccidentReportOther.FirstOrDefault(e => e.AccidentReportOtherId == accidentReportOtherId);
if (accidentReportOther != null)
{