数据库变更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
@@ -8,7 +8,7 @@ namespace BLL
{
public class HeadMonthReportBService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据安全统计主键获取安全统计信息
@@ -69,7 +69,7 @@ namespace BLL
/// <param name="headMonthReport">安全统计实体</param>
public static void AddHeadMonthReport(Model.Manager_HeadMonthReportB headMonthReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
string newKeyID = SQLHelper.GetNewID(typeof(Model.Manager_HeadMonthReportB));
Model.Manager_HeadMonthReportB newHeadMonthReport = new Model.Manager_HeadMonthReportB
{
@@ -94,7 +94,7 @@ namespace BLL
/// <param name="headMonthReport">安全统计实体</param>
public static void UpdateHeadMonthReport(Model.Manager_HeadMonthReportB headMonthReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Manager_HeadMonthReportB newHeadMonthReport = db.Manager_HeadMonthReportB.First(e => e.HeadMonthReportId == headMonthReport.HeadMonthReportId);
newHeadMonthReport.MonthReportCode = headMonthReport.MonthReportCode;
newHeadMonthReport.Months = headMonthReport.Months;
@@ -114,7 +114,7 @@ namespace BLL
/// <param name="headMonthReportId">安全统计主键</param>
public static void DeleteHeadMonthReportByHeadMonthReportId(string headMonthReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Manager_HeadMonthReportB headMonthReport = db.Manager_HeadMonthReportB.First(e => e.HeadMonthReportId == headMonthReportId);
db.Manager_HeadMonthReportB.DeleteOnSubmit(headMonthReport);
db.SubmitChanges();