This commit is contained in:
2026-04-08 14:03:39 +08:00
parent 7ecbc2ebc0
commit 4a1b636ce0
353 changed files with 1378 additions and 500 deletions
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class AccidentReport2Service
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取事故调查报告
@@ -7,7 +7,7 @@ namespace BLL
{
public class AccidentSortBService
{
public static Model.CNPCDB db = Funs.DB;
public static Model.Manager_AccidentSortB GetAccidentSortsByMonthReportIdAndAccidentType(string monthReportId, string accidentType)
{
@@ -101,6 +101,7 @@ namespace BLL
/// <param name="monthReportId">月报告主键</param>
public static void DeleteAccidentSortsByMonthReportId(string monthReportId)
{
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Manager_AccidentSortB where x.MonthReportId == monthReportId select x).ToList();
db.Manager_AccidentSortB.DeleteAllOnSubmit(q);
db.SubmitChanges();
@@ -7,7 +7,7 @@ namespace BLL
{
public class CheckSortBService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据月报告主键获取所有月报告HSE检查情况信息
@@ -75,6 +75,7 @@ namespace BLL
/// <param name="monthReportId">月报告主键</param>
public static void DeleteCheckSortsByMonthReportId(string monthReportId)
{
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Manager_CheckSortB where x.MonthReportId == monthReportId select x).ToList();
db.Manager_CheckSortB.DeleteAllOnSubmit(q);
db.SubmitChanges();
@@ -10,7 +10,7 @@ namespace BLL
{
public class CostStatisticService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 记录数
/// </summary>
@@ -23,7 +23,7 @@ namespace BLL
/// <summary>
/// 定义变量
/// </summary>
private static IQueryable<Model.TC_CostStatistic> cost = from x in db.TC_CostStatistic orderby x.CostStatisticCode descending select x;
private static IQueryable<Model.TC_CostStatistic> cost = from x in Funs.DB.TC_CostStatistic orderby x.CostStatisticCode descending select x;
/// <summary>
/// 获取分页列表
@@ -7,7 +7,7 @@ namespace BLL
{
public class IncentiveSortBService
{
public static Model.CNPCDB db = Funs.DB;
public static Model.Manager_IncentiveSortB GetIncentiveSortByMonthReportIdAndIncentiveType(string monthReportId, string incentiveType)
{
@@ -77,6 +77,7 @@ namespace BLL
/// <param name="monthReportId">月报告主键</param>
public static void DeleteIncentiveSortsByMonthReportId(string monthReportId)
{
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Manager_IncentiveSortB where x.MonthReportId == monthReportId select x).ToList();
db.Manager_IncentiveSortB.DeleteAllOnSubmit(q);
db.SubmitChanges();
@@ -8,7 +8,7 @@ namespace BLL
{
public class ManhoursSortBService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 获取分页列表
@@ -16,6 +16,7 @@ namespace BLL
/// <returns></returns>
public static IEnumerable getListData(string monthReportId)
{
Model.CNPCDB db = Funs.DB;
return from x in db.Manager_ManhoursSortB
where x.MonthReportId == monthReportId
orderby x.UnitId
@@ -7,7 +7,7 @@ namespace BLL
{
public class MeetingSortBService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据月报告主键获取所有月报告HSE会议情况信息
@@ -78,6 +78,7 @@ namespace BLL
/// <param name="monthReportId">月报告主键</param>
public static void DeleteMeetingSortsByMonthReportId(string monthReportId)
{
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Manager_MeetingSortB where x.MonthReportId == monthReportId select x).ToList();
db.Manager_MeetingSortB.DeleteAllOnSubmit(q);
db.SubmitChanges();
@@ -7,7 +7,7 @@ namespace BLL
{
public class TrainSortBService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据月报告主键获取所有月报告HSE培训情况信息
@@ -75,6 +75,7 @@ namespace BLL
/// <param name="monthReportId">月报告主键</param>
public static void DeleteTrainSortsByMonthReportId(string monthReportId)
{
Model.CNPCDB db = Funs.DB;
var q = (from x in db.Manager_TrainSortB where x.MonthReportId == monthReportId select x).ToList();
db.Manager_TrainSortB.DeleteAllOnSubmit(q);
db.SubmitChanges();