大屏看板
This commit is contained in:
@@ -38,8 +38,18 @@ namespace BLL
|
||||
{
|
||||
_beUnderConstructionList = new List<string>() { "0" };
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public MainSevice(string userid, string projectId)
|
||||
{
|
||||
var userModel = UserService.GetUserByUserId(userid);
|
||||
int unitType = 3;
|
||||
_unitId = userModel.UnitId;
|
||||
_unitType = unitType;
|
||||
_beUnderConstructionList = new List<string>() { projectId };
|
||||
}
|
||||
|
||||
|
||||
public async Task<HSSEData_HSSE> GetHsseDataAsync()
|
||||
{
|
||||
try
|
||||
@@ -316,6 +326,17 @@ namespace BLL
|
||||
table.CertificateBNum = certificateBList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
|
||||
table.CertificateCNum = certificateCList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) || x.UnitId == _unitId);
|
||||
}
|
||||
else if (_unitType ==3)
|
||||
{
|
||||
table.BeUnderConstructionNum = beUnderConstructionList.Count(x => _beUnderConstructionList.Contains(x.ProjectId));
|
||||
table.ShutdownNum = shutdownList.Count(x => _beUnderConstructionList.Contains(x.ProjectId));
|
||||
table.SafetyCommitteeMeetingNum = safetyCommitteeMeetingList.Count(x => _beUnderConstructionList.Contains(x.ProjectId));
|
||||
table.SafetyInjectionEngineer = safetyInjectionEngineerList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) );
|
||||
table.EnterpriseTopicsMeetingNum = safetyInjectionEngineerList.Count(x => _beUnderConstructionList.Contains(x.ProjectId));
|
||||
table.CertificateANum = certificateAList.Count(x => _beUnderConstructionList.Contains(x.ProjectId));
|
||||
table.CertificateBNum = certificateBList.Count(x => _beUnderConstructionList.Contains(x.ProjectId));
|
||||
table.CertificateCNum = certificateCList.Count(x => _beUnderConstructionList.Contains(x.ProjectId) );
|
||||
}
|
||||
|
||||
_hsseData = table;
|
||||
return _hsseData;
|
||||
|
||||
Reference in New Issue
Block a user