修改实施计划导出
This commit is contained in:
parent
da7aaf15bd
commit
3c1ac7f7fa
|
|
@ -389,7 +389,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
|||
|
||||
string Id = Grid1.SelectedRowID;
|
||||
Model.ActionPlan_ActionPlanList actionPlanList = BLL.ActionPlanListService.GetActionPlanListById(Id);
|
||||
if (actionPlanList.States != BLL.Const.ActionPlanList_Complete)
|
||||
if (actionPlanList.States != BLL.Const.ActionPlanList_Complete && this.CurrUser.PersonId != BLL.Const.sysglyId && this.CurrUser.PersonId != BLL.Const.hfnbdId)
|
||||
{
|
||||
Alert.ShowInTop("状态必须为审批完成的才能导出!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
|
|
@ -645,6 +645,8 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
|||
builder.EndRow();
|
||||
#endregion
|
||||
foreach (var item in approves)
|
||||
{
|
||||
if (item.ApproveDate != null)
|
||||
{
|
||||
//部门名称
|
||||
builder.InsertCell();
|
||||
|
|
@ -701,9 +703,10 @@ 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)
|
||||
if (item.ApproveMan != "905a75d6-e733-449f-9742-4dcd71e8d2e1" && item.DepartId != BLL.Const.Depart_CompanyLeaderId && item.ApproveDate != null)
|
||||
{
|
||||
//部门名称
|
||||
builder.InsertCell();
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ namespace FineUIPro.Web.ZHGL.Plan
|
|||
|
||||
string Id = Grid1.SelectedRowID;
|
||||
Model.ActionPlan_ActionPlanList actionPlanList = BLL.ActionPlanListService.GetActionPlanListById(Id);
|
||||
if (actionPlanList.States != BLL.Const.ActionPlanList_Complete)
|
||||
if (actionPlanList.States != BLL.Const.ActionPlanList_Complete && this.CurrUser.PersonId != BLL.Const.sysglyId && this.CurrUser.PersonId != BLL.Const.hfnbdId)
|
||||
{
|
||||
Alert.ShowInTop("状态必须为审批完成的才能导出!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
|
|
@ -627,6 +627,8 @@ namespace FineUIPro.Web.ZHGL.Plan
|
|||
builder.EndRow();
|
||||
#endregion
|
||||
foreach (var item in approves)
|
||||
{
|
||||
if (item.ApproveDate != null)
|
||||
{
|
||||
//部门名称
|
||||
builder.InsertCell();
|
||||
|
|
@ -683,9 +685,10 @@ 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)
|
||||
if (item.ApproveMan != "905a75d6-e733-449f-9742-4dcd71e8d2e1" && item.DepartId != BLL.Const.Depart_CompanyLeaderId && item.ApproveDate != null)
|
||||
{
|
||||
//部门名称
|
||||
builder.InsertCell();
|
||||
|
|
|
|||
Loading…
Reference in New Issue