• 大小: 530KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-23
  • 语言: C#
  • 标签: 人事管理  网络版  SQL  

资源简介

该系统基于ASP.net 2.0 + SQL Server 2005的技术开发,运行环境配置好,把源代码上传到服务器。 数据库文件在包里的“Data”文件夹下,可以附加HR.mdf,也可以先在SQL Server 2005里新建一个名为HR的数据库,把HR.bak备份文件导入到数据库中。 起始文件:default.aspx 用户名:admin 密码:admin

资源截图

代码片段和文件信息

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;

public partial class AdminEdit : System.Web.UI.Page
{
    protected void Page_Load(object sender EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            int intRowsIndex = 0;
            if (Request.QueryString[“RowIndex“] != null)
            {
                intRowsIndex = int.Parse(Request.QueryString[“RowIndex“].ToString());
                Hid_RowIndex.Value = intRowsIndex.ToString();

            }
            String strCommand = ““;
            if (Request.QueryString[“Command“] != null)
            {
                strCommand = Request.QueryString[“Command“].ToString();
                Hid_Command.Value = strCommand;
            }

            Rank rank = new Rank();
            DataSet ds_Rank = rank.GetDataSet(““);
            Rank_Code.DataTextField = “Rank_Name“;
            Rank_Code.DataValueField = “Rank_Code“;
            Rank_Code.DataSource = ds_Rank.Tables[“T_Rank“];
            Rank_Code.DataBind();

            if (strCommand == “UPDATE“)
            {
                DataSet ds_Admin = new DataSet();
                Admin admin = new Admin();
                ds_Admin = admin.GetDataSet(““);
                Admin_Code.Text = ds_Admin.Tables[“T_Admin“].Rows[intRowsIndex][“Admin_Code“].ToString();
                Rank_Code.SelectedValue = ds_Admin.Tables[“T_Admin“].Rows[intRowsIndex][“Rank_Code“].ToString();
                Admin_Code.ReadOnly = true;
            }
        }
    }
    protected void butSave_Click(object sender EventArgs e)
    {
        Admin admin = new Admin();
        publicFunction pFunction = new publicFunction();
        String strRankCode = Rank_Code.SelectedValue;
        String strRankName = Rank_Code.SelectedItem.Text;
        String strAdminCode = Admin_Code.Text;
        admin.Field_Admin_Code = strAdminCode;
        admin.Field_Rank_Code = strRankCode;
        admin.Field_Rank_Name = strRankName;

        if (Hid_Command.Value == “INSERT“)
        {
            admin.Field_Admin_Password = Admin_Code.Text;
            String strReturn = admin.AdminInsert();
            if (strReturn.Contains(“ok“))
            {
                Response.Redirect(“AdminView.aspx“);
            }
        }
        else if (Hid_Command.Value == “UPDATE“)
        {
            //得到当前用户ID
            DataSet ds_Admin = admin.GetDataSet(““);
            admin.RowIndex = int.Parse(Hid_RowIndex.Value);
            admin.Field_Admin_ID = int.Parse(ds_Admin.Tables[“T_Admin“].Rows[admin.RowIndex][“Admin_ID“].ToString());

            //更新用户信息
            String strReturn = admin.AdminUpdate();
            if (strReturn.Contains(“ok“))
            {
                Respon

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

     文件        371  2010-03-07 23:12  hr_sql\安装信息.txt

     文件       5475  2009-07-23 00:32  hr_sql\Data\必看说明cngr.htm

     文件       5475  2009-07-23 00:32  hr_sql\必看说明cngr.htm

     文件       1846  2008-01-13 12:54  hr_sql\HR_SQL\calendar\index.html

     文件    1591808  2008-01-18 10:37  hr_sql\Data\HR.bak

     文件       4347  2010-03-07 22:55  hr_sql\HR_SQL\UC_Menu.ascx

     文件       2028  2008-01-16 14:16  hr_sql\HR_SQL\AdminEdit.aspx

     文件       3017  2008-01-16 13:53  hr_sql\HR_SQL\AdminView.aspx

     文件       4008  2008-01-15 12:47  hr_sql\HR_SQL\baseInfoEdit.aspx

     文件       3314  2008-01-15 12:46  hr_sql\HR_SQL\baseInfoView.aspx

     文件       2053  2008-01-10 16:56  hr_sql\HR_SQL\Default.aspx

     文件       2176  2008-01-14 12:33  hr_sql\HR_SQL\Dialog\Department.aspx

     文件       1734  2008-01-15 12:47  hr_sql\HR_SQL\DepartmentEdit.aspx

     文件       3396  2008-01-15 14:26  hr_sql\HR_SQL\DepartmentView.aspx

     文件       1999  2008-01-15 23:23  hr_sql\HR_SQL\FunctionEdit.aspx

     文件       3065  2008-01-17 16:17  hr_sql\HR_SQL\FunctionView.aspx

     文件       2741  2008-01-15 12:50  hr_sql\HR_SQL\Home.aspx

     文件       1813  2008-01-13 12:59  hr_sql\HR_SQL\calendar\index.aspx

     文件       2105  2008-01-14 12:36  hr_sql\HR_SQL\Dialog\Job.aspx

     文件       1713  2008-01-15 12:47  hr_sql\HR_SQL\JobEdit.aspx

     文件       3264  2008-01-15 14:26  hr_sql\HR_SQL\JobView.aspx

     文件       2779  2008-01-16 12:58  hr_sql\HR_SQL\Dialog\Purview.aspx

     文件        585  2008-01-17 16:25  hr_sql\HR_SQL\PurviewError.aspx

     文件       1971  2008-01-16 14:17  hr_sql\HR_SQL\RankEdit.aspx

     文件       3865  2008-01-17 16:26  hr_sql\HR_SQL\RankView.aspx

     文件       2345  2008-01-13 21:42  hr_sql\HR_SQL\Dialog\RP.aspx

     文件       2008  2008-01-15 12:48  hr_sql\HR_SQL\RPEdit.aspx

     文件       3505  2008-01-15 14:27  hr_sql\HR_SQL\RPView.aspx

     文件       1731  2008-01-15 12:48  hr_sql\HR_SQL\SpecialtyEdit.aspx

     文件       3333  2008-01-15 14:27  hr_sql\HR_SQL\SpecialtyView.aspx

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

评论

共有 条评论