人事管理信息系统vb+sql
人事管理信息系统 use master go if exists (select * from dbo.sysdatabases where name = 'DBManPower') drop database DBManPower GO create database DBManPower go use DBManPower go if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbUser]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[tbUser] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbDuty]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[tbDuty] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbNation]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[tbNation] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbEdu]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[tbEdu] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbDep]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[tbDep] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbEmployee]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[tbEmployee] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbFamilyMember]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[tbFamilyMember] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbWorkExp]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[tbWorkExp] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbWorkRecord]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[tbWorkRecord] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[TbEvaluation]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[TbEvaluation] GO CREATE TABLE [dbo].[tbUser] ( UserId char(10) NOT NULL , UserPassword char(8) NOT NULL , UserKind varchar(20) NOT NULL, PRIMARY KEY (UserId) ) GO CREATE TABLE [dbo].[tbDuty] ( DutyId char(8) NOT NULL , DutyName varchar(20) NOT NULL , PRIMARY KEY (DutyId) ) GO CREATE TABLE [dbo].[tbNation] ( NationId char(3) NOT NULL, NationName varchar(20) NOT NULL, PRIMARY KEY (NationId) ) GO CREATE TABLE [dbo].[tbEdu] ( EduId char(2) NOT NULL , EduName varchar(20) NOT NULL , PRIMARY KEY (EduId) ) GO CREATE TABLE [dbo].[tbDep] ( DepId char(8) NOT NULL , DepName varchar(30) NOT NULL , Describe varchar(100) NULL , PRIMARY KEY (DepId) ) GO CREATE TABLE [dbo].[tbEmployee] ( EmpId char(8) NOT NULL , EmpName varchar(30) NOT NULL , Gender char(2) NULL, Age int NULL, NationId char(3) NULL, Birthday datetime NULL, PoliticalParty varchar(20) NULL, MaritalCon varchar(6) NULL , DepId char(8) NULL, HireDate datetime NULL, EduId char(2) NULL, FamilyPlace varchar(20) NULL, IdCard varchar(20) NOT NULL, Email varchar(30) NULL, Officephone varchar(20) NULL, Homephone varchar(20) NULL, Mobile varchar(20) NULL, State varchar(20) NOT NULL , Residence varchar(100) NULL, Postcode varchar(10) NULL, DutyId char(8) NULL, RecorId char(10) NULL, PRLocation varchar(50) NULL, EmpIdRecord varchar(30) NULL, PRIMARY KEY (EmpId) ) GO CREATE TABLE [dbo].[tbFamilyMember] ( Id char(8) NOT NULL , EmpId char(8) NOT NULL , Name varchar(30) NOT NULL, Gender char(2) NULL , Age int NULL, Relationship varchar(20) NULL, WorkingOrg varchar(50) NULL, Tel varchar(20) NULL, PRIMARY KEY (Id) ) GO CREATE TABLE [dbo].[tbWorkExp] ( Id char(8) NOT NULL , EmpId char(8) NOT NULL , StartDate datetime NOT NULL, EndDate datetime NOT NULL, WorkOrg varchar(50) NOT NULL, Position varchar(10) NULL, EduId char(2) NOT NULL , WorkDescri varchar(400) NULL, PRIMARY KEY (Id,EmpId) ) GO CREATE TABLE [dbo].[tbWorkRecord] ( RecordYear char(4) NOT NULL , RecordMonth char(2) NOT NULL , EmpId char (8) NOT NULL, DepId char(8) NULL , DaysPresiMonth int NULL , LeaveDays int NULL , AbsentDays int NULL , VacDays int NULL , ErrandDays int NULL , LateDays int NULL , LeaveEarlyDays int NULL , Ot1Days int NULL , Ot2Days int NULL , Ot3Days int NULL , PRIMARY KEY (RecordYear,RecordMonth,EmpId) ) GO CREATE TABLE [dbo].[tbEvaluation] ( EvaYear char(4) NOT NULL , EvaMonth char(2) NOT NULL , EmpId char (8) NOT NULL, WorkCoe int NULL, WorkDes varchar(400) NULL, WorkEva varchar(300) NULL, PRIMARY KEY (EvaYear,EvaMonth,EmpId) ) GO
- 1
- wx11782013-04-17还行,就是没有word文档说明
- 粉丝: 2
- 资源: 7
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助