mvcntier

10
MVC N-Tier Page 1 of 10 MVC3 N-Tier EMR Sample Version 0.81 February 2011

Upload: srinivas-reddy

Post on 26-Mar-2015

16 views

Category:

Documents


0 download

DESCRIPTION

MVC N-TierMVC3 N-Tier EMR SampleVersion 0.81February 2011Page 1 of 10MVC N-TierTable of Contents1 2 INTRODUCTION .................................................................................................................................................4 NEW INSTALL ....................................................................................................................................................5 2.1 3 4 DATABASE CREATION ......................................

TRANSCRIPT

Page 1: MvcNTier

MVC N-Tier

Page 1 of 10

MVC3 N-Tier EMR Sample

Version 0.81

February 2011

Page 2: MvcNTier

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

Page 3: MvcNTier

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.

Page 4: MvcNTier

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

Page 5: MvcNTier

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.

Page 6: MvcNTier

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

Page 7: MvcNTier

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.

Page 8: MvcNTier

MVC N-Tier

Page 8 of 10

Figure 3

Demographics

Figure 4

Problems

Page 9: MvcNTier

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

Page 10: MvcNTier

MVC N-Tier

Page 10 of 10

4 Error Handling

Add