20220906新增项目劳务人员查看页面、合同信息表、取用户接口修改
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user