(Source code attached) C# campus online voting system computer design 10557

Campus Online Voting System

Summary

With the advent of the Internet trend, all aspects of society and all walks of life are considering using the Internet as a medium to promote their information in a more timely and effective manner, and the best way is to establish a network management system and conduct information processing on it. manage. Due to the current development of the Internet, there has been a craze for campus voting to be managed through the Internet. Therefore, a campus online voting system has been developed to meet the needs of schools, especially college teachers and students.

The entire development process first conducts a requirements analysis on the software system to derive the main functions of the system. Then carry out the overall design and detailed design of the system. The overall design mainly includes system function design, system overall structure design, system data structure design and system security design, etc.; the detailed design mainly includes the realization of system database access, the specific realization of main function modules, and the key codes of module realization. Finally, the functional test of the system is carried out, and the test results are analyzed and summarized, and the deficiencies in the system and the places to be improved are obtained, which provides convenience for the future system maintenance, and also provides reference and help for the future development of similar systems.

This system was developed using existing mature technology references, taking the source code as a template, analyzing functional adjustments and combining it with the actual needs of the campus online voting system, and determined Asp.Net to develop the campus online voting system.

Keywords: Campus Online Voting System   Asp.Net, SQL Server
Campus Online Voting System

 Abstracts

With the advent of the Internet trend, all walks of life are considering using the Internet as a medium to promote their information more timely and effectively. The best way is to establish a network management system and manage its information. Due to the development of the network, campus voting has been managed through the network, so a campus online voting system has been developed for the needs of schools, especially teachers and students.

The whole development process firstly analyzes the requirements of the software system and obtains the main functions of the system. Then the overall design and detailed design of the system. The overall design mainly includes system function design, system overall structure design, system data structure design and system security design; The detailed design mainly includes the realization of system database access, the specific realization of main functional modules, and the key code of module realization. Finally, the system is tested, and the test results are analyzed and summarized to find out the deficiencies and areas for improvement in the system, which provides convenience for future system maintenance, and also provides reference and help for future development of similar systems.

This system development uses the existing mature technology reference, takes the source code as the template, analyzes the function adjustment and the actual needs of the campus online voting system, and determines Asp.Net to develop the campus online voting system.

Key words: Campus online voting system, Asp Net,SQL Server

Table of contents

Net Campus Online Voting System

Summary

Chapter 1 Introduction

1.1 Background of the topic

1.2 Research status at home and abroad

1.3 Research content

Chapter 2 Key Technology Research

2.1 ASP.NET Framework

2.2 B/S framework

2.3 Database technology

Chapter 3 Requirements Analysis

3.1 Feasibility analysis

3.1.1 Technical feasibility

3.1.2 Economic feasibility

3.1.3 Operational feasibility

3.1.4 Legal feasibility

3.2 Requirements analysis

3.3 System design principles

1. Basic requirements for campus online voting system

2. Development goals

3. Economic benefits

3.4 Business process analysis

3.4.1 Operation process

3.4.2 Add information process

3.4.3 Delete information process

Chapter 4 Overall System Design

4.1 System function modules

4.2 System structure design

4.3 Database design

4.3.1 Database Introduction

4.3.2 Database design

Chapter 5 System Implementation

5.1 Administrator function module

5.2 User function module

Chapter 6 System Testing

6.1 Purpose of system testing

6.2 Testing Strategy

6.3 Test characteristics and analysis

6.4 Functional testing

6.5 Test results

in conclusion

references

Thanks

Chapter 1 Introduction

1.1 Background of the topic

Since the 1920s, computers have appeared in people's life and work crazily, becoming a good helper for people's life and work. Computers have penetrated into every household, and network office and network teaching have replaced the traditional manual record management. , using computers to work does not have to be limited to a fixed time and a fixed location, and cross-regional communication can be easily achieved through computer systems. With the popularization of higher education, campus life has become more and more abundant, and campus voting management has become more and more important. However, at present, most schools have not formed a systematic management model. The traditional manual registration work is inefficient, and it also increases the number of teachers and The workload of the school is high, and it is not convenient for students to vote, so this file management system was developed.

1.2Research status at home and abroad

With the continuous penetration of computer networks, people's lives, work, and ways of obtaining information are slowly changing. Traditional voting information-related information management methods generally adopt manual methods, and the work of obtaining, sorting, modifying, and storing information is still at the manual stage. On the one hand, this method needs to spend a lot of manpower, material resources and money. It is difficult to query and interact, and it will waste a lot of time; It was particularly difficult; finally, the storage of information also became a problem.

In some developed countries, the Internet has developed relatively quickly and has largely completed the transition from manual to computer management. Computer application in our country started relatively late, and the development areas are uneven. There are still many areas or schools that use traditional methods for management. However, computers are developing rapidly, including the Internet, and many users are slowly beginning to come into contact with various types of network communication. platform. Looking at these systems, they mainly have the following characteristics:

(1) Advancement: realize network management.

(2) Versatility: It can basically be used in the same industry.

(3) Convenience: Management work can be completed through the Internet.

(4) Timeliness: Information is updated in a timely manner.

(5) Scalability: Modules can be added as needed.

(6) Security: Encrypt enterprise, user and other information.

Up to now, the Internet has penetrated deeply into people's lives. Smartphones, laptops, etc. have become people's main tools for obtaining information. This is an era of unlimited communication. Therefore, using the Internet to manage campus online voting systems has also become a general trend. Therefore, , there is a sufficient need to develop a campus online voting system.

1.3 Research content

The development and design of the campus online voting system was based on the actual situation of the users, a detailed analysis of the system's needs was carried out, and then the overall design of the system was carried out. Finally, through testing, the system design was made more complete and all the functions in the system could be realized. Function, before starting to write the paper, I went to the library to borrow books on related technologies. Then, for the campus online voting system I developed, I went online to use many systems made by others, and referred to their design results to improve my own system. Detailed system design lists all the functional results in the system one by one, then conducts demand analysis, and finally codes all functional modules, and finally completes the overall test of the system to achieve normal operation of the system.

The paper written this time contains 6 parts, the specific contents are as follows:

Part One Introduction: The article mainly elaborates on the necessity of developing this system from the background of the subject and the current research status.

Part 2 Related Technologies: Various technologies used in system development are roughly introduced.

The third part of the system analysis: the feasibility analysis of the system and the detailed analysis of all functional requirements to check whether the system has the possibility of development.

The fourth part, system design: functional module design and database design, are represented by special tables and pictures.

Part 5: System Implementation: Interface display of the main functional modules of the system.

Part Six System Testing: Test whether each function of the system can operate normally and meet people's needs.

Chapter 2 Key Technology Research

2. 1 ASP.NET Framework

The ASP.NET technology framework is a new program architecture currently widely used in program development. Using modular and component methods to operate and develop is a new program development technology framework, the version that most program developers currently have. ASP.NET has gone through 1.0, 2.0, 3.5, 4.0 and other version changes, and is undergoing continuous upgrades and improvements. ASP.NET is a new multi-language support platform that can support multiple programming languages ​​during the program development process. The ASP.NET program framework has the characteristics of multi-language development and a comprehensive integrated development platform, providing good support for ASP program design. ASP.NET can develop programs on the Microsoft Visual Studio integrated platform developed by Microsoft. It provides support for multiple frameworks, multiple controls and multiple base classes for the program development platform. The visual integrated development environment makes program development clear and the development process is very simple and convenient. In addition, Microsoft Visual Studio integrated development environment has a good debugging module, which can debug the software during the development process of the software system. ASP.NET has a variety of powerful features that make programmers very flexible during the software system development process. Even during the development process of software systems, programmers can use drag-and-drop control methods to perform program design and layout. This development method greatly reduces the technical level requirements of software developers. ASP.NET uses the Windows operating system as the development platform, but other operating systems currently do not support the ASP.NET program framework. These advantages are due to the fact that this framework uses a new form of development, a new form of architecture, and a new form of programming. The ASP.NET framework also achieves seamless connection with the database, which greatly reduces the difficulty of developing software developers. In short, the ASP.NET technical framework is a very good program development framework and a widely used advanced development framework. It can provide support for the development of network programs. In order to develop the campus online voting system, we used the technical framework of ASP.NET.

2. 2 B/S framework

The B/S architecture is widely used in program development and is a program development architecture based on Internet systems. At present, the B/S architecture has broken the C/S architecture model, is widely used in network program systems, and provides good support for the program system. With the development of Internet technology, the B/S architecture is gradually developed and updated, requiring that most information management systems can be used not only on one computer, but on other computers connected to the Internet. The campus online voting system is a comprehensive information management system used to manage and control information for the campus online voting system used on the Internet. Because users who use the website for freshman statistics may not always be on the Internet, this requires that the campus online voting system can be operated over the Internet and that data updates, status and other information can be updated anytime and anywhere. Therefore, development must be based on the B/S architecture.

2.3 Database technology

SQL Server can make each database table have good connections, excellent structure, and support the efficient and efficient operation of multiple databases at the same time. When developing the campus online voting system, I only had one database file, but the database system must have some scalability to update and expand the database after updating the software system. SQL Server database management can meet this requirement by allowing multiple databases to be optimized simultaneously.

Chapter 3 Requirements Analysis

Before any project is developed and researched, it is necessary to conduct a careful analysis of the needs of the R&D system itself. Market research cannot be ignored. The functional needs of users are determined from actual scenarios to clarify goals and develop the entire system. There is a more accurate positioning. In this chapter, it is necessary to analyze the system performance analysis, business process analysis, and data. The overall interface of the campus online voting system is simple and the functions are complete.

The feasibility of requirements is the analysis and discussion of what requirements a developed system can achieve. Whether the developed system or website meets the previous requirements. Only in pre-assessment of system development can requirements be completed before system development and implementation. During the development and application of the system, detailed descriptions of technical feasibility, operational feasibility, economic feasibility and legal feasibility proved that these points are feasible. The technical feasibility mainly shows that ASP.NET is currently a relatively common and mature technology, with relatively powerful database development functions and convenient and fast database interface design functions. It is necessary and feasible based on the existing research situation and the technology mastered. In the economic feasibility, it mainly describes the cost of the system from the research period and subsequent maintenance and cost savings. The operational feasibility mainly illustrates the simplicity of the system and operation, which are characterized by easy operation and quick start. In terms of legal feasibility, compliance with the requirements does not involve infringement and other issues, which can play a role in improving efficiency in society.

It was designed and explained from system requirement analysis, functional analysis, performance analysis, etc. System requirements analysis conducts an in-depth analysis of the needs of the campus online voting system information industry and proves the demand for the system in the market.

The completed design of the campus online voting system may be subject to time and space constraints. Therefore, when starting to design each project, it is necessary to conduct a feasibility analysis of the system. Only in this way can the harm caused by the project be reduced and the loss of manpower, material resources and financial resources be reduced. The feasibility analysis of this system mainly focuses on four aspects: technical feasibility, economic feasibility, operational feasibility and social feasibility. The feasibility of the system is discussed from the above aspects.

3.1 Feasibility analysis

The purpose of feasibility analysis is to clarify the research direction and goals based on the user needs of the developed system, and determine the framework and functional modules of the system through feasibility analysis.

Feasibility analysis is an analysis of the requirements, technology, and economics of any management system. One of the most important technical aspects is feasibility. Technical feasibility is the analysis of whether the application development system of software development technology is feasible. Secondly, analyze the requirements of the software system and analyze whether the software requirements can meet the pre-designed functional requirements. Finally, the operational feasibility and economic feasibility of the system are discussed.

3.1.1Technical feasibility _ _ 

Both computers and mobile phones are occupying people's work and life at a very rapid speed, so what can assist computers to help people change their work and life conditions are the functional software installed on computers. The system to be designed in this article starts from the idea of ​​being simple and easy to understand, and will assist users in operation through text index prompts.

The development environment and configuration of the system can be installed by ourselves. The system uses ASP.NET development tools to modify and maintain data information according to technical language, and combines requirements to make the system run more stable and secure, thereby completing the development of the system. The rapid development of network technology has made the network transmission faster and faster, the price is lower and lower, and the security is higher and higher. All its hardware platforms can fully meet the needs of campus online voting system development.

Therefore, we conducted a feasibility study from two aspects, and it can be seen that there is no problem with the technical feasibility development of the system.

3.1.2 Economic  feasibility _ _

Any software system will consider the latter part of its economic feasibility in its development, that is to say, the development cost of the software is matched with the expenditure required for the design and the economic benefits that subsequent operation may bring, in addition to considering whether this part of the software can Bring economic benefits to users.

Economic feasibility includes a study of the resources required for system implementation. The resources required during system implementation mainly include human resources, natural resources and financing conditions. The development of the campus online voting system is developed by the developers themselves, and there is no need to purchase other software or ports, and the market research and other campus online voting systems before the development of the campus online voting system are free of charge It is all through the efforts of the developers themselves. All the work is done by themselves. When encountering problems that are difficult to solve, most of them solve the relevant information with the help of classmates and instructors. Therefore, online voting on campus The development of the system is completely economically feasible without any expenditure.

Using ASP.NET technology is a relatively mature technology, so there is no economic problem in the development of the campus online voting system management platform.

3.1.3 Operational feasibility 

Operational feasibility means that the system cannot have too complex operations and usage processes. The campus online voting system is based on ASP.NET installation software, with a simple access and operation interface and easy operation. Users can access and operate as long as they are connected to the network. The interface design of the system is very kind and makes people feel relaxed and happy. First of all, it can give the operator a good mood and allow the staff to work with a better attitude. Secondly, it is also very beautiful. In the use of the system, it is not only the application After seeing the complete functions of the system, I also appreciated the simple appearance of the system. The second is the function of the system. Staff who know a little bit about simple computer operations can handle the daily use of the system with ease. Therefore, it has the characteristics of simple operation, convenient management, strong interactivity, and is very feasible in operation.

3.1.4 Legal feasibility _ 

