第一篇:asp網(wǎng)上投票系統(tǒng)源代碼
<%@ Language=VBScript %> <% '定義用于從給定文件讀取票數(shù)的函數(shù): Function ReadCount(CFile)Dim objFSO,objTS Set objFSO = Server.CreateObject(“Scripting.FileSystemObject”)Set objTs = objFSO.OpenTextFile(Server.MapPath(CFile),1,True)If Not objTS.AtEndOfStream Then ReadCount = CLng(objTS.ReadLine)Else ReadCount = 0 End If objTS.Close Set objFSO=Nothing End Function '定義用于將累計(jì)票數(shù)寫(xiě)入指定文件的Sub過(guò)程: Sub WriteCount(CFile,Count)Dim objFSO,objTS Set objFSO = Server.CreateObject(“Scripting.FileSystemObject”)Set objTS = objFSO.OpenTextFile(Server.MapPath(CFile),2,True)objTS.WriteLine(Count)objTS.Close Set objFSO=Nothing End Sub %> <% Dim Vote,London1,Paris1,Sanfran1 '鎖定Application變量: Application.Lock '獲取瀏覽者所投票的城市: Vote = Request(“Vote”)'從相應(yīng)文件分別讀取個(gè)城市已獲得的票數(shù): London1 = ReadCount(“London.txt”)Paris1 = ReadCount(“Paris.txt”)Sanfran1 = ReadCount(“Sanfran.txt”)'判斷當(dāng)前得票的城市,并為其票數(shù)加1后寫(xiě)入對(duì)應(yīng)文件: If Vote=“London” Then London1=London1+1 WriteCount “London.txt”,London1 ElseIf Vote=“Paris” Then Paris1=Paris1+1 WriteCount “Paris.txt”,Paris1 ElseIf Vote=“Sanfran” Then Sanfran1=Sanfran1+1 WriteCount “Sanfran.txt”,Sanfran1 End If '解除對(duì)Application變量的鎖定: Application.UnLock %>
| | |
倫敦得票數(shù):<% = London1 %> | 巴黎得票數(shù):<% = Paris1 %> | 舊金山得票數(shù):<% = Sanfran1 %> |
第二篇:基于ASP SQL網(wǎng)上購(gòu)物系統(tǒng) 網(wǎng)上書(shū)店
基于ASP+SQL網(wǎng)上購(gòu)物系統(tǒng) 網(wǎng)上書(shū)店
本系統(tǒng)是基于ASP技術(shù)和網(wǎng)絡(luò)數(shù)據(jù)庫(kù)的原理,B/S模式的網(wǎng)上書(shū)店。在該系統(tǒng)中,顧客可以方便的注冊(cè)為會(huì)員,瀏覽查找圖書(shū),然后選擇購(gòu)買(mǎi)圖書(shū)。該系統(tǒng)具有的主要功能包括:圖書(shū)管理和展示、購(gòu)買(mǎi)圖書(shū)、圖書(shū)配送、交流功能。通過(guò)這些基本功能,商家可以展示圖書(shū),消費(fèi)者可以選擇圖書(shū)購(gòu)買(mǎi),并可以留言交流。
系統(tǒng)利用HTML、JavaScript、Vbscript等語(yǔ)言開(kāi)發(fā),使用MS SQL Server 2000作為后臺(tái)數(shù)據(jù)庫(kù)。該系統(tǒng)實(shí)現(xiàn)功能強(qiáng)大,使用方便,界面友好,能夠滿足一般用戶的需要。功能需求概述
網(wǎng)上書(shū)店的宗旨在于方便用戶購(gòu)買(mǎi)圖書(shū),因此網(wǎng)上書(shū)店應(yīng)該實(shí)現(xiàn)所有方便用戶購(gòu)買(mǎi)圖書(shū)所必需的功能及服務(wù)。
網(wǎng)上書(shū)店系統(tǒng)主要有兩大功能模塊組成: 用戶模塊主要包括:
(1)用戶注冊(cè)及登錄功能:只有成為網(wǎng)上書(shū)店的注冊(cè)用戶后才能登錄網(wǎng)上書(shū)店,在網(wǎng)上書(shū)店中購(gòu)買(mǎi)或者收藏圖書(shū),因此需要提供用戶注冊(cè)功能,以及相關(guān)的用戶信息修改、密碼維護(hù)等功能。
(2)圖書(shū)瀏覽功能:以列表的方式顯示圖書(shū)信息,這樣可以在頁(yè)面顯示大量的圖書(shū)信息。同時(shí)可以提供更多的圖書(shū)瀏覽方式,如分類(lèi)瀏覽、最新圖書(shū)、特價(jià)圖書(shū)等。
(3)圖書(shū)顯示功能:當(dāng)用戶找到感興趣的圖書(shū)后需要查看圖書(shū)的詳細(xì)信息,包括圖書(shū)名、作者、出版商、價(jià)格、介紹等,此外還可以顯示被用戶瀏覽的次數(shù)。
(4)用戶留言功能:用戶可以通過(guò)留言和網(wǎng)站管理員交流,同其他用戶溝通。
(5)圖書(shū)收藏功能:當(dāng)用戶找到感興趣的圖書(shū)但是不能決定是否現(xiàn)在購(gòu)買(mǎi),此時(shí)將關(guān)注的圖書(shū)收藏起來(lái)方便以后再次登錄網(wǎng)上書(shū)店時(shí)可以直接了解該圖書(shū)的信息。(6)圖書(shū)訂單功能:當(dāng)用戶在網(wǎng)上書(shū)店中找到了所有需要的圖書(shū)后,決定開(kāi)始購(gòu)買(mǎi),可以下訂單。管理員會(huì)定期處理用戶下達(dá)的訂單,并根據(jù)用戶訂單的信息向用戶送貨。
(7)圖書(shū)搜索功能:網(wǎng)上書(shū)店比傳統(tǒng)書(shū)店一個(gè)優(yōu)勢(shì)是,當(dāng)用戶知道圖書(shū)的某部分信息時(shí),用戶可以使用搜索功能快速找到需要的圖書(shū)。
管理員模塊主要包括:
(8)訂單管理功能:管理員可以通過(guò)訂單管理功能,實(shí)時(shí)的處理用戶的訂單,根據(jù)購(gòu)書(shū)款到帳情況,用戶發(fā)貨,還可以修改訂單狀態(tài),以掌握交易進(jìn)度。
(9)留言管理功能:管理員可以對(duì)用戶的留言進(jìn)行回復(fù),只有經(jīng)過(guò)管理員回復(fù)的留言才能在前臺(tái)界面顯示,以此來(lái)規(guī)避網(wǎng)站被搗亂的風(fēng)險(xiǎn)。
(10)會(huì)員管理功能:管理員可以查看網(wǎng)站所有注冊(cè)用戶的注冊(cè)時(shí)間,登錄次數(shù),還可以刪除違規(guī)會(huì)員。這也是保障網(wǎng)站安全的手段之一。
(11)資料管理功能:管理員可以在后臺(tái)增加、修改出版社信息;增加、修改圖書(shū)資料的信息。
(12)網(wǎng)站新聞管理功能:管理員可以在后臺(tái)修改和發(fā)布新聞,從而將最新的消息傳遞給用戶。
除此之外,后臺(tái)模塊還應(yīng)能實(shí)現(xiàn)對(duì)銷(xiāo)售情況的查詢,對(duì)送貨方式、省市區(qū)設(shè)置、付款方式、系統(tǒng)管理員等初始信息的設(shè)置等功能。
第三篇:畢業(yè)設(shè)計(jì)網(wǎng)上選課系統(tǒng)ASP外文翻譯
論文題目姓名學(xué)號(hào)班級(jí)年級(jí)專業(yè)學(xué)院指導(dǎo)教師完成時(shí)間
外文翻譯
(一)網(wǎng)上選課系統(tǒng)
軟件工程
軟件學(xué)院
2014年 5 月13日
: : : : : : : : :
東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
英文原文
英文原文
The Active Server Pages(ASP)is a server to carry the script plait writes the environment, using it can create to set up with circulate the development, alternant Web server application procedure.Using the ASP cans combine the page of HTML, script order to create to set up the alternant the page of Web with the module of ActiveX with the mighty and applied procedure in function that according to Web.The applied procedure in ASP develops very easily with modify.1.The working principle of ASP
When the Web site into the ASP feature, will take place the following things:(1)the user browser address bar to enter a URL, the default page of the expansion are.Asp.(2)the browser request to the server.(3)the server engine running ASP procedures.(4)ASP document in accordance with the order from top to bottom starting with the implementation of the script orders, the implementation of HTML page content.(5)pages of information sent to the browser.2.ASP operating environment Asp need to run in under the PWS or IIS.PWS or IIS services in windows98 or windows2000 on the fringe of the CD-ROM, can use the “Add / Remove Programs” in the “Add / Remove windows components” to install.Asp and the general need to access databases or a combination of SQL Server database, made a powerful process.ASP can run the web server software
Windows2000 default installation is IIS5.0(internet information server), and the default installation of windows xp is IIS5.1, windows 2003 default installation of IIS6.0.PWS(personal web server)running windows98 environment in a simple personal Web server.3.ASP and the meaning of ASP(Application Service Provider, application software rental service providers)refers “through the Internet to provide application software rental services industry”, refers to the application software industry as the mainstay, and through one-to-many network Transmission services, such service-based business transactions to be leased by the way, in a more cost-effective manner has the right to use the software, and also because the industry centralized management and greatly reduce the cost of maintaining enterprises.1 東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
英文原文
Basically, ASP is a “software services, Internet services,” and “outsourcing of information services and network integration” and “access of products, access products,” such as the three major characteristics, can even be seen as ISP(Internet Service Provider)and ITS(Information Technology Service)combination.ASP is the English Application Service Provider, the standard Chinese translation is “application service provider”, is defined as commercial or individual customer management applications to provide solutions for companies or enterprises.ASP Chaozuo recently by the media is very fiery, the IT industry is not facing a pile of technical terms it is very difficult to clarify terminology ASP content, the paper tried to use simple language to the broad masses of readers opened the mysterious veil of ASP, IT Top of the ASP industry areas have some basic knowledge.4.Origin of ASP
The research to ASP mode and ASP enterprise's origin can proceed with two respects , one to in terms of business and technology , is it carry on research to come from ASP developing history that business commit;Another one is studies the origins of ASP enterprises and evolution course at present in terms of organization's development.Whether stand up synthetically above-mentioned developing stage, to put it briefly, present ASP history and development path of provider can simple to describe as: The first, developed from the past ISP, rounded the infrastructure and communication function, cooperate with software manufacturer, increase the business scope, develop into the present IDC(the data centre of Internet);
The second,the past ISV(independent software provider)and VAR(the trader that resells value-added service), at Internet age , changed the marketing way in the past , would rely mainly on sale of the software product to change direction to rely mainly on the fact that right to use is leased in the past, bale from physics carrier encapsulation way change direction and long-range operation way main fact now, through the cooperation with network operator , realize the transition to ASP;
The third,IT service departments and traditional advisory companies of traditional large-scale organization, at the foundation known deeply in Internet , depend on long-term experience, is it carry on systematic design and implementation of scheme for other customer to begin, through establish in with trader who operates network and alliance relation between the application software manufacturer, realize the ASP provider that appears in the capacity of system integration trader.5.The developing history and classification of ASP
Seen from the present, ASP is as emerging and proposing formally it is only a thing from the end of 1998 to the beginning of 1999 of a kind of mode.And until from the end of 1999 to the beginning of 2000 to a great extent, ASP field relevant東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
英文原文
outstanding behaviors at the capital market of Company just cause people's extensive concern.In fact speaking from the intension and essence of ASP mode, it is not the brand-new things, but the mode that had once had, has been given the new vitality at Internet age.During this festival, we will review the course that ASP produce development and develop, in order to help the essence of better deep understanding ASP.At the end, we will concentrate on introducing the situation which enterprises divide from different standards in ASP field at present.The HTML plait writes the personnel if you are a simple method that a HTML plait writes the personnel, you will discover the script of ASP providing to create to have diplomatic relation with each other page.If you once want that collect the data from the form of HTML, or use the name personalization HTML document of the customer, or according to the different characteristic in different usage of the browser, you will discover ASP providing an outstanding solution.Before, to think that collect the data from the form of HTML, have to study a plait distance language to create to set up a CGI application procedure.Now, you only some simple instruction into arrive in your HTML document, can collect from the form the data combine proceeding analysis.You need not study the complete plait distance language again or edit and translate the procedure to create to have diplomatic relation alone with each other page.Along with control to use the ASP continuously with the phonetic technique in script, you can create to set up the more complicated script.For the ASP, you can then conveniently usage ActiveX module to carry out the complicated mission, link the database for example with saving with inspectional information.If you have controlled a script language, such as VBScript, JavaScript or PERL, and you have understood the method that use the ASP.As long as installed to match the standard cowgirl in the script of ActiveX script engine, can use in the page of ASP an any a script language.Does the ASP take the Microsoft? Visual Basic? Scripting Edition(VBScript)with Microsoft? Script? Of script engine, like this you can start the editor script immediately.PERL, REXX with Python ActiveX script engine can from the third square develops the personnel acquires.The Web develops the personnel if you have controlled a plait distance language, such as Visual Basic, you will discover the ASP creates a very vivid method that set up the Web application procedure quickly.Pass to face to increase in the HTML the script order any, you can create the HTML that set up the applied procedure connects.Pass to create to set up own the module of ActiveX, can will apply the business in the procedure logic seal to 東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
英文原文
pack and can adjust from the script, other module or from the other procedure the mold piece that use.The usage ASP proceeds the calculating Web can convert into the visible benefits, it can make the supplier of Web provide the alternant business application but not only is to announce the contents.For example, the travel agency can compare the announcement aviation schedule makes out more;Using the script of ASP can let the customer inspect the current service, comparison expenses and prepare to book seats.Include too can lower in the Windows NT Option Microsoft in the pack Transaction Server(MTS)on the server complexity of constructing the procedure with expenses.The MTS can resolve to develop those confidentialities strong, can ratings of and the dependable Web applies the complexity problem of the procedure.6.Active Server Pages model The browser requests from the server of Web.Hour of asp document, the script of ASP starts circulating.Then the server of Web adjusts to use the ASP, the ASP reads completely the document of the claim, carry out all scripts order any, combining to deliver the page of Web to browser.Because script is on the server but is not at the customer to carry the movement, deliver the page of Web on the browser is on the Web server born.Combining to deliver the standard HTML to browser.Because only the result that there is script returns the browser, so the server carries the not easy replication in script.The customer cans not see to create to set up them at script order that the page that view.We introduce the Basic form of the database language known as SQL, a language that allows us to query and manipulate data on computerized relational database systems.SQL has been the lingua franca for RDBMS since the early 1980s, and it is of fundamental importance for many of the concepts presented in this text.The SQL language is currently in transition from the relational form(the ANSI SQL – 92 standard)to a newer object-relational form(ANSI SQL-99, which was released in 1999).SQL-99 should be thought of as extending SQL-92, not changing any of the earlier valid language.Usually, the basic SQL we define matches most closely the ANSI SQL standards basic subsets, called Entry SQL-92 and core SQL-99 that are commonly implemented;our touchstone in defining basic SQL is to provide a syntax that is fully available on most of the major RDBMS products.東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
英文原文
We begin with an overview of SQL capabilities, and then we explain something about the multiple SQL standards and dialects and how we will deal with these in our presentation.We will learn how to pose comparable queries in SQL, using a form known as the Select statement.As we will see, the SQL select statement offers more flexibility in a number of ways than relational algebra for posing queries.However, there is no fundamental improvement in power, nothing that could not be achieved in relational algebra , given a few well-considered extensions.For this reason, experience with relational algebra gives us a good idea of what can be accomplished in SQL.At the same time, SQL and relational algebra have quite different conceptual models in a number of respects, and the insight drawn from familiarity with the relational algebra approach may enhance your understanding of SQL capabilities.The most important new feature you will encounter with SQL is the ability to pose queries interactively in a computerized environment.The SQL select statement is more complicated and difficult to master than the relatively simple relational algebra, but you should never feel list or uncertain as long as you have access to computer facilities where a few experiments can clear up uncertainties about SQL use.The interactive SQL environment discussed in the current chapter allows you to type a query on a monitor screen and get an immediate answer.Such interactive queries are sometimes called ad box queries.This term refers to the fact that an SQL select statement is meant to be composed all at once in a few type written lines and not be dependent on any prior interaction in a user session.The feature of not being dependent on prior interaction is also down as non-procedurality.SQL differs in this way even from relational algebra, where a prior alias statement might be needed in order to represent a product of a table with itself.The difference between SQL and procedural languages such as java or c is profound: you do not need to write a program to try out an SQL query, you just have to type the relatively short, self-contained text of the query and submit it.Of course, an SQL query can be rather complex.A limited part of this full form, know as a sub-query, is defined recursively, and the full select statement form has one added clause.You should not feel intimidated by the complexity of the select statement, however.The fact that a select statement is non-procedural means that it has a lot in common with a menu driven application, where a user is expected to fill in some set of choices from a menu and then press the enter key to execute the menu 東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
英文原文
choices all at once.The various clauses of the select statement correspond to menu choices: you will occasionally need all these clauses, but on not expect to use all of them every time you pose a query.Observed reliability depends on the context in which the system s used.As discussed already, the system environment cannot be specified in advance nor can the system designers place restrictions on that environment for operational systems.Different systems in an environment may react to problems in unpredictable ways, thus affecting the reliability of all of these systems.There for, even when the system has been integrated, it may be difficult to make accurate measurements of its reliability.7.Visual Basic Database Access prospects With the recent Web application software and the rapid development of the existing data stored in diverse forms, Visual Basic Database Access Solutions faces such as rapid extraction enterprises located in the internal and external business information with the multiple challenges.To this end Microsoft, a new database access strategy “unified data access”(UniversalDataAccess)strategy.“Unified data access” to provide high-performance access, including relational and non-relational data in a variety of sources, provide independent in the development of language development tools and the simple programming interface, these technologies makes enterprise integration of multiple data sources, better choice of development tools, application software, operating platforms, and will establish a maintenance easy solution possible.東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
漢語(yǔ)翻譯
漢語(yǔ)翻譯
Active Server Pages(ASP)是服務(wù)器端腳本編寫(xiě)環(huán)境,使用它可以創(chuàng)建和運(yùn)行動(dòng)態(tài)、交互的 Web 服務(wù)器應(yīng)用程序。使用 ASP 可以組合 HTML 頁(yè)、腳本命令和 ActiveX 組件以創(chuàng)建交互的 Web 頁(yè)和基于 Web 的功能強(qiáng)大的應(yīng)用程序。ASP 應(yīng)用程序很容易開(kāi)發(fā)和修改。1.ASP的工作原理
當(dāng)在Web站點(diǎn)中融入ASP功能后,將發(fā)生以下事情:
(1)用戶向?yàn)g覽器地址欄輸入網(wǎng)址,默認(rèn)頁(yè)面的擴(kuò)展名是.asp;
(2)瀏覽器向服務(wù)器發(fā)出請(qǐng)求;
(3)服務(wù)器引擎開(kāi)始運(yùn)行ASP程序;
(4)ASP文件按照從上到下的順序開(kāi)始處理,執(zhí)行腳本命令,執(zhí)行HTML頁(yè)面內(nèi)容;
(5)頁(yè)面信息發(fā)送到瀏覽器;
2.ASP的運(yùn)行環(huán)境
ASP需要運(yùn)行在PWS或IIS下。PWS或IIS服務(wù)在windows98或windows2000的光盤(pán)上附帶著,可以通過(guò)“添加/刪除程序”中的“添加/刪除windows組件”來(lái)安裝。
一般asp需與access數(shù)據(jù)庫(kù)或SQL Server數(shù)據(jù)庫(kù)結(jié)合使用,編出功能強(qiáng)大的程序。能夠運(yùn)行ASP的web服務(wù)器軟件:
Windows2000默認(rèn)安裝的是IIS5.0(internet information server),而windows XP默認(rèn)安裝的是IIS5.1,windows 2003默認(rèn)安裝的IIS6.0。
PWS(personal web server)運(yùn)行在windows98環(huán)境下的簡(jiǎn)單個(gè)人網(wǎng)頁(yè)服務(wù)器。3.ASP的意義與特性
ASP(Application Service Provider,應(yīng)用軟體租賃服務(wù)提供者)是指“透過(guò)網(wǎng)路以租賃方式提供應(yīng)用軟體服務(wù)的業(yè)者”,即業(yè)者以應(yīng)用軟體為主體,透過(guò)網(wǎng)路一對(duì)多地傳遞服務(wù),這種以服務(wù)為主的交易模式促使企業(yè)可藉由租賃的方式,以更符合成本效益的方式擁有軟體的使用權(quán),并且亦能因?yàn)闃I(yè)者集中式的管理而大幅降低企業(yè)維護(hù)的成本。
基本上,ASP即具有“軟體服務(wù)化,服務(wù)網(wǎng)路化”,“資訊委外服務(wù)與網(wǎng)路結(jié)合”與“產(chǎn)品通路化,通路產(chǎn)品化”等三大特性,甚至可以被視為是ISP(Internet Service Provider)與ITS(Information Technology Service)的結(jié)合。
ASP的英文是Application Service Provider,中文的標(biāo)準(zhǔn)翻譯就是“應(yīng)用服務(wù)提供商”,是指為商業(yè)或者個(gè)人客戶提供管理應(yīng)用解決方案的公司或者企業(yè)。最近ASP被媒體炒作的十分火熱,不是IT行業(yè)的人面對(duì)一堆技術(shù)名詞專業(yè)術(shù)語(yǔ)很 東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
漢語(yǔ)翻譯
難弄清楚ASP的內(nèi)容,本文試圖用淺顯的語(yǔ)言來(lái)為廣大的讀者揭開(kāi)ASP神秘的面紗,對(duì)于IT行業(yè)的大熱門(mén)ASP領(lǐng)域有一些基本的認(rèn)識(shí)。
4.ASP的起源
對(duì)于ASP模式和ASP企業(yè)起源的研究可以從兩個(gè)方面入手,一個(gè)是從業(yè)務(wù)和技術(shù)的角度,從ASP業(yè)務(wù)構(gòu)成的發(fā)展歷史來(lái)進(jìn)行研究;另一個(gè)是從組織機(jī)構(gòu)發(fā)展的角度,來(lái)研究目前ASP企業(yè)的由來(lái)和演化過(guò)程。
將上述發(fā)展階段綜合起來(lái),簡(jiǎn)單的說(shuō),目前的ASP提供商的歷史和發(fā)展道路可以簡(jiǎn)單的描述為:
第一類(lèi),從過(guò)去的ISP發(fā)展起來(lái),圍繞基礎(chǔ)設(shè)施和通訊功能,與軟件廠商合作,增加業(yè)務(wù)范圍,發(fā)展到現(xiàn)在的IDC(互聯(lián)網(wǎng)數(shù)據(jù)中心);
第二類(lèi),過(guò)去的ISV(獨(dú)立軟件提供商)和VAR(增值服務(wù)轉(zhuǎn)售商),在互聯(lián)網(wǎng)時(shí)代,改變過(guò)去的營(yíng)銷(xiāo)方式,將過(guò)去以軟件產(chǎn)品的出售為主轉(zhuǎn)向以使用權(quán)租賃為主,從物理載體的打包封裝方式轉(zhuǎn)向現(xiàn)在在線和遠(yuǎn)程運(yùn)行方式為主,通過(guò)與網(wǎng)絡(luò)運(yùn)營(yíng)商的合作,實(shí)現(xiàn)向ASP的轉(zhuǎn)型;
第三類(lèi),傳統(tǒng)的大型組織的IT服務(wù)部門(mén)和傳統(tǒng)的咨詢公司,在對(duì)于互聯(lián)網(wǎng)的深刻認(rèn)識(shí)的基礎(chǔ)上,依靠長(zhǎng)期的經(jīng)驗(yàn),開(kāi)始為其他客戶進(jìn)行系統(tǒng)方案的設(shè)計(jì)和實(shí)施,通過(guò)建立在與網(wǎng)絡(luò)運(yùn)行商和應(yīng)用軟件制造商之間的聯(lián)盟關(guān)系,實(shí)現(xiàn)以系統(tǒng)集成商身份出現(xiàn)的ASP提供商。5.ASP的發(fā)展歷史與分類(lèi)
從目前來(lái)看,ASP作為一種模式的正式誕生和提出只是在1998年底到1999年初之間的事情。而很大程度上直到1999年末到2000年初,ASP領(lǐng)域相關(guān)公司在資本市場(chǎng)上的突出表現(xiàn)才引起了人們的廣泛關(guān)注。實(shí)際上從ASP模式的內(nèi)涵和本質(zhì)上講,并不是全新的事物,而是曾經(jīng)有過(guò)的模式,在互聯(lián)網(wǎng)時(shí)代被賦予了新的生命力。在本節(jié)中,我們將回顧ASP產(chǎn)生發(fā)展演變的過(guò)程,以幫助更好的深入理解ASP的本質(zhì)。在最后,我們將集中介紹目前ASP領(lǐng)域內(nèi)企業(yè)從不同標(biāo)準(zhǔn)進(jìn)行劃分的情況。
HTML 編寫(xiě)人員 如果您是位 HTML 編寫(xiě)人員,您將發(fā)現(xiàn) ASP 腳本提供了創(chuàng)建交互頁(yè)的簡(jiǎn)便方法。如果您曾想從 HTML 表格中收集數(shù)據(jù),或用顧客的姓名個(gè)人化 HTML 文件,或根據(jù)瀏覽器的不同使用不同的特性,您會(huì)發(fā)現(xiàn) ASP 提供了一個(gè)出色的解決方案。以前,要想從 HTML 表格中收集數(shù)據(jù),就不得不學(xué)習(xí)一門(mén)編程語(yǔ)言來(lái)創(chuàng)建一個(gè) CGI 應(yīng)用程序。現(xiàn)在,您只要將一些簡(jiǎn)單的指令嵌入到您的 HTML 文件中,就可以從表格中收集數(shù)據(jù)并進(jìn)行分析。您再不必學(xué)習(xí)完整的編程語(yǔ)言或者單獨(dú)編譯程序來(lái)創(chuàng)建交互頁(yè)。東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
漢語(yǔ)翻譯
隨著不斷掌握使用 ASP 和腳本語(yǔ)言的技巧,您可以創(chuàng)建更復(fù)雜的腳本。對(duì)于 ASP,您可以便捷地使用 ActiveX 組件來(lái)執(zhí)行復(fù)雜的任務(wù),比如連接數(shù)據(jù)庫(kù)以存儲(chǔ)和檢索信息。
如果您已經(jīng)掌握一門(mén)腳本語(yǔ)言,如 VBScript、JavaScript 或 PERL,而且您已經(jīng)了解使用 ASP 的方法。只要安裝了符合 ActiveX 腳本標(biāo)準(zhǔn)的相應(yīng)腳本引擎,就可以在 ASP 頁(yè)中使用任何一種腳本語(yǔ)言。ASP 帶有 Microsoft? Visual Basic? Scripting Edition(VBScript)和 Microsoft? Script? 的腳本引擎,這樣您可以立即開(kāi)始編輯腳本。PERL、REXX 和 Python 的 ActiveX 腳本引擎可以從第三方開(kāi)發(fā)人員處獲得。Web 開(kāi)發(fā)人員 如果您已經(jīng)掌握了一門(mén)編程語(yǔ)言,如 Visual Basic,您將發(fā)現(xiàn) ASP 是快速創(chuàng)建 Web 應(yīng)用程序的一個(gè)非常靈活的方法。通過(guò)向 HTML 中添加腳本命令,您能夠創(chuàng)建應(yīng)用程序的 HTML 接口。通過(guò)創(chuàng)建自己的 ActiveX 組件,可以將應(yīng)用程序中的商業(yè)邏輯封裝到能夠從腳本、其他組件或從其他程序中調(diào)用的模塊。
使用 ASP 進(jìn)行計(jì)算的 Web 可轉(zhuǎn)化為有形的利益,它使 Web 供應(yīng)商能夠提供交互的商業(yè)應(yīng)用而不僅僅是發(fā)布內(nèi)容。例如,旅行社能夠比公布航空時(shí)刻表做得更多;用 ASP 腳本可以讓客戶察看現(xiàn)有的航班、比較費(fèi)用并預(yù)定座位。
包含在 Windows NT Option pack 中的 Microsoft Transaction Server(MTS)可以降低在服務(wù)器上構(gòu)造程序的復(fù)雜性和費(fèi)用。TS 可以解決開(kāi)發(fā)那些保密性強(qiáng)的、可分級(jí)的
以及可靠的 Web 應(yīng)用程序的復(fù)雜性問(wèn)題。6.Active Server Pages模型
瀏覽器從 Web 服務(wù)器上請(qǐng)求.asp 文件時(shí),然后 Web ASP 腳本開(kāi)始運(yùn)行。服務(wù)器調(diào)用 ASP,執(zhí)行所有腳本命令,并將 Web 頁(yè)ASP 全面讀取請(qǐng)求的文件,傳送給瀏覽器。
由于腳本在服務(wù)器上而不是在客戶端運(yùn)行,傳送到瀏覽器上的 Web 頁(yè)是在 Web 服務(wù)器上生成的。所以不必?fù)?dān)心瀏覽器能否處理腳本:Web 服務(wù)器已經(jīng)完成了所有腳本的處理,并將標(biāo)準(zhǔn)的 HTML 傳輸?shù)綖g覽器。由于只有腳本的結(jié)果返回到瀏覽器,所以服務(wù)器端腳本不易復(fù)制。用戶看不到創(chuàng)建他們正在瀏覽的頁(yè)的腳本命令。
我們將介紹著名數(shù)據(jù)庫(kù)語(yǔ)言的SQL的基本形式。SQL是允許我們查詢和操作關(guān)于計(jì)算機(jī)化的關(guān)系數(shù)據(jù)庫(kù)系統(tǒng)的語(yǔ)言。從80 年代初期,SQL就一直是關(guān)系數(shù)據(jù)庫(kù)管理系統(tǒng)的語(yǔ)言,而且它是有著重要的意義的在對(duì)許多概念中,都在本文 東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
漢語(yǔ)翻譯
里提到。當(dāng)前,SQL語(yǔ)言是從關(guān)系形式(ANSI SQL-92 標(biāo)準(zhǔn))轉(zhuǎn)向一個(gè)新的對(duì)象關(guān)系形式(ANSI SLQ-99,1999 被發(fā)布)。SQL-99 是SQL-92的延伸,它不改變所有早期版本的優(yōu)秀的語(yǔ)言。通常,我們嚴(yán)格定義的基本SQL與ANSI SQL 標(biāo)準(zhǔn)和基礎(chǔ)子集十分類(lèi)似,分別被認(rèn)為就是ENTRY SQL-92 和CORE SQL-99。我們也介紹了ENTRY SQL-92、CORE SQL-99之外一些廣泛實(shí)現(xiàn)的特性。在定義基本的SQL中,我們的試金石是將提供一種支持大多RDBMS 接口的語(yǔ)法。
首先,我們總的研究SQL的特性,然后對(duì)SQL的多種形式標(biāo)準(zhǔn)和產(chǎn)品語(yǔ)言以及我們將如何具體地處理這些標(biāo)準(zhǔn)和產(chǎn)品語(yǔ)言進(jìn)行分析解釋。
我們知道了怎樣完成關(guān)系代數(shù)來(lái)回應(yīng)對(duì)查詢的數(shù)據(jù)庫(kù)信息。這將讓我們看到,在編寫(xiě)查詢語(yǔ)句時(shí)SQL中的SELECT在很多方面都比關(guān)系代數(shù)強(qiáng)大。但是,二者在性能上相比較,SQL在本質(zhì)上并沒(méi)有明顯的改進(jìn)。對(duì)那些周密的擴(kuò)展語(yǔ)法來(lái)說(shuō),沒(méi)有關(guān)系代數(shù)所不能實(shí)現(xiàn)的。所以,關(guān)系代數(shù)查詢方面的經(jīng)驗(yàn)就能成為SQL查詢的很好的借鑒。同時(shí)在許多方面,SQL語(yǔ)句和關(guān)系代數(shù)概念模型又有著相當(dāng)大的差異,而可以通過(guò)熟悉、理解關(guān)系代數(shù)增強(qiáng)對(duì)SQL的理解。
最重要的SQL特性是它擁有在計(jì)算機(jī)輸出的條件下能夠相互地構(gòu)造查詢的能力。SQL的SELECT語(yǔ)句比簡(jiǎn)單的關(guān)系代數(shù)更難,但只要能夠上機(jī)實(shí)踐,只需幾個(gè)典型實(shí)驗(yàn)就收回你的懷疑。我們所談?wù)摰慕换ナ江h(huán)境是你在電腦上一輸入一個(gè)查詢語(yǔ)句并且立即執(zhí)行,就可以看到結(jié)果。此情況說(shuō)明了這樣一個(gè)事實(shí),一個(gè)SQL 的SELECT語(yǔ)句是在打入一些輸入行之后立即形成的,并且對(duì)一個(gè)用戶來(lái)說(shuō)該語(yǔ)句與前面的任何交互操作都沒(méi)有關(guān)系。這種不依賴于用戶會(huì)話互相通信操作的性質(zhì)也被稱作非過(guò)程性。在這方面SQL也與關(guān)系代數(shù)不同,因?yàn)樵陉P(guān)系代數(shù)中為了表示一個(gè)表與自身的笛卡兒積,在表前面可能需要定義表別名。SQL與比如JAVA或C之類(lèi)的語(yǔ)言之間的差別十分巨大的:你不需要為了實(shí)現(xiàn)一個(gè)SQL查詢的功能而編寫(xiě)一個(gè)程序,你只需要量輸入較短的、獨(dú)立的查詢語(yǔ)句,然后運(yùn)行就可以了。
當(dāng)然,SQL查詢可能會(huì)復(fù)雜。為此,我們列出了SELECT語(yǔ)句的完整形式。取出這個(gè)形式的一個(gè)部分的查詢被稱為子查詢,對(duì)它的定義是遞歸的,完整的SELECT語(yǔ)句形式只有一個(gè)子句。無(wú)論如何,你不應(yīng)恐懼復(fù)雜的SQL語(yǔ)句。在使用菜單的應(yīng)SELECT語(yǔ)句的非過(guò)程性說(shuō)明了它與使用菜單的應(yīng)用十分相似。用中,用戶需要從菜單中填寫(xiě)一組數(shù)據(jù),然后按下回車(chē)來(lái)對(duì)它們立即執(zhí)行。但并不是所有SELECT語(yǔ)句的各種子句對(duì)于菜單選項(xiàng)有時(shí)也會(huì)需要所有的子句,的子句在每次查詢的時(shí)候都用上。東華理工大學(xué)畢業(yè)設(shè)計(jì)(外文翻譯)
漢語(yǔ)翻譯
觀察可靠性應(yīng)考慮系統(tǒng)使用環(huán)境。依照已經(jīng)討論的內(nèi)容,系統(tǒng)環(huán)境無(wú)法預(yù)先被描述,系統(tǒng)設(shè)計(jì)者也不可能對(duì)系統(tǒng)工作環(huán)境做過(guò)多限制。不同的系統(tǒng)對(duì)相同環(huán)境中的同樣問(wèn)題還可能有無(wú)法預(yù)料的反應(yīng),所有這些都影響系統(tǒng)的可靠性。因此,即使在系統(tǒng)被集成之后,它的可靠性也是難以精確測(cè)量的。7.Visual Basic訪問(wèn)數(shù)據(jù)庫(kù)的前景:
近來(lái)隨著Web應(yīng)用軟件的迅速發(fā)展和現(xiàn)有數(shù)據(jù)存儲(chǔ)形式的多種多樣,Visual Basic訪問(wèn)數(shù)據(jù)庫(kù)的解決方案面臨諸如快速提取分布于企業(yè)內(nèi)部和外部有用商業(yè)信息等的多種挑戰(zhàn)。為此Microsoft提出一種新的數(shù)據(jù)庫(kù)訪問(wèn)策略,即“統(tǒng)一數(shù)據(jù)訪問(wèn)”(Universal Data Access)的策略。“統(tǒng)一數(shù)據(jù)訪問(wèn)”提供了高性能的存取包括關(guān)系型和非關(guān)系型在內(nèi)的多種數(shù)據(jù)源,提供獨(dú)立于開(kāi)發(fā)工具和開(kāi)發(fā)語(yǔ)言的簡(jiǎn)單的編程接口,這些技術(shù)使得企業(yè)集成多種數(shù)據(jù)源、選擇更好的開(kāi)發(fā)工具、應(yīng)用軟件、操作平臺(tái)、建立容易維護(hù)的解決方案成為可能。
第四篇:基于ASP的網(wǎng)上書(shū)店系統(tǒng)畢業(yè)設(shè)計(jì)任務(wù)書(shū)
畢業(yè)設(shè)計(jì)任務(wù)書(shū)
基于ASP的網(wǎng)上書(shū)店系統(tǒng)畢業(yè)設(shè)計(jì)任務(wù)書(shū)
指導(dǎo)教師:李芳瑩設(shè)計(jì)日期:2011年11月28日-2012年2月7日
一、設(shè)計(jì)題目:
基于ASP的網(wǎng)上書(shū)店系統(tǒng)
二、設(shè)計(jì)任務(wù)要求
1、系統(tǒng)設(shè)計(jì)環(huán)境
(1)操作系統(tǒng):Windows 2000、Windows XP、vista、7操作系統(tǒng)。
(2)使用語(yǔ)言:ASP、HTML;
(3)使用數(shù)據(jù)庫(kù):ACCESS、SQL SERVER;
2、熟悉軟件工程的各個(gè)過(guò)程,熟悉軟件測(cè)試和數(shù)據(jù)庫(kù)測(cè)試的方法。
3、掌握系統(tǒng)設(shè)計(jì),數(shù)據(jù)庫(kù)設(shè)計(jì)常用的方法。
4、掌握數(shù)據(jù)庫(kù)的安裝和網(wǎng)絡(luò)配置的方法。
5、程序代碼編寫(xiě)要規(guī)范。
6、掌握腳本的生成方法和幫助文件的生成方法。
7、熟悉電子商務(wù)的基本知識(shí),掌握常用B/S系統(tǒng)的設(shè)計(jì)、編寫(xiě)方法。
8、重點(diǎn)放在網(wǎng)站的設(shè)計(jì),而不是網(wǎng)頁(yè)設(shè)計(jì)上。
三、設(shè)計(jì)進(jìn)度及安排
1、需求分析階段(1周)
2、系統(tǒng)規(guī)化設(shè)計(jì)階段(3周)
3、畢業(yè)設(shè)計(jì)階段(3周)
4、畢業(yè)答辯階段(1周)
四、設(shè)計(jì)成品要求
1、軟件實(shí)際上機(jī)運(yùn)行,實(shí)現(xiàn)基本功能,并且有一定可擴(kuò)展性。
2、設(shè)計(jì)成果存入光盤(pán)。
3、畢業(yè)設(shè)計(jì)論文。
第五篇:人事管理系統(tǒng)源代碼
#include
char xm[7];char xb[3];char sr[15];char whcd[13];char zc[17];char sfzh[19];char lxdh[12];int gl;int nl;};struct member_info member[N+1];int CurrentCount=0;void input(){ char sfjx=1;
while(sfjx!=0)
{
if(CurrentCount==N)
{
printf(“n人數(shù)已達(dá)上限,不能添加!!n”);
sfjx=0;
}
else
{
CurrentCount++;
printf(“n請(qǐng)輸入員工信息(姓名 性別 生日 年齡 文化程度 聯(lián)系電話 身份證號(hào)碼 工齡 職稱):n”);
scanf(“%s%s%s%d%s%s%s%d%s”,member[CurrentCount].xm,member[CurrentCount].xb,member[CurrentCount].sr,&member[CurrentCount].nl,member[CurrentCount].whcd,member[CurrentCount].lxdh,member[CurrentCount].sfzh,&member[CurrentCount].gl,member[CurrentCount].zc);
printf(“n是否繼續(xù)(0--結(jié)束,其它--繼續(xù)):”);
scanf(“%d”,&sfjx);
}
} printf(“人員已排序”);int i,j;
for(i=1;i for(j=CurrentCount;j>i;j--) if(strcmp(member[j].sfzh,member[j-1].sfzh)<0) { member[0]=member[j]; member[j]=member[j-1]; member[j-1]=member[0]; } printf(“n 人事基本信息表n”); printf(“ 序號(hào) 姓名 性別 生日 年齡 文化程度 聯(lián)系電話 身份證號(hào)碼 工齡 職稱n”); for(i=1;i<=CurrentCount;i++) printf(“%4d %6s%3s%11s%3d%8s%12s%20s%3d%5sn”,i,member[i].xm,member[i].xb,member[i].sr,member[i].nl,member[i].whcd,member[i].lxdh,member[i].sfzh,member[i].gl,member[i].zc); system(“pause”);} void save(){ FILE *fp; fp=fopen(“ygjbxx.txt”,“w”); if(fp==NULL) printf(“n文件打開(kāi)不成功,信息無(wú)法保存!!n”); else { fprintf(fp,“%d”,CurrentCount); for(int i=1;i<=CurrentCount;i++) fprintf(fp,“n%8s%4s%16s%4d%14s%13s%20s%4d%18s”,member[i].xm,member[i].xb,member[i].sr,member[i].nl,member[i].whcd,member[i].lxdh,member[i].sfzh,member[i].gl,member[i].zc); fclose(fp); printf(“n信息已成功保存!!n”); } system(“pause”);} void read(){ FILE *fp; fp=fopen(“ygjbxx.txt”,“r”); if(fp==NULL) printf(“n文件打開(kāi)不成功,信息無(wú)法讀取!!n”); else { fscanf(fp,“%d”,&CurrentCount); for(int i=1;i<=CurrentCount;i++) { fscanf(fp,“%s%s%s%d%s%s%s%d%s”,member[i].xm,member[i].xb,member[i].sr,&member[i].nl,member[i].whcd,member[i].lxdh,member[i].sfzh,&member[i].gl,member[i].zc); printf(“姓名:%s 性別:%s 生日:%s 年齡:%d 文化程度: %s 聯(lián)系電話: %s 身份證號(hào)碼: %s 工齡: %d 職稱: %sn”,member[i].xm,member[i].xb,member[i].sr,member[i].nl,member[i].whcd,member[i].lxdh,member[i].sfzh,member[i].gl,member[i].zc); } fclose(fp); printf(“n信息已成功讀取!!n”); } system(“pause”);} void search(){ char dcsfzh[19]; int sfjx=1,i; while(sfjx!=0) { printf(“n請(qǐng)輸入一個(gè)待查員工的身份證號(hào)碼:”); scanf(“%s”,dcsfzh); strcpy(member[0].sfzh,dcsfzh); i=CurrentCount; while(strcmp(member[i].sfzh,dcsfzh)!=0) i--; if(i==0) printf(“查無(wú)此人!!n”); else { printf(“n此人詳細(xì)信息如下:n”); printf(“姓名:%s 性別:%s 生日:%s 年齡:%d 文化程度: %s 聯(lián)系電話: %s 身份證號(hào)碼: %s 工齡: %d 職稱: %sn”,member[i].xm,member[i].xb,member[i].sr,member[i].nl,member[i].whcd,member[i].lxdh,member[i].sfzh,member[i].gl,member[i].zc); } printf(“n是否繼續(xù)(0--結(jié)束,其它--繼續(xù)):”); scanf(“%d”,&sfjx); } system(“pause”);} void del(){ char dcsfzh[19]; int sfjx=1,i,j; while(sfjx!=0) { printf(“n請(qǐng)輸入一個(gè)待刪員工的身份證號(hào)碼:”); scanf(“%s”,dcsfzh); strcpy(member[0].sfzh,dcsfzh); i=CurrentCount; while(strcmp(member[i].sfzh,dcsfzh)!=0) i--; if(i==0) printf(“查無(wú)此人!!n”); else { printf(“n此人詳細(xì)信息如下:n”); printf(“姓名:%s 性別:%s 生日:%s 年齡:%d 文化程度: %s 聯(lián)系電話: %s 身份證號(hào)碼: %s 工齡: %d 職稱: %sn”,member[i].xm,member[i].xb,member[i].sr,member[i].nl,member[i].whcd,member[i].lxdh,member[i].sfzh,member[i].gl,member[i].zc); printf(“n按任意鍵開(kāi)始刪除......n”); system(“pause”); for(j=i+1;j<=CurrentCount;j++) member[j-1]=member[j]; CurrentCount--; printf(“n已成功刪除......n”); system(“pause”); } printf(“n是否繼續(xù)(0--結(jié)束,其它--繼續(xù)):”); scanf(“%d”,&sfjx); } system(“pause”);} void modify(){ char dcsfzh[19]; int sfjx=1,i; while(sfjx!=0) { printf(“n請(qǐng)輸入一個(gè)待修改員工的身份證號(hào)碼:”); scanf(“%s”,dcsfzh); strcpy(member[0].sfzh,dcsfzh); i=CurrentCount; while(strcmp(member[i].sfzh,dcsfzh)!=0) i--; if(i==0) printf(“查無(wú)此人!!n”); else { printf(“n此人詳細(xì)信息如下:n”); printf(“姓名:%s 性別:%s 生日:%s 年齡:%d 文化程度: %s 聯(lián)系電話: %s 身份證號(hào)碼: %s 工齡: %d 職稱: %sn”,member[i].xm,member[i].xb,member[i].sr,member[i].nl,member[i].whcd,member[i].lxdh,member[i].sfzh,member[i].gl,member[i].zc); printf(“n請(qǐng)輸入新內(nèi)容......n”); printf(“n請(qǐng)輸入人員相關(guān)信息(姓名 性別 生日 年齡 文化程度 聯(lián)系電話 身份證號(hào)碼 工齡 職稱):”); scanf(“%s%s%s%d%s%s%s%d%s”,member[CurrentCount].xm,member[CurrentCount].xb,member[CurrentCount].sr,&member[CurrentCount].nl,member[CurrentCount].whcd,member[CurrentCount].lxdh,member[CurrentCount].sfzh,&member[CurrentCount].gl,member[CurrentCount].zc); printf(“n已成功修改......n”); system(“pause”); } printf(“n是否繼續(xù)(0--結(jié)束,其它--繼續(xù)):”); scanf(“%d”,&sfjx); } system(“pause”);} int check(){ int count=0,name,pass; while(count<=2) { printf(“n請(qǐng)輸入用戶名及密碼:”); scanf(“%d%d”,&name,&pass); count++; if((name==1)&&(pass==1)) count=10; else if(count>2) count=5; } if(count==10) return 0; else return 1;} struct mem_gz { float jbgz;float cql;float jj;float kk;float grsd;float sf;};struct mem_gz mem[N+1];void inputgz(){ char sfjx=1;CurrentCount=0; while(sfjx!=0) { if(CurrentCount==N) { printf(“n工資已添加完畢,無(wú)法添加!!n”); sfjx=0; } else { CurrentCount++; printf(“請(qǐng)輸入身份證號(hào)碼為:%s的員工工資資料n”,member[CurrentCount].sfzh); printf(“n請(qǐng)輸入員工工資信息(基本工資 考勤 獎(jiǎng)金 扣款 個(gè)人所得稅):n”); scanf(“%f%f%f%f%f”,&mem[CurrentCount].jbgz,&mem[CurrentCount].cql,&mem[CurrentCount].jj,&mem[CurrentCount].kk,&mem[CurrentCount].grsd); mem[CurrentCount].sf=mem[CurrentCount].jbgz*mem[CurrentCount].cql+mem[CurrentCount].jj-mem[CurrentCount].kk-mem[CurrentCount].grsd; } printf(“n是否繼續(xù)(0--結(jié)束,其它--繼續(xù)):n”); scanf(“%d”,&sfjx); } system(“pause”);} void savegz(){ FILE *fq; fq=fopen(“yggzxx.txt”,“w”); if(fq==NULL) printf(“n文件打開(kāi)不成功,信息無(wú)法保存!!n”); else { fprintf(fq,“%d”,CurrentCount); for(int i=1;i<=CurrentCount;i++) fprintf(fq,“n%f %f %f %f %f %f”,mem[i].jbgz,mem[i].cql,mem[i].jj,mem[i].kk,mem[i].grsd,mem[i].sf); fclose(fq); printf(“n信息已成功保存!!n”); } system(“pause”);} void readgz(){ FILE *fq; fq=fopen(“yggzxx.txt”,“r”); if(fq==NULL) printf(“n文件打開(kāi)不成功,信息無(wú)法讀取!!n”); else { fscanf(fq,“%d”,&CurrentCount); for(int i=1;i<=CurrentCount;i++) { fscanf(fq,“%f%f%f%f%f%f”,&mem[i].jbgz,&mem[i].cql,&mem[i].jj,&mem[i].kk,&mem[i].grsd,&mem[i].sf); printf(“基本工資: %f 考勤: %f 獎(jiǎng)金: %f 扣款: %f 個(gè)人所得稅: %f 實(shí)發(fā)工資:%fn”,mem[i].jbgz,mem[i].cql,mem[i].jj,mem[i].kk,mem[i].grsd,mem[i].sf); } fclose(fq); printf(“n信息已成功讀取!!n”); } system(“pause”);} void searchgz(){ int dcbh; int sfjx=1; while(sfjx!=0) { printf(“n請(qǐng)輸入一個(gè)待查員工編號(hào)(身份證號(hào)從小到大的順序):”); scanf(“%d”,&dcbh); if(dcbh<1||dcbh>CurrentCount) printf(“查無(wú)此人!!n”); else { printf(“n此人工資信息如下:n”); printf(“基本工資: %f 考勤: %f 獎(jiǎng)金: %f 扣款: %f 個(gè)人所得稅: %f 實(shí)發(fā)工資:%fn”,mem[dcbh].jbgz,mem[dcbh].cql,mem[dcbh].jj,mem[dcbh].kk,mem[dcbh].grsd,mem[dcbh].sf); } printf(“n是否繼續(xù)(0--結(jié)束,其它--繼續(xù)):”); scanf(“%d”,&sfjx); } system(“pause”);} void delgz(){ int dcbh; int sfjx=1,j; while(sfjx!=0) { printf(“n請(qǐng)輸入一個(gè)待刪工資的編號(hào):”); scanf(“%d”,&dcbh); if(dcbh<1||dcbh>CurrentCount) printf(“查無(wú)此人!!n”); else { printf(“n此人工資信息如下:n”); printf(“基本工資: %f 考勤: %f 獎(jiǎng)金: %f 扣款: %f 個(gè)人所得稅: %f 實(shí)發(fā)工資:%fn”,mem[dcbh].jbgz,mem[dcbh].cql,mem[dcbh].jj,mem[dcbh].kk,mem[dcbh].grsd,mem[dcbh].sf); printf(“n按任意鍵開(kāi)始刪除......n”); system(“pause”); for(j=dcbh+1;j<=CurrentCount;j++) mem[j-1]=mem[j]; CurrentCount--; printf(“n已成功刪除......n”); system(“pause”); } printf(“n是否繼續(xù)(0--結(jié)束,其它--繼續(xù)):”); scanf(“%d”,&sfjx); } system(“pause”);} void modifygz(){ int dcbh; int sfjx=1; while(sfjx!=0) { printf(“n請(qǐng)輸入一個(gè)待修改工資員工的編號(hào):”); scanf(“%d”,&dcbh); if(dcbh<1||dcbh>CurrentCount) printf(“查無(wú)此人!!n”); else { printf(“n此人工資信息如下:n”); printf(“基本工資: %f 考勤: %f 獎(jiǎng)金: %f 扣款: %f 個(gè)人所得稅: %f 實(shí)發(fā)工資:%fn”,mem[dcbh].jbgz,mem[dcbh].cql,mem[dcbh].jj,mem[dcbh].kk,mem[dcbh].grsd,mem[dcbh].sf); printf(“n請(qǐng)輸入新內(nèi)容......n”); printf(“n請(qǐng)輸入人員工資信息(基本工資 考勤 獎(jiǎng)金 扣款 個(gè)人所得稅 實(shí)發(fā)工資):”); scanf(“%f%f%f%f”,&mem[CurrentCount].jbgz,&mem[dcbh].cql,&mem[dcbh].jj,&mem[dcbh].kk,&mem[dcbh].grsd,&mem[dcbh].sf); printf(“n已成功修改......n”); system(“pause”); } printf(“n是否繼續(xù)(0--結(jié)束,其它--繼續(xù)):”); scanf(“%d”,&sfjx); } system(“pause”);} void listgz(){ int i; printf(“n 員工工資信息表n”); printf(“ 序號(hào) 基本工資 考勤 獎(jiǎng)金 扣款 個(gè)人所得稅 實(shí)發(fā)工資n”); for(i=1;i<=CurrentCount;i++) printf(“%4d %8f%8f%8f%8f”,i,mem[i].jbgz,mem[i].cql,mem[i].jj,mem[i].kk,mem[i].grsd,mem[i].sf); system(“pause”);} void main(){ int xz=1; printf(“ *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*n”);printf(“ * 歡迎使用人事工資管理系統(tǒng) *n”);printf(“ ***************************************nnn”); if(check()!=0) { printf(“n你無(wú)權(quán)使用本系統(tǒng)......nn”); system(“pause”); } else { while(xz!=0) { printf(“n請(qǐng)選擇相應(yīng)功能:n”); printf(“1-錄入n2-查詢n3-修改n4-刪除n5-保存n6-讀取n7-輸入員工工資n8-保存工資信息n9-讀取工資信息n10-修改工資信息n11-刪除工資信息n12-工資列表n0-結(jié)束n請(qǐng)輸入選擇:”); scanf(“%d”,&xz); switch(xz) { case 1: input();break; case 2: search();break; case 3: modify();break; case 4: del();break; case 5: save();break; case 6: read();break; case 7: inputgz();break; case 8: savegz();break; case 9: readgz();break; case 10: modifygz();break; case 11: delgz();break; case 12: listgz();break; case 0: printf(“nn謝謝使用本系統(tǒng)!nn”);system(“pause”);break; default: printf(“n無(wú)此功能,請(qǐng)重新選擇......n”); system(“pause”); } } } }
![下載asp網(wǎng)上投票系統(tǒng)源代碼[推薦閱讀]word格式文檔](http://static.xiexiebang.com/skin/default/images/icon_word.png)

文檔為doc格式
聲明:本文內(nèi)容由互聯(lián)網(wǎng)用戶自發(fā)貢獻(xiàn)自行上傳,本網(wǎng)站不擁有所有權(quán),未作人工編輯處理,也不承擔(dān)相關(guān)法律責(zé)任。如果您發(fā)現(xiàn)有涉嫌版權(quán)的內(nèi)容,歡迎發(fā)送郵件至:645879355@qq.com 進(jìn)行舉報(bào),并提供相關(guān)證據(jù),工作人員會(huì)在5個(gè)工作日內(nèi)聯(lián)系你,一經(jīng)查實(shí),本站將立刻刪除涉嫌侵權(quán)內(nèi)容。
投票系統(tǒng)課程設(shè)計(jì)
摘要:在積極建立科學(xué)管理機(jī)制的今天,僅僅靠原始的手工管理或簡(jiǎn)單的單機(jī)管理,管理部門(mén)面對(duì)大量的信息,無(wú)法有效率地將其中的重要部分提取出來(lái),并做出相應(yīng)的判斷和處理。投票管理者......
用Struts完成網(wǎng)上投票系統(tǒng)[小編推薦]
一、 (一)創(chuàng)建Web工程 進(jìn)入創(chuàng)建工程界面后按圖3.1所示選擇: 圖3.1 創(chuàng)建Web工程 (二)導(dǎo)入Struts容器 選中工程擊右鍵,按圖3.2,圖3.3所示。 圖3.2 加入Struts容器第一步 注意在沒(méi)......
網(wǎng)上投票推薦情況匯報(bào)(最終版)
XXXX組織開(kāi)展網(wǎng)上投票推 薦全國(guó)優(yōu)秀共產(chǎn)黨員情況的匯報(bào) 根據(jù)局《XXXXXXX》的要求, XX高度重,及時(shí)宣傳,并組織黨員干部對(duì)全國(guó)優(yōu)秀共產(chǎn)黨員候選人進(jìn)行投票。現(xiàn)將我XX此次全國(guó)優(yōu)秀......
網(wǎng)上投票黨員總結(jié)
大洋衛(wèi)生院 組織開(kāi)展網(wǎng)上投票推薦全國(guó)優(yōu)秀共產(chǎn)黨員活動(dòng)總結(jié)根據(jù)衛(wèi)生局《關(guān)于組織開(kāi)展好網(wǎng)上投票推薦全國(guó)創(chuàng)先爭(zhēng)優(yōu)優(yōu)秀共產(chǎn)黨員活動(dòng)的通知》要求,我院高度重視,及時(shí)宣傳,并組織......
職工信息管理系統(tǒng)源代碼
#include #include #include int N=2; struct worker/*定義一個(gè)職工信息的結(jié)構(gòu)體*/ { intnum; /*定義一個(gè)職工信息的結(jié)構(gòu)體*/ char name[20]; /*定義一個(gè)職工信息的結(jié)構(gòu)......
通訊管理系統(tǒng)源代碼
題目:用C/C++設(shè)計(jì)出模擬手機(jī)通信錄管理系統(tǒng),實(shí)現(xiàn)對(duì)手機(jī)中的通信錄進(jìn)行管理。 (一)功能要求 (1)查看功能:選擇此功能時(shí),列出下列三類(lèi)選擇。 A 辦公類(lèi) B 個(gè)人類(lèi) C 商務(wù)類(lèi) ,當(dāng)選中某類(lèi)時(shí)......
學(xué)生信息管理系統(tǒng)源代碼
學(xué)生信息管理系統(tǒng)源代碼 import java.io.*; class StuInfo { public String name; public int number; public String sex; public String age; public String bir; public......
人事管理系統(tǒng)數(shù)據(jù)庫(kù)源代碼
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using Sys......