数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class AccidentReport2Service
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取事故调查报告
|
||||
@@ -355,7 +355,7 @@ namespace BLL
|
||||
/// <param name="accidentReport"></param>
|
||||
public static void AddAccidentReport(Model.Accident_AccidentReport accidentReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Accident_AccidentReport newAccidentReport = new Model.Accident_AccidentReport
|
||||
{
|
||||
AccidentReportId = accidentReport.AccidentReportId,
|
||||
@@ -399,7 +399,7 @@ namespace BLL
|
||||
/// <param name="accidentReport"></param>
|
||||
public static void UpdateAccidentReport(Model.Accident_AccidentReport accidentReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Accident_AccidentReport newAccidentReport = db.Accident_AccidentReport.FirstOrDefault(e => e.AccidentReportId == accidentReport.AccidentReportId);
|
||||
if (newAccidentReport != null)
|
||||
{
|
||||
@@ -440,7 +440,7 @@ namespace BLL
|
||||
/// <param name="accidentReportId"></param>
|
||||
public static void DeleteAccidentReportById(string accidentReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Accident_AccidentReport accidentReport = db.Accident_AccidentReport.FirstOrDefault(e => e.AccidentReportId == accidentReportId);
|
||||
if (accidentReport != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user