There is no conflict between the design and development of the system platform and national policies and regulations. In addition, the operation and working mode used in the design and development of the platform are in line with users' daily habits, making it easy to operate, flexible, easy to manage, and highly practical. The data used in the development process comes from open source code, there is no dispute over intellectual property rights, and it is legal.

In summary, it is feasible to develop a campus online voting system based on ASP.NET.

3.2 Requirements analysis

The campus online voting system is mainly to improve the work efficiency of the staff and more convenient quick query, management of voting information, better storage of all data information and fast and convenient retrieval function, each module of the system is through many of today's developed systems Make reasonable analysis to determine user operability, follow the principles of system optimization developed, and undergo comprehensive investigation and research.

The function analysis to be realized by the system, for the convenient management of the current network, the system should realize that users can directly view all data information on the platform, and can add, delete or modify mobile phone information online according to needs, which can save time and eliminate the need to The traditional method wastes time and it is really difficult to meet the various needs of users. Therefore, the development of the campus online voting system can not only meet the needs of users, but also improve the work efficiency of administrators and reduce the original unnecessary workload.

3.3System design principles

1. Basic requirements for campus online voting system

(1) Functional requirements: homepage, carousel map management, announcement management, resource management (campus information, information classification), system users (administrators, students, teachers), module management (voting classification, voting information, online voting, online message) and other functional modules.

(2) Performance: It can be used on different operating systems without errors, so that different types of users can perform expected operations without errors and conveniently after logging into the corresponding interface.

(3) Security and confidentiality requirements: Users must pass identity verification to enter the system, and user permissions also need to be limited according to the type of user.

(4) Environmental requirements: Supports multiple platforms and can be used under multiple operating systems such as Windows series and Vista systems.

2. Development goals

The main development goals of the campus online voting system are as follows:

(1) Realize the systematization, standardization and automation of management system information relationships;

(2) Reduce the workload of maintenance personnel and enable users to control and manage information.

(3) Convenient to query information and manage information, etc.;

(4) Improve the efficiency of problem handling and increase operator utilization through network operations;

(5) Taking into account the diversity of users, the interface is required to be simple and easy to operate.

3. Economic benefits 

The purpose of designing the system is to better save personnel costs and various expenses, so the costs and benefits of system development need to be considered.

3.4 Business process analysis

3.4.1 Operation process

System login flow chart, as shown in the figure:

                                                                    

Figure 3-1 Login flow chart

3.4.2 Add information process

Add an information flow diagram, as shown in the figure:

                                                     

Figure 3-2 Add information flow chart

3.4.3 Delete information process

Delete information flow chart, as shown in the figure:

                                                      

                                                             Figure 3-3 Deletion information flow chart


Chapter 4 Overall System Design 

4.1 System function modules

The basic functions of the system include two user role functional modules: administrator and student user.

The functional modules that administrators can use mainly include backend home page, carousel management, announcement management, resource management (campus information, information classification), system users (administrators, students, teachers), module management (voting classification, voting information) , online voting, online message)) and other functions.

4.2 System structure design

The system architecture diagram belongs to the system design stage. The system architecture diagram is only a product of this stage. The overall architecture of the system determines the model of the entire system and is the foundation of the system. The overall structural design based on the campus online voting system is shown in Figure 4-2.

Figure 4-1 System structure diagram

4.3 Database design

4.3.1Introduction to database _ _

Database is the foundation and core of information system. The quality of database design directly affects the success or failure of information system development. To create a database table, first determine the attributes of the entities and the relationships between them. Create a data table based on the relationship.

4.3.2 Database design _ _

(1) ER diagram of the system

Conceptual models are powerful tools for database design. Database conceptual model design can describe the conceptual model of the real world through ER diagrams. An ER diagram of a system shows the links between entities in the system . 

(2) Entity attribute diagram

The entity diagram of the administrator is shown in Figure 4-2.

                                                  

Figure 4-2 Administrator entity diagram

The user information entity diagram is shown in Figure 4-3.

                                                                    

Figure 4-3 User Information Entity Diagram

(3)Database design table

access_token

Field Name

type

length

not null

primary key

Field description

token_id

int

0

yes

yes

Temporary access badge ID

token

nvarchar

64

no

no

temporary access badge

info

nvarchar(max)

0

no

no

maxage

int

0

yes

no

Maximum life

create_time

datetime2

7

yes

no

creation time

update_time

datetime2

7

yes

no

Update time

user_id

int

0

yes

no

user ID

article

Field Name

type

length

not null

primary key

Field description

article_id

int

0

yes

yes

Article id

title

nvarchar

125

yes

no

title

type

nvarchar

64

yes

no

Article classification

hits

int

0

yes

no

hits

praise_len

int

0

yes

no

Likes

create_time

datetime2

7

yes

no

creation time

update_time

datetime2

7

yes

no

Update time

source

nvarchar

255

no

no

source

url

nvarchar

255

no

no

Source address

tag

nvarchar

255

no

no

Label

content

nvarchar(max)

0

no

no

text

img

nvarchar

255

no

no

cover picture

description

nvarchar(max)

0

no

no

Article description

collect

Field Name

type

length

not null

primary key

Field description

collect_id

int

0

yes

yes

Collection ID

user_id

int

0

yes

no

Collector ID

source_table

nvarchar

255

no

no

Source table

source_field

nvarchar

255

no

no

Source field

source_id

int

0

yes

no

source ID

title

nvarchar

255

no

no

title

img

nvarchar

255

no

no

cover

create_time

datetime2

7

yes

no

creation time

update_time

datetime2

7

yes

no

Update time

comment

Field Name

type

length

not null

primary key

Field description

comment_id

int

0

yes

yes

Comment ID

user_id

int

0

yes

no

Reviewer ID

reply_to_id

int

0

yes

no

回复评论ID

content

nvarchar(max)

0

内容

nickname

nvarchar

255

昵称

avatar

nvarchar

255

头像地址

create_time

datetime2

7

创建时间

update_time

datetime2

7

更新时间

source_table

nvarchar

255

来源表

source_field

nvarchar

255

来源字段

source_id

int

0

来源ID

online_message

字段名称

类型

长度

不是null

主键

字段说明

online_message_id

int

0

在线留言ID

title

nvarchar

64

标题

student_no

int

0

学生学号

student_name

nvarchar

64

学生姓名

contact_number

nvarchar

64

联系电话

message_content

nvarchar(max)

0

留言内容

proposal

nvarchar(max)

0

建议

examine_state

nvarchar

16

审核状态

examine_reply

nvarchar

16

审核回复

recommend

int

0

智能推荐

create_time

datetime2

7

创建时间

update_time

datetime2

7

更新时间

online_voting

字段名称

类型

长度

不是null

主键

字段说明

online_voting_id

int

0

在线投票ID

theme

nvarchar

64

主题

voting_category

nvarchar

64

投票类别

start_time

date

0

开始时间

deadline

date

0

截止时间

student_no

int

0

学生学号

voting_options

nvarchar

64

投票选项

number_of_votes

nvarchar

64

投票数

reason_for_voting

nvarchar(max)

0

投票原因

recommend

int

0

智能推荐

create_time

datetime2

7

创建时间

update_time

datetime2

7

更新时间

praise

字段名称

类型

长度

不是null

主键

字段说明

praise_id

int

0

点赞ID

user_id

int

0

点赞人

create_time

datetime2

7

创建时间

update_time

datetime2

7

更新时间

source_table

nvarchar

255

来源表

source_field

nvarchar

255

来源字段

source_id

int

0

来源ID

status

tinyint

0

点赞状态

student

字段名称

类型

长度

不是null

主键

字段说明

student_id

int

0

学生ID

student_no

nvarchar

64

学生学号

student_name

nvarchar

64

学生姓名

class_name

nvarchar

64

班级名称

major

nvarchar

64

专业

college

nvarchar

64

学院

examine_state

nvarchar

16

审核状态

recommend

int

0

智能推荐

user_id

int

0

用户ID

create_time

datetime2

7

创建时间

update_time

datetime2

7

更新时间

teacher

字段名称

类型

长度

不是null

主键

字段说明

teacher_id

int

0

教师ID

teacher_no

nvarchar

64

教师工号

teacher_name

nvarchar

64

教师姓名

department

nvarchar

64

部门

examine_state

nvarchar

16

审核状态

recommend

int

0

智能推荐

user_id

int

0

用户ID

create_time

datetime2

7

创建时间

update_time

datetime2

7

更新时间

user

字段名称

类型

长度

不是null

主键

字段说明

user_id

int

0

用户ID

state

smallint

0

账户状态

user_group

nvarchar

32

所在用户组

login_time

datetime2

7

上次登录时间

phone

nvarchar

11

手机号码

phone_state

smallint

0

手机认证

username

nvarchar

16

用户名

nickname

nvarchar

16

昵称

password

nvarchar

64

密码

email

nvarchar

64

邮箱

email_state

smallint

0

邮箱认证

avatar

nvarchar

255

头像地址

create_time

datetime2

7

创建时间

voting_classification

字段名称

类型

长度

不是null

主键

字段说明

voting_classification_id

int

0

投票分类ID

voting_category

nvarchar

64

投票类别

recommend

int

0

智能推荐

create_time

datetime2

7

创建时间

update_time

datetime2

7

更新时间

voting_information

字段名称

