修改实施计划导出
This commit is contained in:
@@ -649,7 +649,8 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
builder.Font.Bold = false;
|
||||
if (item.ApproveDate != null)
|
||||
{
|
||||
builder.Write(item.ApproveDate.ToString().Split(' ')[0]);
|
||||
string personName = Person_PersonsService.GetPersonsNameById(item.ApproveMan);
|
||||
builder.Write(personName + " " + item.ApproveDate.ToString().Split(' ')[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -590,7 +590,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
Model.ActionPlan_ActionPlanListApprove approve1 = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve1.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
approve1.ApproveDate = DateTime.Now;
|
||||
approve1.ApproveMan = this.CurrUser.PersonId;
|
||||
approve1.ApproveMan = this.drpCompileMan.SelectedValue;
|
||||
approve1.ApproveType = Const.ActionPlanList_Compile;
|
||||
approve1.Edition = Convert.ToInt32(txtEdition.Text);
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve1);
|
||||
@@ -599,7 +599,7 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve1 = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve1.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
approve1.ApproveMan = this.CurrUser.PersonId;
|
||||
approve1.ApproveMan = this.drpCompileMan.SelectedValue;
|
||||
approve1.ApproveType = Const.ActionPlanList_Compile;
|
||||
approve1.Edition = Convert.ToInt32(txtEdition.Text);
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve1);
|
||||
|
||||
@@ -368,10 +368,10 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
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)
|
||||
{
|
||||
Alert.ShowInTop("状态必须为审批完成的才能导出!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
@@ -635,7 +635,8 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
builder.Font.Bold = false;
|
||||
if (item.ApproveDate != null)
|
||||
{
|
||||
builder.Write(item.ApproveDate.ToString().Split(' ')[0]);
|
||||
string personName = Person_PersonsService.GetPersonsNameById(item.ApproveMan);
|
||||
builder.Write(personName + " " + item.ApproveDate.ToString().Split(' ')[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -587,7 +587,7 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
Model.ActionPlan_ActionPlanListApprove approve1 = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve1.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
approve1.ApproveDate = DateTime.Now;
|
||||
approve1.ApproveMan = this.CurrUser.PersonId;
|
||||
approve1.ApproveMan = this.drpCompileMan.SelectedValue;
|
||||
approve1.ApproveType = Const.ActionPlanList_Compile;
|
||||
approve1.Edition = Convert.ToInt32(txtEdition.Text);
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve1);
|
||||
@@ -611,7 +611,7 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve1 = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve1.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
approve1.ApproveMan = this.CurrUser.PersonId;
|
||||
approve1.ApproveMan = this.drpCompileMan.SelectedValue;
|
||||
approve1.ApproveType = Const.ActionPlanList_Compile;
|
||||
approve1.Edition = Convert.ToInt32(txtEdition.Text);
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve1);
|
||||
|
||||
Reference in New Issue
Block a user