MvcNTier
-
Upload
srinivas-reddy -
Category
Documents
-
view
16 -
download
0
description
Transcript of MvcNTier
MVC N-Tier
Page 1 of 10
MVC3 N-Tier EMR Sample
Version 0.81
February 2011
MVC N-Tier
Page 2 of 10
Table of Contents
1 INTRODUCTION .................................................................................................................................................4
2 NEW INSTALL ....................................................................................................................................................5
2.1 DATABASE CREATION ......................................................................................................................................5
3 LOGGING IN .......................................................................................................................................................6
4 ERROR HANDLING ........................................................................................................................................ 10
MVC N-Tier
Page 3 of 10
Summary
This is a MVC3 N-Tier EMR sample. It uses WCF to separate the presentation from the back-end.
MVC N-Tier
Page 4 of 10
1 Introduction
This samples uses the following major technologies:
MVC3 - Presentation layer
WCF - Used to separate the back-end from the presentation
Entity Framework Code First - Persistence
MVC N-Tier
Page 5 of 10
2 New Install
Use the Source tab to download the software. Point the connection strings in the web.config and App.config files to the database on your system. The following shows the values in source:
<add name="EmrContext" connectionString="Data Source=localhost;Initial Catalog=EmrDB;User ID=FIC;Password=MvcNtier+1;" providerName="System.Data.SqlClient"/>
2.1 Database creation
The Entity Framework Code First (CTP5) will create the database and populate it with some sample records.
MVC N-Tier
Page 6 of 10
3 Logging in
When running the software for the first time, select the “Register” button on the top right corner of the
screen to create a user.
Figure 1
Registering a user
MVC N-Tier
Page 7 of 10
Home/Search Screen Log in the application using the credentials of a user you registered earlier.
Figure 2
Home/Search
The options available on the left menu are:
Home – This is the home/search screen.
Demographics – Selecting this menu will display a paginated table of current patients in the
system. It also allows creation of new patients.
When starting, enter "8" in the last name and press the enter key.
MVC N-Tier
Page 8 of 10
Figure 3
Demographics
Figure 4
Problems
MVC N-Tier
Page 9 of 10
References 1. Contact Manager sample
2. MVCPager sample
3. MVC Template Gallery
4. Various EMR resources on the web
5. Expense sample
6. PetShop sample
MVC N-Tier
Page 10 of 10
4 Error Handling
Add