數(shù)據(jù)庫課程設(shè)計(jì)之轎車信息管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)_第1頁
數(shù)據(jù)庫課程設(shè)計(jì)之轎車信息管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)_第2頁
數(shù)據(jù)庫課程設(shè)計(jì)之轎車信息管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)_第3頁
數(shù)據(jù)庫課程設(shè)計(jì)之轎車信息管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)_第4頁
數(shù)據(jù)庫課程設(shè)計(jì)之轎車信息管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)_第5頁
已閱讀5頁,還剩9頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、 轎車信息管理系統(tǒng)的數(shù)據(jù)庫設(shè)計(jì)與實(shí)現(xiàn)一、數(shù)據(jù)庫需求分析管理信息系統(tǒng)在現(xiàn)代社會(huì)已深入到各行各業(yè),由于計(jì)算機(jī)技術(shù)的迅速發(fā)展和普及,管理信息系統(tǒng)事實(shí)上已成為計(jì)算機(jī)管理信息系統(tǒng)。轎車信息管理系統(tǒng)是基于商品信息數(shù)據(jù)庫,遵照商場(chǎng)實(shí)際管理流程,對(duì)商場(chǎng)商品的進(jìn)、銷、存的全過程進(jìn)行全面管理的計(jì)算機(jī)應(yīng)用系統(tǒng)。它將人工智能的理論引入商場(chǎng),其目標(biāo)是將商場(chǎng)人工操作的商品信息管理工作,轉(zhuǎn)為有計(jì)算機(jī)網(wǎng)絡(luò)系統(tǒng)自動(dòng)操作完成。該系統(tǒng)實(shí)現(xiàn)了對(duì)整個(gè)商場(chǎng)商品信息資源的合理共享與分配,并進(jìn)行科學(xué)有效的管理,在這個(gè)基礎(chǔ)上謀求提高商品的信息管理效率。在整個(gè)課程設(shè)計(jì)過程中,本設(shè)計(jì)具體完成了對(duì)“基本資料” 、“售后服務(wù)管理” 、“銷售管理” 、

