修改项目安全实施计划
This commit is contained in:
@@ -66,12 +66,20 @@
|
||||
RendererFunction="renderProjectType">
|
||||
</f:RenderField>
|
||||
<f:WindowField TextAlign="Left" Width="80px" WindowID="WindowAtt" HeaderText="附件"
|
||||
Text="详细" ToolTip="附件上传查看" DataIFrameUrlFields="ActionPlanListId" DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ActionPlanListAttachUrl&menuId=CBC47C8B-141C-446B-90D9-CE8F5AE66CE4"
|
||||
Text="详细" ToolTip="附件上传查看" DataIFrameUrlFields="ActionPlanListId" DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/ActionPlanListAttachUrl&menuId=CBC47C8B-141C-446B-90D9-CE8F5AE66CE4"
|
||||
HeaderTextAlign="Center" />
|
||||
<f:RenderField Width="180px" ColumnID="FlowOperateName" DataField="FlowOperateName"
|
||||
SortField="FlowOperateName" FieldType="String" HeaderText="状态" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="State" Width="60px" HeaderText="状态" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.ActionPlanListService.ConvertState(Eval("States")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="ApproveMan" Width="60px" HeaderText="办理人" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# ConvertApproveMan(Eval("ActionPlanListId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
@@ -90,7 +98,7 @@
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="实施计划" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1024px" Height="600px">
|
||||
Width="1300px" Height="660px">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowAtt" Title="附件" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
@@ -100,6 +108,9 @@
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="Pencil" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuView" EnablePostBack="true" runat="server" Text="查看" Icon="ApplicationViewIcons"
|
||||
OnClick="btnMenuView_Click">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
|
||||
Text="删除">
|
||||
|
||||
@@ -58,10 +58,8 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
string strSql = "SELECT ActionPlanList.ActionPlanListId,ActionPlanList.ProjectId,CodeRecords.Code AS ActionPlanListCode,ActionPlanList.ActionPlanListName,ActionPlanList.VersionNo,(CASE ProjectType WHEN '1' THEN '系统内项目' WHEN '2' THEN '系统外项目' WHEN '3' THEN '海外项目' END ) AS ProjectType,ActionPlanList.ActionPlanListContents,ActionPlanList.CompileMan,Users.PersonName AS CompileManName, ActionPlanList.CompileDate,ActionPlanList.States"
|
||||
+ @" ,(CASE WHEN ActionPlanList.States = " + BLL.Const.State_0 + " OR ActionPlanList.States IS NULL THEN '待['+OperateUser.PersonName+']提交' WHEN ActionPlanList.States = " + BLL.Const.State_2 + " THEN '审核/审批完成' ELSE '待['+OperateUser.PersonName+']办理' END) AS FlowOperateName"
|
||||
string strSql = "SELECT ActionPlanList.ActionPlanListId,ActionPlanList.ProjectId,ActionPlanListCode,ActionPlanList.ActionPlanListName,ActionPlanList.VersionNo,(CASE ProjectType WHEN '1' THEN '系统内项目' WHEN '2' THEN '系统外项目' WHEN '3' THEN '海外项目' END ) AS ProjectType,ActionPlanList.ActionPlanListContents,ActionPlanList.CompileMan,Users.PersonName AS CompileManName, ActionPlanList.CompileDate,ActionPlanList.States"
|
||||
+ @" FROM ActionPlan_ActionPlanList AS ActionPlanList "
|
||||
+ @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON ActionPlanList.ActionPlanListId=CodeRecords.DataId "
|
||||
+ @" LEFT JOIN Sys_FlowOperate AS FlowOperate ON ActionPlanList.ActionPlanListId=FlowOperate.DataId AND FlowOperate.IsClosed <> 1"
|
||||
+ @" LEFT JOIN Person_Persons AS OperateUser ON FlowOperate.OperaterId=OperateUser.PersonId "
|
||||
+ @" LEFT JOIN Person_Persons AS Users ON Users.PersonId = ActionPlanList.CompileMan "
|
||||
@@ -184,23 +182,65 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
string id = Grid1.SelectedRowID;
|
||||
var actionPlanList = BLL.ActionPlanListService.GetActionPlanListById(id);
|
||||
if (actionPlanList != null)
|
||||
string id = Grid1.SelectedRowID.Split(',')[0];
|
||||
Model.ActionPlan_ActionPlanList actionPlanList = ActionPlanListService.GetActionPlanListById(id);
|
||||
if (actionPlanList.States == Const.ActionPlanList_Complete)
|
||||
{
|
||||
if (this.btnMenuEdit.Hidden || actionPlanList.States == BLL.Const.State_2) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
|
||||
Alert.ShowInTop("该文件已经审批完成,无法操作,请右键查看!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else if (actionPlanList.States == Const.ActionPlanList_Compile)
|
||||
{
|
||||
if (actionPlanList.CompileMan == CurrUser.PersonId || CurrUser.PersonId == Const.sysglyId)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ActionPlanListView.aspx?ActionPlanListId={0}", id, "查看 - ")));
|
||||
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ActionPlanListEdit.aspx?actionPlanListId={0}", id)));
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ActionPlanListEdit.aspx?ActionPlanListId={0}", id, "编辑 - ")));
|
||||
Alert.ShowInTop("您不是编制人,无法操作!请右键查看", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (actionPlanList.States == Const.ActionPlanList_Audit || actionPlanList.States == Const.ActionPlanList_ReCompile || actionPlanList.States == Const.ActionPlanList_Review)
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve = ActionPlanListApproveService.GetActionPlanListApproveByApproveMan(id, CurrUser.PersonId);
|
||||
if (approve != null || CurrUser.PersonId == Const.sysglyId)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ActionPlanListEdit.aspx?actionPlanListId={0}", id)));
|
||||
return;
|
||||
//Response.Redirect("ActionPlanListAudit.aspx?actionPlanListId=" + id);
|
||||
//PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CheckListView.aspx?CheckControlCode={0}", id, "查看 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (actionPlanList.CompileMan.Equals(CurrUser.PersonId))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ActionPlanListEdit.aspx?actionPlanListId={0}", id)));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您不是办理用户,无法操作!请右键查看", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void btnMenuView_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string id = Grid1.SelectedRowID.Split(',')[0];
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ActionPlanListView.aspx?ActionPlanListId={0}", id)));
|
||||
|
||||
}
|
||||
|
||||
#region 删除
|
||||
/// <summary>
|
||||
/// 右键删除事件
|
||||
@@ -306,6 +346,30 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 把办理人转换代号为文字形式
|
||||
/// </summary>
|
||||
/// <param name="ActionPlanListId"></param>
|
||||
/// <returns></returns>
|
||||
///
|
||||
public static string ConvertApproveMan(object ActionPlanListId)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (ActionPlanListId != null)
|
||||
{
|
||||
var approves = BLL.ActionPlanListApproveService.GetActionPlanListApprovesNotHandleList(ActionPlanListId.ToString());
|
||||
foreach (var item in approves)
|
||||
{
|
||||
name += BLL.Person_PersonsService.GetPersonsNameById(item.ApproveMan) + ",";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
{
|
||||
name = name.Substring(0, name.Length - 1);
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -120,6 +120,24 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
@@ -183,6 +201,15 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuView 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuView;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ActionPlanListEdit.aspx.cs"
|
||||
Inherits="FineUIPro.Web.HSSE.ActionPlan.ActionPlanListEdit" ValidateRequest="false" %>
|
||||
<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl"
|
||||
TagPrefix="uc1" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head runat="server">
|
||||
@@ -11,85 +10,218 @@
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1"/>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" Title="安全实施计划"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtActionPlanListCode" runat="server" Label="编号" Readonly="true"
|
||||
LabelAlign="Right" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtActionPlanListName" runat="server" Label="名称" Required="true"
|
||||
ShowRedStar="true" LabelAlign="Right" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtVersionNo" runat="server" Label="版本号" LabelAlign="Right" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpProjectType" runat="server" Label="项目类型" LabelAlign="Right"
|
||||
LabelWidth="120px">
|
||||
<f:ListItem Value="1" Text="系统内项目" Selected="true" />
|
||||
<f:ListItem Value="2" Text="系统外项目" />
|
||||
<f:ListItem Value="3" Text="海外项目" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpCompileMan" runat="server" Label="编制人" LabelAlign="Right"
|
||||
LabelWidth="120px">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtCompileDate" runat="server" Label="编制日期" LabelAlign="Right"
|
||||
EnableEdit="true" LabelWidth="120px">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server" ID="trAtt">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel2" runat="server" ShowHeader="false" EnableCollapse="true"
|
||||
BodyPadding="0px" Height="100px">
|
||||
<div runat="server" id="divC"></div>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true"
|
||||
BodyPadding="0px" MarginLeft="10px">
|
||||
<uc1:FlowOperateControl ID="ctlAuditFlow" runat="server" />
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbTemp">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" Text="提交" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSubmit_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="WindowAtt_Close"
|
||||
Width="700px" Height="500px">
|
||||
</f:Window>
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" Title="安全实施计划"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtActionPlanListCode" runat="server" Label="编号" ShowRedStar="true" Required="true"
|
||||
LabelAlign="Right" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtActionPlanListName" runat="server" Label="名称" Required="true"
|
||||
ShowRedStar="true" LabelAlign="Right" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtVersionNo" runat="server" Label="版本号" LabelAlign="Right" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpProjectType" runat="server" Label="项目类型" LabelAlign="Right"
|
||||
LabelWidth="120px">
|
||||
<f:ListItem Value="1" Text="系统内项目" Selected="true" />
|
||||
<f:ListItem Value="2" Text="系统外项目" />
|
||||
<f:ListItem Value="3" Text="海外项目" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpCompileMan" runat="server" Label="编制人" LabelAlign="Right"
|
||||
LabelWidth="120px">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtCompileDate" runat="server" Label="编制日期" LabelAlign="Right"
|
||||
EnableEdit="true" LabelWidth="120px">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList runat="server" ID="rblIsReview" Label="备案/部门评审" LabelWidth="120px" AutoPostBack="true" OnSelectedIndexChanged="rblIsReview_SelectedIndexChanged">
|
||||
<f:RadioItem Text="备案" Value="False" Selected="true" />
|
||||
<f:RadioItem Text="部门评审" Value="True" />
|
||||
</f:RadioButtonList>
|
||||
<f:DropDownList ID="drpReviewMan" runat="server" Label="评审负责人" LabelAlign="Right" Hidden="true" EnableEdit="true"
|
||||
LabelWidth="120px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server" ID="trAtt">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel2" runat="server" ShowHeader="false" EnableCollapse="true"
|
||||
BodyPadding="0px" Height="100px">
|
||||
<div runat="server" id="divC"></div>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel2" IsFluid="true" CssClass="mytable blockpanel" runat="server" AutoScroll="true" ShowBorder="true"
|
||||
Layout="Table" TableConfigColumns="3" ShowHeader="true" Title="总包会签">
|
||||
<Items>
|
||||
<f:Panel ID="Panel1" Title="Panel1" Width="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false" Height="200px">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trOne" ShowHeader="false" AutoScroll="true" ShowBorder="false" OnNodeCheck="trOne_NodeCheck" EnableArrows="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel3" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trTwo" ShowHeader="false" ShowBorder="false" OnNodeCheck="trTwo_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel4" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trThree" ShowHeader="false" ShowBorder="false" OnNodeCheck="trThree_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel5" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trFour" ShowHeader="false" ShowBorder="false" OnNodeCheck="trFour_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel6" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trFive" ShowHeader="false" ShowBorder="false" OnNodeCheck="trFive_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel7" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trSixe" ShowHeader="false" ShowBorder="false" OnNodeCheck="trSixe_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ID="agree">
|
||||
<Items>
|
||||
|
||||
<f:RadioButtonList runat="server" ID="rblIsAgree" Label="是否同意" ShowRedStar="true" AutoPostBack="true">
|
||||
<f:RadioItem Text="同意" Value="true" Selected="true" />
|
||||
<f:RadioItem Text="不同意" Value="false" />
|
||||
</f:RadioButtonList>
|
||||
<f:Label runat="server" CssStyle="display:none"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ID="options">
|
||||
<Items>
|
||||
<f:TextArea ID="txtOptions" ShowRedStar="true" Required="true" runat="server" Label="办理意见" MaxLength="3000">
|
||||
</f:TextArea>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ID="optio">
|
||||
|
||||
<Items>
|
||||
<f:Panel ShowHeader="false" ShowBorder="false" Layout="Column" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" Text="附件:" ShowRedStar="true" CssStyle="padding-left:53px" Width="100px" CssClass="marginr" ShowLabel="false"></f:Label>
|
||||
<f:Button ID="btnapprove" Text="附件" ToolTip="上传及查看" Icon="TableCell" OnClick="btnapprove_Click" runat="server">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ID="plApprove2">
|
||||
<Items>
|
||||
|
||||
<f:ContentPanel Title="审批列表" ShowBorder="true"
|
||||
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
runat="server">
|
||||
<f:Grid ID="gvApprove" IsFluid="true" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server" EnableCollapse="false"
|
||||
DataKeyNames="ActionPlanListApproveId" EnableColumnLines="true" OnRowCommand="gvApprove_RowCommand" ForceFit="true">
|
||||
<Columns>
|
||||
<f:RowNumberField Width="40px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" />
|
||||
<f:TemplateField ColumnID="ApproveType" Width="150px" HeaderText="办理类型" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.ActionPlanListService.ConvertState(Eval("ApproveType")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="ApproveMan" Width="150px" HeaderText="办理人员" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# man(Eval("ApproveMan")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="IsAgree" Width="100px" HeaderText="是否同意" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# BLL.ActionPlanListService.IsAgree(Eval("ApproveType"),Eval("IsAgree")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:BoundField Width="100px" DataField="ApproveDate" HeaderTextAlign="Center" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" HeaderText="办理时间" />
|
||||
<f:BoundField Width="180px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="办理意见" />
|
||||
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="60px" Icon="ArrowDown" CommandName="download" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</f:ContentPanel>
|
||||
|
||||
</Items>
|
||||
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbTemp">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:HiddenField ID="txtEdition" runat="server"></f:HiddenField>
|
||||
<f:HiddenField ID="HFActionPlanListId" runat="server"></f:HiddenField>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" Text="提交" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSubmit_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="WindowAtt_Close"
|
||||
Width="700px" Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
@@ -35,6 +36,23 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public int ContactImg
|
||||
{
|
||||
get
|
||||
{
|
||||
return Convert.ToInt32(ViewState["ContactImg"]);
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ContactImg"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义会签意见集合
|
||||
/// </summary>
|
||||
public static List<Model.ActionPlan_ActionPlanListApprove> approves = new List<Model.ActionPlan_ActionPlanListApprove>();
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
@@ -49,25 +67,36 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
|
||||
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpCompileMan, this.ProjectId, null, null, true);
|
||||
BLL.Person_PersonsService.InitUserUnitIdDepartIdDropDownList(this.drpReviewMan, BLL.Const.UnitId_SEDIN, BLL.Const.Depart_constructionId, true);
|
||||
CQMSConstructSolutionService.setRoleTree(trOne, this.CurrUser.LoginProjectId, "专业工程师", Const.ProjectUnitType_1, Const.ZBCNEngineer);
|
||||
CQMSConstructSolutionService.setRoleTree(trTwo, this.CurrUser.LoginProjectId, "质量组", Const.ProjectUnitType_1, Const.QAManager + "," + Const.CQEngineer);
|
||||
CQMSConstructSolutionService.setRoleTree(trThree, this.CurrUser.LoginProjectId, "HSE组", Const.ProjectUnitType_1, Const.HSSEManager + "," + Const.HSSEEngineer);
|
||||
CQMSConstructSolutionService.setRoleTree(trFour, this.CurrUser.LoginProjectId, "控制组", Const.ProjectUnitType_1, Const.ControlManager + "," + Const.KZEngineer);
|
||||
CQMSConstructSolutionService.setRoleTree(trFive, this.CurrUser.LoginProjectId, "施工经理", Const.ProjectUnitType_1, Const.ConstructionManager + "," + Const.ConstructionAssistantManager);
|
||||
CQMSConstructSolutionService.setRoleTree(trSixe, this.CurrUser.LoginProjectId, "项目经理", Const.ProjectUnitType_1, Const.ProjectManager);
|
||||
ContactImg = 0;
|
||||
this.ActionPlanListId = Request.Params["ActionPlanListId"];
|
||||
if (!string.IsNullOrEmpty(this.ActionPlanListId))
|
||||
{
|
||||
Model.ActionPlan_ActionPlanList actionPlanList = BLL.ActionPlanListService.GetActionPlanListById(this.ActionPlanListId);
|
||||
if (actionPlanList != null)
|
||||
{
|
||||
HFActionPlanListId.Text = this.ActionPlanListId;
|
||||
this.ProjectId = actionPlanList.ProjectId;
|
||||
if (this.ProjectId != this.CurrUser.LoginProjectId)
|
||||
{
|
||||
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpCompileMan, this.ProjectId, null, null, true);
|
||||
}
|
||||
|
||||
if (actionPlanList.Edition != null)
|
||||
{
|
||||
txtEdition.Text = actionPlanList.Edition.ToString();
|
||||
}
|
||||
///读取编号
|
||||
this.txtActionPlanListCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.ActionPlanListId);
|
||||
this.txtActionPlanListCode.Text = actionPlanList.ActionPlanListCode;
|
||||
this.txtActionPlanListName.Text = actionPlanList.ActionPlanListName;
|
||||
this.txtVersionNo.Text = actionPlanList.VersionNo;
|
||||
this.drpProjectType.SelectedValue = actionPlanList.VersionNo;
|
||||
this.drpProjectType.SelectedValue = actionPlanList.ProjectType;
|
||||
if (!string.IsNullOrEmpty(actionPlanList.CompileMan))
|
||||
{
|
||||
this.drpCompileMan.SelectedValue = actionPlanList.CompileMan;
|
||||
@@ -76,33 +105,235 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
{
|
||||
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", actionPlanList.CompileDate);
|
||||
}
|
||||
//this.txtActionPlanListContents.Text = HttpUtility.HtmlDecode(actionPlanList.ActionPlanListContents);
|
||||
if (actionPlanList.IsReview == true)
|
||||
{
|
||||
this.rblIsReview.SelectedValue = "True";
|
||||
this.drpReviewMan.Hidden = false;
|
||||
this.drpReviewMan.SelectedValue = actionPlanList.ReviewMan;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rblIsReview.SelectedValue = "False";
|
||||
}
|
||||
bindApprove();
|
||||
var zyUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "ZY");
|
||||
if (zyUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trOne, zyUserIds);
|
||||
}
|
||||
var zlUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "ZL");
|
||||
if (zlUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trTwo, zlUserIds);
|
||||
}
|
||||
var aqUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "AQ");
|
||||
if (aqUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trThree, aqUserIds);
|
||||
}
|
||||
var kzUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "KZ");
|
||||
if (kzUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trFour, kzUserIds);
|
||||
}
|
||||
var sgUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "SG");
|
||||
if (sgUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trFive, sgUserIds);
|
||||
}
|
||||
var xmUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "XM");
|
||||
if (xmUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trSixe, xmUserIds);
|
||||
}
|
||||
if (actionPlanList.States == Const.ActionPlanList_ReCompile || actionPlanList.States == Const.ActionPlanList_Compile)
|
||||
{
|
||||
agree.Hidden = true;
|
||||
options.Hidden = true;
|
||||
optio.Hidden = true;
|
||||
}
|
||||
if (actionPlanList.States == Const.ActionPlanList_Audit)
|
||||
{
|
||||
txtActionPlanListCode.Readonly = true;
|
||||
txtActionPlanListName.Readonly = true;
|
||||
txtVersionNo.Readonly = true;
|
||||
drpProjectType.Readonly = true;
|
||||
drpCompileMan.Readonly = true;
|
||||
txtCompileDate.Readonly = true;
|
||||
rblIsReview.Readonly = true;
|
||||
drpReviewMan.Readonly = true;
|
||||
ContactImg = -1;
|
||||
Panel2.Enabled = 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;
|
||||
Panel2.Enabled = true;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
WindowAtt_Close(null, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpCompileMan.SelectedValue = this.CurrUser.PersonId;
|
||||
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||
//var codeTemplateRule = BLL.ProjectData_CodeTemplateRuleService.GetProjectData_CodeTemplateRuleByMenuIdProjectId(BLL.Const.ProjectActionPlanListMenuId, this.ProjectId);
|
||||
//if (codeTemplateRule != null)
|
||||
//{
|
||||
// this.txtActionPlanListContents.Text = HttpUtility.HtmlDecode(codeTemplateRule.Template);
|
||||
//}
|
||||
|
||||
this.trAtt.Hidden = true;
|
||||
agree.Hidden = true;
|
||||
txtEdition.Text = "0";
|
||||
options.Hidden = true;
|
||||
optio.Hidden = true;
|
||||
plApprove2.Hidden = true;
|
||||
////自动生成编码
|
||||
this.txtActionPlanListCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectActionPlanListMenuId, this.ProjectId, this.CurrUser.UnitId);
|
||||
this.txtActionPlanListName.Text = this.SimpleForm1.Title;
|
||||
this.txtVersionNo.Text = "V1.0";
|
||||
}
|
||||
|
||||
///初始化审核菜单
|
||||
this.ctlAuditFlow.MenuId = BLL.Const.ProjectActionPlanListMenuId;
|
||||
this.ctlAuditFlow.DataId = this.ActionPlanListId;
|
||||
this.ctlAuditFlow.ProjectId = this.ProjectId;
|
||||
this.ctlAuditFlow.UnitId = this.CurrUser.UnitId;
|
||||
WindowAtt_Close(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 审批列表
|
||||
/// </summary>
|
||||
private void bindApprove()
|
||||
{
|
||||
var list = ActionPlanListApproveService.getListData(ActionPlanListId);
|
||||
gvApprove.DataSource = list;
|
||||
gvApprove.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 动态加载角色树
|
||||
|
||||
/// <summary>
|
||||
/// 设置树的节点选择
|
||||
/// </summary>
|
||||
/// <param name="nodes"></param>
|
||||
/// <param name="role"></param>
|
||||
private void SetCheck(Tree tree, List<string> userIds)
|
||||
{
|
||||
foreach (TreeNode tn in tree.Nodes[0].Nodes)
|
||||
{
|
||||
if (userIds.Contains(tn.NodeID))
|
||||
{
|
||||
tn.Checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断是否有选择
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
/// <returns></returns>
|
||||
public Boolean nodesCheckd(Tree node)
|
||||
{
|
||||
bool res = false;
|
||||
if (node.Nodes[0].Nodes.Count > 0)
|
||||
{
|
||||
foreach (var item in node.Nodes[0].Nodes)
|
||||
{
|
||||
if (item.Checked)
|
||||
{
|
||||
res = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 树结构的全选
|
||||
protected void trOne_NodeCheck(object sender, TreeCheckEventArgs e)
|
||||
{
|
||||
if (e.Checked)
|
||||
{
|
||||
trOne.CheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
else
|
||||
{
|
||||
trOne.UncheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
}
|
||||
|
||||
protected void trTwo_NodeCheck(object sender, TreeCheckEventArgs e)
|
||||
{
|
||||
if (e.Checked)
|
||||
{
|
||||
trTwo.CheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
else
|
||||
{
|
||||
trTwo.UncheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
}
|
||||
|
||||
protected void trThree_NodeCheck(object sender, TreeCheckEventArgs e)
|
||||
{
|
||||
if (e.Checked)
|
||||
{
|
||||
trThree.CheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
else
|
||||
{
|
||||
trThree.UncheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
}
|
||||
|
||||
protected void trFour_NodeCheck(object sender, TreeCheckEventArgs e)
|
||||
{
|
||||
if (e.Checked)
|
||||
{
|
||||
trFour.CheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
else
|
||||
{
|
||||
trFour.UncheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
}
|
||||
|
||||
protected void trFive_NodeCheck(object sender, TreeCheckEventArgs e)
|
||||
{
|
||||
if (e.Checked)
|
||||
{
|
||||
trFive.CheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
else
|
||||
{
|
||||
trFive.UncheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected void trSixe_NodeCheck(object sender, TreeCheckEventArgs e)
|
||||
{
|
||||
if (e.Checked)
|
||||
{
|
||||
trSixe.CheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
else
|
||||
{
|
||||
trSixe.UncheckAllNodes(e.Node.Nodes);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
@@ -113,6 +344,11 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpCompileMan.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择编制人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
this.SaveData(BLL.Const.BtnSave);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
@@ -124,9 +360,40 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
/// <param name="e"></param>
|
||||
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.ctlAuditFlow.NextStep == BLL.Const.State_1 && this.ctlAuditFlow.NextPerson == BLL.Const._Null)
|
||||
if (this.drpCompileMan.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择下一步办理人!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop("请选择编制人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.rblIsReview.SelectedValue == "True" && this.drpReviewMan.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择评审负责人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (!AttachFileService.Getfile(HFActionPlanListId.Text, Const.ProjectActionPlanListMenuId))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
List<FineUIPro.Tree> list = new List<FineUIPro.Tree>();
|
||||
list.Add(trOne);
|
||||
list.Add(trTwo);
|
||||
list.Add(trThree);
|
||||
list.Add(trFour);
|
||||
list.Add(trFive);
|
||||
list.Add(trSixe);
|
||||
var res = false;
|
||||
foreach (var item in list)
|
||||
{
|
||||
if (nodesCheckd(item))
|
||||
{
|
||||
res = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!res)
|
||||
{
|
||||
Alert.ShowInTop("请选择总包会签人员!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
this.SaveData(BLL.Const.BtnSubmit);
|
||||
@@ -156,26 +423,383 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
{
|
||||
actionPlanList.CompileDate = Convert.ToDateTime(this.txtCompileDate.Text.Trim());
|
||||
}
|
||||
actionPlanList.States = BLL.Const.State_0;
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
actionPlanList.States = this.ctlAuditFlow.NextStep;
|
||||
actionPlanList.States = BLL.Const.ActionPlanList_Audit;
|
||||
}
|
||||
else
|
||||
{
|
||||
actionPlanList.States = BLL.Const.ActionPlanList_Compile;
|
||||
}
|
||||
actionPlanList.IsReview = Convert.ToBoolean(this.rblIsReview.SelectedValue);
|
||||
if (this.drpReviewMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
actionPlanList.ReviewMan = this.drpReviewMan.SelectedValue;
|
||||
}
|
||||
int edtion = Convert.ToInt32(txtEdition.Text);
|
||||
actionPlanList.Edition = edtion;
|
||||
if (!string.IsNullOrEmpty(this.ActionPlanListId))
|
||||
{
|
||||
actionPlanList.ActionPlanListId = this.ActionPlanListId;
|
||||
Model.ActionPlan_ActionPlanList actionPlanList1 = ActionPlanListService.GetActionPlanListById(ActionPlanListId);
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
if (CurrUser.PersonId != actionPlanList1.CompileMan) //办理人不是编制人,提示查看审批信息
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove sApprove = new Model.ActionPlan_ActionPlanListApprove();
|
||||
sApprove.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
sApprove.ApproveMan = actionPlanList1.CompileMan;
|
||||
sApprove.ApproveType = "S";
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(sApprove);
|
||||
|
||||
if (actionPlanList1.States == Const.ActionPlanList_Audit)
|
||||
{
|
||||
actionPlanList.States = actionPlanList1.States;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
actionPlanList.States = Const.ActionPlanList_Audit;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
countersign(actionPlanList.ActionPlanListId);
|
||||
actionPlanList.States = actionPlanList1.States;
|
||||
}
|
||||
|
||||
if (!CurrUser.PersonId.Equals(actionPlanList1.CompileMan))
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve = ActionPlanListApproveService.GetConstructSoluAppByApproveMan(ActionPlanListId, CurrUser.PersonId, Convert.ToInt32(actionPlanList1.Edition));
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
approve.ApproveDate = DateTime.Now;
|
||||
}
|
||||
approve.Edition = Convert.ToInt32(edtion);
|
||||
approve.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue);
|
||||
approve.ApproveIdea = txtOptions.Text.Trim();
|
||||
ActionPlanListApproveService.UpdateActionPlanListApprove(approve);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
if (actionPlanList1.States == Const.ActionPlanList_Audit)//==会签状态升级版本
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove reApprove = new Model.ActionPlan_ActionPlanListApprove();
|
||||
reApprove.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
reApprove.ApproveDate = DateTime.Now;
|
||||
reApprove.ApproveMan = actionPlanList1.CompileMan;
|
||||
reApprove.ApproveType = Const.ActionPlanList_ReCompile;
|
||||
edtion++;
|
||||
reApprove.Edition = edtion;
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(reApprove);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approves = ActionPlanListApproveService.GetConstructSolApproveByApproveMan(ActionPlanListId, actionPlanList1.CompileMan);
|
||||
approves.ApproveDate = DateTime.Now;
|
||||
ActionPlanListApproveService.UpdateActionPlanListApprove(approves);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
actionPlanList.States = actionPlanList1.States;
|
||||
}
|
||||
//提交时候,更新提交版本
|
||||
if (CurrUser.PersonId.Equals(actionPlanList1.CompileMan))
|
||||
{
|
||||
if (actionPlanList1.States != Const.ActionPlanList_Audit)
|
||||
{
|
||||
edtion++;
|
||||
}
|
||||
actionPlanList.Edition = Convert.ToInt32(edtion);
|
||||
actionPlanList.States = Const.ActionPlanList_Audit;
|
||||
}
|
||||
BLL.ActionPlanListService.UpdateActionPlanList(actionPlanList);
|
||||
//判断状态,全部会签同意,则审批完成
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
List<Model.ActionPlan_ActionPlanListApprove> allApproves = ActionPlanListApproveService.GetHandleActionPlanListApprovesByActionPlanListId(ActionPlanListId, actionPlanList.Edition == null ? 0 : Convert.ToInt32(actionPlanList.Edition));
|
||||
var count = allApproves.Where(p => p.ApproveDate != null && p.IsAgree != null && Convert.ToBoolean(p.IsAgree)).Count();//查询会签同意的
|
||||
var fcount = allApproves.Where(p => p.ApproveDate != null && p.IsAgree != null && !Convert.ToBoolean(p.IsAgree)).Count();//查询会签不同意的
|
||||
if ((count + fcount) == allApproves.Count)
|
||||
{
|
||||
if (count == allApproves.Count)
|
||||
{
|
||||
var actionPlan = ActionPlanListService.GetActionPlanListById(ActionPlanListId);
|
||||
if (this.rblIsReview.SelectedValue == "True") //评审
|
||||
{
|
||||
actionPlan.States = Const.ActionPlanList_Review;
|
||||
Model.ActionPlan_ActionPlanListApprove approve1 = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve1.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
approve1.ApproveMan = this.drpReviewMan.SelectedValue;
|
||||
approve1.ApproveType = Const.ActionPlanList_Review;
|
||||
approve1.Edition = Convert.ToInt32(txtEdition.Text);
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve1);
|
||||
}
|
||||
else //备案
|
||||
{
|
||||
actionPlan.States = Const.ActionPlanList_Complete;
|
||||
}
|
||||
actionPlan.CompileDate = DateTime.Now;
|
||||
ActionPlanListService.UpdateActionPlanList(actionPlan);
|
||||
}
|
||||
//有不同意意见,打回重新编制
|
||||
if (fcount > 0)
|
||||
{
|
||||
var actionPlan = ActionPlanListService.GetActionPlanListById(ActionPlanListId);
|
||||
Model.ActionPlan_ActionPlanListApprove reApprove = new Model.ActionPlan_ActionPlanListApprove();
|
||||
reApprove.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
reApprove.ApproveMan = actionPlan.CompileMan;
|
||||
reApprove.ApproveType = Const.ActionPlanList_ReCompile;
|
||||
edtion++;
|
||||
reApprove.Edition = edtion;
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(reApprove);
|
||||
|
||||
actionPlan.States = Const.ActionPlanList_ReCompile;
|
||||
actionPlan.CompileDate = DateTime.Now;
|
||||
actionPlanList.States = Const.ActionPlanList_ReCompile;
|
||||
ActionPlanListService.UpdateActionPlanList(actionPlan);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, this.txtActionPlanListCode.Text, this.ActionPlanListId, BLL.Const.ProjectActionPlanListMenuId, Const.BtnModify);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ActionPlanListId = SQLHelper.GetNewID(typeof(Model.ActionPlan_ActionPlanList));
|
||||
actionPlanList.ActionPlanListId = this.ActionPlanListId;
|
||||
if (!string.IsNullOrEmpty(HFActionPlanListId.Text))
|
||||
{
|
||||
actionPlanList.ActionPlanListId = HFActionPlanListId.Text;
|
||||
}
|
||||
else
|
||||
{
|
||||
actionPlanList.ActionPlanListId = SQLHelper.GetNewID(typeof(Model.ActionPlan_ActionPlanList));
|
||||
}
|
||||
BLL.ActionPlanListService.AddActionPlanList(actionPlanList);
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve1 = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve1.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
approve1.ApproveDate = DateTime.Now;
|
||||
approve1.ApproveMan = this.CurrUser.PersonId;
|
||||
approve1.ApproveType = Const.ActionPlanList_Compile;
|
||||
approve1.Edition = Convert.ToInt32(txtEdition.Text);
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve1);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve1 = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve1.ActionPlanListId = actionPlanList.ActionPlanListId;
|
||||
approve1.ApproveMan = this.CurrUser.PersonId;
|
||||
approve1.ApproveType = Const.ActionPlanList_Compile;
|
||||
approve1.Edition = Convert.ToInt32(txtEdition.Text);
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve1);
|
||||
}
|
||||
//提交
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
countersign(actionPlanList.ActionPlanListId);
|
||||
}
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, this.txtActionPlanListCode.Text, this.ActionPlanListId, BLL.Const.ProjectActionPlanListMenuId, Const.BtnAdd);
|
||||
}
|
||||
////保存流程审核数据
|
||||
this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ProjectActionPlanListMenuId, this.ActionPlanListId, (type == BLL.Const.BtnSubmit ? true : false), actionPlanList.ActionPlanListName, "../ActionPlan/ActionPlanListView.aspx?ActionPlanListId={0}");
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除未选择的代办记录
|
||||
/// </summary>
|
||||
/// <param name="actionPlanListId"></param>
|
||||
private void delActionPlanListApprove(string actionPlanListId, string man, string signType)
|
||||
{
|
||||
var count = ActionPlanListApproveService.getListActionPlanApproveCount(actionPlanListId, man, signType);
|
||||
if (count > 0)
|
||||
{
|
||||
ActionPlanListApproveService.delActionPlanApprove(actionPlanListId, man);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 会签
|
||||
/// </summary>
|
||||
private void countersign(string actionPlanListId)
|
||||
{
|
||||
var ActionPlan = ActionPlanListService.GetActionPlanListById(ActionPlanListId);
|
||||
if (trOne.Nodes[0].Nodes.Count > 0)
|
||||
{
|
||||
foreach (TreeNode tn in trOne.Nodes[0].Nodes)
|
||||
{
|
||||
if (tn.Checked)
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve.ActionPlanListId = actionPlanListId;
|
||||
approve.ApproveMan = tn.NodeID;
|
||||
approve.ApproveType = Const.ActionPlanList_Audit;
|
||||
approve.SignType = "ZY";
|
||||
int edtion = Convert.ToInt32(txtEdition.Text);
|
||||
if (ActionPlan != null)
|
||||
{
|
||||
edtion++;
|
||||
}
|
||||
approve.Edition = edtion;
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "ZY");
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve);
|
||||
APICommonService.SendSubscribeMessage(approve.ApproveMan, "项目安全实施计划待办理", this.CurrUser.PersonName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
}
|
||||
else
|
||||
{
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "ZY");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if (trTwo.Nodes[0].Nodes.Count > 0)
|
||||
{
|
||||
|
||||
foreach (TreeNode tn in trTwo.Nodes[0].Nodes)
|
||||
{
|
||||
if (tn.Checked)
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve.ActionPlanListId = actionPlanListId;
|
||||
approve.ApproveMan = tn.NodeID;
|
||||
approve.ApproveType = Const.ActionPlanList_Audit;
|
||||
approve.SignType = "ZL";
|
||||
int edtion = Convert.ToInt32(txtEdition.Text);
|
||||
if (ActionPlan != null)
|
||||
{
|
||||
edtion++;
|
||||
}
|
||||
approve.Edition = edtion;
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "ZL");
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve);
|
||||
APICommonService.SendSubscribeMessage(approve.ApproveMan, "项目安全实施计划待办理", this.CurrUser.PersonName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
}
|
||||
else
|
||||
{
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "ZL");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if (trThree.Nodes[0].Nodes.Count > 0)
|
||||
{
|
||||
|
||||
foreach (TreeNode tn in trThree.Nodes[0].Nodes)
|
||||
{
|
||||
if (tn.Checked)
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve.ActionPlanListId = actionPlanListId;
|
||||
approve.ApproveMan = tn.NodeID;
|
||||
approve.ApproveType = Const.ActionPlanList_Audit;
|
||||
approve.SignType = "AQ";
|
||||
int edtion = Convert.ToInt32(txtEdition.Text);
|
||||
if (ActionPlan != null)
|
||||
{
|
||||
edtion++;
|
||||
}
|
||||
approve.Edition = edtion;
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "AQ");
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve);
|
||||
APICommonService.SendSubscribeMessage(approve.ApproveMan, "项目安全实施计划待办理", this.CurrUser.PersonName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
}
|
||||
else
|
||||
{
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "AQ");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if (trFour.Nodes[0].Nodes.Count > 0)
|
||||
{
|
||||
|
||||
foreach (TreeNode tn in trFour.Nodes[0].Nodes)
|
||||
{
|
||||
if (tn.Checked)
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve.ActionPlanListId = actionPlanListId;
|
||||
approve.ApproveMan = tn.NodeID;
|
||||
approve.ApproveType = Const.ActionPlanList_Audit;
|
||||
approve.SignType = "KZ";
|
||||
int edtion = Convert.ToInt32(txtEdition.Text);
|
||||
if (ActionPlan != null)
|
||||
{
|
||||
edtion++;
|
||||
}
|
||||
approve.Edition = edtion;
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "KZ");
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve);
|
||||
APICommonService.SendSubscribeMessage(approve.ApproveMan, "项目安全实施计划待办理", this.CurrUser.PersonName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "KZ");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if (trFive.Nodes[0].Nodes.Count > 0)
|
||||
{
|
||||
|
||||
foreach (TreeNode tn in trFive.Nodes[0].Nodes)
|
||||
{
|
||||
if (tn.Checked)
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve.ActionPlanListId = actionPlanListId;
|
||||
approve.ApproveMan = tn.NodeID;
|
||||
approve.ApproveType = Const.ActionPlanList_Audit;
|
||||
approve.SignType = "SG";
|
||||
int edtion = Convert.ToInt32(txtEdition.Text);
|
||||
if (ActionPlan != null)
|
||||
{
|
||||
edtion++;
|
||||
}
|
||||
approve.Edition = edtion;
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "SG");
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve);
|
||||
APICommonService.SendSubscribeMessage(approve.ApproveMan, "项目安全实施计划待办理", this.CurrUser.PersonName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
}
|
||||
else
|
||||
{
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "SG");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (trSixe.Nodes[0].Nodes.Count > 0)
|
||||
{
|
||||
|
||||
foreach (TreeNode tn in trSixe.Nodes[0].Nodes)
|
||||
{
|
||||
if (tn.Checked)
|
||||
{
|
||||
Model.ActionPlan_ActionPlanListApprove approve = new Model.ActionPlan_ActionPlanListApprove();
|
||||
approve.ActionPlanListId = actionPlanListId;
|
||||
approve.ApproveMan = tn.NodeID;
|
||||
approve.ApproveType = Const.ActionPlanList_Audit;
|
||||
approve.SignType = "XM";
|
||||
int edtion = Convert.ToInt32(txtEdition.Text);
|
||||
if (ActionPlan != null)
|
||||
{
|
||||
edtion++;
|
||||
}
|
||||
approve.Edition = edtion;
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "XM");
|
||||
ActionPlanListApproveService.AddActionPlanListApprove(approve);
|
||||
APICommonService.SendSubscribeMessage(approve.ApproveMan, "项目安全实施计划待办理", this.CurrUser.PersonName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
}
|
||||
else
|
||||
{
|
||||
delActionPlanListApprove(ActionPlanListId, tn.NodeID, "XM");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -187,18 +811,31 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ActionPlanListId))
|
||||
if (string.IsNullOrEmpty(HFActionPlanListId.Text)) //新增记录
|
||||
{
|
||||
SaveData(BLL.Const.BtnSave);
|
||||
HFActionPlanListId.Text = SQLHelper.GetNewID(typeof(Model.ActionPlan_ActionPlanList));
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ActionPlanListAttachUrl&menuId={1}&type={2}", HFActionPlanListId.Text, BLL.Const.ProjectActionPlanListMenuId, ContactImg)));
|
||||
}
|
||||
|
||||
protected void btnapprove_Click(object sender, EventArgs e)
|
||||
{
|
||||
//HFConstructSolutionId.Text
|
||||
var approve = ActionPlanListApproveService.GetActionPlanListApproveByApproveMan(HFActionPlanListId.Text, CurrUser.PersonId);
|
||||
if (approve != null)
|
||||
{
|
||||
var approveId = approve.ActionPlanListApproveId;
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/ActionPlanListAttachUrl&menuId={2}",
|
||||
0, approveId, Const.ProjectActionPlanListMenuId)));
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ActionPlanListAttachUrl&menuId={1}", this.ActionPlanListId, BLL.Const.ProjectActionPlanListMenuId)));
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void WindowAtt_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
this.divC.InnerHtml = string.Empty;
|
||||
var getAtt = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.ActionPlanListId);
|
||||
var getAtt = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == HFActionPlanListId.Text);
|
||||
if (getAtt != null)
|
||||
{
|
||||
this.divC.InnerHtml = UploadAttachmentService.ShowAttachment("../../", getAtt.AttachUrl);
|
||||
@@ -208,5 +845,45 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
this.trAtt.Hidden = true;
|
||||
}
|
||||
}
|
||||
|
||||
public string man(Object man)
|
||||
{
|
||||
string appman = string.Empty;
|
||||
if (Person_PersonsService.GetPerson_PersonsById(man.ToString()) != null)
|
||||
{
|
||||
appman = Person_PersonsService.GetPerson_PersonsById(man.ToString()).PersonName;
|
||||
}
|
||||
return appman;
|
||||
}
|
||||
|
||||
protected void gvApprove_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
object[] keys = gvApprove.DataKeys[e.RowIndex];
|
||||
string fileId = string.Empty;
|
||||
if (keys == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
fileId = keys[0].ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/ActionPlanListAttachUrl&menuId={2}",
|
||||
-1, fileId, Const.ProjectActionPlanListMenuId)));
|
||||
}
|
||||
|
||||
protected void rblIsReview_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.rblIsReview.SelectedValue == "True")
|
||||
{
|
||||
this.drpReviewMan.Hidden = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpReviewMan.Hidden = true;
|
||||
this.drpReviewMan.SelectedValue = BLL.Const._Null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -93,6 +93,24 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtCompileDate;
|
||||
|
||||
/// <summary>
|
||||
/// rblIsReview 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblIsReview;
|
||||
|
||||
/// <summary>
|
||||
/// drpReviewMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpReviewMan;
|
||||
|
||||
/// <summary>
|
||||
/// trAtt 控件。
|
||||
/// </summary>
|
||||
@@ -121,22 +139,220 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divC;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// Panel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
protected global::FineUIPro.Panel Panel2;
|
||||
|
||||
/// <summary>
|
||||
/// ctlAuditFlow 控件。
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow;
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// trOne 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trOne;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
/// <summary>
|
||||
/// trTwo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trTwo;
|
||||
|
||||
/// <summary>
|
||||
/// Panel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel4;
|
||||
|
||||
/// <summary>
|
||||
/// trThree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trThree;
|
||||
|
||||
/// <summary>
|
||||
/// Panel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel5;
|
||||
|
||||
/// <summary>
|
||||
/// trFour 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trFour;
|
||||
|
||||
/// <summary>
|
||||
/// Panel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel6;
|
||||
|
||||
/// <summary>
|
||||
/// trFive 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trFive;
|
||||
|
||||
/// <summary>
|
||||
/// Panel7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel7;
|
||||
|
||||
/// <summary>
|
||||
/// trSixe 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trSixe;
|
||||
|
||||
/// <summary>
|
||||
/// agree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow agree;
|
||||
|
||||
/// <summary>
|
||||
/// rblIsAgree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblIsAgree;
|
||||
|
||||
/// <summary>
|
||||
/// options 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow options;
|
||||
|
||||
/// <summary>
|
||||
/// txtOptions 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtOptions;
|
||||
|
||||
/// <summary>
|
||||
/// optio 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow optio;
|
||||
|
||||
/// <summary>
|
||||
/// btnapprove 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnapprove;
|
||||
|
||||
/// <summary>
|
||||
/// plApprove2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow plApprove2;
|
||||
|
||||
/// <summary>
|
||||
/// gvApprove 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvApprove;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
@@ -174,6 +390,24 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// txtEdition 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField txtEdition;
|
||||
|
||||
/// <summary>
|
||||
/// HFActionPlanListId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField HFActionPlanListId;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ActionPlanListView.aspx.cs"
|
||||
Inherits="FineUIPro.Web.HSSE.ActionPlan.ActionPlanListView" ValidateRequest="false" %>
|
||||
|
||||
<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl"
|
||||
TagPrefix="uc1" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
@@ -29,7 +27,7 @@
|
||||
<Items>
|
||||
<f:TextBox ID="txtVersionNo" runat="server" Label="版 本 号" LabelAlign="Right" LabelWidth="120px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpProjectType" runat="server" Label="项目类型" LabelAlign="Right" Enabled="false"
|
||||
<f:DropDownList ID="drpProjectType" runat="server" Label="项目类型" LabelAlign="Right" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
<f:ListItem Value="1" Text="系统内项目" Selected="true" />
|
||||
<f:ListItem Value="2" Text="系统外项目" />
|
||||
@@ -48,20 +46,123 @@
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:HtmlEditor runat="server" Label="实施计划内容" ID="txtActionPlanListContents" ShowLabel="false"
|
||||
Editor="UMEditor" BasePath="~/res/umeditor/" ToolbarSet="Full" Height="220" LabelAlign="Right">
|
||||
</f:HtmlEditor>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList runat="server" ID="rblIsReview" Label="备案/部门评审" LabelWidth="120px" Readonly="true">
|
||||
<f:RadioItem Text="备案" Value="False" Selected="true" />
|
||||
<f:RadioItem Text="部门评审" Value="True" />
|
||||
</f:RadioButtonList>
|
||||
<f:DropDownList ID="drpReviewMan" runat="server" Label="评审负责人" LabelAlign="Right" Hidden="true" EnableEdit="true" Readonly="true"
|
||||
LabelWidth="120px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server" ID="trAtt">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel2" runat="server" ShowHeader="false" EnableCollapse="true"
|
||||
BodyPadding="0px" Height="100px">
|
||||
<div runat="server" id="divC"></div>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true"
|
||||
BodyPadding="0px">
|
||||
<uc1:FlowOperateControl ID="ctlAuditFlow" runat="server" />
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel2" IsFluid="true" CssClass="mytable blockpanel" runat="server" ShowBorder="true"
|
||||
Layout="Table" TableConfigColumns="3" ShowHeader="true" Title="总包会签">
|
||||
<Items>
|
||||
<f:Panel ID="Panel1" Title="Panel1" Width="200px" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" AutoScroll="true" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trOne" ShowHeader="false" ShowBorder="false" EnableArrows="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel3" Title="Panel1" Width="200px" AutoScroll="true" Layout="Fit" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trTwo" ShowHeader="false" ShowBorder="false">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel4" Title="Panel1" Width="200px" AutoScroll="true" Layout="Fit" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trThree" ShowHeader="false" ShowBorder="false">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel5" Title="Panel1" Width="200px" AutoScroll="true" Layout="Fit" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trFour" ShowHeader="false" ShowBorder="false">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel6" Title="Panel1" Width="200px" AutoScroll="true" Layout="Fit" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trFive" ShowHeader="false" ShowBorder="false">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel7" Title="Panel1" Width="200px" AutoScroll="true" Layout="Fit" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trSixe" ShowHeader="false" ShowBorder="false">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ID="plApprove2">
|
||||
<Items>
|
||||
|
||||
<f:ContentPanel Title="审批列表" ShowBorder="true"
|
||||
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
runat="server">
|
||||
<f:Grid ID="gvApprove" IsFluid="true" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server" EnableCollapse="false"
|
||||
DataKeyNames="ActionPlanListApproveId" EnableColumnLines="true" OnRowCommand="gvApprove_RowCommand" ForceFit="true">
|
||||
<Columns>
|
||||
<f:RowNumberField Width="40px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" />
|
||||
<f:TemplateField ColumnID="ApproveType" Width="150px" HeaderText="办理类型" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.ActionPlanListService.ConvertState(Eval("ApproveType")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="ApproveMan" Width="150px" HeaderText="办理人员" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# man(Eval("ApproveMan")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="IsAgree" Width="100px" HeaderText="是否同意" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# BLL.ActionPlanListService.IsAgree(Eval("ApproveType"),Eval("IsAgree")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:BoundField Width="100px" DataField="ApproveDate" HeaderTextAlign="Center" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" HeaderText="办理时间" />
|
||||
<f:BoundField Width="180px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="办理意见" />
|
||||
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="60px" Icon="ArrowDown" CommandName="download" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</f:ContentPanel>
|
||||
|
||||
</Items>
|
||||
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using BLL;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
{
|
||||
@@ -33,7 +36,13 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
BLL.Person_PersonsService.InitUserUnitIdDepartIdDropDownList(this.drpReviewMan, BLL.Const.UnitId_SEDIN, BLL.Const.Depart_constructionId, true);
|
||||
CQMSConstructSolutionService.setRoleTree(trOne, this.CurrUser.LoginProjectId, "专业工程师", Const.ProjectUnitType_1, Const.ZBCNEngineer);
|
||||
CQMSConstructSolutionService.setRoleTree(trTwo, this.CurrUser.LoginProjectId, "质量组", Const.ProjectUnitType_1, Const.QAManager + "," + Const.CQEngineer);
|
||||
CQMSConstructSolutionService.setRoleTree(trThree, this.CurrUser.LoginProjectId, "HSE组", Const.ProjectUnitType_1, Const.HSSEManager + "," + Const.HSSEEngineer);
|
||||
CQMSConstructSolutionService.setRoleTree(trFour, this.CurrUser.LoginProjectId, "控制组", Const.ProjectUnitType_1, Const.ControlManager + "," + Const.KZEngineer);
|
||||
CQMSConstructSolutionService.setRoleTree(trFive, this.CurrUser.LoginProjectId, "施工经理", Const.ProjectUnitType_1, Const.ConstructionManager + "," + Const.ConstructionAssistantManager);
|
||||
CQMSConstructSolutionService.setRoleTree(trSixe, this.CurrUser.LoginProjectId, "项目经理", Const.ProjectUnitType_1, Const.ProjectManager);
|
||||
this.ActionPlanListId = Request.Params["ActionPlanListId"];
|
||||
if (!string.IsNullOrEmpty(this.ActionPlanListId))
|
||||
{
|
||||
@@ -41,23 +50,89 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
if (actionPlanList != null)
|
||||
{
|
||||
///读取编号
|
||||
this.txtActionPlanListCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.ActionPlanListId);
|
||||
this.txtActionPlanListCode.Text = actionPlanList.ActionPlanListCode;
|
||||
this.txtActionPlanListName.Text = actionPlanList.ActionPlanListName;
|
||||
this.txtVersionNo.Text = actionPlanList.VersionNo;
|
||||
this.drpProjectType.SelectedValue = actionPlanList.VersionNo;
|
||||
this.drpProjectType.SelectedValue = actionPlanList.ProjectType;
|
||||
this.drpCompileMan.Text = BLL.Person_PersonsService.GetPersonsNameById(actionPlanList.CompileMan);
|
||||
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", actionPlanList.CompileDate);
|
||||
this.txtActionPlanListContents.Text = HttpUtility.HtmlDecode(actionPlanList.ActionPlanListContents);
|
||||
if (actionPlanList.IsReview == true)
|
||||
{
|
||||
this.rblIsReview.SelectedValue = "True";
|
||||
this.drpReviewMan.Hidden = false;
|
||||
this.drpReviewMan.SelectedValue = actionPlanList.ReviewMan;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rblIsReview.SelectedValue = "False";
|
||||
}
|
||||
var list = ActionPlanListApproveService.getListData(ActionPlanListId);
|
||||
gvApprove.DataSource = list;
|
||||
gvApprove.DataBind();
|
||||
var zyUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "ZY");
|
||||
if (zyUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trOne, zyUserIds);
|
||||
}
|
||||
var zlUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "ZL");
|
||||
if (zlUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trTwo, zlUserIds);
|
||||
}
|
||||
var aqUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "AQ");
|
||||
if (aqUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trThree, aqUserIds);
|
||||
}
|
||||
var kzUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "KZ");
|
||||
if (kzUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trFour, kzUserIds);
|
||||
}
|
||||
var sgUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "SG");
|
||||
if (sgUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trFive, sgUserIds);
|
||||
}
|
||||
var xmUserIds = ActionPlanListApproveService.GetUserIdsApprovesBySignType(ActionPlanListId, "XM");
|
||||
if (xmUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trSixe, xmUserIds);
|
||||
}
|
||||
WindowAtt_Close(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
///初始化审核菜单
|
||||
this.ctlAuditFlow.MenuId = BLL.Const.ProjectActionPlanListMenuId;
|
||||
this.ctlAuditFlow.DataId = this.ActionPlanListId;
|
||||
public string man(Object man)
|
||||
{
|
||||
string appman = string.Empty;
|
||||
if (Person_PersonsService.GetPerson_PersonsById(man.ToString()) != null)
|
||||
{
|
||||
appman = Person_PersonsService.GetPerson_PersonsById(man.ToString()).PersonName;
|
||||
}
|
||||
return appman;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置树的节点选择
|
||||
/// </summary>
|
||||
/// <param name="nodes"></param>
|
||||
/// <param name="role"></param>
|
||||
private void SetCheck(Tree tree, List<string> userIds)
|
||||
{
|
||||
foreach (TreeNode tn in tree.Nodes[0].Nodes)
|
||||
{
|
||||
if (userIds.Contains(tn.NodeID))
|
||||
{
|
||||
tn.Checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
@@ -72,5 +147,36 @@ namespace FineUIPro.Web.HSSE.ActionPlan
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void gvApprove_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
object[] keys = gvApprove.DataKeys[e.RowIndex];
|
||||
string fileId = string.Empty;
|
||||
if (keys == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
fileId = keys[0].ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/ActionPlanListAttachUrl&menuId={2}",
|
||||
-1, fileId, Const.ProjectActionPlanListMenuId)));
|
||||
}
|
||||
|
||||
protected void WindowAtt_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
this.divC.InnerHtml = string.Empty;
|
||||
var getAtt = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.ActionPlanListId);
|
||||
if (getAtt != null)
|
||||
{
|
||||
this.divC.InnerHtml = UploadAttachmentService.ShowAttachment("../../", getAtt.AttachUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.trAtt.Hidden = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -94,31 +94,211 @@ namespace FineUIPro.Web.HSSE.ActionPlan {
|
||||
protected global::FineUIPro.TextBox txtCompileDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtActionPlanListContents 控件。
|
||||
/// rblIsReview 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HtmlEditor txtActionPlanListContents;
|
||||
protected global::FineUIPro.RadioButtonList rblIsReview;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// drpReviewMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
protected global::FineUIPro.DropDownList drpReviewMan;
|
||||
|
||||
/// <summary>
|
||||
/// ctlAuditFlow 控件。
|
||||
/// trAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.FlowOperateControl ctlAuditFlow;
|
||||
protected global::FineUIPro.FormRow trAtt;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel2;
|
||||
|
||||
/// <summary>
|
||||
/// divC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divC;
|
||||
|
||||
/// <summary>
|
||||
/// Panel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel2;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// trOne 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trOne;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
/// <summary>
|
||||
/// trTwo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trTwo;
|
||||
|
||||
/// <summary>
|
||||
/// Panel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel4;
|
||||
|
||||
/// <summary>
|
||||
/// trThree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trThree;
|
||||
|
||||
/// <summary>
|
||||
/// Panel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel5;
|
||||
|
||||
/// <summary>
|
||||
/// trFour 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trFour;
|
||||
|
||||
/// <summary>
|
||||
/// Panel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel6;
|
||||
|
||||
/// <summary>
|
||||
/// trFive 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trFive;
|
||||
|
||||
/// <summary>
|
||||
/// Panel7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel7;
|
||||
|
||||
/// <summary>
|
||||
/// trSixe 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trSixe;
|
||||
|
||||
/// <summary>
|
||||
/// plApprove2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow plApprove2;
|
||||
|
||||
/// <summary>
|
||||
/// gvApprove 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvApprove;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
|
||||
Reference in New Issue
Block a user