📄 bookborrowform.aspx
字号:
<%--文件名:BookBorrowForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="BookBorrowForm.aspx.cs" Inherits="BorrowManage_BookBorrowForm" Title="当前位置:借阅管理->图书出借管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 556px; height: 161px">
<tr>
<td align="left" style="font-size: 0.8em; width: 2180px; font-family: 宋体; height: 16px;
background-color: darkseagreen">
请输入借书证中的读者编号:<asp:TextBox ID="TextBox1" runat="server" Width="120px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="新增借书清单" Width="118px" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" Text="保存借书清单" Width="118px" OnClick="Button2_Click" /></td>
</tr>
<tr>
<td align="center" style="font-size: 0.8em; width: 2180px; font-family: 宋体; height: 16px;
background-color: darkturquoise">
读者姓名:<asp:TextBox ID="TextBox2" runat="server" BackColor="#E0E0E0" ReadOnly="True"
Width="48px"></asp:TextBox>
会员等级:<asp:TextBox ID="TextBox3" runat="server" BackColor="#E0E0E0" ReadOnly="True"
Width="66px"></asp:TextBox>
借出日期:<asp:TextBox ID="TextBox4" runat="server" Width="62px">2007-5-1</asp:TextBox>
应还日期:<asp:TextBox ID="TextBox5" runat="server" Width="66px">2007-5-31</asp:TextBox></td>
</tr>
<tr>
<td style="width: 2180px; height: 101px; background-color: cadetblue">
<asp:Panel ID="Panel1" runat="server" Height="150px" ScrollBars="Auto" Width="555px">
<asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#999999"
BorderStyle="None" BorderWidth="1px" CellPadding="3" Font-Names="宋体" Font-Size="Small"
GridLines="Vertical" Width="840px">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<RowStyle BackColor="#EEEEEE" ForeColor="Black" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
<AlternatingRowStyle BackColor="Gainsboro" />
</asp:GridView>
</asp:Panel>
</td>
</tr>
<tr>
<td style="font-size: 10pt; width: 2180px; height: 15px; background-color: gainsboro">
书名:<asp:TextBox ID="TextBox6" runat="server" Width="91px">%%</asp:TextBox>
作者:<asp:TextBox ID="TextBox7" runat="server" Width="48px">%%</asp:TextBox> 出版公司(社):<asp:TextBox
ID="TextBox8" runat="server" Width="70px">%%</asp:TextBox>
<asp:Button ID="Button3" runat="server" Text="查询" Width="68px" />
<asp:Button ID="Button4" runat="server" Text="新增" Width="68px" OnClick="Button4_Click" /></td>
</tr>
<tr>
<td style="width: 2180px; height: 50px; background-color: lightsteelblue">
<asp:Panel ID="Panel2" runat="server" Height="150px" ScrollBars="Auto" Width="555px">
<asp:GridView ID="GridView2" runat="server" BackColor="White" BorderColor="#999999"
BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1"
Font-Names="宋体" Font-Size="Small" GridLines="Vertical" Width="2500px">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<Columns>
<asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" />
</Columns>
<RowStyle BackColor="#EEEEEE" ForeColor="Black" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
<AlternatingRowStyle BackColor="Gainsboro" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyBooksDBConnectionString %>"
SelectCommand="SELECT * FROM [馆藏图书] WHERE (([图书书名] LIKE '%' + @图书书名 + '%') AND ([图书作者] LIKE '%' + @图书作者 + '%') AND ([出版公司] LIKE '%' + @出版公司 + '%') AND (库存数量>0))">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox6" Name="图书书名" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox7" Name="图书作者" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox8" Name="出版公司" PropertyName="Text" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Panel>
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -