20220906新增项目劳务人员查看页面、合同信息表、取用户接口修改

This commit is contained in:
2022-09-06 14:23:32 +08:00
parent c26e450d67
commit fc4f47dbab
39 changed files with 3809 additions and 307 deletions
+22 -2
View File
@@ -1,7 +1,9 @@
using System;
using Microsoft.SqlServer.Dts.Runtime;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web.Security;
namespace BLL
{
@@ -105,7 +107,25 @@ namespace BLL
person.OutTime = string.Format("{0:yyyy-MM-dd}", getProjectPerson.OutTime);
person.OutResult = getProjectPerson.OutResult;
person.AuditorId = getProjectPerson.AuditorId;
person.AuditorName = db.Person_Persons.First(z => z.PersonId == getProjectPerson.AuditorId).PersonName;
var getAuPerson = db.Person_Persons.FirstOrDefault(z => z.PersonId == getProjectPerson.AuditorId);
if (getAuPerson != null)
{
person.AuditorName = getAuPerson.PersonName;
}
else
{
var getAs = Person_PersonsService.GetUserListByProjectIdUnitIdRoleId(getProjectPerson.ProjectId, Const.UnitId_SEDIN, BLL.Const.HSSEManager + "," + BLL.Const.HSSEAssistantManager);
if (getAs.Count() > 0)
{
var getA = getAs.FirstOrDefault();
if (getA != null)
{
person.AuditorId = getA.PersonId;
person.AuditorName = getA.PersonName;
}
}
}
person.AuditorDate = string.Format("{0:yyyy-MM-dd}", getProjectPerson.AuditorDate);
person.AttachUrl2 = APIUpLoadFileService.getFileUrl(getProjectPerson.PersonId + "#2", null);
person.AttachUrl3 = APIUpLoadFileService.getFileUrl(getProjectPerson.PersonId + "#3", null);