资源简介
这是一个基于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#资料
相关资源
- ASP.NET实验室预约管理系统
- 020ASP.NET车辆综合管理系统.zip
- c#小型图书销售系统
- 基于c#的实验室设备管理系统621530
- c# 高校档案信息管理系统
- 用C#做的鲜花管理系统
- ASP.NET C# 工资管理系统
- 班级管理系统(C#实现)
- ASP.NET客户管理系统(毕业设计 C#
- 医院门诊管理系统 aspc#access数据库
- 医院业务管理系统(C#源代码)
- 学生信息管理系统(C# 控制台下)
- 酒店管理系统(c#.net源码)
- 图书管理系统-----------C# 版
- 海益ERP数据管理系统2.0源码
- C# 简单学生管理系统(附数据库)
- C#图书管理系统(源码+数据库)
- 宿舍管理系统(源码+数据库脚本)
- 开源版C#商场超市收银商品管理财务管
- 企业OA管理系统
- C#资源管理器
- 门禁管理系统源码(设备设置、机构
- VS2019图书管理系统-C#
- 学生宿舍管理系统(毕业设计 C#实现
- C# 网吧管理系统源码(附数据库脚本
- ASP.Net文件上传管理源码
- 网吧管理系统(包附数据库)
- C# 获取任务管理器的进程信息
- C#递归实现资源管理器
- C#直接使用log4net进行日志管理
评论
共有 条评论