📄 advancesearch.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdvanceSearch.aspx.cs" Inherits="Desktop_AdvanceSearch" %>
<!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>
<link href="../Css/BaseCss.css" type="text/css" rel="stylesheet" />
</head>
<body style="margin-left:0;margin-top:0">
<form id="MyForm" method="post" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE: collapse;" width="100%">
<tr style="height: 30px;">
<td class="Text" style="background-color: #6666ff; width: 3%; height: 30px;"><font color="#006699" size="3"><img alt="" src="../../Images/moduleheaher.gif" width="16" height="16"></font></td>
<td class="Text" style="background-color: #6666ff; height: 30px;"><b>商品高级搜索</b></td>
</tr>
</table>
<table class="Text" bordercolor="#006699" style="border-collapse:collapse;border-color:ActiveCaption;border-width:1" width="100%" border="1">
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
商品名称:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="Name" runat="server" Width="400px" CssClass="InputCss"></asp:textbox>
<asp:RequiredFieldValidator id="rfN" runat="server" ErrorMessage="不能为空!" ControlToValidate="Name" CssClass="Text"></asp:RequiredFieldValidator></td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
生产厂家:</td>
<td align="left" style="height: 30px;">
<asp:textbox id="Sell" runat="server" Width="400px" CssClass="InputCss"></asp:textbox>
</td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
进货日期:</td>
<td align="left" style="height: 30px;">
介于<asp:TextBox ID="MinDate" runat="server" CssClass="InputCss" Width="150px"></asp:TextBox>
<asp:RegularExpressionValidator ID="reMD" runat="server" ControlToValidate="MinDate"
CssClass="Text" Display="Dynamic" ErrorMessage="格式不正确!" ValidationExpression="\d{4}-(\d){1,2}-(\d){1,2}( \d{1,2}:\d{1,2}:\d{1,2}){0,1}"></asp:RegularExpressionValidator>和
<asp:TextBox ID="MaxDate" runat="server" CssClass="InputCss" Width="150px"></asp:TextBox>
<asp:RegularExpressionValidator ID="reMAD" runat="server" ControlToValidate="MaxDate"
CssClass="Text" Display="Dynamic" ErrorMessage="格式不正确!" ValidationExpression="\d{4}-(\d){1,2}-(\d){1,2}( \d{1,2}:\d{1,2}:\d{1,2}){0,1}"></asp:RegularExpressionValidator>之间
</td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;">
商品价格:</td>
<td align="left" style="height: 30px;">
介于<asp:TextBox ID="MinPrice" runat="server" CssClass="InputCss" Width="150px"></asp:TextBox>
<asp:RegularExpressionValidator ID="reMP" runat="server" ControlToValidate="MinPrice"
CssClass="Text" Display="Dynamic" ErrorMessage="格式不正确!" ValidationExpression="\d+(.\d+){0,1}"></asp:RegularExpressionValidator>和
<asp:TextBox ID="MaxPrice" runat="server" CssClass="InputCss" Width="150px"></asp:TextBox>
<asp:RegularExpressionValidator ID="reIP" runat="server" ControlToValidate="MaxPrice"
CssClass="Text" ErrorMessage="格式不正确!" ValidationExpression="\d+(.\d+){0,1}"></asp:RegularExpressionValidator>之间</td>
</tr>
<tr style="height:30px;">
<td align="right" style="width:150px;height:30px;"></td>
<td align="left" style="height: 30px;"><asp:button id="CommitBtn" runat="server" Width="150px" CssClass="ButtonCss" Text="搜索商品" OnClick="CommitBtn_Click"></asp:button></td>
</tr>
<tr style="width:150px;">
<td style="width:100%;" colspan="2">
<asp:GridView ID="ProductView" runat="server" AutoGenerateColumns="False" CssClass="Text"
Width="100%" DataKeyNames="ProductID" HorizontalAlign="Left" >
<FooterStyle ForeColor="White" BackColor="#3B6BD1" Font-Bold="True"></FooterStyle>
<SelectedRowStyle Font-Bold="True" ForeColor="Navy" BackColor="#FFCC66" BorderColor="CornflowerBlue" />
<RowStyle ForeColor="#333333" BackColor="#FFFBD6" BorderColor="CornflowerBlue" BorderStyle="Solid" BorderWidth="1px" />
<Columns>
<asp:TemplateField HeaderText="商品名称">
<ItemTemplate>
<a href='../Admin/Product/ProductInfo.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem,"ProductID") %>' target="_blank"><%# DataBinder.Eval(Container.DataItem,"Name") %></a></ItemTemplate>
<ItemStyle Width="20%" BorderWidth="1px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="供应商">
<ItemTemplate><%# DataBinder.Eval(Container.DataItem,"Sell") %></ItemTemplate>
<ItemStyle Width="15%" BorderWidth="1px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="生产日期">
<ItemTemplate><%# DataBinder.Eval(Container.DataItem,"CreateDate","{0:d}") %></ItemTemplate>
<ItemStyle Width="10%" BorderWidth="1px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="商品单位">
<ItemTemplate><%# DataBinder.Eval(Container.DataItem,"Unit") %></ItemTemplate>
<ItemStyle Width="10%" BorderWidth="1px" HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:TemplateField HeaderText="进货数量">
<ItemTemplate><%# DataBinder.Eval(Container.DataItem,"Quantity") %></ItemTemplate>
<ItemStyle Width="10%" BorderWidth="1px" HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:TemplateField HeaderText="进货价格">
<ItemTemplate><%# DataBinder.Eval(Container.DataItem,"InPrice") %></ItemTemplate>
<ItemStyle Width="10%" BorderWidth="1px" HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:TemplateField HeaderText="销售价格">
<ItemTemplate><%# DataBinder.Eval(Container.DataItem,"OutPrice") %></ItemTemplate>
<ItemStyle Width="10%" BorderWidth="1px" HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:TemplateField HeaderText="操作">
<ItemTemplate><a href='../Admin/Product/CommentManage.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem,"ProductID") %>' target="_blank">查看评论</a></ItemTemplate>
<ItemStyle Width="15%" BorderWidth="1px" HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
<HeaderStyle HorizontalAlign="Left" BackColor="#3B6BD1" CssClass="Text" Font-Bold="True" ForeColor="#FFFFCC" />
</asp:GridView>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -