Basf_TCC11/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/PipelineManageEdit.aspx

240 lines
15 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="PipelineManageEdit.aspx.cs"
Inherits="FineUIPro.Web.WeldingProcess.WeldingManage.PipelineManageEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>编辑管线信息</title>
<style type="text/css">
.customlabel span
{
color: red;
font-weight: bold;
}
</style>
</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="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="<%$ Resources:Lan,PipelineInformation %>"
TitleToolTip="<%$ Resources:Lan,PipelineInformation %>" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtPipelineCode" Label="<%$ Resources:Lan,PipelineCode %>" ShowRedStar="true"
Required="true" runat="server" FocusOnPageLoad="true" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtUnitName" Label="<%$ Resources:Lan,UnitName %>" Readonly="true"
runat="server" LabelWidth="160px">
</f:TextBox>
<f:TextBox ID="txtWorkAreaCode" Label="<%$ Resources:Lan,ConstructionArea %>" Readonly="true"
runat="server" LabelWidth="180px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpMainMaterial" Label="<%$ Resources:Lan,MaterialSpecificationCode %>"
runat="server" ShowRedStar="true" Required="true" EnableEdit="true" LabelWidth="140px">
</f:DropDownList>
<f:DropDownList ID="drpMedium" Label="<%$ Resources:Lan,MediumCode %>" runat="server"
ShowRedStar="true" Required="true" EnableEdit="true" LabelWidth="160px">
</f:DropDownList>
<f:DropDownList ID="drpPipClass" Label="压力管道分级" runat="server"
EnableEdit="true" LabelWidth="180px" >
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpPipingClass" Label="<%$ Resources:Lan,PipingClass %>" runat="server"
ShowRedStar="true" Required="true" EnableEdit="true" LabelWidth="140px" >
</f:DropDownList>
<f:TextBox ID="txtSpecification" Label="<%$ Resources:Lan,Specifications %>" runat="server"
LabelWidth="160px">
</f:TextBox>
<f:TextBox ID="txtSingleNumber" Label="<%$ Resources:Lan,ISODrawingNumber %>" runat="server"
LabelWidth="180px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkPackageCode" Label="<%$ Resources:Lan,WorkPackageNumber %>"
runat="server" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtSystemNumber" Label="<%$ Resources:Lan,SystemNumber %>" runat="server"
LabelWidth="160px">
</f:TextBox>
<f:TextBox ID="txtSubSystemNumber" Label="<%$ Resources:Lan,SubSystemNumber %>" runat="server"
LabelWidth="180px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtPipeSegment" Label="<%$ Resources:Lan,TotalSpoolNumbers %>" runat="server"
NoNegative="true" NoDecimal="true" LabelWidth="140px">
</f:NumberBox>
<f:TextBox ID="txtDrawingsNum" Label="<%$ Resources:Lan,DrawingRevision %>" runat="server"
LabelWidth="160px">
</f:TextBox>
<f:TextBox ID="txtDesignTemperature" Label="<%$ Resources:Lan,DesignTemperature %>"
runat="server" LabelWidth="180px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtDesignPressure" Label="<%$ Resources:Lan,DesignPressure %>" runat="server"
LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtTestPressure" Label="<%$ Resources:Lan,TestPressure %>" runat="server"
LabelWidth="160px">
</f:TextBox>
<f:DropDownList ID="drpIfPickling" Label="<%$ Resources:Lan,IsPickling %>" runat="server"
EnableEdit="true" LabelWidth="180px">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtExecStandard" Label="执行标准" runat="server"
LabelWidth="140px">
</f:TextBox>
<f:DropDownList ID="drpDetectionRate" Label="<%$ Resources:Lan,NDTPercentage %>" runat="server"
EnableEdit="true" LabelWidth="160px" ShowRedStar="true" Required="true">
</f:DropDownList>
<f:DropDownList ID="drpQueClass" Label="合格等级" runat="server" LabelWidth="180px" >
<f:ListItem Text="" Value="0"/>
<f:ListItem Text="" Value=""/>
<f:ListItem Text="Ⅱ" Value="Ⅱ"/>
<f:ListItem Text="Ⅲ" Value="Ⅲ"/>
<f:ListItem Text="Ⅳ" Value="Ⅳ"/>
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRemark" Label="<%$ Resources:Lan,Remark %>" runat="server" LabelWidth="140px" >
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管线探伤类型明细" EnableCollapse="true"
runat="server" BoxFlex="1" EnableColumnLines="true" DataKeyNames="PipelineDetectionTypeId"
AllowCellEditing="true" ClicksToEdit="2" DataIDField="PipelineDetectionTypeId"
AllowSorting="true" SortField="WeldTypeId" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:Button ID="btnNew" ToolTip="<%$ Resources:Lan,Add %>" Icon="Add" EnablePostBack="true"
runat="server" OnClick="btnNew_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="<%$ Resources:Lan,SerialNumber %>"
Width="60px" HeaderTextAlign="Center" TextAlign="Center" />
<f:RenderField Width="100px" ColumnID="WeldTypeCode" DataField="WeldTypeCode" FieldType="String"
HeaderText="<%$ Resources:Lan,WeldingJointType %>" HeaderTextAlign="Center" TextAlign="Left"
SortField="WeldTypeCode" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="DetectionTypeName" DataField="DetectionTypeName"
FieldType="String" HeaderText="<%$ Resources:Lan,NDEType %>" HeaderTextAlign="Center"
TextAlign="Left" SortField="DetectionTypeName">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="DetectionRate" DataField="DetectionRate" FieldType="String"
HeaderText="<%$ Resources:Lan,NDTPercentage %>" HeaderTextAlign="Center" TextAlign="Left"
SortField="DetectionRate">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="MinDia" DataField="MinDia" FieldType="String"
HeaderText="<%$ Resources:Lan,SizeMin %>" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="MaxDia" DataField="MaxDia" FieldType="String"
HeaderText="<%$ Resources:Lan,SizeMax %>" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="MinThickness" DataField="MinThickness" FieldType="String"
HeaderText="<%$ Resources:Lan,WallThicknessMin %>" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="MaxThickness" DataField="MaxThickness" FieldType="String"
HeaderText="<%$ Resources:Lan,WallThicknessMax %>" HeaderTextAlign="Center" TextAlign="Left">
</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="<%$ Resources:Lan,NumberOfRecordsPerPage %>">
</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="<%$ Resources:Lan,PopForm %>" Hidden="true" EnableIFrame="true"
EnableMaximize="true" Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close"
IsModal="true" Width="800px" Height="360px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="BulletEdit" EnablePostBack="true"
runat="server" Text="<%$ Resources:Lan,Edit %>">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
Icon="Delete" ConfirmText="<%$ Resources:Lan,DeleteReminder %>" ConfirmTarget="Top"
runat="server" Text="<%$ Resources:Lan,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;
}
function reloadGrid() {
__doPostBack(null, 'reloadGrid');
}
</script>
</body>
</html>