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

正文內(nèi)容

自己用java做的客戶資源管理系統(tǒng)(編輯修改稿)

2025-05-12 22:19 本頁面
 

【文章內(nèi)容簡介】 =39。+hetongID+39。)。 //利用消息對話框提示刪除操作成功 (this,刪除操作成功!)。 //清空輸入合同ID的文本行 ()。 } catch(Exception ex){ //利用消息對話框提示不能刪除 (this,刪除操作執(zhí)行失敗!)。 } } }//查詢合同的actionpublic void actionPerformed(ActionEvent e) { //獲取用戶輸入的產(chǎn)品ID String hetongID=()。 //清空文本區(qū)原有的內(nèi)容 ()。 try{ //利用st對象執(zhí)行SQL語句,返回結(jié)果集對象 ResultSet rs=(select * from contract where 合同ID=39。+hetongID+39。)。 //處理結(jié)果集:逐條顯示結(jié)果集中的記錄 if(()) { ((合同ID)+ +(客戶姓名)+ +(合同名稱)+ +(合同日期)+ +(負(fù)責(zé)人)+ +(合同金額)+\n)。 //清空文本行的內(nèi)容 ()。} else { (this,沒有這個合同信息!)。 }} catch(Exception ex){ //利用消息對話框提示查詢失敗 (this,查詢失敗!)。 }}//修改合同的actionpublic void actionPerformed(ActionEvent e) { if(()==jButton1){ ResultSet rs。 String hetongID=()。//產(chǎn)品ID try{ //利用st對象執(zhí)行SQL語句,返回結(jié)果集對象 rs=(select * from contract where 合同ID=39。+hetongID+39。)。 //處理結(jié)果集:逐條顯示結(jié)果集中的記錄 //此處沒有使用while,因?yàn)閷W(xué)號是唯一的,而姓名不是, if(()) { ((合同ID))。 ((客戶姓名))。 ((合同名稱))。 ((合同日期))。 ((負(fù)責(zé)人))。 ((合同金額))。 } else { (this,沒有這個產(chǎn)品ID號!)。 }} catch(Exception ex){ //利用消息對話框提示查詢失敗 (this,查詢失敗!)。 }} if(()==jButton2){ String qqq=()。 String hetongID=()。 String xingming=()。 String hetongmingcheng=()。 String hetongriqi=()。 String fuzheren=()。 String hetongjiner=()。 try { (delete from contract where 合同ID=39。+qqq+39。)。 } catch (SQLException e1) { // TODO Autogenerated catch block ()。} //利用消息對話框提示刪除操作成功 try { (insert into contract values(39。+hetongID+39。,39。+xingming+39。,39。+hetongmingcheng+39。,39。+hetongriqi+39。,39。+fuzheren+39。,39。+hetongjiner+39。))。 } catch (SQLException e1) { // TODO Autogenerated catch block ()。} //清空文本行的內(nèi)容 try{ //清空文本行的內(nèi)容 ()。 ()。 ()。 ()。 ()。 ()。 //利用消息對話框提示刪除操作成功 (this,修改成功!)。 } catch(Exception ex){ //利用消息對話框提示不能插入,并顯示異常的信息 (this,輸入數(shù)據(jù)錯誤或者數(shù)據(jù)庫不允許插入!)。 ()。 } } }后 記課設(shè)資源管理系統(tǒng)已經(jīng)成功的完成了,看著自己做出的成果,此時(shí)讓我感到無比的輕松。在此,我不得不首先感謝我的指導(dǎo)老師張春娥老師,老師的耐心才使我更加有信心的去做好此次課設(shè)。因?yàn)橹耙驗(yàn)槲以鴩L試使用netbeans編寫,但發(fā)現(xiàn)最后連不上數(shù)據(jù)庫,因此放棄改用eclipse,純代碼編寫,最后時(shí)間只是編寫了個簡單的系統(tǒng),在此謝謝老師的理解。 姓 名班 級指導(dǎo)教師題 目客戶資源管理系統(tǒng)指導(dǎo)教師評語評定成績: 指導(dǎo)教師簽字: 年 月 日完整代碼:因把登入界面去掉了。建個main類,以下依次建類,//導(dǎo)入包import .*。import .*。//創(chuàng)建主系統(tǒng)類class Main{ public static void main (String[] args) { //創(chuàng)建主界面 MainFrame frame=new MainFrame()。 //獲取屏幕尺寸 Dimension screenSize=().getScreenSize()。 //獲取主界面的窗體尺寸 Dimension frameSize =()。 //令主界面窗體居中 if() =。 if() =。 (()/2,()/2)。 //令主界面顯示 (true)。 }}///////////////////////////////////////////////////華麗分割//////////////////////////////////////////////////////////////////////////導(dǎo)入系統(tǒng)的包import .*。import .*。import .*。//創(chuàng)建主界面類public class MainFrame extends JFrame implements ActionListener{ //創(chuàng)建內(nèi)容面板 JPanel contentPane。 //創(chuàng)建菜單欄 JMenuBar jMenuBar1=new JMenuBar()。 JMenu jMenu=new JMenu(產(chǎn)品管理)。 JMenuItem jMenuFile1=new JMenuItem(添加產(chǎn)品)。 JMenuItem jMenuFile2=new JMenuItem(刪除產(chǎn)品)。 JMenuItem jMenuFile3=new JMenuItem(查詢產(chǎn)品)。 JMenuItem jMenuFile4=new JMenuItem(修改產(chǎn)品)。 ////////////////////////////////////////// JMenu jMenu1=new JMenu(客戶管理)。 JMenuItem jMenuItem1=new JMenuItem(添加客戶)。 JMenuItem jMenuItem2=new JMenuItem(刪除客戶)。 JMenuItem jMenuItem3=new JMenuItem(查詢客戶)。 JMenuItem jMenuItem4=new JMenuItem(修改客戶)。 /////////////////////////////////////////////// JMenu jMenu2=new JMenu(合同管理)。 JMenuItem jMenuItem5=new JMenuItem(添加合同)。 JMenuItem jMenuItem6=new JMenuItem(刪除合同)。 JMenuItem jMenuItem7=new JMenuItem(查詢合同)。 JMenuItem jMenuItem8=new JMenuItem(修改合同)。 ////////////////////////////////////////////// JMenu jMenuHelp=new JMenu(幫助)。 JMenuItem jMenuHelpAbout=new JMenuItem(關(guān)于)。 JMenuItem jMenuHelpAbout2=new JMenuItem(退出)。 //創(chuàng)建標(biāo)簽,用于顯示信息 JLabel jLabel1=new JLabel(歡迎使用客戶資源管理系統(tǒng))。 JLabel jLabel2=new JLabel(2010年6月20日,涂誠)。 //構(gòu)造方法,創(chuàng)建對象時(shí)自動調(diào)用 public MainFrame() { try{ //關(guān)閉框架窗口時(shí)的默認(rèn)事件方法 setDefaultCloseOperation(EXIT_ON_CLOSE)。 //調(diào)用初始化方法 jbInit()。 } catch(Exception exception){ ()。 } } //界面初始化方法 private void jbInit() throws Exception { //創(chuàng)建內(nèi)容面板和其布局 contentPane =(JPanel) getContentPane()。 (null)。 //框架的大小和其標(biāo)題 setSize(new Dimension(400,500))。 setTitle(客戶資源管理系統(tǒng))。 //添加事件監(jiān)聽器jMenuItem1 (this)。//退出。 (this)。//關(guān)于 (this)。 (this)。 (this)。 (this)。 /////////////////////////////////// (this)。 (this)。 (this)。 (this)。 ///////////////////////////////////// (this)。 (this)。 (this)。 (this)。 //添加菜單條 setJMenuBar(jMenuBar1)。 //添加菜單組件到菜單條 (jMenu)。 (jMenu1)。 (jMenu2)。 (jMenuHelp)。 //添加菜單項(xiàng)組件到菜單組件 (jMenuHelpAbout)。 (jMenuHelpAbout2)。 /////////////////////// (jMenuFile1)。 (jMenuFile2)。 (jMenuFile3)。 (jMenuFile4)。 ///////////////////// (jMenuItem1)。 (jMenuItem2)。 (jMenuItem3)。 (jMenuItem4)。 ////////////////////// (jMenuItem5)。 (jMenuItem6)。 (jMenuItem7)。 (jMenuItem8)。 //添加標(biāo)簽到內(nèi)容面板 (jLabel1)。 (jLabel2)。 //設(shè)置標(biāo)簽組件的大小和字體 (new (宋體,20))。 (new Rectangle(65,70,275,55))。 (new (宋體,16))。 (new Rectangle(90,150,200,35))。 } //菜單事件的處理方法 public void actionPerformed(ActionEvent actionEvent) { //點(diǎn)擊“文件”菜單下的“退出”菜單項(xiàng) if(()==jMenuHelpAbout2) { (0)。 } //點(diǎn)擊“產(chǎn)品管理”菜單下的“添加產(chǎn)品”菜單項(xiàng) if(()==jMenuFile1) { //創(chuàng)建添加產(chǎn)品面板對象 Addchanpin add=new Addchanpin()。 //移除主界面上原有的內(nèi)容 (())。 (add)。 //令界面可見 (true)。 } //點(diǎn)擊“產(chǎn)品管理”菜單下的“刪除產(chǎn)品”菜單項(xiàng) if(()==jMenuFile2) { //創(chuàng)建刪除產(chǎn)品面板對象 Deletechanpin
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1