資源簡介
一個簡單的基于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\Databa
?????文件?????3080192??2012-10-14?22:54??03\PMS\PMS\Databa
?????文件?????1048576??2012-10-14?22:54??03\PMS\PMS\Databa
?????文件???????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個文件信息
評論
共有 條評論