1
This commit is contained in:
@@ -7,7 +7,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class CompletionReportService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取完工报告
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public class HeadMonthReportBService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据安全统计主键获取安全统计信息
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class AccidentSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
public static Model.Manager_AccidentSortC GetAccidentSortsByMonthReportIdAndAccidentType(string monthReportId, string accidentType)
|
||||
{
|
||||
@@ -89,6 +89,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_AccidentSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_AccidentSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class ActivityDesCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报Id获取相关所有活动情况说明信息
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class CheckDetailSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告HSE检查明细情况信息
|
||||
@@ -53,6 +53,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteCheckDetailSortsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_CheckDetailSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_CheckDetailSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class CheckSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告HSE检查情况信息
|
||||
@@ -77,6 +77,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_CheckSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_CheckSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class DrillSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告应急演练信息
|
||||
@@ -48,6 +48,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteDrillSortsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_DrillSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_DrillSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class EmergencySortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告应急预案信息
|
||||
@@ -48,6 +48,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteEmergencySortsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_EmergencySortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_EmergencySortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class HazardSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告危险源信息
|
||||
@@ -48,6 +48,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteHazardSortsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_HazardSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_HazardSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public class HseCostCService
|
||||
{
|
||||
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_HseCostC
|
||||
where x.MonthReportId == monthReportId
|
||||
orderby x.UnitId
|
||||
@@ -77,6 +78,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteHseCostsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_HseCostC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_HseCostC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class IncentiveSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
public static List<Model.Manager_IncentiveSortC> GetIncentiveSortsByMonthReportIdAndBigType(string monthReportId, string bigType)
|
||||
{
|
||||
@@ -67,6 +67,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_IncentiveSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_IncentiveSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class MeetingSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告HSE会议情况信息
|
||||
@@ -55,6 +55,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_MeetingSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_MeetingSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class OtherActiveSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告其他HSE管理活动信息
|
||||
@@ -47,6 +47,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteOtherActiveSortsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_OtherActiveSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_OtherActiveSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class OtherManagementCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报Id获取HSE现场其他管理情况信息
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class PersonSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告HSE人力投入信息
|
||||
@@ -54,6 +54,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeletePersonSortsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_PersonSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_PersonSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class PlanCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报Id获取本月文件、方案修编情况说明
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class PromotionalActiviteSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告HSE宣传活动信息
|
||||
@@ -48,6 +48,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeletePromotionalActiviteSortsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_PromotionalActiviteSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_PromotionalActiviteSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class TrainActivitySortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告HSE培训活动信息
|
||||
@@ -47,6 +47,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteTrainActivitySortsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_TrainActivitySortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_TrainActivitySortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public class TrainSortCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据月报告主键获取所有月报告HSE培训情况信息
|
||||
@@ -49,6 +49,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_TrainSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_TrainSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
Reference in New Issue
Block a user