• 大小: 2.55MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-16
  • 语言: C#
  • 标签: c#  asp  .net  

资源简介

图书管理系统 c# asp .net 图书管理系统 网页

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;

public partial class Admin_Apply : System.Web.UI.Page
{
    public int cnt = 0;
    public DateTime date = DateTime.Now;
    protected void Page_Load(object sender EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session[“user“] == null)
            {
                Response.Redirect(“Admin_Login.aspx“);
            }
            BindApply();
        }
    }
    protected void gvApply_RowDataBound(object sender GridViewRowEventArgs e)
    {
        //添加效果
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Attributes.Add(“onmouseover“ “color=this.style.backgroundColor;this.style.backgroundColor=‘#D4DFFF‘“);
            e.Row.Attributes.Add(“onmouseout“ “this.style.backgroundColor=color“);
        }
    }
    private void BindApply()
    {
        DataSet ds = DBOP.AdminApply();
        if (ds.Tables[0].Rows.Count > 0)
        {
            gvApply.Visible = true;
            lbmsg.Text = ““;
            gvApply.DataSource = ds.Tables[0].DefaultView;
            gvApply.DataBind();
        }
        else
        {
            gvApply.Visible = false;
            lbmsg.Text = “无任何学生自主登记的记录!“;
        }

    }
    protected void gvApply_RowCommand(object sender GridViewCommandEventArgs e)
    {
        int id = 0;
        if (e.CommandArgument.ToString() != ““)
        {
            id = Convert.ToInt32(e.CommandArgument);    
        }
        //取消登记记录
        if (e.CommandName == “Delete“)
        {
            DBOP.CancelApply(id);
        }
        //予以借阅
        if (e.CommandName == “Sure“)
        {
            Borrows borrow = DBOP.GetBorrowEntity(id);
            int rInt=DBOP.SureApply(idborrow.BookID);
            if (rInt != -1)
            {
                
                Mydata.Msg(string.Format(“[{0}]借阅{1}的信息已录入系统.“ DBOP.GetUserEntity(borrow.UserID).U_NameDBOP.GetBookEntity(borrow.BookID).B_Name) this);
                Response.Redirect(“Admin_Apply.aspx“);
            }
        }
        BindApply();
    }
    protected void gvApply_RowDeleting(object sender GridViewDeleteEventArgs e)
    {
        ///
    }

    /// 
    /// 登记记录是否超时
    /// 

    /// 
    /// 
    public bool IsOverTime(DateTime date)
    {
        bool rBool = true;
        DateTime dt = Convert.ToDateTime(date.ToShortDateString());
        TimeSpan ts = new TimeSpan();
        ts = Convert.ToDateTime(DateTime.Now.ToShortDateString()) - dt;
        if (ts.Days >= 1)
        {
            rBool= false;
        }
        return rBool;
    }

    public string

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        202  2010-06-16 19:21  F8Library\6-16.txt

     文件       4065  2010-06-12 19:49  F8Library\Admin_Apply.aspx

     文件       3185  2010-06-11 09:04  F8Library\Admin_Apply.aspx.cs

     文件       6393  2010-06-16 19:21  F8Library\Admin_Book_Score.aspx

     文件       3942  2010-06-16 19:19  F8Library\Admin_Book_Score.aspx.cs

     文件       7879  2010-06-16 22:08  F8Library\Admin_Default.aspx

     文件       4679  2010-06-11 09:29  F8Library\Admin_Default.aspx.cs

     文件       4737  2010-06-12 22:13  F8Library\Admin_Login.aspx

     文件       2976  2010-06-17 08:00  F8Library\Admin_Login.aspx.cs

     文件       8828  2010-06-07 18:40  F8Library\Admin_Main.aspx

     文件       6016  2010-06-07 22:11  F8Library\Admin_Main.aspx.cs

     文件       1909  2010-06-08 08:37  F8Library\All_Book.ascx

     文件        648  2010-06-07 22:33  F8Library\All_Book.ascx.cs

     文件       1737  2010-06-11 19:15  F8Library\App_Code\Books.cs

     文件       3344  2010-06-16 14:57  F8Library\App_Code\BooksBLL.cs

     文件        700  2010-06-16 14:53  F8Library\App_Code\Book_img.cs

     文件       2944  2010-06-17 09:39  F8Library\App_Code\Book_img_BLL.cs

     文件       1355  2010-06-02 14:38  F8Library\App_Code\Borrows.cs

     文件      27093  2010-06-16 22:55  F8Library\App_Code\DBOP.cs

     文件       7560  2010-06-17 09:06  F8Library\App_Code\Functions.cs

     文件       8650  2010-06-12 22:29  F8Library\App_Code\Mydata.cs

     文件        887  2010-06-12 20:30  F8Library\App_Code\parameterCheck.cs

     文件       5523  2010-06-12 22:17  F8Library\App_Code\SqlInPost.cs

     文件        977  2010-06-16 22:08  F8Library\App_Code\Suggest.cs

     文件       1168  2010-06-02 14:37  F8Library\App_Code\Users.cs

     文件       1086  2010-06-09 19:10  F8Library\App_Code\Waits.cs

     文件       3233  2010-06-07 19:23  F8Library\BackBook.aspx

     文件       2394  2010-06-07 22:43  F8Library\BackBook.aspx.cs

     文件      63488  2010-03-26 13:15  F8Library\Bin\YumenControl.dll

     文件        128  2010-06-16 18:39  F8Library\Bin\YumenControl.dll.refresh

............此处省略209个文件信息

评论

共有 条评论