📄 browseprice.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BrowsePrice.aspx.cs" Inherits="BrowsePrice" Debug="true"%>
<!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">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 765px; height: 130px;">
<tr>
<td style="width: 90px; height: 24px">
<asp:Label ID="lblVersion" runat="server" Font-Names="宋体" Font-Size="Small" Text="价格名称"
Width="65px" Height="16px"></asp:Label></td>
<td style="width: 145px; height: 24px">
<asp:TextBox ID="txtVersion" runat="server" Enabled="False" Height="15px" Width="125px"></asp:TextBox></td>
<td style="width: 130px; height: 24px">
<asp:RequiredFieldValidator ID="vdtReqPriceName" runat="server" ControlToValidate="txtVersion"
ErrorMessage="价格名称不能为空" Font-Names="宋体" Font-Size="Small"></asp:RequiredFieldValidator></td>
<td style="width: 90px; height: 24px">
<asp:Label ID="Label3" runat="server" Font-Names="宋体" Font-Size="Small" Text="上浮比例" Height="16px" Width="68px"></asp:Label></td>
<td style="width: 130px; height: 24px">
<asp:TextBox ID="txtPrcUpper" runat="server" Enabled="False" Height="15px" Width="90px"></asp:TextBox></td>
<td style="width: 130px; height: 24px">
<asp:RangeValidator ID="vdtRgePrcUpper" runat="server" ControlToValidate="txtPrcUpper"
ErrorMessage="上浮比例设置错误" Font-Names="宋体" Font-Size="Small" MaximumValue="5" MinimumValue="0.5"
Type="Double"></asp:RangeValidator></td>
</tr>
<tr>
<td style="width: 90px; height: 24px">
<asp:Label ID="lblLevel" runat="server" Font-Names="宋体" Font-Size="Small" Text="价格因子层次"
Width="84px" Height="16px"></asp:Label></td>
<td style="width: 145px; height: 24px">
<asp:DropDownList ID="ddlPriceLevel" runat="server" DataTextField="级别名称" DataValueField="级别层次"
Enabled="False" Width="75px">
</asp:DropDownList></td>
<td style="width: 130px; height: 24px">
</td>
<td style="width: 90px; height: 24px">
<asp:Label ID="Label4" runat="server" Font-Names="宋体" Font-Size="Small" Height="16px"
Text="下浮比例" Width="68px"></asp:Label></td>
<td style="width: 130px; height: 24px">
<asp:TextBox ID="txtPrcLower" runat="server" Enabled="False" Height="15px" Width="90px"></asp:TextBox></td>
<td style="width: 130px; height: 24px">
<asp:RangeValidator ID="vdtRgeImpLower" runat="server" ControlToValidate="txtPrcLower"
ErrorMessage="下浮比例设置错误" Font-Names="宋体" Font-Size="Small" MaximumValue="5" MinimumValue="0.5"
Type="Double"></asp:RangeValidator>
<asp:CompareValidator ID="vdtCmpFloat" runat="server" ControlToCompare="txtPrcUpper"
ControlToValidate="txtPrcLower" ErrorMessage="上下浮比例设置错误" Font-Names="宋体" Font-Size="Small"
Operator="LessThan"></asp:CompareValidator></td>
</tr>
<tr>
<td style="width: 90px; height: 24px">
<asp:Label ID="lblStatus" runat="server" Font-Names="宋体" Font-Size="Small" Text="价格状态"
Width="60px" Height="16px"></asp:Label></td>
<td style="width: 145px; height: 24px">
<asp:TextBox ID="txtStatus" runat="server" Enabled="False" Height="15px" Width="80px"></asp:TextBox></td>
<td style="width: 130px; height: 24px">
</td>
<td style="width: 90px; height: 24px">
<asp:Label ID="lblRemark" runat="server" Font-Names="宋体" Font-Size="Small" Text="备注" Height="16px"></asp:Label></td>
<td rowspan="3" style="width: 130px" valign="top">
<asp:TextBox ID="txtRemark" runat="server" Enabled="False" Height="110px" TextMode="MultiLine"
Width="130px"></asp:TextBox></td>
<td style="width: 130px; height: 24px;" valign="top">
</td>
</tr>
<tr>
<td style="width: 90px; height: 24px">
<asp:Label ID="lblUpper" runat="server" Font-Names="宋体" Font-Size="Small" Text="导入上限" Height="16px" Width="80px"></asp:Label></td>
<td style="width: 145px; height: 24px">
<asp:TextBox ID="txtImpUpper" runat="server" Width="90px" Height="15px" Enabled="False"></asp:TextBox></td>
<td style="width: 130px; height: 24px">
<asp:RangeValidator ID="vdtRgeImpUpper" runat="server" ControlToValidate="txtImpUpper"
ErrorMessage="导入上限设置错误" Font-Names="宋体" Font-Size="Small" MaximumValue="5" MinimumValue="0.5"
Type="Double"></asp:RangeValidator></td>
<td style="width: 90px; height: 24px">
</td>
<td style="width: 130px; height: 24px;" valign="top">
</td>
</tr>
<tr>
<td style="width: 90px; height: 24px">
<asp:Label ID="lblLower" runat="server" Font-Names="宋体" Font-Size="Small" Text="导入下限" Height="16px" Width="80px"></asp:Label></td>
<td style="width: 145px; height: 24px">
<asp:TextBox ID="txtImpLower" runat="server" Width="90px" Height="15px" Enabled="False"></asp:TextBox></td>
<td style="width: 130px; height: 24px">
<asp:RangeValidator ID="vdtRgeLower" runat="server" ControlToValidate="txtImpLower"
ErrorMessage="导入下限设置错误" Font-Names="宋体" Font-Size="Small" MaximumValue="5" MinimumValue="0.5"
Type="Double"></asp:RangeValidator>
<asp:CompareValidator ID="vdtCmpImport" runat="server" ControlToCompare="txtImpUpper"
ControlToValidate="txtImpLower" ErrorMessage="导入上下限设置错误" Font-Names="宋体" Font-Size="Small"
Operator="LessThan"></asp:CompareValidator></td>
<td style="width: 90px; height: 24px">
</td>
<td style="width: 130px; height: 24px;" valign="top">
<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="确认保存" Visible="False" />
<asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" Text="修改信息" /></td>
</tr>
</table>
</div>
<hr style="width: 767px" />
<table style="width: 765px; height: 30px">
<tr>
<td style="width: 61px; height: 22px">
</td>
<td style="width: 80px; height: 22px">
<asp:Label ID="lblQuery" runat="server" Font-Names="宋体" Font-Size="Small" Text="查询对象"></asp:Label></td>
<td style="width: 100px; height: 22px">
<asp:Label ID="Label1" runat="server" Font-Names="宋体" Font-Size="Small" Text="零件编号"></asp:Label></td>
<td style="width: 154px; height: 22px">
<asp:TextBox ID="txtPartNum" runat="server" Height="15px" Width="125px"></asp:TextBox></td>
<td style="width: 73px; height: 22px">
<asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" /></td>
<td style="width: 175px; height: 22px">
<asp:CheckBox ID="ckbBlur" runat="server" Font-Names="黑体" Font-Size="Small" Text="模糊匹配"
Width="75px" /></td>
</tr>
<tr>
<td style="width: 61px; height: 22px">
</td>
<td style="width: 80px; height: 22px">
</td>
<td style="width: 100px; height: 22px">
<asp:Label ID="Label2" runat="server" Font-Names="宋体" Font-Size="Small" Text="查询范围"></asp:Label></td>
<td style="width: 154px; height: 22px">
<asp:DropDownList ID="ddlQRange" runat="server">
<asp:ListItem Value="-1">全部</asp:ListItem>
<asp:ListItem Value="0">已匹配上</asp:ListItem>
<asp:ListItem Value="1">未匹配上</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 73px; height: 22px">
</td>
<td style="width: 175px; height: 22px">
</td>
</tr>
</table>
<asp:GridView ID="gvPrice" runat="server" AutoGenerateColumns="False" CellPadding="4"
ForeColor="#333333" GridLines="None" Height="40px" Width="765px" EmptyDataText="无查询结果" Font-Names="Arial" Font-Size="Small" ShowFooter="True" AllowPaging="True" OnPageIndexChanging="gvPrice_PageIndexChanging" OnRowDataBound="gvPrice_RowDataBound">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField HeaderText="零件编号" DataField="零件编号" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField HeaderText="单价" DataField="单价" >
<ItemStyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:BoundField DataField="MakeName" HeaderText="所属厂牌">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField HeaderText="所属车型" DataField="ModelName" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="备注" HeaderText="备注">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="导入标记" Visible="False" />
</Columns>
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" Font-Names="Arial" Font-Size="Small" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" Font-Names="Arial" Font-Size="Small" />
<EmptyDataRowStyle Font-Names="Arial" Font-Size="Small" />
<PagerTemplate>
当前页:<asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
总页数:<asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>">总页数:</asp:Label>
<asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>
<asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>
<asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>
<asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>
<asp:textbox id="txtNewPageIndex" runat="server" width="24px" text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' Height="11px" />
<asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" />
</PagerTemplate>
</asp:GridView>
<asp:HiddenField ID="hidVersion" runat="server" />
<asp:HiddenField ID="hidTableName" runat="server" />
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -