资源简介

这是一个基于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章 人事工资管理系统\Database\MyPersonnel.mdf

     文件     786432  2007-04-21 23:45  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\MyPersonnel_log.LDF

     文件       4570  2007-02-23 11:02  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\MyPersonnel数据库.sql

     文件        256  2006-12-17 16:35  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\SQL2005更新工资触发器.txt

     文件       1670  2007-02-23 11:05  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\公司信息数据表.sql

     文件       1202  2007-02-23 11:04  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\公司部门数据表.sql

     文件       2042  2007-02-23 11:06  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\员工家庭成员数据表.sql

     文件       7030  2007-02-13 16:48  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\在职员工视图.sql

     文件       1948  2007-02-23 11:06  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\培训记录数据表.sql

     文件       3960  2007-02-23 11:05  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\基本档案数据表.sql

     文件       1794  2007-02-23 11:05  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\奖惩记录数据表.sql

     文件       1574  2007-02-23 11:04  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\工作业绩数据表.sql

     文件       1784  2007-02-23 11:04  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\工作简历数据表.sql

     文件       2954  2007-02-23 11:03  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\工资发放表数据表.sql

     文件       1848  2007-02-23 11:04  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\工资核算表数据表.sql

     文件       1962  2007-02-23 11:03  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\操作用户数据表.sql

     文件       1620  2007-02-23 11:05  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\离职管理数据表.sql

     文件       4646  2007-02-23 11:05  C#人事工资管理系统源代码\第2章 人事工资管理系统\Database\考勤记录数据表.sql

     文件       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个文件信息

评论

共有 条评论