📄 readerlostform.aspx
字号:
<%--文件名:ReaderLostForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ReaderLostForm.aspx.cs" Inherits="ReaderManage_ReaderLostForm" 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: 2232px; font-family: 宋体; height: 16px;
background-color: darkturquoise">
请输入需要挂失借书证读者的姓名:<asp:TextBox ID="TextBox1" runat="server" Width="252px">%%</asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="查询" Width="66px" />
</td>
</tr>
<tr>
<td style="width: 2232px; height: 70px; background-color: gainsboro">
<asp:Panel ID="Panel1" runat="server" Height="200px" ScrollBars="Auto" Width="553px">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="读者编号"
DataSourceID="SqlDataSource1" Font-Names="宋体" Font-Size="Small" GridLines="Vertical"
Width="1200px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<Columns>
<asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" />
<asp:BoundField DataField="读者编号" HeaderText="读者编号" ReadOnly="True" SortExpression="读者编号" />
<asp:BoundField DataField="读者姓名" HeaderText="读者姓名" SortExpression="读者姓名" />
<asp:BoundField DataField="读者性别" HeaderText="读者性别" SortExpression="读者性别" />
<asp:BoundField DataField="出生日期" HeaderText="出生日期" SortExpression="出生日期" />
<asp:BoundField DataField="证件名称" HeaderText="证件名称" SortExpression="证件名称" />
<asp:BoundField DataField="证件号码" HeaderText="证件号码" SortExpression="证件号码" />
<asp:BoundField DataField="会员等级" HeaderText="会员等级" SortExpression="会员等级" />
<asp:BoundField DataField="办证日期" HeaderText="办证日期" SortExpression="办证日期" />
<asp:BoundField DataField="联系电话" HeaderText="联系电话" SortExpression="联系电话" />
<asp:BoundField DataField="手机号码" HeaderText="手机号码" SortExpression="手机号码" />
<asp:BoundField DataField="电子邮件" HeaderText="电子邮件" SortExpression="电子邮件" />
<asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" />
</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="#DCDCDC" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyBooksDBConnectionString %>"
SelectCommand="SELECT * FROM [有效读者视图] WHERE ([读者姓名] LIKE '%' + @读者姓名 + '%')">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="读者姓名" PropertyName="Text" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Panel>
</td>
</tr>
<tr>
<td style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 16px; background-color: lightgreen">
读者编号:<asp:TextBox ID="TextBox2" runat="server" BackColor="#E0E0E0" ReadOnly="True"
Width="110px"></asp:TextBox>
读者姓名:<asp:TextBox ID="TextBox3" runat="server" BackColor="#E0E0E0" ReadOnly="True"
Width="93px"></asp:TextBox>
证件名称:<asp:TextBox ID="TextBox4" runat="server" BackColor="#E0E0E0" ReadOnly="True"
Width="110px"></asp:TextBox><br />
证件号码:<asp:TextBox ID="TextBox5" runat="server" BackColor="#E0E0E0" ReadOnly="True"
Width="122px"></asp:TextBox>
挂失日期:
<asp:TextBox ID="TextBox6" runat="server" Width="64px">2007-1-1</asp:TextBox>
补充说明:<asp:TextBox ID="TextBox7" runat="server" Width="120px">暂无</asp:TextBox><br />
请输入已经挂失借书证读者的姓名:<asp:TextBox ID="TextBox8" runat="server" Width="107px">%%</asp:TextBox>
<asp:Button ID="Button2" runat="server" Text="查询" Width="66px" />
<asp:Button ID="Button3" runat="server" Text="挂失" Width="66px" OnClick="Button3_Click" />
<asp:Button ID="Button4" runat="server" Text="修改" Width="66px" OnClick="Button4_Click" />
</td>
</tr>
<tr>
<td style="width: 2232px; height: 100px; background-color: gainsboro">
<asp:Panel ID="Panel2" runat="server" Height="200px" ScrollBars="Auto" Width="553px">
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="读者编号"
DataSourceID="SqlDataSource2" Font-Names="宋体" Font-Size="Small" GridLines="Vertical"
OnRowCreated="GridView2_RowCreated" OnSelectedIndexChanged="GridView2_SelectedIndexChanged" Width="800px">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<Columns>
<asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" />
<asp:TemplateField HeaderText="删除" ShowHeader="False">
<ItemTemplate>
<asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete"
Text="删除" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="读者编号" HeaderText="读者编号" ReadOnly="True" SortExpression="读者编号" />
<asp:BoundField DataField="读者姓名" HeaderText="读者姓名" SortExpression="读者姓名" />
<asp:BoundField DataField="证件名称" HeaderText="证件名称" SortExpression="证件名称" />
<asp:BoundField DataField="证件号码" HeaderText="证件号码" SortExpression="证件号码" />
<asp:BoundField DataField="挂失日期" HeaderText="挂失日期" SortExpression="挂失日期" />
<asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" />
</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="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyBooksDBConnectionString %>"
DeleteCommand="DELETE FROM [读者挂失] WHERE [读者编号] = @读者编号"
InsertCommand="INSERT INTO [读者挂失] ([读者编号], [读者姓名], [证件名称], [证件号码], [挂失日期], [补充说明]) VALUES (@读者编号, @读者姓名, @证件名称, @证件号码, @挂失日期, @补充说明)"
SelectCommand="SELECT * FROM [读者挂失] WHERE ([读者姓名] LIKE '%' + @读者姓名 + '%')" UpdateCommand="UPDATE [读者挂失] SET [读者姓名] = @读者姓名, [证件名称] = @证件名称, [证件号码] = @证件号码, [挂失日期] = @挂失日期, [补充说明] = @补充说明 WHERE [读者编号] = @读者编号">
<DeleteParameters>
<asp:Parameter Name="读者编号" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:ControlParameter ControlID="TextBox3" Name="读者姓名" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox4" Name="证件名称" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox5" Name="证件号码" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox6" Name="挂失日期" PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="TextBox7" Name="补充说明" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox2" Name="读者编号" PropertyName="Text" Type="String" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="TextBox8" Name="读者姓名" PropertyName="Text" Type="String" />
</SelectParameters>
<InsertParameters>
<asp:ControlParameter ControlID="TextBox2" Name="读者编号" PropertyName="Text" />
<asp:ControlParameter ControlID="TextBox3" Name="读者姓名" PropertyName="Text" />
<asp:ControlParameter ControlID="TextBox4" Name="证件名称" PropertyName="Text" />
<asp:ControlParameter ControlID="TextBox5" Name="证件号码" PropertyName="Text" />
<asp:ControlParameter ControlID="TextBox6" Name="挂失日期" PropertyName="Text" />
<asp:ControlParameter ControlID="TextBox7" Name="补充说明" PropertyName="Text" />
</InsertParameters>
</asp:SqlDataSource>
</asp:Panel>
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -