河北专项检查和移动端
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>HSE巡检</title>
|
||||
<title>专项检查记录</title>
|
||||
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
@@ -13,34 +13,29 @@
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="HSE巡检" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="CheckSpecialDetailId" DataIDField="CheckSpecialDetailId"
|
||||
AllowSorting="true" SortField="CheckTime" SortDirection="DESC" OnSort="Grid1_Sort"
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="专项检查记录" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="InspectionItemId" DataIDField="InspectionItemId"
|
||||
AllowCellEditing="true" ClicksToEdit="2" ForceFit="true"
|
||||
AllowSorting="true" SortField="CreateTime" SortDirection="DESC" OnSort="Grid1_Sort"
|
||||
EnableColumnLines="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
|
||||
OnPageIndexChange="Grid1_PageIndexChange" OnRowCommand="Grid1_RowCommand"
|
||||
OnPageIndexChange="Grid1_PageIndexChange" OnRowCommand="Grid1_RowCommand"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="检查人" ID="txtCheckMan" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="210px" LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="检查项" ID="txtType" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="210px" LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="单位工程" ID="txtWorkAreaName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="210px" LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="责任单位" ID="txtResponsibilityUnitName" EmptyText="输入查询条件"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="250px"
|
||||
LabelWidth="80px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList ID="txtType" runat="server" Label="问题类型" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"
|
||||
LabelWidth="100px" LabelAlign="Right" Width="210px">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="txtWorkAreaName" runat="server" Label="单位工程" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"
|
||||
LabelWidth="100px" EnableEdit="true" ForceSelection="false" LabelAlign="Right" Width="200px">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="txtResponsibilityUnitName" runat="server" Label="责任单位" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"
|
||||
LabelWidth="100px" LabelAlign="Right" Width="200px">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtStartTime" runat="server" Label="检查时间" LabelAlign="Right"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
|
||||
</f:DatePicker>
|
||||
@@ -49,102 +44,63 @@
|
||||
<f:DatePicker ID="txtEndTime" runat="server" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
|
||||
Width="130px">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker ID="txtStartRectificationTime" runat="server" Label="整改时间" LabelAlign="Right"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
|
||||
</f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server" Text="至">
|
||||
</f:Label>
|
||||
<f:DatePicker ID="txtEndRectificationTime" runat="server" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
|
||||
Width="130px">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpStates" runat="server" Label="状态" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"
|
||||
LabelWidth="70px" LabelAlign="Right" Width="170px">
|
||||
<f:ListItem Text="- 请选择 -" Value="null" Selected="true" />
|
||||
<f:ListItem Text="待提交" Value="0" />
|
||||
<f:ListItem Text="待整改" Value="1" />
|
||||
<f:ListItem Text="已完成" Value="2" />
|
||||
</f:DropDownList>
|
||||
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:HiddenField runat="server" ID="hdRemark">
|
||||
</f:HiddenField>
|
||||
<f:Button ID="btnNew" Icon="Add" runat="server" OnClick="btnNew_Click" ToolTip="编制" Hidden="true">0
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="100px" ColumnID="CheckSpecialCode" DataField="CheckSpecialCode"
|
||||
SortField="CheckSpecialCode" FieldType="String" HeaderText="编号" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="CheckAreaName" DataField="CheckAreaName"
|
||||
SortField="CheckAreaName" FieldType="String" HeaderText="单位工程" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="UnitName" DataField="UnitName"
|
||||
SortField="UnitName" FieldType="String" HeaderText="受检单位" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="100px" ColumnID="HSEManage" DataField="HSEManage"
|
||||
SortField="HSEManage" FieldType="String" HeaderText="HSE经理" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="Unqualified" DataField="Unqualified"
|
||||
SortField="Unqualified" FieldType="String" HeaderText="问题描述" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField Width="90px" HeaderText="问题图片" ConfirmTarget="Top" CommandName="attchUrl"
|
||||
TextAlign="Center" ToolTip=" 查看" Text="查看" />
|
||||
<f:RenderField Width="150px" ColumnID="CheckItemName" DataField="CheckItemName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题类型">
|
||||
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="RiskLevel" DataField="RiskLevel"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="风险级别">
|
||||
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" ColumnID="CompleteStatusName" DataField="CompleteStatusName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="现场处理结果">
|
||||
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" ColumnID="RectifyOpinion" DataField="RectifyOpinion"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="处理方式">
|
||||
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="120px" ColumnID="LimitedDate" DataField="LimitedDate" FieldType="Date"
|
||||
Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="限时日期">
|
||||
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="150px" ColumnID="Suggestions" DataField="Suggestions"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="整改要求" >
|
||||
|
||||
</f:RenderField>
|
||||
|
||||
<f:TemplateField ColumnID="StatesName" Width="100px" HeaderText="状态" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
|
||||
TextAlign="Center" EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="labStatesName" runat="server" Text='<%# ConvertState(Eval("CheckSpecialDetailId")) %>'></asp:Label>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:LinkButtonField Width="50px" HeaderText="删除" ConfirmText="确定要删除此条信息吗?" ConfirmTarget="Parent" ColumnID="Del"
|
||||
CommandName="del" TextAlign="Center" ToolTip="删除" Icon="Delete" Hidden="true" />
|
||||
<f:RenderField Width="100px" ColumnID="InspectionCode" DataField="InspectionCode" SortField="InspectionCode"
|
||||
FieldType="String" HeaderText="编号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="CheckMan" DataField="CheckMan" SortField="CheckMan"
|
||||
FieldType="String" HeaderText="检查人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="PersonResponsibleName" DataField="PersonResponsibleName" SortField="PersonResponsibleName"
|
||||
FieldType="String" HeaderText="负责人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="CreateTime" DataField="CreateTime" SortField="CreateTime"
|
||||
FieldType="String" HeaderText="创建日期" HeaderTextAlign="Center" Renderer="Date" RendererArgument="yyyy-MM-dd" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" ColumnID="ProblemTypeName" DataField="ProblemTypeName" SortField="ProblemTypeName"
|
||||
FieldType="String" HeaderText="问题类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" ColumnID="Place" DataField="Place" SortField="Place"
|
||||
FieldType="String" HeaderText="受检区域" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="140px" ColumnID="WorkAreaName" DataField="WorkAreaName" SortField="WorkAreaName"
|
||||
FieldType="String" HeaderText="检查区域" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" ColumnID="CheckTime" DataField="CheckTime" SortField="CheckTime"
|
||||
FieldType="String" HeaderText="检查日期" HeaderTextAlign="Center" Renderer="Date" RendererArgument="yyyy-MM-dd" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
|
||||
<f:TemplateField ColumnID="tfImageUrl1" Width="250px" HeaderText="整改前" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<%# ConvertImgUrlByImage(Eval("InspectionItemId")) %>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="tfImageUrl2" Width="250px" HeaderText="整改后" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<%# ConvertImgUrl(Eval("InspectionItemId")) %>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
|
||||
<f:RenderField Width="100px" ColumnID="itemStates" DataField="itemStates" SortField="itemStates"
|
||||
FieldType="String" HeaderText="状态" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
@@ -158,47 +114,16 @@
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="HSE巡检" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
<f:Window ID="Window1" Title="专项检查" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="900px" Height="580px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window2" Title="违章处罚通知单" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="1024px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window3" Title="检查小结" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" OnClose="Window3_Close" IsModal="true"
|
||||
Width="600px" Height="300px">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
<%-- <f:Window ID="Window4" Title="检查打印" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true"
|
||||
Width="1200px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window5" Title="检查打印" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true"
|
||||
Width="1200px" Height="600px">
|
||||
</f:Window>--%>
|
||||
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
<f:MenuButton ID="btnModify" EnablePostBack="true" runat="server" Text="编辑"
|
||||
OnClick="btnMenuModify_Click" Hidden="true" Icon="Pencil">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnRectify" EnablePostBack="true" runat="server" Text="整改"
|
||||
OnClick="btnMenuRectify_Click" Hidden="true" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnConfirm" EnablePostBack="true" runat="server" Text="确认"
|
||||
OnClick="btnMenuConfirm_Click" Hidden="true" Icon="Accept">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuSee" EnablePostBack="true" runat="server" Text="查看"
|
||||
OnClick="btnMenuSee_Click" Icon="Find">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true" Icon="Delete"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server" Text="删除" Hidden="true">
|
||||
</f:MenuButton>
|
||||
</Items>
|
||||
</f:Menu>
|
||||
</form>
|
||||
@@ -209,6 +134,15 @@
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeColumns(['InspectionCode']);
|
||||
this.mergeColumns(['CheckMan']);
|
||||
this.mergeColumns(['PersonResponsibleName']);
|
||||
this.mergeColumns(['ProblemTypeName']);
|
||||
this.mergeColumns(['Place']);
|
||||
this.mergeColumns(['CreateTime']);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
@@ -42,11 +43,11 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
GetButtonPower();
|
||||
this.ItemSelectedList = new List<string>();
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
//this.drpStates.DataValueField = "Id";
|
||||
//this.drpStates.DataTextField = "Name";
|
||||
//this.drpStates.DataSource = BLL.HSSE_Hazard_HazardRegisterService.GetStatesList(); ;
|
||||
//this.drpStates.DataBind();
|
||||
//Funs.FineUIPleaseSelect(this.drpStates);
|
||||
SetProblemTypes();
|
||||
SetUnitProject();
|
||||
SetResponsibleUnit();
|
||||
this.txtStartTime.Text = DateTime.Today.ToString("yyyy-MM-dd");
|
||||
this.txtEndTime.Text = DateTime.Today.ToString("yyyy-MM-dd");
|
||||
// 绑定表格
|
||||
BindGrid();
|
||||
}
|
||||
@@ -59,69 +60,44 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
{
|
||||
|
||||
|
||||
string strSql = "SELECT a.CheckSpecialCode,(CASE WHEN a.States='2' THEN '已完成' WHEN a.States='1' THEN '待整改' ELSE '待提交' END) AS StatesName,a.CheckTime,b.* FROM Check_CheckSpecial a right join View_CheckSpecialDetail b on a.CheckSpecialId=b.CheckSpecialId WHERE ";
|
||||
string strSql = "SELECT a.InspectionId,a.InspectionCode,a.ProjectId,(SELECT ProjectName FROM Base_Project as p WHERE p.ProjectId = a.ProjectId) as ProjectName, a.PersonResponsible,(SELECT UserName FROM Sys_User as u WHERE u.UserID = a.PersonResponsible) as PersonResponsibleName, (CASE WHEN a.States = '1' THEN '待检查' WHEN a.States = '2' THEN '待审核/整改' WHEN a.States = '3' THEN '已闭环' END ) as Status, a.CheckMan, a.CreateTime, a.ProblemTypeName,b.CompileTime as CheckTime, " +
|
||||
"b.InspectionItemId,b.BeforelUrl,b.AfterUrl, (CASE WHEN b.States = '1'and a.States = '1' THEN '待提交' WHEN a.States = '2' and b.States = '1' THEN '待审核' WHEN a.States = '2' and b.States = '2' THEN '待整改' WHEN a.States = '2' and b.States = '3' THEN '已闭环' WHEN a.States = '3' THEN '已闭环' END) as itemStates," +
|
||||
"a.Place FROM Inspect_InspectionItem as b LEFT JOIN Inspect_Inspection as a on b.InspectionId = a.InspectionId WHERE a.InspectType = '1'";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
strSql += " a.ProjectId = @ProjectId";
|
||||
strSql += "and a.ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtCheckMan.Text.Trim()))
|
||||
{
|
||||
strSql += " AND a.PartInPersons LIKE @CheckMan";
|
||||
strSql += " AND a.CheckMan LIKE @CheckMan";
|
||||
listStr.Add(new SqlParameter("@CheckMan", "%" + this.txtCheckMan.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtType.Text.Trim()))
|
||||
if (this.txtType.SelectedText.Trim() != "请选择" && !string.IsNullOrEmpty(this.txtType.SelectedText.Trim()))
|
||||
{
|
||||
strSql += " AND b.CheckItemName LIKE @Type";
|
||||
listStr.Add(new SqlParameter("@Type", "%" + this.txtType.Text.Trim() + "%"));
|
||||
strSql += " AND a.ProblemTypeName = @Type";
|
||||
listStr.Add(new SqlParameter("@Type", this.txtType.SelectedText.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtWorkAreaName.SelectedText) && this.txtWorkAreaName.SelectedText.Trim() != "请选择")
|
||||
{
|
||||
strSql += " AND a.Place = @Place";
|
||||
listStr.Add(new SqlParameter("@Place", this.txtWorkAreaName.SelectedText.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtWorkAreaName.Text.Trim()))
|
||||
{
|
||||
strSql += " AND b.CheckAreaName LIKE @WorkAreaName";
|
||||
listStr.Add(new SqlParameter("@WorkAreaName", "%" + this.txtWorkAreaName.Text.Trim() + "%"));
|
||||
}
|
||||
//if (this.ckType.SelectedValue != "0")
|
||||
//{
|
||||
// strSql += " AND CheckCycle=@CheckCycle";
|
||||
// listStr.Add(new SqlParameter("@CheckCycle", this.ckType.SelectedValue));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(this.txtResponsibilityUnitName.Text.Trim()))
|
||||
{
|
||||
strSql += " AND ResponsibilityUnitName LIKE @ResponsibilityUnitName";
|
||||
listStr.Add(new SqlParameter("@ResponsibilityUnitName", "%" + this.txtResponsibilityUnitName.Text.Trim() + "%"));
|
||||
strSql += " AND a.Place LIKE @Place";
|
||||
listStr.Add(new SqlParameter("@Place", "%" + this.txtWorkAreaName.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStartTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND CheckTime >= @StartTime";
|
||||
listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text.Trim()));
|
||||
strSql += " AND b.CompileTime >= @StartTime";
|
||||
listStr.Add(new SqlParameter("@StartTime", string.Format("{0} {1}", this.txtStartTime.Text.Trim(), "00:00:00")));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND CheckTime <= @EndTime";
|
||||
listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStartRectificationTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND RectificationTime >= @StartRectificationTime";
|
||||
listStr.Add(new SqlParameter("@StartRectificationTime", this.txtStartRectificationTime.Text.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtEndRectificationTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND RectificationTime <= @EndRectificationTime";
|
||||
listStr.Add(new SqlParameter("@EndRectificationTime", this.txtEndRectificationTime.Text.Trim()));
|
||||
}
|
||||
|
||||
if (this.drpStates.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " AND a.States LIKE @States";
|
||||
listStr.Add(new SqlParameter("@States", "%" + this.drpStates.SelectedValue + "%"));
|
||||
}
|
||||
if (!CommonService.IsMainUnitOrAdmin(this.CurrUser.UserId))
|
||||
{
|
||||
strSql += " AND (UnitId = @ResponsibleUnit OR ProposeUnitId =@SendUnitId)";
|
||||
listStr.Add(new SqlParameter("@ResponsibleUnit", this.CurrUser.UnitId));
|
||||
listStr.Add(new SqlParameter("@SendUnitId", this.CurrUser.UnitId));
|
||||
strSql += " AND b.CompileTime <= @EndTime";
|
||||
listStr.Add(new SqlParameter("@EndTime", string.Format("{0} {1}", this.txtEndTime.Text.Trim(), "23:59:59")));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
@@ -134,6 +110,72 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 问题类型下拉框赋值
|
||||
public void SetProblemTypes()
|
||||
{
|
||||
txtType.DataValueField = "RectifyId";
|
||||
txtType.DataTextField = "RectifyName";
|
||||
List<Model.Technique_Rectify> list = (from x in Funs.DB.Technique_Rectify select x).ToList();
|
||||
list.Insert(0, new Model.Technique_Rectify()
|
||||
{
|
||||
RectifyId = "-1",
|
||||
RectifyName = "请选择"
|
||||
});
|
||||
txtType.DataSource = list;
|
||||
txtType.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 单位工程下拉框赋值
|
||||
public void SetUnitProject()
|
||||
{
|
||||
List<Model.WBS_UnitWork> list = new List<Model.WBS_UnitWork>() {
|
||||
new Model.WBS_UnitWork()
|
||||
{
|
||||
UnitWorkId = "-1",
|
||||
UnitWorkName = "请选择"
|
||||
}
|
||||
};
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
list.AddRange((from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList());
|
||||
}
|
||||
txtWorkAreaName.DataValueField = "UnitWorkId";
|
||||
txtWorkAreaName.DataTextField = "UnitWorkName";
|
||||
txtWorkAreaName.DataSource = list;
|
||||
txtWorkAreaName.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 责任单位下拉框赋值
|
||||
public void SetResponsibleUnit()
|
||||
{
|
||||
List<Model.UnitItem> list = new List<Model.UnitItem>() {
|
||||
new Model.UnitItem()
|
||||
{
|
||||
UnitId = "-1",
|
||||
UnitName = "请选择"
|
||||
}
|
||||
};
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
list.AddRange((from x in Funs.DB.Project_ProjectUnit
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
select new Model.UnitItem()
|
||||
{
|
||||
UnitId = y.UnitId,
|
||||
UnitName = y.UnitName
|
||||
}).ToList());
|
||||
}
|
||||
txtResponsibilityUnitName.DataValueField = "UnitId";
|
||||
txtResponsibilityUnitName.DataTextField = "UnitName";
|
||||
txtResponsibilityUnitName.DataSource = list;
|
||||
txtResponsibilityUnitName.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 表排序、分页、关闭窗口
|
||||
/// <summary>
|
||||
/// 分页
|
||||
@@ -204,10 +246,10 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
return;
|
||||
}
|
||||
string RegistrationId = Grid1.SelectedRowID;
|
||||
var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(RegistrationId);
|
||||
if (registration != null)
|
||||
|
||||
if (RegistrationId != null)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HiddenRectificationView.aspx?HazardRegisterId={0}", RegistrationId, "查看 - ")));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CheckSpecialView.aspx?InspectionItemId={0}", RegistrationId, "查看 - ")));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -385,10 +427,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
}
|
||||
}
|
||||
}
|
||||
if (e.CommandName == "attchUrl")
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CheckSpecial&menuId={1}&edit=1&type=-1", RegistrationId, BLL.Const.ProjectCheckSpecialMenuId)));
|
||||
}
|
||||
|
||||
if (e.CommandName == "del")
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnDelete))
|
||||
@@ -419,135 +458,36 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除
|
||||
/// <summary>
|
||||
/// 右键删除事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnDelete))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
Model.HSSE_Hazard_HazardRegister hazardRegister = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(rowID);
|
||||
if (hazardRegister.States == Const.State_3 || this.CurrUser.UserId == BLL.Const.hfnbdId) //待整改
|
||||
{
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, hazardRegister.HazardCode, hazardRegister.HazardRegisterId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnDelete);
|
||||
BLL.HSSE_Hazard_HazardRegisterService.DeleteHazardRegisterByHazardRegisterId(rowID);
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("已闭环,无法删除!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
BindGrid();
|
||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 格式化字符串
|
||||
/// <summary>
|
||||
/// 获取整改前图片
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertImageUrl(object registrationId)
|
||||
{
|
||||
string url = string.Empty;
|
||||
if (registrationId != null)
|
||||
{
|
||||
var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
|
||||
if (registration != null)
|
||||
{
|
||||
url = BLL.UploadAttachmentService.ShowAttachment("../../", registration.ImageUrl);
|
||||
}
|
||||
}
|
||||
return url;
|
||||
}
|
||||
protected string ConvertProblemTypes(object registrationId)
|
||||
{
|
||||
string url = string.Empty;
|
||||
if (registrationId != null)
|
||||
{
|
||||
if (registrationId.ToString() == "1")
|
||||
{
|
||||
return "日常巡检";
|
||||
}
|
||||
else if (registrationId.ToString() == "2")
|
||||
{
|
||||
return "专项检查";
|
||||
}
|
||||
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取整改前图片(放于Img中)
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertImageUrlByImage(object registrationId)
|
||||
{
|
||||
string url = string.Empty;
|
||||
if (registrationId != null)
|
||||
{
|
||||
var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
|
||||
if (registration != null)
|
||||
{
|
||||
url = BLL.UploadAttachmentService.ShowImage("../../", registration.ImageUrl);
|
||||
}
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取整改后图片
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
#region 整改后图片
|
||||
protected string ConvertImgUrl(object registrationId)
|
||||
{
|
||||
string url = string.Empty;
|
||||
if (registrationId != null)
|
||||
{
|
||||
var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
|
||||
if (registration != null)
|
||||
var imgUrl = Funs.DB.Inspect_InspectionItem.FirstOrDefault(x => x.InspectionItemId == registrationId.ToString()).AfterUrl;
|
||||
if (imgUrl != null)
|
||||
{
|
||||
url = BLL.UploadAttachmentService.ShowAttachment("../../", registration.RectificationImageUrl);
|
||||
url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], imgUrl);
|
||||
}
|
||||
}
|
||||
return url;
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 获取整改后图片(放于Img中)
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
#region 整改前图片
|
||||
protected string ConvertImgUrlByImage(object registrationId)
|
||||
{
|
||||
string url = string.Empty;
|
||||
if (registrationId != null)
|
||||
{
|
||||
var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
|
||||
if (registration != null)
|
||||
var imgUrl = Funs.DB.Inspect_InspectionItem.FirstOrDefault(x => x.InspectionItemId == registrationId.ToString()).BeforelUrl;
|
||||
if (imgUrl != null)
|
||||
{
|
||||
url = BLL.UploadAttachmentService.ShowImage("../../", registration.RectificationImageUrl);
|
||||
url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], imgUrl);
|
||||
}
|
||||
}
|
||||
return url;
|
||||
@@ -636,14 +576,6 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtStartRectificationTime.Text.Trim()) && !string.IsNullOrEmpty(this.txtEndRectificationTime.Text.Trim()))
|
||||
{
|
||||
if (Funs.GetNewDateTime(this.txtStartRectificationTime.Text.Trim()) > Funs.GetNewDateTime(this.txtEndRectificationTime.Text.Trim()))
|
||||
{
|
||||
Alert.ShowInTop("开始时间不能大于结束时间!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
@@ -666,9 +598,6 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
{
|
||||
hazardRegisterIds = hazardRegisterIds.Substring(0, hazardRegisterIds.LastIndexOf(","));
|
||||
}
|
||||
// PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("HiddenRectificationPrint.aspx?HazardRegisterIds={0}&CheckType={1}", hazardRegisterIds,"0", "查看 - ")));
|
||||
this.hdRemark.Text = string.Empty;
|
||||
//}
|
||||
}
|
||||
|
||||
#region 获取按钮权限
|
||||
@@ -684,23 +613,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
return;
|
||||
}
|
||||
var buttonList = CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HSSE_HiddenRectificationListMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(Const.BtnAdd))
|
||||
{
|
||||
this.btnNew.Hidden = false;
|
||||
this.btnRectify.Hidden = false;
|
||||
this.btnConfirm.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(Const.BtnModify))
|
||||
{
|
||||
this.btnModify.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDelete.Hidden = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
+5
-158
@@ -75,7 +75,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtType;
|
||||
protected global::FineUIPro.DropDownList txtType;
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkAreaName 控件。
|
||||
@@ -84,7 +84,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkAreaName;
|
||||
protected global::FineUIPro.DropDownList txtWorkAreaName;
|
||||
|
||||
/// <summary>
|
||||
/// txtResponsibilityUnitName 控件。
|
||||
@@ -93,16 +93,7 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtResponsibilityUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
protected global::FineUIPro.DropDownList txtResponsibilityUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartTime 控件。
|
||||
@@ -132,94 +123,13 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartRectificationTime 控件。
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartRectificationTime;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndRectificationTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndRectificationTime;
|
||||
|
||||
/// <summary>
|
||||
/// drpStates 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpStates;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// hdRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdRemark;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// labNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||
|
||||
/// <summary>
|
||||
/// labStatesName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label labStatesName;
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
@@ -257,33 +167,6 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
|
||||
/// <summary>
|
||||
/// Window3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window3;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
@@ -293,33 +176,6 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnModify 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnModify;
|
||||
|
||||
/// <summary>
|
||||
/// btnRectify 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnRectify;
|
||||
|
||||
/// <summary>
|
||||
/// btnConfirm 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnConfirm;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuSee 控件。
|
||||
/// </summary>
|
||||
@@ -328,14 +184,5 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuSee;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="CheckSpecialView.aspx.cs" Inherits="FineUIPro.Web.HSSE.Check.CheckSpecialView" %>
|
||||
|
||||
<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" TagPrefix="uc1" %>
|
||||
<!DOCTYPE html>
|
||||
|
||||
@@ -7,116 +8,92 @@
|
||||
<title>查看专项检查</title>
|
||||
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style type="text/css">
|
||||
.labcenter
|
||||
{
|
||||
.labcenter {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow ColumnWidths="35% 15% 30% 25%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtCheckSpecialCode" runat="server" Label="检查编号" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:RadioButtonList runat="server" ID="rbType" Width="180px" Readonly="true">
|
||||
<f:RadioItem Text="专项" Value="0" Selected="true" />
|
||||
<f:RadioItem Text="联合" Value="1" />
|
||||
</f:RadioButtonList>
|
||||
<f:TextBox ID="txtSupCheckItemSet" runat="server" Label="检查类别" Readonly="true" >
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtCheckDate" runat="server" Label="检查日期" Readonly="true" >
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtPartInPersons" runat="server" Label="参检人员" Readonly="true" MaxLength="200">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtPartInPersonNames" runat="server" MaxLength="200" Readonly="true" Label="补充人员">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" runat="server" ClicksToEdit="1" DataIDField="CheckSpecialDetailId"
|
||||
DataKeyNames="CheckSpecialDetailId" ShowGridHeader="true" MinHeight="350px"
|
||||
AllowSorting="false" SortField="SortIndex" SortDirection="ASC" OnSort="Grid1_Sort"
|
||||
EnableColumnLines="true" EnableTextSelection="True" OnRowCommand="Grid1_RowCommand">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="100px" ColumnID="CheckAreaName" DataField="CheckAreaName" SortField="CheckAreaName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="单位工程">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="受检单位">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="HSEManage" DataField="HSEManage" SortField="HSEManage"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="HSE经理">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Unqualified" DataField="Unqualified" SortField="Unqualified"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题描述" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField Width="90px" HeaderText="问题图片" ConfirmTarget="Top" CommandName="attchUrl"
|
||||
TextAlign="Center" ToolTip="上传" Text="上传" />
|
||||
<f:RenderField Width="160px" ColumnID="CheckItemName" DataField="CheckItemName" SortField="CheckItemName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题类型">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" ColumnID="RiskLevel" DataField="RiskLevel" SortField="RiskLevel"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="风险级别">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="80px" ColumnID="CompleteStatusName" DataField="CompleteStatusName" SortField="CompleteStatusName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="处理结果">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="80px" ColumnID="RectifyOpinion" DataField="RectifyOpinion" SortField="RectifyOpinion"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="处理方式">
|
||||
</f:RenderField>
|
||||
<%-- <f:RenderField Width="80px" ColumnID="LimitedDate" DataField="LimitedDate" SortField="LimitedDate"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="级别">
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField Width="80px" ColumnID="Suggestions" DataField="Suggestions" SortField="Suggestions"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="整改要求">
|
||||
</f:RenderField>
|
||||
<%--<f:LinkButtonField Width="140px" HeaderText="处理措施" ConfirmTarget="Parent" CommandName="click"
|
||||
TextAlign="Center" DataTextField="HandleStepLink" ColumnID="HandleStepLink" /> --%>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</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="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
<f:HiddenField ID="hdId" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||
</f:HiddenField>
|
||||
</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" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window1" Title="详细" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true"
|
||||
Width="1100px" Height="500px">
|
||||
</f:Window>
|
||||
<form id="_form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" />
|
||||
<f:Form IsFluid="true" BodyPadding="10px" ID="Form1" LabelWidth="100px" EnableCollapse="false"
|
||||
runat="server" Title="查看">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="Code" runat="server" Label="编号" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="PName" runat="server" Label="项目名称" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="Cman" runat="server" Label="检查人" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="Pman" runat="server" Label="负责人" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="Ptype" runat="server" Label="问题类型" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="Iarea" runat="server" Label="受检区域" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="Carea" runat="server" Label="检查区域" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="state" runat="server" Label="状态" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="conclusion" runat="server" Label="审批结论" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow ColumnWidths="8% 92%">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lblImageUrl" Label="检查图片">
|
||||
</f:Label>
|
||||
<f:ContentPanel ID="ContentPanel2" runat="server" ShowHeader="false" ShowBorder="false"
|
||||
Title="检查图片">
|
||||
<table style="width">
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="divImageUrl" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="8% 92%">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lblRectificationImageUrl" Label="整改图片">
|
||||
</f:Label>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" ShowBorder="false"
|
||||
Title="整改图片">
|
||||
<table>
|
||||
<tr style="height: 28px">
|
||||
<td align="left">
|
||||
<div id="divRectificationImageUrl" runat="server">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
<script>
|
||||
function onGridDataLoad(event) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
@@ -12,22 +13,18 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string CheckSpecialId
|
||||
public string InspectionItemId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["CheckSpecialId"];
|
||||
return (string)ViewState["InspectionItemId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["CheckSpecialId"] = value;
|
||||
ViewState["InspectionItemId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义集合
|
||||
/// </summary>
|
||||
private static List<Model.View_CheckSpecialDetail> checkSpecialDetails = new List<Model.View_CheckSpecialDetail>();
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
@@ -40,129 +37,73 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
hdAttachUrl.Text = string.Empty;
|
||||
hdId.Text = string.Empty;
|
||||
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
checkSpecialDetails.Clear();
|
||||
this.InspectionItemId = Request.Params["InspectionItemId"];
|
||||
|
||||
this.CheckSpecialId = Request.Params["CheckSpecialId"];
|
||||
var checkSpecial = BLL.Check_CheckSpecialService.GetCheckSpecialByCheckSpecialId(this.CheckSpecialId);
|
||||
if (checkSpecial != null)
|
||||
var item = (from x in Funs.DB.Inspect_InspectionItem
|
||||
join y in Funs.DB.Inspect_Inspection on x.InspectionId equals y.InspectionId
|
||||
where x.InspectionItemId == this.InspectionItemId
|
||||
select new {
|
||||
InspectionItemId = x.InspectionItemId,
|
||||
InspectionId = x.InspectionId,
|
||||
ProjectId = y.ProjectId,
|
||||
ProjectName = Funs.DB.Base_Project.FirstOrDefault(p => p.ProjectId == y.ProjectId).ProjectName,
|
||||
InspectionCode = y.InspectionCode,
|
||||
CheckMan = y.CheckMan,
|
||||
ProblemTypeName = y.ProblemTypeName,
|
||||
Place = y.Place,
|
||||
PersonResponsible = y.PersonResponsible,
|
||||
PersonResponsibleName = Funs.DB.Sys_User.FirstOrDefault(p => p.UserId == y.PersonResponsible).UserName,
|
||||
WorkAreaName = x.WorkAreaName,
|
||||
States = y.States,
|
||||
ItemStates = x.States,
|
||||
EvaluateResults = x.EvaluateResults,
|
||||
BeforelUrl = x.BeforelUrl,
|
||||
AfterUrl = x.AfterUrl,
|
||||
AuditTime = x.AuditTime,
|
||||
AuditMan = x.AuditMan,
|
||||
RectificationResults = x.RectificationResults,
|
||||
AuditManName = Funs.DB.Sys_User.FirstOrDefault(p => p.UserId == x.AuditMan).UserName
|
||||
}
|
||||
).FirstOrDefault();
|
||||
this.Code.Text = item.InspectionCode;
|
||||
this.PName.Text = item.ProjectName;
|
||||
this.Cman.Text = item.CheckMan;
|
||||
this.Pman.Text = item.ProblemTypeName;
|
||||
this.Ptype.Text = item.ProblemTypeName;
|
||||
this.Iarea.Text = item.Place;
|
||||
this.Carea.Text = item.WorkAreaName;
|
||||
this.conclusion.Text = item.RectificationResults;
|
||||
this.divImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment(ConfigurationManager.AppSettings["CEMS_IMG_URL"], item.BeforelUrl);
|
||||
this.divRectificationImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment(ConfigurationManager.AppSettings["CEMS_IMG_URL"], item.AfterUrl);
|
||||
|
||||
if (item.States == "1"&&item.ItemStates == "1")
|
||||
{
|
||||
this.txtCheckSpecialCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.CheckSpecialId);
|
||||
if (checkSpecial.CheckTime != null)
|
||||
{
|
||||
this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", checkSpecial.CheckTime);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(checkSpecial.CheckType))
|
||||
{
|
||||
this.rbType.SelectedValue = checkSpecial.CheckType;
|
||||
}
|
||||
this.txtPartInPersonNames.Text = checkSpecial.PartInPersonNames;
|
||||
this.txtSupCheckItemSet.Text = Technique_CheckItemSetService.GetCheckItemSetNameById(checkSpecial.CheckItemSetId);
|
||||
this.txtPartInPersons.Text = checkSpecial.PartInPersons;
|
||||
checkSpecialDetails = (from x in Funs.DB.View_CheckSpecialDetail
|
||||
where x.CheckSpecialId == this.CheckSpecialId
|
||||
orderby x.UnitName, x.SortIndex
|
||||
select x).ToList();
|
||||
this.state.Text = "待提交";
|
||||
}
|
||||
if (item.States == "2" && item.ItemStates == "1")
|
||||
{
|
||||
this.state.Text = "待审批";
|
||||
}
|
||||
if (item.States == "2" && item.ItemStates == "2")
|
||||
{
|
||||
this.state.Text = "待整改";
|
||||
}
|
||||
if (item.States == "2" && item.ItemStates == "3")
|
||||
{
|
||||
this.state.Text = "已闭环";
|
||||
}
|
||||
if (item.States == "2" && item.ItemStates == "3")
|
||||
{
|
||||
this.state.Text = "已闭环";
|
||||
}
|
||||
if(item.States == "3")
|
||||
{
|
||||
this.state.Text = "已闭环";
|
||||
}
|
||||
Grid1.DataSource = checkSpecialDetails;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.CheckSpecialId))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CheckSpecial&menuId={1}&type=-1", this.CheckSpecialId, BLL.Const.ProjectCheckSpecialMenuId)));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
string checkSpecialDetailId = Grid1.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "click")
|
||||
{
|
||||
var detail = Check_CheckSpecialDetailService.GetCheckSpecialDetailByCheckSpecialDetailId(Grid1.DataKeys[e.RowIndex][0].ToString());
|
||||
if (detail != null)
|
||||
{
|
||||
List<string> getList = Funs.GetStrListByStr(detail.DataId,'|');
|
||||
foreach (var item in getList)
|
||||
{
|
||||
List<string> getItemList = Funs.GetStrListByStr(item, ',');
|
||||
if (getItemList.Count() > 1)
|
||||
{
|
||||
if (getItemList[0].ToString() == "1")
|
||||
{
|
||||
var getRe = RectifyNoticesService.GetRectifyNoticesById(getItemList[1].ToString());
|
||||
if (getRe != null)
|
||||
{
|
||||
if (getRe.CompleteManId ==this.CurrUser.UserId &&( string.IsNullOrEmpty(getRe.States) || getRe.States == Const.State_0))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RectifyNoticesAdd.aspx?RectifyNoticesId={0}", getRe.RectifyNoticesId, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RectifyNoticesView.aspx?RectifyNoticesId={0}", getRe.RectifyNoticesId, "查看 - ")));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getItemList[0].ToString() == "2")
|
||||
{
|
||||
var getpu = PunishNoticeService.GetPunishNoticeById(getItemList[1].ToString());
|
||||
if (getpu.CompileMan == this.CurrUser.UserId && (string.IsNullOrEmpty(getpu.PunishStates) || getpu.PunishStates == Const.State_0))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PunishNoticeEdit.aspx?PunishNoticeId={0}", getpu.PunishNoticeId, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PunishNoticeView.aspx?PunishNoticeId={0}", getpu.PunishNoticeId, "查看 - ")));
|
||||
}
|
||||
}
|
||||
if (getItemList[0].ToString() == "3")
|
||||
{
|
||||
var getpau = Check_PauseNoticeService.GetPauseNoticeByPauseNoticeId(getItemList[1].ToString());
|
||||
if (getpau.CompileManId == this.CurrUser.UserId && (string.IsNullOrEmpty(getpau.PauseStates) || getpau.PauseStates == Const.State_0))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PauseNoticeEdit.aspx?PauseNoticeId={0}", getpau.PauseNoticeId, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PauseNoticeView.aspx?PauseNoticeId={0}", getpau.PauseNoticeId, "查看 - ")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (e.CommandName == "attchUrl")
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CheckSpecial&menuId={1}&edit=1&type=-1", checkSpecialDetailId, BLL.Const.ProjectCheckSpecialMenuId)));
|
||||
}
|
||||
}
|
||||
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
var details = (from x in Funs.DB.View_CheckSpecialDetail
|
||||
where x.CheckSpecialId == this.CheckSpecialId
|
||||
select x).ToList();
|
||||
Grid1.DataSource = details;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+58
-65
@@ -7,20 +7,22 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Check {
|
||||
|
||||
|
||||
public partial class CheckSpecialView {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Check
|
||||
{
|
||||
|
||||
|
||||
public partial class CheckSpecialView
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// _form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm _form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,158 +31,149 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// Form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
protected global::FineUIPro.Form Form1;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckSpecialCode 控件。
|
||||
/// Code 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckSpecialCode;
|
||||
|
||||
protected global::FineUIPro.TextBox Code;
|
||||
|
||||
/// <summary>
|
||||
/// rbType 控件。
|
||||
/// PName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rbType;
|
||||
|
||||
protected global::FineUIPro.TextBox PName;
|
||||
|
||||
/// <summary>
|
||||
/// txtSupCheckItemSet 控件。
|
||||
/// Cman 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSupCheckItemSet;
|
||||
|
||||
protected global::FineUIPro.TextBox Cman;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckDate 控件。
|
||||
/// Pman 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckDate;
|
||||
|
||||
protected global::FineUIPro.TextBox Pman;
|
||||
|
||||
/// <summary>
|
||||
/// txtPartInPersons 控件。
|
||||
/// Ptype 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPartInPersons;
|
||||
|
||||
protected global::FineUIPro.TextBox Ptype;
|
||||
|
||||
/// <summary>
|
||||
/// txtPartInPersonNames 控件。
|
||||
/// Iarea 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPartInPersonNames;
|
||||
|
||||
protected global::FineUIPro.TextBox Iarea;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// Carea 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
protected global::FineUIPro.TextBox Carea;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// state 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
protected global::FineUIPro.TextBox state;
|
||||
|
||||
/// <summary>
|
||||
/// lbTemp 控件。
|
||||
/// conclusion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbTemp;
|
||||
|
||||
protected global::FineUIPro.TextBox conclusion;
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// lblImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
protected global::FineUIPro.Label lblImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// ContentPanel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
protected global::FineUIPro.ContentPanel ContentPanel2;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// divImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// hdId 控件。
|
||||
/// lblRectificationImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdId;
|
||||
|
||||
protected global::FineUIPro.Label lblRectificationImageUrl;
|
||||
|
||||
/// <summary>
|
||||
/// hdAttachUrl 控件。
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// divRectificationImageUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divRectificationImageUrl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user