📄 sell_search.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sell_Search.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="CustomControlFreak" Namespace="CustomControlFreak" TagPrefix="cc1" %>
<!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 style="border-top-style: none; border-right-style: none; border-left-style: none; text-align: center; border-bottom-style: none">
<asp:Label ID="Label2" runat="server" Style="font-size: smaller; color: #990000"></asp:Label><br />
<br />
<table width= "75%" border="1" style="border-collapse: collapse; border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; border-bottom: 0px solid; text-align: center;">
<tr>
<td style="width: 100px; height: 26px; border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; border-bottom: 0px solid; text-align: left;">
<asp:CheckBox ID="CheckBox1" runat="server" Text="供应商" Width="70" OnCheckedChanged="CheckBox1_CheckedChanged" AutoPostBack="True" Font-Size="Small" />
</td>
<td style="border-right: 0px solid; border-top: 0px solid; border-left: 0px solid;
width: 170px; border-bottom: 0px solid; text-align: left;">
<asp:TextBox ID="CompanyID" runat="server" Width="100px" Enabled="False"></asp:TextBox></td>
<td style="border-right: 0px solid; border-top: 0px solid; border-left: 0px solid;
width: 100px; border-bottom: 0px solid; text-align: left;" width="*%">
<asp:CheckBox ID="CheckBox2" runat="server" Text="商品名称" OnCheckedChanged="CheckBox2_CheckedChanged" AutoPostBack="True" Font-Size="Small" /></td>
<td width= "*%" style="width: 223px; border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; border-bottom: 0px solid; text-align: left;" >
<asp:TextBox ID="CommodityName" runat="server" Enabled="False" Width="200px" style="text-align: left"></asp:TextBox></td>
<td style="height: 26px; border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; width: 62px; border-bottom: 0px solid; text-align: right;">
<asp:Button ID="GridView_ebtn" runat="server" Text="查询" OnClick="GridView_ebtn_Click1" /></td>
</tr>
<tr>
<td style="height: 26px; border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; border-bottom: 0px solid; text-align: left;">
<asp:CheckBox ID="CheckBox" runat="server" Text="客 户 " Width="70" OnCheckedChanged="CheckBox_CheckedChanged" AutoPostBack="True" Font-Size="Small" />
</td>
<td style="border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; border-bottom: 0px solid; text-align: left; width: 170px;">
<asp:TextBox ID="Customer" runat="server" Width="100px" Enabled="False"></asp:TextBox></td>
<td style="border-right: 0px solid; border-top: 0px solid; vertical-align: middle;
border-left: 0px solid; border-bottom: 0px solid;
text-align: left; width: 110px;">
<asp:CheckBox ID="CheckBox8" runat="server" Text="起止日期" AutoPostBack="True" Font-Size="Small" CausesValidation="True"/>
</td>
<td style="height: 26px; border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; border-bottom: 0px solid; text-align: left; width: 223px;">
<cc1:DaintyDate ID="DaintyDate3" runat="server" Width="49px" CalendarType="JustTextBox" />
至<cc1:DaintyDate ID="DaintyDate4" runat="server" Width="27px" CalendarType="JustTextBox" />
</td>
<td style="height: 26px; border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; width: 62px; border-bottom: 0px solid; text-align: right;">
<asp:Button ID="GridView_cbtn" runat="server" Text="返回" OnClick="GridView_cbtn_Click" /></td>
</tr>
<tr>
<td colspan="5" style="border-top-style: none; border-right-style: none; border-left-style: none;
height: 307px; border-bottom-style: none; vertical-align: top; text-align: center;">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnPageIndexChanging="GridView1_PageIndexChanging" AutoGenerateColumns="False" DataKeyNames="id" OnSelectedIndexChanging="GridView1_SelectedIndexChanging" Width="670px" style="font-size: smaller;" Font-Size="12pt">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#003399" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="CommodityName" HeaderText="商品名称" SortExpression="CommodityName" />
<asp:BoundField DataField="CompanyName" HeaderText="供应商" SortExpression="CompanyName" />
<asp:BoundField DataField="kehu" HeaderText="客户名称" SortExpression="kehu" />
<asp:BoundField DataField="Number" HeaderText="数量" SortExpression="Number" />
<asp:BoundField DataField="StockDate" HeaderText="日期" SortExpression="StockDate" DataFormatString="{0:d}" HtmlEncode=False/>
<asp:CommandField HeaderText="详细信息" SelectText="详细信息" ShowSelectButton="True" />
<asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id"
Visible="False" />
</Columns>
</asp:GridView>
</td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:db_sellConnectionString %>"
SelectCommand="SELECT [CommodityName], [CompanyName], [Number], [StockDate], [kehu], [id] FROM [SQ]">
</asp:SqlDataSource>
<asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label> <br />
<br />
</div>
<script type="text/javascript">
var textDaintyDate3 = document.getElementById("txtDaintyDate3");
var textDaintyDate4 = document.getElementById("txtDaintyDate4");
textDaintyDate3.style.width = "75px";
textDaintyDate4.style.width = "75px";
</script>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -