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
@@ -11,7 +11,7 @@ namespace BLL
/// </summary>
public static class ConstructionLogService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取项目级施工日志
@@ -9,7 +9,7 @@ namespace BLL
{
public class ConstructionPlanApproveService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 获取分页列表
@@ -17,6 +17,7 @@ namespace BLL
/// <returns></returns>
public static IEnumerable getListData(string ConstructionPlanId)
{
Model.CNPCDB 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.CNPCDB 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.CNPCDB 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.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取总承包商施工计划
@@ -9,7 +9,7 @@ namespace BLL
{
public class ConstructionReportApproveService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 获取分页列表
@@ -17,6 +17,7 @@ namespace BLL
/// <returns></returns>
public static IEnumerable getListData(string ConstructionReportId)
{
Model.CNPCDB 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.CNPCDB 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.CNPCDB 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.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取总承包商施工报告
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class PictureService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取项目图片
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ReceiveFileManagerService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取一般来文
@@ -45,9 +45,9 @@ namespace BLL
AttachUrl = ReceiveFileManager.AttachUrl,
States = ReceiveFileManager.States,
UnitIds = ReceiveFileManager.UnitIds,
FileType=ReceiveFileManager.FileType,
FromId=ReceiveFileManager.FromId,
FromType=ReceiveFileManager.FromType,
FileType = ReceiveFileManager.FileType,
FromId = ReceiveFileManager.FromId,
FromType = ReceiveFileManager.FromType,
};
db.InformationProject_ReceiveFileManager.InsertOnSubmit(newReceiveFileManager);
db.SubmitChanges();
@@ -65,7 +65,7 @@ namespace BLL
Model.InformationProject_ReceiveFileManager newReceiveFileManager = db.InformationProject_ReceiveFileManager.FirstOrDefault(e => e.ReceiveFileManagerId == ReceiveFileManager.ReceiveFileManagerId);
if (newReceiveFileManager != null)
{
// newReceiveFileManager.ReceiveFileCode = ReceiveFileManager.ReceiveFileCode;
// newReceiveFileManager.ReceiveFileCode = ReceiveFileManager.ReceiveFileCode;
newReceiveFileManager.ReceiveFileName = ReceiveFileManager.ReceiveFileName;
newReceiveFileManager.Version = ReceiveFileManager.Version;
newReceiveFileManager.FileUnitId = ReceiveFileManager.FileUnitId;
@@ -109,7 +109,7 @@ namespace BLL
public static void CreateReceiveFile(Model.InformationProject_Notice notice)
{
var getProjects = Funs.GetStrListByStr(notice.AccessProjectId, ',');
string unitId =Const.UnitId_XJYJ;
string unitId = Const.UnitId_XJYJ;
var getAtt = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == notice.NoticeId);
foreach (var item in getProjects)
{
@@ -126,8 +126,8 @@ namespace BLL
GetFileDate = DateTime.Now,
SendPersonId = notice.CompileMan,
MainContent = notice.MainContent,
FromId=notice.NoticeId,
FromType ="1",
FromId = notice.NoticeId,
FromType = "1",
};
if (!string.IsNullOrEmpty(notice.ProjectId))
{
@@ -150,7 +150,7 @@ namespace BLL
newFile.FileType = "1";
newFile.UnitIds = unitId;
}
newFile.States = Const.State_2;
ReceiveFileManagerService.AddReceiveFileManager(newFile);
if (getAtt != null && !string.IsNullOrEmpty(getAtt.AttachUrl))
@@ -166,6 +166,7 @@ namespace BLL
/// </summary>
public static void IssueReceiveFile(string receiveFileManagerId)
{
Model.CNPCDB db = Funs.DB;
var getFile = Funs.DB.InformationProject_ReceiveFileManager.FirstOrDefault(x => x.ReceiveFileManagerId == receiveFileManagerId);
if (getFile != null && getFile.FileType == "1")
{
@@ -185,7 +186,7 @@ namespace BLL
Model.InformationProject_ReceiveFileManager newReceiveFileManager = new Model.InformationProject_ReceiveFileManager
{
ReceiveFileManagerId = SQLHelper.GetNewID(),
ProjectId = getFile.ProjectId,
ProjectId = getFile.ProjectId,
ReceiveFileName = getFile.ReceiveFileName,
Version = getFile.Version,
FileUnitId = getFile.FileUnitId,
@@ -9,7 +9,7 @@ namespace BLL
{
public class WorkHandoverApproveService
{
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 获取分页列表
@@ -17,6 +17,7 @@ namespace BLL
/// <returns></returns>
public static IEnumerable getListData(string WorkHandoverId)
{
Model.CNPCDB 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.CNPCDB 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.CNPCDB 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.CNPCDB db = Funs.DB;
/// <summary>
/// 获取工作交接明细列表
@@ -19,6 +19,7 @@ namespace BLL
/// <returns></returns>
public static IEnumerable getListData(string WorkHandoverId)
{
Model.CNPCDB 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.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取工作交接