数据库课程设计报告通用工资管理系统课程设计.doc_第1页
数据库课程设计报告通用工资管理系统课程设计.doc_第2页
数据库课程设计报告通用工资管理系统课程设计.doc_第3页
数据库课程设计报告通用工资管理系统课程设计.doc_第4页
数据库课程设计报告通用工资管理系统课程设计.doc_第5页
已阅读5页,还剩38页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

First compliance review of the application of the appraisal Committee, only through the compliance review of the application to take part in a detailed review. 8.1 application compliance review: does not meet one of the following conditions, procuratorial Agency to submit application through compliance reviews, be invalidated: (1) application of the formats, contents, meet the requirements of selected files, powers of Attorney, declarations by the legal representative and the tender agent application to meet the requirements; (2) licence and a bidding agent qualifications meet the requirements; (3) the similar project tendering agency agent number and provide proof of material compliance; (4) the tendering Agency intends to put into this project the number of professionals to meet the requirements; (5) are intended to the agent of the project as a project manager has similar projects the number of and references to meet the requirements; (6) no fraud case. 8.2 application review in detail the Evaluation Committee through compliance reviews will be selected for detailed review of the application. 8.2.1 tender agent institutions similar project tender performance requirements (16 points) tender agent institutions similar project tender performance 16 points, by two part composition (1) agent similar project of cumulative bid amount scored calculation rules for: Agent water project bid amount (on January 1, 2007 has has bid notice for associate) cumulative each reached 100 million Yuan have 2 points, water project cumulative bid amount scored up not over 6 points. In addition, completes a bid worth more than 500 million yuan in total 1 minute, but other items score accumulated winning amount up to a maximum of 6 points. (2) calculation rule for the number of agents similar projects: proxy bid amount (since January 1, 2007 winning notice shall prevail) bidding projects in more than 50 million Yuan by 2 points, but the Agency projects the number of scores up to 3 minutes. 8.2.2 to be agents of the construction project as a project manager in the same project performance (10 points) Project Manager agent performance scores including agents of the bidding agencies of similar projects, as well as in other similar project tendering agency service agent during performance. Total 10 Project Manager agent performance, made up of two parts (1) acting like the accumulated winning amount calculation rule: agents for water conservancy project bid amount (since January 1, 2007 winning notice for example) cumulative average reached 100 million Yuan 3 but scored no more than 5 minutes. (2) calculation rule for the number of agents similar projects: proxy bid amount (since January 1, 2007 winning notice for example) in the more than 50 million Yuan water conservancy project period of 3 minutes, but scores the number of agents similar projects up to a maximum of 5 points. Project Manager demonstrated to provincial-level and higher peoples Government or the development and Reform Commission published the winning bidder on the designated media publicity shall prevail. 8.2.3 staff requirement (25 points) 1, to the construction project serving personnel, 4 years experience in tendering agent, 2 points per person, 2 years experience in tendering agent .Pig is not a pig. With domestic international market and technology big environment of changes, as China traditional industry of pig production of job way and profit way are requirements related industry for resources integration, to quality security for premise, regulation based farming, and management cost and the production, and sales cost, go standardization, and scale, and intensive, and market road, fast upgrade whole industry chain of regulation capacity, market competition capacity and anti-risk capacity. First, industry analysis (a) the basic situation in China is a traditional hog production and consumption country, 2008 46.15 million tons of pork, pig stock 462.64 million head by the end pig slaughter 609.6 million. National pig industrys annual production value at around 650 billion yuan, nearly 50% per cent of annual output value of animal husbandry. Sichuan province in 2008 produced 6.52 million tons of pork, with 694,000 tons of Chengdu city, live pig sell 10.46 million, first 15 Vice-provincial cities in the country. The whole nation advantage regional planning (2008-2015) there are 437 counties (cities), 55, Sichuan, Chengdu has 7 (including in pengzhou). International pig industry mainly include the European Union, the United States, and Canada, and Brazil and other absolute scale of animal husbandry industry and technology developed countries. Market 1, the domestic market from Chinas meat consumption habits and economic analysis of the development situation, the emergence of new trends in the market of domestic pork and its products. Docking is a pig production and sales more closely. The Yangtze River Delta, Pearl River Delta and the Bohai rim economic developed area industrial structure adjustment gathered pace, two or three industries to the Central and Western bias. Second, the rigid domestic consumption growth. For a long period, pork is still the largest variety of meat consumption in China, the absolute consumption continues to grow. Especially in the vast rural market growth potential. Third, market for pork and higher product quality requirements. Pollution-free pork safety and health has shown a very good market prospects. Four is the market changing. Currently, cold meat, more and more varieties of meat and pork meat products, which accounted for a large proportion of pork consumption, stores, chain stores, supermarkets and other marketing methods is on the rise, and transport has been extended to more than 2000 km in RADIUS. Chengdu is an important River pig resource market, the citys commercial rate reaches above 60% of live pigs, pork and raw materials primary processing products in the domestic and international reputation is high. Western hog trading center in Chengdu and provides disease-free areas of construction in order to further accelerate the development of swine industry realizes space and conditions. 2, the international markets at present, annual volume of trade in live pigs in the world year around 18 million, about 6 million tons of pork trade. A large net exporter of pork is mainly the EU and North America,-importing countries mainly in Asia, Japan, and Korea, and Singapore, the Philippines, Hong Kong and other countries and regions, as well as Russia, about 3 million tonnes were imported. It is predicted that the world meat consumption increase of 80% in Asia in the future, our country has obvious geographical advantages, export potential. With the advancement of live pigs superiority industry belt construction, animal disease .华东交通大学理工学院通用工资管理系统课程设计报告存档资料 成绩: 华东交通大学理工学院数据库课程设计报告所属课程: 通用工资管理系统课程设计 分 院: 电子与信息工程分院 专速度业: 计算机科学与技术 学号: 学生姓名: 指导教师: 2010年12月31日 华东交通大学理工学院课 程 设 计( 论 文 )任 务 书专 业 计算机科学与技术 班 级 计科(2)班 姓名 江洋 一、课程设计(论文)题目 通用工资管理系统的设计与实现 二、课程设计(论文)工作:自 2010 年 12月 20 日起至 2012年 1 月 6 日止。三、课程设计(论文)的内容要求:(1) 鉴于嵌入式 SQL语言在软件开发应用(特别是在数据库应用系统开发中)的重要作用,掌握使用SQL语言嵌入式操作与设计的基本方法和步骤。(2) 掌握与一种高级语言结合的具体程序代码的编写方法,上机运行,调试并能得出正确的结果。本课程设计的题目是一Virtual Basic为开发环境,利用嵌入式SQL语言与SQL Server结合起来,开发一个单数据库表的应用系统,为今后真正多表数据库应用系统开发打下良好的基础。(3)要求设计一套企业工资管理系统,其中应具有一定的人事档案管理功能。通过对职工建立人事档案,根据其考勤情况以及相应的工资级别,算出其相应的工资。为了便于企业领导掌握本企业的工资信息,在系统中应加入各种查询功能,包括个人信息、职工工资、本企业内某一个月或某一部门的工资情况查询,系统应能输出各类统计报表。 学生签名(手签):_2010 年12月31日摘要 由于计算机技术的飞速发展,数据库技术作为数据管理的一个有效的手段,在各行各业中得到越来越广泛的应用。因此,本文围绕一个“通用工资管理系统”程序的设计和应用系统的开发课题为背景,详细介绍了以VB和SQL SERVER为语言编写管理信息系统的过程。该程序通过VB的ADO数据对象来实现VB前台与后台SQL SERVER数据库的连接,并具有典型的数据库应用系统的特征,完成了系统结构与现实生活的紧密结合。管理系统的开发不仅是一个应用程序编写的过程,更重要的是在系统分析和设计阶段所做的工作。该程序在设计过程中严格遵循软件工程学的方法,用分阶段的生命周期计划严格管理,并主要讲述了程序的总体设计、详细设计阶段,对程序进行需求迭代,不断修正和改进,利用SQL SERVER的强大数据库功能,直到形成一个完善的可行性系统.较好的界面,方便实用的查询与维护功能共同构成了“人事工资管理系统”。关键词:VB,SQL SERVER,数据库,通用工资管理系统目 录第1章 引言.51.1 设计目的.51.2 设计要求.51.3 设计环境.51.4 设计分工.5第2章 需求分析.62.1 系统性需求分析.62.2 数据流图.62.3数据字典.7 2.3.1 数据结构描述.7 3.2.2 数据流的描述.82.3.3 主要数据存储的定义.8第3章 概要设计.103.1 E-R图.10第4章 逻辑设计.124.1 数据库关系模式.124.2 关系模型的优化.124.3 建立表格.12第5章 物理设计和实施.14第6章 数据库的实现.146.1 用户登入模块.146.2 子模块的设计.176.2.1 用户管理模块.176.2.2 员工信息管理模块.216.2.3 部门信息管理.266.2.4 考勤信息管理.306.2.5 工资信息管理.326.2.6 津贴信息管理.36第7章 系统运行.42第8章 总结.43第1章 引言1.1 设计目的(1) 鉴于嵌入式 SQL语言在软件开发应用(特别是在数据库应用系统开发中)的重要作用,掌握使用SQL语言嵌入式操作与设计的基本方法和步骤。(2) 掌握与一种高级语言结合的具体程序代码的编写方法,上机运行,调试并能得出正确的结果。本课程设计的题目是一Virtual Basic为开发环境,利用嵌入式SQL语言与SQL Server结合起来,开发一个单数据库表的应用系统,为今后真正多表数据库应用系统开发打下良好的基础。1.2 设计要求要求设计一套企业工资管理系统,其中应具有一定的人事档案管理功能。通过对职工建立人事档案,根据其考勤情况以及相应的工资级别,算出其相应的工资。为了便于企业领导掌握本企业的工资信息,在系统中应加入各种查询功能,包括个人信息、职工工资、本企业内某一个月或某一部门的工资情况查询,系统应能输出各类统计报表。1.3 设计环境(1) 中文Windows操作系统。(2) SQL Server 2005.(3) Virtual Basic 6.0中文版。1.4 设计分工同组人:1班37号 邹海荣分工:课程设计中各任务的设计和调试独立思考,独立完成。第2章 需求分析2.1 系统性需求分析需求分析的第一步描述工资管理系统的功能,即定义用例,以此确定系统的功能需求。经过调研及分析,工资管理信息系统主要完成以下功能:(1) 管理员身份的确认:只有用户名和用户密码都相符的管理员方可进入本系统,为了防止不合法用户对数据的察看和修改,管理员可以设定用户名、密码和其权限,还可以对纪录进行增加、删除、修改等操作。(3) 工资信息模块:员工每个月度的基本工资、岗位工资、水电费、津贴工资、扣除薪酬、实发金额。(4) 部门信息模块:公司各部门编号、名称、负责人、人数。(5) 考勤模块:记录员工迟到、缺席次数。(6) 津贴模块:记录员工加班情况派发津贴。(7) 员工信息模块:管理员对所需要的资料的查询即对员工基本信息的增加、删除、修改、查询操作。图2.1 系统功能模块2.2 数据流图经过需求分析和得到的系统功能模块图,可得到相应的数据流图,其中0层通用工资管理体统如图2.2所示。图2.2 通用工资关系系统0层数据流图2.3数据字典2.3.1 数据结构描述名称:员工(Employee)含义说明:员工信息组成结构:员工编号+姓名+性别+年龄+所属部门+文化程度+职称名称:工资(Salary)含义说明:工资信息组成结构:员工编号+基本工资+实际工资+津贴工资+扣除工资名称:部门(branch)含义说明:部门信息组成结构:部门编号+部门名称+部门负责人+部门人数3.2.2 数据流的描述数据流名称:员工信息添加 简述:新员工信息录入数据流来源:公司管理人员数据流去向:员工信息数据流组成:员工编号+姓名+性别+年龄+所属部门+文化程度+职称数据流名称:员工信息修改 简述:员工信息错误或者员工调动数据流来源:员工信息数据流去向:员工信息数据流组成:员工编号+姓名+性别+年龄+所属部门+文化程度+职称数据流名称:员工信息删除 简述:员工离职数据流来源:员工信息数据流去向:员工信息数据流组成:员工编号+姓名+性别+年龄+所属部门+文化程度+职称数据流名称:工资添加 简述:新员工工资添加数据流来源:公司管理者数据流去向:工资信息数据流组成:员工号+基本工资+实际工资+津贴工资+扣除薪酬数据流名称:工资修改 简述:公司对工资修改数据流来源:公司管理人员数据流去向:工资信息数据流组成:员工号+基本工资+岗位工资+津贴工资+扣除薪酬2.3.3 主要数据存储的定义存储名称:员工记录说明:存储员工信息输入:员工基本信息输出:员工所有信息数据结构:员工编号+姓名+性别+年龄+所属部门+文化程度+职称存储名称:部门记录说明:存储部门信息输入:部门基本信息输出:部门所有信息数据结构:部门编号+部门名称+部门负责人+部门人数存储名称:工资记录说明:存储工资信息输入:员工工资信息输出:员工所有工资信息数据结构:员工编号+基本工资+实际工资+津贴工资+扣除工资存储名称:考勤记录说明:存储各员工的考勤信息输入:员工考勤信息输出:员工所有考勤信息数据结构:员工编号+迟到次数+缺席次数存储名称:津贴记录输入:员工津贴信息输出:员工所有津贴信息数据结构:员工编号+加班天数+津贴工资第3章 概念结构设计3.1 E-R图 根据需求分析阶段得到的数据流图和数据字典,可以得出该工资管理系统的E-R图,如下图所示。图3.1 用户信息E-R图图3.2 员工信息E-R图图3.3 部门信息E-R图图3.4 津贴信息E-R图图3.5 考勤信息E-R图图3.6 工资信息E-R图将以上E-R图合并可得该系统的总E-R图,如图3.7所示。图3.7 通用工资管理系统总E-R图第4章 逻辑结构设计4.1 数据库关系模式逻辑结构设计的任务就是把概念结构设计阶段得到的E-R图转换为与选用的DBMS产品所支持的数据模型相符合的逻辑结构。以下模式就是将E-R图转换为关系模式。其中标下划线的为主码。员工信息(员工编号、姓名、性别、年龄、所属部门、文化程度、职称)部门信息(部门编号、部门名称、部门负责人、部门人数)基本工资(工资级别、基本工资)工资信息(员工编号、基本工资、津贴工资、扣除工资、实际工资)考勤信息(员工编号、迟到次数、缺勤次数)津贴信息(员工编号、加班天数、津贴工资) 用户信息(用户号、密码)4.2 关系模型的优化经分析得出,以上关系模式由于存在传递依赖,如津贴工资函数依赖于加班天数,故须对其进行优化处理。使其至少满足3NF,优化处理结果如下所示:员工信息(员工编号、姓名、性别、年龄、所属部门、文化程度、职称)部门信息(部门编号、部门名称、部门负责人、部门人数)基本工资(工资级别、基本工资)工资信息(员工编号、基本工资、津贴工资、扣除工资、实际工资)考勤信息(员工编号、迟到次数、缺勤次数)津贴信息(员工编号、加班天数)津贴情况(加班天数,津贴工资) 用户信息(用户号、密码)4.3 建立表格工资信息管理系统数据库中各个表格的设计结果如下面的几个表格所示。每个表格表示在数据库中的一个表。表4-1 员工信息表字段名称存储代码主键数据类型允许空值员工编号Eno是Char(8)Not null姓名Ename否Char(8)null性别Esex否Char(2)null年龄Eage否intnull所属部门Edep否Char(4)null文化程度Ecul否Char(4)null职称Ejob否Char(12)null表4-2 部门信息表字段名称存储代码主键数据类型允许空值部门编号Dno是Char(4)Not null部门名称Dname否Char(20)null部门负责人Eno否Char(8)null部门人数Dnum否intnull表4-3 基本工资表字段名称存储代码主键数据类型允许空值工资级别Sno是Char(2)Not null基本工资Sbas否intnull表4-4 工资信息表字段名称存储代码主键数据类型允许空值员工编号Eno是Char(8)Not null基本工资Sbas否intnull津贴工资Ssub否intnull扣除工资Sred否intnull实际工资Srel否intnull表4-5 考勤信息表字段名称存储代码主键数据类型允许空值员工编号Eno是Char(8)Not null迟到次数Elat否intnull缺勤次数Eabs否intnull表4-6 津贴信息表字段名称存储代码主键数据类型允许空值员工编号Eno是Char(8)Not null加班天数Eadd否intnull表4-7 津贴情况表字段名称存储代码主键数据类型允许空值加班天数Eadd是intNot null津贴工资Ssub否intnull表4-8 用户信息表字段名称存储代码主键数据类型允许空值用户号Eno否Char(8)Not null密码pasw否Char(6)null第5章 物理设计和实施数据库的建立如上表所示,存储路径等均采用系统默认设置。第6章 数据库的实现6.1 用户登入模块经过以上步骤,建立了数据库和表之后,下面将在Vistual Basic 平台上与嵌入式SQL一起实现通用工资管理系统的功能。 6.1.1 “登陆模块”详细设计“登录模块”的设计主要是针对用户登录界面的设计,判断用户是否有权限访问系统,从而进入“主界面”。登陆界面主要由用户名和密码的信息,还有确定和取消按钮的设置。用户只有选择用户名后填入相应的密码后点击“确定”才能进入主界面,点击“取消”会退出系统。登陆界面设计,如图6.2所示。v图6.1 登入界面当用户操作有误时,会有如图6.2所示的错误信息。图6.2 登入失败界面登入界面对话框的代码如下。“确定”按钮的源代码:Private Sub Command1_Click()Dim r As IntegerDim rr As Integer If Me.txtUserName.Text = Then r = MsgBox(请输入用户名!, , 应付帐管理) txtUserName.SetFocus Exit Sub End If If Me.txtPassword.Text = Then rr = MsgBox(请输入密码!, , 应付帐管理) txtPassword.SetFocus Exit Sub End If Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Wage;Data Source=PC2006110122EOA Set rs = New ADODB.Recordset Dim s1_Sql As String s1_Sql = SELECT * FROM 用户表 WHERE 用户号= & Trim(txtUserName.Text) & and 密码= & Trim(Me.txtPassword.Text) & rs.Open s1_Sql, cn, adOpenStatic, adLockOptimistic On Error Resume Next rs.MoveFirst If Err = 3021 Then r = MsgBox(用户名或密码错误,请重新检查!, , 应付帐管理) Exit Sub End If 系统.Show Unload MeEnd Sub“取消”按钮的源代码:Private Sub Command2_Click()Unload MeEnd Sub由于“取消”按钮的源代码基本上是一样的,以下的模块江不再多述。6.1.2 “主界面”的详细设计主界面的设计是由菜单编辑器生成,主要由系统设置、设置、信息维护、工资查询五个模块组成。其作用是使程序更加有条有理,有利于管理。其中普通用户只可部分操作,管理员可以对所有模块进行操作。6.2 子模块的设计6.2.1用户管理模块 选择“用户管理”“添加用户”菜单,在添加用户的窗体里输入用户名、密码系统自动新增用户名及其用户信息。如图6.4所示。为了提高系统的安全性,我在系统中设置了修改密码功能,只要输入修改后的密码即可,它会有修改后的提示信息,如图6.5所示。图6.3 工资管理系统总界面实现工资管理系统对话框的源代码如下:Private Sub A1_Click(Index As Integer)添加用户.ShowEnd SubPrivate Sub A2_Click(Index As Integer)修改密码.ShowEnd SubPrivate Sub B1_Click(Index As Integer)员工信息设置.ShowEnd SubPrivate Sub C1_Click(Index As Integer)部门信息设置.ShowEnd SubPrivate Sub D1_Click(Index As Integer)考勤信息设置.ShowEnd SubPrivate Sub E1_Click(Index As Integer)基本工资管理.ShowEnd SubPrivate Sub E2_Click(Index As Integer)工资信息表设置.ShowEnd SubPrivate Sub F1_Click(Index As Integer)津贴信息表设置.ShowEnd SubPrivate Sub F2_Click(Index As Integer)津贴情况表设置.ShowEnd SubPrivate Sub G_Click(Index As Integer)Unload MeEnd SubPrivate Sub wrtdep_Click(Index As Integer)修改部门信息.ShowEnd Sub图6.4 添加用户“添加用户”的源代码:Private Sub cmbfield_Click()cmbname.ClearAdodc1.RecordSource = select * from 用户表Adodc1.RefreshDo While Not Adodc1.Recordset.EOFcmbname.AddItem Adodc1.Recordset.Fields(cmbfield.Text)Adodc1.Recordset.MoveNextLoopcmbname.Text = cmbname.List(0)End SubPrivate Sub cmbname_Click()Dim conditioncondition = Trim(cmbfield.Text)If VarType(condition) = 8 ThenAdodc1.RecordSource = select * from 用户表 where & condition & = & cmbname.Text & 这里紧接上行,一下其他类是地方也同样ElseAdodc1.RecordSource = select * from 用户表 where & condition & = & cmbname.TextEnd IfAdodc1.RefreshAdodc1.Recordset.MoveFirstText1.Text = Adodc1.Recordset.Fields(Eno)Text2.Text = Adodc1.Recordset.Fields(密码)End SubPrivate Sub cmdadd_Click()On Error GoTo errorhandlerIf Text1.Text ThenAdodc1.Recordset.AddNewAdodc1.Recordset.Fields(Eno) = Text1.TextAdodc1.Recordset.Fields(密码) = Text2.TextAdodc1.Recordset.Updatecmbname.ClearAdodc1.RecordSource = select * from 用户表Adodc1.RefreshDo While Not Adodc1.Recordset.EOFcmbname.AddItem Adodc1.Recordset.Fields(1)Adodc1.Recordset.MoveNextLoopcmbfield_ClickElseMsgBox 员工号是主索引,不能为空, 错误提示End IfExit Suberrorhandler:MsgBox 员工号是主索引,不能重复, 错误提示End SubPrivate Sub Command2_Click()系统.ShowEnd SubPrivate Sub Form_Load()Dim i As IntegerAdodc1.RecordSource = select * from 用户表Set DataGrid1.DataSource = Adodc1cmbfield.ClearFor i = 0 To Adodc1.Recordset.Fields.Count - 1cmbfield.AddItem Ado

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论