资源简介
这是一个基于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#资料
相关资源
- 试题库管理系统毕业论文(C#)源程序
- C#-数据库操作技术-员工管理系统
- ASP.NET+SQL Server 2008 实现的学生学籍管
- C#+SQLServer文档管理系统
- C#锁屏软件(真正禁用ctrl+alt+del,含源
- 基于c#的银行业务管理系统
- zw_ASP.NET通用权限管理系统源代码含文
- ASP.NET考勤管理系统(毕业设计)
- C#三层酒店管理系统(完整源码,可根
- c#服装店销售管理源码系统无限制全功
- 进销存仓库管理系统ASP.Net网站
- 基于C#开发的企业工资管理系统
- 航空管理系统 asp.net
- c#酒店管理系统235697
- visual C#2005 管理系统开发经典案例 罗
- ASP.NET C#大学生就业管理系统
- C#毕业生信息管理系统源码
- c# SQL 旅游管理系统
- 小区物业管理网站 ASP.net /SQLsever
- c#宾馆管理系统实现—功能全
- 图书管理系统C#+SQL 适合毕业设计含毕
- 鲜花店管理系统asp
- C#项目 网吧管理系统
- C#+sql 2000 人力资源管理系统
- asp.net/c#酒店客房管理系统(毕业设计
- asp.net的后台权限管理系统源码-用vs导
- ASP.NET 库存管理系统
- 酒店宾馆管理系统
- C#.net宾馆酒店管理系统
- ASP.net超市商店会员刷卡消费综合管理
评论
共有 条评论