2、“庫存管理”和“系統(tǒng)管理”這5個(gè)功能模塊的實(shí)現(xiàn)。所以本設(shè)計(jì)主要是對(duì)這5個(gè)模塊的設(shè)計(jì),以實(shí)用、標(biāo)準(zhǔn)、可靠、強(qiáng)擴(kuò)展性的原則為出發(fā)點(diǎn),能夠?yàn)樯唐返倪M(jìn)銷存提供最簡(jiǎn)便、最科學(xué)、最優(yōu)化的系統(tǒng)設(shè)計(jì)和服務(wù)。本系統(tǒng)結(jié)合實(shí)際的轎車銷售服務(wù)管理制度。經(jīng)過實(shí)際的需求分析,確定需要包含以下數(shù)據(jù)庫信息:【轎車庫存信息:】轎車編號(hào)(標(biāo)識(shí)列,轎車型號(hào),轎車名稱,顏色,庫存量,生產(chǎn)廠家,出廠日期,出廠價(jià)格,備注;【員工信息:】員工編號(hào),姓名,性別,年齡,籍貫,聯(lián)系電話,學(xué)歷,身份證號(hào),崗位;【客戶信息:】客戶編號(hào),客戶姓名,客戶等級(jí),聯(lián)系電話,地址,業(yè)務(wù)記錄;【轎車銷售信息:】序號(hào)(標(biāo)識(shí)列,銷售日期,轎車型號(hào),顏色,數(shù)量,經(jīng)手

3、人編號(hào),實(shí)際售價(jià),車輛牌照,客戶編號(hào),備注;【售后管理:】序號(hào)(標(biāo)識(shí)列,客戶編號(hào),保養(yǎng)人編號(hào),車輛牌照,保養(yǎng)日期,業(yè)務(wù)記錄; 二、轎車銷售管理系統(tǒng)ER圖(1轎車庫存信息關(guān)系圖 (2員工信息關(guān)系圖 (3客戶信息關(guān)系圖 (4轎車銷售信息關(guān)系圖 (5轎車售后管理信息關(guān)系圖 以上實(shí)例,ER關(guān)系圖如下: 三、數(shù)據(jù)庫表信息查詢字典轎車信息庫存表 員工信息表 客戶信息表 轎車銷售表 售后管理表 三、數(shù)據(jù)庫及數(shù)據(jù)表的設(shè)計(jì)實(shí)現(xiàn)<1>create database jcxson primary(name='jcxs_data',filename='F:SQL_SERVER課程設(shè)

4、計(jì)轎車銷售管理系統(tǒng)jcxs_data.mdf',size=1filegrowth=10%log on(name='jcxs_log',filename='F:SQL_SERVER課程設(shè)計(jì)轎車銷售管理系統(tǒng)jcxs_data.mdf',size=1,filegrowth=10%Go <2>轎車信息庫存表use jcxsgoif exists (select * from sysobjects where name='轎車信息庫存表' and type='u' drop table 轎車信息庫存表gocreate t

5、able 轎車信息庫存表(轎車編號(hào)varchar(10 primary key,轎車型號(hào)varchar(10 null,轎車名稱varchar(10 null,顏色varchar(10 null, 庫存量int not null,生產(chǎn)廠家varchar(20 null,出廠價(jià)格varchar(10 not null,備注varchar(100 null <3>員工信息表use jcxsgoif exists (select * from sysobjects where name='員工信息表' and type='u' drop table 員工信

6、息表gocreate table 員工信息表(員工編號(hào)varchar(10 primary key,姓名varchar(10 null,性別varchar(2 null,出生日期datetime null,籍貫varchar null,學(xué)歷varchar(10 null,聯(lián)系電話varchar(15 null,崗位varchar(10 null,身份證varchar(20 null <4>客戶信息表use jcxsgoif exists (select * from sysobjects where name='客戶信息表' and type='u'

7、 drop table 客戶信息表gocreate table 客戶信息表(客戶編號(hào)varchar(10 primary key,客戶姓名varchar(10 null,客戶等級(jí)varchar(10 null,聯(lián)系電話varchar(15 null,地址varchar(50 null,優(yōu)惠項(xiàng)目varchar(50 null <5>轎車銷售表use jcxsgoif exists (select * from sysobjects where name='轎車銷售表' and type='u' drop table 轎車銷售表gocreate tabl

8、e 轎車銷售表(銷售序號(hào)varchar(10 primary key,課程設(shè)計(jì)說明書(論文用紙 銷售日期 datetime not null, 客戶編號(hào) varchar(10 not null references 客戶信息表(客戶編號(hào), 轎車型號(hào) varchar(20 not null, 顏色 varchar(10 not null, 數(shù)量 int not null, 實(shí)際售價(jià) numeric not null, 經(jīng)手人編號(hào) varchar(10 not null, 車輛牌照 varchar(10unique not null, 備注 varchar(200 null <6>售后

9、管理表 use jcxs go if exists (select * from sysobjects where name='售后管理表' and type='u' drop table 售后管理表 go create table 售后管理表 (服務(wù)序號(hào) varchar(10 primary key, 保養(yǎng)日期 datetime not null, 客戶編號(hào) varchar(10 not null references 客戶信息表(客戶編號(hào), 車輛牌照 varchar(10 not null references 轎車銷售表(車輛牌照, 保養(yǎng)人編號(hào) varch

10、ar(10 not null references 員工信息表(員工編號(hào), 業(yè)務(wù)記錄 varchar(200 null 11 課程設(shè)計(jì)說明書(論文用紙 觸發(fā)器(1) use jcxs go if exists(select * from sysobjects where name='tr1' and type='tr' drop trigger tr1 go create trigger tr1 on 轎車信息庫存表 instead of insert as if (select 轎車型號(hào) from 轎車信息庫存表=(select 轎車型號(hào) from inser

11、ted and (select 顏色 from 轎車信息庫存表=(select 顏色 from inserted update 轎車信息庫存表 set 庫存量=庫存量+(select 庫存量 from inserted where (select 轎車型號(hào) from 轎車信息庫存表=(select 轎車型號(hào) from inserted and (select 顏色 from 轎車信息庫存表=(select 顏色 from inserted else begin insert 轎車信息庫存表 select * from inserted end 觸發(fā)器(2) use jcxs go if exi

12、sts(select * from sysobjects where name='tr2' and type='tr' drop trigger tr2 go create trigger tr2 on 轎車銷售表 after insert as 12 課程設(shè)計(jì)說明書(論文用紙 if (select 轎車型號(hào) from 轎車信息庫存表=(select 轎車型號(hào) from inserted and (select 顏色 from 轎車信息庫存表=(select 顏色 from inserted begin if (select 轎車型號(hào) from 轎車信息庫存表=(select 轎車型號(hào) from inserted and (select 顏色 from 轎車信息庫存表=(select 顏色 from inserted and (select 庫存量 from 轎車信息庫存表>=(select 數(shù)量 from inserted update 轎車信息庫存表 set 庫存量=庫存量-(select 數(shù)量 from inserted where (select 轎車型號(hào) from 轎車

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論