数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class AccidentReportService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取事故调查报告
|
||||
@@ -334,7 +334,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.Accident_AccidentReport> GetAccidentReportsByTimeAndAccidentTypeId(DateTime startTime, DateTime endTime, string projectId, string accidentTypeId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
if (accidentTypeId == "1" || accidentTypeId == "2" || accidentTypeId == "3") //轻重死事故按审批完成时间
|
||||
{
|
||||
return (from x in db.Accident_AccidentReport
|
||||
@@ -356,7 +356,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,
|
||||
@@ -401,7 +401,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)
|
||||
{
|
||||
@@ -443,7 +443,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