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

📄 returnbook.aspx

📁 管理系统源码 很好的用于参考很好对开发毕业设计很有帮助
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReturnBook.aspx.cs" Inherits="Pages_ReturnBook" %>

<!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">
    <title>图书归还</title>
    <link href="../CSS/Style.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">
  function openAdd()
  {
    window.open('ReturnBookEdit.aspx','','status=no,scrollbars=no,top=200,left=250,width=550,height=300');
  }
   function openQuery()
  {
    window.open('ReturnBookQuery.aspx','','status=no,scrollbars=no,top=200,left=300,width=420,height=165');
  }
    </script>

    <style type="text/css">.stringCut{ 
width:50px; overflow:hidden;text-overflow:ellipsis; white-space:nowrap; 
}</style>
</head>
<body scroll="auto">
    <form name="Form1" method="post" action="" id="Form2" runat="server">

        <script language="javascript" type="text/javascript" src="../inc/ad.js"></script>

        <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
           
            <tr>
                <td width="100%" valign="top" style="padding-right: 5px; padding-left: 10px;">
                    <table style="width: 100%">
                        <tr>
                            <td align="right" style="height: 22px; width: 39px;">
                                <asp:ImageButton ID="btnAdd" runat="server" AlternateText="添 加" ImageUrl="~/images/btn_Add.jpg"
                                    OnClientClick="openAdd()" /></td>
                            <td align="right" style="height: 22px; width: 44px;">
                                <asp:ImageButton ID="btnQuery" runat="server" AlternateText="查 询" ImageUrl="~/images/btn_Query.jpg"
                                    OnClientClick="openQuery()" /></td>
                            <td style="width: 78%; height: 22px;">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" valign="top">
                                <asp:GridView ID="grdBook" runat="server" AutoGenerateColumns="False" OnPageIndexChanging="grdBook_PageIndexChanging"
                                    OnRowDeleting="grdBook_RowDeleting" OnRowEditing="grdBook_RowEditing" AllowPaging="True" CellPadding="4" CssClass="grid_common" Width="1000px"
                                    EmptyDataText="记录为空!" ForeColor="#333333" GridLines="None">
                                    <Columns>
                                        <asp:BoundField DataField="ReturnID" HeaderText="编号" SortExpression="ISBN" />
                                        <asp:BoundField DataField="BookName" HeaderText="图书名称" SortExpression="BookName">
                                            <ItemStyle Width="120px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ReturnPeople" HeaderText="归还人" SortExpression="ReturnPeople" />
                                        <asp:BoundField DataField="ReturnDate" HeaderText="归还日期" SortExpression="ReturnDate" />
                                        <asp:BoundField DataField="Quantity" HeaderText="数量" SortExpression="Quantity" />
                                        <asp:BoundField DataField="Unit" HeaderText="单位" SortExpression="Unit">
                                            <ItemStyle Width="100px" CssClass="stringCut" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="HandlingPeople" HeaderText="经手人" SortExpression="HandlingPeople" />
                                        <asp:BoundField DataField="Remarks" HeaderText="备注" SortExpression="Remarks" />
                                        <asp:ButtonField CommandName="Edit" HeaderText="编辑" Text="编辑" />
                                        <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                                    </Columns>
                                    <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                                    <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" BackColor="#EFF3FB" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <PagerStyle ForeColor="White" HorizontalAlign="Center" BackColor="#2461BF" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" CssClass="grid_header"
                                        HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <AlternatingRowStyle CssClass="grid_autoGenerate" BackColor="White" />
                                    <PagerTemplate>
                                        <asp:Label ID="lblCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"
                                            ForeColor="Red"></asp:Label>/
                                        <asp:Label ID="lblPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                                        <asp:LinkButton ID="lbtnFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                                            Visible="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>" ForeColor="Black">首页</asp:LinkButton>
                                        <asp:LinkButton ID="lbtnPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page"
                                            Visible="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>" ForeColor="Black">上一页</asp:LinkButton>
                                        <asp:LinkButton ID="lbtnNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                                            Visible="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
                                            ForeColor="Black">下一页</asp:LinkButton>
                                        <asp:LinkButton ID="lbtnLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                                            Visible="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
                                            ForeColor="Black">尾页</asp:LinkButton>
                                    </PagerTemplate>
                                    <EditRowStyle BackColor="#2461BF" />
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

⌨️ 快捷键说明

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