⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 librarycardform.aspx

📁 图书租借管理系统源码 主要功能模块有: 系统首页 图书管理 读者管理 借阅管理 查询管理 系统管理 图书类别设置 出版公司设置 馆藏图书管理 会
💻 ASPX
字号:
<%--文件名:LibraryCardForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="LibraryCardForm.aspx.cs" Inherits="ReaderManage_LibraryCardForm" 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">
                &nbsp;请输入需要查询办证读者的姓名:<asp:TextBox ID="TextBox1" runat="server" Width="106px">%%</asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="查询" Width="70px" />
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="新增" Width="70px" />
                <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="修改" Width="70px" /></td>
        </tr>
        <tr>
            <td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 27px;
                background-color: palegoldenrod">
                &nbsp;借书证编号:<asp:TextBox ID="TextBox2" runat="server" Width="95px">XGHDA</asp:TextBox>
                读者姓名:<asp:TextBox ID="TextBox3" runat="server" Width="34px">0</asp:TextBox>
                读者性别:<asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem>男</asp:ListItem>
                    <asp:ListItem>女</asp:ListItem>
                </asp:DropDownList>
                出生日期:<asp:TextBox ID="TextBox5" runat="server" Width="60px">1972-8-15</asp:TextBox><br />
                &nbsp;证件名称:<asp:TextBox ID="TextBox6" runat="server" Width="73px">居民身份证</asp:TextBox>
                证件号码:<asp:TextBox ID="TextBox7" runat="server" Width="146px">510221197208152316</asp:TextBox>
                会员等级:<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource2"
                    DataTextField="会员名称" DataValueField="会员名称" Width="100px">
                </asp:DropDownList><br />
                &nbsp;办证日期:<asp:TextBox ID="TextBox9" runat="server" Width="96px">2007-1-1</asp:TextBox>
                联系电话:<asp:TextBox ID="TextBox10" runat="server" Width="109px">023-40405690</asp:TextBox>
                手机号码:<asp:TextBox ID="TextBox11" runat="server" Width="108px">13036371686</asp:TextBox><br />
                &nbsp;电子邮件:<asp:TextBox ID="TextBox12" runat="server" Width="168px">binluobin@163.com</asp:TextBox>补充说明:<asp:TextBox
                    ID="TextBox13" runat="server" Width="230px">暂无</asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 2232px; height: 100px; background-color: gainsboro">
                <asp:Panel ID="Panel1" runat="server" Height="200px" ScrollBars="Auto" Width="553px">
                    <asp:SqlDataSource ID="SqlDataSource1" 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="DropDownList1" Name="读者性别" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="出生日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox6" Name="证件名称" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox7" Name="证件号码" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList2" Name="会员等级" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="办证日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox10" Name="联系电话" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox11" Name="手机号码" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox12" Name="电子邮件" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox13" Name="补充说明" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox2" Name="读者编号" PropertyName="Text" Type="String" />
                        </UpdateParameters>
                        <SelectParameters>
                            <asp:ControlParameter ControlID="TextBox1" Name="读者姓名" PropertyName="Text" Type="String" />
                        </SelectParameters>
                        <InsertParameters>
                            <asp:ControlParameter ControlID="TextBox2" Name="读者编号" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox3" Name="读者姓名" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList1" Name="读者性别" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="出生日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox6" Name="证件名称" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox7" Name="证件号码" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList2" Name="会员等级" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="办证日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox10" Name="联系电话" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox11" Name="手机号码" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox12" Name="电子邮件" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox13" Name="补充说明" PropertyName="Text" Type="String" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyBooksDBConnectionString %>"
                        SelectCommand="SELECT DISTINCT * FROM [会员等级]"></asp:SqlDataSource>
                    <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"
                        OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                        Width="1500px">
                        <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="证件号码" />
                            <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:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -