数据库变更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
@@ -24,7 +24,7 @@ namespace BLL
/// <param name="monthReport">工作月报实体</param>
public static void AddMonthReport(Model.SitePerson_MonthReport monthReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.SitePerson_MonthReport newMonthReport = new Model.SitePerson_MonthReport
{
MonthReportId = monthReport.MonthReportId,
@@ -46,7 +46,7 @@ namespace BLL
/// <param name="monthReport">工作月报实体</param>
public static void UpdateMonthReport(Model.SitePerson_MonthReport monthReport)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.SitePerson_MonthReport newMonthReport = db.SitePerson_MonthReport.FirstOrDefault(e => e.MonthReportId == monthReport.MonthReportId);
if (newMonthReport != null)
{
@@ -65,7 +65,7 @@ namespace BLL
/// <param name="monthReportId">工作月报主键</param>
public static void DeleteMonthReportByMonthReportId(string monthReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.SitePerson_MonthReport monthReport = db.SitePerson_MonthReport.FirstOrDefault(e => e.MonthReportId == monthReportId);
if (monthReport != null)
{
@@ -116,7 +116,7 @@ namespace BLL
/// <returns></returns>
public static List<Model.SitePerson_MonthReport> getMonthReports(string projectId, DateTime? sDate)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
List<Model.SitePerson_MonthReport> reports = new List<Model.SitePerson_MonthReport>();
var getAllPersonInOutList = from x in db.SitePerson_PersonInOutNumber
where x.ProjectId == projectId
@@ -158,7 +158,7 @@ namespace BLL
/// <returns></returns>
public static List<Model.SitePerson_MonthReport> getTotalMonthReports(string projectId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
List<Model.SitePerson_MonthReport> reports = new List<Model.SitePerson_MonthReport>();
var getAllPersonInOutList = from x in db.SitePerson_PersonInOutNumber
where x.ProjectId == projectId