类型

长度

不是null

主键

字段说明

voting_information_id

int

0

投票信息ID

theme

nvarchar

64

主题

content

nvarchar(max)

0

内容

voting_category

nvarchar

64

投票类别

cover

nvarchar

255

封面

start_time

date

0

开始时间

deadline

date

0

截止时间

option_a

nvarchar

64

选项A

option_b

nvarchar

64

选项B

option_c

nvarchar

64

选项C

option_d

nvarchar

64

选项D

hits

int

0

点击数

praise_len

int

0

点赞数

recommend

int

0

智能推荐

create_time

datetime2

7

创建时间

update_time

datetime2

7

更新时间

第5章  系统实现

5.1管理员功能模块

管理员登录,管理员通过输入用户名、密码进入校园在线投票系统,如图5-1所示。

                                                 图5-1管理员登录界面图

管理员登录进入校园在线投票系统可以查看后台首页,轮播图管理,公告管理,资源管理(校园资讯,资讯分类),系统用户(管理员,学生,教师),模块管理(投票分类,投票信息,在线投票,在线留言)等内容,如图5-2所示。

图5-2管理员界面图                         

系统用户,在此页面可以查看用户名、昵称、姓名等信息,并可根据需要进行修改或删除等详细操作,学生用户注册必须管理员审核,教师用户由管理员添加如图5-3所示。

                                            图5-3教师用户添加界面图  

投票信息,在此页面可以查看现有的投票活动,并可根据需要进行重置、添加和删除等详细操作,如图5-4,5-5所示。

图5-4投票信息界面图                              

图5-5添加投票活动界面图                           

在线投票,在此界面可以查看用户的投票选择,并可根据需要进行重置或删除等详细操作,如图5-6所示。

图5-6在线投票界面图                                 

5.2学生用户功能模块

学生用户注册,用户通过输入账号,密码,昵称,邮箱,手机号,学号等信息进行账号注册,并在通过管理员审核后可登录,如图5-7所示。

图5-7用户注册界面图                            

用户首页,用户登录后可以查看首页,公告消息,校园资讯,投票信息,在线投票,在线留言,我的(我的账户,我的收藏,个人中心)等信息并进行相应操作,如图5-8所示。

图5-8用户首页界面图                          

我的,在此页面可以对个人资料,密码,收藏等信息进行查看,修改,删除等操作,如图5-9所示。

图5-9我的界面图                         

投票信息,在此页面可以查看现有的投票活动,也可以进行筛选,收藏,发布等操作,如图5-10所示。

图5-10投票信息界面图                               

在线投票,在此页面可以对投票信息进行详情查看和投票等操作,如图5-11所示。

图5-11在线投票界面图                                

在线留言,在此页面可以上传留言,如图5-13所示。

图5-12在线留言界面图                               

5.3教师功能模块

投票信息,在此页面可以对投票活动进行增删改等操作,如图5-13所示。

图5-13发布投票活动界面图                       

第6章 系统测试

系统测试主要是通过测试确定系统的可操作性,系统故障必须在规定的时间内纠正,否则会造成严重的经济损失。验证系统内的保护机制,以防止未经授权的入侵。在安全测试中,测试人员的作用是试图闯入系统并使用各种方法来试图突破防御。因此,系统安全设计的标准是找到一种使入侵系统更先进的方法。

6.1系统测试的目的

程序设计不能保证没有错误,这是一个开发过程,在错误或错误的过程中都是难以避免的。虽然这是不可避免的,但我们不能使这些错误始终存在于系统中,错误可能会造成无法估量的后果,如系统崩溃,安全信息泄露,系统无法正常启动等,为了避免这些问题,我们需要测试程序,在测试过程中发现问题并纠正它们,从而使系统更长时间稳定成熟。本章的作用是发现这些问题并对其进行修改,虽然耗时费力,但对于系统的开发长期使用而言是非常重要和必要的。

软件在设计后必须进行测试,调试过程中使用的方法是软件测试方法。在开发新软件时,系统测试是检查软件是否合格的关键步骤,以及是否符合设计目标的参考。测试主要是查看软件中数据的准确性,正确的操作与否,以及操作的结果,还有哪些方面需要改进。

校园在线投票系统的实现,对于系统中功能模块的实现及操作都必须通过测试进行来评判系统是否可以准确的实现。在校园在线投票系统正式上传使用之前必须做的一步就是系统测试,对于测试发现的错误及时修改处理,保证系统准确无误的供给用户使用。

6.2测试策略

测试系统主要针对以下三个方面进行测试:

1、基于ASP.NET的系统代码的单元测试,集成测试,系统测试和验收测试结果;

2、测试对象中列出的可测试或不可接受的特征和功能;

