修改安全实施计划导出
This commit is contained in:
@@ -647,8 +647,17 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
builder.Font.Bold = false;
|
||||
if (item.ApproveDate != null)
|
||||
{
|
||||
string personName = Person_PersonsService.GetPersonsNameById(item.ApproveMan);
|
||||
builder.Write(personName + " " + item.ApproveDate.ToString().Split(' ')[0]);
|
||||
var getUser = Person_PersonsService.GetPerson_PersonsById(item.ApproveMan);
|
||||
if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
{
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
builder.InsertImage(file, 80, 20);
|
||||
builder.Write(item.ApproveDate.ToString().Split(' ')[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
builder.Write(getUser.PersonName + " " + item.ApproveDate.ToString().Split(' ')[0]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -699,8 +708,17 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
builder.Font.Bold = false;
|
||||
if (item.ApproveDate != null)
|
||||
{
|
||||
string personName = Person_PersonsService.GetPersonsNameById(item.ApproveMan);
|
||||
builder.Write(personName + " " + item.ApproveDate.ToString().Split(' ')[0]);
|
||||
var getUser = Person_PersonsService.GetPerson_PersonsById(item.ApproveMan);
|
||||
if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
{
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
builder.InsertImage(file, 80, 20);
|
||||
builder.Write(item.ApproveDate.ToString().Split(' ')[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
builder.Write(getUser.PersonName + " " + item.ApproveDate.ToString().Split(' ')[0]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user