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

正文內(nèi)容

工資管理系統(tǒng)畢業(yè)設(shè)計(jì)論文-在線瀏覽

2025-08-11 03:27本頁面
  

【正文】 t11N年齡addressvarchar500N地址phoneint11N電話numberint11N員工編號(hào)dutyint11N職務(wù)departmentidint11N部門編號(hào)groupIdint11N工資組編號(hào)descriptiontextY/NN個(gè)人簡(jiǎn)歷createTimedatetimeY/NN入職時(shí)間7)員工工資報(bào)表設(shè)計(jì)所涉及的表(payroll)序號(hào)姓名員工編號(hào)職務(wù)部門基本工資增加扣除總金額發(fā)薪時(shí)間1超級(jí)管理員10001總公司74005000790020150115字段名稱數(shù)據(jù)類型字段大小是否主鍵說明idint11Y序號(hào)personIdint11N員工idgroupIdint11N所屬工資組號(hào)increaseint11N額外獎(jiǎng)金reduceint11N扣除費(fèi)用statusvarchar500N審批狀態(tài)remarkvarchar500N備注baseint11N應(yīng)發(fā)總薪資opinionvarchar500N審批意見totalint11N實(shí)發(fā)總薪資payTimedatetimeY/NN發(fā)薪資時(shí)間createTimedatetimeY/NN添加工資單時(shí)間4 設(shè)計(jì)說明 在本系統(tǒng)中,涉及到很多的就是對(duì)數(shù)據(jù)的增刪改查,當(dāng)然在系統(tǒng)中最重要的部分,是對(duì)于這些操作要控制在嚴(yán)格的權(quán)限中。(PageSize)。實(shí)現(xiàn)了簡(jiǎn)單的CRUD操作。這里采用三層架構(gòu),也就是數(shù)據(jù)訪問層、業(yè)務(wù)邏輯層、表示層。增加代碼的復(fù)用性。反映時(shí)間間隔用操作是否成功界面代替。數(shù)據(jù)庫設(shè)置的是全部使用UTF8編碼,亂碼問題歸根到底是字符集的問題,查看mysql字符集如下:mysql show variables like 39。+++| Variable_name | Value |+++| character_set_client | latin1 || character_set_connection | latin1 || character_set_database | utf8 || character_set_filesystem | binary || character_set_results | latin1 || character_set_server | latin1 || character_set_system | utf8 || character_sets_dir | C:\Program Files\MySQL\MySQL Server \share\charsets\ |+++修改 (MySQL Server Instance Configuration 文件) CLIENT SECTION [client] port=3306 [MySQL] defaultcharacterset=utf8 SERVER SECTION [MySQLd] defaultcharacterset=utf8 (2)defaultcharacterset=utf8 defaultcollation=utf8_general_ci 修改后查看mysql字符集如下:mysql show variables like 39。+++| Variable_name | Value |+++| character_set_client | utf8 || character_set_connection | utf8 || character_set_database | utf8 || character_set_filesystem | binary || character_set_results | utf8 || character_set_server | utf8 || character_set_system | utf8 || character_sets_dir | C:\Program Files\MySQL\MySQL Server \share\charsets\ |+++8 rows in set ( sec)(3)數(shù)據(jù)庫連接串中指定字符集URL=jdbc:MySQL://yourIP/college?user=rootamp。useUnicode=trueamp。 根據(jù)數(shù)據(jù)庫設(shè)計(jì)建表。以便擴(kuò)展,當(dāng)然而在Struts2中的Action由于可以不繼承任何的接口,所以在這種情況下Action是POJO,但是Struts2中的Action也可以繼承ActionSupport類就不再屬于POJO了。:?xml version=39。 encoding=39。?!DOCTYPE hibernateconfiguration PUBLIC //Hibernate/Hibernate Configuration DTD ! Generated by MyEclipse Hibernate Tools. hibernateconfigurationsessionfactory property name=root/property property name=123/property property name=jdbc:mysql://:3306/gzglxt/property property name=dialect /property property name=mysql/property property name= /property property name=show_sqltrue/property property name=30/property property name=5/property property name=3000/property property name=100/property mapping class= / mapping class= / mapping class= / mapping class= / mapping class= / mapping class= / mapping class= / mapping class= / mapping class= / mapping class= / mapping class= / mapping class= / mapping class= //sessionfactory/hibernateconfiguration2) Hibernate與POJO對(duì)像的交互流程圖如下:數(shù)據(jù)庫Hibernate業(yè)務(wù)邏輯層業(yè)務(wù)邏輯層表示層JDBC 圖42Hibernate與POJO對(duì)像的交互流程圖圖 Spring配置Spring作為業(yè)務(wù)層,結(jié)合hibernateFilter文件處理, filter filternamehibernateFilter/filtername filterclass /filterclass /filter filtermapping filternamehibernateFilter/filtername urlpattern/*/urlpattern /filtermapping Struts2配置 為了簡(jiǎn)化Struts2的配置,是編程更容易模塊化進(jìn)行,可以通過對(duì)各個(gè)Action對(duì)應(yīng)的xml文件的調(diào)度,對(duì)各個(gè)Action進(jìn)行調(diào)度。 把客戶端請(qǐng)求request和服務(wù)端響應(yīng)response,session會(huì)話的處理在Baseaction中封裝。代碼如下:public abstract class BaseAction extends ActionSupport implements ServletRequestAware, ServletResponseAware, SessionAware, ModelDrivenObject, Preparable { private static final long serialVersionUID = 6813377869976477588L。//客戶端請(qǐng)求 protected HttpServletResponse response。//會(huì)話 protected String notice。 } //響應(yīng)模塊 public Object getModel() { return null。 } //設(shè)置服務(wù)端相應(yīng)方法 public void setServletResponse(HttpServletResponse response) { = response。 } //得到提示信息的方法 public String getNotice() { return notice。 } //sql 中isnull函數(shù),使用指定的替換值替換 NULL public boolean isNull(String value){ return (value == null || .equals(value))。 result = SUCCESS。登錄模塊對(duì)應(yīng)的流程圖51:開始輸入用戶名及密碼登錄驗(yàn)證打印“用戶名或密碼錯(cuò)誤”N進(jìn)入系統(tǒng) 結(jié)束 圖51系統(tǒng)登錄流程圖 對(duì)應(yīng)類之間的調(diào)用1)用戶登錄時(shí)類間的調(diào)用輸入用戶名及密碼驗(yàn)證登陸成功進(jìn)入login() 方法findModules() 圖52用戶登錄時(shí)類間的調(diào)用流程圖2)script type=text/javascript language=javascript function submitForm(){ (loginForm).submit()。 String result = 。 result = SUCCESS。 result = LOGIN。 } public String logout() throws Exception { ()。 } //驗(yàn)證 public void validateLogin() { if(isNull(username)){ addFieldError(username, 賬號(hào)不能為空)。 } }2)查找模塊id的算法:public String findModules() throws Exception { User user = (User)(login)。//設(shè)置模塊集合
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1