• 大小: 13.12MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-15
  • 语言: C#
  • 标签:

资源简介

基于asp.net的人事工资管理系统,功能强大、高效、稳定。

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Data.SqlClient;
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;

public partial class _CKMessage : System.Web.UI.Page
{
    Database db = new Database();
    public int i = 0;
    public void Rep9()//
    {
        SqlConnection Conn = new SqlConnection(db.strConn);

        SqlDataAdapter Da9 = new SqlDataAdapter(“Select * from Images  order by id desc“ Conn);

        DataSet Ds9 = new DataSet();

        Da9.Fill(Ds9 “Images“);
        Repeater9.DataSource = Ds9.Tables[0].DefaultView;
        Repeater9.DataBind();
    }
    protected void Page_Load(object sender EventArgs e)
    {
        Rep9();
        Session[“WZ“] = “首页“;
        Session[“WZ“] += “>>查看留言“; 
        if (!IsPostBack)
        {
            this.labPage.Text = “1“;
            this.contrlRepeater();
            this.Rep1();
        }

    }
    public void Rep1()
    {
        SqlConnection Conn = new SqlConnection(db.strConn);
        Conn.Open();
        //最新新闻
        SqlDataAdapter Da = new SqlDataAdapter(“select top 34 * from NewView order by id desc“ Conn);
        DataSet Ds = new DataSet();
        Da.Fill(Ds “NewView“);
        PagedDataSource Pds = new PagedDataSource();
        Pds.DataSource = Ds.Tables[“NewView“].DefaultView;
        Pds.AllowPaging = true;
        Pds.PageSize = 34;
        Repeater1.DataSource = Pds;
        Repeater1.DataBind();
        Conn.Close();
    }
    //分页 
    public void contrlRepeater()
    {
        SqlConnection Conn = new SqlConnection(db.strConn);

        SqlDataAdapter Da = new SqlDataAdapter(“select * from  Message order by id desc“ Conn);

        DataSet Ds = new DataSet();

        Da.Fill(Ds “Message“);

        PagedDataSource pds = new PagedDataSource();

        pds.DataSource = Ds.Tables[“Message“].DefaultView;

        pds.AllowPaging = true;

        pds.PageSize = 3;

        Total.Text = pds.DataSourceCount.ToString();

        pds.CurrentPageIndex = Convert.ToInt32(this.labPage.Text) - 1;

        Repeater2.DataSource = pds;

        LabCountPage.Text = pds.PageCount.ToString();
        DropDownList1.Items.Clear();
        for (int i = 1; i <= pds.PageCount; i++)
        {
            DropDownList1.Items.Add(i.ToString());
        }


        labPage.Text = (pds.CurrentPageIndex + 1).ToString();

        this.lbtnpritPage.Enabled = true;

        this.lbtnFirstPage.Enabled = true;

        this.lbtnNextPage.Enabled = true;

        this.lbtnDownPage.Enabled = true;

        if (pds.CurrentPageIndex < 1)
        {
            this.lbtnpritPage.Enabled = false;

            this.lbtnFirstPage.Enabled = false;
        }

        if (pds.CurrentPageIndex == pds.PageCount - 1)
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-03-24 18:12  SalaryMS\
     目录           0  2010-12-30 19:50  SalaryMS\Admin\
     文件        3166  2010-10-28 18:53  SalaryMS\Admin\AddBuMen.aspx
     文件        1135  2010-09-22 16:37  SalaryMS\Admin\AddBuMen.aspx.cs
     文件        3890  2010-08-16 18:31  SalaryMS\Admin\AddBZGZ.aspx
     文件        1668  2010-09-02 23:03  SalaryMS\Admin\AddBZGZ.aspx.cs
     文件        3596  2010-10-28 18:54  SalaryMS\Admin\AddClass.aspx
     文件        1859  2010-09-02 23:03  SalaryMS\Admin\AddClass.aspx.cs
     文件       12761  2010-10-28 17:07  SalaryMS\Admin\AddEmployee.aspx
     文件        6713  2010-11-03 18:48  SalaryMS\Admin\AddEmployee.aspx.cs
     文件        6429  2010-11-02 22:11  SalaryMS\Admin\AddGZFF.aspx
     文件        7122  2010-12-30 16:50  SalaryMS\Admin\AddGZFF.aspx.cs
     文件        5934  2010-11-02 22:12  SalaryMS\Admin\AddJC.aspx
     文件        6798  2010-11-03 22:50  SalaryMS\Admin\AddJC.aspx.cs
     文件        6891  2010-12-30 16:43  SalaryMS\Admin\AddKQ.aspx
     文件        3863  2010-12-30 16:49  SalaryMS\Admin\AddKQ.aspx.cs
     文件        4725  2010-10-02 14:31  SalaryMS\Admin\AddNews.aspx
     文件        2869  2010-11-08 20:16  SalaryMS\Admin\AddNews.aspx.cs
     文件        6675  2010-10-25 09:38  SalaryMS\Admin\AdminGl.aspx
     文件        3535  2010-12-29 16:04  SalaryMS\Admin\AdminGl.aspx.cs
     文件       11838  2010-10-31 21:03  SalaryMS\Admin\BuMenAdmin.aspx
     文件        5154  2010-09-22 16:40  SalaryMS\Admin\BuMenAdmin.aspx.cs
     文件       11929  2010-10-31 21:10  SalaryMS\Admin\BzgzAdmin.aspx
     文件        5163  2010-09-02 23:03  SalaryMS\Admin\BzgzAdmin.aspx.cs
     文件        1399  2010-10-15 18:16  SalaryMS\Admin\center.aspx
     文件         573  2010-09-02 23:03  SalaryMS\Admin\center.aspx.cs
     文件       10238  2010-10-15 18:32  SalaryMS\Admin\ClassAdmin.aspx
     文件        3741  2010-09-02 23:03  SalaryMS\Admin\ClassAdmin.aspx.cs
     目录           0  2010-12-30 19:50  SalaryMS\Admin\CSS\
     文件        1999  2010-08-16 19:04  SalaryMS\Admin\CSS\ZiTi.css
     文件        4443  2010-10-15 18:28  SalaryMS\Admin\DataBackupAddResrodre.aspx
............此处省略1261个文件信息

评论

共有 条评论

相关资源