Mvc Model Activity Diagram


generated and returned to the browser. Here are some details of the three components of MVC:

Model: It is responsible for providing data to the database and saving data to data stores. All logical operations are executed in the Model. Data input from users will be checked in the Model through the View before being saved to the database. Data retrieval, validation and saving are part of the Model.

View: Displays information to the user of the application and is responsible for receiving input from the user, sending requests to the controller, then receiving responses from the controller and displaying the results to the user. HTML pages, JSPs, tag libraries and source files are part of the View.

Controller: Is the intermediate layer between Model and View. Controller is assigned the task of receiving requests from the client. A request received from the client is performed by an appropriate logic function from the Model component and then generates results for the user and is displayed by the View component. ActionServlet, Action, ActionForm, struts-config.xml are components of Controller.

Maybe you are interested!

The benefit of using MVC approach is the clear separation between Models, Views, Controllers within the application. A clean structure makes testing the application easier.

The interaction between components in the MVC model is shown through the diagram.

after:


Figure 2.1: MVC model


In the MVC model, controllers are C# classes that inherit from the base class System.Web.Mvc.Controller. Public methods are called actions, which are directly linked to a URL defined in the ASP.NET routing system.

Views in ASP.NET MVC use Razor technology to generate controls displayed on the user interface. Developers can completely replace Razor technology with another technology if they want.

The model defines everything that the application will do. For example, in a student grades management application, the model represents the student, grade sheet, and course objects. The model is also responsible for ensuring the consistency of the data, for example, a student's course grade cannot be less than 0 and cannot be greater than 10.

A model in ASP.NET MVC is defined by a C# class that represents mappings to a database, relationships between objects, or other data objects supported by .NET.

2.2.2. MVC model activity diagram


Figure 2.2: MVC activity diagram

Describe the flow of events handled in MVC:

User interacts with View, by clicking on the button, user sends request.

The Controller receives and directs them to the correct processing method in the Model.

Model receives information and executes requests.

When the Model finishes processing, the View will receive the result from the Model and display it back to the user.


2.3. SQL SERVER 2012 DATABASE MANAGEMENT SYSTEM

SQL Server is a Relational Database Management System (RDBOMS) or also known as Realational Database Management Systems. A relational database is a database whose data is organized into tables. The tables are organized by grouping data by similar topics and contain columns and rows of information. These tables are then linked together by the Database Engine when required. Relational databases are one of the most popular database models today.

The database management system “SQL Server” is one of the convenient and effective software systems in developing large database applications, integrating and separating for agencies, organizations and localities.

SQL Server provides good support in the process of uniform processing and data security according to the Client/Server model on the network.

SQL Server is a powerful relational database system, suitable for ASP.Net MVC. Through which it is easy to store, sort, search and display data on SQL Server. SQL Server manages data access to ensure simultaneous access and use of data by many people, ensuring that only valid users have access to the database and increasing database access speed. Based on the advantages mentioned above, SQL Server is chosen as the database management system of the system.

SQL server 2012 can read most of today's high-level programming languages.

Moreover, SQL Server 2012 is easy to install and use, so it is widely used.

2.4. WEB PROGRAMMING THEORY

HTML (Hyper Text Markup Language) is also known as text markup language. HTML is designed to create web pages with information templates to present web page content. The current version is HTML5. HTML is not a programming language but a presentation language.

CSS (Cascading Style Language) is a language that defines the presentation of web documents... CSS allows web designers to add styles to web documents (such as fonts, colors, spacing...). CSS can create a format style once but can be reused many times.


Ajax (Asynchronous JavaScript and XML) is not a new programming language, it is a combination of existing techniques, components and standards such as XML/ XMLHttpRequest, JavaScript, HTML, CSS, DOM (Document Object Model). Ajax works silently (background) so the user will not be able to notice until the result is displayed.

Jquery is a JavaScript library designed to simplify web interface programming, jQuery allows interaction with elements (DOM) on an HTML page, easily controls user actions, makes the user interface more friendly by effects, responses from the system and makes Ajax programming simpler.

Jquery UI is a set of visual interfaces, developed based on the jQuery library.


