📄 bookinfo.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Bookinfo.aspx.cs" Inherits="ZDWH_Bookinfo" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%--<!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">
<style id="Style1" type="text/css" runat="server">
input
{
<%--font-size: 12px;
background-color:#E9F0F8 ;
border-top-width:1px;
BORDER-RIGHT: #D8D8D8 1px solid;
BORDER-BOTTOM: #D8D8D8 1px solid;
border-left-width: 1px;
font-family:宋体;
color:#000000;--%>
width:80;
}
</style>
<title>图书信息</title>
<link href="../TSLS/page.css" type="text/css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<div>
<strong>图书信息增加</strong>
<input id="clear" runat="server" class="input_button" type="reset" value="清 空" />
<asp:Button ID="SaveBtn" runat="server" class="input_button" OnClick="Save_Click"
Text="保 存" />
<hr size="1" />
<table id="search" align="center" cellpadding="0" cellspacing="1" class="table_1"
width="95%">
<tbody>
<tr class="tr2">
<td style="padding-left: 5px; height: 25px;">
图书ISBN:
<asp:TextBox ID="ISBN" runat="server" class="input_text" Width="200"></asp:TextBox>
</td>
<td style="padding-left: 5px; height: 25px;" width="47%">
出 版 社:
<asp:DropDownList ID="SelPress" runat="server" class="input_text" Width="200">
</asp:DropDownList>
</td>
</tr>
<tr class="tr1">
<td colspan="2" height="25" style="padding-left: 5px">
图书名称:
<asp:TextBox ID="name" runat="server" class="input_text" Width="600"></asp:TextBox>
<asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" ControlToValidate="Name"
ErrorMessage="*">此项必填</asp:RequiredFieldValidator>
</td>
</tr>
<tr class="tr2">
<td height="25" style="padding-left: 5px">
定 价:
<asp:TextBox ID="bookprice" runat="server" class="input_text" Width="200"></asp:TextBox>
<asp:RequiredFieldValidator ID="Requiredfieldvalidator2" runat="server" ControlToValidate="bookprice"
ErrorMessage="*">此项必填</asp:RequiredFieldValidator>
</td>
<td height="25" style="padding-left: 5px" width="47%">
图书源码:
<asp:TextBox ID="sourcecode" runat="server" class="input_text" Width="200"></asp:TextBox>
</td>
</tr>
<tr class="tr1">
<td style="padding-left: 5px; height: 25px;">
自编代码:
<asp:TextBox ID="bookselfcode" runat="server" class="input_text" Width="200"></asp:TextBox>
</td>
<td style="padding-left: 5px; height: 25px;" width="47%">
出版年度:
<asp:TextBox ID="cbyyear" runat="server" class="input_text" Width="200"></asp:TextBox>
</td>
</tr>
<tr class="tr2">
<td style="padding-left: 5px; height: 25px;">
版 次:
<asp:TextBox ID="bc" runat="server" class="input_text" Width="200"></asp:TextBox>
</td>
<td style="padding-left: 5px; height: 25px;" width="47%">
作 者:
<asp:TextBox ID="bookauthor" runat="server" class="input_text" Width="200"></asp:TextBox>
</td>
</tr>
<tr class="tr1">
<td style="padding-left: 5px; height: 25px;">
架 位 号:
<asp:TextBox ID="locatecode" runat="server" class="input_text" Width="200"></asp:TextBox>
</td>
<td style="padding-left: 5px; height: 25px;" width="47%">
备 注:
<asp:TextBox ID="memo" runat="server" class="input_text" Width="200"></asp:TextBox>
</td>
</tr>
</tbody>
</table>
<br />
<b>图书信息查询</b>
<hr size="1" />
<table id="Table1" align="center" border="0" cellpadding="0" cellspacing="1" class=""
width="95%">
<tbody>
<tr class="tr2">
<td style="padding-left: 5px; height: 18px;">
检索条件:
<asp:DropDownList ID="query_tj" runat="server" class="input_text" Width="97">
<asp:ListItem Selected="True" Value="name">图书名称</asp:ListItem>
<asp:ListItem Value="ISBN">图书ISBN</asp:ListItem>
<asp:ListItem Value="author">作者</asp:ListItem>
<asp:ListItem Value="abbrname">出版社名称</asp:ListItem>
<asp:ListItem Value="memo">备注</asp:ListItem>
</asp:DropDownList>
检索内容:
<asp:TextBox ID="query_content" runat="server" class="input_text" Width="120"></asp:TextBox>
<asp:Button ID="QueryBtn" runat="server" CausesValidation="False" class="input_button"
OnClick="QueryBtn_Click" Text="查 询" />
<br />
<b>
<br />
<asp:Label ID="Msg" runat="server" ForeColor="red"></asp:Label><br />
</b></td>
</tr>
<tr>
<td height="25" style="padding-left: 5px">
<asp:DataGrid ID="DataGrid1" runat="server" AllowSorting="True"
AutoGenerateColumns="False" BorderColor="Black" CellPadding="2" font-name="verdana"
Font-Names="verdana" Font-Size="8pt" HeaderStyle-BackColor="#F8FAFC" PageSize="6" Width="100%" OnCancelCommand="DataGrid1_CancelCommand" OnEditCommand="DataGrid1_EditCommand" OnPageIndexChanged="DataGrid1_PageIndexChanged" OnDeleteCommand="DataGrid1_DeleteCommand" OnUpdateCommand="DataGrid1_UpdateCommand">
<HeaderStyle BackColor="#F8FAFC" Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
<PagerStyle Font-Bold="True" Font-Names="宋体" ForeColor="Blue" HorizontalAlign="Right"
Mode="NumericPages" NextPageText="下一页" PrevPageText="上一页" />
<EditItemStyle CssClass="input_text" BackColor="#E9F0F8" HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Size="Smaller" Font-Strikeout="False" Font-Underline="False" />
<Columns>
<asp:BoundColumn DataField="Code" HeaderText="图书编号" ReadOnly="True" Visible="False">
<HeaderStyle Width="5px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="Name" HeaderText="图书名称">
<HeaderStyle Width="100px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="abbrname" HeaderText="版别" ReadOnly="True">
<HeaderStyle Width="100px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="price" DataFormatString="{0:C}" HeaderText="定价">
<HeaderStyle Width="30px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="author" HeaderText="作者">
<HeaderStyle Width="30px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="version" HeaderText="版次">
<HeaderStyle Width="30px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="storeamountz" HeaderText="总店库存" ReadOnly="True">
<HeaderStyle Width="80px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="storeamounta" HeaderText="门市库存" ReadOnly="True">
<HeaderStyle Width="80px" />
</asp:BoundColumn>
<asp:EditCommandColumn CancelText="取消" EditText="编辑" HeaderText="编辑"
UpdateText="更新"></asp:EditCommandColumn>
<asp:ButtonColumn CommandName="Delete" HeaderText="删除" Text="删除"></asp:ButtonColumn>
</Columns>
</asp:DataGrid>
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" BackColor="White"
BorderColor="White" ButtonImageAlign="Middle" CssClass="p_num" CurrentPageButtonClass="p_num_currentPage"
CustomInfoClass="" CustomInfoStyle="" EnableTheming="True" FirstPageText="[首页]"
Font-Size="11pt" Font-Underline="False" HorizontalAlign="Right" InputBoxStyle="p_input"
LastPageText="[末页]" NextPageText="[下页]" NumericButtonCount="8" NumericButtonTextFormatString="[{0}]"
OnPageChanged="AspNetPager1_PageChanged" PageSize="6" PagingButtonSpacing="0px"
PrevPageText="[上页]" ShowInputBox="Never" ShowNavigationToolTip="True" ToolTip="快速方便的导航" Width="100%">
</webdiyer:AspNetPager>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -