• 大小: 4.35MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-08-10
  • 语言: C#
  • 标签: C#  管理系统  

资源简介

基于c#人事工资管理系统,数据库放在Database文件夹下,附使用说明文档

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
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);
                    }
                }
            }
        }

        private void frmAddDep_Load(object sender EventArgs e)
        {

        }
    }
}

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

     文件        134  2018-05-22 11:00  03\PMS\.vs\PMS\DesignTimeBuild\.dtbcache

    ..A..H.     61440  2017-11-21 11:07  03\PMS\.vs\PMS\v14\.suo

    ..A..H.     58880  2018-05-22 11:00  03\PMS\.vs\PMS\v15\.suo

     文件          0  2018-05-22 10:58  03\PMS\.vs\PMS\v15\Server\sqlite3\db.lock

     文件       4096  2018-05-22 10:58  03\PMS\.vs\PMS\v15\Server\sqlite3\storage.ide

     文件      32768  2018-05-22 10:58  03\PMS\.vs\PMS\v15\Server\sqlite3\storage.ide-shm

     文件    1038272  2018-05-22 10:58  03\PMS\.vs\PMS\v15\Server\sqlite3\storage.ide-wal

     文件        161  2017-11-21 13:58  03\PMS\app.config

     文件    3399680  2017-11-21 09:23  03\PMS\Backup\PMS.bak

     文件     376832  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.CrystalReports.Engine.dll

     文件      65536  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.ClientDoc.dll

     文件      49152  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.Commlayer.dll

     文件     135168  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.CommonControls.dll

     文件      36864  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.CommonobjectModel.dll

     文件     176128  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.Controllers.dll

     文件      36864  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.CubeDefModel.dll

     文件     262144  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.DataDefModel.dll

     文件      57344  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.DataSetConversion.dll

     文件       5120  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.objectFactory.dll

     文件     155648  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.Prompting.dll

     文件     368640  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.ReportDefModel.dll

     文件      16384  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportAppServer.xmlSerialize.dll

     文件      86016  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.ReportSource.dll

     文件     876544  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.Shared.dll

     文件     544768  2015-09-25 17:58  03\PMS\bin\Debug\CrystalDecisions.Windows.Forms.dll

     文件      28672  2015-09-25 17:58  03\PMS\bin\Debug\FlashControlV71.dll

     文件     506880  2018-05-22 10:59  03\PMS\bin\Debug\PMS.exe

     文件        161  2017-11-21 13:58  03\PMS\bin\Debug\PMS.exe.config

     文件     282112  2018-05-22 10:59  03\PMS\bin\Debug\PMS.pdb

     文件      21680  2017-11-21 09:28  03\PMS\bin\Debug\PMS.vshost.exe

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

评论

共有 条评论