3、分析并记录测试要求:日期的书面文件不影响测试的设计、开发和执行。

6.3测试特性及分析

系统测试的特性如下:

(1)挑剔性:测试是为了找出系统的错误,在系统测试时我们要严格苛刻,十分挑剔。

(2)复杂性:测试是一个非常复杂的过程。

(3)不彻底性:虽然系统经过测试,但测试仍然会存在不够彻底的问题,测试不能保证系统后期运行完整无误,所以要在后期不断的检查、修改。

(4)经济性:通场这种测试称为“选择测试(Selective Testing)”。在测试时要遵守经济性的原则。

经过测试,产品的稳定性和成熟度可以大大提高,产品质量也可以得到保证。

6.4功能测试

系统测试方面,我们通常运用的是白盒测试以及黑盒测试这两种方法。白盒测试是指在了解系统内部工作流程的前提下,可以根据需求规范验证系统内部操作是否能够正常运行的测试;而黑盒测试指的是,倘若知道了这个系统的全部功能,可以进行测试检测系统中的每一个功能是否满足正常使用。

功能测试,主要是对系统的用户登录进行详细的测试,但是登录不可以是任何人都可以登录成功的,所以对登录进行详细测试。

用户登录测试:

模块名称

测试用例

预期结果

实际结果

是否通过

登录模块

用户名:admin   密码:123  

弹出错误提示,提示密码错误

弹出错误提示,提示密码错误

通过

登录模块

用户名:123   

密码:admin   

弹出错误提示,提示用户名错误

弹出错误提示,提示用户名错误

通过

登录模块

用户名:admin   

密码:admin   

管理员登录成功

管理员登录成功

通过

删除分类测试:

模块名称

测试用例

预期结果

实际结果

是否通过

删除分类模块

分类名:最新通知  

删除成功、页面自动跳转

删除成功、页面自动跳转

通过

修改密码测试:

模块名称

测试用例

预期结果

实际结果

是否通过

修改密码模块

原密码:666

新密码:123

确认密码:123  

弹出错误提示,提示原密码错误

弹出错误提示,提示原密码错误

通过

修改密码模块

原密码:admin   新密码:123

确认密码:333  

弹出错误提示,提示确认密码不一致

弹出错误提示,提示确认密码不一致

通过

修改密码模块

原密码:admin   新密码:123

确认密码:123  

密码修改成功

密码修改成功

通过

通过对功能的测试,校园在线投票系统的基本功能都是可行的,不管是系统里面的功能,还是界面的设计都是可值得推广宣传的。

6.5测试结果

经过对一系列测试结果的有效分析,本平台开发系统符合用户的要求和需求。所有的基本功能相对齐全,操作起来简单方便,测试系统性能良好,作为大众化系统使用是比较值得推广宣传的。


结  论

此时项目已经完成,即使实施的时间不是很长,但是在这个过程中需要准备很长的一段时间去对系统设计开发所实际用到的技术进行学习和巩固。在学习的过程中,我逐渐认识到了我自身存在的一些不足。该系统仍有很多不成熟的地方,在系统设计过程中有许多技术缺陷存在。在设计的过程中也涉及到了很多自己无法解决的问题,主要通过找专业的网站和论坛来解决这些问题,对于圆满完成我的毕业设计,他们也贡献了很大一部分力量。

系统的开发环境和配置都是可以自行安装的,系统使用ASP.NET开发工具,使用比较成熟的SQL Server数据库进行对系统前台及后台的数据交互,根据技术语言结合需求对数据库进行修改维护,可以使得系统运行更具有稳定性和安全性,从而完成实现系统的开发。

在设计系统的过程中还遇到了一个棘手的问题,那就是自己的英语水平还有待提高,很多关于网站技术开发的资料文献都是英文版的,关键词语以及技术性词汇不能很好的理解。只有在借助翻译软件的实时性翻译功能的辅助下才勉强看懂。显然英语水平的高低直接影响到系统的开发过程。

回顾毕业设计的整个过程,既付出了努力与汗水也收获了很多难以忘怀的美好经历。虽然在系统开发过程中经历了各种各样的困难,自己也在不断研究与探索,可是系统的实现仍有许多不足之处。但是经过系统编程工作的学习让我有了更多的信心,相信在未来的路上我会走的更好。


参考文献

[1]Joydip Kanjilal. How to use cancellation tokens in ASP.NET Core 7[J]. InfoWorld.com,2022.

[2]咸兆勇. NoSQL数据库在网络投票系统的应用[J]. 信息与电脑(理论版),2022,34(10):206-208.

[3]陈晓棠. 基于ASP.NET的项目管理系统的设计与实现[J]. 微处理机,2022,43(02):34-37.

