freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

高校學(xué)生成績管理信息系統(tǒng)--erp課程設(shè)計-文庫吧

2025-01-03 16:12 本頁面


【正文】 l 矩形框,表示實(shí)體類型(考慮問題的對象)。l 菱形框,表示聯(lián)系類型(實(shí)體間的聯(lián)系)。l 橢圓形框,表示實(shí)體的屬性。根據(jù)對數(shù)據(jù)項與數(shù)據(jù)結(jié)構(gòu)的分析,設(shè)計出能夠滿足系統(tǒng)需求的各種實(shí)體,及它們之間的關(guān)系,為后面的邏輯結(jié)構(gòu)設(shè)計打下基礎(chǔ)。本系統(tǒng)包括的實(shí)體有教師實(shí)體,課程實(shí)體。 各實(shí)體屬性圖如下所示:教師課程教師號工齡地址聯(lián)系方式性別系別年齡職稱教師名課程名課時課程號學(xué)期學(xué)分授課1n圖42 系統(tǒng)ER圖 邏輯結(jié)構(gòu)設(shè)計院系信息表圖43 院系信息表教師信息表圖44 教師信息表課程信息表圖44 課程信息表 SQL語句的實(shí)現(xiàn)由于本小組除了構(gòu)建教師信息管理模塊和課程信息管理模塊之外,還需要收集各小組的代碼進(jìn)行拼接,并對其進(jìn)行測試功能,所以需要對整個學(xué)生成績信息管理系統(tǒng)構(gòu)建完整的數(shù)據(jù)庫,因此這里我就一起創(chuàng)建了所有需要的表。具體步驟如下:(1)創(chuàng)建數(shù)據(jù)庫:studentcreate database studentuse student(2)創(chuàng)建班級表create table ClassIfo(id int primary key,name char(20),depart varchar(20),departid int foreign key (departid) references department(id),)(3)創(chuàng)建學(xué)生表create table StuIfo(id int primary key,name char(20),birth char(20),sex char(2) check (sex in (39。男39。,39。女39。)),classid int foreign key(classid)references ClassIfo(id),address varchar(50),tel char(20),)(4)創(chuàng)建系別表create table department(id int identity(1,1) primary key,name varchar(50) not null,)(5)創(chuàng)建專業(yè)表create table major(id int primary key,name varchar(50) not null,did int foreign key (did) references department(id))(6)創(chuàng)建教師表create table Teacher(tno int identity(1,1) primary key,tname char (20) not null,tsex char(2) check (tsex in(39。男39。,39。女39。)),tage int check(tage 1 and tage 150),tseninority int,taddress char(200),ttelephone char(20),tdepart char(50),trank char(100),)(7)創(chuàng)建課程表create table Course(o int identity(1,1) primary key,ame char (20),chours int,ccredit int check(ccredit 1 and ccredit 10),tno int foreign key(tno) references Teacher(tno),)(8)創(chuàng)建成績表create table score( sno int foreign key(sno) references StuIfo(id), o int foreign key(o) references Course(o), Grade float check ( (Grade=0) and (Grade=100))) 數(shù)據(jù)庫與eclipse的鏈接(1)首先,先在Windows系統(tǒng)打開控制面板——管理工具——數(shù)據(jù)源(ODBC)——系統(tǒng)DSN——添加——SQL——填寫數(shù)據(jù)源名稱(即studentDB)——鏈接數(shù)據(jù)庫student——》對數(shù)據(jù)源studentDB并進(jìn)行測試,測試測試成功。(2)在系統(tǒng)界面包里面添加一個類(SQLHelper)的頁面添加,然后其他類可以通過調(diào)用詞類再加上自己的SQL語句,就可實(shí)現(xiàn)與數(shù)據(jù)庫鏈接,具體代碼如下:package 。 //導(dǎo)包import 。import 。import 。import 。import 。import 。public class SqlHelper { ** * 操作數(shù)據(jù)庫的方法 * @param sql * @return 更新行數(shù) */public static int executeUpdate(String sql){ int count=0。 try { ()。 Connection conn=(jdbc:odbc:studentDB)。 Statement st=()。 count = (sql)。 ()。 ()。 } catch (ClassNotFoundException e1) { (未找到驅(qū)動!)。 ()。 } catch (SQLException e2) { ()。 } return count。 } /** * 檢索數(shù)據(jù)庫的方法 * @param sql * @return 數(shù)據(jù)集 notic: 不能關(guān)閉任何對象,由調(diào)用方關(guān)閉對象 */ public static ResultSet executeQuery(String sql){ ResultSet rs=null。 try { ()。 Connection conn=(jdbc:odbc:studentDB)。 Statement st=()。 rs = (sql)。 } catch (ClassNotFoundException e1) { (未找到驅(qū)動!)。 ()。 } catch (SQLException e2) { ()。 } return rs。 }}5 詳細(xì)設(shè)計 教師子系統(tǒng)詳細(xì)設(shè)計 添加教師信息模塊運(yùn)行界面圖 52 添加教師基本信息具體代碼如下:package 。 import .*。 import .*。 import .*。 import .*。 public class Add_TeacherInfo extends JInternalFrame implements ActionListener{ static Add_TeacherInfo ss。 String tname=。 //姓名 String tsex=。 //性別 int tage。 //年齡 String trank=。 //職稱 int tseninority。 //工齡 String tdepart=。 //系別 String taddress=。 //地址 String ttelephone=。 //聯(lián)系方式 String tno= (())。 JLabel warning=new JLabel()。 //輸入信息提示框 JLabel title=new JLabel()。 JLabel jltno=new JLabel(教 工 號:)。 //創(chuàng)建文本框?qū)ο? JLabel jltname=new JLabel(姓 名:)。 JLabel jltsex=new JLabel(性 別:)。 JLabel jltage=new JLabel(年 齡:)。 JLabel jltdepart=new JLabel(系 別:)。 JLabel jltseninority=new JLabel(工 齡:)。 JLabel jltaddress=new JLabel(地 址:)。 JLabel jlttelephone=new JLabel(聯(lián)系方式:)。 JLabel jltrank=new JLabel(職 稱:)。 JTextField jtno=new JTextField()。 JTextField jtname=new JTextField()。 JTextField jtsex=new JTextField()。 JTextField jtage=new JTextField()。 JTextField jtdepart=new JTextField()。 JTextField jtseninority=new JTextField()。 JTextField jtaddress=new JTextField()。 JTextField jttelephone=new JTextField()。 JComboBox cboRank=new JComboBox()。 ButtonGroup bg=new ButtonGroup()。 //創(chuàng)建ButtonGroup組件對象 JPanel jp=new JPanel()。 //創(chuàng)建Panel容器 JLabel jl=new JLabel()。 JRadioButton jrmen=new JRadioButton(男,true)。 JRadioButton jrwomen=new JRadioButton(女)。 JButton submit=new JButton(添加)。 //創(chuàng)建按鈕對象 JButton reset=new JButton(重置)。 public Add_TeacherInfo(){ (添加教師基本信息)。 //設(shè)置窗口標(biāo)題 MyPanel contentPane=new MyPanel()。 (contentPane)。 (null)。 // (null)。 //設(shè)置窗口布局管理器 (jltno)。 //將控件添加 到窗體 (title)。 (jltname)。 (jltsex)。 (jltage)。 (jltdepart)。 (jltseninority)。 //將控件添加 到窗體 (jltaddress)。 (jlttelephone)。 (jltrank)。 (jtno)。 (jtname)。 (jtsex)。 (jtage)。 (jtdepart)。 (jtseninority)。 (jtaddress)。 (jttelephone)。 (cboRank)。 (jrmen)。 //將所有空間加入窗體 (jrwomen)。 (jrmen)。 (jrwomen)。 (jp)。 (tno)。 (false)。 (submit)。 (reset)。 (warning)。 (new Font(red,21))。 //設(shè)置提示字體 ()。 (new Font(red,15))。 //設(shè)置提示字體 ()。 (添加教師基本信息)。 (222,20,200,25)。 //屬性框 (80,60,100,25)。 (80,100,100,25)。 (80,140,100,25)。 (80,180,100,25)。 (80,220,100,25)。 (340,60,100,25)。 (340,100,100,25)。 (340,140,100,25)。 (340,180,100,25)。 (150,60,140,25)。 //文本框 (150,100,140,25)。 (150,135,100,30)。 (150,180,140,25)。 (150,220,140,25)。 //地址文本框 (410,60,140,25)。 (410,100,140,25)。 (410,140,140,25)。 (410,180,140,25)。 (200,270,60,25)。 (350,270,60,25)。 (420,100,150,25)。 (this)。 (this
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1