-
大小: 3.76MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-11
- 語言: C#
- 標(biāo)簽:
資源簡(jiǎn)介
系統(tǒng)介紹
根據(jù)企業(yè)對(duì)人事管理的要求,本系統(tǒng)可以實(shí)現(xiàn)以下目標(biāo):
? 操作簡(jiǎn)單方便、界面簡(jiǎn)潔美觀。
? 在查看員工信息時(shí),可以對(duì)當(dāng)前員工的家庭情況、培訓(xùn)情況進(jìn)行添加、修改、刪除的操作。
? 方便快捷的全方位數(shù)據(jù)查詢。
? 按照指定的條件對(duì)員工進(jìn)行統(tǒng)計(jì)。
? 可以將員工信息以表格的形式插入到Word文檔中。
? 實(shí)現(xiàn)數(shù)據(jù)庫的備份、還原及清空的操作。
? 由于該系統(tǒng)的使用對(duì)象較多,要有較好的權(quán)限管理。
? 能夠在當(dāng)前運(yùn)行的系統(tǒng)中重新進(jìn)行登錄。
? 系統(tǒng)運(yùn)行穩(wěn)定、安全可靠。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Data.SqlClient;
namespace?PWMS
{
????public?partial?class?F_Login?:?Form
????{
????????DataClass.MyMeans?MyClass?=?new?PWMS.DataClass.MyMeans();
????????
????????public?F_Login()
????????{
????????????InitializeComponent();
????????}
????????private?void?butClose_Click(object?sender?EventArgs?e)
????????{
????????????if?((int)(this.Tag)?==?1)
????????????{
????????????????DataClass.MyMeans.Login_n?=?3;
????????????????Application.Exit();
????????????}
????????????else
????????????????if?((int)(this.Tag)?==?2)
????????????????????this.Close();
????????}
????????private?void?butLogin_Click(object?sender?EventArgs?e)
????????{
????????????if?(textName.Text?!=?““?&?textPass.Text?!=?““)
????????????{
????????????????SqlDataReader?temDR?=?MyClass.getcom(“select?*?from?tb_Login?where?Name=‘“?+?textName.Text.Trim()?+?“‘?and?Pass=‘“?+?textPass.Text.Trim()?+?“‘“);
????????????????bool?ifcom?=?temDR.Read();
????????????????if?(ifcom)
????????????????{
????????????????????DataClass.MyMeans.Login_Name?=?textName.Text.Trim();
????????????????????DataClass.MyMeans.Login_ID?=?temDR.GetString(0);
????????????????????DataClass.MyMeans.My_con.Close();
????????????????????DataClass.MyMeans.My_con.Dispose();
????????????????????DataClass.MyMeans.Login_n?=?(int)(this.Tag);
????????????????????this.Close();
????????????????}
????????????????else
????????????????{
????????????????????MessageBox.Show(“用戶名或密碼錯(cuò)誤!“?“提示“?MessageBoxButtons.OK?MessageBoxIcon.Information);
????????????????????textName.Text?=?““;
????????????????????textPass.Text?=?““;
????????????????}
????????????????MyClass.con_close();
????????????}
????????????else
????????????????MessageBox.Show(“請(qǐng)將登錄信息添寫完整!“?“提示“?MessageBoxButtons.OK?MessageBoxIcon.Information);
????????}
????????private?void?F_Login_Load(object?sender?EventArgs?e)
????????{
????????????try
????????????{
????????????????MyClass.con_open();??//連接數(shù)據(jù)庫
????????????????MyClass.con_close();
????????????????textName.Text?=?““;
????????????????textPass.Text?=?““;
????????????}
????????????catch
????????????{
????????????????MessageBox.Show(“數(shù)據(jù)庫連接失敗。“?“提示“?MessageBoxButtons.OK?MessageBoxIcon.Information);
????????????????Application.Exit();
????????????}
????????}
????????private?void?textName_KeyPress(object?sender?KeyPressEventArgs?e)
????????{
????????????if?(e.KeyChar?==?‘\r‘)
????????????????textPass.Focus();
????????}
????????private?void?textPass_KeyPress(object?sender?KeyPressEventArgs?e)
????????{
????????????if?(e.KeyChar?==?‘\r‘)
????????????????butLogin.Focus();
????????}
????????private?void?F_Login_Activated(object?sender?EventArgs?e)
????????{
????????????textName.Focus();
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????2574848??2008-01-09?10:42??08\PWMS\PWMS\bin\Debug\bar\2008-1-9104229.bak
?????文件?????155648??2010-08-11?09:28??08\PWMS\PWMS\bin\Debug\Interop.Office.dll
?????文件??????57344??2010-08-11?09:28??08\PWMS\PWMS\bin\Debug\Interop.VBIDE.dll
?????文件?????495616??2010-08-11?09:28??08\PWMS\PWMS\bin\Debug\Interop.Word.dll
?????文件????1082880??2010-08-11?09:33??08\PWMS\PWMS\bin\Debug\PWMS.exe
?????文件?????325120??2010-08-11?09:33??08\PWMS\PWMS\bin\Debug\PWMS.pdb
?????文件??????14328??2010-08-11?09:28??08\PWMS\PWMS\bin\Debug\PWMS.vshost.exe
?????文件????????490??2009-06-11?05:14??08\PWMS\PWMS\bin\Debug\PWMS.vshost.exe.manifest
?????文件????5242880??2010-08-11?09:31??08\PWMS\PWMS\Databa
?????文件????1048576??2008-01-09?14:48??08\PWMS\PWMS\Databa
?????文件???????4319??2010-08-11?09:32??08\PWMS\PWMS\DataClass\MyMeans.cs
?????文件???????2986??2007-12-15?14:40??08\PWMS\PWMS\F_Login.cs
?????文件???????6856??2007-12-06?10:24??08\PWMS\PWMS\F_Login.Designer.cs
?????文件?????341697??2007-12-06?10:24??08\PWMS\PWMS\F_Login.resx
?????文件???????7044??2007-12-15?13:27??08\PWMS\PWMS\F_Main.cs
?????文件??????38155??2007-12-15?13:27??08\PWMS\PWMS\F_Main.Designer.cs
?????文件????1001411??2007-12-15?13:27??08\PWMS\PWMS\F_Main.resx
?????文件???????2906??2007-12-05?09:05??08\PWMS\PWMS\Image\01.png
?????文件???????3071??2007-12-05?09:10??08\PWMS\PWMS\Image\02.PNG
?????文件???????3242??2007-12-05?09:11??08\PWMS\PWMS\Image\03.PNG
?????文件???????2897??2007-12-05?09:11??08\PWMS\PWMS\Image\04.PNG
?????文件???????3096??2007-12-05?09:11??08\PWMS\PWMS\Image\05.PNG
?????文件???????3526??2007-12-05?09:12??08\PWMS\PWMS\Image\06.PNG
?????文件???????2933??2007-12-05?09:13??08\PWMS\PWMS\Image\07.PNG
?????文件???????3636??2007-12-05?09:14??08\PWMS\PWMS\Image\08.PNG
?????文件???????3033??2007-12-05?09:14??08\PWMS\PWMS\Image\09.PNG
?????文件??????29776??2007-12-11?22:05??08\PWMS\PWMS\Image\PEOPLE.jpg
?????文件?????659936??2007-12-04?17:04??08\PWMS\PWMS\Image\主界面.bmp
?????文件???????6480??2007-12-04?17:15??08\PWMS\PWMS\Image\人事檔案瀏覽.bmp
?????文件???????6480??2007-12-04?17:07??08\PWMS\PWMS\Image\人事資料查詢.BMP
............此處省略109個(gè)文件信息
評(píng)論
共有 條評(píng)論