1、 大连大连交通大学信息工程学院 毕业设计(论文)任务书 题 目 城市订餐系统服务器端实现 任务及要求: 1.设计(研究)内容和要求 任务: 1、 城市订餐系统服务器端当前技术的发展近况,完成实习报告,字数不少于3000,第三周交给指导老师。 2、 结合自己实习情况安排进度,填写进度计划表,第二周完成后交给指导老师签字,并严格执行。 3、 按照软件工程思想,独立完成系统的设计和程序开发,完成代码估计2000行左右。 4、 用Java、jsp技术实现局域网聊天功能。 5、 程序简洁,算法可行,运行情况良好。 要
2、求: 1、 每周和指导老师至少见面沟通一次,回报课题进展情况,接受老师询问。 2、 接到任务书后,查阅与题目及专业相关的外文资料进行翻译,要求不少于10000个外文字符,译出汉字不得少于3000,于第四周交给指导老师审阅。 3、 毕业设计第13周完成毕业论文的装订,并由指导老师评阅。论文要求12000字以上,包括综述、系统总体设计、系统实现、性能分析、结论等。 4、 教学第13周通过中软及教研室组织进行软件验收,验收时要提供软件使用说明书。 5、 于第13周提出毕业答辩申请并签字。 6、 第14 周答辩,要求制作PPT 2.原始依据 通过大学几年的学习,已经学习了诸如软件工程、
3、数据库原理及应用、数据结构、jsp、JAVA等多门程序设计语言和网络等基础知识和专业知识,学生有能力而且可以独立完成小中型项目的设计与开发。学校现有设备和环境可以提供给学生实习和上机,而且具有专业老师可以指导学生。 3.参考文献 [1] 孙卫琴,李洪成.《Tomcat 与 Java Web 开发技术详解》.电子工业出版社,2003年6月:1-205 [2] BruceEckel.《Java编程思想》. 机械工业出版社,2003年10月:1-378 [3] FLANAGAN.《Java技术手册》. 中国电力出版社,2002年6月:1-465
4、 [4] 孙一林,彭波.《Java数据库编程实例》. 清华大学出版社,2002年8月:30-210 [5] LEE ANNE PHILLIPS.《巧学活用HTML4》.电子工业出版社,2004年8月:1-319 [6] 飞思科技产品研发中心.《JSP应用开发详解》.电子工业出版社,2003年9月:32-300 [7] 耿祥义,张跃平.《JSP实用教程》. 清华大学出版社,2003年5月1日:1-354 [8] 孙涌.《现代软件工程》.北京希望电子出版社,2003年8月:1-246 [9] 萨师煊,王珊.《数据库系统概论》.高等教育出版社,2002年2月:3-460 [1
5、0] Brown等.《JSP编程指南(第二版)》. 电子工业出版社 ,2003年3月:1-268 [11] 清宏计算机工作室.《JSP编程技巧》. 机械工业出版社, 2004年5月:1-410 [12] W.Richaard Ste.vens.TCP/IP详解TCP事务协议.HTTP.UNIX域协议.2000 [13] Christian Crumlish.Lucinda Dykes.Dreamweaver MX 2004[M].SYBEX.2004
6、 指导教师签字: 教研室主任签字: 2011 年 3 月 26 日 大连交通大学信息工程学院 毕业设计(论文)进度计划与考核表 学生姓名 张岩 专业班级 软件工程 08-3班 指导教师 王 建 何丹丹 本课题其他人员 无 题 目 城市订餐系统服务器端实现 日 期 计划完成内容 完成情况 指导老师检查签字 第1周 拟订《毕业论文进度计划与考核表》 第2周 完成实习或调研报告 第3周 提交外文文献翻译资料 第4周 系统概要设计阶段 第5周 系
7、统详细设计阶段 第6周 系统编码实施、完成论文初稿 第7周 完成系统编码实施 第8周 系统编码调试、提交论文初稿 第9周 完成系统编码调试、完善毕业论文 第10周 完成撰写毕业设计论文编写及代码测试 第11周 完成论文终稿、准备毕业论文打印、装订 第12周 提交毕业论文终稿及代码 第13周 完成毕业论文 第14周 毕业论文答辩 指导教师签字: 2012年 月 日 大连交通大学信息工程学院 毕业设计(论文
8、)外文翻译 学生姓名 张岩 专业班级 软件工程08-3班 指导教师 王建 何丹丹 职 称 高工 助教 所在单位 信息科学系软件工程教研室 教研室主任 刘瑞杰 完成日期 2012 年 4 月 13 日 A Overview When ASP was first released, Web programming was more difficult beca
9、use you needed IIS to serve your ASP pages. Later, ASP.NET 2.0 and Visual Studio® 2005 made everything easier by introducing the Web site model of development. Instead of creating a new project inside Visual Studio, the Web site model lets you point to a directory and start writing pages and code. F
10、urthermore, you can quickly test your site with the built-in ASP.NET Development Server, which hosts ASP.NET in a local process and obviates the need to install IIS to begin developing.we will introduce 2.0 technology from different aspects. 1.The .NET Framework Class Library ASP.NET is part of M
11、icrosoft's overall .NET framework, which contains a vast set of programming classes designed to satisfy any conceivable programming need.because Visual Basic, JScript, and C++. A great deal of the functionality of these programming languages overlaps.for example, for each language, you would have to
12、 include methods for accessing the file system, working with databases, and manipulating strings.what’s more, these languages contain similar programming constructs, can represent loops and conditionals. Even though the syntax of a conditional written in Visual Basic differs from the syntax of a con
13、ditional written in C++, the programming function is the same. Maintaining all this functionality for multiple languages requires a lot of work. Wouldn't it be easier to create all this functionality once and use it for every language?however, The .NET Framework Class Library does exactly that. It c
14、onsists of a vast set of classes designed to satisfy any conceivable programming need.For instance, the .NET framework contains classes for handling database access, working with the file system, manipulating text, and generating graphics. In addition, it contains more specialized classes for perfor
15、ming tasks such as working with regular expressions and handling network protocols. furthermore, The .NET framework contains classes that represent all the basic variable data types such as strings, integers, bytes, characters, and arrays. The .NET framework is huge. It contains thousands of classe
16、s (over 3,400). Fortunately, the classes are not simply jumbled together. The classes of the .NET framework are organized into a hierarchy of namespaces. A namespace is a logical grouping of classes. For example, all the classes that relate to working with the file system are gathered together into
17、 the System.IO namespace. The namespaces are organized into a hierarchy (a logical tree). At the root of the tree is the System namespace. This namespace contains all the classes for the base data types, such as strings and arrays. It also contains classes for working with random numbers and dates a
18、nd times. You can uniquely identify any class in the .NET framework by using the full namespace of the class. For example, to uniquely refer to the class that represents a file system file (the File class), you would use the following: System.IO.File System.IO refers to the namespace, and File re
19、fers to the particular class. The classes contained in a select number of namespaces are available in your ASP.NET pages by default. (You must explicitly import other namespaces.) These default namespaces contain classes that you use most often in your ASP.NET applications: System— Contains all the
20、 base data types and other useful classes such as those related to generating random numbers and working with dates and times. System.Collections— Contains classes for working with standard collection types such as hash tables, and array lists. System.Collections.Specialized— Contains classes that
21、 represent specialized collections such as linked lists and string collections. System.Configuration— Contains classes for working with configuration files (Web.config files). System.Text— Contains classes for encoding, decoding, and manipulating the contents of strings. System.Text.RegularExpres
22、sions— Contains classes for performing regular expression match and replace operations. System.Web— Contains the basic classes for working with the World Wide Web, including classes for representing browser requests and server responses. System.Web.Caching— Contains classes used for caching the co
23、ntent of pages and classes for performing custom caching operations. System.Web.Security— Contains classes for implementing authentication and authorization such as Forms and Passport authentication. System.Web.SessionState— Contains classes for implementing session state. System.Web.UI— Contains
24、 the basic classes used in building the user interface of ASP.NET pages. System.Web.UI.HTMLControls— Contains the classes for the HTML controls. System.Web.UI.WebControls— Contains the classes for the Web controls. You can choose C# or JScript.NET or C++ or Visual Basic to program page. regardle
25、ss of the language that you use to develop your ASP.NET pages, you need to understand that ASP.NET pages are compiled before they are executed. This means that ASP.NET pages can execute very quickly. The first time you request an ASP.NET page, the page is compiled into a .NET class, and the resultin
26、g class file is saved beneath a special directory on your server named Temporary ASP.NET Files. For each and every ASP.NET page, a corresponding class file appears in the Temporary ASP.NET Files directory. Whenever you request the same ASP.NET page in the future, the corresponding class file is exec
27、uted. When an ASP.NET page is compiled, it is not compiled directly into machine code. Instead, it is compiled into an intermediate-level language called Microsoft Intermediate Language (MSIL). All .NET-compatible languages are compiled into this intermediate language. An ASP.NET page isn't compiled
28、 into native machine code until it is actually requested by a browser. At that point, the class file contained in the Temporary ASP.NET Files directory is compiled with the .NET framework Just in Time (JIT) compiler and executed. The magical aspect of this whole process is that it happens automatica
29、lly in the background. All you have to do is create a text file with the source code for your ASP.NET page. 2.Building Forms with Web Server Controls Useingseveral of the basic Web controls to represent standard HTML form elements such as radio buttons, text boxes, and list boxes. You can use thes
30、e controls in your ASP.NET pages to create the user interface for your Web application.. 3.Performing Form Validation with Validation Controls Traditionally, Web developers have faced a tough choice when adding form validation logic to their pages. You can add form validation routines to your serv
31、er-side code, or you can add the validation routines to your client-side code. The advantage of writing validation logic in client-side code is that you can provide instant feedback to your users. For example, if a user neglects to enter a value in a required form field, you can instantly display an
32、 error message without requiring a roundtrip back to the server.People really like client-side validation. It looks great and creates a better overall user experience. The problem, however, is that it does not work with all browsers. Not all browsers support JavaScript, and different versions of bro
33、wsers support different versions of JavaScript, so client-side validation is never guaranteed to work.For this reason, in the past, many developers decided to add all their form validation logic exclusively to server-side code. Because server-side code functions correctly with any browser, this cour
34、se of action was safer. At the same time, The Validation controls automatically generate both client-side and server-side code. If a browser is capable of supporting JavaScript, client-side validation scripts are automatically sent to the browser. If a browser is incapable of supporting JavaScript,
35、the validation routines are automatically implemented in server-side code. Requiring Fields: The RequiredFieldValidator Control You use RequiredFieldValidator in a Web form to check whether a control has a value. Typically, you use this control with a TextBox control. However, nothing is wrong wit
36、h using RequiredFieldValidator with other input controls such as RadioButtonList. Validating Expressions: The RegularExpressionValidator Control You can use RegularExpressionValidator to match the value entered into a form field to a regular expression. You can use this control to check whether a
37、 user has entered, for example, a valid e-mail address, telephone number, or username or password. Samples of how to use a regular expression to perform all these validation tasks are provided in the following sections. Comparing Values: The CompareValidator Control The CompareValidator control p
38、erforms comparisons between the data entered into a form field and another value. The other value can be a fixed value, such as a particular number, or a value entered into another control. Summarizing Errors: The ValidationSummary Control Imagine that you have a form with 50 form fields. If you
39、use only the Validation controls discussed in the previous sections of this chapter to display errors, seeing an error message on the page might be difficult. For example, you might have to scroll down to the 48th form field to find the error message. Fortunately, Microsoft includes a ValidationSum
40、mary control with the Validation controls. You can use this control to summarize all the errors at the top of a page, or wherever else you want. 4.Advanced Control Programming Working with View State By default, almost all ASP.NET controls retain the values of their properties between form posts.
41、 For example, if you assign text to a Label control and submit the form, when the page is rendered again, the contents of the Label control are preserved. The magic of view state is that it does not depend on any special server or browser properties. In particular, it does not depend on cookies, ses
42、sion variables, or application variables. View state is implemented with a hidden form field called VIEWSTATE that is automatically created in every Web Forms Page. When used wisely, view state can have a dramatic and positive effect on the performance of your Web site. For example, if you display d
43、atabase data in a control that has view state enabled, you do not have to return to the database each time the page is posted back to the server. You can automatically preserve the data within the page's view state between form posts. Displaying and Hiding Content Imagine that you want to break th
44、e tax form into multiple pages so that a person views only one part of the tax form at a time.you can set the Visible and Enabled properties with individual controls and groups of controls to hide and display page content. Using the Visible and Enabled Properties Every control, including both HTML
45、and Web controls, has a Visible property that determines whether the control is rendered. When a control's Visible property has the value False, the control is not displayed on the page; the control is not processed for either pre-rendering or rendering. Web controls (but not every HTML control) ha
46、ve an additional property named Enabled. When Enabled has the value False and you are using Internet Explorer version 4.0 or higher, the control appears ghosted and no longer functions. When used with other browsers, such as Netscape Navigator, the control might not appear ghosted, but it does not f
47、unction. 5.Web Deployment Projects The beauty of the A 2.0 is that you can develop your Web application without thinking about packaging and deployment.when need another class ,you can Add a .cs file to the App_Code directory and start writing. When want to store localizable strings in a resource
48、file, you can add a .resx file to the App_GlobalResources directory and type in the strings. Everything just works; you don't have to think about the compilation and deployment aspect at all. When you are ready to deploy, you have several options. The simplest choice is to copy your files to a liv
49、e server and let everything be compiled on-demand (as it was in your test environment). The second option is to use the aspnet_compiler.exe utility and precompile the application into a binary release, which leaves you nothing but a collection of assemblies, static content, and configuration files to push to the server. The third option is to again use aspnet_compiler.exe, but to create an updateable binary deployment where your .as*x files remain intact (and modifiable) and all of your code files are compiled into binary assemblies. 6. C# Language Introduction to t






