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

正文內(nèi)容

商品的進(jìn)、銷、存系統(tǒng)的網(wǎng)站設(shè)計(jì)-預(yù)覽頁

2025-01-08 10:06 上一頁面

下一頁面
 

【正文】 inal Object paramlist return unique hqlparamlist 通用列表查詢當(dāng) pn 1 且 pageSize 1 表示查詢所有記錄 param 模型類型 param hql Hibernate 查詢語句 param pn 頁碼 從 1 開始 param pageSize 每頁記錄數(shù) param paramlist 可變參數(shù)列表 return 模型對(duì)象列表 SuppressWarnings unchecked protected List list final String hql final int pn final int pageSize final Object paramlist Session session null Transaction tx null List list null try session getSession tx sessionbeginTransaction Query query sessioncreateQuery hql if paramlist null for int i 0 i paramlistlength i querysetParameter i paramlist[i] list querysetFirstResult pn setResults pageSize list txmit catch Exception e eprintStackTrace txrollback finally sessionclose return list 根據(jù)查詢條件返回唯一一條記錄 param 返回類型 param hql Hibernate 查詢語句 param paramlist 參數(shù)列表 return SuppressWarnings unchecked protected List unique final String hql final Object paramlist Session session null Transaction tx null List list null try session getSession tx sessionbeginTransaction Query query sessioncreateQuery hql if paramlist null for int i 0 i paramlistlength i querysetParameter i paramlist[i] list querylist txmit catch Exception e eprintStackTrace txrollback finally sessionclose return list 系統(tǒng)登錄模塊設(shè)計(jì) 系統(tǒng)登錄也是項(xiàng)目必須開發(fā)的模塊主要由兩部分組成一部分是登錄窗體另一部分是窗體中帶背景圖片的內(nèi)容面板它是系統(tǒng)的安全門只有提供正確的用戶名和登錄口令之后才能進(jìn)入企業(yè)進(jìn)銷存管理系統(tǒng)進(jìn)行進(jìn)銷存管理工作系統(tǒng)登錄模塊如圖 35 所示 圖 35 系統(tǒng)登錄界面 功能實(shí) 現(xiàn) public String login ActionContext actionContext ActionContextgetContext Map String Object session actionContextgetSession if sessionget admin null Long time SystemcurrentTimeMillis 1000 adminsetAdminLoginTime timetoString getAdminsService updateAdmin admin news newsServicefindByJAdmins admin 0 20 for OurckNews newss news Date time1 new Date LongparseLong newssgetNewAddtime 1000 newsssetDepartment departmentsServicefindById newssgetDepartmentId newsssetNewAddtime DateFormatDataFormat2 time1 else List admins getAdminsService exists getUsername getPassword if adminssize 0 admin adminsget 0 Long time SystemcurrentTimeMillis 1000 adminsetAdminLoginTime timetoString getAdminsService updateAdmin admin news newsServicefindByJAdmins admin 0 20 for OurckNews newss news Date time1 new Date LongparseLong newssgetNewAddtime 1000 newsssetDepartment departmentsServicefindById newssgetDepartmentId newsssetNewAddtime DateFormatDataFormat2 time1 else message 登錄失敗請(qǐng)檢查賬號(hào)或密碼 return index adminsetDepartments departmentsServicefindById admingetDepartmentId sessionput news news sessionput addtime addtime sessionput admin admin return success 系統(tǒng)主窗體設(shè)計(jì) 主窗體是人際交互的本體用戶通過主窗體中提供的各種菜單表格文本框子窗體等組件進(jìn)行管理操作本系統(tǒng)主界面采用的是 CSSDIVjs 圖 36 系統(tǒng)主窗體界面 功能實(shí)現(xiàn)代碼 根據(jù)條件查找商品 public String findGoodInfo ActionContext actionContext ActionContextgetContext Map String Object session actionContextgetSession List paramlist new ArrayList String hql from OurckGoodsInfo where goodId 0 String where String order order by goodAddtime desc if goodName null equals goodName where and goodName like goodName paramlistadd goodName if typeId null equals typeId where and typeId typeId paramlistadd IntegerparseInt typeId Sytln HQL hqlwhereorder goods infoServicefindByHql hqlwhereorder pn pageSize for OurckGoodsInfo good goods String addtime DateFormatDataFormat2 new Date LongparseLong goodgetGoodAddtime 1000 goodsetGoodAddtime addtime goodsetType typesServicefindById goodgetTypeId goodsetAdmin adminsServicefindById goodgetAdminId types typesServicefindAll 0 100 sessionput typeId typeId sessionput goodName goodName sessionput types types sessionput goods goods return sucess 設(shè)計(jì)菜單欄 商品列表模塊設(shè)計(jì) 商品列表模塊負(fù)責(zé)添加企業(yè)的進(jìn)貨信息他根據(jù)進(jìn)貨人員提供的單據(jù)將采購商品的名稱編號(hào)類型規(guī)格數(shù)量等信息記錄到數(shù)據(jù)的庫存表中商品列表模塊窗體界面如圖 39 所示 添加進(jìn)貨商品 進(jìn)貨統(tǒng)計(jì) 在 bottomPanel 面板中布置了多個(gè)文本框用于統(tǒng)計(jì)品種數(shù)量貨品總數(shù)合計(jì)金額等商品信息在添加貨品之后要實(shí)現(xiàn)商品信息的自動(dòng)統(tǒng)計(jì)既要在 table 表格的 PropertyChangeListener 事件監(jiān)聽器編寫統(tǒng)計(jì)代碼這里將統(tǒng)計(jì)代碼編寫在ComputeInfo 方法然后在事件監(jiān)聽器中調(diào)用 當(dāng) table 表格發(fā)生屬性改變事件是事件監(jiān)聽器首先會(huì)檢測(cè)發(fā)生的事件類型也就是判斷發(fā)生了那種更改屬性的事件如果事件類型是 tableCellEditor 則說明術(shù)語表格編輯事件這時(shí)應(yīng)該針對(duì)表格的修改事件去調(diào)用 ComputeInfo 方法執(zhí)行產(chǎn)品進(jìn)貨的統(tǒng)計(jì)業(yè)務(wù)并將結(jié)果顯示在相應(yīng)的組件上 商品入庫 銷售單模塊設(shè)計(jì) 商品銷售時(shí)進(jìn)銷存管理中的重要環(huán)節(jié)之一進(jìn)貨商在入庫之后就可以開始銷售銷售單模塊主要負(fù)責(zé)根據(jù)經(jīng)手人的銷售單據(jù)操作進(jìn)銷存管理系統(tǒng)的庫存商品和記錄銷售信息方便以后查詢和統(tǒng)計(jì) 設(shè)計(jì)銷售單窗體 更新或添加出庫信息 當(dāng)數(shù)據(jù)庫無此名字的商品時(shí)先添加此商品再添加出庫信息 更新時(shí)同時(shí)更新商品信息如數(shù)量 return public String addMarketOrder ActionContext actionContext ActionContextgetContext Map String Object session actionContextgetSession OurckAdmins admin OurckAdmins sessionget admin OurckGoodsInfo goodsInfo infoServicefindById IntegerparseInt id Long time S
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1