資源簡介
這是一個基于c#+sql的人事工資管理系統,包括源代碼,功能齊全。

代碼片段和文件信息
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?MyPersonnel
{
????public?partial?class?AbsentForm?:?Form
????{
????????public?AbsentForm()
????????{
????????????InitializeComponent();
????????}
????????private?void?缺勤記錄BindingNavigatorSaveItem_Click(object?sender?EventArgs?e)
????????{
????????????this.Validate();
????????????this.缺勤記錄BindingSource.EndEdit();
????????????this.缺勤記錄TableAdapter.Update(this.myPersonnelDataSet.缺勤記錄);
????????}
????????private?void?AbsentForm_Load(object?sender?EventArgs?e)
????????{
????????????//?TODO:?這行代碼將數據加載到表“myPersonnelDataSet.缺勤記錄”中。您可以根據需要移動或移除它。
????????????this.缺勤記錄TableAdapter.Fill(this.myPersonnelDataSet.缺勤記錄);
????????}
????????private?void?bindingNavigatorAddNewItem_Click(object?sender?EventArgs?e)
????????{
????????????//自動計算缺勤記錄自編號
????????????String?MySQLConnectionString?=?global::MyPersonnel.Properties.Settings.Default.MyPersonnelConnectionString;
????????????SqlConnection?MyConnection?=?new?SqlConnection(MySQLConnectionString);
????????????MyConnection.Open();
????????????SqlCommand?MyCommand?=?MyConnection.CreateCommand();
????????????MyCommand.CommandText?=?“Select?max(自編號)?最大編號?From?缺勤記錄“;
????????????object?MyResult?=?MyCommand.ExecuteScalar();
????????????Int64?MyID?=?1;
????????????if?(MyResult?!=?System.DBNull.Value)
????????????{
????????????????String?MyMaxID?=?MyResult.ToString().Trim();
????????????????MyMaxID?=?MyMaxID.Substring(2?MyMaxID.Length?-?2);
????????????????MyID?=?Convert.ToInt64(MyMaxID)?+?1;
????????????}
????????????int?MyLength?=?MyID.ToString().Length;
????????????string?MyNewID?=?““;
????????????switch?(MyLength)
????????????{
????????????????case?1:
????????????????????MyNewID?=?“QQ0000000“?+?MyID.ToString();
????????????????????break;
????????????????case?2:
????????????????????MyNewID?=?“QQ000000“?+?MyID.ToString();
????????????????????break;
????????????????case?3:
????????????????????MyNewID?=?“QQ00000“?+?MyID.ToString();
????????????????????break;
????????????????case?4:
????????????????????MyNewID?=?“QQ0000“?+?MyID.ToString();
????????????????????break;
????????????????case?5:
????????????????????MyNewID?=?“QQ000“?+?MyID.ToString();
????????????????????break;
????????????????case?6:
????????????????????MyNewID?=?“QQ00“?+?MyID.ToString();
????????????????????break;
????????????????case?7:
????????????????????MyNewID?=?“QQ0“?+?MyID.ToString();
????????????????????break;
????????????}
????????????if?(MyConnection.State?==?ConnectionState.Open)
????????????{
????????????????MyConnection.Close();
????????????}
????????????this.自編號TextBox.Text?=?MyNewID;??????????
????????}
????????private?void?查詢ToolStripButton_Click(object?sender?EventArgs?e)
????????{
????????????String?MySQLConnectionString?=?global::MyPersonnel.Pro
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1638400??2007-04-21?23:45??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件?????786432??2007-04-21?23:45??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????4570??2007-02-23?11:02??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件????????256??2006-12-17?16:35??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????1670??2007-02-23?11:05??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????1202??2007-02-23?11:04??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????2042??2007-02-23?11:06??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????7030??2007-02-13?16:48??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????1948??2007-02-23?11:06??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????3960??2007-02-23?11:05??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????1794??2007-02-23?11:05??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????1574??2007-02-23?11:04??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????1784??2007-02-23?11:04??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????2954??2007-02-23?11:03??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????1848??2007-02-23?11:04??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????1962??2007-02-23?11:03??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????1620??2007-02-23?11:05??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????4646??2007-02-23?11:05??C#人事工資管理系統源代碼\第2章?人事工資管理系統\Databa
?????文件???????4805??2006-12-12?17:35??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\AbsentForm.cs
?????文件??????33881??2006-12-12?17:25??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\AbsentForm.Designer.cs
?????文件??????15232??2006-12-12?17:25??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\AbsentForm.resx
?????文件????????417??2006-12-11?19:33??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\app.config
?????文件???????4912??2007-02-24?17:52??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\ArchievementForm.cs
?????文件??????33245??2007-02-24?07:54??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\ArchievementForm.Designer.cs
?????文件??????14862??2007-02-24?07:54??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\ArchievementForm.resx
?????文件?????103477??2006-12-11?20:20??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\bin\Release\Data\MyBgPhoto1.JPG
?????文件??????57076??2006-12-11?11:44??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\bin\Release\Data\MyBgPhoto2.JPG
?????文件??????33202??2006-12-11?11:54??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\bin\Release\Data\MyBgPhoto3.JPG
?????文件??????29627??2006-12-11?11:56??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\bin\Release\Data\MyBgPhoto4.JPG
?????文件?????123953??2007-02-14?10:57??C#人事工資管理系統源代碼\第2章?人事工資管理系統\MyPersonnel\bin\Release\Data\ShowMyBgPhoto1.jpg
............此處省略163個文件信息
- 上一篇:零件交易中心課程設計sql數據庫
- 下一篇:杜洋C#資料
評論
共有 條評論