[4]段然,肖天辉. 基于AS.NET的医院OA管理系统设计与实现[J]. 无线互联科技,2022,19(06):63-65.

[5]江文生. 基于.NET开发的化合物管理系统的设计与实现[J]. 信息与电脑(理论版),2022,34(03):106-109.

[6]Joydip Kanjilal. Demystifying the Program and Startup classes in ASP.NET Core[J]. InfoWorld.com,2022.

[7]吴晓晶. 基于ASP.NET的高职院校实验教学管理系统设计和实现[D].贵州大学,2021.

[8]葛华,许礼捷,杨广. 基于ASP.NET资产管理系统的设计与实现[J]. 电脑知识与技术,2021,17(30):86-87+94.

[9]Joydip Kanjilal. How to use the Developer Exception Page in ASP.NET Core MVC[J]. InfoWorld.com,2021.

[10]陈锦繁,秦斌,刘佳敏. 高校投票系统计票计分算法的改进探索和实践[J]. 现代计算机,2021,27(28):60-64.

[11]宋方方,田益民,高雪,杨帅,郑美俊. 基于ASP.NET公司管理系统的设计与实现[J]. 北京印刷学院学报,2021,29(08):142-145.

[12]朱翔宇,谢小芳,潘桃桃,龚敏,冉茂江,杨友娇. 基于ASP.NET的高校教材管理系统的开发与设计[J]. 电脑知识与技术,2021,17(23):72-74.

[13]常佳宁. 基于ASP.NET的图书管理系统设计[J]. 中国科技信息,2021,(14):73-74.

[14]张忠孝,李双远,丁勤. 基于Web的高校职称评审投票系统的设计与实现[J]. 吉林化工学院学报,2021,38(07):29-35.

[15]高源. 基于Asp.Net MVC架构招标管理系统研究[J]. 中国管理信息化,2021,24(12):94-95.

[16]彭灿华. 基于.net core + vue框架的教学资料管理系统设计与实现[J]. 无线互联科技,2021,18(10):65-66+100.

[17]高笑枫. 基于多方计算的安全电子投票系统设计与实现[D].华北电力大学(北京),2021.

[18]Dafei Wu,Qinghong Pan,Li Xiaolong. Permission and content management model based on ASP.NET technology and three-layer network architecture[J]. Journal of Intelligent & Fuzzy Systems,2020,39(6).

[19]王雪莹. 基于Web的安全电子投票系统[D].西安电子科技大学,2020.

[20]刘瀚宇. 高校投票平台的构建与实现[J]. 农业网络信息,2017,(02):134-137..


致  谢

时间过得真快,眨眼之间,大学四年的学习生活即将结束,无论是在学习还是生活的这四年,老师们给了我很多帮助,让我终身受益匪浅。老师们不仅帮我树立了正确的人生观和价值观,还帮我养成了很多好习惯,树立了终身学习的意识。在此,我要对我的所有老师表示衷心的感谢。与此同时,我还要感谢陪伴我在这四年里一起成长的伙伴们。他们给了我无私的帮助和关怀,让我在人生最好的四年中获得许多真诚的友谊。

毕业设计是大学四年的最后一个答卷,我们正忙着这四年的美好结束。在毕业项目主题选择的早期阶段,我很紧张担心自己选择的主题很复杂,难以理解,觉得不能这样做会影响我的毕业。是指导老师给我们提供了毕业设计的主题和具体要求,让我们对毕业设计不要太模糊,如果对主题有任何异议,要及时跟他沟通,并且还帮我们介绍他带过的优秀学哥学姐,对我们进行指导,这样再设计上遇到的问题就可以及时得到解决,对我们完成毕业设计提供好的指导条件。

对于毕业设计项目主要是对我在大学所学的专业知识进行一次综合的考验,让我们通过所学的技术知识可以真正的运用到实际动手开发中,通过项目的开发让我意识到自己很多地方的不足,所学知识的不扎实,不能很好的将自己所学的知识运用到系统实际开发上。后来通过自己在图书馆查阅大量书籍,完成系统的设计大纲,阅读笔记和翻译,毕业设计不仅要考验我们的个人能力,还要测验我们的学习态度,做到细节的事情。对于指导老师的帮助,我的毕业设计才可以顺利的完成,我非常感谢。

最后要感谢我的同学们,是你们不断的帮助、鼓励、熬夜、保持调试,测试程序,最终完成校园在线投票系统的运行。我们在交流,谈论时间,将是我们未来的财富,我要深深地感谢你。

毕业在即,在今后的工作和生活中,我会铭记师长们的教诲、同学们的帮助,继续不懈努力和追求,来报答所有支持和帮助过我的人!

请关注点赞+私信博主,免费领取项目源码
 

Guess you like

Origin blog.csdn.net/ID3461074420/article/details/132684384