数据库变更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="monthReportDetail">工作日报明细实体</param>
public static void AddMonthReportDetail(Model.SitePerson_MonthReportDetail monthReportDetail)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.SitePerson_MonthReportDetail newMonthReportDetail = new Model.SitePerson_MonthReportDetail
{
MonthReportDetailId = monthReportDetail.MonthReportDetailId,
@@ -50,7 +50,7 @@ namespace BLL
/// <param name="monthReportDetail">工作日报明细实体</param>
public static void UpdateReportDetail(Model.SitePerson_MonthReportDetail monthReportDetail)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.SitePerson_MonthReportDetail newMonthReportDetail = db.SitePerson_MonthReportDetail.FirstOrDefault(e => e.MonthReportDetailId == monthReportDetail.MonthReportDetailId);
if (newMonthReportDetail != null)
{
@@ -73,7 +73,7 @@ namespace BLL
/// <param name="monthReportId">工作日报主键</param>
public static void DeleteMonthReportDetailsByMonthReportId(string monthReportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var monthReportDetail = (from x in db.SitePerson_MonthReportDetail where x.MonthReportId == monthReportId select x).ToList();
if (monthReportDetail.Count() > 0)
{
@@ -112,7 +112,7 @@ namespace BLL
/// <returns></returns>
public static List<Model.SitePerson_MonthReportDetail> getMonthReportDetails(string projectId, DateTime sDate)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
List<Model.SitePerson_MonthReportDetail> reportDetails = new List<Model.SitePerson_MonthReportDetail>();
var getAllPersonInOutList = from x in db.SitePerson_PersonInOut
where x.ProjectId == projectId && x.ChangeTime.Value.Year == sDate.Year