1单位参建人数
This commit is contained in:
parent
e2dbaa9167
commit
6bbf6d34b4
|
|
@ -1,4 +1,8 @@
|
|||
using System;
|
||||
using Aspose.Words.Lists;
|
||||
using FineUIPro;
|
||||
using Model;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
|
@ -6,10 +10,6 @@ using System.Runtime.InteropServices.ComTypes;
|
|||
using System.Runtime.Remoting.Contexts;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.UI.WebControls;
|
||||
using Aspose.Words.Lists;
|
||||
using FineUIPro;
|
||||
using Model;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
|
@ -19,6 +19,8 @@ namespace BLL
|
|||
|
||||
//public static List<string> BeUnderConstructionList = ProjectService.GetProjectWorkList().Where(x => (x.ProjectAttribute == "GONGCHENG" || x.ProjectAttribute == null)).Select(x => x.ProjectId).ToList();
|
||||
public static List<string> BeUnderConstructionList = BaseDataService.BeUnderConstructionList;
|
||||
|
||||
|
||||
public static void AddHSSEData_HSSE(HSSEData_HSSE newtable)
|
||||
{
|
||||
using (var db = new SGGLDB(Funs.ConnString))
|
||||
|
|
@ -572,6 +574,7 @@ namespace BLL
|
|||
var beUnderConstructionTask = HSSEData_HSSEService.GetBeUnderConstructionAsync();
|
||||
var shutdownTask = HSSEData_HSSEService.GetShutdownAsync();
|
||||
var joinConstructionPersonTask = HSSEData_HSSEService.GetJoinConstructionPersonAsync();
|
||||
var joinConstructionPersonPushGroupTask = HSSEData_HSSEService.GetJoinConstructionPersonPushGroupAsync();
|
||||
var majorProjectsUnderConstructionTask = HSSEData_HSSEService.GetMajorProjectsUnderConstructionAsync();
|
||||
var totalWorkingHourTask = HSSEData_HSSEService.GetTotalWorkingHourAsync();
|
||||
var lostWorkingHourTask = HSSEData_HSSEService.GetLostWorkingHourAsync();
|
||||
|
|
@ -639,7 +642,7 @@ namespace BLL
|
|||
qualityPersonNumTask,
|
||||
beUnderConstructionTask,
|
||||
shutdownTask,
|
||||
joinConstructionPersonTask,
|
||||
joinConstructionPersonTask, joinConstructionPersonPushGroupTask,
|
||||
majorProjectsUnderConstructionTask,
|
||||
totalWorkingHourTask,
|
||||
lostWorkingHourTask,
|
||||
|
|
@ -708,6 +711,7 @@ namespace BLL
|
|||
var beUnderConstructionList = await beUnderConstructionTask;
|
||||
var shutdownList = await shutdownTask;
|
||||
var joinConstructionPersonList = await joinConstructionPersonTask;
|
||||
var joinConstructionPersonPushGroupList = await joinConstructionPersonPushGroupTask;
|
||||
var majorProjectsUnderConstructionList = await majorProjectsUnderConstructionTask;
|
||||
var totalWorkingHour = await totalWorkingHourTask;
|
||||
var lostWorkingHour = await lostWorkingHourTask;
|
||||
|
|
@ -778,7 +782,8 @@ namespace BLL
|
|||
CertificateBNum = certificateBList.Count(),
|
||||
CertificateCNum = certificateCList.Count(),
|
||||
QualityPersonNum = qualityPersonList.Count(),
|
||||
JoinConstructionPersonNum = joinConstructionPersonList.Count(),
|
||||
//JoinConstructionPersonNum = joinConstructionPersonList.Count(),
|
||||
JoinConstructionPersonNum = joinConstructionPersonPushGroupList.Select(p => new { p.IdentityCard }).Distinct().Count(),
|
||||
MajorProjectsUnderConstructionNum = majorProjectsUnderConstructionList.Count(),
|
||||
TotalWorkingHour = totalWorkingHour,
|
||||
LostWorkingHour = lostWorkingHour,
|
||||
|
|
@ -2931,6 +2936,70 @@ namespace BLL
|
|||
return await Task.Run(GetJoinConstructionPerson);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取集团二级单位名称list,排除本单位【集团下面二级责任单位】
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<string> GetNonLocalUnitNames()
|
||||
{
|
||||
List<string> list = new List<string>();
|
||||
list.Add("中国天辰工程有限公司");
|
||||
list.Add("赛鼎工程有限公司");
|
||||
list.Add("东华工程科技股份有限公司");
|
||||
//list.Add("中国五环工程有限公司");
|
||||
list.Add("华陆工程科技有限责任公司");
|
||||
list.Add("中国成达工程有限公司");
|
||||
list.Add("中化学土木工程有限公司");
|
||||
list.Add("中化二建集团有限公司");
|
||||
list.Add("中国化学工程第三建设有限公司");
|
||||
list.Add("中国化学工程第四建设有限公司");
|
||||
list.Add("中国化学工程第六建设有限公司");
|
||||
list.Add("中国化学工程第七建设有限公司");
|
||||
list.Add("中国化学工程第十一建设有限公司");
|
||||
list.Add("中国化学工程第十三建设有限公司");
|
||||
list.Add("中国化学工程第十四建设有限公司");
|
||||
list.Add("中国化学工程第十六建设有限公司");
|
||||
list.Add("中国化学工程重型机械化有限公司");
|
||||
list.Add("中化学交通建设集团有限公司");
|
||||
list.Add("中化学(北京)建设投资有限公司");
|
||||
list.Add("中化学南方建设投资有限公司");
|
||||
list.Add("中化学城市投资有限公司");
|
||||
list.Add("中化学生态环境有限公司");
|
||||
list.Add("中化学西南工程科技有限公司");
|
||||
list.Add("中化学装备科技集团有限公司");
|
||||
list.Add("中化学华谊工程科技集团有限公司");
|
||||
list.Add("中化学开发建设有限公司");
|
||||
|
||||
return list;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取参建人数【推送集团】
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.BaseEntities> GetJoinConstructionPersonPushGroup()
|
||||
{
|
||||
var NonLocalUnitNamesList = GetNonLocalUnitNames();
|
||||
var result = (from x in Funs.DB.SitePerson_Person
|
||||
join unit in Funs.DB.Base_Unit on x.UnitId equals unit.UnitId into unitJoin
|
||||
from unit in unitJoin.DefaultIfEmpty()
|
||||
where BeUnderConstructionList.Contains(x.ProjectId) && x.IsUsed == true && NonLocalUnitNamesList.Contains(unit.UnitName) == false
|
||||
select new Model.BaseEntities
|
||||
{
|
||||
Id = x.PersonId,
|
||||
IdentityCard = x.IdentityCard,
|
||||
ProjectId = x.ProjectId,
|
||||
UnitId = x.UnitId,
|
||||
}).ToList();
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取参建人数(异步)【推送集团】
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static async Task<List<Model.BaseEntities>> GetJoinConstructionPersonPushGroupAsync()
|
||||
{
|
||||
return await Task.Run(GetJoinConstructionPersonPushGroup);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取在施危大工程数
|
||||
|
|
|
|||
|
|
@ -34,6 +34,11 @@
|
|||
/// 单位编码
|
||||
/// </summary>
|
||||
public string UnitCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 身份证号码
|
||||
/// </summary>
|
||||
public string IdentityCard { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -86,22 +86,22 @@
|
|||
<publishTime>10/28/2024 14:02:50</publishTime>
|
||||
</File>
|
||||
<File Include="bin/App_global.asax.compiled">
|
||||
<publishTime>12/24/2025 19:02:32</publishTime>
|
||||
<publishTime>01/07/2026 10:21:13</publishTime>
|
||||
</File>
|
||||
<File Include="bin/App_global.asax.dll">
|
||||
<publishTime>12/24/2025 19:02:32</publishTime>
|
||||
<publishTime>01/07/2026 10:21:13</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Aspose.Words.dll">
|
||||
<publishTime>12/06/2024 20:13:58</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BLL.dll">
|
||||
<publishTime>12/24/2025 19:02:12</publishTime>
|
||||
<publishTime>01/07/2026 10:20:54</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BLL.dll.config">
|
||||
<publishTime>12/26/2024 09:46:52</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BLL.pdb">
|
||||
<publishTime>12/24/2025 19:02:12</publishTime>
|
||||
<publishTime>01/07/2026 10:20:54</publishTime>
|
||||
</File>
|
||||
<File Include="bin/BouncyCastle.Crypto.dll">
|
||||
<publishTime>12/18/2020 05:32:28</publishTime>
|
||||
|
|
@ -128,10 +128,10 @@
|
|||
<publishTime>07/25/2012 19:48:56</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Model.dll">
|
||||
<publishTime>12/24/2025 19:02:06</publishTime>
|
||||
<publishTime>01/07/2026 10:20:48</publishTime>
|
||||
</File>
|
||||
<File Include="bin/Model.pdb">
|
||||
<publishTime>12/24/2025 19:02:06</publishTime>
|
||||
<publishTime>01/07/2026 10:20:48</publishTime>
|
||||
</File>
|
||||
<File Include="bin/netstandard.dll">
|
||||
<publishTime>12/09/2025 18:19:15</publishTime>
|
||||
|
|
@ -389,13 +389,13 @@
|
|||
<publishTime>02/09/2013 00:42:28</publishTime>
|
||||
</File>
|
||||
<File Include="bin/WebAPI.dll">
|
||||
<publishTime>12/24/2025 19:02:13</publishTime>
|
||||
<publishTime>01/07/2026 10:20:55</publishTime>
|
||||
</File>
|
||||
<File Include="bin/WebAPI.pdb">
|
||||
<publishTime>12/24/2025 19:02:13</publishTime>
|
||||
<publishTime>01/07/2026 10:20:55</publishTime>
|
||||
</File>
|
||||
<File Include="bin/WebAPI.xml">
|
||||
<publishTime>12/24/2025 19:02:13</publishTime>
|
||||
<publishTime>01/07/2026 10:20:55</publishTime>
|
||||
</File>
|
||||
<File Include="bin/WebGrease.dll">
|
||||
<publishTime>01/23/2014 21:57:34</publishTime>
|
||||
|
|
@ -479,7 +479,7 @@
|
|||
<publishTime>10/28/2024 14:02:50</publishTime>
|
||||
</File>
|
||||
<File Include="PrecompiledApp.config">
|
||||
<publishTime>12/24/2025 19:02:14</publishTime>
|
||||
<publishTime>01/07/2026 10:20:56</publishTime>
|
||||
</File>
|
||||
<File Include="Scripts/bootstrap.js">
|
||||
<publishTime>10/28/2024 14:02:50</publishTime>
|
||||
|
|
|
|||
Loading…
Reference in New Issue