CHAPTER 3. SYSTEM ANALYSIS – DESIGN

3.1. SYSTEM REQUIREMENTS ANALYSIS

3.1.1. System description

The training scoring system includes users: Students, Teachers, Academic Affairs Department staff, Student Affairs Department.

When it is time to conduct training scoring, the student affairs office will notify the specific time and conduct training scoring of students in the school, the notification includes the start date and end date of student training scoring on the system.

Each student will have their own account and password to log into the system. Students will perform training scores on the system when there is a training score announcement according to the prescribed time of each semester that the school has announced. If students do not perform training scores within the time announced, there will be no training scores at the end. In addition, students can edit the training scores for the semester being considered if there is still time allowed. Each student can view the semester and school year scores of previous semesters.

After the time for students to self-grade is up, the academic advisor will review the scores. The academic advisor will log in to the system to review the training scores for the students in their class. Teachers can edit or keep the scores for students.

After the academic advisor approves the scores for his/her students, the faculty's academic affairs department logs into the system and approves the training scores for all students in his/her faculty. It can be approved by class or by faculty. In addition, the faculty can view and print the transcripts of the faculty's students by class, semester and school year of previous semesters that have been reviewed.

In addition to managing notifications, time for reviewing training scores, score frames and criteria for reviewing training scores, the student affairs department can print out a list of students with poor training scores and print a list of training scores of students by faculty.

3.1.2. Storage Requirements

The system allows storing and updating some information into the database such as:


Department information: Each department includes information that needs to be stored such as: department number, department name, account and password of each department when logging into the system.

Course information: Each course includes the information that needs to be stored: the serial number of each course, the start year and the end year.

Class information: Each class includes information that needs to be stored such as: class code, class name. In addition, there needs to be information indicating which department the class belongs to and which course through the department number and course number.

Student information: Each student includes information that needs to be stored such as: student code, full name, date of birth, address, student login password. At the same time, there must be information indicating which class the student is studying through the class code.

Teacher information: Each teacher includes information that needs to be stored such as: teacher code, teacher name, email, phone number, and teacher login password. In addition, there must be information indicating which department the teacher belongs to through the department number.

Semester and school year information: Each semester and school year includes information that needs to be stored such as: semester, school year.

The training score frame includes information that needs to be stored such as: the content of each criterion and the corresponding score of each criterion.

Training score classification includes information that needs to be stored such as: classification name, maximum and minimum score of each classification.

Announcement: Includes information on the date of announcement, start date and end date of student grading, start date and end date of teacher grading, start date and end date of faculty council grading.

Training points: To store students' training points.

Student affairs office account includes login and password.

3.1.3. Search request

Student training points.

3.1.4. Calculation requirements

Total student training score.

3.1.5. Functional requirements

Login function.


Logout function.

Students:

+ Training score.

+ View training points.

Teacher:

+ Browse training points.

+ Review each student's score.

Department - Faculty:

+ Browse scores by class group.

+ Browse scores by class

Student Affairs Department:

+ Notice (start date and end date of student training grading).

+ Scoring framework and criteria for considering training scores.

+ Classification.

3.1.6. Non-functional requirements

Save costs by using open source software.

Website capacity is not too large.

Friendly interface, easy to use.

Search work must be done accurately, no errors accepted.

Ensure data security when running online websites, with authorization between different types of users.


3.2. TRAINING SCORING PROCESS DIAGRAM


Figure 3.1: Training scoring process

3.3. DATA DESIGN

3.3.1. BFD Business Diagram


1

Website Cham Diem Ren Luyen

1 ..2

Teacher

1 ..3

Student

1 ..4

Department

1 ..5

Student Office

1 ...2...2

Browse DRL

1 ...2...3

Browse Student

1 ...3...4

Cham DRL

1 ...3...5

See DRL

1 ...4...2

Browse by Class

1 ...4...3

Browse by Class

1 ...5...2

T R L O R

1 ...5...5

Sort

1 ...5...3 1 ...5...4

Additional Exam Scoring Framework

Figure 3.2: BFD business diagram

Comment


Agree Privacy Policy *