数据库变更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
@@ -7,7 +7,7 @@ namespace BLL
{
public static class ConstructionStandardIdentifyService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据标准规范辨识主键获取一个标准规范辨识信息
@@ -34,7 +34,7 @@ namespace BLL
/// <param name="lawRegulationIdentify">标准规范辨识实体</param>
public static void AddConstructionStandardIdentify(Model.InformationProject_ConstructionStandardIdentify constructionStandardIdentify)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_ConstructionStandardIdentify newConstructionStandardIdentify = new Model.InformationProject_ConstructionStandardIdentify
{
ConstructionStandardIdentifyId = constructionStandardIdentify.ConstructionStandardIdentifyId,
@@ -58,7 +58,7 @@ namespace BLL
/// <param name="lawRegulationIdentify">标准规范辨识实体</param>
public static void UpdateConstructionStandardIdentify(Model.InformationProject_ConstructionStandardIdentify constructionStandardIdentify)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_ConstructionStandardIdentify newConstructionStandardIdentify = db.InformationProject_ConstructionStandardIdentify.FirstOrDefault(e => e.ConstructionStandardIdentifyId == constructionStandardIdentify.ConstructionStandardIdentifyId);
if (newConstructionStandardIdentify != null)
{
@@ -80,7 +80,7 @@ namespace BLL
/// <param name="constructionStandardIdentifyId">标准规范辨识主键</param>
public static void DeleteConstructionStandardIdentifyById(string constructionStandardIdentifyId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_ConstructionStandardIdentify constructionStandardIdentify = db.InformationProject_ConstructionStandardIdentify.FirstOrDefault(e => e.ConstructionStandardIdentifyId == constructionStandardIdentifyId);
if (constructionStandardIdentify != null)
{
@@ -7,7 +7,7 @@ namespace BLL
{
public static class ConstructionStandardSelectedItemService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据标准规范辨识Id获取对应所有标准规范项信息
@@ -25,7 +25,7 @@ namespace BLL
/// <param name="lawRegulationSelectedItem">标准规范项实体</param>
public static void AddConstructionStandardSelectedItem(Model.InformationProject_ConstructionStandardSelectedItem constructionStandardSelectedItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
string newKeyID = SQLHelper.GetNewID(typeof(Model.InformationProject_ConstructionStandardSelectedItem));
Model.InformationProject_ConstructionStandardSelectedItem newLawRegulationSelectedItem = new Model.InformationProject_ConstructionStandardSelectedItem
{
@@ -43,7 +43,7 @@ namespace BLL
/// <param name="constructionStandardIdentifyId">标准规范辨识主键</param>
public static void DeleteConstructionStandardSelectedItemByConstructionStandardIdentifyId(string constructionStandardIdentifyId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var q = (from x in db.InformationProject_ConstructionStandardSelectedItem where x.ConstructionStandardIdentifyId == constructionStandardIdentifyId select x).ToList();
if (q != null)
{
@@ -25,7 +25,7 @@ namespace BLL
/// <param name="lawRegulationIdentify">法律法规辨识实体</param>
public static void AddLawRegulationIdentify(Model.Law_LawRegulationIdentify lawRegulationIdentify)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Law_LawRegulationIdentify newLawRegulationIdentify = new Model.Law_LawRegulationIdentify
{
LawRegulationIdentifyId = lawRegulationIdentify.LawRegulationIdentifyId,
@@ -54,7 +54,7 @@ namespace BLL
/// <param name="lawRegulationIdentify">法律法规辨识实体</param>
public static void UpdateLawRegulationIdentify(Model.Law_LawRegulationIdentify lawRegulationIdentify)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Law_LawRegulationIdentify newLawRegulationIdentify = db.Law_LawRegulationIdentify.FirstOrDefault(e => e.LawRegulationIdentifyId == lawRegulationIdentify.LawRegulationIdentifyId);
if (newLawRegulationIdentify != null)
{
@@ -78,7 +78,7 @@ namespace BLL
/// <param name="lawRegulationIdentifyCode">法律法规辨识编号</param>
public static void DeleteLawRegulationIdentify(string lawRegulationIdentifyId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Law_LawRegulationIdentify lawRegulationIdentify = db.Law_LawRegulationIdentify.FirstOrDefault(e => e.LawRegulationIdentifyId == lawRegulationIdentifyId);
if (lawRegulationIdentify != null)
{
@@ -25,7 +25,7 @@ namespace BLL
/// <param name="lawRegulationSelectedItem">法律法规项实体</param>
public static void AddLawRegulationSelectedItem(Model.Law_LawRegulationSelectedItem lawRegulationSelectedItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
string newKeyID = SQLHelper.GetNewID(typeof(Model.Law_LawRegulationSelectedItem));
Model.Law_LawRegulationSelectedItem newLawRegulationSelectedItem = new Model.Law_LawRegulationSelectedItem
{
@@ -46,7 +46,7 @@ namespace BLL
/// <param name="lawRegulationIdentifyCode">法律法规辨识主键</param>
public static void DeleteLawRegulationSelectedItemByLawRegulationIdentifyId(string lawRegulationIdentifyId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Law_LawRegulationSelectedItem where x.LawRegulationIdentifyId == lawRegulationIdentifyId select x).ToList();
if (q.Count() > 0)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ProjectAccidentCauseReportItemService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 职工伤亡事故原因分析报表明细表
@@ -28,7 +28,7 @@ namespace BLL
/// <param name="AccidentCauseReportItem">职工伤亡事故原因分析报表明细表实体</param>
public static void AddAccidentCauseReportItem(Model.InformationProject_AccidentCauseReportItem AccidentCauseReportItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_AccidentCauseReportItem newAccidentCauseReportItem = new Model.InformationProject_AccidentCauseReportItem
{
AccidentCauseReportItemId = AccidentCauseReportItem.AccidentCauseReportItemId,
@@ -82,7 +82,7 @@ namespace BLL
/// <param name="AccidentCauseReportItem">职工伤亡事故原因分析报表明细表实体</param>
public static void UpdateAccidentCauseReportItem(Model.InformationProject_AccidentCauseReportItem AccidentCauseReportItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_AccidentCauseReportItem newAccidentCauseReportItem = db.InformationProject_AccidentCauseReportItem.FirstOrDefault(e => e.AccidentCauseReportItemId == AccidentCauseReportItem.AccidentCauseReportItemId);
newAccidentCauseReportItem.AccidentType = AccidentCauseReportItem.AccidentType;
newAccidentCauseReportItem.TotalDeath = AccidentCauseReportItem.TotalDeath;
@@ -131,7 +131,7 @@ namespace BLL
/// <param name="AccidentCauseReportItemId"></param>
public static void DeleteAccidentCauseReportItemByAccidentCauseReportId(string AccidentCauseReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var q = from x in db.InformationProject_AccidentCauseReportItem where x.AccidentCauseReportId == AccidentCauseReportId select x;
if (q != null)
{
@@ -147,7 +147,7 @@ namespace BLL
/// <returns>明细记录集合</returns>
public static List<Model.InformationProject_AccidentCauseReportItem> GetItemsNoSum(string AccidentCauseReportId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
return (from x in db.InformationProject_AccidentCauseReportItem
join y in db.Sys_Const on x.AccidentType equals y.ConstText
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ProjectAccidentCauseReportService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 职工伤亡事故原因分析报表
@@ -28,7 +28,7 @@ namespace BLL
/// <param name="AccidentCauseReport">职工伤亡事故原因分析报表实体</param>
public static void AddAccidentCauseReport(Model.InformationProject_AccidentCauseReport AccidentCauseReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_AccidentCauseReport newAccidentCauseReport = new Model.InformationProject_AccidentCauseReport
{
AccidentCauseReportId = AccidentCauseReport.AccidentCauseReportId,
@@ -68,7 +68,7 @@ namespace BLL
/// <param name="AccidentCauseReport">职工伤亡事故原因分析报表实体</param>
public static void UpdateAccidentCauseReport(Model.InformationProject_AccidentCauseReport AccidentCauseReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_AccidentCauseReport newAccidentCauseReport = db.InformationProject_AccidentCauseReport.FirstOrDefault(e => e.AccidentCauseReportId == AccidentCauseReport.AccidentCauseReportId);
if (newAccidentCauseReport != null)
{
@@ -106,7 +106,7 @@ namespace BLL
/// <param name="AccidentCauseReportId"></param>
public static void DeleteAccidentCauseReportById(string AccidentCauseReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_AccidentCauseReport newAccidentCauseReport = db.InformationProject_AccidentCauseReport.FirstOrDefault(e => e.AccidentCauseReportId == AccidentCauseReportId);
if (newAccidentCauseReport != null)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ProjectDrillConductedQuarterlyReportItemService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取应急演练开展情况季报表明细信息
@@ -38,7 +38,7 @@ namespace BLL
/// <param name="drillConductedQuarterlyReportItem"></param>
public static void AddDrillConductedQuarterlyReportItem(Model.InformationProject_DrillConductedQuarterlyReportItem drillConductedQuarterlyReportItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillConductedQuarterlyReportItem newDrillConductedQuarterlyReportItem = new Model.InformationProject_DrillConductedQuarterlyReportItem
{
DrillConductedQuarterlyReportItemId = drillConductedQuarterlyReportItem.DrillConductedQuarterlyReportItemId,
@@ -71,7 +71,7 @@ namespace BLL
/// <param name="drillConductedQuarterlyReportItem"></param>
public static void UpdateDrillConductedQuarterlyReportItem(Model.InformationProject_DrillConductedQuarterlyReportItem drillConductedQuarterlyReportItem)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillConductedQuarterlyReportItem newDrillConductedQuarterlyReportItem = db.InformationProject_DrillConductedQuarterlyReportItem.FirstOrDefault(e => e.DrillConductedQuarterlyReportItemId == drillConductedQuarterlyReportItem.DrillConductedQuarterlyReportItemId);
if (newDrillConductedQuarterlyReportItem != null)
{
@@ -102,7 +102,7 @@ namespace BLL
/// <param name="drillConductedQuarterlyReportItemId"></param>
public static void DeleteDrillConductedQuarterlyReportItemById(string drillConductedQuarterlyReportItemId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillConductedQuarterlyReportItem drillConductedQuarterlyReportItem = db.InformationProject_DrillConductedQuarterlyReportItem.FirstOrDefault(e => e.DrillConductedQuarterlyReportItemId == drillConductedQuarterlyReportItemId);
if (drillConductedQuarterlyReportItem != null)
{
@@ -117,7 +117,7 @@ namespace BLL
/// <param name="drillConductedQuarterlyReportId"></param>
public static void DeleteDrillConductedQuarterlyReportItemList(string drillConductedQuarterlyReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var q = (from x in db.InformationProject_DrillConductedQuarterlyReportItem where x.DrillConductedQuarterlyReportId == drillConductedQuarterlyReportId select x).ToList();
if (q != null)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ProjectDrillConductedQuarterlyReportService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取应急演练开展情况季报表
@@ -28,7 +28,7 @@ namespace BLL
/// <param name="drillConductedQuarterlyReport"></param>
public static void AddDrillConductedQuarterlyReport(Model.InformationProject_DrillConductedQuarterlyReport drillConductedQuarterlyReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillConductedQuarterlyReport newDrillConductedQuarterlyReport = new Model.InformationProject_DrillConductedQuarterlyReport
{
DrillConductedQuarterlyReportId = drillConductedQuarterlyReport.DrillConductedQuarterlyReportId,
@@ -50,7 +50,7 @@ namespace BLL
/// <param name="drillConductedQuarterlyReport"></param>
public static void UpdateDrillConductedQuarterlyReport(Model.InformationProject_DrillConductedQuarterlyReport drillConductedQuarterlyReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillConductedQuarterlyReport newDrillConductedQuarterlyReport = db.InformationProject_DrillConductedQuarterlyReport.FirstOrDefault(e => e.DrillConductedQuarterlyReportId == drillConductedQuarterlyReport.DrillConductedQuarterlyReportId);
if (newDrillConductedQuarterlyReport != null)
{
@@ -71,7 +71,7 @@ namespace BLL
/// <param name="drillConductedQuarterlyReportId"></param>
public static void DeleteDrillConductedQuarterlyReportById(string drillConductedQuarterlyReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillConductedQuarterlyReport drillConductedQuarterlyReport = db.InformationProject_DrillConductedQuarterlyReport.FirstOrDefault(e => e.DrillConductedQuarterlyReportId == drillConductedQuarterlyReportId);
if (drillConductedQuarterlyReport != null)
{
@@ -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)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ProjectDrillPlanHalfYearReportService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取应急演练工作计划半年报
@@ -28,7 +28,7 @@ namespace BLL
/// <param name="drillPlanHalfYearReport"></param>
public static void AddDrillPlanHalfYearReport(Model.InformationProject_DrillPlanHalfYearReport drillPlanHalfYearReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillPlanHalfYearReport newDrillPlanHalfYearReport = new Model.InformationProject_DrillPlanHalfYearReport
{
DrillPlanHalfYearReportId = drillPlanHalfYearReport.DrillPlanHalfYearReportId,
@@ -51,7 +51,7 @@ namespace BLL
/// <param name="drillPlanHalfYearReport"></param>
public static void UpdateDrillPlanHalfYearReport(Model.InformationProject_DrillPlanHalfYearReport drillPlanHalfYearReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillPlanHalfYearReport newDrillPlanHalfYearReport = db.InformationProject_DrillPlanHalfYearReport.FirstOrDefault(e => e.DrillPlanHalfYearReportId == drillPlanHalfYearReport.DrillPlanHalfYearReportId);
if (newDrillPlanHalfYearReport != null)
{
@@ -73,7 +73,7 @@ namespace BLL
/// <param name="drillPlanHalfYearReportId"></param>
public static void DeleteDrillPlanHalfYearReportById(string drillPlanHalfYearReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_DrillPlanHalfYearReport drillPlanHalfYearReport = db.InformationProject_DrillPlanHalfYearReport.FirstOrDefault(e => e.DrillPlanHalfYearReportId == drillPlanHalfYearReportId);
if (drillPlanHalfYearReport != null)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ProjectMillionsMonthlyReportService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取企业安全数据统计月报
@@ -28,7 +28,7 @@ namespace BLL
/// <param name="millionsMonthlyReport"></param>
public static void AddMillionsMonthlyReport(Model.InformationProject_MillionsMonthlyReport millionsMonthlyReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_MillionsMonthlyReport newMillionsMonthlyReport = new Model.InformationProject_MillionsMonthlyReport
{
MillionsMonthlyReportId = millionsMonthlyReport.MillionsMonthlyReportId,
@@ -98,7 +98,7 @@ namespace BLL
/// <param name="millionsMonthlyReport"></param>
public static void UpdateMillionsMonthlyReport(Model.InformationProject_MillionsMonthlyReport millionsMonthlyReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_MillionsMonthlyReport newMillionsMonthlyReport = db.InformationProject_MillionsMonthlyReport.FirstOrDefault(e => e.MillionsMonthlyReportId == millionsMonthlyReport.MillionsMonthlyReportId);
if (newMillionsMonthlyReport != null)
{
@@ -168,7 +168,7 @@ namespace BLL
/// <param name="millionsMonthlyReportId"></param>
public static void DeleteMillionsMonthlyReportById(string millionsMonthlyReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_MillionsMonthlyReport millionsMonthlyReport = db.InformationProject_MillionsMonthlyReport.FirstOrDefault(e => e.MillionsMonthlyReportId == millionsMonthlyReportId);
if (millionsMonthlyReport != null)
{
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ProjectSafetyQuarterlyReportService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取安全生产数据季报
@@ -28,7 +28,7 @@ namespace BLL
/// <param name="safetyQuarterlyReport"></param>
public static void AddSafetyQuarterlyReport(Model.InformationProject_SafetyQuarterlyReport safetyQuarterlyReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_SafetyQuarterlyReport newSafetyQuarterlyReport = new Model.InformationProject_SafetyQuarterlyReport
{
SafetyQuarterlyReportId = safetyQuarterlyReport.SafetyQuarterlyReportId,
@@ -124,7 +124,7 @@ namespace BLL
/// <param name="safetyQuarterlyReport"></param>
public static void UpdateSafetyQuarterlyReport(Model.InformationProject_SafetyQuarterlyReport safetyQuarterlyReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_SafetyQuarterlyReport newSafetyQuarterlyReport = db.InformationProject_SafetyQuarterlyReport.FirstOrDefault(e => e.SafetyQuarterlyReportId == safetyQuarterlyReport.SafetyQuarterlyReportId);
if (newSafetyQuarterlyReport != null)
{
@@ -218,7 +218,7 @@ namespace BLL
/// <param name="safetyQuarterlyReportId"></param>
public static void DeleteSafetyQuarterlyReportById(string safetyQuarterlyReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.InformationProject_SafetyQuarterlyReport safetyQuarterlyReport = db.InformationProject_SafetyQuarterlyReport.FirstOrDefault(e => e.SafetyQuarterlyReportId == safetyQuarterlyReportId);
if (safetyQuarterlyReport != null)
{