📄 readerclassform.aspx
字号:
<%--文件名:ReaderClassForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ReaderClassForm.aspx.cs" Inherits="ReaderManage_ReaderClassForm" 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="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">
会员级别名称:<asp:TextBox ID="TextBox2" runat="server" Width="63px">X</asp:TextBox>
允许最多出借图书天数:<asp:TextBox ID="TextBox3" runat="server" Width="34px">0</asp:TextBox>
允许最多出借图书册数:<asp:TextBox ID="TextBox4" runat="server" Width="33px">0</asp:TextBox><br />
会费金额:<asp:TextBox ID="TextBox5" runat="server" Width="33px">0</asp:TextBox>
补充说明:<asp:TextBox ID="TextBox6" runat="server" Width="357px">暂无</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="Int32" />
<asp:ControlParameter ControlID="TextBox4" Name="出借册数" PropertyName="Text" Type="Int32" />
<asp:ControlParameter ControlID="TextBox5" Name="会费金额" PropertyName="Text" Type="Double" />
<asp:ControlParameter ControlID="TextBox6" 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="Int32" />
<asp:ControlParameter ControlID="TextBox4" Name="出借册数" PropertyName="Text" Type="Int32" />
<asp:ControlParameter ControlID="TextBox5" Name="会费金额" PropertyName="Text" Type="Double" />
<asp:ControlParameter ControlID="TextBox6" Name="补充说明" PropertyName="Text" Type="String" />
</InsertParameters>
</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"
Height="1px" OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
Width="538px">
<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="补充说明" />
</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 + -