修改实施计划导出
This commit is contained in:
@@ -702,6 +702,8 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
builder.EndRow();
|
||||
}
|
||||
foreach (var item in ActionPlan_ActionPlanListApproveList2)
|
||||
{
|
||||
if (item.ApproveMan != "905a75d6-e733-449f-9742-4dcd71e8d2e1" && item.DepartId != BLL.Const.Depart_CompanyLeaderId)
|
||||
{
|
||||
//部门名称
|
||||
builder.InsertCell();
|
||||
@@ -762,6 +764,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
}
|
||||
builder.EndRow();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#region 最后2行审核
|
||||
@@ -783,6 +786,13 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
builder.CellFormat.Width = 300;
|
||||
builder.Font.Bold = true;
|
||||
builder.RowFormat.Height = 40;
|
||||
var AQApprove = (from x in db.ActionPlan_ActionPlanListApprove
|
||||
where x.ApproveMan == "905a75d6-e733-449f-9742-4dcd71e8d2e1"
|
||||
select x).FirstOrDefault();
|
||||
if (AQApprove != null)
|
||||
{
|
||||
builder.Write(AQApprove.ApproveIdea + "\n\n");
|
||||
}
|
||||
builder.Write("公司安全总监/部门负责人:");
|
||||
var personAQ = BLL.Person_PersonsService.GetPerson_PersonsById("905a75d6-e733-449f-9742-4dcd71e8d2e1"); //安全总监任学宁
|
||||
if (!string.IsNullOrEmpty(personAQ.SignatureUrl) && File.Exists(rootPath + personAQ.SignatureUrl))
|
||||
@@ -817,13 +827,17 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
builder.CellFormat.Width = 300;
|
||||
builder.Font.Bold = true;
|
||||
builder.RowFormat.Height = 40;
|
||||
builder.Write("公司主管生产/安全领导:");
|
||||
var GSLDApprove = (from x in db.ActionPlan_ActionPlanListApprove
|
||||
join y in db.Person_Persons
|
||||
on x.ApproveMan equals y.PersonId
|
||||
where x.ActionPlanListId == Id && x.DepartId == BLL.Const.Depart_CompanyLeaderId
|
||||
select x).FirstOrDefault();
|
||||
if (GSLDApprove != null)
|
||||
{
|
||||
builder.Write(GSLDApprove.ApproveIdea + "\n\n");
|
||||
}
|
||||
builder.Write("公司主管生产/安全领导:");
|
||||
if (GSLDApprove != null)
|
||||
{
|
||||
var personGSLD = BLL.Person_PersonsService.GetPerson_PersonsById(GSLDApprove.ApproveMan);
|
||||
if (!string.IsNullOrEmpty(personGSLD.SignatureUrl) && File.Exists(rootPath + personGSLD.SignatureUrl))
|
||||
|
||||
@@ -684,6 +684,8 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
builder.EndRow();
|
||||
}
|
||||
foreach (var item in ActionPlan_ActionPlanListApproveList2)
|
||||
{
|
||||
if (item.ApproveMan != "905a75d6-e733-449f-9742-4dcd71e8d2e1" && item.DepartId != BLL.Const.Depart_CompanyLeaderId)
|
||||
{
|
||||
//部门名称
|
||||
builder.InsertCell();
|
||||
@@ -744,6 +746,7 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
}
|
||||
builder.EndRow();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#region 最后2行审核
|
||||
@@ -765,6 +768,13 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
builder.CellFormat.Width = 300;
|
||||
builder.Font.Bold = true;
|
||||
builder.RowFormat.Height = 40;
|
||||
var AQApprove = (from x in db.ActionPlan_ActionPlanListApprove
|
||||
where x.ApproveMan == "905a75d6-e733-449f-9742-4dcd71e8d2e1"
|
||||
select x).FirstOrDefault();
|
||||
if (AQApprove != null)
|
||||
{
|
||||
builder.Write(AQApprove.ApproveIdea + "\n\n");
|
||||
}
|
||||
builder.Write("公司安全总监/部门负责人:");
|
||||
var personAQ = BLL.Person_PersonsService.GetPerson_PersonsById("905a75d6-e733-449f-9742-4dcd71e8d2e1"); //安全总监任学宁
|
||||
if (!string.IsNullOrEmpty(personAQ.SignatureUrl) && File.Exists(rootPath + personAQ.SignatureUrl))
|
||||
@@ -799,13 +809,17 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
builder.CellFormat.Width = 300;
|
||||
builder.Font.Bold = true;
|
||||
builder.RowFormat.Height = 40;
|
||||
builder.Write("公司主管生产/安全领导:");
|
||||
var GSLDApprove = (from x in db.ActionPlan_ActionPlanListApprove
|
||||
join y in db.Person_Persons
|
||||
on x.ApproveMan equals y.PersonId
|
||||
where x.ActionPlanListId == Id && x.DepartId == BLL.Const.Depart_CompanyLeaderId
|
||||
select x).FirstOrDefault();
|
||||
if (GSLDApprove != null)
|
||||
{
|
||||
builder.Write(GSLDApprove.ApproveIdea + "\n\n");
|
||||
}
|
||||
builder.Write("公司主管生产/安全领导:");
|
||||
if (GSLDApprove != null)
|
||||
{
|
||||
var personGSLD = BLL.Person_PersonsService.GetPerson_PersonsById(GSLDApprove.ApproveMan);
|
||||
if (!string.IsNullOrEmpty(personGSLD.SignatureUrl) && File.Exists(rootPath + personGSLD.SignatureUrl))
|
||||
|
||||
Reference in New Issue
Block a user