修改安全实施计划
This commit is contained in:
@@ -56,9 +56,10 @@
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList runat="server" ID="rblIsReview" Label="备案/部门评审" LabelWidth="140px" AutoPostBack="true" OnSelectedIndexChanged="rblIsReview_SelectedIndexChanged">
|
||||
<f:RadioButtonList runat="server" ID="rblIsReview" Label="备案/评审" LabelWidth="140px" AutoPostBack="true" OnSelectedIndexChanged="rblIsReview_SelectedIndexChanged">
|
||||
<f:RadioItem Text="备案" Value="False" Selected="true" />
|
||||
<f:RadioItem Text="部门评审" Value="True" />
|
||||
<f:RadioItem Text="公司部门评审" Value="True2" />
|
||||
</f:RadioButtonList>
|
||||
<f:DropDownList ID="drpReviewMan" runat="server" Label="评审负责人" LabelAlign="Right" Hidden="true" EnableEdit="true"
|
||||
LabelWidth="120px">
|
||||
|
||||
@@ -138,6 +138,10 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
this.drpReviewMan.Hidden = false;
|
||||
this.drpReviewMan.SelectedValue = actionPlanList.ReviewMan;
|
||||
}
|
||||
else if (actionPlanList.IsCompanyReview == true)
|
||||
{
|
||||
this.rblIsReview.SelectedValue = "True2";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rblIsReview.SelectedValue = "False";
|
||||
@@ -231,26 +235,12 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
this.btnMenuDelete.Hidden = true;
|
||||
this.gvDepart.EnableRowDoubleClickEvent = false;
|
||||
}
|
||||
//提交版本人多次修改
|
||||
//if (actionPlanList.CompileMan.Equals(CurrUser.PersonId))
|
||||
//{
|
||||
// txtActionPlanListCode.Enabled = true;
|
||||
// txtActionPlanListName.Enabled = true;
|
||||
// txtVersionNo.Enabled = true;
|
||||
// drpProjectType.Enabled = true;
|
||||
// drpCompileMan.Enabled = true;
|
||||
// txtCompileDate.Enabled = true;
|
||||
// ContactImg = 0;
|
||||
// Model.ActionPlan_ActionPlanListApprove approve = ActionPlanListApproveService.GetActionPlanListApproveByApproveMan(ActionPlanListId, CurrUser.PersonId);
|
||||
// if (approve == null)
|
||||
// {
|
||||
// rblIsAgree.Hidden = true;
|
||||
// rblIsAgree.Required = false;
|
||||
// options.Hidden = true;
|
||||
// txtOptions.Required = false;
|
||||
// optio.Hidden = true;
|
||||
// }
|
||||
//}
|
||||
var approves = BLL.ActionPlanListApproveService.GetReviewings(this.ActionPlanListId, actionPlanList.Edition.Value);
|
||||
if (approves.Count == 0)
|
||||
{
|
||||
this.drpPerson.Hidden = true;
|
||||
this.rblIsCompanyReview.Hidden = true;
|
||||
}
|
||||
}
|
||||
WindowAtt_Close(null, null);
|
||||
}
|
||||
@@ -380,7 +370,14 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
{
|
||||
actionPlanList.CompileDate = Convert.ToDateTime(this.txtCompileDate.Text.Trim());
|
||||
}
|
||||
actionPlanList.IsReview = Convert.ToBoolean(this.rblIsReview.SelectedValue);
|
||||
if (this.rblIsReview.SelectedValue != "True2")
|
||||
{
|
||||
actionPlanList.IsReview = Convert.ToBoolean(this.rblIsReview.SelectedValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
actionPlanList.IsCompanyReview = true;
|
||||
}
|
||||
if (this.drpReviewMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
actionPlanList.ReviewMan = this.drpReviewMan.SelectedValue;
|
||||
@@ -576,6 +573,10 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
{
|
||||
actionPlanList.States = BLL.Const.ActionPlanList_Reviewing;
|
||||
}
|
||||
else if (rblIsReview.SelectedValue == "True2") //公司部门评审
|
||||
{
|
||||
actionPlanList.States = BLL.Const.ActionPlanList_DepartReview;
|
||||
}
|
||||
else
|
||||
{
|
||||
actionPlanList.States = BLL.Const.ActionPlanList_Complete;
|
||||
@@ -606,6 +607,10 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (rblIsReview.SelectedValue == "True2") //公司部门评审
|
||||
{
|
||||
//OAWebSevice.PushoaActionPlan(); //推送OA待办
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -703,12 +708,21 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
{
|
||||
this.drpReviewMan.Hidden = false;
|
||||
this.drpPerson.Hidden = false;
|
||||
this.gvDepart.Hidden = true;
|
||||
}
|
||||
else if (this.rblIsReview.SelectedValue == "True2")
|
||||
{
|
||||
this.drpReviewMan.Hidden = true;
|
||||
this.drpPerson.Hidden = true;
|
||||
this.gvDepart.Hidden = false;
|
||||
BindDepart();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpReviewMan.Hidden = true;
|
||||
this.drpPerson.Hidden = true;
|
||||
this.drpReviewMan.SelectedValue = this.CurrUser.PersonId;
|
||||
this.gvDepart.Hidden = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -727,10 +741,19 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
|
||||
private void BindDepart()
|
||||
{
|
||||
Model.ActionPlan_ActionPlanList actionPlanList = BLL.ActionPlanListService.GetActionPlanListById(this.ActionPlanListId);
|
||||
var list = ActionPlanListApproveService.getDepartListData(ActionPlanListId, actionPlanList.Edition);
|
||||
gvDepart.DataSource = list;
|
||||
gvDepart.DataBind();
|
||||
Model.ActionPlan_ActionPlanList actionPlanList = BLL.ActionPlanListService.GetActionPlanListById(this.HFActionPlanListId.Text);
|
||||
if (actionPlanList != null)
|
||||
{
|
||||
var list = ActionPlanListApproveService.getDepartListData(ActionPlanListId, actionPlanList.Edition);
|
||||
gvDepart.DataSource = list;
|
||||
gvDepart.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
var list = ActionPlanListApproveService.getDepartListData(this.HFActionPlanListId.Text, 0);
|
||||
gvDepart.DataSource = list;
|
||||
gvDepart.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -745,7 +768,11 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DepartEdit.aspx?ActionPlanListId={0}", this.ActionPlanListId, "编辑 - ")));
|
||||
if (string.IsNullOrEmpty(HFActionPlanListId.Text)) //新增记录
|
||||
{
|
||||
HFActionPlanListId.Text = SQLHelper.GetNewID(typeof(Model.ActionPlan_ActionPlanList));
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DepartEdit.aspx?ActionPlanListId={0}", this.HFActionPlanListId.Text, "编辑 - ")));
|
||||
}
|
||||
|
||||
#region 编辑
|
||||
|
||||
@@ -55,9 +55,10 @@
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList runat="server" ID="rblIsReview" Label="备案/部门评审" LabelWidth="140px" Readonly="true">
|
||||
<f:RadioButtonList runat="server" ID="rblIsReview" Label="备案/评审" LabelWidth="140px" Readonly="true">
|
||||
<f:RadioItem Text="备案" Value="False" Selected="true" />
|
||||
<f:RadioItem Text="部门评审" Value="True" />
|
||||
<f:RadioItem Text="公司部门评审" Value="True2" />
|
||||
</f:RadioButtonList>
|
||||
<f:DropDownList ID="drpReviewMan" runat="server" Label="评审负责人" LabelAlign="Right" Hidden="true" EnableEdit="true" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
|
||||
@@ -74,6 +74,10 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
this.drpReviewMan.Hidden = false;
|
||||
this.drpReviewMan.SelectedValue = actionPlanList.ReviewMan;
|
||||
}
|
||||
else if (actionPlanList.IsCompanyReview == true)
|
||||
{
|
||||
this.rblIsReview.SelectedValue = "True2";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rblIsReview.SelectedValue = "False";
|
||||
@@ -103,6 +107,12 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
var list = ActionPlanListApproveService.getListData(ActionPlanListId);
|
||||
gvApprove.DataSource = list;
|
||||
gvApprove.DataBind();
|
||||
var approves = BLL.ActionPlanListApproveService.GetReviewings(this.ActionPlanListId, actionPlanList.Edition.Value);
|
||||
if (approves.Count == 0)
|
||||
{
|
||||
this.drpPerson.Hidden = true;
|
||||
this.rblIsCompanyReview.Hidden = true;
|
||||
}
|
||||
WindowAtt_Close(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,14 @@ namespace FineUIPro.Web.ZHGL.Plan
|
||||
approve.ApproveMan = this.drpApproveMan.SelectedValue;
|
||||
}
|
||||
approve.ApproveType = BLL.Const.ActionPlanList_DepartReview;
|
||||
approve.Edition = actionPlanList.Edition;
|
||||
if (actionPlanList == null)
|
||||
{
|
||||
approve.Edition = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
approve.Edition = actionPlanList.Edition;
|
||||
}
|
||||
approve.IsPushOa = 0;
|
||||
if (!string.IsNullOrEmpty(this.ActionPlanListApproveId))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user