HJGL_DS/HJGL_DS/FineUIPro.Web/JGZL/ElectrostaticGrounding.aspx

138 lines
10 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectrostaticGrounding.aspx.cs" Inherits="FineUIPro.Web.JGZL.ElectrostaticGrounding" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管道静电接地测试记录</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="220px" Title="管道静电接地测试记录" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="管道静电接地测试记录" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="管道静电接地测试记录"
TitleToolTip="管道静电接地测试记录" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:DatePicker ID="txtStartDate" runat="server" Label="记录时间" LabelAlign="Right" Width="220px" AutoPostBack="true" OnTextChanged="Text_TextChanged"></f:DatePicker>
<f:Label ID="lblTo" runat="server" Text="-" Width="10px"></f:Label>
<f:DatePicker ID="txtEndDate" runat="server" Width="120px" AutoPostBack="true" OnTextChanged="Text_TextChanged"></f:DatePicker>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
<f:Button ID="btnPrint" Text="管道静电接地测试记录打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管道静电接地测试记录" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ElectrostaticGroundingId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="ElectrostaticGroundingId" AllowSorting="true"
SortField="CompileDate" SortDirection="Desc" OnSort="Grid1_Sort" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField HeaderText="管道编号/单线号" ColumnID="PipelineCode" DataField="PipelineCode" SortField="PipelineCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px" ExpandUnusedSpace="true">
</f:RenderField>
<f:GroupField HeaderText="法兰或螺纹接头" HeaderTextAlign="Center" TextAlign="Center">
<Columns>
<f:BoundField ColumnID="ConnectionType" DataField="ConnectionType" HeaderText="接头型式" SortField="ConnectionType" HeaderTextAlign="Center" TextAlign="Center" Width="100px"></f:BoundField>
<f:GroupField HeaderText="跨接导线" HeaderTextAlign="Center" TextAlign="Center">
<Columns>
<f:BoundField ColumnID="BWSpecification" DataField="BWSpecification" HeaderText="规格" SortField="BWSpecification" HeaderTextAlign="Center" TextAlign="Center" Width="100px"></f:BoundField>
<f:BoundField ColumnID="BWMaterial" DataField="BWMaterial" HeaderText="材质" SortField="BWMaterial" HeaderTextAlign="Center" TextAlign="Center" Width="100px"></f:BoundField>
</Columns>
</f:GroupField>
<f:BoundField ColumnID="BWResistance" DataField="BWResistance" HeaderText="电阻值0.03Ω" SortField="BWResistance" HeaderTextAlign="Center" TextAlign="Center" Width="100px"></f:BoundField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="接地引线" HeaderTextAlign="Center" TextAlign="Center">
<Columns>
<f:BoundField ColumnID="GWSpecification" DataField="GWSpecification" HeaderText="规格" SortField="GWSpecification" HeaderTextAlign="Center" TextAlign="Center" Width="100px"></f:BoundField>
<f:BoundField ColumnID="GWMaterial" DataField="GWMaterial" HeaderText="材质" SortField="GWMaterial" HeaderTextAlign="Center" TextAlign="Center" Width="100px"></f:BoundField>
<f:BoundField ColumnID="GWResistance" DataField="GWResistance" HeaderText="对地电阻100Ω" SortField="GWResistance" HeaderTextAlign="Center" TextAlign="Center" Width="100px"></f:BoundField>
</Columns>
</f:GroupField>
<f:RenderField HeaderText="记录人" ColumnID="CompileManName" DataField="CompileManName" SortField="CompileManName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="记录时间" ColumnID="CompileDate" DataField="CompileDate" SortField="CompileDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="管道静电接地测试记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="700px" Height="620px">
</f:Window>
<f:Window ID="WindowPrint" Title="打印管道静电接地测试记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</f:MenuButton>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>