全局处理问题:public static Model.SGGLDB db = Funs.DB;
This commit is contained in:
@@ -11,7 +11,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ConstructionLogService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取项目级施工日志
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class ConstructionPlanApproveService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取分页列表
|
||||
@@ -17,6 +17,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string ConstructionPlanId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
return from x in db.ZHGL_ConstructionPlanApprove
|
||||
where x.ConstructionPlanId == ConstructionPlanId && x.ApproveDate != null
|
||||
orderby x.ApproveDate
|
||||
@@ -98,6 +99,7 @@ namespace BLL
|
||||
/// <returns>一个总承包商施工计划审批实体</returns>
|
||||
public static Model.ZHGL_ConstructionPlanApprove GetConstructionPlanApproveByConstructionPlanId(string constructionPlanId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
return db.ZHGL_ConstructionPlanApprove.FirstOrDefault(x => x.ConstructionPlanId == constructionPlanId && x.ApproveDate == null);
|
||||
}
|
||||
/// <summary>
|
||||
@@ -120,6 +122,7 @@ namespace BLL
|
||||
|
||||
public static Model.ZHGL_ConstructionPlanApprove GetComplie(string ConstructionPlanId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
return db.ZHGL_ConstructionPlanApprove.FirstOrDefault(x => x.ConstructionPlanId == ConstructionPlanId && x.ApproveType == BLL.Const.ConstructionPlan_Compile);
|
||||
}
|
||||
public static Model.ZHGL_ConstructionPlanApprove GetConstructionPlanApproveById(string ConstructionPlanApproveId)
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ConstructionPlanService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取总承包商施工计划
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ConstructionReportService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取总承包商施工报告
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class PictureService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取项目图片
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ReceiveFileManagerService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取一般来文
|
||||
@@ -166,6 +166,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static void IssueReceiveFile(string receiveFileManagerId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var getFile = Funs.DB.InformationProject_ReceiveFileManager.FirstOrDefault(x => x.ReceiveFileManagerId == receiveFileManagerId);
|
||||
if (getFile != null && getFile.FileType == "1")
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class WorkHandoverApproveService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取分页列表
|
||||
@@ -17,6 +17,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string WorkHandoverId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
return from x in db.ZHGL_WorkHandoverApprove
|
||||
where x.WorkHandoverId == WorkHandoverId && x.ApproveDate != null
|
||||
orderby x.ApproveDate
|
||||
@@ -98,6 +99,7 @@ namespace BLL
|
||||
/// <returns>一个工作交接审批实体</returns>
|
||||
public static Model.ZHGL_WorkHandoverApprove GetWorkHandoverApproveByWorkHandoverId(string constructionPlanId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
return db.ZHGL_WorkHandoverApprove.FirstOrDefault(x => x.WorkHandoverId == constructionPlanId && x.ApproveDate == null);
|
||||
}
|
||||
/// <summary>
|
||||
@@ -120,6 +122,7 @@ namespace BLL
|
||||
|
||||
public static Model.ZHGL_WorkHandoverApprove GetComplie(string WorkHandoverId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
return db.ZHGL_WorkHandoverApprove.FirstOrDefault(x => x.WorkHandoverId == WorkHandoverId && x.ApproveType == BLL.Const.WorkHandover_Compile);
|
||||
}
|
||||
public static Model.ZHGL_WorkHandoverApprove GetWorkHandoverApproveById(string WorkHandoverApproveId)
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class WorkHandoverDetailService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取工作交接明细列表
|
||||
@@ -19,6 +19,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string WorkHandoverId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
return from x in db.ZHGL_WorkHandoverDetail
|
||||
where x.WorkHandoverId == WorkHandoverId
|
||||
select new
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class WorkHandoverService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取工作交接
|
||||
|
||||
Reference in New Issue
Block a user