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

📄 addbookcount.aspx

📁 2007年华中科技大学数据库课程设计参考程序[图书销售系统]+报告
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addbookcount.aspx.cs" Inherits="ljian_admin_book_addbookcount" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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 id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../../../ljian/admin/style/style_main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel runat="server" ID="up"><ContentTemplate>
            <div>
 <div style="float :left; width:792px; margin-top :30px; margin-left :25px">      
        <table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td width="6" style="height: 21px"><img src="../../images/left.gif" alt="" width="6" height="21"/></td>
    <td background="../../images/center.gif" class="colorbai" style="height: 21px; font-size:14px; vertical-align:middle; color :White; width: 108%;">
        图书进货</td>
    <td width="6" style="height: 21px"><img src="../../images/right.gif" alt="" width="6" height="21"/></td>
  </tr>
</table>
         <table border="0" bgcolor="#8fb9d0" width="100%" cellpadding="4" cellspacing="1" ><%--style ="border-left :1px solid #cfc7b2; border-right :1px solid #cfc7b2"--%>
       <tr><td bgcolor="#e7f5fd" vAlign=bottom align=left style=" padding-top :2px; padding-left :2px; height: 23px; width :19%; text-align:center;"><strong>ISBN</strong></td>
       <td bgcolor="#e7f5fd" vAlign=bottom align=left style=" padding-top :2px; padding-left :2px; height: 23px; width :24%; text-align :center"><strong>图书名</strong></td>
