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

资源简介

一个简单的基于C#的人事工资管理系统的实现,数据库使用的是Sql Sever2005。实现了工资考勤等简单的管理

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using PMS.PMSClass;
namespace PMS
{
    public partial class frmAddDep : Form
    {
        public frmAddDep()
        {
            InitializeComponent();
        }
        DBOperate operate = new DBOperate();//创建数据操作对象
        private void button2_Click(object sender EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender EventArgs e)
        {
            if (txtDepName.Text.Trim() == ““)
            {
                MessageBox.Show(“请输入部门名称“ “提示“
                    MessageBoxButtons.OK MessageBoxIcon.Information);
                return;
            }
            else
            {
                string str=
                    “select count(*) from tb_department where DepName=‘“+txtDepName.Text.Trim()+“‘“;
                int i=operate.HumanNum(str);//得到记录数量
                if (i > 0)
                {
                    MessageBox.Show(“该部门已经存在“ “提示“
                        MessageBoxButtons.OK MessageBoxIcon.Information);
                    return;
                }
                else
                {
                    string Addsql =
                        “insert into tb_department(DepName) values(‘“ + txtDepName.Text.Trim() + “‘)“;
                    if (operate.OperateData(Addsql) > 0)
                    {
                        MessageBox.Show(“添加成功“ “提示“
                            MessageBoxButtons.OK MessageBoxIcon.Information);
                    }
                }
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-10-11 12:45  03\
     目录           0  2010-10-11 12:45  03\PMS\
     目录           0  2010-10-11 12:45  03\PMS\PMS\
     目录           0  2010-10-11 12:45  03\PMS\PMS\Backup\
     文件     3101184  2012-05-16 16:16  03\PMS\PMS\Backup\PMS.bak
     文件           1  2010-08-12 13:06  03\PMS\PMS\ClassDiagram1.cd
     目录           0  2010-10-11 12:45  03\PMS\PMS\Database\
     文件     3080192  2012-10-14 22:54  03\PMS\PMS\Database\db_PWMS_Data.MDF
     文件     1048576  2012-10-14 22:54  03\PMS\PMS\Database\db_PWMS_Log.LDF
     文件       15003  2012-05-18 23:20  03\PMS\PMS\PMS.csproj
     文件         938  2012-04-25 21:01  03\PMS\PMS\PMS.csproj.user
     目录           0  2010-10-11 12:45  03\PMS\PMS\PMSClass\
     文件         540  2012-04-26 08:27  03\PMS\PMS\PMSClass\DBConnection.cs
     文件        8780  2012-05-18 23:20  03\PMS\PMS\PMSClass\DBOperate.cs
     目录           0  2010-10-11 12:45  03\PMS\PMS\PMSImage\
     文件       22534  2008-04-03 16:41  03\PMS\PMS\PMSImage\default.jpg
     文件        2862  2008-04-03 11:11  03\PMS\PMS\PMSImage\house.ico
     文件       31177  2008-04-18 14:43  03\PMS\PMS\PMSImage\login.jpg
     文件      104793  2008-04-18 14:21  03\PMS\PMS\PMSImage\main1.jpg
     文件        2862  2008-04-03 11:11  03\PMS\PMS\PMSImage\people.ico
     文件        2862  2008-04-18 13:13  03\PMS\PMS\PMSImage\人事工资管理系统.ico
     文件        2862  2008-04-03 11:44  03\PMS\PMS\PMSImage\保存.ico
     文件        2862  2008-04-03 10:27  03\PMS\PMS\PMSImage\修改.ico
     文件        3169  2008-04-18 12:54  03\PMS\PMS\PMSImage\修改口令.png
     文件        7278  2008-04-06 14:09  03\PMS\PMS\PMSImage\出勤管理.ico
     文件        2862  2008-04-03 10:28  03\PMS\PMS\PMSImage\删除.ico
     文件        3388  2008-04-18 12:54  03\PMS\PMS\PMSImage\奖罚管理.png
     文件        2996  2008-04-18 12:54  03\PMS\PMS\PMSImage\工资总结.png
     文件        3154  2008-04-18 12:54  03\PMS\PMS\PMSImage\工资管理.png
     文件         607  2008-04-14 17:01  03\PMS\PMS\PMSImage\打印.png
     文件        3294  2008-04-18 12:54  03\PMS\PMS\PMSImage\操作员管理.png
............此处省略146个文件信息

评论

共有 条评论