




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
進銷存(purchase-sales-stockPSS)軟件是一款通用性極強的商業(yè)企業(yè)統(tǒng)采用流行的B/S結(jié)構(gòu),任何用戶只需要通過瀏覽器登錄使用系統(tǒng)。軟、隨著經(jīng)濟的全球化以及中國經(jīng)濟的逐漸深化,商品銷售業(yè)著越來越迅速適應(yīng)客戶的新需求和市場新機遇的能力企業(yè)贏得競爭勝利的決定性時間,為客戶創(chuàng)造價值的組織,ERP衡量、改進的管理技術(shù)和信息系統(tǒng)?,F(xiàn)今的企業(yè)并不只是人力資源和產(chǎn)品的組合,它還應(yīng)該包括供應(yīng)、銷售、市場、客戶服務(wù)、需求預(yù)測,以及其他ERP、 】管理系統(tǒng)、進銷存管理系統(tǒng)、ERP、進貨、銷售、庫存、Purchase-sales-stock(PSS)softwareisahighlyversatilePPSmanagementsystemforbusinessenterprise,andthesoftware softwareappliestofood,clothing,healthcareproducts,electronics,appliances,materials,cosmeticsandothercommercialareasoftheenterprise.Softwarecoversallaspectsofproducts’purchasing,sales,inventory,managementdecisionsupportandsoonincommercialsystemofthesoftwarewithillustrationsandpictureshelpusersmastertheuseofthesoftwareintheshortestpossibletime.Thesefunctionsofthesoftware,suchaspurchasingmanagement,salesmanagementandinventorymanagement,arepowerfulandflexible.Andthesoftwareprovidesuserswithconvenientandpracticalfuzzyquerythroughthebrowsertologinthenentertheuse-system.Softwareusesmodule-levelsecuritymanagement,sothesecurityishigher.Aboutthepossibleexternalaccidentsduringtheusesuchaspoweroutages,networkoutagesect,thesoftwarehasbeendealtwith properly,itcanensuretheintegrityofusedata.Aftereliminatingtheexternalfault,thesystemcancontinuetooperate,sothatenterpriseswillgetthebestWiththegradualdeepeningofeconomicglobalizationand'seconomicreforms,merchandisingindustryisfacingincreasinglyfiercecompetition.Improvingtheenterpriseandthemanagement,schedulingandresourceallocationofthewholesupplychain,andadaptingquicklytonewmarketdemandsandnewopportunitiesforcustomersarethefactortogainacompetitiveforenterprises.Therapidandeffectiveimplementationofenterpriseresourcenning(ERP)systemisoneofthemosteffectivemethodswhichhadprovedtoimprovethecompetitivenessofenterprises.Fundamentallyspeaking,theenterpriseisauseofresources(human,financial,material,time),andisaorganizationwhichcreatevalueforcustomers.ERPisthemanagementtechniqueandinformationsystemton,schedule,control,measureandimproveoftheseresources.Today'senterpriseisnotjusttheportfoliosales,marketing,customerservice,demandforecasting,aswellasothermorethings.IfanERPsystemreallywantstoizeitsproductioncapacity,itmustbeabletobeveryharmonioustocommunicatewithandothercriticalbusinessareas.:managementsystems,Purchase-sales-stockmanagementsystems,ERP,purchasing,sales,inventory,JAVA第一章緒 第二章系統(tǒng)開發(fā)技 .JVVA技 第四章系統(tǒng)實現(xiàn)原 Service action 有增刪改查 4.5.其配置及優(yōu) 第五章系統(tǒng)測 第一章Internet/Intranet訂貨、管理、的各有差異,各個企業(yè)之間的管理體制不盡相同,各類統(tǒng)業(yè)和自身管理的需要按月、季度、年度進行統(tǒng)計分析,產(chǎn)生相應(yīng)報表。為了加強關(guān)鍵物資、設(shè)備的管理,要定期掌握其儲備,消耗情況,根據(jù)計劃和實際纖毫的比較,進行管理,使得使用合理,物資設(shè)備的儲備最佳個物資供應(yīng)管理系統(tǒng)的因此有必要開發(fā)一套獨立的庫存管理系統(tǒng)來提高企業(yè)工作效率,而所使用的這套庫存管理系統(tǒng)是企業(yè)生產(chǎn)經(jīng)營管理活動中的,有利 周轉(zhuǎn)為經(jīng)營其他項目,這就有可能使經(jīng)營活更新、更高的階段發(fā)展有利于順利地進行管理,也有助于有效地開展倉庫管理工、數(shù)據(jù)庫技術(shù)是通過研究數(shù)據(jù)庫的結(jié)構(gòu)、設(shè)計、管理以及應(yīng)用的基本理論、20603030Internet庫的發(fā)展和應(yīng)用。1979,Ashton-TatedBaseⅡ,并稱之為關(guān)系數(shù)據(jù)庫管理系統(tǒng),從此數(shù)據(jù)庫技術(shù)移植到了個人計算機上。2080InternetWWWhibernate,hibernateORMHibernateJDBCJava來數(shù)據(jù)庫。Hibernate可以應(yīng)用在任何使用JDBC的場合,既可以在JavaHibernateCMP用表示,過程式編程語言為:程序=算法+數(shù)據(jù);面向?qū)ο缶幊陶Z言為:程序象是支持封裝的,是封裝的基本單位。Java語言的封裝性較強,因為Java(classC或C++令,并有自己的棧、寄存器組等。但JVM要占用大量空間安裝軟件,他們只需要一個Java解釋器,每當(dāng)需要使用某種應(yīng)了解到JAVA有如此多的特點和優(yōu)勢,即本系統(tǒng)采用JAVA、中到服務(wù)器上,簡化了系統(tǒng)的開發(fā)和使用??蛻魴C上只要安裝一個瀏覽、(Browser以自動分配給用戶一個賬號進入系統(tǒng),因此本系統(tǒng)采用B/S本系統(tǒng)數(shù)據(jù)庫采用Mysql5.1,該數(shù)據(jù)庫系統(tǒng)安全性、準(zhǔn)確性運行速度方面DevelopmentKit,JDK)作為主要的開發(fā)工具,可直接編譯運行。,對用戶輸入的用戶名進行驗,對用戶輸入的用戶名進行驗PSS功能,否則使用,,他用戶對軟件的權(quán)限ExcelExcel系統(tǒng)功能結(jié)構(gòu)如圖3-1用維采購銷售庫存系報3-系統(tǒng)業(yè)務(wù)流程如圖3-2否是操操管用限普基進銷庫報系本貨售存表統(tǒng)資管管管管維料理理理理護E-R
3-具體技術(shù):Struts2+數(shù)據(jù)庫:mysql5.1運行平臺:Windows732運行環(huán)境:Tomcat7+JDK1.7。據(jù)庫及其應(yīng)用系統(tǒng),使之能夠有效地數(shù)據(jù),滿足各種用戶的應(yīng)用需求(庫應(yīng)用系統(tǒng)。數(shù)據(jù)庫是信息系統(tǒng)的和基礎(chǔ),把信息系統(tǒng)中大量的數(shù)據(jù)按一定的模型組織起來,提供、、檢索數(shù)據(jù)的功能,使信息系統(tǒng)可以方便、建設(shè)的重要組成部分。在這里服裝進銷存管理系統(tǒng)采用Mysql作為數(shù)據(jù)庫,數(shù)據(jù)庫名稱為pss,包括了20其中有公司基本信息表客戶基本信息表,真實-211基礎(chǔ)數(shù)據(jù)類型(數(shù)據(jù)Basedatatype基礎(chǔ)數(shù)據(jù)(數(shù)據(jù)值Basedata值客戶客戶類用來描述客戶的信息,其主要屬性如下表所示數(shù)據(jù)數(shù)據(jù)-1,0核,1供應(yīng) 接繼承自,換句話說,供應(yīng)商也是客戶。rrPurchaseBillItemJavaBean入庫 r 入庫單詳 eye是否0;1出庫 出庫單詳 用戶登錄進去根據(jù)角色分配權(quán)限,其代碼為Employeeemployee=(Employee)getRequest().getSession().getAttribute(Stringroot=getRequest().getParameter("root");PrintWriterout=getResponse().getWriter();StringBuilderbuilder=newStringBuilder();if("source".equals(root)){List< s for(:s){builder.append("{\"text\":\"" .getName()}if(s.size()>0){//輸出多余的逗builder.deleteCharAt(builder.length()-}}elseLongparentId=Long.parseLong(root);List<>s=Service.findsByLoginUser(employee.getId(),parentId);for(:s)builder.append("{\"text\":\"<ahref='"++"'target='main'>" +"</a>\",\"id\":" +}if(s.size()>0){//輸出多余的逗builder.deleteCharAt(builder.length()-}}所有菜單都是基于角色的控制(Role-BasedAccessControl)作為傳角色權(quán)限管理:對其基本的添加、修改、刪除操作部 管理:對其基本的添加、修改、刪除操員工 供應(yīng)商管理:對供應(yīng)商進行添加、修改、刪除操作產(chǎn) 管理:對供應(yīng)商進行添加、修改、刪除操本系統(tǒng)采用Struts2.2+FormTagResourseControllerActionServletstruts-Hibernate:Hibernate是一個持久層框架,它只負責(zé)與關(guān)系數(shù)據(jù)庫的操作。Spring:Spring是一個業(yè)務(wù)層框架,是一個整合的框架,能夠很好地黏合表示Spring與Struts前提:必須在Web應(yīng)用啟動時,創(chuàng)建Spring的ApplicationContextcontextConfigLocation/WEB-INF/spring-config/applicationContext.xml2、采用ContextLoaderPlugIn來創(chuàng)建ApplicationContextlistener通過Spring的ActionSupportActionSupport類:1、Action直接繼承2、使用ApplicationContextctx=getWebApplicationContext();取得3、取得相應(yīng)Bean注意:有可能需要替換 優(yōu)點:簡單缺點:耦合高IOC無法使用多方法的ActionSpring①簡化了企業(yè)級開發(fā)(對企業(yè)級服務(wù)進行了進一步的封裝②采用Spring框架的程序意味著良好的分層結(jié)構(gòu)設(shè)計,是面向接口編程③用IoC,AOP容器,模塊是可配置的,松耦合的,方便了后期Spring①配置復(fù)雜,不方便在持久層抽取泛型基類publicclassBaseDao<T>extendsHibernateDaoSupport{publicvoidsave(Tt){ }publicvoidupdate(Tt){ }publicvoiddelete(Class<T>entityClass,Serializableid){Tt=get(entityClass,id);if(t==null)thrownewRuntimeException("此主鍵的對象找不到:"+}getHibernateTem}//只要需要entityClass,可以從ServicepublicList<T>getAll(Class<T>entityClass)return }publicTget(Class<T>entityClass,Serializableid){returngetHibernateTem te().get(entityClass,id);}publicPager<T>findPager(Class<T>entityClass,finalBaseQuerybaseQuery){//selectofromEmployeeowhereo.usernamelike?andlike
finalStringBuilderbuilder=newStringBuilder();builder.append("SELECToFROM"+entityClass.getName()+"o");if(baseQuery.getWhereHql().length()>0){builder.append("WHERE}intcount=findCount(entityClass,//pagerfinalPager<T>pager=newPager<T>(baseQuery.getPageNo(),baseQuery.getPageSize(),count);//參數(shù)是回調(diào)接口:內(nèi)部List<T>rows=getHibernateTemte().execute(newHibernateCallback<List<T>>(){publicList<T>nHibernate(Sessionsession)throwsHibernateException,SQLException{Queryquery=Listparams=for(inti=0;i<params.size();i++){query.setParameter(i,params.get(i));}
////pageNo:1,從0開始,取10//pageNo:2,從10開始,取10intfirst=(pager.getPageNo()-*pager.getPageSize();intmax=returnquery.list();returnpager;}publicintfindCount(Class<T>entityClass,finalBaseQuery{//selectcount(o)fromEmployeeowhereo.usernamelike?//likefinalStringBuilderbuilder=newStringBuilder();"if(baseQuery.getWhereHql().length()>0)builder.append("WHERE}//參數(shù)是回調(diào)接口 內(nèi)部returngetHibernateTem HibernateCallback<Integer>(){publicIntegernHibernate(Sessionsession)throwsHibernateException,SQLException{Queryquery=session.createQuery(builder.toString());Listparams=baseQuery.getParams();for(inti=0;i<params.size();i++){query.setParameter(i,params.get(i));}//uniqueResult:Object,實際是Long(hibernate3.2)return((Long)}}//根據(jù)傳入的hql語句,查詢返回的所有字//SELECToFROMEmployeeoWHEREo.username=?ando.password=?publicList<T>findHql(Stringhql,Object...objects){return te().find(hql,}//根據(jù)傳入的hql語句,值查詢返回的部分字//SELECTo.id,o.usernameFROMEmployeeoWHEREo.username=?//:List<Object>,只有多個字段:List<Object[]>publicListfindObject(Stringhql,Object...objects){return te().find(hql,}publicListfindObjectByCache(finalStringhql,finalObject...objects){returngetHibernateTemte().execute(newHibernateCallback<List>(){publicListnHibernate(Sessionsession)throwsHibernateException,SQLException{Queryquery=//放入查詢緩存if(objects!=null){inti=for(Objectobject:objects){query.setParameter(i++,object);}}return}}}ServicespringBaseService。這樣能達SSHBaseServiceImpl代碼 classBaseServiceImpl<T>implementsIBaseService<T>//1.//2.3.通過反射獲取子類的ClasssprivateClass<T>entityClass;protectedBaseDao<T>publicvoidsetBaseDao(BaseDao<T>baseDao){this.baseDao=baseDao;}publicBaseServiceImpl()//子類EmployeeDaoImplClassclazzgetClass();//System.out.println("BaseDaoImpl:"+//通過子類獲取到父類//<Employee>Typetype=clazz.getGenericSuperclass();if(typeinstanceofParameterizedType){ParameterizedTypepType=(ParameterizedType)type;entityClass=(Class<T>)pType.getActualTypeArguments()[0];}System.out.println("BaseDaoImpl:"+}publicvoidsave(Tt){}publicvoidupdate(Tt){}publicvoiddelete(Serializableid){baseDao.delete(entityClass,id);}publicList<T>getAll()return}publicTget(Serializableid)returnbaseDao.get(entityClass,}publicPager<T>findPager(BaseQuerybaseQuery){returnbaseDao.findPager(entityClass,baseQuery);}publicList<T>findHql(Stringhql,Object...objects){returnbaseDao.findHql(hql,objects);}}零代碼舉例(注:滿足其基本的操作publicclassDepartmentServiceImplextendsBaseServiceImpl<Department>implementsIDepartmentService{}actionBaseAction。有增刪改查 classBaseActionextendsActionSupportpublicstaticfinalStringRELOAD=//登錄用戶的publicstaticfinalStringLOGIN_USER=publicstaticfinalStringMAIN=//使用jsonpublicstaticfinalStringJSON=//把對象放置到strutsprotectedvoidputContext(Stringkey,Objectvalue){ActionContext.getContext().put(key,value);}protectedHttpServletRequestgetRequest(){return}protectedHttpServletResponsegetResponse(){return}protectedbooleanisEditSave()return}} classCRUDAction<T>extendsBaseActionimplementsModelDriven<T>,Preparable{protectedLongid;publicLonggetId(){return}publicvoidsetId(Longid){this.id=id;}publicvoidprepare()throwsException}publicStringexecute()throwsException{returnlist();}public Stringlist()throws Stringsave()throws Stringdelete()throwsException;publicvoidprepareInput()throwsException{}publicvoidprepareSave()throwsException{} voidbeforeInputAndSave()throws<jee:jndi-lookupid="dataSource"jndi- p/env/jdbc/pss"<beanid="sessionFactory"p:dataSource-<property<prop<prop<prop<prop<propkey="hibernate.cache.use_second_level_cache">true</prop><propkey="hibernate.cache.use_query_cache">true</prop><!--不開querycache,命中不是很高--><!--同一個包下面的映射文件只需要配置1次,必須在值前面放置classpath<propertyname="map<value>classpath:cd/wucl/<property<beanclass="cd.wucl.util.PssNamingStrategy"<!--統(tǒng)一配置二級緩存--<property<propkey="cd.wucl..SystemDictionary">read-<propkey="cd.wucl..SystemDictionaryDetail">read-<propkey="cd.wucl..Resource">read-<propkey="cd.wucl..Role">read-"collectionCacheStrategies",必須
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- T-ZSM 0049-2024“領(lǐng)跑者”評價技術(shù)要求 機織兒童服裝
- 二零二五年度高效節(jié)能大棚租賃及能源管理協(xié)議
- 二零二五年度個人環(huán)保項目貸款抵押擔(dān)保合同
- 二零二五年度汽車銷售區(qū)域代理退出協(xié)議
- 二零二五年度街道辦事處社區(qū)工作者績效激勵聘用合同
- 二零二五年度智能交通管理系統(tǒng)知識產(chǎn)權(quán)授權(quán)協(xié)議
- 2025年度車輛質(zhì)押融資服務(wù)協(xié)議
- 二零二五年度高新技術(shù)園區(qū)建設(shè)資金委托墊資合同
- 2025年度終止供貨協(xié)議函模板與合同終止后的利益平衡
- 企業(yè)采購管理流程改進調(diào)研報告
- 歐式古典風(fēng)格-室內(nèi)設(shè)計風(fēng)67課件講解
- 2024解析:第十章 浮力綜合應(yīng)用-基礎(chǔ)練(解析版)
- 【MOOC】社會調(diào)查與研究方法-北京大學(xué) 中國大學(xué)慕課MOOC答案
- 汽車維護課件 1.3 舉升機的使用
- 醫(yī)院培訓(xùn)課件:《民法典》“醫(yī)療損害責(zé)任”逐條解讀
- 自身免疫性腦炎護理常規(guī)
- 《信息技術(shù)基礎(chǔ)》高職全套教學(xué)課件
- GB/T 19077-2024粒度分析激光衍射法
- 露天礦山開采施工組織方案
- 北京市西城區(qū)2022-2023學(xué)年高三上學(xué)期1月期末考試歷史試題 附答案
- 2024關(guān)于進一步提升基層應(yīng)急管理能力的意見學(xué)習(xí)解讀課件
評論
0/150
提交評論