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

正文內(nèi)容

畢業(yè)設(shè)計(jì)-java藥品管理系統(tǒng)設(shè)計(jì)-資料下載頁(yè)

2024-12-03 20:09本頁(yè)面

【導(dǎo)讀】度取代傳統(tǒng)的效率低下的人工作業(yè)。隨著小型計(jì)算機(jī),微型計(jì)算機(jī)的成本的不斷下。計(jì)算機(jī)技術(shù)已經(jīng)廣泛應(yīng)用于日常辦公,企業(yè)管理,文字處理、電子報(bào)。資源,使管理更加規(guī)范化,系統(tǒng)化,科學(xué)化。

  

【正文】 ()+39。,rank=+()+ where username =39。+()+39。 (sql)。 try { (sql)。 } catch (SQLException e) { ()。 (null, 修改失敗 ,警告 , 1)。 return false。 } (null, 恭喜您 ,修改成功 ,恭喜 , 1)。 return true。 } //顯示模塊 用戶添加核心代碼 : //顯示用戶添加界面 JPanel editPanel = new JPanel()。 ((添加用戶 ))。 (new GridLayout(2,1))。 JPanel upPanel = new JPanel()。 ((用戶信息 ))。 (new GridLayout(3,1))。 JPanel jp1 = new JPanel()。 JPanel jp2 = new JPanel()。 JPanel jp3 = new JPanel()。 (new JLabel(用戶名 ))。 username = new JTextField(,8)。 password = new JPasswordField(,8)。 password2 = new JPasswordField(,8)。 (username)。 (jp1)。 (new JLabel(密碼 ))。 (password)。 (new JLabel(再次密碼 ))。 (password2)。 (jp2)。 (jp3)。 (upPanel)。 JPanel addUserSubmitPanel = new JPanel()。 JButton addUserSubmitBtn = new JButton(提交 )。 JButton addUserCancelBtn = new JButton(取消 )。 (addUserSubmitBtn)。 (addUserCancelBtn)。 (addUserSubmitPanel)。 (new addUserSubmitListener())。 (new addUserCancelListener())。 add(editPanel,)。 //提交用戶添加時(shí)執(zhí)行的操作 public class addUserSubmitListener implements ActionListener { public void actionPerformed(ActionEvent e) { (===+().trim()+====)。 if (().trim().equals() || !().trim().equals(().trim())) { (null, 輸入不正確 , 警告 , 1)。 }else { User user = new User()。 (().trim())。 (().trim())。 (0)。 UserDao ud = new UserDao()。 (user)。 } } //用戶修改的核心代碼 : //核心代碼 : JPanel editPanel = new JPanel()。 (new GridLayout(0,2))。 ((修改用戶 ))。 JPanel leftPanel = new JPanel()。 (new GridLayout(0,1))。 ((用戶列表 ))。 UserDao ud = new UserDao()。 userlist = new JList(())。 (new JScrollPane(userlist, 22, 31))。 (new userlistListener())。 (leftPanel)。 JPanel rightPanel = new JPanel()。 rightPanel = new JPanel(new BorderLayout())。 ((用戶信息 ))。 (new FlowLayout())。 unfld = new JTextField(, 8)。 pwdfld = new JTextField(, 8)。 rankfld = new JTextField(, 8)。 JPanel jPanel1 = new JPanel(new GridLayout(0, 1))。 (new JLabel(用戶名 :))。 (new JLabel(密碼 :))。 (new JLabel(權(quán)限 :))。 JPanel jPanel2 = new JPanel(new GridLayout(0, 1))。 (unfld)。 (pwdfld)。 (rankfld)。 (jPanel1, West)。 (jPanel2, East)。 (rightPanel)。 add(editPanel,)。 JPanel modifyUserSubmitPanel = new JPanel()。 JButton modifyUserSubmitBtn = new JButton(修改用戶 )。 (modifyUserSubmitBtn)。 add(modifyUserSubmitPanel,)。 //監(jiān)聽(tīng)器 public class modifyUserSubmitListener implements ActionListener { public void actionPerformed(ActionEvent e) { if(username == null || ()) { (null, 未選中用戶 ,警告 , 1)。 }else { int i = (null, 是否修改該用戶?修改將無(wú)法恢復(fù)! ,警告 , 0)。 if(i == 1) return。 UserDao ud = new UserDao()。 User user = new User()。 (().trim())。 (().trim())。 if(().trim().equals(系統(tǒng)管理員 )) { (1)。 }else { (0)。 } (user)。 } } 銷(xiāo)售管理模塊 銷(xiāo)售管理界面如圖 所 示。 圖 銷(xiāo)售界面 關(guān)鍵代碼如下:(點(diǎn)擊“銷(xiāo)售”時(shí)系統(tǒng)執(zhí)行的操作) //DAO 中的處理 public boolean sales(SalesOrder so) { Connection conn = ()。 Statement stmt = (conn)。 String sql = insert into salesorder values(39。 + () + 39。,39。 + () + 39。,39。+ () + 39。,39。 + () + 39。,+ () + )。 (sql)。 try { (sql)。 } catch (SQLException e) { ()。 return false。 } return true。} // public class buyListener implements ActionListener { public void actionPerformed(ActionEvent e) { for(int n=0。n。n++){ if(order[n]!=null amp。amp。 !order[n].equals()) { String msg = order[n]。 StringTokenizer stnizer = new StringTokenizer(msg, ,)。 int i1 = (())。 String name1 = ()。 String pricestr = ()。 StringTokenizer stnizerprice = new StringTokenizer(pricestr, 元 )。 float price1 = (())。 SalesOrder sod = new SalesOrder()。 (name1)。 (name1)。 (name1)。 (1)。 (price1)。 SalesOrderDao sodao = new SalesOrderDao()。 (sod)。 StockDao stockdao = new StockDao()。 (name1)。 (())。 } } (null, 銷(xiāo)售成功了 , 警告 , 1)。 } } 進(jìn)貨管理模塊 圖 藥品管理界面 核心代碼 :(添加藥品及加入庫(kù)存 ) //添加藥品 Dao 中 public boolean regeist(Medicine medicine) { Connection conn = ()。 Statement stmt = (conn)。 String sql = insert into medicine values(39。 + () + 39。,39。 + () + 39。,39。+ () + 39。,39。 + () + 39。,39。+ () + 39。,39。 + () + 39。,+ () + , + () + ,+ () + ,39。 + () + 39。,39。+ () + 39。, + () + ,39。+ () + 39。)。 (sql)。 try { (sql)。 } catch (SQLException e) { ()。 (null, 您的輸入不正確 , 警告 , 1) return false。 } return true。 } //添加藥品 frame 中 public class AddMedButtonListener implements ActionListener { public void actionPerformed(ActionEvent e) { try{ Medicine medicine = new Medicine()。 (().trim())。 (().trim())。 (().trim())。 (().trim())。 (().trim())。 ((())。 (().trim())。 (().trim())。 (().trim())。 ((())。 (())。 ((())。 ((())。 MedDao md = new MedDao()。 if((medicine)){ (null, 藥品添加成功 , 恭喜, 1)。 } }catch(Exception e2) { ()。 (null, 您的輸入不正確 , 警告 , 1)。 } } } //加入庫(kù)存 frame 中 public class buyButtonListener implements ActionListener { public void actionPerformed(ActionEvent e) { try { Stock stock = new Stock()。 (().trim())。 (().trim())。 ((().trim()))。 ((().trim()))。 (().trim())。 Calendar c = ()。 (())。 d = ()。 (d)。 StockDao sd = new StockDao()。 if((stock)) { (null, 進(jìn)貨成功 , 恭喜 , 1)。 } } catch (Exception e2) { ()。 (null, 您的輸入不正確 , 警告 , 1)。 } } } //加入庫(kù)存 DAO 中 public boolean add(Stock stock) { Connection conn = ()。 Statement stmt = (conn)。 String sql = insert into stock valu
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1