全局处理问题:public static Model.SGGLDB db = Funs.DB;

This commit is contained in:
2026-04-23 11:36:49 +08:00
parent 5a38880a14
commit 746cb57619
315 changed files with 641 additions and 449 deletions
@@ -9,7 +9,7 @@ namespace BLL
{
public class ConstructionReportApproveService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 获取分页列表
@@ -17,6 +17,7 @@ namespace BLL
/// <returns></returns>
public static IEnumerable getListData(string ConstructionReportId)
{
Model.SGGLDB db = Funs.DB;
return from x in db.ZHGL_ConstructionReportApprove
where x.ConstructionReportId == ConstructionReportId && x.ApproveDate != null
orderby x.ApproveDate
@@ -98,6 +99,7 @@ namespace BLL
/// <returns>一个总承包商施工报告审批实体</returns>
public static Model.ZHGL_ConstructionReportApprove GetConstructionReportApproveByConstructionReportId(string constructionReportId)
{
Model.SGGLDB db = Funs.DB;
return db.ZHGL_ConstructionReportApprove.FirstOrDefault(x => x.ConstructionReportId == constructionReportId && x.ApproveDate == null);
}
/// <summary>
@@ -120,6 +122,7 @@ namespace BLL
public static Model.ZHGL_ConstructionReportApprove GetComplie(string ConstructionReportId)
{
Model.SGGLDB db = Funs.DB;
return db.ZHGL_ConstructionReportApprove.FirstOrDefault(x => x.ConstructionReportId == ConstructionReportId && x.ApproveType == BLL.Const.ConstructionReport_Compile);
}
public static Model.ZHGL_ConstructionReportApprove GetConstructionReportApproveById(string ConstructionReportApproveId)