<td bgcolor="#e7f5fd" vAlign=bottom align=left style=" padding-top :2px; padding-left :2px; height: 23px; width :9%; text-align :center"><strong>图书分类</strong></td>
<td bgcolor="#e7f5fd" vAlign=bottom align=left style=" padding-top :2px; padding-left :2px; height: 23px; width :6%; text-align :center"><strong>数目</strong></td>
<td bgcolor="#e7f5fd" vAlign=bottom align=left style=" padding-top :2px; padding-left :2px; height: 23px; width :9%; text-align :center"><strong>此次进价</strong></td>
<td bgcolor="#e7f5fd" vAlign=bottom align=left style=" padding-top :2px; padding-left :2px; height: 23px; width :13%; text-align :center"><strong>当前定价</strong></td>
<td bgcolor="#e7f5fd" vAlign=bottom align=left style=" padding-top :2px; padding-left :2px; height: 23px; width :9%; text-align :center"><strong>重新定价</strong></td>
<td bgcolor="#e7f5fd" vAlign=bottom align=left style=" padding-top :2px; padding-left :2px; height: 23px; width :13%; text-align :center"><strong>操作</strong></td>
</tr>
             <asp:Repeater OnItemCommand ="list_onitemcommand" runat="server" ID="list"><ItemTemplate>
             <tr>
             
                 <td bgcolor="#e7f5fd" align="left" style="padding-left: 2px; width: 22%; padding-top: 2px; height: 19px"
                     valign="bottom"> <%#Eval("isbn") %>
                     </td>
                 <td bgcolor="#e7f5fd" align="left" style="width: 24%; height: 19px; text-align: left">
                   <%#Eval("bookname") %></td>
                    <td bgcolor="#e7f5fd" align="left" style="width: 16%; height: 19px; text-align:center">
                    <%#Eval("class1name") %></td> <td bgcolor="#e7f5fd" align="left" style="width: 7%; height: 19px; text-align: left">
                    <%#Eval("stocks") %></td> <td bgcolor="#e7f5fd" align="left" style="width: 9%; height: 19px; text-align: left"><%#Eval("nowcost") %>
                   </td> <td bgcolor="#e7f5fd" align="left" style="width: 10%; height: 19px; text-align: left"><%#Eval("agocost")%>
                    </td>
                
                    <td align="left" bgcolor="#e7f5fd" style="width: 80%; height: 19px; text-align: left">
                 <%#Eval("cost") %></td>
                  <td align="left" bgcolor="#e7f5fd" style="width: 80%; height: 19px; text-align: left">
                 <asp:LinkButton Width="50px"  CssClass="act"  ID="LinkButton1" CommandArgument='<%#Eval("isbn") %>'
                            runat="server">删除</asp:LinkButton></td>
             </tr>
            </ItemTemplate></asp:Repeater>
            <tr><td colspan=8 style ="height :3px"></td></tr>
 <tr>
 <td bgcolor="#e7f5fd" align="left" style="padding-left: 2px; display :none; width: 19%; padding-top: 2px; height: 19px" valign="bottom"><asp:Label runat="server" id="id"></asp:Label></td>
  <td bgcolor="#e7f5fd" align="left" style="padding-left: 2px; display :none; width: 19%; padding-top: 2px; height: 19px" valign="bottom"><asp:Label runat="server" id="classid"></asp:Label></td>
                 <td bgcolor="#e7f5fd" align="left" style="padding-left: 2px; width: 19%; padding-top: 2px; height: 19px" valign="bottom">
                     <asp:TextBox ID="isbn" runat="server" AutoPostBack="true" Width="176px" OnTextChanged="isbn_TextChanged"></asp:TextBox></td>
                 <td bgcolor="#e7f5fd" align="left" style="width: 24%; height: 19px; text-align: left">
                     <asp:Label ID="bookname" runat="server" Width="168px"></asp:Label></td>
                    <td bgcolor="#e7f5fd" align="left" style="width: 9%; height: 19px; text-align:center">
                        <asp:Label ID="bookclass" runat="server" Width="54px"></asp:Label></td> <td bgcolor="#e7f5fd" align="left" style="width: 6%; height: 19px; text-align: center">
                        <asp:TextBox ID="booknum" runat="server" Width="42px"></asp:TextBox></td> <td bgcolor="#e7f5fd" align="left" style="width: 9%; height: 19px; text-align: center">
                        <asp:TextBox ID="nowcost" runat="server" Width="52px"></asp:TextBox></td> <td bgcolor="#e7f5fd" align="left" style="width: 13%; height: 19px; text-align:center">
                        <asp:Label ID="agocost" runat="server" Width="40px"></asp:Label></td>
                        <td bgcolor="#e7f5fd" align="left" style="width: 9%; height: 19px; text-align: center">
                            <asp:TextBox ID="cost" runat="server" Width="46px"></asp:TextBox></td>
                        <td bgcolor="#e7f5fd" align="left" style="width: 13%; height: 19px; text-align:center">
                            <asp:Button ID="add" runat="server" Enabled="false"  Text="添加" OnClientClick="return check()" Width="65px" OnClick="add_Click" /></td>
                   
             </tr>
             <tr>
 <td bgcolor="#e7f5fd" align="left" colspan=6 style="padding-left: 2px; padding-top: 2px; height: 19px" valign="bottom"></td><td colspan =2 bgcolor="#e7f5fd" ><asp:Button OnClientClick="javascript:if(confirm('确定已经完成进货单填写,保存入库吗?'))  return true;else return false;" ID="add2" runat="server"  Text="保存入库" Width="100px" OnClick="add2_Click" /></td></tr>
       </table>
       <script type ="text/javascript">
       function check()
       {
       if(document.getElementById ('isbn').value=="")
              {
                alert("请输入图书ISBN!");
                document.getElementById ('isbn').focus();
                return false;
              }
        if(document.getElementById ('booknum').value=="")
              {
                alert("请输入图书数量!");
                document.getElementById ('booknum').focus();
                return false;
              }
              if(document.getElementById ('nowcost').value=="")
              {
                alert("请输入此次图书进价!");
                document.getElementById ('nowcost').focus();
                return false;
              }
              if(document.getElementById ('cost').value=="")
              {
                alert("请输入更改后图书的价格!");
                document.getElementById ('cost').focus();
                return false;
              }
       }
       </script>
            <%-- <table border="0" width="100%" cellspacing="0" cellpadding="0"><tr>
<td><img height=4 alt="" src="../../images/06default_0726_03_1.gif" width=4></td>
<td width="99%" background=../../images/06default_0726_03_3.gif></td>
<td><img height=4 alt="" src="../../images/06default_0726_03_2.gif" width=4></td></tr></table>--%>

</div>
    <cc1:AutoCompleteExtender id="AutoCompleteExtender1" runat="server" ServicePath="book.asmx" ServiceMethod="GetCompletionListByISBN" EnableCaching="False" CompletionInterval="100" TargetControlID="isbn" MinimumPrefixLength="1">
        </cc1:AutoCompleteExtender>
    </div>
    </ContentTemplate></asp:UpdatePanel>

    </form>
</body>
</html>

⌨️ 快捷键说明

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