0% found this document useful (0 votes)
220 views336 pages

Aditya Raj: Project Report of

Uploaded by

jimmy mack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
220 views336 pages

Aditya Raj: Project Report of

Uploaded by

jimmy mack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 336

PROJECT REPORT OF

BCSP-064

RMIS
[ RESOURCE MAINTENACE AND MANAGEMENT SYSTEM]
by

ADITYA RAJ
Enrolment No: 196473385

Under Guidance
of
ADITYA CHAUDHARY
Submitted to the School of Computer and Information Sciences, IGNOU
in partial fulfilment of the requirements
for the award of the degree
Bachelore Of Computer Applications (BCA)

Indira Gandhi National Open University


Maidan Garhi
New Delhi – 110068.
PROJECT OF
BCSP-064

RESOURCE MAINTENACE AND


MANAGEMENT
SUBMITTED BY
Name : ADITYA RAJ
Enrolment No : 196473385
COURSE : BCA
RMIS
RESOURCE MAINTENANCE AND

1. CERTIFICATION OF

This is to certify that the project report entitled,

RMIS, A RESOURCE MAINTENANCE AND MANAGEMENT,

PROJECT Submitted to Indira Gandhi National Open University (IGNOU)

in partial fulfilment of the requirement for the award of the degree of

BACHELORE OF COMPUTER APPLICATIONS (BCA), is an original work

carried out by Mr.ADITYA RAJ, Enrolment No: 196473385 under the

guidance of Mr.ADITYA CHAUDHARY.

The matter embodied in this project is a genuine work done by the student

and has not been submitted whether to this University or to any other

University / Institute for the fulfilment of the requirement of any course of

study.

Signature of the Student Signature of the Guide

Name and Address of the Name, Designation

and student:

Address of the Guide

Enrollment No:

1
RMIS
RESOURCE MAINTENANCE AND

2. ACKNOWLEDGEMET
I have taken efforts in this project. However, it would not have been possible

without the kind support and help of many individuals and institutions. I

would like to extend my sincere thanks to all of them.

First of all, a huge “thank you” to my guide Professor MR.ADITYA

CHAUDHARY He is the best software developer and teacher also.I am highly

indebted to for their guidance and constant supervision as well as for

providing necessary information regarding the project & also for their support

in completing the project.I want to say again thanks for not the making us

learn the way he wanted to teach us, but teaching us the way we wanted to

learn.

I would like to express my gratitude towards my study center for their kind

co-operation and encouragement which help me in completion of this

project. I read in 0740D. It is fully furnished AC and WI-FI campus. All

teachers are well educated and well experienced.

Lastly, thanks to my Parents for all their love and support throughout my

life. Thank you both for giving me strength to reach for the starts and chase

my dreams. Also I say thank to my Elder brother who taught me the value

of hard work and education.

2
INDEX
S.NO PAGE

1. Certificate of Originality........................................1-1
2. Acknowledgement........................................................2-2
3. Synopsis….............................................................3-39
4. Introduction of the Project….........................40-40
5. Objective of the Project…...............................41-42
6. Tools/Platform to be Used................................43-43

7. System Analysis…..............................................44-71

7.1. Fact Finding….........................................................45-46


7.2. Feasibility Study....................................................47-47
7.3. Software Requirement Specification................48-62
7.4. Life Cycle Methodology........................................63-63
7.5. COCOMO Model......................................................64-65

7.6. Scheduling Techniques….....................................66-67

7.6.1. Pert Chart..............................................................66-66


7.6.2. Gantt Chart........................................................67-67

7.7. Risk Analysis and Management….........................68-71

8. System Design...................................................72-92
8.1. Modular Design........................................................72-72
8.2. Modular Description................................................73-74
8.3. Entity Relationship Diagram…...........................75-75
8.4. Class Diagram…......................................................76-76
8.5. Use Case Diagram…..................................................77-77
8.6. Flow Chart..................................................................78-79

1
INDEX
S.NO PAGE

8.7. Data Flow Diagram…...............................................80-92

8.7.1. Zero Level DFD................................................80-80


8.7.2. One Level DFD...............................................81-82
8.7.3. Two Level DFD.................................................83-90
8.7.4. Data Dictionary...............................................91-92

9. Testing...................................................................93-112

9.1. Types of Testing.......................................................93-93


9.2. Test Cases…..........................................................94-102
9.3. Test/Bug Report..................................................103-110
9.4. Debugging…...........................................................111-112

10. Implementation of Security…............113-119

10.1. Database Security.......................................113-115


10.2. Data Security............................................116-118
10.3. User and Access Rights…..........................119-119

11. Limitations of the Projects…..............120-120


12. Future Scope of the Project................121-121
13. Conclusions….........................................122-122
14. Bibliography..............................................123-123
15. Input and Output Screens.....................124-173
16. Coding with Comments…....................174-317

THANKS

2
RMIS
RESOURCE MAINTENANCE AND

SYNOPSIS
OF
RMIS

3
RMIS
RESOURCE MAINTENANCE AND

INDEX
S.NO PAGE

1. Introduction of the Project…...........................................5-5


2. Object of the Project….......................................................6-7
3. Tools /Platform to be Used…..............................................8-8
4. Project Category.....................................................................9-9
5. Complete Structure of the Project

5.1. System Analysis.....................................................10-11


5.1.1. Types of Fact Findings................................12-12
5.1.2. Feasibility Study..........................................13-13

5.2. Modular Description................................................14-15


5.3. Process Logic.............................................................16-16
5.4. Life Cycle Methodology........................................17-17

5.5. Scheduling Technique


5.5.1. Pert Chart…....................................................18-18
5.5.2. Gantt chart.....................................................19-19

5.6. System Design


5.6.1. ER-Diagram…...................................................20-20
5.6.2. Data Flow Diagram
5.6.2.1. Zero Level DFD......................................21-21
5.6.2.2. One Level DFD.....................................22-23
5.6.2.3. Two Level DFD.......................................24-31

5.6.3. Class Diagram…............................................32-32


5.6.4. Use Case Diagram…........................................33-33

5.7. Data Dictionary.........................................................34-35

6. Testing To be Used….........................................................36-36
7. System Security and Validation..................................37-37
8. Future Scope....................................................................38-38
9. Bibliography.......................................................................39-39

4
RMIS
RESOURCE MAINTENANCE AND

1. INTRODUCTION OF THE PROJECT

RMIS, Resource Maintenance and Management is a computer based MIS

System. It is an online Management Information System. It has been

developed in .Net using C# language. It is about the uses and Maintenance

of Equipment. It is able to predict the future purchases, usage and

maintenance history of all equipment’s.

In other hand if any resources records are maintained manually in any

organization then it takes lots of time, efforts etc. And if we consider over it

then we can find there will be lots of faults and mistakes. So, we need an

automation software which can support staff to maintain these records

without any error.

RMIS System is such a MIS software which is capable

to solve all the problems which are generally faced in any organization while

maintaining and managing the resources and equipment related records

manually. It is an online MIS system which maintains all the records easily.

It has a Database in which all the information are saved. So that whenever,

wherever we can track easily the resources and equipment related status.

5
RMIS
RESOURCE MAINTENANCE AND

2. OBJECTIVE
The main objective of this MIS system is that to provide a single platform by

which organization staff can easily maintain and manage the Resources and

Equipment’s easily.

ADMIN

 He/ She will registers Users who will use this software.

 He/ She will provides Userid and Password to interact with the

System.

 He/ She will provide trouble shoot if any faults occurs in the software.

 An Admin has right to modify and manage the existing records.

STAFF

 Staffs will get rights from Admin to access the RMIS software

application.

 Staff can view own profile and change passwords.

 They can add Agencies, Vehicles, Equipment, services etc.

VEHICLES

 Staff will add all vehicles record in this application.

 These records are managed by Admin.

EQUIPMENT

 Staff will add all Equipment record in this application.

 These records are managed by Admin.

6
RMIS
RESOURCE MAINTENANCE AND
 Whenever any equipment are purchased then these records are

maintained.

CONFERENCE ROOM

 Staff has rights to add new room details.

 These records are managed by Admin.

 These rooms are used for booking

SERVICE AGENCIES

 All The Equipment are Under Servicing Contract.

 Staff add Agency records in this software.

 Admin manage these records.

 Different agencies provide different services.

SERVICE

 All these resources and Equipment are under service contract.

 Staff records all the service details in this software.

 Services agencies send their engineers in organization on weekend.

AUCTION

 When any Resources getting 5 years old then these are send for

auction.

 All the Auction related details are maintained in company’s Database.

 Staff add all the auction related records and Admin manage it.

7
RMIS
RESOURCE MAINTENANCE AND

3.Tools / Platform

Hardware Requirement

Processor I-3, IVth Generation.

Ram 4 GB

Hard Disk 500 GB

Monitor LCD 15.6”

Key Board Qwerty

Mouse Optical

Software Requirement

Front End MVC using C#

Database Connectivity Entity Frame Work

Back End SQL Server 2012

Operating System Windows 7 and Above

Web Server IIS

8
RMIS
RESOURCE MAINTENANCE AND

4. Project Category
Web Application

The application which runs on the internet is called Web Application. In


Web Application, we request through URL and server response Html
Webpage.
Planet Job is an online web application, in which Job Seeker and Employer
can search their desire whatever they want and it will provide the best
result. Now a days we use .Net, Java, Php language to develop online web
application.

MVC
Model-View-Controller (MVC) is an architectural pattern that separates an
application into three main logical components: the model, the view, and
the controller. Each of these components are built to handle specific
development aspects of an application. It is one of the most frequently used
industry-standard web development framework to create scalable and
extensible projects.

Entity Framework

Entity Framework is an open-source ORM framework (Object Relation


Mapping) for .NET applications supported by Microsoft. It enables
developers to work with data using objects.It creates data access classes in
our existing database. In this way we can directly use these classes to
interact with DB.

C#

It is an Object Oriented programming language, which allows to develop


Real World Web Application. It has been developed by Microsoft. It is very
much based on C, C++ programming language. It has lots of features which
is required for design hard and complex Projects.

SQL Server

9
RMIS
RESOURCE MAINTENANCE AND

5. COMPLETE STRUCTURE OF THE

5.1 System Analysis What and Why?

It is the analysis of customer requirements. It is done by the System

Administrator and their team members. System Administrator is an

experienced Software engineer who has minimum 10 years’ experience of

Software Development. He meets with clients, understand the customer

requirements, and gather all the required information from his organization,

study over the existing system and its works functionality. Basically he tries

to find out from clients what does he want in new System? It is called

System Analysis.

System Analysis must be done before the software

development. It helps to understand the customer ideas, expectations, what

does he wants, why she/he looking for new system etc. After analyzing very

well a developer team can develop a better system. System analysis decides

which types of software and hardware should be required. So in every

developer company it is done very well.

1
RMIS
RESOURCE MAINTENANCE AND

A.Fact Findings What and Why?

When Customer meets with System Analyst for developing a System, then

He doesn’t say all the required information at a time. He generally tells main

and main things which wants to be implemented in new system. But for

developing a new system it is not enough. We has to gather all the required

information related to system. So System Administrator does Fact

Findings. In this technique he spends a lots of time with clients. System

analyst their team visit the client’s sites, study the old and existing system,

arrange a group discussion and try to gather all the information. Because it

is mandatory to develop client’s accordingly system.

Fact Finding plays an important role to gather all the

required information from clients. So it is followed by all Developer

companies. If any developer company starts developing new system,

without doing Fact Findings then they can’t develop client’s accordingly

system. If an application is fully developed then at a time clients demand any

new features so it is difficult to implement at a time. Without satisfying a

Customer can’t pay for the Project. So Fact finding is very important to

capture all the information.

1
RMIS
RESOURCE MAINTENANCE AND

5.1.1. Types of Fact

1. INTERVIEW

It is the first phase of getting fact findings. In this technique System

Administrator and their team member directly contact with Customer and

their staffs for gathering requirements.

2. GROUP DISCUSSION

System Analyst and his team members arrange a Group Discussion among

customers and their staffs. They put some question which helps to find out

information.

3. SITE VISITS

In this technique System Analyst and their team member visits the client’s

organization where application will be used. I visited many sites like RMS,

MIS system etc. I studied the procedure to track the current status of

resources, revenues checkouts, apply depreciation etc.

4. QUESTIONNAIRES

In this technique generally objective type’s questions paper are distributed

among staff members. They read and solve it, there is also a feedback box in

which they can share their ideas. It is checked by System Analyst and team

Member. It is also a good way to collect information.

1
RMIS
RESOURCE MAINTENANCE AND

5.1.2.FEASIBILITY TEST
In this study a System Analyst takes decision the proposed system should

be develop or not.

Technical Feasibility

It explains all the technical tools which are used to develop any this application. S

MVC using C# : Business logic layers.

Database Connectivity : Entity Frame Work

SQl Server : Backend or Database.

Html5, CSS, JQuery, Ajax etc. : Presentation Layer.

Operational Feasibility

It is related how system perform while using. I have been used latest

software tools, advance language etc. to make user-friendly. For that I will

use navigator, option boxes, site map, and similarity between sites. So that

staffs can easily operate it.

Economic Feasibility

It is the stage where a system administrator analyses overall the cost which

has been spent over the project. In this application Microsoft.Net, SQL

server, Corel draw, Html5, Photoshop etc. and my efforts are include. e.

Legal Feasibility

It tells us that all the software, graphics, logo, business code will be

copyright. It will not be copied from any other side. So for this I will use all

the license version software.

1
RMIS
RESOURCE MAINTENANCE AND

5.2 MODULAR DESCRIPTION


In Resource Maintenance and Management there are following modules:
1.0. Staff 6.0. Service
2.0. Agency 7.0. Auction
3.0. Vehicle 8.0. Bookings

4.0. Equipment 9.0. Admin


5.0. Conference Room

1.0 Staff

In this MIS system staff will login the system. He/ She will add resources,

equipment’s. They allot the company for servicing the resources. They can

track the resources service status, future purchase.

2.0 Agency

Service Agency will get resources and equipment for service and

maintenance. They will visit every weekend at the organization site. If

resources and equipment can be repaired at the company site then they will

not take away otherwise they will take away and return back on Monday.

3.0 Vehicle

Staff add vehicles details. These vehicles are used for bookings and

transportation. All vehicles details are managed by Admin.

4.0 Equipment

Staff adds new equipment with 20% depreciation annually. If they get 5

years old then these are auctioned.

1
RMIS
RESOURCE MAINTENANCE AND
5.0 Room

Staff add Conference room details. These rooms are used for rent. Company

earns profit from it. All these details are managed by Admin.

6.0 Service

All these resources and equipment are under service contract. If they get

damaged then these are repaired and maintained by Service Agencies.

Agencies visit every weekend on organization site. They take away the

equipment for repairing and return back on Monday.

7.0 Auction

If any resources and equipment got 5 years old then these are send for

auction. Staff maintains all the data related to auction in company’s

Database.

8.0 Booking

Organization deals two type of Bookings these are Vehicles and Conference

Rooms. All the bookings details are added by Staff. Staff tracks all its due

revenue. Admin managed all the booking details.

9.0 Admin

Admin plays a great role in this software system. He/ She has rights to

managed all the details which are added by Staffs. Admin add staffs details

and create userid and password for them. All the resources details are

added by Staffs. Admin managed like delete, update etc. operation on the

records.

1
RMIS
RESOURCE MAINTENANCE AND

5.3 PROCESS LOGIC


It is set of steps to use This RMIS system, Resource Maintenance and

Management. This application can be used by only organization authorized

staffs and admins.

There are following steps to use this MIS system:

 To do any activity staffs and Admins have to login first.

 Staffs and Admins can view and update profile.

 Users can also change their passwords.

 If any user forget their passwords then they can use forget links to get

their password own registered email Id.

 Staff has rights to add resource and their service related records.

 Staff can add any agency, service, bookings etc. related data.

 Staff can use Item Id to search any records.

 Staff can track any due revenue from the Bookings.

 To join with application Admin has to fill up Registration forms.

 After they can login with the application.

 Admin can also view own profile, update own profile.

 Admin has rights to add and manage company’s staffs.

 Admin has full access over application.

 Admin can modify the company related records.

 Admin has full access like update, delete, and insert any records.

 Admin and Staffs can do communication with mails regarding any

modification over company’s related data.

1
RMIS
RESOURCE MAINTENANCE AND

5.4. LIFE CYCLE METHODOLOGY


I have used Water fall model to develop RMIS application.

WATERFALL MODEL

It is used when we have known all the requirements already. It is sequential

method to develop any application. In this method when first phase about to

finish then we start preparation for the next phase of the Software

Development Life Cycle Method.

REQUIREMENT GATHERING

ANALYSIS

DESIGN

CODING

TESTING

MAINTENANCE

1
RMIS
RESOURCE MAINTENANCE AND

5.5 SCHEDULING TECHNIQUES


5.5.1. Pert Chart
It is a project management tool used to schedule, organize and coordinate
tasks within a project. Pert chart stands for Evaluation technique. It is a
methodology which was developed by U.S Navy in the 1950s to manage the
Polaris Submarine missile program.

PERT CHART

Event NO

EARLIEST TIME MAXIMUM TIME

DIFFERE NCE

REQUIREMEN ANALYSIS DESIGN


T
2 3
1 1820 2630
2 4
2530
5

5 4
6
1820 4550
2 5
7 10
3

MAINTENCE TESTING CODING

1
RMIS
RESOURCE MAINTENANCE AND

5.5.2. GANTT

It is one of the most popular and useful ways of showing activities against
time. In this chart activities are represented by a bar. The position and
length of the bar reflects the start date duration and end date of the activity.

EXPEDTED TIME

REQUIREMENT
ACTUAL TIME

ANALYSIS

DESIGN
PRO JEC T SYN OPSI S

CODING

TESTING

MAINTENANCE

0 - 10 10 - 20 20 - 30 30 - 40 40 - 50 50 - 60 60 - 70 70-80

DAYS

1
RMI
RESOURCE MAINTENANCE AND MANAGEMENT
adminId
staffId ER DIAGRAM
name
name M
STAFF Add
ADMIN
desig profile

Add
ma
addr d addr
n
period
name

AGENCY

contrfor
agencyId M

provide agency
serviceId

SERVICE
date Item
M eqpId
vehicleId

name
name
Usein EQUIPMENT
VEHICLE price
price
M M

year year

book
ROOM goes for

roomId
name

size
M price

M M
M

BOOKING AUCTION
Due
Item item
aucId
date
place amt
fare
bookId

2
RMIS
RESOURCE MAINTENANCE AND

ZERO LEVEL DFD


STAFFID

STAFF AGENCY

ST A
AF G
F E
DE N
TA C ADMIN
Y
I
SERVICE D
SE LS
ET
RV
IC
A
E D
DE MI
TAI N
LS DE
RESOURCE
SERVICEID MAINTENANCE AUCTIONID
BO AND MANAGEMENT
OK AU
SYSTEM (RMIS)
IN CT
G I
DE ON
TAI DE
LS TAI
LS

BOOKING
AUCTION

ROOM DETAILS VE EQUIPMENT DETAIL


HIC
LE
DE
TAI
LS

ROOM EQUIPMENT

VEHICLE

2
RMI

2
RMIS
RESOURCE MAINTENANCE AND

ONE LEVEL DFD

VEHICLE

ROOM

EQUIPMENT
1.0
2.0
VEHICLE
ROOM

AD
AD D 3.0
D RO
RES EQUIPMENT
OM
OU
RC ADD EQUIPMENT
E
BOOKING

STAFF

ADD BOOKING
4.0

BOOKING
AD
D AD ADD AGENCY
AU D
CTI SER AGENCY
ON VIC
E

5.0

AGENCY

7.0

AUCTION

6.0

SERVICE

AUCTION
SERVICE

2
RMIS
RESOURCE MAINTENANCE AND

VEHICLE
ROOM

8.0

VEHICLE
9.0
EQUIPMENT
ROOM

MA
NA
GE MA
VE NA
HIC GE 10.0
LE RO EQUIPMENT
OM

BOOKING

ADMIN

MANANCE BOOKING
11.0

BOOKING
AD
D MA
STA NAMANAGE AGENCY
FF GE AGENCY
SER
VIC
E

12.0

AGENCY

14.0

AUCTION

13.0

SERVICE

STAFF
SERVICE

2
RMIS
RESOURCE MAINTENANCE AND
TWO LEVEL DFD

1.0

VEHICLE Click on ADD VEHICLE

1.1
GO
FOR
ADD ADD VEHICLE
ING
VEHI Fill
CLE the
Add
for
m
pag
e
1.2
STAFF
VEHICLE DETAILS

Register Form

Det
a ils
Save
d Click
On on
Save
Butt
1.3 on

Save

Get Message
Data Successfully Saved
in Database

2
RMIS
RESOURCE MAINTENANCE AND

2.0

EQUIPMEN Click on ADD EQUIPMENT

2.1
GO
FOR
ADD
ING ADD EQUIPMENT
EQU
IPM Fill
the
ENT
Add
for
m
pag
e
2.2
STAFF
EQUIPMENT DETAILS

Register Form

Deta
ils
Save
d In Click
on
Save
Butt
2.3 on

Save

Get Message
Data Successfully Saved
in Database

2
RMIS
RESOURCE MAINTENANCE AND

3.0

ROOMS Click on ADD ROOMS

2.1
GO
FOR
ADD ADD ROOM
ING
ROO Fill
MS the
Add
for
m
pag
e
2.2
STAFF
ROOM DETAILS

Register Form

Deta
ils
Save
d In Click
on
Save
Butt
2.3 on

Save

Get Message
Data Successfully Saved
in Database

2
RMIS
RESOURCE MAINTENANCE AND

4.0

TRACKING Click on Track

4.1

GO
FOR
TRA MENU
CKI SELE
NG CT
ANY
ONE
FRO
M
ME
N4.2

STAFF AUCTION DETAILS

TRACK

ROOM BOOKING Deta


ils fetc h fro m

VEHICLES BOOKING Click


on
Trac
k
4.3

SHOW

Shows Data in Gridview


ALL DATA SHOWS
IN DATABASE

2
RMIS
RESOURCE MAINTENANCE AND

5.0

SEARCH Click on SEARCH

5.1

GO
FOR
SEA MENU
RCH
ING
SELE
CT
ANY
ITE
M

5.2
STAFF
AUCTION DETAILS

ENTER ID

ROOM Deta
ils
fetc
Details fetch h
BOOKING
from fro ENT
m ER
EQUIPMENT THE
Details fetch from ID
5.3

Details fetch from


SEARCH

DATA SHOWS
SINGLE DATA SHOWS
IN SCREEN

2
RMIS
RESOURCE MAINTENANCE AND

2
RMIS
RESOURCE MAINTENANCE AND

6.0

STAFF CLICK ON ADD USERS

6.1
GO
FOR
ADD ADD STAFF
ING
STA
FFS
FILL
FOR
M

6.3
ADMI
STAFF DETAILS
FORM

NEW USERS De
ADDED ta
SUCCESSFULLY ils
CRE
Sa ATE
ve
d 6.4
in

6.5
USERID

SAVE CLICK ON SAVE

3
RMIS
RESOURCE MAINTENANCE AND

7.0

MANAGE SELECT ANY ITEM TO MANAGE

LOG 7.1
IN
WIT
H
SHOW DETAILS
VALI
D
USE SELE
RID CT
ANY
OPE
RATI
ON

7.2
ADMIN
EQUIPMENT
Insert, delete,
update
STAFF
Deta
ils
AGENCY Details Saved
Save
IN
d IN CLIC
BOOKING K
THE
BUT
VEHICLE 1.3 TON

Details Saved IN DETAILS


SAVED IN

Get Message
Data Successfully Saved
in Database

3
RMIS
RESOURCE MAINTENANCE AND

5.0

SEARCH Click on SEARCH

5.1

GO
FOR
SEA MENU
RCH
ING
SELE
CT
ANY
ITE
M

5.2
ADMIN
AUCTION DETAILS

ENTER ID

ROOM Deta
ils
fetc
Details fetch h
BOOKING
from fro ENT
m ER
EQUIPMENT THE
Details fetch from ID
5.3

Details fetch from


SEARCH

DATA SHOWS
SINGLE DATA SHOWS
IN SCREEN

3
RMIS
RESOURCE MAINTENANCE AND

3
RMIS
RESOURCE MAINTENANCE AND
CLASS DIAGRAM

STAFF ADMIN
staffId :int adminId :int
name usernm
:string AGENCY :string
paswd :int
agencyId :int
+login( )
+add( )
SERVICE
name
+login( )
+manage( )
+search( ) :string +search( )
+track( ) serviceid :int
date
+add() :string
agencyId
+manage() :string
resourceId :int

+add()
+manage()

VEHICLE ROOM EQUIPMEN


roomId :int
name :string
price :string
year : int
+add()
+manage()
+book

BOOKING
bookingId :int AUCTION
date :string
ItemId :string auctid :int
Payment :int date :date
Due : int amount :int
itemId :int
+book
+track() +add auction()
+manage() +manage()

3
RMIS
RESOURCE MAINTENANCE AND

5.6.4. USE CASE

LOGIN

ADD

MANAGE

ADMIN
STAFF SEARCH

BOOK

TRACK

3
RMIS
RESOURCE MAINTENANCE AND

6. DATA DICTIONARY
STAFF TABLE
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
StaffId Int Not Null Primary Key
Password Nchar 100 Not Null
Desig Nchar 200 Not Null
Addr Nchar 100 Not Null
Mob Int 100 Not Null
Emailed Varchar 200 Not Null
Usernm int 300 Not Null

Service Agency
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
agencyId Int Not Null Primary Key
Name Nchar 100 Not Null
Service Nchar 100 Not Null
Mob Int 100 Not Null
Email id varchar 200 Not Null

CONFERENCE ROOM
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
roomId Int Not Null Primary Key
Name Nchar 100 Not Null
Price Int 100 Not Null
Year Int 100 Not Null
Size Int 200 Not Null
Capacity int 100 Not Null

Equipment
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
EqpId Int Not Null Primary Key
Name Nchar 100 Not Null
Type Nchar 100 Not Null
Price Int 100 Not Null
Year Int 200 Not Null
Dep Int 100 Not Null

Vehicle
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
VehId Int Not Null Primary Key
Name Nchar 100 Not Null
Type Nchar 100 Not Null
Price Int 100 Not Null
Year Int 200 Not Null
Dep Int 100 Not Null

3
RMIS
RESOURCE MAINTENANCE AND
Service
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
Served Int Not Null Primary Key
Name Nchar 100 Not Null
Type Nchar 100 Not Null
Visitdate Date 100 Not Null
Returndate Date 200 Not Null
equpId nchar 100 Not Null Foreign key

Auction
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
Auctid Int Not Null Primary Key
Actdat Date 100 Not Null
Type Int 100 Not Null
Rnm Nchar 100 Not Null
Price Int 100 Not Null

Room Booking
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
Bkid Int Not Null Primary Key
Name Date 100 Not Null
Fare Int 100 Not Null
Chkndat Date 100 Not Null
Chotdate Date 100 Not Null

Vehicle Booking
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
Bkid Int Not Null Primary Key
Name Date 100 Not Null
Date Int 100 Not Null
Km Nchar 100 Not Null
Fare Int 100 Not Null

ADMIN
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
AdminId Int Not Null Primary Key
Usernm Date 100 Not Null
Paswd Int 100 Not Null
Role Nchar 100 Not Null
Mob Int 100 Not Null

3
RMIS
RESOURCE MAINTENANCE AND

6. TESTING TO BE USED
Testing is done to find any bugs and errors in project.

Unit Testing

It is an initial level of testing. It is done by the programmer.

Integration Testing

It is the second level of testing. It is done by the System Analyst. System analyst

collect all the codes from developer and combined. After that they perform Testing.

System Testing

It is a third level of testing which is done by the Tester team. They write test

cases and perform testing.

Acceptance Testing

It is a level of software testing where a system is tested for acceptability.

Black Box Testing

It is a software testing techniques in which functionality of the software

under test (SUT) is tested without looking at the internal code structure,

implementation details and knowledge of internal paths of the software.

White Box Testing

It is also known as clear box testing, glass box testing, and transparent box

testing and structural testing. It is a method of testing software that tests

3
RMIS
RESOURCE MAINTENANCE AND

7. SYSTEM SECURITY AND VALIDATION

Software Security
It is an idea implemented to protect software against malicious attack and

other hacker risks so that software continues to function correctly under

such potentials risks. It is necessary to provide integrity, authentication and

availability.

 ASP.NET MVC uses Data Annotations attributes for validation

 Data Annotations attributes can be applied to the properties of the

model class to indicate the kind of value the property will hold.

There are following Validation used in MVC project.

1. Required
2. EmailAddress
3. FileExtension
4. String Length
5. Range
6. RegularExpression
7. MaxLength
8. MinLength
9. Phone
10. CustomValidation

 Use ValidationSummary to display all the error messages in the view.


 Use ValidationMessageFor or ValidationMessage helper method to
display field level error messages in the view.
 Check whether the model is valid before updating in the action
method using ModelState.IsValid.
 Enable client side validation to display error messages without
postback effect in the browser.

3
RMIS
RESOURCE MAINTENANCE AND

8. FUTURE SCOPE

Future scope tells that the Enhancement of any software. Enhancement in

the features, processing, performance etc. In future I will be add some more

and useful features in this MIS application system.

There will be following features which can be added in this MIS system.

 In next version there will be more security patches will be added in

this application so that data can be protected.

 In next version this MIS application will be added with MICROSOFT

cloud data storage, so that we can reduce the server load.

 Next version we will add some clean-up tools for removing virus,

threats, temporary files, junk files etc.

 Next version we will add some security alerts when any unauthorised

access occurs or any attacker’s attacks over the application.

 In this time users can use only own created passwords for unlocking

the system. But in next version I will add some smart lockers system

like Finger Lock, Face Lock, and Retina Lock etc.

 In next version I will added some auctions related features so that

auctions activities can be improved.

 In next version I will develop a web services and it will be uploaded on

the internet.

 This web service will help to find out some interested customer to

participate in Auction. So that whenever any customer will shows the

interested then it can be done easily online.

4
RMIS
RESOURCE MAINTENANCE AND

9. BIBILOGRAPHY
MVC

Title Author
Jon Galloway
Professional ASP.Net MVC 5

ASP.NET MVC Framework Stephen Walther


Unleashed
ASP.NET MVC 5 Recipes: A Nimit Joshi
PracticalSolution

SQL SERVER

Title Author
Microsoft Sql Server 2008 Mike Hotek, Adriano Abrate
implementation and Maintenance
Microsoft Sql Server 2008 Business Erik Verman, Teo Lachev, Dejan
Intelligence Development and Sarka
Maintenance
Microsoft Sql Server 2008 Database Tobias Jhernstorm, Ann Weber,
Development Mike Hotek

SOFTWARE ENGINEERING

Title Author
A Practical Handbook of Software Steve Mc Connell
Construction
Software Engineering Theory And Shari Lawrence Pfleeger
Practice
Software Engineering Project Richard H Thayer
Management(WSE Series)

ENTITY FRAMEWORK
Title Author
Programming Entity Framework Julia Lerman

Entity Framework 4 in Action Stefano Mostarda, Marco De


Sanctis, Daniele Bochicchio
Entity Framework 4.0 Recipes: A Larry Tenny, Zeeshan Hirani
Problem-Solution Approach

4
RMIS
RESOURCE MAINTENANCE AND

4. PROJECT INTRODUCTION OF THE

RMIS, Resource Maintenance and Management is a computer based MIS

System. It is an online Management Information System. It has been

developed in .Net using C# language. It is about the uses and Maintenance

of Equipment. It is able to predict the future purchases, usage and

maintenance history of all equipment’s.

In other hand if any resources records are maintained manually in any

organization then it takes lots of time, efforts etc. And if we consider over it

then we can find there will be lots of faults and mistakes. So, we need an

automation software which can support staff to maintain these records

without any error.

RMIS System is such a MIS software which is capable

to solve all the problems which are generally faced in any organization while

maintaining and managing the resources and equipment related records

manually. It is an online MIS system which maintains all the records easily.

It has a Database in which all the information are saved. So that whenever,

wherever we can track easily the resources and equipment related status.

4
RMIS
RESOURCE MAINTENANCE AND

5. OBJECTIVE OF THE
The main objective of this MIS system is that to provide a single platform by

which organization staff can easily maintain and manage the Resources and

Equipment’s easily.

ADMIN

 He/ She will registers Users who will use this software.

 He/ She will provides Userid and Password to interact with the

System.

 He/ She will provide trouble shoot if any faults occurs in the software.

 An Admin has right to modify and manage the existing records.

STAFF

 Staffs will get rights from Admin to access the RMIS software

application.

 Staff can view own profile and change passwords.

 They can add Agencies, Vehicles, Equipment, services etc.

VEHICLES

 Staff will add all vehicles record in this application.

 These records are managed by Admin.

EQUIPMENT

 Staff will add all Equipment record in this application.

 These records are managed by Admin.

4
RMIS
RESOURCE MAINTENANCE AND
 Whenever any equipment are purchased then these records are

maintained.

CONFERENCE ROOM

 Staff has rights to add new room details.

 These records are managed by Admin.

 These rooms are used for booking

SERVICE AGENCIES

 All The Equipment are Under Servicing Contract.

 Staff add Agency records in this software.

 Admin manage these records.

 Different agencies provide different services.

SERVICE

 All these resources and Equipment are under service contract.

 Staff records all the service details in this software.

 Services agencies send their engineers in organization on weekend.

AUCTION

 When any Resources getting 5 years old then these are send for

auction.

 All the Auction related details are maintained in company’s Database.

 Staff add all the auction related records and Admin manage it.

4
RMIS
RESOURCE MAINTENANCE AND

6. TOOLS / PLATFORM

HARDWARE REQUIREMENT

Processor I-3, IVth Generation.

Ram 4 GB

Hard Disk 500 GB

Monitor LCD 15.6”

Key Board Qwerty

Mouse Optical

SOFTWARE REQUIREMENT

Front End MVC using C#

Database Connectivity Entity Frame Work

Back End SQL Server 2012

Operating System Windows 7 and Above

Web Server IIS

4
RMIS
RESOURCE MAINTENANCE AND

7. SYSTEM

System Analysis What and Why?

It is the analysis of customer requirements. It is done by the System

Administrator and their team members. System Administrator is an

experienced Software engineer who has minimum 10 years’ experience of

Software Development. He meets with clients, understand the customer

requirements, and gather all the required information from his organization,

study over the existing system and its works functionality. Basically he tries

to find out from clients what does he want in new System? It is called

System Analysis.

System Analysis must be done before the software

development. It helps to understand the customer ideas, expectations, what

does he wants, why she/he looking for new system etc. After analyzing very

well a developer team can develop a better system. System analysis decides

which types of software and hardware should be required. So in every

developer company it is done very well.

4
RMIS
RESOURCE MAINTENANCE AND

7.1. FACT

A.Fact Findings What and Why?

When Customer meets with System Analyst for developing a System, then

He doesn’t say all the required information at a time. He generally tells main

and main things which wants to be implemented in new system. But for

developing a new system it is not enough. We has to gather all the required

information related to system. So System Administrator does Fact

Findings. In this technique he spends a lots of time with clients. System

analyst their team visit the client’s sites, study the old and existing system,

arrange a group discussion and try to gather all the information. Because it

is mandatory to develop client’s accordingly system.

Fact Finding plays an important role to gather all the

required information from clients. So it is followed by all Developer

companies. If any developer company starts developing new system,

without doing Fact Findings then they can’t develop client’s accordingly

system. If an application is fully developed then at a time clients demand any

new features so it is difficult to implement at a time. Without satisfying a

Customer can’t pay for the Project. So Fact finding is very important to

capture all the information.

4
RMIS
RESOURCE MAINTENANCE AND

7.1.TYPES OF FACT FINDINGS

1. INTERVIEW

It is the first phase of getting fact findings. In this technique System

Administrator and their team member directly contact with Customer and

their staffs for gathering requirements.

2. GROUP DISCUSSION

System Analyst and his team members arrange a Group Discussion among

customers and their staffs. They put some question which helps to find out

information.

3. SITE VISITS

In this technique System Analyst and their team member visits the client’s

organization where application will be used. I visited many sites like RMS,

MIS system etc. I studied the procedure to track the current status of

resources, revenues checkouts, apply depreciation etc.

4. QUESTIONNAIRES

In this technique generally objective type’s questions paper are distributed

among staff members. They read and solve it, there is also a feedback box in

which they can share their ideas. It is checked by System Analyst and team

Member. It is also a good way to collect information.

4
RMIS
RESOURCE MAINTENANCE AND

7.2. FEASIBILITY STUDY


In this study a System Analyst takes decision the proposed system should

be develop or not.

Technical Feasibility

It explains all the technical tools which are used to develop any this application. S

MVC using C# : Business logic layers.

Database Connectivity : Entity Frame Work

SQl Server : Backend or Database.

Html5, CSS, JQuery, Ajax etc. : Presentation Layer.

Operational Feasibility

It is related how system perform while using. I have been used latest

software tools, advance language etc. to make user-friendly. For that I will

use navigator, option boxes, site map, and similarity between sites. So that

staffs can easily operate it.

Economic Feasibility

It is the stage where a system administrator analyses overall the cost which

has been spent over the project. In this application Microsoft.Net, SQL

server, Corel draw, Html5, Photoshop etc. and my efforts are include. e.

Legal Feasibility

It tells us that all the software, graphics, logo, business code will be

copyright. It will not be copied from any other side. So for this I will use all

the license version software.

4
RMIS
RESOURCE MAINTENANCE AND

7.3. SOFTWARE REQUIREMENT SPECIFICATION


A software requirements specification (SRS) is a comprehensive description

of the intended purpose and environment for software under development.

The SRS fully describes what the software will do and how it will be expected

to perform.

SRS
OF
RMIS

5
RMIS
RESOURCE MAINTENANCE AND

INDEX
S.NO PAGE NO

1. INTRODUCTION….....................................................50-51
1.1. Purpose
1.2. Scope
1.3. Definitions, acronyms and abbreviation
1.4. References
1.5. Overview

2. OVERALL DESCRIPTION......................................52-54

2.1. Product Perspective

2.1.1. System Interface


2.1.2. User Interfaces
2.1.3. Hardware Interfaces
2.1.4. Software Interfaces
2.1.5. Communication Interfaces
2.1.6. Memory Constraints
2.1.7. Operations
2.1.8. Site Adaptation Requirements

2.2. Product Functions…...................................................54-54


2.3. User Characteristics....................................................55-55
2.4. Constraints...................................................................55-55

5
RMIS
RESOURCE MAINTENANCE AND

INDEX
S.NO PAGE NO

3. SPECIFIC REQURIREMENTS

3.1. Sequence Diagrams............................................................56-57


3.2. Performance Requirements..............................................58-
58
3.3. Software System Attributes...........................................59-
60

3.4.1. Functionality
3.4.2. Reliability
3.4.3. Availability
3.4.4. Security
3.4.5. Maintainability
3.4.6. Scalability
3.4.7. Cost Effective
3.4.8. Quality
3.4.9. Extensibility
3.4.10. Portability
3.4.11. Testability
3.4.12. Response Time
3.4.13. Interoperability

4. SUPPORTING INFORMATION
4.1 Appendixes…..............................................................61-61

5
RMIS
RESOURCE MAINTENANCE AND

1. INTRODUCTION

1.1. PURPOSE

RMIS is a resource maintenance and management software. By using this

software an organization can manage all the resources. It is a web based

application. There will be two users Staffs and Admins.

1.2. SCOPE

By using this software Staff can add all the records of resources and their

maintenance records. Admin will manage it. Admin has rights to update,

delete and insert rights. Staff can add the details. To do any activity they

have to login first.

1.3. DEFINITIONS, ACRONYMS AND ABBREVIATIONS

SRS (Software Requirements Specification)

“SRS is a complete description of the behavior of the system to be

developed. It includes a set of functional and non-functional requirements

which are stated by the client.

DBMS (Database Management System)

“DBMS is a sophisticated software package that controls and manages the

access to the databases.”

HTTP (Hypertext Transfer Protocol)

5
RMIS
RESOURCE MAINTENANCE AND
“It is a communications protocol used to transfer or convey information on

the World Wide Web. Its original purpose was to provide a way to publish

and retrieve HTML hypertext pages.”

1.4. REFERENCE

Pressman, Roger (2010) Software Engineering: A Practitioner's Approach,

McGraw Hill , New York, NY.

(Order from amazon , order from Barnes and Noble , compare

at bigwords , compare at CampusBooks4Less , order from Chegg , or

search eFollett )

Sommerville, Ian (2011) Software Engineering, Addison-Wesley , Boston,

MA.

(Order from amazon , order from Barnes and Noble , compare

at bigwords , compare at CampusBooks4Less , order from Chegg , or

search eFollett )

1.5. OVERVIEW

By using RMIS application an company is able to maintain all the resources and

their service maintenance related records in automated without any error. Staff has

rights to add all the important records and Admin has right to manage it.

5
RMIS
RESOURCE MAINTENANCE AND

2. OVERALL DESCRIPTION
2.1 PRODUCT PERSPECTIVE

As mentioned earlier, RMIS is an online resource maintenance and

management application which provides a single platform to add all

resource related records and their maintenance. In this Application Staff

adds all the records and Admin manage it.

2.1.1. SYSTEM INTERFACES

It can be easily under by the help of Zero-Level-DFD.

5
RMIS
RESOURCE MAINTENANCE AND

STAFF AGENCY

ST A G E N C Y D ET
AF F DE TAI LS

ADMIN

SERVICE
SE RV IC E DE TAI LS
A D MI N DE

RESOURCE MAINTENANCE AND MANAGEMENT SYSTEM (RMIS)

BO OK IN G DE TAI LS
AU CTI ON DE TAI LS

BOOKING
AUCTION

ROOM DETAILS VE HIC LE DE TAI LS


EQUIPMENT DETAIL

ROOM EQUIPMENT

VEHICLE

2.1.2. USER INTERFACES

It shows the total system function, which was operated by the users.

5
RMIS
RESOURCE MAINTENANCE AND

STAFF

 Staffs adds all the resources and their service related records.

 To do any functionality they have to login first.

ADMIN

 Admin add staffs and managed their records.

 Admin perform insert, delete, and update functionality over the

records which are added by the staff.

Hardware Interface

Processor I-3, IVth Generation.


Ram 4 GB
Hard Disk 500 GB
Monitor LCD 15.6”
Key Board Qwerty
Mouse Optical

Front End MVC using C#


Database Connectivity Entity Frame Work
Back End SQL Server 2012
Operating System Windows 7 and Above
Web Server IIS
Software Interface

2.1.5. COMMUNICATION INTERFACES

5
RMIS
RESOURCE MAINTENANCE AND
This application can easily communicate with another computer easily. It

can be easily operate in any LAN, WAN, MAN. We can transfer the data,

recovery the data, etc. easily by this system.

2.1.6. MEMORY CONSTRAINTS

This is a very light application with many features. But for running this

application it required 250MB RAM.

2.1.7. OPERATIONS

In this application there are many function for users. Basically there are two

users like Staffs, and Admin.

STAFFS

 Add Resources
 Bookings of Vehicles and Rooms
 Track Due Revenues
 Add Auction of Resources

ADMIN

 Add and Manage Staff


 Manage Resources, Services, Vehicles, and Bookings etc.
 Search Records

2.1.8. SITE ADAPTATION REQUIRED

It defines the requirements for any data or initialization sequences that are

specific to given site, mission, or operational mode. So I have spent a lot of

time to get information from many sites. I visited many job portal sites and

tried to understand its work functionality very well.

5
RMIS
RESOURCE MAINTENANCE AND

2.2 PRODUCT FUNCTIONS

 Admin add and manage all staffs in this application.


 Staff adds all the resources related records like its bookings, services etc.
 Admin has rights to manage all the records including staffs.
 Without login no one can perform any actions.

2.3 USER CHARACTERISTICS

LOGIN

ADD

MANAGE

ADMIN
STAFF SEARCH

BOOK

TRACK

2.4 CONSTRAINTS

 Constraints means restrictions and security.


 The main security is that no one users can access their system before
login. They have to login with valid userid and password.

5
RMIS
RESOURCE MAINTENANCE AND

3. SPECIFIC

3.1. SEQUENCE DIAGRAMS

ADMIN
STAFF RESOURCE AGENCY

LOGIN
LOGIN

SERVICE
MANAGE

ADD RESOURCE

SEARCH

ADD STAFF
BOOKINGS

REVENUE

MANAGE
SEARCH

6
RMIS
RESOURCE MAINTENANCE AND

3.2. PERFORMANCE REQUIREMT

These are some requirements which increase the system performance.

These are important things which helps in peak hours in any organization. It

is the time when mostly clients will visits the sites.

RESPONSE TIME

Response time is the elapsed time between the end of an inquiry or demand.

It means it the time of a computer in a user’s senses as the beginning of

input and the end of the response. So the response time of this application

is fast. It gives quick result.

WORK LOAD

In computing, the workload is the amount of processing that the computer

has been given to do at a given time. The workload consists of some amount

of programming running in the computer and usually some number of users

connected to and interacting with the computer's applications. When

workload increases over than the limitation of application then it going to

hang.

SCABILITY

Scalability is the ability of a program to scale. For example, if you can do

something on a small database (say less than 1000 records), a program that

is highly scalable would work well on a small set as well as working well on

a large set (say millions, or billions of records.)

6
RMIS
RESOURCE MAINTENANCE AND

PLATFORM

In IT, a platform is any hardware or software used to host an

application or service.

3.3. SFTWARE SYSTEM ATTRIBUTES

It is the set of functional and nonfunctional requirements of a

software. Generally functional requirements are stated by the

clients and nonfunctional requirements are though by the

developers

3.4.2. RELIABILITY

Software Reliability is the probability of failure-free software operation for a

specified period of time in a specified environment. The high complexity of

software is the major contributing factor of Software Reliability problems.

3.4.3. AVAILABILITY

 The system shall be available to only in office time


 Staff can add all the resources and their service related records.
 Admin can modify the records like insert, delete and update.
 To do any operation they have to login first.

3.4.4. SECURITY

6
RMIS
RESOURCE MAINTENANCE AND
Security is required to stop from access with unauthorised persons. For the

security purpose in RMIS to do any actions users need to login first with

valid userid and password. Without login they can’t access the system.

3.4.5. MAINTAINABILITY

The RMIS will be designed in such a way that it can be maintained in future.

Any time system administrator can easily find out the problems. It sends the

notification, alerts whenever any errors occurred. So, it can be easily

maintained.

3.4.6. SCALABILITY

It is the ability of a computer or product (hardware or software) to continue

to function well when it (or its context) is changed in size or volume in order

to meet a user need.

3.4.7. COST EFFECTIVE

System will be client independent so there is no need to install this system

at each client machine rather this system will be installed at server and

every user will be able to access it, but there may be some expenditure on

company advertisement on this portal.

3.4.8. QUALITY

This web application meets the quality as per defined ISO-8402-1986.

 Good design – looks and style


 Good functionality – it does the job well

6
RMIS
RESOURCE MAINTENANCE AND
 Reliable – acceptable level of breakdowns or failure
 Consistency
 Durable – lasts as long as it should
 Good after sales service
 Value for money

RMIS has been followed all the quality parameters.

3.4.9. EXTENSIBILITY

In software engineering, extensibility is not to be confused with forward

compatibility, it is a systems design principle where the implementation

takes future growth into consideration.

3.4.10. PORTABILITYY

Portability, in relation to software, is a measure of how easily an application

can be transferred from one computer environment to another. RMIS is

portable software.

3.4.11. TESTABILITY

Software testability is the degree to which a software artifact (i.e. a

software system, software module, requirements- or design document)

supports testing in a given test context. So whenever system administrator

want to test they can do it.

3.4.12. RESPONSE TIME

6
RMIS
RESOURCE MAINTENANCE AND
Response time is the elapsed time between the end of an inquiry or demand

on a computer system. RMIS has good response time. It quickly executes the

request. For better performance we need High Bandwidth Network.

3.4.13. INTEROPERABILITY

Interoperability is the ability of a system or a product to work with other systems or

products without special effort. In future if client needs to convert this application

with another technology then it can be easily done.

4. SUPPORTING INFORMATION

4.1. APPENDIX

Please refer the following document:

1. Product Function.

2. Quality

3. Overview

4. Nonfunctional requirements Traceability Matrix.

5. Project Plan

6. User Charactericts

7. Functionality

Must visit

http://www.cogswell.edu/info/software- engineering.php?

gclid=Cj0KEQiAiMHEBRC034nx2ImB1J0BEiQA-r7ctmir-

sbE9kwm-8_n4IB4-T5hPUi-epL_Qp8tIKKUmioaAhEI8P8HAQ

6
RMIS
RESOURCE MAINTENANCE AND
http://www.wikihow.com/Become-a-Software-Engineer

7.4. LIFE CYCLEMETHODOLOGY


I have used Water fall model to develop Planet Job Application.
WATERFALL MODEL
It is used when we have known all the requirements already. It is sequential

method to develop any application. In this method when first phase about to

finish then we start preparation for the next phase of the Software

Development Life Cycle Method.

6
RMIS
RESOURCE MAINTENANCE AND

REQUIREMENT GATHERING

ANALYSIS

DESIGN

CODING

TESTING

MAINTENANCE

COMPLETE STRUCTURE OF WATERFALL MODEL


7.5. COCOMO MODEL

The Constructive Cost Model (COCOMO) is an algorithmic to determine the

software cost estimation. This model was developed by Barry Boehm. It uses

a basic regression formula, with parameters that are derived from historical

project data and current project characteristics. According to Boehm,

software cost estimation should be done through three stages:

 Basic COCOMO

6
RMIS
RESOURCE MAINTENANCE AND
 Intermediate COCOMO

 Detailed COCOMO

BASIC COCOMO MODEL

The basic COCOMO model gives an approximate estimate of the

project parameters. The basic COCOMO estimation model is given by

the following expressions:

a
Effort = a х (KLOC) PM
1 2
b
Tdev = b x (Effort) Months
1 2
Where

 KLOC is the estimated size of the software product expressed in Kilo


Lines of Code,
 a , a , b , b are constants for each category of software products,
1 2 1 2

 Tdev is the estimated time to develop the software, expressed in


months,

 Effort is the total effort required to develop the software product,


expressed in person months (PMs).

INTERMEDIATE COCOMO MODEL

It uses a more fine grained characterization, which uses attributes (effort

multipliers) to take into account: – functional and non-functional

requirements project attributes

 The effort multipliers are organized in 4 classes and 15 sub-items.

 The importance of each attribute is qualitatively evaluated between 1

(very low) and 6 (extra high).

6
RMIS
RESOURCE MAINTENANCE AND
 Each value corresponds to multiplier, in the range [0.7, 1.66]

(multiplier < 1 implies reduced cost)

 All the values are multiplied together to modulate effort

PMnominal = APM · (KSLOC) BPM

PM = PMnominal · 15 i=iEM i

TDEV = ATDEV (PM) BTDEV

DETAILED COCOMO MODEL

The detailed model: – has more detailed multipliers for each development

phase organizes the parameters hierarchically, to simplify the computation

of systems made of several modules

 Projects are organized in four phases:

 Requirements Planning and Product Design (PRD

 Detailed Design (DD)

 Code and Unit Test (CUT).

7.6 Pert Chart


7.6.1. SCHEDULING TECHNIQUES
It is a project management tool used to schedule, organize and coordinate
tasks within a project. Pert chart stands for Evaluation technique. It is a
methodology which was developed by U.S Navy in the 1950s to manage the
Polaris Submarine missile program.

PERT CHART

Event
NO

EARLIEST MAXIMUM
TIME TIME

67
DIFFERE
NCE
RMIS
RESOURCE MAINTENANCE AND

REQUIREMEN ANALYSIS DESIGN


T
2 3
1 1820 2630
2 4
2530
5

5 4
6
1820 4550
2 5
7 10
3

MAINTENCE TESTING CODING

7.6.2. GANTT
Gant Chart
It is one of the most popular and useful ways of showing activities against
time. In this chart activities are represented by a bar. The position and
length of the bar reflects the start date duration and end date of the activity.

6
RMIS
RESOURCE MAINTENANCE AND

EXPEDTED TIME

REQUIREMENT ACTUAL TIME

ANALYSIS

DESIGN
PRO JEC
T| SYN OPSI S

CODING

TESTING

MAINTENANCE

0 - 10 10 - 20 20 - 30 30 - 40 40 - 50 50 - 60 60 - 70 70-80
DAYS

7.8.
What is Risk Analysis?
RISK ANALYSIS AND

Risk is an expectation of loss, a potential problem that may or may not

occur in the future. It is generally caused due to lack of information, control

or time. A possibility of suffering from loss in software development process

6
RMIS
RESOURCE MAINTENANCE AND

is called a software risk. Loss can be anything, increase in production

development of poor quality software, not being able to complete the

on time.
project Software risk exists because the future is uncertain and there
plan.

many
A known
software risk and unknown
can be things that cannot be incorporated in
of two types:

Internal risks:

Such types of risks are within the control of the project manager. As
requirement these are handled by Project Manager.

EXTERNAL RISKS

Such types of risks are beyond the control of project manager. It is


Risk management is carried out to:
by the proper planning which may occurs or not in software
TYPES OF RISKS

 Schedule Risk:
 Budget Risk:
 Operational Risks:
 Technical risks:
 Programmatic Risks:

SCHEDULE RISK:

 Wrong time estimation


 Resources are not tracked properly. All resources like staff,
systems, skills of individuals etc.
 Failure to identify complex functionalities and time required
to develop those functionalities.
 Unexpected project scope expansions.

BUDGET RISK:

7
RMIS
RESOURCE MAINTENANCE AND

 Wrong budget estimation.


 Cost overruns
 Project scope expansion

OPERATIONAL RISKS:

Failure to address priority conflicts


 Failure to resolve the responsibilities
 Insufficient resources
 No proper subject training
 No resource planning
 No communication in team.

TECHNICAL RISKS:

 Continuous changing requirements


 No advanced technology available or the existing technology is in
initial stages.
 Product is complex to implement.
 Difficult project modules integration.

PROGRAMMATIC RISKS:

These are the external risks beyond the operational limits. These are all

uncertain risks are outside the control of the program.

These external events can be:

 Running out of fund.


 Market development
 Changing customer product strategy and priority
 Government rule changes.

WHAT IS RISK MANAGEMENT?

Risk management means risk containment and mitigation. First, we’ve got

to identify and plan. Then be ready to act when a risk arises, drawing upon

the experience and knowledge of the entire team to minimize the impact to

the project.

7
RMIS
RESOURCE MAINTENANCE AND

RISK MANAGEMENT INCLUDES THE FOLLOWING TASKS

 Identify risks and their triggers


 Classify and prioritize all risks
 Craft a plan that links each risk to a mitigation
 Monitor for risk triggers during the project
 Implement the mitigating action if any risk materializes
 Communicate risk status throughout project

IDENTIFY RISKS AND THEIR TRIGGERS


It is an important tasks to identify such kind of risks which are generally
occurs in our project. After that we should classify it very well.

CLASSIFY AND PRIORITIZE ALL RISKS

 New, unproven technologies


 User and functional requirements
 Application and system architecture
 Performance
 Organizational

NEW, UNPROVEN TECHNOLOGIES

The majority of software projects entail the use of new technologies. Ever-

changing tools, techniques, protocols, standards, and development systems

increase the probability that technology risks will arise in virtually any

substantial software engineering effort. Training and knowledge are of

critical importance, and the improper use of new technology most often

leads directly to project failure.

USER AND FUNCTIONAL REQUIREMENTS.


Software requirements capture all user needs with respect to the software

system features, functions, and quality of service. Too often, the process of

requirements definition is lengthy, tedious, and complex. Moreover,

requirements usually change with discovery, prototyping, and integration

7
RMIS
RESOURCE MAINTENANCE AND
activities. These disruptions often lead to one or more critical failures of a

poorly-planned software development project.

APPLICATION AND SYSTEM ARCHITECTURE

Taking the wrong direction with a platform, component, or architecture can

have disastrous consequences. As with the technological risks, it is vital that

the team includes experts who understand the architecture and have the

capability to make sound design choices.

PERFORMANCE
It’s important to ensure that any risk management plan encompasses user

and partner expectations on performance. Consideration must be given to

benchmarks and threshold testing throughout the project to ensure that the

work products are moving in the right direction.

ORGANIZATIONAL

Organizational problems may have adverse effects on project outcomes.

Project management must plan for efficient execution of the project, and

finda balance between the needs of the development team and the

expectations of the customers.

8. SYSTEM

7
RMIS
RESOURCE MAINTENANCE AND
RESOURCE MAINTENACE AND MANAGEMENT SYSTEM (RMIS)

STAFF RESOURCE ADMIN

VEHICLE ROOM EQIPMENT

ADD MANAGE LOGIN


LOGIN ADD TRACK

STAFF

INSERT DELETE UPDATE

RESOURCE AGENCY BOOKINGS AUCTION

SERVICE

EQIPMENT

ROOM EQIPMENT
VEHICLE

VEHICLE ROOM

CONTRAL TRANSFER

DATA TRANSFER

8.2. MODULAR DESCRIPTION

7
RMIS
RESOURCE MAINTENANCE AND
In Resource Maintenance and Management there are following modules:
1.0. Staff 6.0. Service
2.0. Agency 7.0. Auction
3.0. Vehicle 8.0. Bookings
4.0. Equipment 9.0. Admin
5.0. Conference Room

1.0 Staff

In this MIS system staff will login the system. He/ She will add resources,

equipment’s. They allot the company for servicing the resources. They can

track the resources service status, future purchase.

2.0 Agency

Service Agency will get resources and equipment for service and

maintenance. They will visit every weekend at the organization site. If

resources and equipment can be repaired at the company site then they will

not take away otherwise they will take away and return back on Monday.

3.0 Vehicle

Staff add vehicles details. These vehicles are used for bookings and

transportation. All vehicles details are managed by Admin.

4.0 Equipment

Staff adds new equipment with 20% depreciation annually. If they get 5

years old then these are auctioned.

5.0 Room

7
RMIS
RESOURCE MAINTENANCE AND
Staff add Conference room details. These rooms are used for rent. Company

earns profit from it. All these details are managed by Admin.

6.0 Service

All these resources and equipment are under service contract. If they get

damaged then these are repaired and maintained by Service Agencies.

Agencies visit every weekend on organization site. They take away the

equipment for repairing and return back on Monday.

7.0 Auction

If any resources and equipment got 5 years old then these are send for

auction. Staff maintains all the data related to auction in company’s

Database.

8.0 Booking

Organization deals two type of Bookings these are Vehicles and Conference

Rooms. All the bookings details are added by Staff. Staff tracks all its due

revenue. Admin managed all the booking details.

9.0 Admin

Admin plays a great role in this software system. He/ She has rights to

managed all the details which are added by Staffs. Admin add staffs details

and create userid and password for them. All the resources details are

added by Staffs. Admin managed like delete, update etc. operation on the

records.
adminId
staffId
ER DIAGRAM
name
name
76
RMIS
RESOURCE MAINTENANCE AND

M
STAFF Add
ADMIN
desig profile

Add
ma
addr d addr
n
period
name

AGENCY

contrfor
agencyId M

provide agency
serviceId

SERVICE
date Item
M eqpId
vehicleId

name
name
Usein EQUIPMENT
VEHICLE price
price
M M

year year

book
ROOM goes for

roomId
name

size
price

M M

BOOKING AUCTION
Due
Item item
aucId
date
place amt
fare
bookId

7
RMIS
RESOURCE MAINTENANCE AND
CLASS DIAGRAM

STAFF ADMIN
staffId :int adminId :int
name :string usernm
:string
age :int AGENCY
SERVICE paswd :int
mob : int
agencyId :int +login( )
+login( ) serviceid :int +manage( )
name
+add( ) date :string +search( )
:string
+search( ) agencyId :string
+track( ) resourceId
+add() :int
+manage()
+add()
+manage()

VEHICLE ROOM EQUIPMEN


roomId :int
name :string
price :string
year : int
+add()
+manage()
+book

8.5 USER
BOOKING
bookingId :int AUCTION
date :string
ItemId :string auctid :int
Payment :int date :date
Due : int amount :int
itemId :int
+book
+track() +add auction()
+manage() +manage()

7
RMIS
RESOURCE MAINTENANCE AND

LOGIN

ADD

MANAGE

ADMIN
STAFF SEARCH

BOOK

TRACK

8.6. FLOW CHART

7
RMIS
RESOURCE MAINTENANCE AND

START

Enter UserId and Password

LOGIN

Userid/Pa ssword

Yes No

Select resources Enter Valid Userid and Password

ADD

RESOURCES ADDED SUCCESSFULL Y


END

8
RMIS
RESOURCE MAINTENANCE AND

START

Enter UserId and Password

ADMIN

LOGIN

Userid/Pa ssword

Yes No

Select resources Enter Valid Userid and Password

Manage
Insert/Delete/ Update

Data Modified SUCCESSFULL Y


END

8
RMIS
RESOURCE MAINTENANCE AND

ZERO LEVEL DFD


STAFFID

STAFF AGENCY

ST A
AF G
F E
DE N
TA C ADMIN
Y
I
SERVICE D
SE LS
ET
RV
IC
A
E D
DE MI
TAI N
LS DE
RESOURCE
SERVICEID MAINTENANCE AUCTIONID
BO AND MANAGEMENT
OK AU
SYSTEM (RMIS)
IN CT
G I
DE ON
TAI DE
LS TAI
LS

BOOKING
AUCTION

ROOM DETAILS VE EQUIPMENT DETAIL


HIC
LE
DE
TAI
LS

ROOM EQUIPMENT

VEHICLE

8
RMIS
RESOURCE MAINTENANCE AND

8
RMIS
RESOURCE MAINTENANCE AND

ONE LEVEL DFD

VEHICLE

ROOM

EQUIPMENT
1.0
2.0
VEHICLE
ROOM

AD
AD D 3.0
D RO
RES EQUIPMENT
OM
OU
RC ADD EQUIPMENT
E
BOOKING

STAFF

ADD BOOKING
4.0

BOOKING
AD
D AD ADD AGENCY
AU D
CTI SER AGENCY
ON VIC
E

5.0

AGENCY

7.0

AUCTION

6.0

SERVICE

AUCTION
SERVICE

8
RMIS
RESOURCE MAINTENANCE AND

VEHICLE
ROOM

8.0

VEHICLE
9.0
EQUIPMENT
ROOM

MA
NA
GE MA
VE NA
HIC GE 10.0
LE RO EQUIPMENT
OM

BOOKING

ADMIN

MANANCE BOOKING
11.0

BOOKING
AD
D MA
STA NAMANAGE AGENCY
FF GE AGENCY
SER
VIC
E

12.0

AGENCY

14.0

AUCTION

13.0

SERVICE

STAFF
SERVICE

8
RMIS
RESOURCE MAINTENANCE AND
TWO LEVEL DFD

1.0

VEHICLE Click on ADD VEHICLE

1.1
GO
FOR
ADD ADD VEHICLE
ING
VEHI Fill
CLE the
Add
for
m
pag
e
1.2
STAFF
VEHICLE DETAILS

Register Form

Det
a ils
Save
d Click
On on
Save
Butt
1.3 on

Save

Get Message
Data Successfully Saved
in Database

8
RMIS
RESOURCE MAINTENANCE AND

2.0

EQUIPMEN Click on ADD EQUIPMENT

2.1
GO
FOR
ADD
ING ADD EQUIPMENT
EQU
IPM Fill
the
ENT
Add
for
m
pag
e
2.2
STAFF
EQUIPMENT DETAILS

Register Form

Deta
ils
Save
d In Click
on
Save
Butt
2.3 on

Save

Get Message
Data Successfully Saved
in Database

8
RMIS
RESOURCE MAINTENANCE AND

3.0

ROOMS Click on ADD ROOMS

2.1
GO
FOR
ADD ADD ROOM
ING
ROO Fill
MS the
Add
for
m
pag
e
2.2
STAFF
ROOM DETAILS

Register Form

Deta
ils
Save
d In Click
on
Save
Butt
2.3 on

Save

Get Message
Data Successfully Saved
in Database

8
RMIS
RESOURCE MAINTENANCE AND

4.0

TRACKING Click on Track

4.1

GO
FOR
TRA MENU
CKI SELE
NG CT
ANY
ONE
FRO
M
ME
N4.2

STAFF AUCTION DETAILS

TRACK

ROOM BOOKING Deta


ils fetc h fro m

VEHICLES BOOKING Click


on
Trac
k
4.3

SHOW

Shows Data in Gridview


ALL DATA SHOWS
IN DATABASE

8
RMIS
RESOURCE MAINTENANCE AND

5.0

SEARCH Click on SEARCH

5.1

GO
FOR
SEA MENU
RCH
ING
SELE
CT
ANY
ITE
M

5.2
STAFF
AUCTION DETAILS

ENTER ID

ROOM Deta
ils
fetc
Details fetch h
BOOKING
from fro ENT
m ER
EQUIPMENT THE
Details fetch from ID
5.3

Details fetch from


SEARCH

DATA SHOWS
SINGLE DATA SHOWS
IN SCREEN

9
RMIS
RESOURCE MAINTENANCE AND

9
RMIS
RESOURCE MAINTENANCE AND

6.0

STAFF CLICK ON ADD USERS

6.1
GO
FOR
ADD ADD STAFF
ING
STA
FFS
FILL
FOR
M

6.3
ADMI
STAFF DETAILS
FORM

NEW USERS De
ADDED ta
SUCCESSFULLY ils
CRE
Sa ATE
ve
d 6.4
in

6.5
USERID

SAVE CLICK ON SAVE

9
RMIS
RESOURCE MAINTENANCE AND

7.0

MANAGE SELECT ANY ITEM TO MANAGE

LOG 7.1
IN
WIT
H
SHOW DETAILS
VALI
D
USE SELE
RID CT
ANY
OPE
RATI
ON

7.2
ADMIN
EQUIPMENT
Insert, delete,
update
STAFF
Deta
ils
AGENCY Details Saved IN
Save
d IN CLIC
BOOKING K
THE
BUT
VEHICLE 1.3 TON

Details Saved IN
DETAILS
SAVED IN

Get Message
Data Successfully Saved
in Database

9
RMIS
RESOURCE MAINTENANCE AND

5.0

SEARCH Click on SEARCH

5.1

GO
FOR
SEA MENU
RCH
ING
SELE
CT
ANY
ITE
M

5.2
ADMIN
AUCTION DETAILS

ENTER ID

ROOM Deta
ils
fetc
Details fetch h
BOOKING
from fro ENT
m ER
EQUIPMENT THE
Details fetch from ID
5.3

Details fetch from


SEARCH

DATA SHOWS

SINGLE DATA SHOWS


IN SCREEN

9
RMIS
RESOURCE MAINTENANCE AND

8.7.4. DATA DICTIONARY


STAFF TABLE
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
StaffId Int Not Null Primary Key
Password Nchar 100 Not Null
Desig Nchar 200 Not Null
Addr Nchar 100 Not Null
Mob Int 100 Not Null
Emailed Varchar 200 Not Null
Usernm int 300 Not Null

Service Agency
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
agencyId Int Not Null Primary Key
Name Nchar 100 Not Null
Service Nchar 100 Not Null
Mob Int 100 Not Null
Email id varchar 200 Not Null

CONFERENCE ROOM
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
roomId Int Not Null Primary Key
Name Nchar 100 Not Null
price Int 100 Not Null
Year Int 100 Not Null
Size Int 200 Not Null
capacity int 100 Not Null

Equipment
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
EqpId Int Not Null Primary Key
Name Nchar 100 Not Null
Type Nchar 100 Not Null
Price Int 100 Not Null
year Int 200 Not Null
dep Int 100 Not Null

Vehicle
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
VehId Int Not Null Primary Key
Name Nchar 100 Not Null
Type Nchar 100 Not Null
Price Int 100 Not Null
Year Int 200 Not Null
Dep Int 100 Not Null

9
RMIS
RESOURCE MAINTENANCE AND
Service
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
Served Int Not Null Primary Key
Name Nchar 100 Not Null
Type Nchar 100 Not Null
Visitdate Date 100 Not Null
Returndate Date 200 Not Null
equpId nchar 100 Not Null Foreign key

Auction
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
Auctid Int Not Null Primary Key
Actdat Date 100 Not Null
Type Int 100 Not Null
Rnm Nchar 100 Not Null
Price Int 100 Not Null

Room Booking
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
Bkid Int Not Null Primary Key
Name Date 100 Not Null
Fare Int 100 Not Null
Chkndat Date 100 Not Null
Chotdate Date 100 Not Null

Vehicle Booking
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
Bkid Int Not Null Primary Key
Name Date 100 Not Null
Date Int 100 Not Null
Km Nchar 100 Not Null
Fare Int 100 Not Null

ADMIN
NAME DATA TYPE SIZE ALLOW NULLS DESCRIPTION
AdminId Int Not Null Primary Key
Usernm Date 100 Not Null
Paswd Int 100 Not Null
Role Nchar 100 Not Null
Mob Int 100 Not Null

9
RMIS
RESOURCE MAINTENANCE AND

9. TESTING
Testing is done to find any bugs and errors in project.
9.1. TYPES OF TESTING
Unit Testing

It is an initial level of testing. It is done by the programmer.

Integration Testing

It is the second level of testing. It is done by the System Analyst. System analyst

collect all the codes from developer and combined. After that they perform Testing.

System Testing

It is a third level of testing which is done by the Tester team. They write test

cases and perform testing.

Acceptance Testing

It is a level of software testing where a system is tested for acceptability.

Black Box Testing

It is a software testing techniques in which functionality of the software

under test (SUT) is tested without looking at the internal code structure,

implementation details and knowledge of internal paths of the software.

White Box Testing

It is also known as clear box testing, glass box testing, and transparent box

testing and structural testing. It is a method of testing software that tests

9
RMIS
RESOURCE MAINTENANCE AND

9.2. TEST CASES


What is test cases?

A test case is a set of conditions or variables under which a tester will

determine whether a system under test satisfies requirements or works

correctly.

The process of developing test cases can also help find problems in the

requirements or design of an application. Test cases helps to guide the tester

through a sequence of steps to validate whether a software application is

free of bugs and working as required by the end user.

Why Test cases are written?

When writing test cases, it’s important to put yourself in the user’s shoes

and include all the necessary details. Putting forth the extra effort to write

good test cases upfront will save you time and effort further down the road.

Writing test cases – especially a high volume of them at one time – can be a

time consuming task. Test Lodge makes it easy to write high quality test

cases and keep them organized. Here, we’ve outlined some tips on how to

write test cases, along with a sample of a test case at the end of this article.

9
RMIS
RESOURCE MAINTENANCE AND

TEST CASES FOR Staff Registration


TC-ID OBJECTIVE DESCRIPTION EXPECTED ACTUAL STATUS
RESULT RESULT
001 Testing the 1. Run the Id Same Pass
Jobseeker Id registration page Automatically
Auto Filled for Staff generate in
when Page is Registration. Numeric value.
loaded 2. In Staff Id
textbox auto
generate Id
visible.

002 Testing the 1. Run the Error Message Same Pass


Save Button registration Shown From
without type page. all textboxes
any Values. 2. Click on “Required Field
Save Button. Can’t be
blank.”

003 Testing the 1. Run the Record Saved Same Pass


Save Button registration and message
After Filling page. comes
all the 2. Fill All Registration
textbox Required Data. Successfully.
Fields. 3. Click on
Save Button.

004 Testing The 1. Run the Error Message Same Pass


Email Id in registration comes from
Wrong page. Email Id
Format. 2. In Email Id Textbox “Please
textbox fill wrong Include @ in
format of Email Id”
emailed.
3. Click on Save
Button
005 Testing the 1. Run the Password Same Pass
Password registration Becomes in *
Textbox in * page. Format
2. Fill Password.
3. Click on Save
Button
006 Testing the 1. Fill wrong Message Same Pass
Confirm Password in Comes from
Password confirm confirm
Text Box Password box. Textbox.
“Password
Mismatch

9
RMIS
RESOURCE MAINTENANCE AND

TEST CASES FOR Staff & Admin Login Page


TC-ID OBJECTIVE DESCRIPTION EXPECTED ACTUAL STATUS
RESULT RESULT
024 Testing the 1. Run the login Error Same Pass
Text box1 page. Message
2. Click the Save
Button

025 Testing the 1. Run the login Error Same Pass


Textbox 2 page. Message
2. Click the
Login button
026 Testing the * 1. Run the login Typed Values Same Pass
on Password page. becomes in
2. Type star “*”
Password in Mode
Textbox2.
3. Click the
Login Button.
027 Testing The 1. Run the login Open Same Pass
login Button page. Welcome page
2. Type Valid with Name.
Username in
Textbox1
and
Password in
Textbox2.
028 Testing the 1. Run the login Error Same Pass
login button page. Message.
with wrong 2. Type Invalid “Invalid
value. Userid and Userid and
Passwords Password”
3. Click the
Login Button
029 Testing the 1. Run The login Error Same Pass
login button page. Message
with valid 2. Fill the Valid Show----
Username Username in “Invalid
and Invalid Textbox1. Username
Password. 3. Fill Invalid and
Password in Password”
TextBox2.
4. Click on login
Button.
030 Testing the 1. Run The login Error Same Pass
login button page. Message
with invalid 2. Fill the Show----
Username Invalid “Invalid
and Invalid Username in Username
Password Textbox1. and
3. Fill Valid Password”
Password in

1
RMIS
RESOURCE MAINTENANCE AND
TextBox2.

1
RMIS
RESOURCE MAINTENANCE AND

ADD RESOURCES VEHICLES, ROOMS AND EQUIPMENTS


TC-ID OBJECTIVE DESCRIPTION EXPECTED ACTUAL STATUS
RESULT RESULT
001 Testing the 1. Run the Add Id Same Pass
Item Id Auto resources page. Automatically
Filled when 2. In Item Id generate in
Page is textbox auto Numeric value.
loaded generate Id
visible.

002 Testing the 1. Run the Add Error Message Same Pass
Save Button resources page. Shown From
without type 2. Click on all textboxes
any Values. Save Button. “Required Field
Can’t be
blank.”

003 Testing the 1. Run the Record Saved Same Pass


Save Button registration and message
After Filling page. comes
all the 2. Fill All Registration
textbox Required Data. Successfully.
Fields. 3. Click on
Save Button.

004 Testing The 1. Run the Error Message Same Pass


Email Id in registration comes from
Wrong page. Email Id
Format. 2. In Email Id Textbox “Please
textbox fill wrong Include @ in
format of Email Id”
emailed.
3. Click on Save
Button
005 Testing the 1. Run the Current Same Pass
Depreciation registration Amount should
Filed with page. be automated
20%. 2. Fill Purchase less with
Price and Year deduction.
3. Click on Save
Button
006 Testing the 1. Save without Message Same Pass
file upload select any file. Comes from
fild. please select
any file .

1
RMIS
RESOURCE MAINTENANCE AND

BOOKINGS OF VEHICLES AND ROOMS


TC-ID OBJECTIVE DESCRIPTION EXPECTED ACTUAL STATUS
RESULT RESULT
001 Testing the 1. Run the Id Same Pass
booking Id Bookings page. Automatically
Auto Filled 2. In Item Id generate in
when Page is textbox auto Numeric value.
loaded generate Id
visible.

002 Testing the 1. Run the Error Message Same Pass


Save Button Bookings page. Shown From
without 2. Click on all Booking
select any Save Button. date “Please
Date. select the date

003 Testing the 1. Run the Record Saved Same Pass


Save Button Booking page. and message
After Filling 2. Fill All comes
all the Required Data. Registration
textbox 3. Click on Successfully.
Fields. Save Button.

004 Testing The 1. Run the Error Message Same Pass


Email Id in registration comes from
Wrong page. Email Id
Format. 2. In Email Id Textbox “Please
textbox fill wrong Include @ in
format of Email Id”
emailed.
3. Click on Save
Button
005 Testing the 1. Run the Total Fare filed Same Pass
amount Booking Page. will be auto
calculation 2. Fill checking filed when
filed. or checkout dates are filled
date.

006 Testing the 1. Fill the Due payment Same Pass


due payment payment textbox should
filed will amount. auto filled
automatically
filed.

1
RMIS
RESOURCE MAINTENANCE AND

SERVICE OF VEHICLES, ROOMS AND EQUIPMENTS

TC-ID OBJECTIVE DESCRIPTION EXPECTED ACTUAL STATUS


RESULT RESULT
001 Testing the 1. Run the Id Same Pass
service Id Service page. Automatically
Auto Filled 2. In service Id generate in
when Page is textbox auto Numeric value.
loaded generate Id
visible.

002 Testing the 1. Run the Error Message Same Pass


Save Button Bookings page. Shown From
without 2. Click on all Service
select any Save Button. date “Please
Date. select the date

003 Testing the 1. Run the Record Saved Same Pass


Save Button Booking page. and message
After Filling 2. Fill All comes
all the Required Data. Registration
textbox 3. Click on Successfully.
Fields. Save Button.

004 Testing The 1. Run the Error Message Same Pass


Agency filed Service page. comes from
with blank 2. Agency field Agency Textbox
keep blank. “Please select
3. Click on Save the Agency”
Button
005 Testing the 1. Run the Error message Same Pass
resource Id Service Page. comes
with blank 2. Keep Blank of “Resource Id
resource Id must be filled
textbox. before save the
3. click on Save details.”
button and Run
006 Testing the 1. Run the Error message Same Pass
service status Service Page. comes “Please
textbox with 2. Keep Blank of provide service
blank status textbox. status.”
3. click on Save
button.

1
RMIS
RESOURCE MAINTENANCE AND

MANAGE OF ALL RESOURCES AND its RELATED DATA

TC-ID OBJECTIVE DESCRIPTION EXPECTED ACTUAL STATUS


RESULT RESULT
001 Testing the 1. Run the Directly open Same Pass
user session Application login page.
before login. without login
with userid and
password.

002 Testing the 1. Click on Show Individual Same Pass


Show Button button in Grid Records will
on Views show the id
Management which is
page. selected.
003 Testing the 1. Click on Message comes Same Pass
Delete Button Delete button in on new page
on Grid Views with the details
Management would you
page. really want to
delete this
record.
004 Testing the 1. Click on A new views Same Pass
Update Update button in open with the
Button on Grid Views individual
Management records with
page. textboxes
where admin
can modify as
per the
requirement.
005 Testing to 1. Login. All the Same Pass
show all the 2. Select Item Recorded data
recorded from Welcome will be shown
Data when page. with message
any item is 3. Open a Grid header all data
selected from view with all shown.
welcome operations
page. Show, Update
and Delete.
006 Testing for 1. Login. Modified data Same Pass
checking the 2. Select Item will show in
updated data from Welcome Grid View
when finish page.
any 3. click on
modification Anyone button
like Insert, like Insert,
Delete and Delete and
Update Update

1
RMIS
RESOURCE MAINTENANCE AND

TEST CASES FOR changepassword.aspx


TC-ID OBJECTIVE DESCRIPTION EXPECTED ACTUAL STATUS
RESULT RESULT
036 Testing the 1. Run Change Error Same Pass
update password page. Messages
button 2. Click on should be
without Drop Save appear.
filled any Button. Please filled
data. the required
field
037 Testing the 1. Run Change Error Same Pass
Current Password Page. Messages
Password 2. Keep blank should be
Text box current appear.
With blank password Please filled
textbox. the required
field
038 Testing the 1. Run Change Error Same Pass
New Password Page. Messages
Password 2. Keep blank should be
Text box New password appear.
With blank textbox. Please filled
the required
field
039 Testing the 1. Run the All input Same Pass
password change data will
textboxes password page. show in *
with * 2. Filled the characters.
symbol. required data.

040 Testing the 1. Run change Message Same Pass


confirm password page. Appear
password 2. Fill the New Password
with password and not
different confirm matched.
input. password with
different
inputs.

Testing the 1. Run change Message Same Pass


change password page. Should

be
password 2. Fill all the appear “
with valid required filled Your
input data. with valid data. Password
3. Click on changed

1
RMIS
RESOURCE MAINTENANCE AND
Change button. successfully”

1
RMIS
RESOURCE MAINTENANCE AND

TEST CASES FOR FORGET PASSWORD


TC-ID OBJECTIVE DESCRIPTION EXPECTED ACTUAL STATUS
RESULT RESULT
041 Test the Send 1. Run The Error Same Pass
Button forget Password Message
Page. Comes From
2. Blank all Text Text Field.
Filed. “Required
3. Click on Send Field Can’t Be
Button. Blank
042 Testing the 1. Run the Error message Same Pass
Send Button Forget Password comes from
With Page. Email
Invalid Email 2. Type wrong
Id and Valid email Id. Id Field.
Option. 3. Click on Send “Please Enter
Button. a valid Email
Id.
043 Testing the 1. Run the Message Same Pass
Send Button Forget Password Should Be
with Valid Page. appear “Your
Email Id. 2. Type Valid Password
Email Id. Send your
email Id.
3. Click on Send
Button.
044 Testing the 1. Run the forget Error Same Pass
Different Password Page. Message
Email Id 2. Type different Comes from
which are not Email Id 3. Click Email Id text
registered. on Send Button. Box. “Please
Check your
Email Id
045 Testing the 1. Run The Message Same Pass
email forget Password Comes
Page. “Please
Id Without Type valid Email include @ in
including @ without Email Id”.
in Email Id including @.
4. Click on Send
Button.

1
RMIS
RESOURCE MAINTENANCE AND

9.3. TEST/BUG-REPORT

BUG REPORT

A bugs report or defects report is a list of bugs found out by testers while

testing a software product in testing phase under a testing environment. The

test environment is created at development site similar to the actual

environment in which the software is supposed to work or run in live

situation at customer site.

How can we prepare good Bug Report?

If our bug report is effective, then its chances are higher to get fixed. So

fixing a bug depends on how effectively you report it. Reporting a bug is

nothing but a skill and I will explain you how to achieve this skill.

“The point of writing problem report (bug report) is to get bugs fixed” –
By Cem Kaner.

If a tester is not reporting bug correctly, programmer will most likely reject

this bug stating as irreproducible. This can hurt tester’s moral and

sometime ego also. (I suggest not to keep any type of ego. Ego’s like “I have

reported bug correctly”, “I can reproduce it”, “Why he/she has rejected the

bug?”, “It’s not my fault” etc.

1
RMIS
RESOURCE MAINTENANCE AND

DEFECT LIFE CYCLE

What is Defect Life Cycle?


Defect life cycle, also known as Bug Life cycle is the journey of a defect
cycle, which a defect goes through during its lifetime. It varies from
organization to organization and also from project to project as it is
governed by the software testing process and also depends upon the tools
used.

Defect Life Cycle Diagram

1
RMIS
RESOURCE MAINTENANCE AND

DEFECT LIFE CYCLE STATES:

 New - Potential defect that is raised and yet to be validated.

 Assigned - Assigned against a development team to address it but

not yet resolved.

 Active - The Defect is being addressed by the developer and

investigation is under progress. At this stage there are two

possible outcomes; viz - Deferred or Rejected.

 Test - The Defect is fixed and ready for testing.

 Verified - The Defect that is retested and the test has been

verified by QA.

 Closed - The final state of the defect that can be closed after the

QA retesting or can be closed if the defect is duplicate or

considered as NOT a defect.

 Reopened - When the defect is NOT fixed, QA reopens/reactivates

the defect.

 Deferred - When a defect cannot be addressed in that particular

cycle it is deferred to future release.

 Rejected - A defect can be rejected for any of the 3 reasons; viz -

duplicate defect, NOT a Defect, Non Reproducible.

1
RMIS
RESOURCE MAINTENANCE AND
TC –ID: TC : 027 Webpage: login.cshtml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Testing the login button with valid Username and Invalid Password.

Description
1. Run The login page.
2. Fill the Valid Username in Textbox1.
3. Fill Invalid Password in TextBox2.
4. Click on login Button.

Expected Result
Error Message Show----
“Invalid Username and Password”

Actual Result
Open Welcome page.

TC –ID: TC : 040Webpage:changepassword.aspx
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Testing Update button


Description

1. Run change password page.


2. Select option and type valid password and click on change button.
4. Type new Password and click on Update

Expected Result
Message Appear Password Changed Successfully

Actual Result
Error Message appears “Invalid Credentials.”

1
RMIS
RESOURCE MAINTENANCE AND

TC –ID: TC : 045Webpage:forgetPassword.aspx
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Testing the Send Button With Valid Option and Valid Email Id

Description

1. Run The forget Password Page.


2. Select valid option from Drop down list item.
3. Type valid Email Id.
4. Click on Send Button

Expected Result
Message Comes “Password Updated Successfully

Actual Result
Error Message appears “Invalid Credentials.”

TC –ID: TC : 050Webpage:Contactus.cshml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Testing the Subject Filled.

Description

1. Run the Contact us Page.


2. Fill All the Valid Data in Text Boxes.
3. In Subject Field type our Subject.
4. Click on Send Button.

Expected Result
Message appears “Your message Has been Send Successfully” In mail our subject
should be appear.

Actual Result
Error Message appears “Check Email Id.”

1
RMIS
RESOURCE MAINTENANCE AND
TC –ID: TC : 073Webpage:ViewProfile.aspx
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Testing for the Image.

Description

1. Run the View Profile Page.


2. Check the image and match with database that is actual or Not.

Expected Result

It must be matched with Uploaded Image.

Actual Result

Image are not matched.

TC –ID: TC : 018WebpageStaffRegistration.cshmtl
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Testing The Email Id in Wrong Format.

Description

1. Run the Employer registration page.


2. In Email Id textbox fill wrong format of emailed.
3. Click on Save Button.

Expected Result

Error Message comes from Email Id Textbox “Please Include @ in Email Id”

Actual Result

Email id accepted successfully.

1
RMIS
RESOURCE MAINTENANCE AND

TC –ID: TC : 006Webpage:AddVehicle.cshtml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Testing the Confirm message.

Description

1. Fill all the required data.


2. Click on Save Button.
Expected Result

Message Comes from confirm Textbox. “Vehicles Added Successfully.”

Actual Result

Error Message “Object Reference Not Set an object.”

TC –ID: TC : 006Webpage:AddAgency.cshtml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Testing the Email Id Text box.

Description

1. Fill all the wrong Email Id


2. Click on Save Button.
Expected Result

Message Comes from Email Textbox. “Please provide valid Email.”

Actual Result

Error Message “Object Reference Not Set an object.”

1
RMIS
RESOURCE MAINTENANCE AND

TC –ID: TC : 006Webpage:Booking.cshtml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Testing the Due Payment textbox.

Description

1. Fill all the required data.


2. Click on Save Button.
Expected Result

Due payment textbox will autofill after subtracting from Fare Field.
Actual Result

Error Message “Please provide valid email.”

TC –ID: TC : 108Webpage:Manage.cshtml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective

Test for update button on Manage page of Admin.

Description

1. Login the page with valid userid and password.


2. Select any item from menu.
3. Click on Update button from the Grid View Data.

Expected Result

Open updated data with message Records updated successfully.

Actual Result

Error Message: Null Value Exception occurs.

1
RMIS
RESOURCE MAINTENANCE AND

9.4. DEBUGGING

It is a systematic process of spotting and fixing the number of bugs, or

defects, in a piece of software so that the software is behaving as expected.

Debugging is harder for complex systems in particular when various

subsystems are tightly coupled as changes in one system or interface may

cause bugs to emerge in another.

Debugging is a developer activity and effective debugging is very important

before testing begins to increase the quality of the system. Debugging will

not give confidence that the system meets its requirements completely but

testing gives confidence.

DEBUGGING APPROACHES

There are following Debugging Approaches are used in Software Application.


Some of the approaches are described below.
Brute Force Method:
This method is most common and least efficient for isolating the cause of a

software error. We apply this method when all else fail. In this method, a

printout of all registers and relevant memory locations is obtained and

studied. All dumps should be well documented and retained for possible use

on subsequent problems.

1
RMIS
RESOURCE MAINTENANCE AND
BACK TRACKING METHOD

It is a quite popular approach of debugging which is used effectively in case

of small applications. The process starts from the site where a particular

symptom gets detected, from there on backward tracing is done across the

entire source code till we are able to lay our hands on the site being the

cause. Unfortunately, as the number of source lines increases, the number

of potential backward paths may become unmanageably large.

CAUSE ELIMINATION
The third approach to debugging, because elimination, is manifested by

induction or deduction and introduces the concept of binary partitioning.

This approach is also called induction and deduction. Data related to the

error occurrence are organized to isolate potential causes. A "cause

hypothesis" is devised and the data are used to prove or disprove the

hypothesis. Alternatively, a list of all possible causes is developed and tests

are conducted to eliminate each. If initial tests indicate that a particular

cause hypothesis shows promise, the data are refined in an attempt to

isolate the bug.

TOOLS FOR DEBUGGING

Each of the above debugging approaches can be supplemented with

debugging tools. For debugging we can apply wide variety of debugging

tools such as debugging compilers, dynamic debugging aids, automatic test

case generators, memory dumps and cross reference maps. The following

are the main Debugging tools available in the market.

1
RMIS
RESOURCE MAINTENANCE AND

10. IMPLEMENTAION OF SECURITY


Software Security
It is an idea implemented to protect software against malicious attack and
other hacker risks so that software continues to function correctly under
such potentials risks. It is necessary to provide integrity, authentication and
availability.

 ASP.NET MVC uses Data Annotations attributes for validation


 Data Annotations attributes can be applied to the properties of the
model class to indicate the kind of value the property will hold.

There are following Validation used in MVC project.

1. Required
2. String Length
3. Range
4. RegularExpression
5. CustomValidation
6. EmailAddress
7. FileExtension
8. MaxLength

CLIENT SIDE VALIDATION


When validation is done through JavaScript or JQuery then it is called client

Side Validation. Because it doesn’t hit over the server. It executes in

Browser. HTML5 also offer some input type validation like required, email

etc.

SERVER SIDE VALIDATION


When validation is performed on the server side then it is called Server Side

Validation. Asp.Net supports both Server Side and client Validation. When

Validation is done through Data Annotations then it is Server Side and when

the validation done through JQuery then it is called client side.

1
RMIS
RESOURCE MAINTENANCE AND

10.1. DATABASE

Database security refers to the collective measures used to protect and

secure a database or database management software from illegitimate use

and malicious threats and attacks.

TRHREATS IN DATABASE
 Availability loss − Availability loss refers to non-availability of

database objects by legitimate users.

 Integrity loss − Integrity loss occurs when unacceptable operations

are performed upon the database either accidentally or maliciously.

 Confidentiality loss − Confidentiality loss occurs due to

unauthorized or unintentional disclosure of confidential information.

It may result in illegal actions, security threats and loss in public

confidence.

INTEGRITY CONSTRAINTS IN DATABASE


Constraints are the rules enforced on data columns on table. These are

used to limit the type of data that can go into a table. This ensures the

accuracy and reliability of the data in the database.

Not Null Constraint

Ensures that a column cannot have NULL value.

By default, a column can hold NULL values. If you do not want a column to
have a NULL value, then we need to define such constraint on this column
specifying that NULL is now not allowed for that column.

1
RMIS
RESOURCE MAINTENANCE AND

A NULL is not the same as no data, rather, it represents unknown data.

DEFAULT CONSTRAINT

Provides a default value for a column when none is specified. The DEFAULT

constraint provides a default value to a column when the INSERT INTO

statement does not provide a specific value.

UNIQUE CONSTRAINT

Ensures that all values in a column are different. The UNIQUE Constraint

prevents two records from having identical values in a particular column. In

the CUSTOMERS table, for example, you might want to prevent two or more

people from having identical age.

PRIMARY KEY

It uniquely identified each rows/records in a database table. A primary key

is a field in a table which uniquely identifies each row/record in a database

table. Primary keys must contain unique values. A primary key column

cannot have NULL values.

FOREIGN KEY

A foreign key is a key used to link two tables together. This is sometimes
called a referencing key. It is a primary key of another table.

CHECKCONSTRAINTS

The CHECK Constraint enables a condition to check the value being

entered into a record. If the condition evaluates to false, then it throw

errors.

1
RMIS
RESOURCE MAINTENANCE AND

INDEX CONSTRAINT

The INDEX is used to create and retrieve data from the database very quickly.

Index can be created by using single or group of columns in a table.

VIEWS

A view is nothing more than a SQL statement that is stored in the database

with an associated name. A view is actually a composition of a table in the

form of a predefined SQL query.

A view can contain all rows of a table or select rows from a table. A view can

be created from one or many tables which depends on the written SQL

query to create a view.

Views, which are kind of virtual tables, allow users to do the following:

 Structure data in a way that users or classes of users find natural or


intuitive.

 Restrict access to the data such that a user can see and (sometimes)
modify exactly what they need and no more.

 Summarize data from various tables which can be used to generate


reports.

CREATING VIEWS

Database views are created using the CREATE VIEW statement. Views can
be created from a single table, multiple tables, or another view.

To create a view, a user must have the appropriate system privilege


according to the specific implementation.

Now, following is the example to create a view from CUSTOMERS table.


This view would be used to have customer name and age from
CUSTOMERS table:

1
RMIS
RESOURCE MAINTENANCE AND

10.2. DATA
Data security means protecting data, such as a database, from destructive

forces and from the unwanted actions of unauthorized users.

Exception Handling in C#

An exception is a problem that arises during the execution of a program. A

C# exception is a response to an exceptional circumstance that arises while

a program is running, such as an attempt to divide by zero. C# exception

handling is built upon four keywords: try, catch, finally, and throw.

 try: A try block identifies a block of code for which particular

exceptions is activated. It is followed by one or more catch

blocks.

 catch: A program catches an exception with an exception

handler at the place in a program where you want to handle

the problem. The catch keyword indicates the catching of an

exception.

 finally: The finally block is used to execute a given set of

statements, whether an exception is thrown or not thrown. For

example, if you open a file, it must be closed whether an

exception is raised or not.

 throw: A program throws an exception when a problem shows

up. This is done using a throw keyword.

1
RMIS
RESOURCE MAINTENANCE AND

EXCEPTION CLASSES IN C#

 System.NullReferenceException – Very common exception related to

calling a method on a null object reference

 System.IndexOutOfRangeException – Occurs attempting to access an

array element that does not exist

 System.IO.IOException – Used around many file I/O type operations

 System.Net.WebException – Commonly thrown around any

errors performing HTTP calls

 System.Data.SqlClient.SqlException – Various types of SQL Server

exceptions

 System.StackOverflowException – If a method calls itself

recursively, you may get this exception

 System.OutOfMemoryException – If your app runs out of memory

 System.InvalidCastException – If you try to cast an object to a type

that it can’t be cast to

 System.InvalidOperationException – Common generic exception in

a lot of libraries

 System.ObjectDisposedException – Trying to use an object that has

already been disposed

1
RMIS
RESOURCE MAINTENANCE AND

10.3. USER AND ACCESS RIGHTS


It can be easily explained by using Use Case Diagram.
There are basically three users who will use this software application.

 Admin
 Staff

ADMIN

 Admin can create own accounts.


 Admin can view own profile.
 Admin can add the Staffs.
 Admin has rights to manage all staffs account.
 Admin can access all the registered data in the software.
 Admin can insert, Delete and Update in recorded data.
 Admin can manage all the resources related records.
 Admin can manage all the booking related records.
 Admin can manage all the agencies and their services related records.
 Admin has rights to manage any auction related records.
To do any action they have to login first.

STAFF
 Staff will get userid and password from Admin.
 He/ She has can login RMIS application.
 Staffs can view their own profile.
 Staff has limited permission.
 Staff has only insert and view access with RMIS application.
 Staff can add new resources like Vehicles, Equipment and Rooms.
 Staff can add any booking records like Vehicles and Rooms.
 All the service related records are added by Staffs.
 Any agencies will be added by Staffs in this application.
 Staffs can track all the bookings related due revenues.
 When auctions is performed then these details will be added by the
staffs.
To do any activity with the RMIS application Users need to login first.

1
RMIS
RESOURCE MAINTENANCE AND

11. LIMITATIONS OF PROJECTS


Limitations in the sense the act of controlling and especially something. So,

in my MINI Project RMIS a Resource Maintenance and Management

Application has also some limitations which are following:

 Admin can’t directly register with social media like Facebook,

Gmail, etc. They will have to fill register forms and create own User

Id or Password to access the websites. Because it is MIS application

which can be operated by only Admins and Staffs.

 It has been designed only for official purpose.

 We are not providing a confirmation message during the registration

period on phone like one time password for verifications.

 Only Registered candidates can access websites services.

 Without login no one users can easily access the website services. To

access the application they need to login first.

 RMIS has not implemented Face locker, Retina locker, and

Fingerprint locker facility. It will be implemented later.

 Staff can’t update their profile except their profile pics.

 Staff can only add the company related data.

 Admin can only add the staff and manage all the company related

records.

 All the service and agencies related data are filled by Staffs.

 All the bookings related records are filled by Staffs.

 Admin can manage all the company data, they can only add the

staffs.

1
RMIS
RESOURCE MAINTENANCE AND

12. FUTURE
Future scope tells that the Enhancement of any software. Enhancement in

the features, processing, performance etc. In future I will be add some more

and useful features in this MIS application system.

There will be following features which can be added in this MIS system.

 In next version there will be more security patches will be added in

this application so that data can be protected.

 In next version this MIS application will be added with MICROSOFT

cloud data storage, so that we can reduce the server load.

 Next version we will add some clean-up tools for removing virus,

threats, temporary files, junk files etc.

 Next version we will add some security alerts when any unauthorised

access occurs or any attacker’s attacks over the application.

 In this time users can use only own created passwords for unlocking

the system. But in next version I will add some smart lockers system

like Finger Lock, Face Lock, and Retina Lock etc.

 In next version I will added some auctions related features so that

auctions activities can be improved.

 In next version I will develop a web services and it will be uploaded on

the internet.

 This web service will help to find out some interested customer to

participate in Auction. So that whenever any customer will shows the

interested then it can be done easily online.

1
RMIS
RESOURCE MAINTENANCE AND

13. CONCLUSIONS
My Mini Project is based on RESOURCE MAINTENANCE AND

MANAGEMENT APPLICATION WHICH NAMEDisRMIS. It is a

MIS, Management Information System. There are basically two

users can operate this applications these are Staffs and Admins.

By using this application staffs can add all the company

resources related records like Vehicles, Conference Rooms, and

ICT Equipment. Staff can add agency related data which are

dedicated to provide services for the company resources.

Company also deals in Bookings of Rooms and Vehicles. So, if

any bookings are done then these related data are filled by the

Staffs. If staff wish to search any records on the behalf of Id that

is also called Primary key then they have rights. But Staff can’t

do any modification over it. All the modification will be done by

Admins. For the communicational purpose it has mails features.

Staff can send mails to Admins to modify any records. Admin will

update the records as per the staff request. Admin has rights to

add new staffs and create their userid and password for the

access application.

1
RMIS
RESOURCE MAINTENANCE AND

14. BIBILOGRAPHY
MVC

Title Author
Jon Galloway
Professional ASP.Net MVC 5

ASP.NET MVC Framework Unleashed Stephen Walther


ASP.NET MVC 5 Recipes: A Practical Nimit Joshi
Solution

SQL SERVER

Title Author
Microsoft Sql Server 2008 Mike Hotek, Adriano Abrate
implementation and Maintenance
Microsoft Sql Server 2008 Business Erik Verman, Teo Lachev, Dejan
Intelligence Development and Sarka
Maintenance
Microsoft Sql Server 2008 Database Tobias Jhernstorm, Ann Weber,
Development Mike Hotek

SOFTWARE ENGINEERING

Title Author
A Practical Handbook of Software Steve Mc Connell
Construction
Software Engineering Theory And Shari Lawrence Pfleeger
Practice
Software Engineering Project Richard H Thayer
Management(WSE Series)

ENTITY FRAMEWORK
Title Author
Programming Entity Framework Julia Lerman

Entity Framework 4 in Action Stefano Mostarda, Marco De


Sanctis, Daniele Bochicchio

1
RMIS
RESOURCE MAINTENANCE AND
Entity Framework 4.0 Recipes: Larry Tenny, Zeeshan Hirani
A Problem-Solution Approach

INPUT
AND
OUTPUT
SCREENS

1
RMIS
RESOURCE MAINTENANCE AND

Page Name: Admin Index


Technology: MVC Entity Framework
Database: SQL Server
Path: http://localhost:51100/Admin/Index

1
RMIS
RESOURCE MAINTENANCE AND

Page Name: Admin Register


Technology: MVC Entity Framework
Database: Sql Server
Path: http://localhost:51100/Admin/AdminRegister

1
RMIS
RESOURCE MAINTENANCE AND

Page Name: Admin login


Technology: MVC Entity Framework
Database: SQL Server
Path: http://localhost:51100/Admin/AdminLogin

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Welcome
Technology: MVC Entity Framework
Database: SQL Server
Path: http://localhost:51100/Admin/Welcomepage

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Personal Information
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Admin/AdminPersonal

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: View Profile
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Admin/ViewProfile

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Change Password
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Admin/ChangePassword

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Forget Password
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Admin/forgetPassword

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Agency Management
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Agency/Agencymanage

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Agency Update
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Agency/AgencyEdit/102

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Agency Delete
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Agency/AgencyEdit/102

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Mails/Inbox
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Agency/Inbox

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Staff Management
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Admin/Staffs

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Staff Registration
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Admin/AddStaff

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Staff Registration
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Admin/Staffmanage

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Vehicles Management
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Vehicles/VehicleManage

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Equipment Management
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Equipment/EquipmentManage

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Rooms Management
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Equipment/EquipmentManage

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Auctions Management
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Service/ServiceIndex

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Auctions Management
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Auction/AuctionIndex

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Vehicles Booking
Management Technology: MVC Entity
Framework Database: SQL Server
Path:http://localhost:51100/VehicleBooking/CabIndex

1
RMIS
RESOURCE MAINTENANCE AND

User: Admin
Page Name: Room Bookings Management
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Auction/AuctionIndex

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Staff Index
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Staff/Index

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Staff Login
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/staff/Stafflogin

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Welcome Page
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Staff/WelcomeStaff

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Staff Personal
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Staff/Personal

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: View Profile
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/staff/Stafflogin

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Change Password
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Staff/ChangePassword
About: To change own password

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Forget Password
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/staff/forgetPassword
About: When we forget our password then received password on Email.

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Feedback
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/staff/forgetPassword

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Agency Register
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Agency/AgencyRegister
About: Staff adds Agency Details in RMIS Application.

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Vehicles Register
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Vehicles/AddVehicle

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Vehicles Register
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Equipment/AddEquipment

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Add Service
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Service/AddService

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Add Vehicle Booking
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Service/AddService

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Add Room Booking
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/RoomBooking/AddRoom

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Revenue from Vehicles Booking
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/VehicleBooking/CabIndexStaff

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Revenue from
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Auction/AuctionIndexstaff

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Payment Page
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Payment/payindex

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Search By id
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Staff/SearchById

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Search Vehicles
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Staff/SearchById

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Search Rooms
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/ConferenceRoom/RoomSearch

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Search Rooms
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Equipment/Depreciation

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Search Service By Id
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Service/ServiceById

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Search Agency by Id
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Agency/AgencySearch

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Search Auction
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Auction/AuctionRevenue

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Search Vehicles Booking
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/Auction/AuctionRevenue

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff
Page Name: Search Room Booking
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/RoomBooking/TrackRevenue

1
RMIS
RESOURCE MAINTENANCE AND

User: Staff /Admin


Page Name: About Us
Technology: MVC Entity Framework
Database: SQL Server
Path:http://localhost:51100/RoomBooking/TrackRevenue

1
RMIS
RESOURCE MAINTENANCE AND

CODINGS
WITH
COMMENTS

1
RMIS
RESOURCE MAINTENANCE AND

TOPIC: ADMIN MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RMIS.Models
{
[Table("Admin")]//Table Name
publicpartialclassAdmin
{
[Key]//Stop to generate take auto Id
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint AdminId { get; set; }//Field Name
publicstring Usernm { get; set; }//Field Name
publicstring Paswd { get; set; }//Field Name
publicstring Mob { get; set; }//Field Name
publicstring Email { get; set; }//Field Name
publicstring Role { get; set; }//Field Name
publicstring Pic { get; set; }//Field Name
}

TOPIC: RMIS DBSETS

publicpartialclassRMISEntity :DbContext//Establish Database Connection


{
public RMISEntity():base("name=RMISEntity")//Parent Class
{

publicDbSet<Admin> Admins { get; set; }//Admin Dbset


publicDbSet<Staff> Staffs { get; set; }//Staff Dbset
publicDbSet<Agency> Agencies { get; set; }//Agency Dbset
publicDbSet<ConferenceRoom> ConferenceRooms { get; set; }//Conference Room Dbset
publicDbSet<Vehicles> Vehicle { get; set; }//Vehicle Dbset
publicDbSet<Equipment> Equipments { get; set; }//Equipments Dbset
publicDbSet<Auction> Auctions { get; set; }//Auction Dbset
publicDbSet<Service> Services { get; set; }//Service Dbset
publicDbSet<RoomBooking> Rooms { get; set; }//RoomBooking Dbset
publicDbSet<VehicleBooking> Cabs { get; set; }//VehicleBooking Dbset
publicDbSet<BankCard> Cards { get; set; }//BankCard Dbset
publicDbSet<Payment> Payments { get; set; }//Payment Dbset

1
RMIS
RESOURCE MAINTENANCE AND
}
}

TOPIC: AGENCY MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models
{
[Table("Agency")] // Table Name
publicpartialclassAgency
{
[Key]//Stop to generate auto Id
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint AgencyId { get; set; }//Fild Name with datatype and property
publicstring Name { get; set; }//Fild Name with datatype and property
publicstring Service { get; set; }//Fild Name with datatype and property
publicint Charge { get; set; }//Fild Name with datatype and property
publicint Period { get; set; }//Fild Name with datatype and property
publicstring Email { get; set; }//Fild Name with datatype and property
publicstring Mobile { get; set; }//Fild Name with datatype and property
publicstring Web { get; set; }//Fild Name with datatype and property
publicstring Addr { get; set; }//Fild Name with datatype and property
publicstring Logo { get; set; }//Fild Name with datatype and property
}

TOPIC: AUCTION MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models
{
[Table("Auction")]//Table Name
publicpartialclassAuction
{
[Key]//Stop to Generate auto Id by Entity FrameWork
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint ActId { get; set; }//Field Name with datatype and property
publicstring Actdat { get; set; }//Field Name with datatype and property
publicstring Type { get; set; }//Field Name with datatype and property
publicstring Rnm { get; set; }//Field Name with datatype and property
publicint Price { get; set; }//Field Name with datatype and property

1
RMIS
RESOURCE MAINTENANCE AND
publicstring Loc { get; set; }//Field Name with datatype and property
publicstring Custnm { get; set; }//Field Name with datatype and property
publicint Age { get; set; }//Field Name with datatype and property
publicstring Sex { get; set; }//Field Name with datatype and property

}
}

TOPIC: AGENCY MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models
{

[Table("BankCard")]//Table Name
publicpartialclassBankCard// Class Name

{
[Key]//stop to generate auto Id by Entity Frame Work
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint CardNo { get; set; }//Field Name with datatype and property
publicstring Bank { get; set; }//Field Name with datatype and property
publicstring CardType { get; set; }//Field Name with datatype and property
publicint Cvv { get; set; }//Field Name with datatype and property
publicint Pin { get; set; }//Field Name with datatype and property
publicint Cardlimit { get; set; }//Field Name with datatype and property
}
}

TOPIC: CONFERENCEROOM MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models

namespace RMIS.Models
{
[Table("ConferenceRoom")]//Table Name
publicpartialclassConferenceRoom//Class Name
{
[Key]//stop to generate auto Id by Entity Framework
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint RoomId { get; set; }//Field Name with datatype and property
publicstring Name { get; set; }//Field Name with datatype and property

1
RMIS
RESOURCE MAINTENANCE AND
publicint Price { get; set; }//Field Name with datatype and property
publicint Year { get; set; }//Field Name with datatype and property
publicstring Agency { get; set; }//Field Name with datatype and property
publicstring RentFor{ get; set; }//Field Name with datatype and property

TOPIC: EQUIPMENT MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models
{
[Table("Equipment")]//Table Name
publicpartialclassEquipment//Class Name
{
[Key]//Stop to Generate auto Id by Entity FrameWork
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint EqpId{ get; set; }//Field Name with datatype and property
publicstring Name { get; set; }//Field Name with datatype and property
publicstring Type { get; set; }//Field Name with datatype and property
publicint Price { get; set; }//Field Name with datatype and property
publicint Year { get; set; }//Field Name with datatype and property
publicstring Agency { get; set; }//Field Name with datatype and property
publicint Acnyr { get; set; }//Field Name with datatype and property

TOPIC: PAYMENT MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models
{
[Table("Payment")]//Table Name
publicpartialclassPayment//Class Name
{
[Key]//Stop to Generate auto Id By Entity FrameWork
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint PayId { get; set; }//Field Name with datatype and property
publicstring Paydt { get; set; }//Field Name with datatype and property

1
RMIS
RESOURCE MAINTENANCE AND
publicstring PayMode { get; set; }//Field Name with datatype and property
publicint Amount { get; set; }//Field Name with datatype and property
publicstring Bank { get; set; }//Field Name with datatype and property
publicstring CardHolder { get; set; }//Field Name with datatype and property
publicstring Payfor { get; set; }//Field Name with datatype and property
publicint StaffId { get; set; }//Field Name with datatype and property
}
}
TOPIC: ROOMBOOKING MODELS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models

{
[Table("RoomBooking")]//Room Booking Table
publicpartialclassRoomBooking//Class Name
{
[Key]//Stop to Generate auto Id by Entity Frame Work
[DatabaseGenerated(DatabaseGeneratedOption.None)]

publicint BkId{ get; set; }//Field Name with Datatype and Property
publicstring Rnm { get; set; }//Field Name with Datatype and Property
publicstring Type { get; set; }//Field Name with Datatype and Property
publicint Fare { get; set; }//Field Name with Datatype and Property
publicstring Chkndat { get; set; }//Field Name with Datatype and Property
publicstring Chotdat { get; set; }//Field Name with Datatype and Property
publicstring Custnm { get; set; }//Field Name with Datatype and Property
publicstring Mob { get; set; }//Field Name with Datatype and Property
}
}

TOPIC: SERVICE MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models

{
[Table("Service")]//Table Name
publicpartialclassService//Class Name
{
[Key]//Stop to Auto Generate Id By Entity FrameWork
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint ServId { get; set; }//Field With Datatype and Property
publicstring Name { get; set; }//Field With Datatype and Property

1
RMIS
RESOURCE MAINTENANCE AND
publicstring Type { get; set; }//Field With Datatype and Property
publicstring Rnm { get; set; }//Field With Datatype and Property
publicstring Agency { get; set; }//Field With Datatype and Property
publicstring Engnm { get; set; }//Field With Datatype and Property
publicstring Visitdate { get; set; }//Field With Datatype and Property
publicstring Pymnt { get; set; }//Field With Datatype and Property
publicint EqpId { get; set; }//Field With Datatype and Property
}

TOPIC: STAFF MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models

namespace RMIS.Models
{
[Table("Staff")]//Table Name
publicpartialclassStaff//Class Name
{
[Key]//Stop to Generate auto Id by Entity FrameWork
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint StaffId { get; set; }//Field with Datatype and Property
publicstring Usernm { get; set; }//Field with Datatype and Property
publicstring Paswd { get; set; }//Field with Datatype and Property
publicstring Name { get; set; }//Field with Datatype and Property
publicNullable<System.DateTime> Dob { get; set; }//Field with Datatype and Property
publicstring Sex { get; set; }//Field with Datatype and Property
publicstring Qualification { get; set; }//Field with Datatype and Property
publicstring Profile { get; set; }//Field with Datatype and Property

}
}

TOPIC: VEHICLES MODELS


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models
{
[Table("Vehicles")]//Table Name
publicpartialclassVehicles//Class Name
{
[Key]//Stop to Generate auto Id By Entity FrameWork
[DatabaseGenerated(DatabaseGeneratedOption.None)]

1
RMIS
RESOURCE MAINTENANCE AND
publicint VehicleId { get; set; }//Field with Datatype and Property
publicstring Name { get; set; }//Field with Datatype and Property
publicstring Type { get; set; }//Field with Datatype and Property
publicstring Agency { get; set; }//Field with Datatype and Property
publicstring RentFor { get; set; }//Field with Datatype and Property
publicstring Logo { get; set; }//Field with Datatype and Property

}
TOPIC: VEHICLEBOOKING MODELS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMIS.Models

{
[Table("VehicleBooking")]//Table Name
publicpartialclassVehicleBooking//Class Name
{
[Key]//Stop to Generate Auto Id by Entity Framework
[DatabaseGenerated(DatabaseGeneratedOption.None)]
publicint BkId { get; set; }//Field Name with Datatype and Property
publicstring Rnm { get; set; }//Field Name with Datatype and Property
publicstring Date { get; set; }//Field Name with Datatype and Property
publicint Km { get; set; }//Field Name with Datatype and Property
publicint Fare { get; set; }//Field Name with Datatype and Property
publicstring Custnm { get; set; }//Field Name with Datatype and Property
publicstring Mob { get; set; }//Field Name with Datatype and Property
publicstring Email { get; set; }//Field Name with Datatype and Property
publicstring Addr { get; set; }//Field Name with Datatype and Property
publicint Payment { get; set; }//Field Name with Datatype and Property
publicint Due { get; set; }//Field Name with Datatype and Property
publicstring Mode { get; set; }//Field Name with Datatype and Property
publicint VehicleId { get; set; }//Field Name with Datatype and Property

1
RMIS
RESOURCE MAINTENANCE AND

IBankService.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace RMIS
{

[ServiceContract]
publicinterfaceIBankService //Interface of Bank Service
{
[OperationContract]
bool checkcard(int cno, string bn, string Ct, int cv, int Pin, string Ch,string Vu, int Cl);
}
}

BankService.svc
using RMIS.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace RMIS
{

publicclassBankService : IBankService//child of Interface


{
RMISEntity bs = newRMISEntity();//Database connectivity

publicbool checkcard(int cno, string bn, string Ct, int cv, int Pin, string Ch, string Vu, int
Cl) //Implementation of Interface
{

BankCard b = bs.Cards.Where(r => r.CardNo == cno && r.Bank == bn && r.CardType == Ct


&& r.Cvv == cv && r.Pin == Pin && r.CardHolder == Ch && r.ValidUpto == Vu &&
r.Cardlimit >= Cl).SingleOrDefault();

1
RMIS
RESOURCE MAINTENANCE AND
if (b == null)
returnfalse;// when information are wrong

else
returntrue;//When information are correct
}
}

ADMIN CONTROLLER
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RMIS.Models;
using System.IO;
using System.Net.Mail;
using System.Data.Entity;
using System.Web.Security;

namespace RMIS.Controllers
{
public class AdminController : Controller
{
public ActionResult Index()// Index page
{
Session.Clear(); //session cleared
Session.RemoveAll();//session Removed
return View();
}

RMISEntity adm = new RMISEntity(); //Establish Database connectivity

public ActionResult AdminRegister()// All validations run successfully but they can't
stop to refresh the page.
{
int Id = adm.Admins.Max(x => x.AdminId);//Find Maximum Id Id+
+;// increment of 1
Session["Admid"] = Id.ToString();// copy to Session
return View();
}
[HttpPost]//Post Action
public ActionResult AdminRegister(Admin ad, HttpPostedFileBase Pic)//Upload File
{
if (Pic != null)//When it has value
{
Pic.SaveAs(Server.MapPath("~/Uploaded") + Pic.FileName);//Server Path
ad.Pic = "~/Uploaded" + Pic.FileName;//copy to variable
}
var v = adm.Admins.Add(ad);//Save into Database
if (v != null)//When it has value
{
adm.SaveChanges(); //data saved into database

1
RMIS
RESOURCE MAINTENANCE AND
ViewBag.Message = "You are Registered with RMIS Successfully";
return RedirectToAction("AdminLogin");
}

else
{
ViewBag.Message = "Please provide Valid Details";//error message
return View();
}

}
public ActionResult Adminlogin()// Logic of Admin on get Method
{

return View();
}
[HttpPost, ValidateInput(false)]// logic when submit button is pressed
public ActionResult Adminlogin(Admin ad)
{
try//exception handelling
{
var v = adm.Admins.Where(a => a.Usernm.Equals(ad.Usernm) &&
(a.Paswd.Equals(ad.Paswd))).FirstOrDefault(); //Search and Match the data on Db
if (v != null)
{
Session["usr"] = v.Usernm; // Take Value in Session
Session["id"] = v.AdminId;// Take Value in Session
Session["ps"] = v.Paswd; // Take Value in Session
Session["Email"] = v.Email; // Take Value in Session
Session["Role"] = v.Role; // Take Value in Session
Session["Pic"] = v.Pic; // Take Value in Session
return RedirectToAction("Welcomepage"); // Redirect to Another Page
}
else // if code doesn't run
{
ViewBag.Message = "Invalid Usernm/password"; // Error Message
return View();
}
}
catch (Exception ex) //Exception Handling
{
ViewBag.Message = "Error! Please Try Again"; // Error message When any
Exception occurs
return View();
}
}

public ActionResult forgetPassword() // logic of Forget Password


{
return View();
}
[HttpPost]//Post Method
public ActionResult forgetPassword(Admin ad) //logic runs when submit button is
pressed
{
try { // Exeption Handlling
var v = adm.Admins.Where(a => a.Email.Equals(ad.Email)).FirstOrDefault(); //
Get Emails and match in Database

1
RMIS
RESOURCE MAINTENANCE AND
if (v != null) // if variable doesn't null
{
string pas = v.Paswd; // copy password from database into variable
MailMessage msg = new MailMessage(); // Mail message object
msg.To.Add(v.Email); // Receipient Email Id
msg.From = new MailAddress("[email protected]"); // Sender Email Id
msg.Subject = "Password Recorvery"; // Subject of Mails
msg.Body = "Ur Password is " + pas;//Body Message
SmtpClient sm = new SmtpClient("smtp.gmail.com"); // Email Provider like
Gmail, Yahoo, outlook etc.
sm.Port = 587; //Smtp port Number
sm.Credentials = new
System.Net.NetworkCredential("[email protected]", "Rahul@123"); // Receipient
Credentials
sm.EnableSsl = true; // if conditions true
sm.Send(msg); // Send message
ViewBag.Message = "Your password send"; // confirmation Message
}
else
{
ViewBag.Message = "Please Check Your Email"; // Errror Message
}
return View();
}

catch (Exception ex) // Exception Handlling


{
ViewBag.Message = "Error! Please Try Again"; // Exception Message
return View();
}
}
public ActionResult ViewProfile() // See your Profile
{
return View();

public ActionResult AdminPersonal() // Personal Page


{
return View();

public ActionResult Bookings() // Bookings Page


{
return View();
}

public ActionResult Staffs() // Staffs Manage Page


{
return View();
}

public ActionResult Inbox() // Mail Message


{
return View();
}

1
RMIS
RESOURCE MAINTENANCE AND
[HttpPost]//Post Method
public ActionResult Inbox(Admin s, string Message, String Subject) // Mail Messagage
logics
{
try // Exception Handling
{
var v = adm.Admins.Where(a => a.Email.Equals(s.Email)).FirstOrDefault(); //
Search Emails and Match in Database
if (v != null) // When variable doesn't null then logic will run
{
string mess = Message; // Message variable
string sub = Subject; // Message Variable
MailMessage msg = new MailMessage(); //Mail Message object
msg.To.Add(v.Email);// Receipient Email Id
msg.From = new MailAddress("[email protected]"); // Sender Email Id
msg.Subject = sub;// Mail Message Subject
msg.Body = mess;// Body Message
SmtpClient sm = new SmtpClient("smtp.gmail.com");// Email Provider
sm.Port = 587;//smtp port Number
sm.Credentials = new
System.Net.NetworkCredential("[email protected]", "Rahul@123");// Sender
Credentials
sm.EnableSsl = true;// if connections established
sm.Send(msg);// Sending message
ViewBag.Message = "Your Message Send Successfully";//cofirmation Message
}
else
{
ViewBag.Message = "Please Check Your Email"; // if logic not runs
}
return View();
}

catch (Exception ex) // Exception Handller


{
ViewBag.Message = "Error! Please Try Again"; // Error
message return View();
}
}

public ActionResult ChangePassword() // logic for change Password


{
return View();

}
[HttpPost]//Post Method
public ActionResult ChangePassword(string Paswd, string newPaswd) //
Passparameter for change password
{
try // Exception Handling
{
int id = Convert.ToInt32(Session["id"]); // convert int into string
var v = adm.Admins.Find(id);// Find id in Database
if (v!=null) // if variable doesn't null
{
v.Paswd = newPaswd; // copy newpassword into vaiable
adm.SaveChanges();// updated

1
RMIS
RESOURCE MAINTENANCE AND
ViewBag.Message = "Password Changed Successfully"; // Confirmation
Message
}
else
{
ViewBag.Message = "Password Mismatch";// if code not
runs return View();
}
return View();

}
catch (Exception ex) //Exception Handling
{
ViewBag.Message = "Error! Please Try Again"; //Exception Errors
return View();

}
}
public ActionResult Welcomepage() // Menu Page
{
if (Session["usr"] != null) // if session established
{
return View();
}

else
{
ViewBag.err = "Invalid userid/name"; // if code not runs
return RedirectToAction("Index"); // redirect to index page
}
}

public ActionResult AddStaff() // Add Staffs


{
if (Session["usr"] == null) // if session is available
{
return RedirectToAction("Adminlogin", "Admin");
}

int id = adm.Staffs.Max(x => x.StaffId); // Find Maximum Id on Database


id++; // increment of 1 in id
Session["StaffId"] = id.ToString(); // session variable
return View();
}

[HttpPost]//Post Method
public ActionResult AddStaff(Staff sf, HttpPostedFileBase Photo)
{
try
{
if (Photo != null)
{
Photo.SaveAs(Server.MapPath("~/Uploaded") + Photo.FileName);
sf.Photo = "~/Uploaded" + Photo.FileName;
}

var v = adm.Staffs.Add(sf);
if (v != null)

1
RMIS
RESOURCE MAINTENANCE AND
{
adm.SaveChanges(); // data saved into database
ViewBag.Message = "Registration Completed";
}
return RedirectToAction("Staffmanage");
}
catch (Exception ex) // Exception Handling
{
ViewBag.Message = "Error! Please Try Again"; //Exeption message
return View();
}
}

public ActionResult Staffmanage() //Staff managage


{
if (Session["usr"] == null) // check Session
{
return RedirectToAction("Adminlogin", "Admin"); //redirect to login page
}

return View(adm.Staffs.ToList()); // staff shows in Grid Views


}
[HttpPost]//Post Method
public ActionResult Staffmanage(string txtid) // Search staff
{
try // Exeption Handling
{
int id = Convert.ToInt32(txtid); // convert integer into string
var v = adm.Staffs.Find(id); // Find id into staffs
if (v != null) // if variable doesn't null
{
return RedirectToAction("StaffDetails", "Admin", new { id = v.StaffId });//Return
particular Data
}
else // if codes doesn't run
{
ViewBag.message = "Id Not Found"; // Error message
return View(adm.Staffs.ToList());
}

}
catch (Exception ex) // Exception Handling
{
ViewBag.Message = "Error! Please Try Again"; // Exception Message
return View();

}
}

public ActionResult StaffDetails(int id) // Getting Staffdetails


{
Staff st = adm.Staffs.Find(id); // Find staff on the behalf of Id
return View(st);
}

public ActionResult StaffEdit(int id) //Update the staff Details


{
Staff st = adm.Staffs.Find(id); // Pass Id to search Staff

1
RMIS
RESOURCE MAINTENANCE AND
return View(st);
}
[HttpPost]//Post Method
public ActionResult StaffEdit(Staff s) // code runs when Submit is clicked
{
try//Exception Handling
{
adm.Entry(s).State = EntityState.Modified; // update staff Details
adm.SaveChanges(); // updated data into Db
return RedirectToAction("StaffManage", "Admin"); //Redirection

}
catch (Exception ex) //Exception Handling
{
ViewBag.Message = "Error! Please Try Again"; // Exception Message
return View();

}
}
public ActionResult StaffDelete(int id) //Delete any Data from Grid Vies
{
Staff st = adm.Staffs.Find(id); //Find any Data on the behalf of Id
return View(st);
}

[HttpPost] //Post Method


public ActionResult StaffDelete(string id) // Code runs when delete button is clicked
{
try //Exception Handling
{
int sid = Convert.ToInt32(id); // Convert integer into into String
Staff st = adm.Staffs.Find(sid);//Find data on the behalf of Id
adm.Staffs.Remove(st); // Delete Data on the Behalf of Id
adm.SaveChanges(); // When deletion Completed
return RedirectToAction("StaffManage", "Admin"); // Redirection to Another Page
}
catch (Exception ex)//
{
ViewBag.Message = "Error! Please Try Again";
return View();
}
}

public ActionResult AboutUs() // About us


{
return View();
}
}
}

1
RMIS
RESOURCE MAINTENANCE AND

AGENCY CONTROLLER
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RMIS.Models;
using System.Data.Entity;

namespace RMIS.Controllers
{
publicclassAgencyController : Controller
{
RMISEntity ag = newRMISEntity();//Data Base Connectivity

publicActionResult AgencyRegister()// Agency Register


{
if (Session["user"] == null) // if User Session is null then redirect to Login Page
{
return RedirectToAction("Stafflogin" ,"Staff");//Redirect
}
int id = ag.Agencies.Max(x => x.AgencyId); // Find Maximum Id from Database
id++; // increment of 1 in Id
Session["AgencyId"] = id.ToString(); // Auto Passed Id with incremet of 1 when
page is load
return View();
}
[HttpPost]//Post Action
publicActionResult AgencyRegister(Agency agn, HttpPostedFileBase Logo)//Upload File

{
try//Exception Handling
{
if (Logo != null)//When it has value
{
Logo.SaveAs(Server.MapPath("~/Uploaded") + Logo.FileName);//Server Path
agn.Logo = "~/Uploaded" + Logo.FileName;//Copy to Variable
}

var v = ag.Agencies.Add(agn);
if (v != null)
{
ag.SaveChanges(); // data Saved in Database
ViewBag.Message = "Registration Done Successfully"; // confirmation
message
}
return View();

1
RMIS
RESOURCE MAINTENANCE AND

1
RMIS
RESOURCE MAINTENANCE AND
}
catch (Exception ex)//Exception Handling
{
ViewBag.Message = "Error! Please Try Again";
return View();
}
}

publicActionResult Agencymanage() // Agency Manage, Managed By Admin

{
if (Session["usr"] == null) // if User Session is null then redirect to Login Page
{
return RedirectToAction("Adminlogin","Admin"); // Redirection to Another Page
}
return View(ag.Agencies.ToList()); // Show all data on Grid vies
}
[HttpPost]//Post Action
publicActionResult Agencymanage(string AgencyId) // Find data on the behalf of Id
{
try
{
int id = Convert.ToInt32(AgencyId); // Convert Id into string
var v = ag.Agencies.Find(id); // find id into databse
if (v != null) // when data found
{
return RedirectToAction("AgencyDetails", "Agency", new { id = v.AgencyId }); // show data
}
else// when data not found
{
ViewBag.message = "Id Not Found"; // error message
return View(ag.Agencies.ToList());// return views page
}
}
catch (Exception ex)
{
ViewBag.Message = "Error! Please Try Again";
return View();
}
}

publicActionResult AgencyDetails(int id) // get details when parameter is passed


{
if (Session["usr"] == null) // if User Session is null then redirect to Login Page
{
return RedirectToAction("Adminlogin"); // Redirection to another page
}

Agency a = ag.Agencies.Find(id); // Find the data


return View(a);
}

publicActionResult AgencyEdit(int id) // Update details in database


{
if (Session["usr"] == null) // if User Session is null then redirect to Login Page
{
return RedirectToAction("Adminlogin"); // redirect to page

1
RMIS
RESOURCE MAINTENANCE AND
}
Agency a = ag.Agencies.Find(id); //Find Details in Database
return View(a);
}

[HttpPost]

publicActionResult AgencyEdit(Agency agn) // Code runs When edit button is clicked


{
try
{
ag.Entry(agn).State = EntityState.Modified; // updation
ag.SaveChanges(); // updation completed
return RedirectToAction("Agencymanage", "Agency"); // redirection
}
catch (Exception ex)
{
ViewBag.Message = "Error! Please Try Again";
return View();
}
}
publicActionResult AgencyDelete(int id) // Delete on the parameter passed
{
if (Session["usr"] == null) // if User Session is null then redirect to Login Page
{
return RedirectToAction("Adminlogin");// redirect to Another page
}
Agency a = ag.Agencies.Find(id); // Find Data in Database
return View(a);
}

[HttpPost]//Post Action
publicActionResult AgencyDelete(string id)//Code runs when Delete button is clicked
{
try
{
int sid = Convert.ToInt32(id); // convert integer data into String
Agency a = ag.Agencies.Find(sid);// Find Agency Id
ag.Agencies.Remove(a);// Delete from Database
ag.SaveChanges();// deletion completed
return RedirectToAction("Agencymanage", "Agency"); // Redirect to another page
}
catch (Exception ex)
{
ViewBag.Message = "Error! Please Try Again";
return View();
}
}

publicActionResult AgencySearch() // Search By Id Logic


{
if (Session["user"] == null) // if User Session is null then redirect to Login Page
{
return RedirectToAction("Stafflogin" ,"Staff"); // redirect to another page
}
int i = 1; // Take a variable
Session["check"] = i;// check session value
Session["Logo"] = i;

1
RMIS
RESOURCE MAINTENANCE AND
return View();
}

[HttpPost]
publicActionResult AgencySearch(string AgencyId) // when button is clicked
{
try
{
int id = Convert.ToInt32(AgencyId); // convert data into string
Agency st = ag.Agencies.Find(id); // Find data into Database
if (st != null)// if variable not null
{
ViewBag.AgencyId = st.AgencyId; // copy data into Viewbag
ViewBag.Name = st.Name; // copy data into Viewbag
ViewBag.Service = st.Service; // copy data into Viewbag
ViewBag.Charge = st.Charge;// copy data into Viewbag
ViewBag.Period = st.Period;// copy data into Viewbag
ViewBag.Mobile = st.Mobile;// copy data into Viewbag
ViewBag.Email = st.Email;// copy data into Viewbag
ViewBag.Web = st.Web;// copy data into Viewbag
ViewBag.Addr = st.Addr;// copy data into Viewbag
int i = 0; // variable
Session["check"] = i; // check Variable
Session["Logo"] = st.Logo;
return View();
}

else// when code not run


{
ViewBag.Message = "Record Not Found";// error message
int i = 1;// variable value
Session["check"] = i;// session value
return View();
}
}
catch (Exception ex)
{
ViewBag.Message = "Error! Please Try Again";
return View();
}
}
}
}

1
RMIS
RESOURCE MAINTENANCE AND

AUCTION CONTROLLER
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RMIS.Models;
using System.Data.Entity;

namespace RMIS.Controllers
{
publicclassAuctionController : Controller
{
RMISEntity acn = newRMISEntity();//Establish Database Connection

publicActionResult AuctionIndex() // Show all Data into Grid Vies


{
if (Session["usr"] == null) // if session is not avilable
{
return RedirectToAction("Adminlogin", "Admin"); // Redirect to another page
}
return View(acn.Auctions.ToList()); // Data Shows in Grid View
}

publicActionResult AuctionIndexStaff() // All Auction Details


{
if (Session["user"] == null) // if session is not avilable
{
return RedirectToAction("Stafflogin", "Staff"); // Redirection to Another page
}
return View(acn.Auctions.ToList()); // Data shows in Grid View
}

[HttpPost]//Post Action
publicActionResult AuctionIndex(string ActId) // All Auction Dtails
{
try// Exception Handller
{
int id = Convert.ToInt32(ActId);// Convert Data into String
var v = acn.Auctions.Find(id); // Find id into Database
if (v != null)// if variable is not null
{
return RedirectToAction("AuctionDetails", "Auction", new { id = v.ActId }); // data shows on
the behave of id
}
else
{

1
RMIS
RESOURCE MAINTENANCE AND
ViewBag.message = "Id Not Found"; // Error message
return View(acn.Auctions.ToList()); // return page
}
}
catch (Exception ex) //Exception Handller
{
ViewBag.message = "Error ! Please Try Again";//Exceptiobn message
return View(); // return page
}
}
publicActionResult AddAuction() // Auction registration
{
if (Session["user"] == null) // if session is not avilable
{
return RedirectToAction("Stafflogin", "Staff"); // redirect to login page
}
int id = acn.Auctions.Max(x => x.ActId); // find Maximum id into database
id++; // increment in Id
Session["ActId"] = id.ToString(); // Auto generated id with increment 1
return View();// return page
}

[HttpPost]//Post method
publicActionResult AddAuction(Auction ac)// logic runs when save button is clicked
{
try// excetion Handller
{
acn.Auctions.Add(ac);// save data into datbase
acn.SaveChanges(); // data saved
ViewBag.Message = "Records Saved Successfully";// confirmation message
return View();// return page
}

catch (Exception ex) // exception handller


{
ViewBag.message = "Error ! Please Try Again";// error message
return View();// return page
}
}

publicActionResult AuctionDetails(int id) // get details


{
if (Session["usr"] == null) // if session is not avilable
{
return RedirectToAction("Adminlogin", "Admin"); // Redirect to another page
}

try// Exception Handller


{
Auction st = acn.Auctions.Find(id);// find details on the behalf id
return View(st);// return page
}
catch (Exception ex)// Exception handller
{
ViewBag.message = "Error ! Please Try Again";// error Message
return View();// return page
}
}

1
RMIS
RESOURCE MAINTENANCE AND

publicActionResult AuctionEdit(int id) //Updation in grid View


{
if (Session["usr"] == null) // if session is not avilable
{
return RedirectToAction("Adminlogin", "Admin"); // Redirect to another page
}

Auction st = acn.Auctions.Find(id);// find id into Database


return View(st);//return page
}
[HttpPost]//Post Method
publicActionResult AuctionEdit(Auction s) // code when edit button is clicked
{
try// Exception Handlling code
{
acn.Entry(s).State = EntityState.Modified;// Details Updated
acn.SaveChanges();//update completion logic in Database
return RedirectToAction("AuctionIndex", "Auction");// Redirect to Another Page

}
catch (Exception ex)// Exception Handller
{
ViewBag.message = "Error ! Please Try Again";//Error message
return View(); // return page
}
}
publicActionResult AuctionDelete(int id) // Details Deleted into Database
{
if (Session["usr"] == null) // if session is not avilable
{
return RedirectToAction("Adminlogin", "Admin"); // Redirect to another page
}

Auction st = acn.Auctions.Find(id); // Find Details on the behalf of id


return View(st);// Return page
}

[HttpPost]//Post Method
publicActionResult AuctionDelete(string id) // code runs when delte button is clicked
{
try// Exception Handlling
{
int sid = Convert.ToInt32(id);// Convert integer into string
Auction st = acn.Auctions.Find(sid); // find details on the behalf of Id into Database

acn.Auctions.Remove(st); // Details removed from Database

acn.SaveChanges(); // Deletion completed


return RedirectToAction("AuctionIndex", "Auction");// redirect to Another page

}
catch (Exception ex)// Catch Exception when it occurs
{
ViewBag.message = "Error ! Please Try Again";// error message
return View();// return page
}
}

1
RMIS
RESOURCE MAINTENANCE AND

publicActionResult AuctionRevenue() // Search By Id


{
if (Session["user"] == null) // if session is not avilable
{
return RedirectToAction("Stafflogin", "Staff"); // redirect to antoher paage
}
int i = 1;// variable
Session["check"] = i; // check variable
return View();// return page
}

[HttpPost]//Post Method
publicActionResult AuctionRevenue(string ActId) // code runs when button is clicked
{
try// Exception Handlling
{
int id = Convert.ToInt32(ActId); // convert integer into string
var v= acn.Auctions.Find(id); // Find data on the behalf of Id
if(v!=null) // if variable is not null
{
ViewBag.ActId = v.ActId; // copy data into Viewbag
ViewBag.Actdat = v.Actdat; // copy data into Viewbag
ViewBag.Type = v.Type; // copy data into Viewbag
ViewBag.Rnm = v.Rnm; // copy data into Viewbag
ViewBag.Price = v.Price; // copy data into Viewbag
ViewBag.Loc = v.Loc; // copy data into Viewbag
ViewBag.Custnm = v.Custnm; // copy data into Viewbag
ViewBag.Age = v.Age;// copy data into Viewbag
ViewBag.Sex = v.Sex;// copy data into Viewbag
ViewBag.Mob = v.Mob;// copy data into Viewbag
ViewBag.Email = v.Email;// copy data into Viewbag
ViewBag.Mode = v.Mode;// copy data into Viewbag
int i = 0; // variable
Session["check"] = i; // check session value
return View(); // retun page

}
else
{
ViewBag.Message = "Id Not Found"; // error message
int i = 1; // varible
Session["check"] = i; // Not return lables
return View(); //return page
}
}
catch (Exception ex)// when any exception occurs
{
ViewBag.message = "Error ! Please Try Again"; // error message
return View(); // return page
}
}
}
}

2
RMIS
RESOURCE MAINTENANCE AND

AUCTION CONTROLLER
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RMIS.Models;
using System.Data.Entity;

namespace RMIS.Controllers
{
publicclassConferenceRoomController : Controller
{

RMISEntity Conf = newRMISEntity(); // Database Connectivity


publicActionResult RoomIndex()
{
return View(Conf.ConferenceRooms.ToList());
}

publicActionResult RoomIndexstaff() // Data


{
if (Session["user"] == null)
{
return RedirectToAction("Stafflogin", "Staff");
}

return View(Conf.ConferenceRooms.ToList());
}

publicActionResult AddRooms()
{
if (Session["user"] == null) // Check the user session
{
return RedirectToAction("Stafflogin", "Staff"); // Redirect to Another Page
}

int id = Conf.ConferenceRooms.Max(x => x.RoomId); // Find Maximum Id into database id+


+; // increment of 1
Session["RoomId"] = id.ToString(); // copy into session with increment
return View(); // return page
}

[HttpPost]//Post Method
publicActionResult AddRooms(ConferenceRoom cf, HttpPostedFileBase Logo)//Upload File
{
try
{

2
RMIS
RESOURCE MAINTENANCE AND
if (Logo != null)//When it has value
{
Logo.SaveAs(Server.MapPath("~/Uploaded/") + Logo.FileName);//Server Path
cf.Logo = "~/Uploaded/" + Logo.FileName;//copy to variable
}
var v = Conf.ConferenceRooms.Add(cf);
if (v != null)
{
Conf.SaveChanges(); // logic for save data
ViewBag.Message = "Record Saved Successfully"; // Message for confirmation

}
return View(); // return page
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}
}

publicActionResult RoomManage()//Get Method


{
if (Session["usr"] == null) //check users session
{
return RedirectToAction("Adminlogin", "Admin"); // Redirect to Another page
}

return View(Conf.ConferenceRooms.ToList()); // Details Shown in GridView


}
[HttpPost]//Post Method
publicActionResult RoomManage(string RoomId) // Code Runs When event catch
{
try// Exception Handlling
{
int id = Convert.ToInt32(RoomId); // convert integer into string
var v = Conf.ConferenceRooms.Find(id); // Find data on the behalf of Id
if (v != null) // if data found
{
return RedirectToAction("RoomDetails", "ConferenceRoom", new { id = v.RoomId }); //
Redirect to Another page
}
else// if code not rum
{
ViewBag.message = "Id Not Found"; // error message
return View(Conf.ConferenceRooms.ToList());// return same page
}
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}
}
publicActionResult RoomDetails(int id) // find any Room Dtails
{
try
{

2
RMIS
RESOURCE MAINTENANCE AND
if (Session["usr"] == null) // check user seesion
{
return RedirectToAction("Adminlogin", "Admin"); // if not available forward to login page
}
ConferenceRoom c = Conf.ConferenceRooms.Find(id); // Data Shows in Grid View
return View(c); // Return page
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}

publicActionResult RoomEdit(int id) // Update logic


{
if (Session["usr"] == null) // check user session
{
return RedirectToAction("Adminlogin", "Admin"); // if session not available redirect to login
page
}

ConferenceRoom R = Conf.ConferenceRooms.Find(id); // shows all the details in grid view


return View(R); // return page
}
[HttpPost]
publicActionResult RoomEdit(ConferenceRoom R) //logic runs when button is clicked
{
try// Exception Handling
{
Conf.Entry(R).State = EntityState.Modified;// UPdate data
Conf.SaveChanges();// updation saved in database
return RedirectToAction("Agencymanage", "Agency");//redirect to Another page

}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}
}

publicActionResult RoomDelete(int id) // Delete Records


{
if (Session["usr"] == null) // Check user session
{
return RedirectToAction("Adminlogin", "Admin"); // if session not, Redirect to Login page
}
ConferenceRoom R = Conf.ConferenceRooms.Find(id);// find Data on the Behalf of Id
return View(R);// Return page
}

[HttpPost]//Post Method
publicActionResult RoomDelete( string id)//Delete Records
{
try// Exception Handlling
{

2
RMIS
RESOURCE MAINTENANCE AND
int sid = Convert.ToInt32(id);// convert integer into String
ConferenceRoom R = Conf.ConferenceRooms.Find(sid);// Find data on the behalf of Id
Conf.ConferenceRooms.Remove(R);//Delete from Database
Conf.SaveChanges(); // changes complete
return RedirectToAction("RoomManage", "ConferenceRoom");// Redirect to Another page
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Error! Please Try Again"; //Exception error
return View();// return page
}

publicActionResult RoomSearch()// Get Method


{
if (Session["user"] == null)// check user session
{
return RedirectToAction("Stafflogin", "Staff");// If session not ,Redirect to Another page
}
int i = 1; //logic for hide labels when page is load
Session["check"]= i;
Session["Logo"] = i;
return View();
}

[HttpPost]//Post Method
publicActionResult RoomSearch(string RoomId)// search Room By id
{
try
{
int id = Convert.ToInt32(RoomId); // conversion of integer into string
ConferenceRoom st = Conf.ConferenceRooms.Find(id); // Find data on the behalf of Id
if (st != null) // if variable not null
{
ViewBag.RoomId = st.RoomId; // copy data into Viewbag
ViewBag.Name = st.Name; // copy data into Viewbag
ViewBag.Price = st.Price; // copy data into Viewbag
ViewBag.Year = st.Year;// copy data into Viewbag
ViewBag.Agency = st.Agency;// copy data into Viewbag
ViewBag.Size = st.Size; // copy data into Viewbag
ViewBag.Capacity = st.Capacity;// copy data into Viewbag
ViewBag.Location = st.Location;// copy data into Viewbag
ViewBag.RentFor = st.RentFor;// copy data into Viewbag
ViewBag.Builder = st.Builder;// copy data into Viewbag
int i = 0;// variable
Session["check"] = i; //show labels
Session["Logo"] = st.Logo;
return View(); //return page
}
else// if code not run
{
ViewBag.Message = "Records Not Found";// error
message int i = 1;// variable
Session["check"] = i; // check session
return View();// return page
}

2
RMIS
RESOURCE MAINTENANCE AND

EQUIPMENT CONTROLLER

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RMIS.Models;
using System.Data.Entity;

namespace RMIS.Controllers
{
publicclassEquipmentController : Controller
{

RMISEntity Eqp = newRMISEntity();//Database Connection


publicActionResult AddEquipment() // Add Equipment Records
{
if (Session["user"] == null) // check user seesion
{
return RedirectToAction("Stafflogin", "Staff"); // if Session not, Redirect to Login page
}

int id = Eqp.Equipments.Max(x => x.EqpId); // Find Maximum Id in Database id+


+;// getting increments
Session["EqpId"] = id.ToString(); // copy id with increments and show on page load
return View();// return page
}

[HttpPost]//Post Method
publicActionResult AddEquipment(Equipment eq, HttpPostedFileBase Logo)//Upload File
{
try//Exception Handling
{
if (Logo != null)//When it has Value
{
Logo.SaveAs(Server.MapPath("~/Uploaded/") + Logo.FileName);//Server Path
eq.Logo = "~/Uploaded/" + Logo.FileName;//copy to Variable
}

var v = Eqp.Equipments.Add(eq);
if (v != null)
{
Eqp.SaveChanges();// changes in database
ViewBag.Message = "Record Saved Successfully"; // confirmation Message
}
return View();//return page
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}

2
RMIS
RESOURCE MAINTENANCE AND
publicActionResult EquipmentManage()//Manage Equipment logic
{
if (Session["usr"] == null)// check user Session
{
return RedirectToAction("Adminlogin", "Admin");//Redirect to Another page
}

return View(Eqp.Equipments.ToList());// Show all data in Grid View


}
[HttpPost]//post Method
publicActionResult EquipmentManage(string EqpId)//logic runs when event occurs
{
try
{
int id = Convert.ToInt32(EqpId);// Conversion of integer into String
var v = Eqp.Equipments.Find(id);// Search Data on the behalf of Id
if (v != null)// if variable not null
{
return RedirectToAction("EquipmentDetails", "Equipment", new { id = v.EqpId });//Redirect
to Another page
}
else// if id not found
{
ViewBag.message = "Id NOt Found"; // Error message
return View(Eqp.Equipments.ToList()); // Return View
}
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}

publicActionResult EquipmentDetails(int id) // Show Logic on the behalf of Id


{
try
{
if (Session["usr"] == null)// check user Session
{
return RedirectToAction("Adminlogin", "Admin"); //Redirect to Another Page
}
Equipment E = Eqp.Equipments.Find(id);//find Data on the behalf of id
return View(E);// return page
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}

publicActionResult EquipmentEdit(int id)// Update logic in Grid view


{
if (Session["usr"] == null)//check users Session
{

2
RMIS
RESOURCE MAINTENANCE AND
return RedirectToAction("Adminlogin", "Admin");// If not, Redirect to Login page
}
Equipment D = Eqp.Equipments.Find(id);// show data in Grid view
return View(D);//return page
}
[HttpPost]//Post Method
publicActionResult EquipmentEdit(Equipment D) // Login runs when event occurs
{
try
{
Eqp.Entry(D).State = EntityState.Modified; // update in Details
Eqp.SaveChanges(); // changes completed in Database
return RedirectToAction("EquipmentManage", "Equipment");// Redirect to another page
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}
}

publicActionResult EquipmentDelete(int id)// Delete Logic From Database


{
if (Session["usr"] == null)// check user Session
{
return RedirectToAction("Adminlogin", "Admin");//if not ,Redirect to login page
}
Equipment st = Eqp.Equipments.Find(id);//Find details on the behalf parameter of id
return View(st);// return page
}

[HttpPost]
publicActionResult EquipmentDelete(string id)//getting Errors
{
try//Exception Handller
{
int sid = Convert.ToInt32(id);// coversion of integer into string
Equipment st = Eqp.Equipments.Find(sid);//find details on the behalf of Id
Eqp.Equipments.Remove(st);//Records deleted from Database
Eqp.SaveChanges();//Changes done
return RedirectToAction("EquipmentMannage", "Equipment");//redirect to another page
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}
}

publicActionResult Depreciation()//Search By Id
{
if (Session["user"] == null)//check user session
{
return RedirectToAction("Stafflogin", "Staff");//if not, redirect to login page
}
int i = 1;// variable
Session["check"] = i;//logic to hide
Session["Logo"] = i;

2
RMIS
RESOURCE MAINTENANCE AND
return View();//return page
}

[HttpPost]//Post Method
publicActionResult Depreciation(string EqpId) // search By id
{
try// Exception Handling
{
int id = Convert.ToInt32(EqpId);// conversion of integer into String
Equipment E = Eqp.Equipments.Find(id);//Find details on the behalf of Id
if (E != null)// if variable has data
{
ViewBag.EqpId = E.EqpId; // copy data in Viewbag
ViewBag.Name = E.Name; // copy data in Viewbag
ViewBag.Type = E.Type;// copy data in Viewbag
ViewBag.Price = E.Price;// copy data in Viewbag
ViewBag.Year = E.Year;// copy data in Viewbag
ViewBag.Agency = E.Agency;// copy data in Viewbag
ViewBag.AcnYr = E.Acnyr;// copy data in Viewbag
ViewBag.Dep = E.Dep;// copy data in Viewbag
ViewBag.Cnp = E.Cnp;// copy data in Viewbag
ViewBag.Cnm = E.Cnm;// copy data in Viewbag
ViewBag.Warnty = E.Warnty;// copy data in Viewbag
int i = 0;
Session["check"] = i;//logic for show lables
Session["Logo"] = E.Logo;// copy data in Viewbag
return View();//return page
}
else
{
int i = 0;
Session["check"] = i;//logic for hide lables
ViewBag.Message = "Records Not Found";//error messag
return View();
}
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}
}
}
}

PAYMENT CONTROLLER
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

2
RMIS
RESOURCE MAINTENANCE AND
using System.Web.Mvc;
using RMIS.Models;
using System.Data.Entity;

namespace RMIS.Controllers
{
publicclassPaymentController : Controller
{
RMISEntity Pmt = newRMISEntity(); //Database Connectivity

publicActionResult PayIndex()//Get Method


{

if (Session["user"] == null) // if User Session is null then redirect to Login Page


{
return RedirectToAction("Stafflogin", "Staff");
}
int id = Pmt.Payments.Max(x => x.PayId);//Find Maximum Id from
Database id++; // increment of 1 in Id
Session["PayId"] = id.ToString(); // Auto Passed Id with incremet of 1 when page is
load return View();
}

[HttpPost]//Post Metbhod
publicActionResult PayIndex(BankCard b)//Object
{
try//Exception Handling
{
BankService bs = newBankService();//WebService
bool res = bs.checkcard(b.CardNo, b.Bank, b.CardType, b.Cvv, b.Pin, b.CardHolder, b.ValidUpto,
b.Cardlimit); if (res == true)//When it is true
{
Payment P = newPayment();//Object of Payment
P.PayId = Convert.ToInt32(Session["PayId"].ToString());//System Date
P.PayMode = b.CardType;//Copy Value
P.Amount = b.Cardlimit;//Copy Value
P.Bank = b.Bank;//Copy Value
P.CardHolder = b.CardHolder;//Copy Value
P.StaffId = Convert.ToInt32(Session["Id"].ToString());//Copy Value
Pmt.Payments.Add(P);//save into Database Table
Pmt.SaveChanges();
ViewBag.Message = "Payment done
Successfully"; return View();
}
else

{
ViewBag.Message = "Invalid Card Details";
return View();
}
}
catch (Exception ex)//catch Exception
{
ViewBag.Message = "Error! Please Try
Again"; return View();
}

}
}
}

ROOMBOOKING CONTROLLER
using System;
using System.Collections.Generic;

2
RMIS
RESOURCE MAINTENANCE AND
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data.Entity;
using RMIS.Models;

namespace RMIS.Controllers
{
publicclassRoomBookingController : Controller
{
RMISEntity Bkrm = newRMISEntity();//Database Connectivity

publicActionResult RoomIndex() //show all details in GridView


{
if (Session["usr"] == null)//check user session
{
return RedirectToAction("Adminlogin", "Admin");//Redirect to Login page
}
return View(Bkrm.Rooms.ToList());//show all dat in Grid View
}

[HttpPost]//Post Method
publicActionResult RoomIndex(string BkId)// search data in GridView
{
try//Exception Handlling
{
int id = Convert.ToInt32(BkId);//Convert integer
var v = Bkrm.Rooms.Find(id);//search records by Id
if (v != null)//if variable not null
{
return RedirectToAction("RoomDetails", "RoomBooking", new { id = v.BkId });//Redirect to Samepage
}
else//if recored not found
{
ViewBag.message = "Id NOt Found";//Error Message
return View(Bkrm.Admins.ToList());//Data shows in Gridview
}
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}
}

publicActionResult RoomIndexStaff() // Shows details in Grid view


{
if (Session["user"] == null)//Check Sesssion
{
return RedirectToAction("Stafflogin", "Staff");//Redirect to login page
}
return View(Bkrm.Rooms.ToList());//Show details in GridView
}

publicActionResult AddRoom()// Add cab details


{

if (Session["user"] == null)// check user session


{
return RedirectToAction("Stafflogin", "Staff");// Redirect to another page
}

int id = Bkrm.Rooms.Max(x => x.BkId);//auto generate id logic id+


+;//find max id in database and increment 1

2
RMIS
RESOURCE MAINTENANCE AND
Session["BkId"] = id.ToString();//copy id with increcment into session
return View();
}

[HttpPost]//Post Method

publicActionResult AddRoom(RoomBooking V)
{
try
{
var v = Bkrm.Rooms.Add(V);//Add records
if (v != null)
{
Bkrm.SaveChanges();//save
ViewBag.Message = "Record Saved Successfully";//confirmation message
return View();

else
{
ViewBag.Message = "OOps! Something getting Wrong";
return View();

}
catch (Exception ex)
{
ViewBag.Message = "Error! Please Try Again";
return View();
}
}

publicActionResult RoomDetails(int id)//show individual records


{
try//Exception Handlling
{
if (Session["usr"] == null)//check user session
{
return RedirectToAction("Adminlogin", "Admin");// if not, redirect to login page
}

RoomBooking st = Bkrm.Rooms.Find(id);// find details in database


return View(st);//show records
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}

publicActionResult RoomEdit(int id) //Update in Records


{
if (Session["usr"] == null)// check Session
{
return RedirectToAction("Adminlogin", "Admin");//if Not, Redirect to Login
}

RoomBooking st = Bkrm.Rooms.Find(id);// Find details on the behalf of id

2
RMIS
RESOURCE MAINTENANCE AND
return View(st);// show records
}
[HttpPost]//post Method
publicActionResult RoomEdit(RoomBooking s)//update data
{
try// Exception Handling
{
Bkrm.Entry(s).State = EntityState.Modified;//Update
records Bkrm.SaveChanges();// Save records
return RedirectToAction("RoomIndex", "RoomBooking");// Redirect to Another page

}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}

publicActionResult RoomDelete(int id) // Delete Records


{
if (Session["usr"] == null)// check session
{
return RedirectToAction("Adminlogin", "Admin");//Redirect to login page if not
}

RoomBooking st = Bkrm.Rooms.Find(id);// find records in Database


return View(st);//show details
}

[HttpPost]//Post Method
publicActionResult RoomDelete(string id)//Delete the Records
{
try// Exeption Handling
{
int sid = Convert.ToInt32(id);// conversion of integer into String
RoomBooking st = Bkrm.Rooms.Find(sid);// Find data on the behalf of id
Bkrm.Rooms.Remove(st);// delete records onthe behalf of
Id Bkrm.SaveChanges();// Saved Records in Database
return RedirectToAction("RoomIndex", "RoomBooking");// Redirect to Another page

}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}

publicActionResult TrackRevenue() // Search By Id


{
if (Session["user"] == null)//check user session
{
return RedirectToAction("Stafflogin", "Staff");// if not Redirect to login page
}
int i = 1;//variable
Session["check"] = i;// logic for showing labels
return View();//return page
}
[HttpPost]//Post Method
publicActionResult TrackRevenue(string BkId)//Search By Id
{

2
RMIS
RESOURCE MAINTENANCE AND
try//Exception Handlling
{
int id = Convert.ToInt32(BkId);//converstion of integer into String
RoomBooking st = Bkrm.Rooms.Find(id);// find data on the behalf of id
if (st != null)//if data available
{
ViewBag.BkId = st.BkId;// copy data into viewbag
ViewBag.Rnm = st.Rnm;// copy data into viewbag
ViewBag.Type = st.Type;// copy data into viewbag
ViewBag.Fare = st.Fare;// copy data into viewbag
ViewBag.Chkndat = st.Chkndat;// copy data into viewbag
ViewBag.Chotdat = st.Chotdat;// copy data into viewbag
ViewBag.Custnm = st.Custnm;// copy data into viewbag
ViewBag.Mob = st.Mob;// copy data into viewbag
ViewBag.Email = st.Email;// copy data into viewbag
ViewBag.Addr = st.Addr;// copy data into viewbag
ViewBag.Payment = st.Payment;// copy data into viewbag
ViewBag.Due = st.Due;// copy data into viewbag
ViewBag.Mode = st.Mode;// copy data into viewbag
ViewBag.RoomId = st.RoomId;// copy data into viewbag
int i = 0;// variable
Session["check"] = i;//logic for showing lables
return View();
}

else// when records not found


{
ViewBag.Message = "Records Not Found";// error
message int i = 1;// variable
Session["check"] = i;//show labels
return View();

}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// return page
}
}
}
}

2
RMIS
RESOURCE MAINTENANCE AND

SERVICE CONTROLLER

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RMIS.Models;
using System.Data.Entity;

namespace RMIS.Controllers
{
publicclassServiceController : Controller
{

RMISEntity Serv = newRMISEntity(); //Establish Database Connectivity


publicActionResult ServiceIndex() // show all records
{
if (Session["usr"] == null)// check session
{
return RedirectToAction("Adminlogin", "Admin");// Redirect to page
}
return View(Serv.Services.ToList());// show all data in Grid vies
}
[HttpPost]//Post Method
publicActionResult ServiceIndex(string ServId)//Search records
{
try// Exception Handling
{
int id = Convert.ToInt32(ServId);// convert Integer int String
var v = Serv.Services.Find(id);//find data on the behalf of id
if (v != null)// if data available
{
return RedirectToAction("ServiceDetails", "Service", new { id = v.ServId });//show data
}
else// if not
{
ViewBag.message = "Id NOt Found";// show error
return View(Serv.Services.ToList());// return same page
}
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

2
RMIS
RESOURCE MAINTENANCE AND

publicActionResult AddService()//Add Service Details


{
if (Session["user"] == null)// check Session
{
return RedirectToAction("Stafflogin", "Staff");//Redirect to Page
}

int id = Serv.Services.Max(x=>x.ServId);// Auto Genterate Id


id++;// Find Maximum id in DB and increment with 1
Session["ServId"] = id.ToString();//copy into session
return View();// return page
}
[HttpPost]//Post Method
publicActionResult AddService(Service s)//add service deatial
{
try {//Exception handlling
Serv.Services.Add(s);//Add service into service object
Serv.SaveChanges();//saved into datbase
ViewBag.Message = "Record Saved Successfully";//confirmation message
return View();//retunpage
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult ServiceDetails(int id) //Find Details


{
try//Exception handlling
{
if (Session["usr"] == null)//check Session
{
return RedirectToAction("Adminlogin", "Admin");//redirect to page
}
Service st = Serv.Services.Find(id);//find data onthe behalf of id
return View(st);// return page
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult ServiceEdit(int id)//Update service Details


{
if (Session["usr"] == null)//check user session
{
return RedirectToAction("Adminlogin", "Admin");//Redirect to page
}

2
RMIS
RESOURCE MAINTENANCE AND
Service st = Serv.Services.Find(id);//Find details in Database
return View(st);//return page
}
[HttpPost]//Post Method
publicActionResult ServiceEdit(Service s)//update records
{
try//Exception Handller
{
Serv.Entry(s).State = EntityState.Modified;//update records logic
Serv.SaveChanges();//save into database
return RedirectToAction("ServiceIndex", "Service");//Redirect to Antoher page

}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult ServiceDelete(int id)//Delete the Records


{
if (Session["usr"] == null)// check user Session
{
return RedirectToAction("Adminlogin", "Admin");//Redirect to Another page
}

Service st = Serv.Services.Find(id);//Find records


return View(st);//return page
}

[HttpPost]//Post Method
publicActionResult ServiceDelete(string id)//Delete the Records
{
try//Exception handlling
{
int sid = Convert.ToInt32(id);//conversion of integer into string
Service st = Serv.Services.Find(sid);//find Details
Serv.Services.Remove(st);//Remove data
Serv.SaveChanges();//save records
return RedirectToAction("ServiceIndex", "Service");//Redirect to page

catch (Exception ex)// Handle Excetpion


{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

}
publicActionResult ServiceById()//serch by Id
{
if (Session["user"] == null)//check Session
{
return RedirectToAction("Stafflogin", "Admin");//redirect to page

2
RMIS
RESOURCE MAINTENANCE AND
}
int i = 1;//variable
Session["check"] = i;//hide lables

return View();
}

[HttpPost]//Post Method
publicActionResult ServiceById(string ServId)//Search Records By Id
{
try// Exception Handlling
{
int id = Convert.ToInt32(ServId);//conversion of integer into string
Service st = Serv.Services.Find(id);//find details
if (st != null)//if data found
{
ViewBag.ServId = st.ServId;//copy to viewbag
ViewBag.Name = st.Name;//copy to viewbag
ViewBag.Type = st.Type;//copy to viewbag
ViewBag.Rnm = st.Rnm;//copy to viewbag
ViewBag.Agency = st.Agency;//copy to viewbag
ViewBag.Engnm = st.Engnm;//copy to viewbag
ViewBag.Visitdate = st.Visitdate;//copy to viewbag
ViewBag.Returndate = st.Returndate;//copy to viewbag
ViewBag.status = st.Status;//copy to viewbag
ViewBag.Cost = st.Cost;//copy to viewbag
ViewBag.Pymnt = st.Pymnt;//copy to viewbag
ViewBag.EqpId = st.EqpId;//copy to viewbag
int i = 0;//variable
Session["check"] = i;//show lables
return View();
}
else
{
ViewBag.Message = "Records Not Found";//error message
int i = 1;//variable
Session["check"] = i;//hide lables
return View();

}
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}
}
}

2
RMIS
RESOURCE MAINTENANCE AND

STAFF CONTROLLER
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RMIS.Models;
using System.Net.Mail;

namespace RMIS.Controllers
{
publicclassStaffController : Controller
{
RMISEntity stf = newRMISEntity();//Database Connectivity

publicActionResult Index()//Index Page


{
return View();
}

publicActionResult StaffIndex()//Admin Manage Page


{
return View(stf.Staffs.ToList());
}

publicActionResult Stafflogin() //login logic


{
return View();
}
[HttpPost]//Post method
publicActionResult Stafflogin(Staff sf)//post method
{

RMISEntity stf = newRMISEntity();//Model object


try//Exception handlling
{
var v = stf.Staffs.Where(a => a.Usernm.Equals(sf.Usernm) &&
(a.Paswd.Equals(sf.Paswd))).FirstOrDefault();//Find details on the behalf of id and password if(v!
=null)//if data not found
{
Session["user"] = v.Usernm;// copy data into session to further use
Session["Id"] = v.StaffId;// copy data into session to further use
Session["Paswd"] = v.Paswd;// copy data into session to further use
Session["Name"] = v.Name;// copy data into session to further use
Session["Dob"] = v.Dob;// copy data into session to further use
Session["Sex"] = v.Sex;// copy data into session to further use

2
RMIS
RESOURCE MAINTENANCE AND
Session["Qualification"] = v.Qualification;// copy data into session to further
use
Session["Profile"] = v.Profile;// copy data into session to further use
Session["Salary"] = v.Salary;// copy data into session to further use
Session["Mob"] = v.Mob;// copy data into session to further use
Session["Email"] = v.Email;// copy data into session to further use
Session["Doj"] = v.Doj;// copy data into session to further use
Session["Addr"] = v.Addr;// copy data into session to further use
Session["Photo"] = v.Photo;// copy data into session to further use
return RedirectToAction("WelcomeStaff");//return page
}
return View();
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult WelcomeStaff() //Menu page


{
if(Session["user"]!=null)// check session
{
return View();
}
else
{
return RedirectToAction("Stafflogin");// Redirect to login
}
}

publicActionResult ViewProfile()//profile page


{
return View();
}

publicActionResult AboutUs()//about us page


{
return View();
}

publicActionResult Feedback()//Mail Page


{
return View();
}

[HttpPost]//Post Method
publicActionResult Feedback( Staff s,string Message,String Subject)//Send Mail to Admin
{
try//Exception Handlling
{
var v = stf.Staffs.Where(a => a.Email.Equals(s.Email)).FirstOrDefault();//Find Email Id on
Database
if (v != null)//when found

2
RMIS
RESOURCE MAINTENANCE AND
{
string mess = Message;//vaiable
string sub = Subject;//vaiable
MailMessage msg = newMailMessage();//object of mail
msg.To.Add(v.Email);//Receiver Email id
msg.From = newMailAddress("[email protected]");//Sender Email Id
msg.Subject = sub;// Mail Subject
msg.Body = mess;//mail Body
SmtpClient sm = newSmtpClient("smtp.gmail.com");//Mail provideer
sm.Port = 587;//port number
sm.Credentials = new System.Net.NetworkCredential("[email protected]",
"Rahul@123");//Sender Credentials
sm.EnableSsl = true;//if connection estatblished
sm.Send(msg);//send message
ViewBag.Message = "Your Message Send Successfully";//confirmation message

}
else
{
ViewBag.Message = "Please Check Your Email";//errors message
}

return View();

}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult forgetPassword() // recvie password on Email id


{
return View();
}
[HttpPost]//Post Method
publicActionResult forgetPassword(Staff s)
{
try//Exception Handller
{
var v = stf.Staffs.Where(a => a.Email.Equals(s.Email)).FirstOrDefault();//Find Email Id
if (v != null)//when it found
{
string pas = v.Paswd;//copy password
MailMessage msg = newMailMessage();//mail message object
msg.To.Add(v.Email);//Receiver Email Id
msg.From = newMailAddress("[email protected]");//sender Emailid
msg.Subject = "Password Recorvery";//Subject
msg.Body = "Ur Password is " + pas;//body
SmtpClient sm = newSmtpClient("smtp.gmail.com");//service provider
sm.Port = 587;//port number
sm.Credentials = new System.Net.NetworkCredential("[email protected]",
"Rahul@123");//sender credentials
sm.EnableSsl = true;//when connection established
sm.Send(msg);//send messge
ViewBag.Message = "Your password send";//confirmationmessage

2
RMIS
RESOURCE MAINTENANCE AND

}
else//when email not found
{
ViewBag.Message = "Please Check Your Email";//error message
}
return View();
}
catch (Exception ex)// Handle Excetpion
{

ViewBag.Message = "Error! Try Again";//Show error


return View();//return page
}

publicActionResult ChangePassword()//change password logic


{
return View();
}

[HttpPost]//Post Method
publicActionResult ChangePassword(string Paswd, String newPaswd)//pass two
parameters
{
try//Exception handller
{
int id = Convert.ToInt32(Session["Id"]);//convert integer into string
var v = stf.Staffs.Find(id);//find data
if(v!=null)//when found
{
v.Paswd = newPaswd;//copy new password
stf.SaveChanges();//changes done
ViewBag.Message = "Password Updated Successfully";//confirmation messages
}

else//when code not run


{
ViewBag.Message = "Password Mismatch";//error message
}
return View();

}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult Personal()//personal view


{
if (Session["user"] == null)//check session
{
return RedirectToAction("Stafflogin", "Staff");//redirect to login page
}

2
RMIS
RESOURCE MAINTENANCE AND
return View();
}

publicActionResult Track()//Track Revenue


{

if (Session["user"] == null)//check session


{
return RedirectToAction("Stafflogin", "Staff");//redirect to session
}

return View();
}

publicActionResult SearchById()//search by Id
{

if (Session["user"] == null)//check session


{
return RedirectToAction("Stafflogin", "Staff");//redirect
}

return View();
}

publicActionResult Booking()//Booking View


{

if (Session["user"] == null)//check session


{
return RedirectToAction("Stafflogin", "Staff");//redirect to anotherpage
}

return View();
}

publicActionResult BookingById()//booking by id viw


{

if (Session["user"] == null)//check session


{
return RedirectToAction("Stafflogin", "Staff");//redirect to page
}
return View();
}

}
}

2
RMIS
RESOURCE MAINTENANCE AND

VEHICLEBOOKING CONTROLLER
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data.Entity;
using RMIS.Models;

namespace RMIS.Controllers
{
publicclassVehicleBookingController : Controller
{

RMISEntity Cab = newRMISEntity(); //Establish Database connectivity


publicActionResult CabIndex()//show all records
{
if (Session["usr"] == null)//check session
{
return RedirectToAction("Adminlogin", "Admin");//redirect to login page
}
return View(Cab.Cabs.ToList());//show all data into grid views
}

[HttpPost]//Post Method
publicActionResult CabIndex(string BkId)

{
try//Exception Handlling
{
int id = Convert.ToInt32(BkId);//convert integer into string
var v = Cab.Cabs.Find(id);//Find details
if (v != null)//when it found
{
return RedirectToAction("CabDetails", "VehicleBooking", new { id = v.BkId });//rediret to
page
}
else//when not found
{
ViewBag.message = "Id NOt Found";//error message
return View(Cab.Cabs.ToList());//show details in Grid View
}
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error

2
RMIS
RESOURCE MAINTENANCE AND
return View();//return page
}

}
publicActionResult CabIndexStaff()//show details for staff
{

if (Session["user"] == null)//check session


{
return RedirectToAction("Stafflogin", "Staff");//redirect to page
}

return View(Cab.Cabs.ToList());//Show details


}

publicActionResult AddCab()// Add cab details


{

if (Session["user"] == null)// check user session


{
return RedirectToAction("Stafflogin", "Staff");// Redirect to another page
}

int id = Cab.Cabs.Max(x => x.BkId);//auto generate id logic id+


+;//find max id in database and increment 1
Session["BkId"] = id.ToString();//copy id with increcment into session
return View();
}

[HttpPost]//Post Method

publicActionResult AddCab(VehicleBooking V)
{
try//Exception
{
Cab.Cabs.Add(V);//Add records
Cab.SaveChanges();//save
ViewBag.Message = "Record Saved Successfully";//confirmation message
return View();
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult CabDetails(int id)//find records


{
try
{
if (Session["usr"] == null)//check session
{
return RedirectToAction("Adminlogin", "Admin");//Redirect to login page
}

2
RMIS
RESOURCE MAINTENANCE AND
VehicleBooking st = Cab.Cabs.Find(id);//find records
return View(st);//shows records
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult CabEdit(int id)//Update the records


{
if (Session["usr"] == null)//check user session
{
return RedirectToAction("Adminlogin", "Admin");//Redirect to Another page
}

VehicleBooking st = Cab.Cabs.Find(id);//Find records


return View(st);
}
[HttpPost]//Post Method
publicActionResult CabEdit(VehicleBooking s)
{
try//Exception Handlling
{
Cab.Entry(s).State = EntityState.Modified;//Data modification
Cab.SaveChanges();//save modified records
return RedirectToAction("CabIndex", "VehicleBooking");//redirect to anther page

}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

}
publicActionResult CabDelete(int id)//delete the records
{
if (Session["usr"] == null)//check user session
{
return RedirectToAction("Adminlogin", "Admin");//redirect to login page
}

VehicleBooking st = Cab.Cabs.Find(id);//find cab details


return View(st);
}

[HttpPost]//Post Method
publicActionResult CabDelete(string id)//post action
{
try//Exception Handlling
{
int sid = Convert.ToInt32(id);//convert integer into string
VehicleBooking st = Cab.Cabs.Find(sid);//find records
Cab.Cabs.Remove(st);//remove records
Cab.SaveChanges();//changes complete

2
RMIS
RESOURCE MAINTENANCE AND
return RedirectToAction("CabIndex", "VehicleBooking");//redirect to Anothe page

}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult TrackRevenue()//serach by id
{
if (Session["user"] == null)//check user session
{
return RedirectToAction("Stafflogin", "Staff");//Redirect to Another page
}

int i = 1;// variable


Session["check"] = i;//logic for hide labelsf
return View();
}
[HttpPost]//Post Method
publicActionResult TrackRevenue(string BkId)
{
try//Exception HANDLING
{
int id = Convert.ToInt32(BkId);//convert integer into string
VehicleBooking st = Cab.Cabs.Find(id);//find recors
if (st != null)//when it found
{
ViewBag.BkId = st.BkId;//copy data into viewbage to show
ViewBag.Rnm = st.Rnm;//copy data into viewbage to show
ViewBag.Date = st.Date;//copy data into viewbage to show
ViewBag.Fare = st.Fare;//copy data into viewbage to show
ViewBag.Km = st.Km;//copy data into viewbage to show
ViewBag.Custnm = st.Custnm;//copy data into viewbage to show
ViewBag.Mob = st.Mob;//copy data into viewbage to show
ViewBag.Email = st.Email;//copy data into viewbage to show
ViewBag.Addr = st.Addr;//copy data into viewbage to show
ViewBag.Payment = st.Payment;//copy data into viewbage to show
ViewBag.Due = st.Due;//copy data into viewbage to show
ViewBag.Mode = st.Mode;//copy data into viewbage to show
ViewBag.VehicleId = st.VehicleId;//copy data into viewbage to show
int i = 0;//variable
Session["check"] = i;//show lables
return View();
}
else//when not found
{
ViewBag.Message = "Records Not Found";//eror message
int i = 1;//vaiablee
Session["check"] = i;//hide labels
return View();
}
}
catch (Exception ex)// Handle Excetpion
{

2
RMIS
RESOURCE MAINTENANCE AND
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

}
}

VEHICLES CONTROLLER
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RMIS.Models;
using System.Data.Entity;

namespace RMIS.Controllers
{
publicclassVehiclesController : Controller
{

RMISEntity Veh = newRMISEntity();//Database Connectivity


publicActionResult VehicleIndex()//show all data
{

return View(Veh.Vehicle.ToList());
}

publicActionResult AddVehicle()//Add Records


{
if (Session["user"] == null)//check session
{
return RedirectToAction("Stafflogin", "Staff");//Redirect to Another page
}
int id = Veh.Vehicle.Max(x => x.VehicleId);//logic for Autogenerate Id id+
+;//Find maximum Id and increment of 1
Session["VehicleId"] = id.ToString();//copy id into session with increment
return View();
}

[HttpPost]//Post Method
publicActionResult AddVehicle(Vehicles vh, HttpPostedFileBase Logo)//Upload File

{
try//Exception Handling
{
if (Logo != null)//When it has value
{
Logo.SaveAs(Server.MapPath("~/Uploaded/") + Logo.FileName);//Server Path
vh.Logo = "~/Uploaded/" + Logo.FileName;//Copy Path Into Variable

var v = Veh.Vehicle.Add(vh);
if (v != null)

2
RMIS
RESOURCE MAINTENANCE AND
{

Veh.SaveChanges();//saved records
ViewBag.Message = "Record Saved Successfully";//confirm message

}
return View();
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult VehicleManage()//admin manage page


{
if (Session["usr"] == null)//check session
{
return RedirectToAction("Adminlogin", "Admin");//redirect to login page
}
return View(Veh.Vehicle.ToList());//show all data in gridview
}
[HttpPost]
publicActionResult VehicleManage(string VehicleId)
{
try//Exception Handling
{
int id = Convert.ToInt32(VehicleId);//conversion of integer into string
var v = Veh.Vehicle.Find(id);//find records
if (v != null)//whend it found
{
return RedirectToAction("VehicleDetails", "Vehicles", new { id = v.VehicleId});//redirect to
page
}
else//when not found
{
ViewBag.message = "Id Not Found";//error message
return View(Veh.Vehicle.ToList());//return same page
}
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult VehicleDetails(int id)//show records


{
try {
if (Session["usr"] == null)//check session
{
return RedirectToAction("Adminlogin", "Admin");//redirect to page
}

2
RMIS
RESOURCE MAINTENANCE AND
Vehicles V = Veh.Vehicle.Find(id);//find records
return View(V);//show records
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}
}

publicActionResult VehicleEdit(int id)//update records


{
if (Session["usr"] == null)//check Session
{
return RedirectToAction("Adminlogin", "Admin");//redirect to page
}
Vehicles C = Veh.Vehicle.Find(id);//find
records return View(C);//show data
}
[HttpPost]
publicActionResult VehicleEdit(Vehicles C)
{
try//Exception Handling
{
Veh.Entry(C).State = EntityState.Modified;//data modification
Veh.SaveChanges();//modified
return RedirectToAction("VehicleManage", "Vehicles");//redirect to page

}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

}
publicActionResult VehicleDelete(int id)//deleter the records
{
if (Session["usr"] == null)//check session
{
return RedirectToAction("Adminlogin", "Admin");//redirect to page
}

Vehicles V= Veh.Vehicle.Find(id);//show records


return View(V);
}

[HttpPost]//Post Method
publicActionResult VehicleDelete(string id)//getting Errors
{
try//Exception Handling
{
int sid = Convert.ToInt32(id);//conversion of integer into string
Vehicles V= Veh.Vehicle.Find(sid);//find records

Veh.Vehicle.Remove(V);//remove data

Veh.SaveChanges();//save records

2
RMIS
RESOURCE MAINTENANCE AND
return RedirectToAction("VehicleManage", "Vehicles");//redirect to page

}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

publicActionResult VehiclesSearch()//serach by id
{
if (Session["user"] == null)//check session
{
return RedirectToAction("Stafflogin", "Staff");//redirect to page
}

int i = 1;//variable
Session["check"] = i;//hide labels
Session["Logo"] = i;
return View();
}

[HttpPost]//Post method
publicActionResult VehiclesSearch(string VehicleId)
{
try//Exception Handlling
{
int id = Convert.ToInt32(VehicleId);//convert integer into string
Vehicles st = Veh.Vehicle.Find(id);//find records
if (st != null)//when found
{
ViewBag.VehicleId = st.VehicleId;//copy data into viewbag to show
ViewBag.Name = st.Name;//copy data into viewbag to show
ViewBag.Type = st.Type;//copy data into viewbag to show
ViewBag.Price = st.Price;//copy data into viewbag to show
ViewBag.Year = st.Year;//copy data into viewbag to show
ViewBag.Seats = st.Seats;//copy data into viewbag to show
ViewBag.Cnmbr = st.Cnmbr;//copy data into viewbag to show
ViewBag.Cmp = st.Cmp;//copy data into viewbag to show
ViewBag.Agency = st.Agency;//copy data into viewbag to show
ViewBag.RentFor = st.RentFor;//copy data into viewbag to show
// ViewBag.Logo = st.Logo;//copy data into viewbag to show
int i = 0;//variable
Session["check"] = i;//show lables
Session["Logo"] = st.Logo;
return View();
}

else
{
ViewBag.Message = "Records Not Found";//when not found
int i = 1;//variable
Session["check"] = i;//hide lables
return View();
}

2
RMIS
RESOURCE MAINTENANCE AND
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}

}
JAVASCRIPT: Client Side Validation
function Charvalidate(evt) {//Allow only characters
var charCode = (evt.which) ? evt.which :
evt.keyCode
if ((charCode >= 65 && charcode <= 90) || (charCode >= 97 && charCode <= 122))
returntrue;
else
alert('Only Characters are allowed')
}

function comparevalidate() {//Compare validation

var x = document.getElementById("Pass").value;
var y = document.getElementById("Conf").value;
if (x === y) {
returntrue;
}
else {
alert('Password Mismatched');
returnfalse;
}
}

function Numvalidate(evt) {//Allow only Numbers

var c = (evt.which) ? evt.which : evt.keyCode


if ((c >= 48 && c <= 57))
returntrue;

else {
alert('Only Numbers are allowed');

}
}

function checkEmail() {//check Emails


ar email = document.getElementById('Email');
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

if (!filter.test(email.value)) {
alert('Please provide a valid email address');
email.focus;

}
}

function nullvalidate() {
var x = document.getElementById("Pass").value;

2
RMIS
RESOURCE MAINTENANCE AND

2
RMIS
RESOURCE MAINTENANCE AND

if (x == null || x.length == 0 || x == "") {


alert('Name should not left blank');
document.getElementById("Pass").focus();

}
}
CSS: EXTERNAL CSS
@importurl('FormStyle.css');
.tablestyle{
width: 100%;
text-align: match-parent;
font-family: 'Bookman Old
Style'; font-size: medium;
font-weight:200;
text-decoration:none;

.textstyle
{
text-align:center;
font-family:'Bookman Old
Style'; text-decoration:none;

.button {
width:
100px;
border-radius:4px;
border:1pxsolid ;
padding:4px;
background-color:darkgreen;
color:white;
cursor:pointer;
height:35px;

.button:hover {
background-color:blue;
color:white;

}
.box {
width:50%;
padding:
4px4px; margin:
6px0;
box-sizing: border-box;
border: 3pxsolid#ccc;
-webkit-transition: 0.5s;
transition: 0.5s;
outline: none;
border-top-left-radius:4px;
border-top-right-radius:4px;

border-bottom-left-radius:4px;

2
RMIS
RESOURCE MAINTENANCE AND

2
RMIS
RESOURCE MAINTENANCE AND
border-bottom-right-radius:4px;

SHARED OR MASTERPAGE: Admin or Client

@{
Layout = null;
}

<!DOCTYPEhtml>

<html>
<head>

<metaname="viewport"content="width=device-width"/>
<title>@ViewBag.Title</title>
<linkrel="icon"type="image/x-icon"href="~/Images/icon.jpg"/>
<linkhref="~/Content/Side Menu.css"rel="stylesheet"/>
<linkhref="~/Content/FormStyle.css"rel="stylesheet"/>
<scriptsrc="~/Scripts/Validations.js"></script>
<scriptsrc="respond.js"></script>
<scriptsrc="respond.min.js"></script>
<scriptsrc="jquery-ui-1.12.1.js"></script>
<scriptsrc="jquery-ui-1.12.1.min.js"></script>
<scriptsrc="../../Scripts/bootstrap.js"></script>
<scriptsrc="../../Scripts/bootstrap.min.js"></script>
<scriptsrc="../../Scripts/jquery-1.10.2.intellisense.js"></script>
<scriptsrc="../../Scripts/jquery-1.10.2.js"></script>
<scriptsrc="../../Scripts/jquery-1.10.2.min.js"></script>

<scripttype="text/javascript">
$(function () {
var imgs = ['../Images/SliderBanner (1).jpg', '../Images/SliderBanner (2).jpg',
'../Images/SliderBanner (3).jpg', '../Images/SliderBanner (4).jpg',
'../Images/SliderBanner (5).jpg'];
var cnt = 0;
var $imageSlide=$('img[id$=Image1]');
//Fetching image control
//set the image control to the first image.
$imageSlide.attr('src',imgs[cnt]);
setInterval(Slider,3000);
//Repeat after 3 seconds

function Slider(){
cnt++;

2
RMIS
RESOURCE MAINTENANCE AND
if(cnt==5)
cnt=0;
$imageSlide.fadeOut("slow",function(){
$(this).attr('src', imgs[cnt]).fadeIn("Slow");
});
}
})
</script>
</head>
<body>
<div>
<table>
<tr>
<tdclass="auto-style2">
<imgsrc="../../Images/images (1).jpg"height="200"width="255"/>
</td>
<td>
<imgsrc="~/Images/SliderBanner (2).jpg"id="Image1"height="200"width="1085"/>
</td>
</tr>

</table>
</div>

<divstyle="font-weight:500">//Menu

<ul>
<li><ahref="Index">HOME</a></li>

<li><ahref="Staffmanage">STAFFS MANAGE</a></li>
<liclass="dropdown">
<ahref="javascript:void(0)"class="dropbtn">RESOURCE MANAGE</a>
<divclass="dropdown-content">
<ahref="../ConferenceRoom/RoomManage">ROOMS MANAGE </a>
<ahref="../Vehicles/VehicleManage">VEHICLES MANAGE</a>

</div>
<li><ahref="../Equipment/EquipmentManage">EQUIPMENTS MANAGE</a></li>
<liclass="dropdown">
<ahref="javascript:void(0)"class="dropbtn">BOOKINGS MANAGE</a>
<divclass="dropdown-content">
<ahref="../RoomBooking/RoomIndex">ROOMS BOOKING </a>
<ahref="../VehicleBooking/CabIndex">VEHICLES BOOKING</a>

</div>
</li>
<li><ahref="../Agency/Agencymanage">AGENCIES</a></li>
<li><ahref="../Service/ServiceIndex">SERVICES</a></li>
<li><ahref="../Auction/AuctionIndex">AUCTIONS</a></li>
<li><ahref="AboutUs">ABOUT US</a></li>
</ul>
</div>

2
RMIS
RESOURCE MAINTENANCE AND

<div>
<table>
<tr>

<tdstyle="text-align:left">//Print User Name


@if (Session["usr"] != null)
{
@Html.Label("Welcome:")
@Session["usr"]
}
</td>
<tdstyle="text-align:right">

<marqueewidth="100%"direction="up"behavior="alternate"><marqueedirection="rig
ht"behavior="alternate">WELCOME TO RMIS</marquee></marquee>

</td>

<tdstyle="text- align:right;"><ahref="../Admin/Welcomepage"><imgsrc="../../Images/
homebutton. png"width="60"height="50"/></a></td>
<tdstyle="text-
align:right"><ahref="../Admin/Index"><imgsrc="../../Images/logout.png"width="60
"height="50"/></a></td>
</tr>
</table>
</div>

<div>
<table>
<tr>
<td><imgsrc="../../Images/coollogo_com-
8200276.png"height="50"width="1345"/></td>
</tr>
</table>
</div>

<divstyle="text-align:center">
@RenderBody()
</div>

<divstyle="background-color:black">
<tablewidth="100%">

<tr>
<tdstyle="text-align:center;font-family:'Bookman Old Style';color:white;background-
color:black">&copy COPYRIGHT IGNOU RAHUL KUMAR MINI PROJECT</td>
</tr>
</table>

2
RMIS
RESOURCE MAINTENANCE AND
</div>

</body>
</html>
ViewName: AdminRegister.cshtml
@model RMIS.Models.Admin
@{
ViewBag.Title = "AdminRegister";
Layout = "~/Views/Shared/Beforelogin.cshtml";
}

<div>
<table>
<tr>
<td><imgsrc="~/Images/Registerbanner.jpg"height="175"width="1345"/></td>
</tr>
</table>
</div>

<divstyle="border:hidden">
@using (Html.BeginForm("AdminRegister","Admin", FormMethod.Post, new { enctype =
"multipart/form-data" }))
{
<tableclass="tablestyle">
<tr>
<tdclass="text">@Html.Label("Enter Admin id")</td>
<td><inputtype="text"requiredname="AdminId"value="@Session["Admid"].ToString()"class="box"/></td
>
<td>@Html.Label("Enter Username")</td>
<td><inputtype="text"requiredname="Usernm"onkeypress="return
Charvalidate(event)"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Enter Password")</td>
<td><inputtype="password"name="Paswd"requiredid="Pass"class="box"/></td>
<td>@Html.Label("Confirm Password")</td>
<td><inputtype="password"id="Conf"requiredonblur="comparevalidate()"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Enter Mobile Number")</td>
<td><inputtype="text"name="Mob"requiredonkeypress="return
Numvalidate(event)"id="Mob"class="box"/></td
<td>@Html.Label("Enter EmailId")</td>
<td><inputtype="text"requiredname="Email"id="Email"onblur="checkEmail()"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Enter Role")</td>
<td>@Html.DropDownList("Role", newSelectList(new[] { "Developer", "Admin", "Tester" }))</td>
<td>@Html.Label("Choose your photo")</td>
<td><inputtype="file"name="Pic"id="Pic"/></td>
</tr>

<tr>
<tdcolspan="4"style="text- align:center"><inputtype="submit"value="Save"onclick="nullvalidate()"class="button"/
></td>

</tr>

2
RMIS
RESOURCE MAINTENANCE AND

<tr>
<td>@ViewBag.Message</td>

ViewName: Adminlogin.cshtml
@model IEnumerable<RMIS.Models.Staff>
@{

Layout = "~/Views/Shared/BeforeStaffLogin.cshtml";
ViewBag.Title = "StaffLogin";
}

<html>
<head>
<scriptsrc="https://code.jquery.com/jquery-1.9.1.js"></script>
<script>
$(function() {

if (localStorage.chkbx && localStorage.chkbx != '') { //local storage is more


powerfule features then cookies
$('#remember_me').attr('checked', 'checked');
$('#user').val(localStorage.usrname);
$('#pas').val(localStorage.pass);
} else {
$('#remember_me').removeAttr('checked'); //The removeAttr() method
removes one or more attributes from the selected elements.
$('#user').val('');
$('#pas').val('');
}

$('#remember_me').click(function() {

if ($('#remember_me').is(':checked')) {
// save username and password
localStorage.usrname = $('#user').val();
localStorage.pass = $('#pas').val();
localStorage.chkbx = $('#remember_me').val();
} else {
localStorage.usrname = '';
localStorage.pass = '';
localStorage.chkbx = '';
}
});
});

function Captcha(){
var alpha = new
Array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T',
'U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p
','q','r','s','t','u','v','w','x','y','z');
var i;
for (i=0;i<6;i++){
var a = alpha[Math.floor(Math.random() *
alpha.length)]; var b = alpha[Math.floor(Math.random()
* alpha.length)]; var c =
alpha[Math.floor(Math.random() * alpha.length)]; var d
= alpha[Math.floor(Math.random() * alpha.length)];
}
var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d;
document.getElementById("mainCaptcha").value = code
}

2
RMIS
RESOURCE MAINTENANCE AND

2
RMIS
RESOURCE MAINTENANCE AND
function ValidCaptcha(){
var string1 = removeSpaces(document.getElementById('mainCaptcha').value);
var string2 = removeSpaces(document.getElementById('txtInput').value);
if (string1 == string2){

}
else{
alert('Please Enter Valid Captcha Code')
}
}
</script>
</head>
<bodyonload="Captcha();">
<div><table><tr>
<tdcolspan="2"><imgsrc="../../Images/login.jpg"height="175"width="1325"/></td></tr></t
able>
</div>
@using (Html.BeginForm())
{
<divstyle="text-align:center">
<tableclass="tablestyle"><tr>
<tdrowspan="7">
<imgsrc="../../Images/users loginimage.png"/></td>

<td>@Html.Label("Enter UserName")</td>
<td>
<inputtype="text"name="Usernm"placeholder="Enter
UserName"class="box"id="user"onclick="cookies()"/>
</tr>
<tr>
<td>@Html.Label("Enter Password")</td>
<td><inputtype="password"name="Paswd"placeholder="Enter Your
Password"class="box"id="pas"onclick="cookies()"/></tr></tr>
<tr><td>
<inputtype="text"id="mainCaptcha"style="background-color:aqua; font-size:xx-
large"class="auto-style1"></td>
<td><inputtype="text"id="txtInput"onblur="ValidCaptcha()"requiredclass="box"placeholde
r="Enter Captcha Code></td></tr>
<tr>
<td>
<inputtype="checkbox"value="remember-me"id="remember_me"> Remember
</td>
</tr>
<tr>
<td><inputtype="submit"value="Login"class="button"/></td>
<tdstyle="text-decoration:none"><ahref="/Admin/forgetPassword">ForgetPassword</a></td>
</tr>
<tr>
<tdcolspan="2">
@ViewBag.Message
</td>
</tr>
</table>
</div>
}

</body>
</html>

2
RMIS
RESOURCE MAINTENANCE AND

ViewName: ViewProfile.cshtml

@model RMIS.Models.Admin
@{
ViewBag.Title = "ViewProfile";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}
<div>
<table>
<tr>
<td><imgsrc="../../Images/Profile.jpg"width="1345"height="200"/></td>
</tr>
</table>
</div>

<div>
<tableclass="tablestyle">

<trclass="textstyle">
<tdcolspan="4"><h2>YOUR PROFILE</h2></td>
</tr>

<tr>
<tdrowspan="6"style="text-align:center">

<imgsrc="@Url.Content(Session["Pic"].ToString())"height="200"width="150"alt="Image"/>
</td>

</tr>

<tr>
<td>@Html.Label("Admin Id")</td>
<td>@Session["id"]</td>
</tr>
<tr>
<td>@Html.Label("Name :")</td>
<td>@Session["usr"]</td>
</tr>

<tr>
<td>@Html.Label(" Your Password")</td>
<td>@Session["ps"]</td>
</tr>
<tr>
<td>@Html.Label(" Your Email")</td>
<td>@Session["Email"]</td>

</tr>
<tr>
<td>@Html.Label("Role")</td>
<td>@Session["Role"]</td>
</tr>
</table>

</div>
ViewName: ChangePassword.cshtml

2
RMIS
RESOURCE MAINTENANCE AND

@model IEnumerable<RMIS.Models.Admin>
@{
ViewBag.Title = "ChangePassword";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<tableclass="tablestyle">
<tr>
<tdcolspan="3"><imgsrc="../../Images/changepasswordbanner.png"height="200"width="13
45"/></td>
</tr>
</table>
</div>

@using (Html.BeginForm())
{
<divclass="textstyle">
<tableclass="tablestyle">

<tr>
<tdrowspan="4">
<imgsrc="../../Images/changepassword.jpg"/>

</td>
<td>@Html.Label("Enter Your Old Password")</td>
<td><inputtype="password"name="Paswd"placeholder="Enter Your Old
Password"requiredclass="box"/></td>

</tr>

<tr>
<td>@Html.Label("Enter New Password")</td>
<td><inputtype="password"id="Pass"name="newPaswd"requiredplaceholder="Enter Your
New Password"class="box"/>

</tr>

<tr>
<td>@Html.Label("Confirm Password")</td>
<td><inputtype="password"id="Conf"placeholder="Confirm Your
Password"requiredonblur="comparevalidate()"class="box"/>

</tr>
<trclass="textstyle">
<tdcolspan="2"style="text-
align:center"><inputtype="submit"value="Update"class="button"/>@ViewBag.Message</td>

</tr>

</table>
</div>
}

2
RMIS
RESOURCE MAINTENANCE AND

ViewName: ForgetPassword.cshtml
@{
ViewBag.Title = "sendmail";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<table>
<tr>
<tdcolspan="2"><imgsrc="../../Images/forgotpassword.jpg"height="200"width="1315"/></t
d>
</tr>
</table>
</div>
@using (Html.BeginForm())
{

<divclass="textstyle">
<tableclass="tablestyle">
<tr>
<tdrowspan="4">
<imgsrc="../../Images/forgetpasswords.png"height="200"/>
</td>
<td>@Html.Label("Provide Your Registered EmailId" )</td>
</tr>

<tr>
<tdstyle="text-
align:left"><inputtype="text"name="Email"requiredid="Email"onblur="checkEmail()"placehol
der="Enter Your EmailId"class="box"/>
</tr>
<tr>
<tdcolspan="2"style="align-
content:center;"><inputtype="submit"value="Submit"class="button"/></td>
</tr>

<tr>
<td>@ViewBag.Message</td>
</tr>
</table>
</div>
}

2
RMIS
RESOURCE MAINTENANCE AND

ViewName: Inbox.cshtml
@{
ViewBag.Title = "Inbox";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<table>
<tr>
<td><imgsrc="~/Images/Feedbacks.jpg"height="200"width="1345"/></td>
</tr>
</table>
</div>
<divclass="textstyle">
@using (Html.BeginForm())
{
<tableclass="tablestyle">
<tr>
<tdrowspan="4">
<imgsrc="../../Images/Your Emails.png"width="350"height="200"/>
</td>
<td>@Html.Label("To")</td>
<td><inputtype="text"name="Email"placeholder="Provide Receipiant
EmailId"class="box"id="Email"onblur="checkEmail()"/></td>
</tr>

<tr>
<td>@Html.Label("Subject")</td>
<td><inputtype="text"name="Subject"placeholder="Provide Subject Title"class="box"/></td>
</tr>

<tr>
<td>@Html.Label(" Your Message")</td>
<td>@Html.TextArea("Message", null, new{@class="box" ,placeholder=" Write Your
Message"})</td>
</tr>

<tr>
<td><inputtype="submit"value="Send"class="button"/>@ViewBag.Message</td>

</tr>

</table>
}
</div>

ViewName: AddStaff.cshtml

2
RMIS
RESOURCE MAINTENANCE AND

@model IEnumerable<RMIS.Models.Staff>
@{
ViewBag.Title = "AddStaff";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

@using (Html.BeginForm("AddStaff", "Admin", FormMethod.Post, new { enctype =


"multipart/form-data" }))
{

<tableclass="tablestyle">

<trclass="textstyle">
<tdcolspan="4"><h2>STAFF REGISTRATION</h2></td>
</tr>
<tr>
<td>@Html.Label("Enter StaffId")</td>
<td><inputtype="text"name="StaffId"value="@Session["StaffId"]"class="box"/></td>
<td>@Html.Label("Enter Username")</td>
<td><inputtype="text"name="Usernm"placeholder="Enter
Username"requiredclass="box"/></td>
</tr>

<tr>
<td>@Html.Label("Enter Password")</td>
<td><inputtype="password"name="Paswd"id="Pass"placeholder="Enter
Password"requiredclass="box"/></td>
<td>@Html.Label("Confirm Password")</td>
<td><inputtype="password"id="Conf"onblur="comparevalidate()"placeholder="ConfirmPassw
ord"requiredclass="box"/></td>
</tr>

<tr>

<td>@Html.Label("Associate Name")</td>
<td><inputtype="text"name="Name"onkeypress="return
Charvalidate(event)"placeholder="Associate Name"requiredclass="box"/></td>
<td>@Html.Label("Date of Birth")</td>
<td><inputtype="date"name="Dob"requiredclass="box"/></td>
</tr>

<tr>

<td>@Html.Label("Sex")</td>
<td>@Html.RadioButton("Sex", "Male", true)Male</td>
<td>@Html.RadioButton("Sex", "Female", false)Female</td>

</tr>

<tr>
<td>@Html.Label("Designation")</td>
<td>@Html.DropDownList("Profile", newSelectList(new[] { "Developer", "Associate",
"Manager", "Supervisor" } ))</td>
<td>@Html.Label("Total Salary")</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td><inputtype="text"name="Salary"onkeypress="return
Numvalidate(event)"placeholder="Enter Salary"requiredclass="box"/></td>
</tr>

<tr>

<td>@Html.Label("Enter Mobile Number")</td>


<td><inputtype="text"name="Mob"onkeypress="return
Numvalidate(event)"placeholder="Enter Mobile"requiredclass="box"/></td>
<td>@Html.Label("Enter EmailId")</td>
<td><inputtype="email"name="Email"id="Email"onblur="checkEmail()"placeholder="Enter
EmailId"requiredclass="box"/></td>
</tr>

<tr>
<td>@Html.Label("Date Of Joining")</td>
<td><inputtype="date"name="Doj"requiredclass="box"/></td>
<td>@Html.Label("Choose Your Pic")</td>
<td><inputtype="file"name="Photo"/></td>
</tr>

<tr>
<td>@Html.Label("Qualification")</td>
<td>@Html.DropDownList("Qualification", newSelectList(new[] { "BCA", "MCA", "BE/B-
TECH", "Diploma" }))</td>
<td>@Html.Label("Address")</td>
<td>@Html.TextArea("Addr" ,null,new{@class="box", placeholder="Address"})</td>
</tr>

<trstyle="text-align:center">
<tdcolspan="4"><inputtype="submit"value="Save"class="button"/></td>
<tdcolspan="4">@ViewBag.Message</td>

</table>

ViewName: StaffManage.cshtm

2
RMIS
RESOURCE MAINTENANCE AND
@model IEnumerable<RMIS.Models.Staff>
@{
ViewBag.Title = "Staffmanage";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}
<tableclass="tablestyle">
<tr>
<tdcolspan="4"style="text-align:center"class="textstyle">
<h2>STAFF MANAGEMENT</h2>
</td>
</tr>

</table>

<div>
@using (Html.BeginForm())
{
<tableclass="tablestyle">

<tr>

<tdcolspan="4">@Html.TextBox("txtid", null,new{
@class="search",placeholder="Search..."})</td>
<td>
<inputtype="submit"value="Search"class="button"/>
</td>
<td>@ViewBag.message</td>
</tr>
</table>
}
</div>
<div>
<tableclass="tablestyle"border="1">
<trstyle="background-color:maroon;color:whitesmoke">
<th>@Html.Label("StaffId")</th>
<th>@Html.Label("UserName")</th>
<th>@Html.Label("Name")</th>
<th>@Html.Label("Paswd")</th>
<th>@Html.Label("Sex")</th>
<th>@Html.Label("Qualification")</th>
<th>@Html.Label("Profile")</th>
<th>@Html.Label("Salary")</th>
<th>@Html.Label("Mobile")</th>
<th>@Html.Label("Email")</th>
<th>@Html.Label("Addr")</th>
<th>@Html.Label("Photo")</th>
<thcolspan="3">@Html.Label("Actions")</th>
</tr>

@foreach (var item in Model)


{
<tr>
<td>@Html.DisplayFor(modelitem => item.StaffId)</td>
<td>@Html.DisplayFor(modelitem => item.Usernm)</td>
<td>@Html.DisplayFor(modelitem => item.Name)</td>
<td>@Html.DisplayFor(modelitem => item.Paswd)</td>
<td>@Html.DisplayFor(modelitem => item.Sex)</td>
<td>@Html.DisplayFor(modelitem => item.Qualification)</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.DisplayFor(modelitem => item.Profile)</td>
<td>@Html.DisplayFor(modelitem => item.Salary)</td>
<td>@Html.DisplayFor(modelitem => item.Mob)</td>
<td>@Html.DisplayFor(modelitem => item.Email)</td>
<td>@Html.DisplayFor(modelitem => item.Addr)</td>
<td><imgsrc="@Url.Content(@item.Photo)"height="100"width="100"alt="Image"/></td
<td>@Html.ActionLink("Show","StaffDetails",new { id=item.StaffId})</td>
<td>@Html.ActionLink("Edit", "StaffEdit", new { id = item.StaffId })</td>
<td>@Html.ActionLink("Delete", "StaffDelete", new { id = item.StaffId })</td>

</tr>
}
</table>
</div>

ViewName: StaffEdit.cshtm
@model RMIS.Models.Staff
@{
ViewBag.Title = "StaffEdit";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4"style="text-align:center">
<h2>STAFF-EDIT</h2>
</td>
</tr>
<trclass="box">
<td>@Html.Label("Enter StaffId")</td>
<td>@Html.EditorFor(model=>model.StaffId)</td>
<td>@Html.Label("Enter Username")</td>
<td>@Html.EditorFor(model => model.Usernm)</td>
</tr>

<tr>
<td>@Html.Label("Enter Password")</td>
<td>@Html.EditorFor(model => model.Paswd)</td>
<td>@Html.Label("Associate Name")</td>
<td>@Html.EditorFor(model => model.Name)</td>
</tr>
<tr>
<td>@Html.Label("Date of Birth")</td>
<td>@Html.EditorFor(model => model.Dob)</td>
<td>@Html.Label("Sex")</td>
<td>@Html.EditorFor(model => model.Sex)</td>
</tr>

2
RMIS
RESOURCE MAINTENANCE AND

<tr>
<td>@Html.Label("Qualification")</td>
<td>@Html.EditorFor(model => model.Qualification)</td>
<td>@Html.Label("Profile")</td>
<td>@Html.EditorFor(model => model.Profile)</td>

</tr>

<tr>
<td>@Html.Label("Total Salary")</td>
<td>@Html.EditorFor(model => model.Salary)</td>
<td>@Html.Label("Enter Mobile Number")</td>
<td>@Html.EditorFor(model => model.Mob)</td>
</tr>

<tr>
<td>@Html.Label("Enter EmailId")</td>
<td>@Html.EditorFor(model => model.Email)</td>

<td>@Html.Label("Date Of Joining")</td>
<td>@Html.EditorFor(model => model.Doj)</td>
</tr>

<tr>
<td>@Html.Label("Address")</td>
<td>@Html.EditorFor(model => model.Addr)</td>
<td>@Html.Label("Choose Your Pic")</td>
<td>@Html.EditorFor(model => model.Photo)</td>
</tr>

<tr>
<tdcolspan="2"style="text-
align:center"><inputtype="submit"value="UPDATE"class="button"/></td>
<tdcolspan="2"style="text-align:center">@Html.ActionLink("Cancel", "StaffManage")</td>
</tr>

</table>
}

ViewName: StaffDelete.cshtm
@model RMIS.Models.Staff

2
RMIS
RESOURCE MAINTENANCE AND
@{
ViewBag.Title = "StaffDelete";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<tableclass="tablestyle">
<tr>
<td><imgsrc="~/Images/staffsbanner.jpg"width="1345"height="200"</td>
</tr>

<tr>
<tdclass="textstyle"style="text-align:center">
<h2>WOULD YOU REALLY WANT TO DELETE THE RECORDS</h2>
</td>
</tr>

</table>
</div>

@using (Html.BeginForm(new { id = Model.StaffId }))


{

<div>
<tableborder="1"cellpadding="1"cellspacing="1">
<trstyle="background-color:maroon;color:whitesmoke">
<th>@Html.Label("StaffId")</th>
<th>@Html.Label("UserName")</th>
<th>@Html.Label("Name")</th>
<th>@Html.Label("Password")</th>
<th>@Html.Label("Date of Birth")</th>
<th>@Html.Label("Sex")</th>
<th>@Html.Label("Qualification")</th>
<th>@Html.Label("Profile")</th>
<th>@Html.Label("Salary")</th>
<th>@Html.Label("Mobile")</th>
<th>@Html.Label("Email")</th>
<th>@Html.Label("Date of Joining")</th>
<th>@Html.Label("Address")</th>
<th>@Html.Label("Photo")</th>
</tr>

@*@foreach (var item in Model)*@


@*{*@
<tr>
<td>@Html.DisplayFor(model => model.StaffId)</td>
<td>@Html.DisplayFor(model => model.Usernm)</td>
<td>@Html.DisplayFor(model => model.Paswd)</td>
<td>@Html.DisplayFor(model => model.Name)</td>
<td>@Html.DisplayFor(model => model.Dob)</td>
<td>@Html.DisplayFor(model => model.Sex)</td>
<td>@Html.DisplayFor(model => model.Qualification)</td>
<td>@Html.DisplayFor(model => model.Profile)</td>
<td>@Html.DisplayFor(model => model.Salary)</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.DisplayFor(model => model.Mob)</td>
<td>@Html.DisplayFor(model => model.Email)</td>
<td>@Html.DisplayFor(model => model.Doj)</td>
<td>@Html.DisplayFor(model => model.Addr)</td>
<td><imgsrc="@Url.Content(Model.Photo)"height="100"width="100"alt="Image"/></
</tr>
</table>

</div>

<div>
<tableclass="tablestyle">
<trstyle="text-align:center">
<td><inputtype="submit"value="Delete"class="button"/></td>
<td><ahref="/Admin/Staffmanage"><imgsrc="~/Images/cancel
button.gif"width="100"height="50"/></a></td>
</tr>
</table>
</div>
}

ViewName: AgencyRegister.cshtm
@model IEnumerable<RMIS.Models.Agency>

@{
ViewBag.Title = "AgencyRegister";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";

2
RMIS
RESOURCE MAINTENANCE AND
}
@using (Html.BeginForm("AgencyRegister", "Agency", FormMethod.Post, new { enctype =
"multipart/form-data" }))
{
<tableclass="tablestyle">
<trclass="textstyle">
<tdcolspan="4"><h2>AGENCY REGISTER</h2></td>
</tr>
<tr>
<td>@Html.Label("Enter AgencyId")</td>
<td><inputtype="text"name="AgencyId"value="@Session["AgencyId"]"class="box"/></td>
<td>@Html.Label("Agency Name")</td>
<td><inputtype="text"name="Name"placeholder="Agency Name"onkeypress="return
Charvalidate(event)"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Providing Service")</td>
<td>@Html.DropDownList("Service", newSelectList(new[] { " Equipment Services", "Vehicles Services",
"Room Services", "Electrical Services" }))</td>
<td>@Html.Label("Service Cost")</td>
<td><inputtype="text"name="Charge"placeholder="Service Cost"onkeypress="return
Numvalidate(event)"class="box"required/></td>
</tr>

<tr>
<td>@Html.Label("Contract Period in Years")</td>
<td><inputtype="number"name="Period"requiredonkeypress="return
Numvalidate(event)"class="box"placeholder="Contract Period"/></td>
<td>@Html.Label("Enter Mobile Number")</td>
<td><inputtype="text"name="Mobile"onkeypress="return Numvalidate(event)"placeholder="Mobile
Number"class="box"required/></td>
</tr>

<tr>
<td>@Html.Label("Enter EmailId")</td>
<td><inputtype="email"name="Email"id="Email"onblur="checkEmail()"class="box"placeholder="Enter
Email Id"required/></td>
<td>@Html.Label("Enter Website")</td>
<td><inputtype="text"name="Web"class="box"placeholder="Enter Website"required/></td>
</tr>

<tr>
<td>@Html.Label("Enter Address")</td>
<td>@Html.TextArea("Addr",null,new{@class="box", placeholder="Provide Valid Address"}) </td>
<td>@Html.Label("Choose your photo")</td>
<td><inputtype="file"name="Logo"class="box"required/></td>
</tr>

<trstyle="text-align:center">
<tdcolspan="4"><inputtype="submit"value="Save"class="button"/>@ViewBag.Message</td>
</tr>
</table
ViewName: AgencyManage.cshtml
@model IEnumerable<RMIS.Models.Agency>
@{
ViewBag.Title = "Agencymanage";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

2
RMIS
RESOURCE MAINTENANCE AND
@using (Html.BeginForm())
{

<div>

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/service agency.jpg"width="1345"height="150"/>
</td>
</tr>
<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>AGECNY MANAGEMENT STYSTEMS</h2>
</td>
</tr>
<tr>

<td>@Html.TextBox("AgencyId", null, new { @class = "search", placeholder = "Enter


AgencyId" })</td>
<td><inputtype="submit"value="SEARCH"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>

</div>

<div>
<tableborder="1"cellpadding="1"cellspacing="1">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("AgencyId")</th>
<th>@Html.Label("Agency Name")</th>
<th>@Html.Label("Service ")</th>
<th>@Html.Label("Subscription Price")</th>
<th>@Html.Label("Contract Period")</th>
<th>@Html.Label("Mobile Number")</th>
<th>@Html.Label("Email Id")</th>
<th>@Html.Label("Website")</th>
<th>@Html.Label("Address")</th>
<th>@Html.Label("Logo")</th>
<thcolspan="3">@Html.Label("Actions")</th>
</tr>

@foreach (var item in Model)


{
<trclass="textstyle">
<td>@Html.DisplayFor(modelitem => item.AgencyId)</td>
<td>@Html.DisplayFor(modelitem => item.Name)</td>
<td>@Html.DisplayFor(modelitem => item.Service)</td>
<td>@Html.DisplayFor(modelitem => item.Charge)</td>
<td>@Html.DisplayFor(modelitem => item.Period)</td>
<td>@Html.DisplayFor(modelitem => item.Mobile)</td>
<td>@Html.DisplayFor(modelitem => item.Email)</td>
<td>@Html.DisplayFor(modelitem => item.Web)</td>
<td>@Html.DisplayFor(modelitem => item.Addr)</td>
<td><imgsrc="@Url.Content(@item.Logo)"height="100"width="100"alt="Image"/></td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.ActionLink("Details","AgencyDetails",new {id=item.AgencyId})</td>
<td>@Html.ActionLink("Edit", "AgencyEdit", new { id = item.AgencyId })</td>
<td>@Html.ActionLink("Delete", "AgencyDelete", new { id = item.AgencyId })</td>

</tr>
}
</table>
</div>

ViewName: AgencyEdit.cshtml
@model RMIS.Models.Agency
@{
ViewBag.Title = "AgencyEdit";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

@using (Html.BeginForm())
{
<tableclass="tablestyle">
<tr>

2
RMIS
RESOURCE MAINTENANCE AND

<tdcolspan="4"style="text-align:center">
<h2>AGENCY-EDIT</h2>
</td>
</tr>
<tr>
<td>@Html.Label("Enter AgencyId")</td>
<td>@Html.EditorFor(model =>model.AgencyId )</td>
<td>@Html.Label("Enter Agency Namne")</td>
<td>@Html.EditorFor(model => model.Name)</td>
</tr>

<tr>
<td>@Html.Label("Agency Service")</td>
<td>@Html.EditorFor(model => model.Service)</td>
<td>@Html.Label("Subscription Charge")</td>
<td>@Html.EditorFor(model => model.Charge)</td>

</tr>

<tr>
<td>@Html.Label("Contract Period")</td>
<td>@Html.EditorFor(model => model.Period)</td>
<td>@Html.Label("Contact Details")</td>
<td>@Html.EditorFor(model => model.Mobile)</td>

</tr>

<tr>
<td>@Html.Label("Email Id")</td>
<td>@Html.EditorFor(model => model.Email)</td>
<td>@Html.Label("Website")</td>
<td>@Html.EditorFor(model => model.Web)</td>

</tr>
<tr>
<td>@Html.Label("Address")</td>
<td>@Html.EditorFor(model => model.Addr)</td>
<td>@Html.Label("Agency Logo")</td>
<td>@Html.EditorFor(model => model.Logo)</td>
</tr>
<tr>
<tdcolspan="2"style="text-align:center"><inputtype="submit"value="UPDATE"class="button"/></td>
<tdcolspan="2"style="text-align:center">@Html.ActionLink("Cancel", "AgencyManage")</td>

</tr>
</table>
}
ViewName: AgencyDelete.cshtml
@model RMIS.Models.Agency
@{
ViewBag.Title = "AgencyDelete";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<tableclass="tablestyle">
<tr>
<td><imgsrc="~/Images/service management.jpg"width="1345"height="200"/></td>
</tr>

2
RMIS
RESOURCE MAINTENANCE AND
<tr>
<tdclass="textstyle"style="text-align:center">
<h2>DO YOU REALLY WANT TO DELETE THE RECORDS</h2>
</td>
</tr>

</table>
</div>

@using (Html.BeginForm(new { id = Model.AgencyId }))


{

<div>

<tableborder="1"cellpadding="1"cellspacing="1">
<trstyle="background-color:maroon;color:whitesmoke">
<th>@Html.Label("AgencyId")</th>
<th>@Html.Label("Agency Name")</th>
<th>@Html.Label("Service ")</th>
<th>@Html.Label("Subscription Price")</th>
<th>@Html.Label("Contract Period")</th>
<th>@Html.Label("Mobile Number")</th>
<th>@Html.Label("Email Id")</th>
<th>@Html.Label("Website")</th>
<th>@Html.Label("Address")</th>
<th>@Html.Label("Logo")</th>
<thcolspan="3">@Html.Label("Action")</th>

</tr>
<tr>
<td>@Html.DisplayFor(model => model.AgencyId)</td>
<td>@Html.DisplayFor(model => model.Name)</td>
<td>@Html.DisplayFor(model => model.Service)</td>
<td>@Html.DisplayFor(model => model.Charge)</td>
<td>@Html.DisplayFor(model => model.Period)</td>
<td>@Html.DisplayFor(model => model.Mobile)</td>
<td>@Html.DisplayFor(model => model.Email)</td>
<td>@Html.DisplayFor(model => model.Web)</td>
<td>@Html.DisplayFor(model => model.Addr)</td>
<td>@Html.DisplayFor(model => model.Logo)</td>
<td>@Html.ActionLink("Details", "AgencyDetails", new { id = Model.AgencyId })</td>
<td>@Html.ActionLink("Edit", "AgencyEdit", new { id = Model.AgencyId })</td>
<td>@Html.ActionLink("Delete", "AgencyDelete", new { id = Model.AgencyId })</td>
</tr>
</table>

</div>
<div>
<tableclass="tablestyle">
<trstyle="text-align:center">
<td><inputtype="submit"value="Delete"class="button"/></td>
<td>@Html.ActionLink("Cancel", "AgencyManage")</td>

</tr>
</table>
</div>
}

2
RMIS
RESOURCE MAINTENANCE AND

ViewName: AddAuction.cshtml
@model IEnumerable<RMIS.Models.Auction>
@{
ViewBag.Title = "AddAuction";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

@using (Html.BeginForm())
{

<tableclass="tablestyle">

<tr>
<tdcolspan="4">
<imgsrc="~/Images/AuctionBanner.png"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>AUCTION MANAGAGEMENT</h2>
</td>
</tr>

<tr>

<td>@Html.Label("Auction Id")</td>
<td><inputtype="number"name="ActId"value="@Session["ActId"]"class="box"/></td>
<td>@Html.Label("Auction Date")</td>
<td><inputtype="date"name="Actdat"class="box"required/></td>
</tr>

<tr>
<td>@Html.Label("Auction Type")</td>
<td>@Html.DropDownList("Type", newSelectList(new[] { "Electrical", "Non Electrical", "ICT
Equipment", }))</td>
<td>@Html.Label("Auction Item")</td>
<td>@Html.DropDownList("Rnm", newSelectList(new[] { "FAN", "AC", "Kettle", "Freeze",
"Lights", "Desktop", "Laptop", "Printer", "Projector", "Scanner" }))</td>

</tr>

<tr>
<td>@Html.Label("Auction Price")</td>
<td><inputtype="number"name="Price"onkeypress="return
Numvalidate(event)"requiredclass="box"placeholder="Auction Price"/></td>
<td>@Html.Label("Auction Location")</td>
<td>@Html.DropDownList("Loc", newSelectList(new[] { "Noida", "Delhi", "Guargaon", "Delhi"
}))</td>
</tr>

<tr>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.Label("Customer Name")</td>
<td><inputtype="text"name="Custnm"onkeypress="return
Charvalidate(event)"requiredclass="box"placeholder="Customer Name"/></td>
<td>@Html.Label("Customer Age")</td>
<td><inputtype="number"name="Age"onkeypress="return
Numvalidate(event)"requiredclass="box "placeholder="Provide Age "/></td>
</tr>

<tr>
<td>@Html.Label("Cusomer Sex")</td>
<td>@Html.RadioButton("Sex", "Male", true)Male</td>
<td>@Html.RadioButton("Sex", "Female", false)Female</td>

</tr>
<tr>
<td>@Html.Label("Customer Mobile ")</td>
<td><inputtype="number"name="Mob"onkeypress="return
Numvalidate(event)"requiredplaceholder="Mobile Number"class="box"/></td>
<td>@Html.Label("Customer EmailId ")</td>
<td><inputtype="email"name="Email"id="Email"onblur="checkEmail()"requiredplaceholder=
"EmailId"class="box"/></td>

</tr>

<tr>
<td>@Html.Label("Mode of Payment")</td>
<td>@Html.RadioButton("Mode", "Cash", true)Cash</td>
<td>@Html.RadioButton("Mode", "Card", false)Card</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"><inputtype="submit"value="Save"class="button"/></td>
<tdcolspan="4">@ViewBag.Message</td>
</tr>

</table>
}

ViewName: AuctionIndex.cshtml
@model IEnumerable<RMIS.Models.Auction>
@{
ViewBag.Title = "AuctionIndex";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/AuctionBanner.png"width="1345"height="200"/>
</td>
</tr>

2
RMIS
RESOURCE MAINTENANCE AND

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>AUCTION MANAGAGEMENT</h2>
</td>
</tr>
<tr>
<td>@Html.TextBox("ActId", null, new { @class = "search", placeholder = "Enter Auction Id"
})</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>
}
</div>

<div>
<tableborder="1"cellpadding="1"cellspacing="1">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Acuction Id")</th>
<th>@Html.Label(" Auction Date")</th>
<th>@Html.Label("Auction Type ")</th>
<th>@Html.Label("Auction Item")</th>
<th>@Html.Label("Auction Price")</th>
<th>@Html.Label("Auction Location")</th>
<th>@Html.Label("Customer Name")</th>
<th>@Html.Label("Customer Age")</th>
<th>@Html.Label("Customer Sex")</th>
<th>@Html.Label("Customer Mobile")</th>
<th>@Html.Label("Customer EmailId")</th>
<th>@Html.Label("Mode Of Payment")</th>
<thcolspan="3">@Html.Label("Actions")</th
</tr>

@foreach (var item in Model)


{
<tr>
<td>@Html.DisplayFor(modelitem => item.ActId)</td>
<td>@Html.DisplayFor(modelitem => item.Actdat)</td>
<td>@Html.DisplayFor(modelitem => item.Type)</td>
<td>@Html.DisplayFor(modelitem => item.Rnm)</td>
<td>@Html.DisplayFor(modelitem => item.Price)</td>
<td>@Html.DisplayFor(modelitem => item.Loc)</td>
<td>@Html.DisplayFor(modelitem => item.Custnm)</td>
<td>@Html.DisplayFor(modelitem => item.Age)</td>
<td>@Html.DisplayFor(modelitem => item.Sex)</td>
<td>@Html.DisplayFor(modelitem => item.Mob)</td>
<td>@Html.DisplayFor(modelitem => item.Email)</td>
<td>@Html.DisplayFor(modelitem => item.Mode)</td>
<td>@Html.ActionLink("Show", "AuctionDetails", new { id = item.ActId })</td>
<td>@Html.ActionLink("Edit", "AuctionEdit", new { id = item.ActId })</td>
<td>@Html.ActionLink("Delete", "AuctionDelete", new { id = item.ActId })</td>

</tr>
}
</table>
</div>

2
RMIS
RESOURCE MAINTENANCE AND

ViewName: AuctionEdit.cshtml
@model RMIS.Models.Auction
@{
ViewBag.Title = "AuctionEdit";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/AuctionBanner.png"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>EDIT DETAILS IN AUCTION</h2>
</td>
</tr>
<tr>
<td>@Html.Label("Auction Id")</td>
<td>@Html.EditorFor(model => model.ActId)</td>
<td>@Html.Label("Auction Date")</td>
<td>@Html.EditorFor(model => model.Actdat)</td>
</tr>

<tr>
<td>@Html.Label("Auction Type")</td>
<td>@Html.EditorFor(model => model.Type)</td>
<td>@Html.Label("Resource Name")</td>
<td>@Html.EditorFor(model => model.Rnm)</td>

</tr>

<tr>
<td>@Html.Label("Auction Price")</td>
<td>@Html.EditorFor(model => model.Price)</td>
<td>@Html.Label("Auction Location")</td>
<td>@Html.EditorFor(model => model.Loc)</td>

</tr>

<tr>
<td>@Html.Label("Customer Name")</td>
<td>@Html.EditorFor(model => model.Custnm)</td>
<td>@Html.Label("Age")</td>
<td>@Html.EditorFor(model => model.Age)</td>

2
RMIS
RESOURCE MAINTENANCE AND

</tr>

<tr>
<td>@Html.Label("Sex")</td>
<td>@Html.EditorFor(model => model.Sex)</td>
<td>@Html.Label("Mobile")</td>
<td>@Html.EditorFor(model => model.Mob)</td>

</tr>

<tr>
<td>@Html.Label("Email")</td>
<td>@Html.EditorFor(model => model.Email)</td>
<td>@Html.Label("Mode of Payment")</td>
<td>@Html.EditorFor(model => model.Mode)</td>

</tr>

<trstyle="text-align:center">
<tdcolspan="2"><inputtype="submit"value="UPDATE"class="button"/></td>
<tdcolspan="2">@Html.ActionLink("Cancel", "AuctionIndex")</td>

</tr>

</table>

ViewName: AuctionDelete.cshtml
@model RMIS.Models.Auction
@{
ViewBag.Title = "AuctionDelete";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<tableclass="tablestyle">
<tr>
<td>
<imgsrc="~/Images/AuctionBanner.png"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>DO YOU REALLY WANT TO DELETE THIS RECORD ????????</h2>
</td>

2
RMIS
RESOURCE MAINTENANCE AND
</tr>
</table>
</div>

<div>
@using (Html.BeginForm(new { id = Model.ActId }))
{
<tableborder="1"cellpadding="1"cellspacing="1">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Acuction Id")</th>
<th>@Html.Label(" Auction Date")</th>
<th>@Html.Label("Auction Type ")</th>
<th>@Html.Label("Auction Item")</th>
<th>@Html.Label("Auction Price")</th>
<th>@Html.Label("Auction Location")</th>
<th>@Html.Label("Customer Name")</th>
<th>@Html.Label("Customer Age")</th>
<th>@Html.Label("Customer Sex")</th>
<th>@Html.Label("Customer Mobile")</th>
<th>@Html.Label("Customer EmailId")</th>
<th>@Html.Label("Mode Of Payment")</th>

</tr>
<trclass="textstyle">
<td>@Html.DisplayFor(model => model.ActId)</td>
<td>@Html.DisplayFor(model => model.Actdat)</td>
<td>@Html.DisplayFor(model => model.Type)</td>
<td>@Html.DisplayFor(model => model.Rnm)</td>
<td>@Html.DisplayFor(model => model.Price)</td>
<td>@Html.DisplayFor(model => model.Loc)</td>
<td>@Html.DisplayFor(model => model.Custnm)</td>
<td>@Html.DisplayFor(model => model.Age)</td>
<td>@Html.DisplayFor(model => model.Sex)</td>
<td>@Html.DisplayFor(model => model.Mob)</td>
<td>@Html.DisplayFor(model => model.Email)</td>
<td>@Html.DisplayFor(model => model.Mode)</td>
</tr>
</table>
}
</div>
<div>
<tableclass="tablestyle">
<trstyle="text-align:center">
<tdcolspan="2"><inputtype="submit"value="Delete"class="button"/></td>
<tdcolspan="2">@Html.ActionLink("Cancel", "AuctionIndex")</td>
</tr>
</table>
</div>

ViewName: AddRooms.cshtml

@model IEnumerable<RMIS.Models.ConferenceRoom>
@{

2
RMIS
RESOURCE MAINTENANCE AND
ViewBag.Title = "AddRooms";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

@using (Html.BeginForm("AddRooms", "ConferenceRoom", FormMethod.Post, new { enctype


= "multipart/form-data" }))
{
<div>
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Seminar.png"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">

<tdcolspan="4"style="text-align:center">
<h2>CONFERENCE ROOM MANAGEMENT</h2>
</td>
</tr>

<tr>
<td>@Html.Label("Conferencer Room Id")</td>
<td><inputtype="text"name="RoomId"value="@Session["RoomId"]"class="textbox"/></td>
<td>@Html.Label("Conference Room Name")</td>
<td><inputtype="text"name="Name"onkeypress="return
Charvalidate(event)"requiredplaceholder="Room Name"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Purchase Price")</td>
<td><inputtype="number"name="Price"onkeypress="return
Numvalidate(event)"requiredplaceholder="Purchase Price"class="box"/></td>
<td>@Html.Label("Year of Purchase")</td>
<td>@Html.DropDownList("Year", newSelectList(new[] { "2010", "2011", "2012", "2013",
"2014", "2015", }))</td>

</tr>

<trclass="textbox">
<td>@Html.Label("Service Provider Agency")</td>
<td>@Html.DropDownList("Agency", newSelectList(new[] { "Imperial Rooms Services",
"Oberoi Rooms Services", "Radison Rooms Services", "Diamond Rooms Services", }))</td>
<td>@Html.Label("Room Size")</td>
<td>@Html.DropDownList("Size", newSelectList(new[] { "100 Sq.Fit", "200 Sq.Fit", "300
Sq.Fit", "400 Sq.Fit", "500 Sq.Fit", }))</td>

</tr>

<tr>
<td>@Html.Label("Capaity in Persons")</td>
<td>@Html.DropDownList("Capacity", newSelectList(new[] { "100", "200", "300", "400",
"500", }))</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.Label("Prime Location")</td>
<td>@Html.DropDownList("Location", newSelectList(new[] { "Noida", "Guargaon", "Delhi",
"Ghaziabad", }))</td>

</tr>

<tr>
<td>@Html.Label("Booking For")</td>
<td>@Html.RadioButton("RentFor","Seminar",true)Seminar</td>
<td>@Html.RadioButton("RentFor", "Marriage", false)Marriage</td>
<td>@Html.RadioButton("RentFor", "Other", false)Party</td>

</tr>

<tr>
<td>@Html.Label("Builder Name")</td>
<td>@Html.DropDownList("Builder", newSelectList(new[] { "Supertech", "DLF", "Unitech",
"Jyapee Builder", }))</td>
<td>@Html.Label("Room Logo")</td>
<td><inputtype="file"name="Logo"/></td>
</tr>

<trstyle="text-align:center">
<tdcolspan="4"><inputtype="submit"value="Save"class="button"/></td>
<tdcolspan="4">@ViewBag.Message</td>
</tr>
</table>
</div>
}

ViewName: RoomManage.cshtml

@model IEnumerable<RMIS.Models.ConferenceRoom>
@{
ViewBag.Title = "RoomManage";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

@using (Html.BeginForm())
{

<div>
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Seminar.png"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">

<tdcolspan="4"style="text-align:center">
<h2>CONFERENCE ROOM MANAGEMENT</h2>

2
RMIS
RESOURCE MAINTENANCE AND
</td>
</tr>
<tr>
<td>@Html.TextBox("RoomId", null, new { @class = "search", placeholder = "Enter Room Id"
})</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>

</div>

}
<div>
<tableborder="1"cellpadding="1"cellspacing="1">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Room Id")</th>
<th>@Html.Label("Room Name")</th>
<th>@Html.Label("Purchase Price")</th>
<th>@Html.Label("Year of Booking")</th>
<th>@Html.Label("Service Agency")</th>
<th>@Html.Label("Room Size")</th>
<th>@Html.Label("Room Capacity")</th>
<th>@Html.Label("Room Location")</th>
<th>@Html.Label("Booking For")</th>
<th>@Html.Label("Builder Name")</th>
<th>@Html.Label("Room Photo")</th>
<thcolspan="3">@Html.Label("Actions")</th>

</tr>

@foreach (var item in Model)


{
<trclass="textstyle">
<td>@Html.DisplayFor(modelitem => item.RoomId)</td>
<td>@Html.DisplayFor(modelitem => item.Name)</td>
<td>@Html.DisplayFor(modelitem => item.Price)</td>
<td>@Html.DisplayFor(modelitem => item.Year)</td>
<td>@Html.DisplayFor(modelitem => item.Agency)</td>
<td>@Html.DisplayFor(modelitem => item.Size)</td>
<td>@Html.DisplayFor(modelitem => item.Capacity)</td>
<td>@Html.DisplayFor(modelitem => item.Location)</td>
<td>@Html.DisplayFor(modelitem => item.RentFor)</td>
<td>@Html.DisplayFor(modelitem => item.Builder)</td>
<td><imgsrc="@Url.Content(@item.Logo)"height="100"width="125"alt="Image"/></td>
<td>@Html.ActionLink("Details", "RoomDetails", new { id = item.RoomId })</td>
<td>@Html.ActionLink("Edit", "RoomEdit", new { id = item.RoomId })</td>
<td>@Html.ActionLink("Delete", "RoomDelete", new { id = item.RoomId })</td>

</tr>
}
</table>
</div>

2
RMIS
RESOURCE MAINTENANCE AND

ViewName: RoomDelete.cshtml
@model RMIS.Models.ConferenceRoom
@{
ViewBag.Title = "RoomDelete";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<tableclass="tablestyle">
<tr>
<td>
<imgsrc="~/Images/Seminar.png"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>WOULD YOU REALLY WANT TO DELETE THIS RECORD</h2>
</td>
</tr>
</table>
</div>

@using (Html.BeginForm(new { id = Model.RoomId }))


{
<tableborder="1"cellpadding="1"cellspacing="1"class="tablestyle">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Room Id")</th>
<th>@Html.Label("Room Name")</th>
<th>@Html.Label("Purchase Price")</th>
<th>@Html.Label("Year of Purchase")</th>
<th>@Html.Label("Service Agency")</th>
<th>@Html.Label("Room Size")</th>
<th>@Html.Label("Room Capacity")</th>
<th>@Html.Label("Room Location")</th>
<th>@Html.Label("Booking For")</th>
<th>@Html.Label("Builder Name")</th>
<th>@Html.Label("Room Photo")</th>

</tr>

<trclass="textstyle">
<td>@Html.DisplayFor(model => model.RoomId)</td>
<td>@Html.DisplayFor(model => model.Name)</td>
<td>@Html.DisplayFor(model => model.Price)</td>
<td>@Html.DisplayFor(model => model.Year)</td>
<td>@Html.DisplayFor(model => model.Agency)</td>
<td>@Html.DisplayFor(model => model.Size)</td>
<td>@Html.DisplayFor(model => model.Capacity)</td>
<td>@Html.DisplayFor(model => model.Location)</td>
<td>@Html.DisplayFor(model => model.RentFor)</td>
<td>@Html.DisplayFor(model => model.Builder)</td>
<td>@Html.DisplayFor(model => model.Logo)</td>
</tr>
</table>

2
RMIS
RESOURCE MAINTENANCE AND

<div>
<tableclass="tablestyle">

<trstyle="text-align:center">
<tdcolspan="2"><inputtype="submit"value="Delete"class="button"/></td>
<tdcolspan="2">@Html.ActionLink("CANCEL", "RoomManage")</td>

</tr>
</table>
</div>

ViewName: RoomEdit.cshtml
@model RMIS.Models.ConferenceRoom
@{
ViewBag.Title = "RoomEdit";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}
@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Seminar.png"width="1345"height="180"/>
</td>

</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>UPDATE ROOM DETAILS</h2>
</td>
</tr>

<tr>
<td>@Html.Label("Room Id")</td>
<td>@Html.EditorFor(model => model.RoomId)</td>
<td>@Html.Label("Room Namne")</td>
<td>@Html.EditorFor(model => model.Name)</td>

</tr>

<tr>
<td>@Html.Label("Purchase Price")</td>
<td>@Html.EditorFor(model => model.Price)</td>
<td>@Html.Label("Purchase Year")</td>
<td>@Html.EditorFor(model => model.Year)</td>

</tr>

<tr>
<td>@Html.Label("Service Agency")</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.EditorFor(model => model.Agency)</td>
<td>@Html.Label("Room Size")</td>
<td>@Html.EditorFor(model => model.Size)</td>
</tr>

<tr>
<td>@Html.Label("Room Capacity")</td>
<td>@Html.EditorFor(model => model.Capacity)</td>
<td>@Html.Label("Room Location")</td>
<td>@Html.EditorFor(model => model.Location)</td>
</tr>

<tr>
<td>@Html.Label("Booking For")</td>
<td>@Html.EditorFor(model => model.RentFor)</td>
<td>@Html.Label("Builder")</td>
<td>@Html.EditorFor(model => model.Builder)</td>

</tr>

<tr>
<td>@Html.Label("Room Logo")</td>
<td>@Html.EditorFor(model => model.Logo)</td>

</tr>

<trstyle="text-align:center"class="textstyle">
<tdcolspan="2"><inputtype="submit"value="Update"class="button"/></td>
<tdcolspan="2">@Html.ActionLink("Cancel", "StaffManage")</td>

</tr>
</table>

}
ViewName: RoomSearch.cshtml
@model RMIS.Models.ConferenceRoom

@{
ViewBag.Title = "RoomSearch";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<scripttype="text/javascript">
window.onload=function() //To hide Labels on Page Load
{
if(@Session["check"]==1 &&@Session["Logo"]==1)

{
document.getElementById("d1").style.visibility="hidden";
}

else
{
document.getElementById("d1").style.visibility="visible";
}
}

2
RMIS
RESOURCE MAINTENANCE AND
</script>

@using (Html.BeginForm())
{

<div>
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Seminar.png"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">

<tdcolspan="4"style="text-align:center">
<h2>SEARCH ROOM BY ID</h2>
</td>
</tr>
<tr>
<td>@Html.TextBox("RoomId", null, new { @class = "search", placeholder = "Enter Room Id"
})</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>

</div>

<divclass="textstyle"id="d1">

<tableclass="tablestyle">
<tr>
<tdrowspan="6"style="text-align:left">

<imgsrc="@Url.Content(@Session["Logo"].ToString())"height="200"width="300"alt="Image"/>

</td>

</tr>
<tr>
<td>@Html.Label("RoomId")</td>
<td>@ViewBag.RoomId</td>
<td>@Html.Label("Room Name ")</td>
<td>@ViewBag.Name</td>
</tr>
<tr>
<td>@Html.Label("Purchase Price ")</td>
<td>@ViewBag.Price</td>
<td>@Html.Label("Purchase Year ")</td>
<td>@ViewBag.Year</td>
</tr>

2
RMIS
RESOURCE MAINTENANCE AND
<tr>
<td>@Html.Label("Room Size ")</td>
<td>@ViewBag.Size</td>
<td>@Html.Label("Room Capacity")</td>
<td>@ViewBag.Capacity</td>
</tr>

<tr>
<td>@Html.Label("Location ")</td>
<td>@ViewBag.Location</td>
<td>@Html.Label("Rent For ")</td>
<td>@ViewBag.RentFor</td>
</tr>

<tr>
<td>@Html.Label("Builder Name")</td>
<td>@ViewBag.Builder</td>

</tr>
</table>
</div>

ViewName: AddEquipment.cshtml
@model IEnumerable<RMIS.Models.Equipment>
@{
ViewBag.Title = "AddEquipment";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<scripttype="text/javascript">//To calucate remaining year


function calc() {
var x = document.getElementById('Price').value;//take value from purchase price
var m = document.getElementById('Year').value;//take value from year
var n = 2015 - (parseInt(m));//Minus from 2015
var y = ((parseInt(x) * 20) / 100) * (parseInt(n));//Integer value
var z = (parseInt(x)) - (parseInt(y));
if (!isNaN(y)) {
document.getElementById('Dep').value = y;//copy to depreciation
document.getElementById('Cp').value = z;// copy to current price
document.getElementById('Yr').value = n;// copy to remaining year

}
}

</script>

2
RMIS
RESOURCE MAINTENANCE AND
@using (Html.BeginForm("AddEquipment", "Equipment", FormMethod.Post, new { enctype =
"multipart/form-data" }))
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Equipmentsbanner.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>EQUIPMENTS MANAGEMENT SYSTEM</h2>
</td>
</tr>

<tr>
<td>@Html.Label("Equipment Id")</td>
<td><inputtype="number"name="EqpId"value="@Session["EqpId"]"class="box"/></td>
<td>@Html.Label("Equipment Name")</td>
<td>@Html.DropDownList("Name", newSelectList(new[] { "Computer", "Laptop", "Printer",
"Projector", "Scanner" }))</td>
</tr>

<tr>
<td>@Html.Label("Equipment Type")</td>
<td>@Html.DropDownList("Type", newSelectList(new[] { "Non Electrical", "Electrical",
"Equipments" }))</td>
<td>@Html.Label("Equipment Price")</td>
<td><inputtype="number"id="Price"name="Price"onkeyup="calc()"onkeypress="return
Numvalidate(event)"requiredplaceholder="Equipment Price"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Purchase Year")</td>
<td><inputtype="number"id="Year"name="Year"onkeyup="calc()"onkeypress="return
Numvalidate(event)"requiredplaceholder="Purchase Year"class="box"/></td>
<td>@Html.Label("Service Agency")</td>
<td>@Html.DropDownList("Agency", newSelectList(new[] { "Dell Computer Solutions", "HP
Computer Solutions", "Acer Computer Solutions", "Lenovo Computer Solutions" }))</td>
</tr>

<tr>

<td>@Html.Label("Auction Remaining Year")</td>


<td><inputtype="number"id="Yr"name="AcnYr"requiredplaceholder="Auction Remaining
Year"class="box"/></td>
<td>@Html.Label("Depreication Amount")</td>
<td><inputtype="number"id="Dep"name="Dep"requiredplaceholder="Depreciation
Amount"class="box"/></td>
</tr>

<tr>

<td>@Html.Label("Current Price")</td>
<td><inputtype="number"id="Cp"name="Cnp"requiredplaceholder="Current
Price"class="box"/></td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.Label("Device Company")</td>
<td>@Html.DropDownList("Cnm", newSelectList(new[] { "Dell Computers Ltd ", "HP
Computers Ltd", "Acer Computers Ltd", "Lenovo Computers Ltd" }))</td>
</tr>

<tr>

<td>@Html.Label("Waranty Period")</td>
<td>@Html.DropDownList("Warnty", newSelectList(new[] { "6 Months", "9 Months", "1 Year",
"2 Year", }))</td>
<td>@Html.Label("Device Logo")</td>
<td><inputtype="file"name="Logo"requiredclass="box"/></td>
</tr>

<trclass="textstyle">
<tdcolspan="4"><inputtype="submit"value="Save"class="button"/></td>
<tdcolspan="4">@ViewBag.Message</td>
</tr>
</table>
}

ViewName: EquipmentManage.cshtml

@model IEnumerable<RMIS.Models.Equipment>
@{
ViewBag.Title = "EquipmentManage";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Equipmentsbanner.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>EQUIPMENTS MANAGEMENT SYSTEM</h2>
</td>
</tr>
<tr>
<td>@Html.TextBox("EqpId", null, new { @class = "search", placeholder = "Enter
EquipmentId" })</td>

<td><inputtype="submit"value="Search"class="button"/></td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@ViewBag.message</td>
</tr>
</table>

}
</div>
<div>
<tableborder="1"cellpadding="1"cellspacing="1">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Equipment Id")</th>
<th>@Html.Label("Equipment Name")</th>
<th>@Html.Label("Equipment Type")</th>
<th>@Html.Label("Purchas Price")</th>
<th>@Html.Label("Purchase Year")</th>
<th>@Html.Label("Auction Remaining Yr")</th>
<th>@Html.Label("Total Depreciation")</th>
<th>@Html.Label("Current Price")</th>
<th>@Html.Label("Service Agency")</th>
<th>@Html.Label("Equipment Company")</th>
<th>@Html.Label("Device Waranty")</th>
<th>@Html.Label("Device Logo")</th>
<thcolspan="3">@Html.Label("Actions")</th>
</tr>

@foreach (var item in Model)


{
<tr>
<td>@Html.DisplayFor(modelitem => item.EqpId)</td>
<td>@Html.DisplayFor(modelitem => item.Name)</td>
<td>@Html.DisplayFor(modelitem => item.Type)</td>
<td>@Html.DisplayFor(modelitem => item.Price)</td>
<td>@Html.DisplayFor(modelitem => item.Year)</td>
<td>@Html.DisplayFor(modelitem => item.Acnyr)</td>
<td>@Html.DisplayFor(modelitem => item.Dep)</td>
<td>@Html.DisplayFor(modelitem => item.Cnp)</td>
<td>@Html.DisplayFor(modelitem => item.Agency)</td>
<td>@Html.DisplayFor(modelitem => item.Cnm)</td>
<td>@Html.DisplayFor(modelitem => item.Warnty)</td>
<td><imgsrc="@Url.Content(@item.Logo)"height="100"width="125"alt="Image"/></td>
<td>@Html.ActionLink("show", "EquipmentDetails", new { id = item.EqpId })</td>
<td>@Html.ActionLink("Edit", "EquipmentEdit", new { id = item.EqpId })</td>
<td>@Html.ActionLink("Delete", "EquipmentDelete", new { id = item.EqpId })</t
</tr>
}
</table>
</div>

ViewName: EquipmentEdit.cshtml

2
RMIS
RESOURCE MAINTENANCE AND
@model RMIS.Models.Equipment
@{
ViewBag.Title = "EquipmentEdit";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

@using (Html.BeginForm())
{
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Equipmentsbanner.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>UPDATE EQUIPMENTS DETAILS</h2>
</td>
</tr>

<tr>
<td>@Html.Label("Equipment Id")</td>
<td>@Html.EditorFor(model => model.EqpId)</td>
<td>@Html.Label("Equipment Name")</td>
<td>@Html.EditorFor(model => model.Name)</td>
</tr>

<tr>
<td>@Html.Label("Equipment Type")</td>
<td>@Html.EditorFor(model => model.Type)</td>
<td>@Html.Label("Purchase Price")</td>
<td>@Html.EditorFor(model => model.Price)</td>
</tr>

<tr>
<td>@Html.Label("Purchase Year")</td>
<td>@Html.EditorFor(model => model.Year)</td>
<td>@Html.Label("Service Agency")</td>
<td>@Html.EditorFor(model => model.Agency)</td>
</tr>

<tr>
<td>@Html.Label("Action Remianing Year")</td>
<td>@Html.EditorFor(model => model.Acnyr)</td>
<td>@Html.Label("Total Depreciation")</td>
<td>@Html.EditorFor(model => model.Dep)</td>
</tr>

<tr>
<td>@Html.Label("Current Price")</td>
<td>@Html.EditorFor(model => model.Cnp)</td>
<td>@Html.Label("Equipment Company")</td>
<td>@Html.EditorFor(model => model.Cnm)</td>

</tr>

2
RMIS
RESOURCE MAINTENANCE AND
<tr>
<td>@Html.Label("Waranty Period")</td>
<td>@Html.EditorFor(model => model.Warnty)</td>
<td>@Html.Label("Equipment Logo")</td>
<td>@Html.EditorFor(model => model.Logo)</td>

</table>

<tableclass="tablestyle">

<trstyle="text-align:center"class="textstyle">
<tdcolspan="2"><inputtype="submit"value="Update"class="button"/></td>
<tdcolspan="2"class="textstyle">@Html.ActionLink("Cancel", "EquipmentManage")</td>

</tr>
</table>
}

ViewName: EquipmentDelete.cshtml

@model RMIS.Models.Equipment
@{
ViewBag.Title = "EquipmentDelete";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Equipmentsbanner.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>DO YOU REALLY WANT TO DELTE THIS RECORD?????????????</h2>
</td>
</tr>
</table>
</div>

@using (Html.BeginForm(new { id = Model.EqpId }))


{

<div>
<tableborder="1"cellpadding="1"cellspacing="1"class="tablestyle">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Equipment Id")</th>

2
RMIS
RESOURCE MAINTENANCE AND
<th>@Html.Label("Equipment Name")</th>
<th>@Html.Label("Equipment Type")</th>
<th>@Html.Label("Purchas Price")</th>
<th>@Html.Label("Purchase Year")</th>
<th>@Html.Label("Auction Remaining Yr")</th>
<th>@Html.Label("Total Depreciation")</th>
<th>@Html.Label("Current Price")</th>
<th>@Html.Label("Service Agency")</th>
<th>@Html.Label("Equipment Company")</th>
<th>@Html.Label("Device Waranty")</th>
<th>@Html.Label("Device Logo")</th>

</tr>
<trclass="textstyle">
<td>@Html.DisplayFor(model => model.EqpId)</td>
<td>@Html.DisplayFor(model => model.Name)</td>
<td>@Html.DisplayFor(model => model.Type)</td>
<td>@Html.DisplayFor(model => model.Price)</td>
<td>@Html.DisplayFor(model => model.Year)</td>
<td>@Html.DisplayFor(model => model.Acnyr)</td>
<td>@Html.DisplayFor(model => model.Dep)</td>
<td>@Html.DisplayFor(model => model.Cnp)</td>
<td>@Html.DisplayFor(model => model.Agency)</td>
<td>@Html.DisplayFor(model => model.Cnm)</td>
<td>@Html.DisplayFor(model => model.Warnty)</td>
<td>@Html.DisplayFor(model => model.Logo)</td>

</tr>
</table>

</div>

<div>
<tableclass="tablestyle">
<trstyle="text-align:center">
<tdcolspan="2"><inputtype="submit"value="Delete"class="button"/></td>
<tdcolspan="2">@Html.ActionLink("Cancel", "EquipmentManage")</td>

</tr>

</table>
</div>
}

ViewName: Depreciation.cshtml

@model IEnumerable<RMIS.Models.Equipment>
@{
ViewBag.Title = "Depreciation";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<scripttype='text/javascript'>

2
RMIS
RESOURCE MAINTENANCE AND
function calc()
{
var x = document.getElementById('Price').value;//fetch price
var m = document.getElementById('Year').value;//fetch year
var n = 2015 - (parseInt(m));//Minus
var y = ((parseInt(x) * 20) / 100)*(parseInt(n));//Integer Value
var z = (parseInt(x)) - (parseInt(y));
if (!isNaN(y)) {
document.getElementById('Dep').value = y;//copy value
document.getElementById('Cp').value = z;//copy value
document.getElementById('Yr').value = n;//copy value

function status()//Track the Status


{
var x = document.getElementById('Cp').value;
if((parseInt(x)<=10000))
{
alert('You Need to Purchase')//Message
}

else
{
alert('No Need to Purchase');//Message
}
}

function show()//Track the Auction


{
var m = document.getElementById('Yr').value;
if((parseInt(m)==5))
{
alert('You Need to Auction')//message
}

else
{
alert('No Need to Auction')//message
}
}

window.onload=function()
{

if(@Session["check"]==1 &&@Session["Logo"]==1)
{
document.getElementById("d1").style.visibility="hidden";//Hide ther labels on
page load
}

else
{

2
RMIS
RESOURCE MAINTENANCE AND
document.getElementById("d1").style.visibility="visible";//show the labels after
page load
}
}
</script>

<bodyonsubmit="my()">

<div>
@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Equipmentsbanner.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>EQUIPMENTS MANAGEMENT SYSTEM</h2>
</td>

<tr>
<td>@Html.TextBox("EqpId", null, new { @class = "search", placeholder = "Enter
EquipmentId" })</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>

</div>

<divid="d1"class="textstyle">
<tableclass="tablestyle">

<tr>
<tdrowspan="7"style="text-align:left">

<imgsrc="@Url.Content(@Session["Logo"].ToString())"height="200"width="300"alt="Image"/>

</td>

</tr>
<tr>
<td>@Html.Label("Equipment Name")</td>
<td>@ViewBag.Name"</td>
<td>@Html.Label("Purchase Price")</td>
<td><inputtype="text"style="border-
style:none"id="Price"value="@ViewBag.Price"onkeyup="calc()"/></td>

2
RMIS
RESOURCE MAINTENANCE AND
</tr>

<tr>
<td>@Html.Label("Year of Purchase")</td>
<td><inputtype="text"id="Year"style="border-style:none"value="@ViewBag.Year"/></td>
<td>@Html.Label("Old of Item")</td>
<td><inputtype="text"id="Yr"style="border-style:none"value="@ViewBag.AcnYr"/></td>

</tr>

<tr>
<td>@Html.Label("Service Agency")</td>
<td>@ViewBag.Agency</td>
<td>@Html.Label("Company Name")</td>
<td>@ViewBag.Cnm"</td>
</tr>

<tr>
<tr>
<td>@Html.Label("Depreciation Amount")</td>
<td><inputtype="text"id="Dep"style="border-style:none"value="@ViewBag.Dep"/></td>
<td>@Html.Label("Current Price")</td>
<td><inputtype="text"id="Cp"style="border-style:none"value="@ViewBag.Cnp"/></td>
</tr>

<trstyle="text-align:center">
<tdcolspan="2"><inputtype="submit"value="Revenue"onclick="status()"class="button"/></td
>
<tdcolspan="2"><inputtype="submit"value="Auction"onclick="show()"class="button"/></td>
</tr>
</table>
</div>

ViewName: PayIndex.cshtml
@model RMIS.Models.Payment
@{
ViewBag.Title = "PayIndex";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<div>

@using (Html.BeginForm())
{
<tableclass="tablestyle">

<trclass="textstyle">
<tdcolspan="4"><h2>Payment Page</h2></td>
</tr>

<tr>
<td>@Html.Label(" Payment Id")</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td><inputtype="text"name="PayId"value="@Session["PayId"]"class="box"/></td>
<td>@Html.Label("Date of Payment")</td>
<td><inputtype="date"name="Paydt"requiredclass="box"/></td></tr>

<tr>
<td>@Html.Label("CardNo")</td>
<td>@Html.TextBox("CardNo", null, new { @class = "box" ,placeholder="Enter Card No"
})</td>
<td>@Html.Label("Bank")</td>
<td>@Html.DropDownList("Bank", newSelectList(new[] { "ICICI", "Axis", "SBI", "HDFC" }))
</td>
</tr>

<tr>
<td>@Html.Label("CardType")</td>
<td>
@Html.RadioButton("CardType", "Debit", true)Debit
@Html.RadioButton("CardType", "Credit", false)Credit
</td>
<td>@Html.Label("StaffId")</td>
<td><inputtype="number"name="StaffId"value=@Session["Id"] onkeypress="return
Numvalidate(event)"placeholder="StaffId"requiredclass="box"/></td>

</tr>

<tr>
<td>@Html.Label("Cvv")</td>
<td>@Html.TextBox("Cvv", null, new { @class = "box" , placeholder = "Enter CVV No" ,
onkeypress = "return Numvalidate(event)" })</td>
<td>@Html.Label("Pin")</td>
<td>@Html.TextBox("Pin", null, new { @class = "box", placeholder = "Enter PIN No",
onkeypress = "return Numvalidate(event)" })</td>

</tr>
<tr>
<td>@Html.Label("CardHolder")</td>
<td>@Html.TextBox("CardHolder", null, new { @class = "box" , placeholder = "Enter
CardHolder" , onkeypress = "return Charvalidate(event)" })</td>
<td>@Html.Label("ValidUpto")</td>
<td>@Html.TextBox("ValidUpto", null, new { @class = "box" , placeholder = "ValidUpto" ,
onkeypress = "return Numvalidate(event)" }) </td>

</tr>
<tr>
<td>@Html.Label("Cardlimit")</td>
<td>@Html.TextBox("Cardlimit", null, new { @class = "box" , placeholder="Enter Card Limit"
})</td>
<td>@Html.Label("Payment For")</td>
<td>@Html.DropDownList("Payfor", newSelectList(new[] { "Equipments", "Vehicles", "Rooms",
"Service" }))</td>
</tr>

<trstyle="text-align:center">
<tdcolspan="4"><inputtype="submit"value="Pay"class="button"/>@ViewBag.Message</td>

</tr>

2
RMIS
RESOURCE MAINTENANCE AND
</table>
}
</div>

ViewName: AddRoom.cshtml
@model IEnumerable<RMIS.Models.RoomBooking>
@{
ViewBag.Title = "AddRoom";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<scripttype="text/javascript">

function calc() {
var x = document.getElementById('F').value;//fetch value
var y = document.getElementById('P').value;//fetch value
var z = (parseInt(x)) - (parseInt(y));//minus
if (!isNaN(x)) {//Integer
document.getElementById('D').value = z;//copy value
}
}

function days() {
var x = new Date(document.getElementById("d1").value);//fetch value
var y = new Date(document.getElementById("d2").value);//fetch value
z = parseInt((y - x) / (24 * 3600 * 1000));//days calucluat
var m = parseInt(z) * 1000;
if (!isNaN(m)) {
document.getElementById('F').value = m;//copy value
document.getElementById('ans').value = z;//copy value
}
}
</script>

<div>

@using (Html.BeginForm())
{

<tableclass="tablestyle">

2
RMIS
RESOURCE MAINTENANCE AND
<tr>
<tdcolspan="4">
<imgsrc="../../Images/Booking rooms.jpg"width="1345"height="150"/>
</td>
</tr>
<trclass="textstyle">

<tdcolspan="4"style="text-align:center">
<h2>CONFERENCE ROOM BOOKING</h2>
</td>
</tr>

<tr>
<td>@Html.Label("Booking Id")</td>
<td><inputtype="number"name="BkId"value="@Session["BkId"]"class="box"/></td>
<td>@Html.Label("Resource Name")</td>
<td>@Html.DropDownList("Rnm", newSelectList(new[] { "Vehicle", "Rooms" }))</td>

</tr>

<tr>
<td>@Html.Label("Resource Type")</td>
<td>@Html.DropDownList("Type", newSelectList(new[] { "Personal ", "Commmercial" }))</td>
<td>@Html.Label("Checkin Date")</td>
<td><inputtype="date"name="Chkndat"id="d1"onchange="days()"requiredclass="box"/></td
>

</tr>

<tr>
<td>@Html.Label("Checkout Date")</td>
<td><inputtype="date"name="Chotdat"id="d2"onchange="days()"requiredclass="box"/></td>
<td>@Html.Label("Fare ")</td>
<td><inputtype="number"name="Fare"id="F"onkeypress="return
Numvalidate(event)"placeholder="Fare"requiredclass="box"/></td>
</tr>

<tr>
<td>@Html.Label("No of Days")</td>
<td><inputtype="number"id="ans"placeholder="No of Days"requiredclass="box"/></td>
<td>@Html.Label("Customer Name")</td>
<td><inputtype="text"name="Custnm"onkeypress="return
Charvalidate(event)"placeholder="Customer Name"requiredclass="box"/></td>
</tr>

<tr>
<td>@Html.Label("Mobile Number")</td>
<td><inputtype="text"name="Mob"onkeypress="return
Numvalidate(event)"placeholder="Mobile Number"requiredclass="box"/></td
<td>@Html.Label("Email Id")</td>
<td><inputtype="email"name="Email"id="Email"onblur="checkEmail()"placeholder="Enter
Email Id"requiredclass="box"/></td>

</tr>

<tr>
<td>@Html.Label("Total Payment")</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td><inputtype="number"id="P"name="Payment"onkeyup="calc()"onkeypress="return
Numvalidate(event)"placeholder="Total Payment"requiredclass="box"/></td>
<td>@Html.Label("Due Payment")</td>
<td><inputtype="number"id="D"name="Due"placeholder="Due
Payment"requiredclass="box"/></td>
</tr>

<tr>

<td>@Html.Label("Mode of Payment")</td>
<td>@Html.RadioButton("Mode", "Cash", true) Cash</td>
<td>@Html.RadioButton("Mode", "Card", false) Card</td>
</tr>

<tr>
<td>@Html.Label("Address")</td>
<td>@Html.TextArea("Addr", null, new { @class = "box", placeholder = "Provide Address"
})</td>
<td>@Html.Label("Room Id")</td>
<td><inputtype="number"name="RoomId"onkeypress="return
Numvalidate(event)"placeholder="RoomId"requiredclass="box"/></td>
</tr>
<trclass="textstyle">
<tdcolspan="4"><inputtype="submit"value="Save"class="button"/>
@ViewBag.Message</td>
</tr>
</table>
}
</div>

ViewName: RoomIndex.cshtml

@model IEnumerable<RMIS.Models.RoomBooking>
@{
ViewBag.Title = "RoomIndex";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="../../Images/Booking rooms.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>ROOM BOOKINGS MANAGEMENT SYSTEM</h2>

2
RMIS
RESOURCE MAINTENANCE AND
</td>
</tr>
<tr>
<td>@Html.TextBox("BkId", null, new { @class = "search", placeholder = "Enter
RoomBooking Id" })</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>
}
</div>
<div>
<tableborder="1"cellpadding="1"cellspacing="1"class="tablestyle">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Booking Id")</th>
<th>@Html.Label("Resource Name")</th>
<th>@Html.Label("Resource Type")</th>
<th>@Html.Label("Fare")</th>
<th>@Html.Label("Check In Date")</th>
<th>@Html.Label("Check Out Date")</th>
<th>@Html.Label("Customer Name")</th>
<th>@Html.Label("Mobile ")</th>
<th>@Html.Label("Email Id")</th>
<th>@Html.Label("Address")</th>
<th>@Html.Label("Payment")</th>
<th>@Html.Label("Due payment")</th>
<th>@Html.Label("Mode of Payment")</th>
<th>@Html.Label("RoomId")</th>
<thcolspan="3">@Html.Label("Actions")</th>
</tr>

@foreach (var item in Model)


{
<trclass="textstyle">
<td>@Html.DisplayFor(modelitem => item.BkId)</td>
<td>@Html.DisplayFor(modelitem => item.Rnm)</td>
<td>@Html.DisplayFor(modelitem => item.Type)</td>
<td>@Html.DisplayFor(modelitem => item.Fare)</td>
<td>@Html.DisplayFor(modelitem => item.Chkndat)</td>
<td>@Html.DisplayFor(modelitem => item.Chotdat)</td>
<td>@Html.DisplayFor(modelitem => item.Custnm)</td>
<td>@Html.DisplayFor(modelitem => item.Mob)</td>
<td>@Html.DisplayFor(modelitem => item.Email)</td>
<td>@Html.DisplayFor(modelitem => item.Addr)</td>
<td>@Html.DisplayFor(modelitem => item.Payment)</td>
<td>@Html.DisplayFor(modelitem => item.Due)</td>
<td>@Html.DisplayFor(modelitem => item.Mode)</td>
<td>@Html.DisplayFor(modelitem => item.RoomId)</td>
<td>@Html.ActionLink("Show", "RoomDetails", new { id = item.BkId })</td>
<td>@Html.ActionLink("Edit", "RoomEdit", new { id = item.BkId})</td>
<td>@Html.ActionLink("Delete", "RoomDelete", new { id = item.BkId })</td>

</tr>
}
</table>
</div>

2
RMIS
RESOURCE MAINTENANCE AND

ViewName: RoomEdit.cshtml
@model RMIS.Models.RoomBooking
@{
ViewBag.Title = "RoomEdit";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="../../Images/Booking rooms.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>UPDATE THE BOOKING ROOM DETAILS</h2>
</td>
</tr>
</table>
</div>

@using (Html.BeginForm())
{
<divclass="textstyle">
<tableclass="tablestyle">

<tr>
<td>@Html.Label("Booking Id")</td>
<td>@Html.EditorFor(model => model.BkId)</td>
<td>@Html.Label("Resource Name")</td>
<td>@Html.EditorFor(model => model.Rnm)</td>
</tr>

<tr>
<td>@Html.Label("Booking Type")</td>
<td>@Html.EditorFor(model => model.Type)</td>
<td>@Html.Label("Fare")</td>
<td>@Html.EditorFor(model => model.Fare)</td>

</tr>

<tr>
<td>@Html.Label("Checkin Date")</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.EditorFor(model => model.Chkndat)</td>
<td>@Html.Label("Chekckout Date")</td>
<td>@Html.EditorFor(model => model.Chotdat)</td>
</tr>

<tr>
<td>@Html.Label("Customer Name")</td>
<td>@Html.EditorFor(model => model.Custnm)</td>
<td>@Html.Label("Mobile Number")</td>
<td>@Html.EditorFor(model => model.Mob)</td>

</tr>

<tr>
<td>@Html.Label("Email Id")</td>
<td>@Html.EditorFor(model => model.Email)</td>
<td>@Html.Label("Address")</td>
<td>@Html.EditorFor(model => model.Addr)</td>

</tr>

<tr>

<td>@Html.Label("Recieved Payment")</td>
<td>@Html.EditorFor(model => model.Payment)</td>
<td>@Html.Label("Due Payment")</td>
<td>@Html.EditorFor(model => model.Due)</td>

</tr>

<tr>
<td>@Html.Label("Mode of Payment")</td>
<td>@Html.EditorFor(model => model.Mode)</td>
<td>@Html.Label("Room Id")</td>
<td>@Html.EditorFor(model => model.RoomId)</td>
</tr>

<trclss="textstyle">
<tdcolspan="2"style="text-
align:center"><inputtype="submit"value="UPDATE"class="button"/></td>
<tdcolspan="2"style="text-align:center">@Html.ActionLink("Cancel", "RoomIndex")</td>

</tr>

</table>
</div>
}

ViewName: RoomDelete.cshtml
@model RMIS.Models.RoomBooking
@{
ViewBag.Title = "RoomDelete";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

2
RMIS
RESOURCE MAINTENANCE AND

<div>
<table>
<tr>
<tdcolspan="4">
<imgsrc="../../Images/Booking rooms.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>DO YOU REALLY WANT TO DELETE THIS RECORD ??????????</h2>
</td>
</tr>
</table>
</div>

@using (Html.BeginForm(new { id = Model.BkId }))


{

<div>

<tableborder="1"cellpadding="1"cellspacing="1"class="tablestyle">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Booking Id")</th>
<th>@Html.Label("Resource Name")</th>
<th>@Html.Label("Resource Type")</th>
<th>@Html.Label("Fare")</th>
<th>@Html.Label("Check In Date")</th>
<th>@Html.Label("Check Out Date")</th>
<th>@Html.Label("Customer Name")</th>
<th>@Html.Label("Mobile ")</th>
<th>@Html.Label("Email Id")</th>
<th>@Html.Label("Address")</th>
<th>@Html.Label("Payment")</th>
<th>@Html.Label("Due payment")</th>
<th>@Html.Label("Mode of Payment")</th>
<th>@Html.Label("RoomId")</th>
</tr>

<tr>
<td>@Html.DisplayFor(model => model.BkId)</td>
<td>@Html.DisplayFor(model => model.Rnm)</td>
<td>@Html.DisplayFor(model => model.Type)</td>
<td>@Html.DisplayFor(model => model.Fare)</td>
<td>@Html.DisplayFor(model => model.Chkndat)</td>
<td>@Html.DisplayFor(model => model.Chotdat)</td>
<td>@Html.DisplayFor(model => model.Custnm)</td>
<td>@Html.DisplayFor(model => model.Mob)</td>
<td>@Html.DisplayFor(model => model.Email)</td>
<td>@Html.DisplayFor(model => model.Addr)</td>
<td>@Html.DisplayFor(model => model.Payment)</td>
<td>@Html.DisplayFor(model => model.Due)</td>
<td>@Html.DisplayFor(model => model.Mode)</td>
<td>@Html.DisplayFor(model => model.RoomId)</td>
</tr>

</table>

</div>
<div>
<tableclass="tablestyle">
<trclass="textstyle">
<tdcolspan="2"style="text-align:center"><inputtype="submit"value="Delete"class="button"/></td>

2
RMIS
RESOURCE MAINTENANCE AND
<tdcolspan="2 "style="text-align:center">@Html.ActionLink("Cancel", "RoomIndex")</td>

</tr>
</table>
</div>

ViewName: TrackRevnue.cshtml
@model IEnumerable<RMIS.Models.RoomBooking>
@{
ViewBag.Title = "TrackRevenue";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<scripttype="text/javascript">
function track()
{
var x = document.getElementById('Due').value;//fetch value
if ((parseInt(x) <= 0))
{
alert('Payment has been received')//message
}

else
{
alert('You have Due Payment' +x)//message
}

window.onload=function()
{
if(@Session["check"]==1)
{
document.getElementById("d1").style.visibility = "hidden";//label hidden on
pageload
}

else
{
document.getElementById("d1").style.visibility="visible";//label visible on
pageload
}
}

</script>

<div>
@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>

2
RMIS
RESOURCE MAINTENANCE AND

2
RMIS
RESOURCE MAINTENANCE AND
<tdcolspan="4">
<imgsrc="../../Images/Booking rooms.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>ROOM BOOKINGS MANAGEMENT SYSTEM</h2>
</td>
</tr>
<tr>
<td>@Html.TextBox("BkId", null, new { @class = "search", placeholder = "Enter
RoomBooking Id" })</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>
}
</div>

<divclass="textstyle"id="d1">

<tableclass="tablestyle">
<tr>
<td>@Html.Label("Booking Id ")</td>
<td>@ViewBag.BkId</td>
<td>@Html.Label("Resource Name ")</td>
<td>@ViewBag.Rnm</td>
</tr>
<tr>
<td>@Html.Label("Type ")</td>
<td>@ViewBag.Type</td>
<td>@Html.Label("Fare ")</td>
<td>@ViewBag.Fare</td>
</tr>
<tr>
<td>@Html.Label("Check In date ")</td>
<td>@ViewBag.Chkndat</td>
<td>@Html.Label("Check out Date ")</td>
<td>@ViewBag.Chotdat</td>
</tr>
<tr>
<td>@Html.Label("Customer Name")</td>
<td>@ViewBag.Custnm</td>
<td>@Html.Label("Mobile Number ")</td>
<td>@ViewBag.Mob</td>
</tr>
<tr>
<td>@Html.Label("Email Id ")</td>
<td>@ViewBag.Email</td>
<td>@Html.Label("Address ")</td>
<td>@ViewBag.Addr</td>
</tr>
<tr>
<td>@Html.Label("Payment ")</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td><inputtype="text"style="border:none; font-family:'Bookman Old Style'; font-
size:medium"id="Pay"name="Payment"value="@ViewBag.Payment"/></td>

<td>@Html.Label("Due ")</td>
<td><inputtype="text"style="border:none; font-family:'Bookman Old Style'; font-
size:medium"id="Due"name="Due"value="@ViewBag.Due"/></td>

</tr>
<tr>
<td>@Html.Label("Mode ")</td>
<td>@ViewBag.Mode</td>
<td>@Html.Label("RoomId")</td>
<td>@ViewBag.RoomId</td>

<tr>

<trstyle="text-align:center">
<tdcolspan="4">
<inputtype="submit"value="TRACK"onclick="track()"class="button"/>
</td>

</tr>
</table>
</div>

ViewName: AddService.cshtml
@model IEnumerable<RMIS.Models.Service>
@{
ViewBag.Title = "AddService";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Servicebanner.png"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>SERVICE MANAGEMENT SYSTEM</h2>
</td>
</tr>
<tr>
<td>@Html.Label("Service Id")</td>
<td><inputtype="number"name="ServId"value="@Session["ServId"]"class="box"/></td>
<td>@Html.Label("Service Name")</td>
<td>@Html.DropDownList("Name", newSelectList(new[] { "Software Service", "Hardware
Service", "Electrical Service", "Vehicle Service", "Room Service" }))</td>

2
RMIS
RESOURCE MAINTENANCE AND
</tr>

<tr>
<td>@Html.Label("Service Type")</td>
<td>@Html.DropDownList("Type", newSelectList(new[] { "Repair", "Maintenance", "Repair
And Maintenance" }))</td>
<td>@Html.Label("Resource Name")</td>
<td>@Html.DropDownList("Rnm", newSelectList(new[] { "Computer", "Printer", "Ac", "Fan",
"Kettle", "Sunrise", "WhiteHouse", "Tata Indica", "Maruti Suzuki", }))</td>
</tr>

<tr>
<td>@Html.Label(" Service Agency")</td>
<td>
@Html.DropDownList("Agency", newSelectList(new[] { "Imperial Rooms Services", "Oberoi
Rooms Services", "Radison Rooms Services", "Diamond Rooms Services",
"Bajaj Electric Solution", "Anchor Electric Solution", "Philips Electric", "Havells Electric
Solution",
"Dell Computers Ltd ", "HP Computers Ltd", "Acer Computers Ltd", "Lenovo Computers Ltd",
"Maruti Suzuki Services", "Mahindra Services", "Tata Motors Services", "Honda Services",

}))</td>
<td>@Html.Label("Engineer Name")</td>
<td><inputtype="text"name="Engnm"requiredonkeypress="return
Charvalidate(event)"placeholder="Engineer Name"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Engineer Visit Date")</td>
<td><inputtype="date"name="Visitdate"class="box"required/></td>
<td>@Html.Label("Device Return Date")</td>
<td><inputtype="date"name="Returndate"class="box"required/></td>

</tr>

<tr>

<td>@Html.Label("Service Status")</td>
<td>@Html.DropDownList("Status", newSelectList(new[] { "Completed ", "Incomplete"
}))</td>
<td>@Html.Label("Service Charge")</td>
<td><inputtype="number"name="Cost"requiredclass="box"placeholder="Service
Charge"/></td>

</tr>

<tr>
<td>@Html.Label("Service Payment")</td>
<td>@Html.DropDownList("Pymnt", newSelectList(new[] { "From Warnty ", "From
Subscription" }))</td>
<td>@Html.Label("Resource Id")</td>
<td><inputtype="number"name="EqpId"placeholder="Enter Resource
Id"requiredonkeypress="return Numvalidate(event)"class="box"/></td>
</tr>

<trclass="textstyle">

2
RMIS
RESOURCE MAINTENANCE AND
<tdcolspan="4"><inputtype="submit"value="Save"class="button"/></td>
<tdcolspan="4">@ViewBag.Message</td>
</tr>
</table>

ViewName: ServiceIndex.cshtml
@model IEnumerable<RMIS.Models.Service>

@{
ViewBag.Title = "ServiceIndex";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
@using (Html.BeginForm())
{
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Servicebanner.png"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>SERVICE MANAGEMENT SYSTEM</h2>
</td>
</tr>
<tr>
<td>@Html.TextBox("ServId", null, new { @class = "search", placeholder = "Enter Service Id"
})</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>
}
</div>

<div>
<tableborder="1"cellpadding="1"cellspacing="1">

<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Service Id")</th>
<th>@Html.Label("Service Name")</th>
<th>@Html.Label("Service Type ")</th>
<th>@Html.Label("Resource Name")</th>
<th>@Html.Label("Service Agency ")</th>
<th>@Html.Label("Engineer Name")</th>
<th>@Html.Label("Visit Date ")</th>
<th>@Html.Label("Return Date")</th>
<th>@Html.Label("Service Status")</th>
<th>@Html.Label("Service Charge")</th>
<th>@Html.Label("Payment From")</th>

2
RMIS
RESOURCE MAINTENANCE AND
<th>@Html.Label("Resource Id")</th>
<thcolspan="3">@Html.Label("Actions")</th>
</tr>

@foreach (var item in Model)


{
<trclass="textstyle">
<td>@Html.DisplayFor(modelitem => item.ServId)</td>
<td>@Html.DisplayFor(modelitem => item.Name)</td>
<td>@Html.DisplayFor(modelitem => item.Type)</td>
<td>@Html.DisplayFor(modelitem => item.Rnm)</td>
<td>@Html.DisplayFor(modelitem => item.Agency)</td>
<td>@Html.DisplayFor(modelitem => item.Engnm)</td>
<td>@Html.DisplayFor(modelitem => item.Visitdate)</td>
<td>@Html.DisplayFor(modelitem => item.Returndate)</td>
<td>@Html.DisplayFor(modelitem => item.Status)</td>
<td>@Html.DisplayFor(modelitem => item.Cost)</td>
<td>@Html.DisplayFor(modelitem => item.Pymnt)</td>
<td>@Html.DisplayFor(modelitem => item.EqpId)</td>
<td>@Html.ActionLink("Show", "ServiceDetails", new { id = item.ServId })</td>
<td>@Html.ActionLink("Edit", "ServiceEdit", new { id = item.ServId })</td>
<td>@Html.ActionLink("Delete", "ServiceDelete", new { id = item.ServId })</td>
</tr>
}
</table>
</div>

ViewName: ServiceEdit.cshtml

@model RMIS.Models.Service
@{
ViewBag.Title = "ServiceEdit";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

@using (Html.BeginForm())
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Servicebanner.png"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>SERVICE-EDIT</h2>
</td>
</tr>
<tr>
<td>@Html.Label("Service Id")</td>
<td>@Html.EditorFor(model => model.ServId, null,new { @class = "box" })</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.Label("Service Name")</td>
<td>@Html.EditorFor(model => model.Name)</td>

</tr>

<tr>
<td>@Html.Label("Service Type")</td>
<td>@Html.EditorFor(model => model.Type)</td>
<td>@Html.Label("Resource Name")</td>
<td>@Html.EditorFor(model => model.Rnm)</td>

</tr>

<tr>

<td>@Html.Label("Service Agency")</td>
<td>@Html.EditorFor(model => model.Agency)</td>
<td>@Html.Label("Enginner Name")</td>
<td>@Html.EditorFor(model => model.Engnm)</td>
</tr>

<tr>

<td>@Html.Label("Visit Date")</td>
<td>@Html.EditorFor(model => model.Visitdate)</td>
<td>@Html.Label("Return Date")</td>
<td>@Html.EditorFor(model => model.Returndate)</td>
</tr>

<tr>
<td>@Html.Label("Service Status")</td>
<td>@Html.EditorFor(model => model.Status)</td>
<td>@Html.Label("Service Cost")</td>
<td>@Html.EditorFor(model => model.Cost)</td>
</tr>

<tr>
<td>@Html.Label("Service Payment")</td>
<td>@Html.EditorFor(model => model.Pymnt)</td>
<td>@Html.Label("Resource Id")</td>
<td>@Html.EditorFor(model => model.EqpId)</td>

</tr>

<trstyle="text-align:center">
<tdcolspan="2"><inputtype="submit"value="Update"class="button"/></td>
<tdcolspan="2">@Html.ActionLink("Cancel", "ServiceIndex")</td>

</tr>

</table>

2
RMIS
RESOURCE MAINTENANCE AND

ViewName: ServiceDelete.cshtml

@model RMIS.Models.Service
@{
ViewBag.Title = "ServiceDelete";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Servicebanner.png"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>DO YOU REALLY WANT TO DELETE THE RECORD</h2>
</td>

</table>
</div>

@using (Html.BeginForm(new { id = Model.ServId }))


{

<div>

<tableborder="1"cellpadding="1"cellspacing="1"class="tablestyle">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Service Id")</th>
<th>@Html.Label("Service Name")</th>
<th>@Html.Label("Service Type")</th>
<th>@Html.Label("Resource Name")</th>
<th>@Html.Label("Service Agency")</th>
<th>@Html.Label("Engineer Name")</th>
<th>@Html.Label(" Visit Date")</th>
<th>@Html.Label("Return Date")</th>
<th>@Html.Label("Service Status")</th>
<th>@Html.Label("Service Cost")</th>
<th>@Html.Label("Payment Through")</th>
<th>@Html.Label("Resource Id")</th>

</tr>

<trclass="textstyle">
<td>@Html.DisplayFor(model => model.ServId)</td>
<td>@Html.DisplayFor(model => model.Name)</td>
<td>@Html.DisplayFor(model => model.Type)</td>

2
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.DisplayFor(model => model.Rnm)</td>
<td>@Html.DisplayFor(model => model.Agency)</td>
<td>@Html.DisplayFor(model => model.Engnm)</td>
<td>@Html.DisplayFor(model => model.Visitdate)</td>
<td>@Html.DisplayFor(model => model.Returndate)</td>
<td>@Html.DisplayFor(model => model.Status)</td>
<td>@Html.DisplayFor(model => model.Cost)</td>
<td>@Html.DisplayFor(model => model.Pymnt)</td>
<td>@Html.DisplayFor(model => model.EqpId)</td>
</tr>

</table>

</div>
<div>
<tableclass="tablestyle">
<trstyle="text-align:center"class="tablestyle">
<tdcolspan="2"><inputtype="submit"value="Delete"class="button"/></td>
<tdcolspan="2">@Html.ActionLink("Cancel", "ServiceIndex")</td>

</tr>
</table>
</div>

ViewName: ServiceById.cshtml

@model IEnumerable<RMIS.Models.Service>
@{
ViewBag.Title = "ServiceById";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<scripttype="text/javascript">
Window.onload=function()
{
if(@Session["check"]==1)
{
document.getElementById("d1").style.visibility="hidden";//to hide lables on
pageload

else
{
document.getElementById("d2").style.visibility="visible";//show label after pageload
}
}
</script>

<div>
@using (Html.BeginForm())
{
<tableclass="tablestyle">
<tr>

2
RMIS
RESOURCE MAINTENANCE AND
<tdcolspan="4">
<imgsrc="~/Images/Servicebanner.png"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>SEARCH SERVICE BY ID</h2>
</td>
</tr>
<tr>
<td>@Html.TextBox("ServId", null, new { @class = "search", placeholder = "Enter Service Id"
})</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>
}
</div>

<divclass="textstyle">

<tableclass="tablestyle">
<tr>
<td>@Html.Label("Service Name ")</td>
<td>@ViewBag.Name</td>
<td>@Html.Label("Service Type ")</td>
<td>@ViewBag.Type</td>
</tr>
<tr>
<td>@Html.Label("Resource Name ")</td>
<td>@ViewBag.Rnm</td>
<td>@Html.Label("Service Agency ")</td>
<td>@ViewBag.Agency</td>

</tr>
<tr>
<td>@Html.Label("Engineer Name ")</td>
<td>@ViewBag.Engnm</td>
<td>@Html.Label("Visit Date")</td>
<td>@ViewBag.Visitdate</td>
</tr>

<tr>
<td>@Html.Label("Return Date ")</td>
<td>@ViewBag.Returndate</td>
<td>@Html.Label("Resource Id ")</td>
<td>@ViewBag.EqpId</td>

</tr>
</table>

</div>

2
RMIS
RESOURCE MAINTENANCE AND

ViewName: Stafflogin.cshtml

@model IEnumerable<RMIS.Models.Staff>
@{

Layout = "~/Views/Shared/BeforeStaffLogin.cshtml";
ViewBag.Title = "StaffLogin";
}

<html>
<head>
<scriptsrc="https://code.jquery.com/jquery-1.9.1.js"></script>
<script>
$(function() {

if (localStorage.chkbx && localStorage.chkbx != '') { //local storage is more


powerfule features then cookies
$('#remember_me').attr('checked', 'checked');
$('#user').val(localStorage.usrname);
$('#pas').val(localStorage.pass);
} else {
$('#remember_me').removeAttr('checked'); //The removeAttr() method
removes one or more attributes from the selected elements.
$('#user').val('');
$('#pas').val('');
}

$('#remember_me').click(function() {

if ($('#remember_me').is(':checked')) {
// save username and password
localStorage.usrname = $('#user').val();
localStorage.pass = $('#pas').val();
localStorage.chkbx = $('#remember_me').val();
} else {
localStorage.usrname = '';
localStorage.pass = '';
localStorage.chkbx = '';
}
});
});

function Captcha(){
var alpha = new
Array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T',
'U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p
','q','r','s','t','u','v','w','x','y','z');
var i;
for (i=0;i<6;i++){
var a = alpha[Math.floor(Math.random() *
alpha.length)]; var b = alpha[Math.floor(Math.random()
* alpha.length)]; var c =
alpha[Math.floor(Math.random() * alpha.length)]; var d
= alpha[Math.floor(Math.random() * alpha.length)];
}
var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d;
document.getElementById("mainCaptcha").value = code
}

3
RMIS
RESOURCE MAINTENANCE AND

3
RMIS
RESOURCE MAINTENANCE AND
function ValidCaptcha(){
var string1 = removeSpaces(document.getElementById('mainCaptcha').value);
var string2 = removeSpaces(document.getElementById('txtInput').value);
if (string1 == string2){

}
else{
alert('Please Enter Valid Captcha Code')
}
}
</script>
</head>
<bodyonload="Captcha();">
<div><table><tr>
<tdcolspan="2"><imgsrc="../../Images/login.jpg"height="175"width="1325"/></td></tr></t
able>
</div>
@using (Html.BeginForm())
{
<divstyle="text-align:center">
<tableclass="tablestyle"><tr>
<tdrowspan="7">
<imgsrc="../../Images/users loginimage.png"/></td>

<td>@Html.Label("Enter UserName")</td>
<td>
<inputtype="text"name="Usernm"placeholder="Enter
UserName"class="box"id="user"onclick="cookies()"/>
</tr>
<tr>
<td>@Html.Label("Enter Password")</td>
<td><inputtype="password"name="Paswd"placeholder="Enter Your
Password"class="box"id="pas"onclick="cookies()"/></tr></tr>
<tr><td>
<inputtype="text"id="mainCaptcha"style="background-color:aqua; font-size:xx-
large"class="auto-style1"></td>
<td><inputtype="text"id="txtInput"onblur="ValidCaptcha()"requiredclass="box"placeholde
r="Enter Captcha Code></td></tr>
<tr>
<td>
<inputtype="checkbox"value="remember-me"id="remember_me"> Remember
</td>
</tr>
<tr>
<td><inputtype="submit"value="Login"class="button"/></td>
<tdstyle="text-decoration:none"><ahref="/Admin/forgetPassword">ForgetPassword</a></td>
</tr>
<tr>
<tdcolspan="2">
@ViewBag.Message
</td>
</tr>
</table>
</div>
}

</body>
</html>

3
RMIS
RESOURCE MAINTENANCE AND

ViewName: ViewProfile.cshtml
@model IEnumerable<RMIS.Models.Staff>
@{
ViewBag.Title = "ViewProfile";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<div>

<tableclass="tablestyle">

<tr>
<tdcolspan="6"><imgsrc="../../Images/Profile.jpg"height="200"width="1345"/></td>
</tr>

<tr>
<tdrowspan="8"style="text-align:center">

<imgsrc="@Url.Content(Session["Photo"].ToString())"height="200"width="150"alt="Image"/>
</td>

</tr>

<tr>
<td>@Html.Label("Employee Id")</td>
<td>@Session["Id"]</td>
<td>@Html.Label("Your UserName")</td>
<td>@Session["user"]</td>
</tr>

<tr>

<td>@Html.Label(" Your Name")</td>


<td>@Session["Name"]</td>
<td>@Html.Label("Your Password")</td>
<td>@Session["Paswd"]</td>

</tr>
<tr>
<td>@Html.Label(" Your Date of Birth")</td>
<td>@Session["Dob"]</td>
<td>@Html.Label(" Sex")</td>
<td>@Session["Sex"]</td>

</tr>
<tr>
<td>@Html.Label(" Qualification")</td>
<td>@Session["Qualification"]</td>
<td>@Html.Label(" Your Profile")</td>
<td>@Session["Profile"]</td>
</tr>
<tr>
<td>@Html.Label(" Your Current CTC")</td>
<td>@Session["Salary"]</td>

3
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.Label(" Your Contact Details")</td>
<td>@Session["Mob"]</td>
</tr>
<tr>
<td>@Html.Label("EmailId")</td>
<td>@Session["Email"]</td>
<td>@Html.Label(" Your Date Of Joining")</td>
<td>@Session["Dob"]</td>
</tr>

<tr>
<td>@Html.Label(" Your Addr")</td>
<td>@Session["Addr"]</td>

</table>
</div>

ViewName: ChangePassword.cshtml
@model RMIS.Models.Staff
@{
ViewBag.Title = "ChangePassword";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}
<div>
<tableclass="tablestyle">
<tr>
<tdcolspan="3"><imgsrc="../../Images/changepasswordbanner.png"height="200"width="13
45"/></td>
</tr>
</table>
</div>

@using (Html.BeginForm())
{
<divclass="textstyle">
<tableclass="tablestyle">
<tr>
<tdrowspan="4">
<imgsrc="../../Images/changepassword.jpg"/>

</td>
<td>@Html.Label("Enter Your Old Password")</td>
<td><inputtype="password"name="Paswd"placeholder="Enter Your Old
Password"class="box"/></td>

</tr>

<tr>
<td>@Html.Label("Enter New Password")</td>
<td><inputtype="password"id="Pass"name="newPaswd"placeholder="Enter Your New
Password"class="box"
</tr>

<tr>
<td>@Html.Label("Confirm Password")</td>

3
RMIS
RESOURCE MAINTENANCE AND
<td><inputtype="password"id="Conf"placeholder="Confirm Your
Password"onblur="comparevalidate()"class="box"/>

</tr>
<trclass="textstyle">
<tdcolspan="2"style="text-
align:center"><inputtype="submit"value="Update"class="button"/>@ViewBag.Message</td>
</tr>
</table>
</div>
}

ViewName: ForgetPassword.cshtml
@model IEnumerable<RMIS.Models.Staff>
@{
ViewBag.Title = "forgetPassword";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}
<div>
<table>
<tr>

<tdcolspan="2"><imgsrc="../../Images/forgotpassword.jpg"height="200"width="1315"/></t
d>
</tr>
</table>
</div>
@using (Html.BeginForm())
{
<divclass="textstyle">
<tableclass="tablestyle">
<tr>
<tdrowspan="4">
<imgsrc="../../Images/forgetpasswords.png"height="200"/>
</td>
<td>@Html.Label("Provide Your Registered EmailId" )</td>

</tr>
<tr>
<tdstyle="text-align:left"><inputtype="text"name="Email"placeholder="Enter Your
EmailId"class="box"/>
</tr>
<tr>
<tdcolspan="2"style="align-
content:center;"><inputtype="submit"value="Submit"class="button"/></td>
</tr>
<tr>
<td>@ViewBag.Message</td>
</tr>
</table>

</div>
}

ViewName: Feedback.cshtml

3
RMIS
RESOURCE MAINTENANCE AND
@model IEnumerable<RMIS.Models.Staff>
@{
ViewBag.Title = "Feedback";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<div>
<table>
<tr>
<td><imgsrc="~/Images/Feedbacks.jpg"height="200"width="1345"/></td>
</tr>
</table>
</div>
<divclass="textstyle">
@using (Html.BeginForm())
{
<tableclass="tablestyle">
<tr>
<tdrowspan="4">
<imgsrc="../../Images/Your Emails.png"width="350"height="200"/>
</td>
<td>@Html.Label("To")</td>
<td><inputtype="text"name="Email"placeholder="Provide Receipiant
EmailId"class="box"id="Email"onblur="checkEmail()"/></td>
</tr>

<tr>
<td>@Html.Label("Subject")</td>
<td><inputtype="text"name="Subject"placeholder="Provide Subject Title"class="box"/></td>
</tr>

<tr>
<td>@Html.Label(" Your Message")</td>
<td>@Html.TextArea("Message", null, new{@class="box" ,placeholder=" Write Your
Message"})</td>
</tr>

<tr>
<td><inputtype="submit"value="Send"class="button"/>@ViewBag.Message</td>

</tr>

</table>
}

</div>

ViewName: AddCab.cshtml
@model IEnumerable<RMIS.Models.VehicleBooking>
@{

3
RMIS
RESOURCE MAINTENANCE AND
ViewBag.Title = "AddCab";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<scripttype="text/javascript">
function calc() {
var x = document.getElementById('K').value;

var y = (parseInt(x))*10;
if (!isNaN(x)) {
document.getElementById('F').value = y;
}

function fare() {
var x = document.getElementById('F').value;
var y = document.getElementById('P').value;
var z = (parseInt(x)) - (parseInt(y));
if (!isNaN(x)) {
document.getElementById('D').value = z;
}
}

</script>

@using (Html.BeginForm())
{

<tableclass="tablestyle">
<trclass="textstyle">
<tdcolspan="4"><h2>VEHICLE BOOKING</h2></td>
</tr>
<tr>
<td>@Html.Label("VehicleId")</td>
<td><inputtype="number"name="BkId"value="@Session["BkId"]"class="box"/></td>
<td>@Html.Label("Resource Name")</td>
<td>@Html.DropDownList("Rnm", newSelectList(new[] { "Vehicle", "Rooms" }))</td>
</tr>

<tr>
<td>@Html.Label("Booking Date")</td>
<td><inputtype="date"name="Date"id="d1"class="box"placeholder="Booking Date"/></td>
<td>@Html.Label("Pickup Point")</td>
<td>@Html.DropDownList("Pickup", newSelectList(new[] { "Manglam ", "Laxminagar ",
"PreetVihar ", "MayurVihar ", "Trilokpuri ", }))</td>

</tr>

<tr>
<td>@Html.Label("Drop Point")</td>
<td>@Html.DropDownList("Drp", newSelectList(new[] { "Manglam ", "Laxminagar ",
"PreetVihar ", "MayurVihar ", "Trilokpuri ", }))</td>
<td>@Html.Label("Distance In Kms")</td>
<td><inputtype="text"name="Km"id="K"onkeyup="calc()"class="box"placeholder="Total
Distance"onkeypress="return Numvalidate(event)"/></td>
</tr>

3
RMIS
RESOURCE MAINTENANCE AND
<tr>
<td>@Html.Label("Fare ")</td>
<td><inputtype="number"name="Fare"id="F"class="box"placeholder="Total Fare"/></td>
<td>@Html.Label("Customer Name")</td>
<td><inputtype="text"name="Custnm"onkeypress="return
Charvalidate(event)"class="box"placeholder="Customer Name"/></td>

</tr>

<tr>
<td>@Html.Label("Mobile Number")</td>
<td><inputtype="text"name="Mob"class="box"placeholder="Mobile
Number"onkeypress="return Numvalidate(event)"/></td>
<td>@Html.Label("Email Id")</td>
<td><inputtype="email"name="Email"id="Email"onblur="checkEmail()"class="box"placehold
er="Email Id"/></td>
</tr>

<tr>
<td>@Html.Label("Total Payment")</td>
<td><inputtype="text"id="P"name="Payment"onkeyup="fare()"onkeypress="return
Numvalidate(event)"class="box"placeholder="Total Payment"/></td>
<td>@Html.Label("Due Payment")</td>
<td><inputtype="number"id="D"name="Due"class="box"placeholder="Due Payment"/></td>
</tr>

<tr>
<td>@Html.Label("Mode of Payment")</td>
<td>@Html.RadioButton("Mode", "Cash", true) Cash</td>
<td>@Html.RadioButton("Mode", "Card", false) Card</td>
</tr>

<tr>
<td>@Html.Label("Address")</td>
<td>@Html.TextArea("Addr" , null, new{ @class = "box",placeholder = "Provide
Address"})</td>
<td>@Html.Label("Vehicle Id")</td>
<td><inputtype="number"name="VehicleId"onkeypress="return
Numvalidate(event)"class="box"placeholder="Vehicle Id"/></td>
</tr>

<trclass="textstyle">
<tdcolspan="4"><inputtype="submit"value="Save"id="submit"class="button"/></td>
<tdcolspan="4">@ViewBag.Message</td>
</tr>
</table>
}
ViewName: CabIndex.cshtml
@model IEnumerable<RMIS.Models.VehicleBooking>
@{
ViewBag.Title = "CabIndex";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
@using (Html.BeginForm())

3
RMIS
RESOURCE MAINTENANCE AND
{
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Vehicles Booking.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>VEHICLES BOOKINGS MANAGEMENT SYSTEM</h2>
</td>
</tr>
<tr>
<td>@Html.TextBox("BkId", null, new { @class = "search", placeholder = "Enter Vehilces
Booking Id" })</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>
}
</div>
<div>

<tableborder="1"cellpadding="1"cellspacing="1"class="tablestyle">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Booking Id")</th>
<th>@Html.Label("Resource Name")</th>
<th>@Html.Label("Booking Date")</th>
<th>@Html.Label("Distance In Kms")</th>
<th>@Html.Label("Fare ")</th>
<th>@Html.Label("Customer Name")</th>
<th>@Html.Label("Mobile ")</th>
<th>@Html.Label("Email Id")</th>
<th>@Html.Label("Address")</th>
<th>@Html.Label("Payment")</th>
<th>@Html.Label("Due payment")</th>
<th>@Html.Label("Mode of Payment")</th>
<th>@Html.Label("VehicleId")</th>
<thcolspan="3">@Html.Label("Actions")</th>
</tr>

@foreach (var item in Model)


{
<trclass="tablestyle">
<td>@Html.DisplayFor(modelitem => item.BkId)</td>
<td>@Html.DisplayFor(modelitem => item.Rnm)</td>
<td>@Html.DisplayFor(modelitem => item.Date)</td>
<td>@Html.DisplayFor(modelitem => item.Km)</td>
<td>@Html.DisplayFor(modelitem => item.Fare)</td>
<td>@Html.DisplayFor(modelitem => item.Custnm)</td>
<td>@Html.DisplayFor(modelitem => item.Mob)</td>
<td>@Html.DisplayFor(modelitem => item.Email)</td>
<td>@Html.DisplayFor(modelitem => item.Addr)</td>
<td>@Html.DisplayFor(modelitem => item.Payment)</td>
<td>@Html.DisplayFor(modelitem => item.Due)</td>
<td>@Html.DisplayFor(modelitem => item.Mode)</td>

3
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.DisplayFor(modelitem => item.VehicleId)</td>
<td>@Html.ActionLink("Show", "CabDetails", new { id = item.BkId })</td>
<td>@Html.ActionLink("Edit", "CabEdit", new { id = item.BkId })</td>
<td>@Html.ActionLink("Delete", "CabDelete", new { id = item.BkId })</td>

</tr>
}
</table>

</div>

ViewName: CabEdit.cshtml
@model RMIS.Models.VehicleBooking
@{
ViewBag.Title = "CabEdit";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Vehicles Booking.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>UPDATE BOOKING DETAILS</h2>
</td>
</tr>
</table>
</div>

@using (Html.BeginForm())
{
<divclass="textstyle">
<tableclass="tablestyle">

<tr>
<td>@Html.Label("Booking Id")</td>
<td>@Html.EditorFor(model => model.BkId)</td>
<td>@Html.Label("Resource Name")</td>
<td>@Html.EditorFor(model => model.Rnm)</td>
</tr>

<tr>
<td>@Html.Label("Booking Date")</td>
<td>@Html.EditorFor(model => model.Date)</td>
<td>@Html.Label("Distance In Kms")</td>
<td>@Html.EditorFor(model => model.Km)</td>
</tr>

<tr>
<td>@Html.Label("Booking Fare")</td>

3
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.EditorFor(model => model.Fare)</td>
<td>@Html.Label("Customer Name")</td>
<td>@Html.EditorFor(model => model.Custnm)</td>

</tr>

<tr>

<td>@Html.Label("Mobile Number")</td>
<td>@Html.EditorFor(model => model.Mob)</td>
<td>@Html.Label("Email Id")</td>
<td>@Html.EditorFor(model => model.Email)</td>
</tr>

<tr>
<td>@Html.Label("Address")</td>
<td>@Html.EditorFor(model => model.Addr)</td>
<td>@Html.Label("Recieved Payment")</td>
<td>@Html.EditorFor(model => model.Payment)</td>
</tr>

<tr>
<td>@Html.Label("Due Payment")</td>
<td>@Html.EditorFor(model => model.Due)</td>
<td>@Html.Label("Mode of Payment")</td>
<td>@Html.EditorFor(model => model.Mode)</td>

</tr>
<tr>
<td>@Html.Label("Room Id")</td>
<td>@Html.EditorFor(model => model.VehicleId)</td>

</tr>

<trclass="textstyle">
<tdcolspan="2"><inputtype="submit"value="UPDATE"class="button"/></td>
<tdcolspan="2">@Html.ActionLink("Cancel", "CabIndex")</td>

</tr>
</table>
</div>

ViewName: CabDelete.cshtml
@model RMIS.Models.VehicleBooking
@{
ViewBag.Title = "CabDelete";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<tableclass="tablestyle">

3
RMIS
RESOURCE MAINTENANCE AND
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Vehicles Booking.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>DO YOU REALLY WANT TO DELETE THIS RECORDS?????????????</h2>
</td>
</tr>

</table>
</div>

@using (Html.BeginForm(new { id = Model.BkId }))


{

<div>

<tableborder="1"cellpadding="1"cellspacing="1"class="textstyle">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Booking Id")</th>
<th>@Html.Label("Resource Name")</th>
<th>@Html.Label("Booking Date")</th>
<th>@Html.Label("Distance In Km")</th>
<th>@Html.Label("Booking Fare")</th>
<th>@Html.Label("Customer Name")</th>
<th>@Html.Label("Mobile ")</th>
<th>@Html.Label("Email Id")</th>
<th>@Html.Label("Address")</th>
<th>@Html.Label("Payment")</th>
<th>@Html.Label("Due payment")</th>
<th>@Html.Label("Mode of Payment")</th>
<th>@Html.Label("VehicleId")</th>
</tr>

<trclass="textstyle">
<td>@Html.DisplayFor(model => model.BkId)</td>
<td>@Html.DisplayFor(model => model.Rnm)</td>
<td>@Html.DisplayFor(model => model.Date)</td>
<td>@Html.DisplayFor(model => model.Km)</td>
<td>@Html.DisplayFor(model => model.Fare)</td>
<td>@Html.DisplayFor(model => model.Custnm)</td>
<td>@Html.DisplayFor(model => model.Mob)</td>
<td>@Html.DisplayFor(model => model.Email)</td>
<td>@Html.DisplayFor(model => model.Addr)</td>
<td>@Html.DisplayFor(model => model.Payment)</td>
<td>@Html.DisplayFor(model => model.Due)</td>
<td>@Html.DisplayFor(model => model.Mode)</td>
<td>@Html.DisplayFor(model => model.VehicleId)</td>

</tr>
</table>

</div>

3
RMIS
RESOURCE MAINTENANCE AND
<div>
<tableclass="tablestyle">
<trclass="textstyle">
<tdcolspan="2"style="text-
align:center"><inputtype="submit"value="Delete"class="button"/></td>
<tdcolspan="2"style="text-align:center">@Html.ActionLink("Cancel", "CabIndex")</td>

</tr>
</table>
</div>

ViewName: TrackRevenue.cshtml
@model IEnumerable<RMIS.Models.VehicleBooking>
@{
ViewBag.Title = "TrackRevenue";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<scripttype="text/javascript">

window.onload=function()
{
if(@Session["check"]==1)
{
document.getElementById("d1").style.visibility="hidden";//Hide lables on
pageload
}

else
{
document.getElementById("d1").style.visibility="visible";//Show label when
pageloaded
}
}

function track()
{
var x = document.getElementById('Due').value;//fetch value
if ((parseInt(x) <= 0))//apply condition
{
alert('Payment has been received')//message
}

else
{
alert('You have Due Payment' +x)//message
}

}
</script>

<div>

3
RMIS
RESOURCE MAINTENANCE AND

3
RMIS
RESOURCE MAINTENANCE AND
@using (Html.BeginForm())
{
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Vehicles Booking.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>SEARCH BOOKINGS BY ID</h2>
</td>
</tr>
<tr>
<td>@Html.TextBox("BkId", null, new { @class = "search", placeholder = "Enter Vehilces
Booking Id" })</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>
}
</div>

<divclass="textstyle"id="d1">

<tableclass="tablestyle">
<tr>
<td>@Html.Label("Booking Id ")</td>
<td>@ViewBag.BkId</td>
<td>@Html.Label("Resource Name ")</td>
<td>@ViewBag.Rnm</td>
</tr>
<tr>
<td>@Html.Label("Booking Date ")</td>
<td>@ViewBag.Date</td>
<td>@Html.Label("Distance In Kms ")</td>
<td>@ViewBag.Km</td>
</tr>
<tr>
<td>@Html.Label("Booking Fare ")</td>
<td>@ViewBag.Fare</td>
<td>@Html.Label("Customer Name")</td>
<td>@ViewBag.Custnm</td>
</tr>

<tr>
<td>@Html.Label("Mobile Number ")</td>
<td>@ViewBag.Mob</td>
<td>@Html.Label("Email Id ")</td>
<td>@ViewBag.Email</td>
</tr>

<tr>
<td>@Html.Label("Address ")</td>
<td>@ViewBag.Addr</td>
<td>@Html.Label("Payment ")</td>

3
RMIS
RESOURCE MAINTENANCE AND
<td><inputtype="text"style="border:none; font-family:'Bookman Old Style' ;font-
size:medium"id="Pay"name="Payment"value="@ViewBag.Payment"/></td>
</tr>

<tr>
<td>@Html.Label("Due")</td>
<td><inputtype="text"style="border:none; font-family:'Bookman Old Style'; font-
size:medium"id="Due"name="Due"value="@ViewBag.Due"/>
<td>@Html.Label("Mode ")</td>
<td>@ViewBag.Mode</td>
<tr>

</tr>

<tr>
<td>@Html.Label("RoomId")</td>
<td>@ViewBag.VehicleId</td>
</tr>

<tr>
<tdcolspan="4"style="text-align:center">
<inputtype="submit"value="Track"onclick="track()"class="button"/>
</td>

</tr>
</table>
</div>

ViewName: AddVehicle.cshtml

@model IEnumerable<RMIS.Models.Vehicles>
@{
ViewBag.Title = "AddVehicle";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

@using (Html.BeginForm("AddVehicle", "Vehicles", FormMethod.Post, new { enctype =


"multipart/form-data" }))
{

<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Vehicles.jpg"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>ALL VEHICLES MANAGEMENT SYSTEM</h2>
</td>
</tr>
<tr>
<td>@Html.Label("Enter Vehicle Id")</td>
<td><inputtype="text"name="VehicleId"value="@Session["VehicleId"]"/></td>

3
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.Label("Vehicle Name")</td>
<td><inputtype="text"name="Name"onkeypress="return
Charvalidate(event)"requiredplaceholder=" Vehicle Name"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Vehicle Type")</td>
<td>@Html.DropDownList("Type", newSelectList(new[] { "Cab And Taxi", "Bus", "Truck", "Pick-
up", }))</td>
<td>@Html.Label("Vehicle Price")</td>
<td><inputtype="text"name="Price"onkeypress="return
Numvalidate(event)"requiredplaceholder=" Vehicle Price"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Purchase Year")</td>
<td>@Html.DropDownList("Year", newSelectList(new[] { "2010", "2011", "2012", "2013",
"2014", "2015", }))</td>
<td>@Html.Label("Vehicle Company")</td>
<td>@Html.DropDownList("Cmp", newSelectList(new[] { "Maruti Suzuki", "Mahindra ", "Tata
Motors", "Honda", }))</td>
</tr>

<tr>
<td>@Html.Label("Vehicle Number")</td>
<td><inputtype="text"name="Cnmbr"requiredplaceholder=" Vehicle
Number"class="box"/></td>
<td>@Html.Label("No of Seats")</td>
<td><inputtype="number"name="Seats"onkeypress="return
Numvalidate(event)"requiredplaceholder="No of Seats"class="box"/></td>
</tr>

<tr>
<td>@Html.Label("Booking For")</td>
<td>@Html.RadioButton("RentFor", "Taxi", true) Taxi</td>
<td>@Html.RadioButton("Tourism", "Tourism", false) Tourism</td>
<td>@Html.RadioButton("Transport", "Transport", false) Transport</td>

</tr>

<tr>
<td>@Html.Label("Service Agency")</td>
<td>@Html.DropDownList("Agency", newSelectList(new[] { "Maruti Suzuki Services",
"Mahindra Services", "Tata Motors Services", "Honda Services", }))</td>
<td>@Html.Label("Vehicles Logo")</td>
<td><inputtype="file"name="Logo"requiredclass="box"/></td>

</tr>
<trclass="textstyle">
<tdcolspan="4"><inputtype="submit"value="Save"class="button"/></td>
<tdcolspan="4">@ViewBag.Message</td>

</tr>
</table>
}

3
RMIS
RESOURCE MAINTENANCE AND

ViewName: VehicleManage.cshtml
@model IEnumerable<RMIS.Models.Vehicles>
@{
ViewBag.Title = "VehicleManage";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
@using (Html.BeginForm())
{
<tableclass="tablestyle">
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Vehicles.jpg"width="1345"height="200"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>ALL VEHICLES MANAGEMENT SYSTEM</h2>
</td>
</tr>
<tr>
<td>@Html.TextBox("VehicleId", null, new { @class = "search", placeholder = "Enter Vehilces
Id" })</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>
</table>
}
</div>

<div>
<tableborder="1"cellpadding="1"cellspacing="1"class="tablestyle">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Vehicle Id")</th>
<th>@Html.Label("Vehicle Name")</th>
<th>@Html.Label("Vehicle Type ")</th>
<th>@Html.Label("Purchase Price")</th>
<th>@Html.Label("Purchase Year")</th>
<th>@Html.Label("No of Seats")</th>
<th>@Html.Label("Vehicle Number")</th>
<th>@Html.Label("Vehicle Company")</th>
<th>@Html.Label("Service Agency")</th>
<th>@Html.Label("Booking For")</th>
<th>@Html.Label("Vehicle Logo")</th>
<thcolspan="3">@Html.Label("Actions")</th>

</tr>

@foreach (var item in Model)


{
<trclass="textstyle">
<td>@Html.DisplayFor(modelitem => item.VehicleId)</td>

3
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.DisplayFor(modelitem => item.Name)</td>
<td>@Html.DisplayFor(modelitem => item.Type)</td>
<td>@Html.DisplayFor(modelitem => item.Price)</td>
<td>@Html.DisplayFor(modelitem => item.Year)</td>
<td>@Html.DisplayFor(modelitem => item.Seats)</td>
<td>@Html.DisplayFor(modelitem => item.Cnmbr)</td>
<td>@Html.DisplayFor(modelitem => item.Cmp)</td>
<td>@Html.DisplayFor(modelitem => item.Agency)</td>
<td>@Html.DisplayFor(modelitem => item.RentFor)</td>
<td><imgsrc="@Url.Content(@item.Logo)"height="100"width="125"alt="Image"/></td>
<td>@Html.ActionLink("Details", "VehicleDetails", new { id = item.VehicleId })</td>
<td>@Html.ActionLink("Edit", "VehicleEdit", new { id = item.VehicleId })</td>
<td>@Html.ActionLink("Delete", "VehicleDelete", new { id = item.VehicleId})</td>

</tr>
}
</table>
</div>

ViewName: VehiclesEdit.cshtml
@model RMIS.Models.Vehicles
@{
ViewBag.Title = "VehicleEdit";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<table>
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Vehicles.jpg"width="1345"height="150"/>
</td>
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>UPDATE VEHICLES DETAILS</h2>
</td>
</tr>

</table>
</div>

@using (Html.BeginForm())
{
<tableclass="tablestyle">
<tr>
<td>@Html.Label("Enter Vehicle Id")</td>
<td>@Html.EditorFor(model => model.VehicleId)</td>
<td>@Html.Label("Vehicle Namne")</td>
<td>@Html.EditorFor(model => model.Name)</td>
</tr>

<tr>

3
RMIS
RESOURCE MAINTENANCE AND
<td>@Html.Label("Vehicle Type")</td>
<td>@Html.EditorFor(model => model.Type)</td>
<td>@Html.Label("Purchase Price")</td>
<td>@Html.EditorFor(model => model.Price)</td>

</tr>

<tr>
<td>@Html.Label("Purchase Year")</td>
<td>@Html.EditorFor(model => model.Year)</td>
<td>@Html.Label("No of Seats")</td>
<td>@Html.EditorFor(model => model.Seats)</td>

</tr>

<tr>
<td>@Html.Label("Vehicle Number")</td>
<td>@Html.EditorFor(model => model.Cnmbr)</td>
<td>@Html.Label("Vehicle Company")</td>
<td>@Html.EditorFor(model => model.Cmp)</td>
</tr>

<tr>
<td>@Html.Label("Vehicle Agency")</td>
<td>@Html.EditorFor(model => model.Agency)</td>
<td>@Html.Label("Booking For")</td>
<td>@Html.EditorFor(model => model.RentFor)</td>
</tr>

<tr>
<td>@Html.Label("Vehicle Logo")</td>
<td>@Html.EditorFor(model => model.Logo)</td>

</tr>
<trclass="textstyle">
<tdcolspan="2"style="text-
align:center"><inputtype="submit"value="Update"class="button"/></td>
<tdcolspan="2"style="text-align:center">@Html.ActionLink("Cancel", "VehicleManage")</td>

</tr>

</table>
}
ViewName: VehicleDeletecshtml
@model RMIS.Models.Vehicles
@{
ViewBag.Title = "VehicleDelete";
Layout = "~/Views/Shared/AdminMaster.cshtml";
}

<div>
<table>
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Vehicles.jpg"width="1345"height="150"/>
</td>

3
RMIS
RESOURCE MAINTENANCE AND
</tr>

<trclass="textstyle">
<tdcolspan="4"style="text-align:center">
<h2>DO YOU REALLY WANT TO DELETE THIS RECORDS?????????</h2>
</td>
</tr>

</table>
</div>

@using (Html.BeginForm(new { id = Model.VehicleId }))


{
<div>

<tableborder="1"cellpadding="1"cellspacing="1"class="tablestyle">
<trstyle="background-color:maroon;color:whitesmoke"class="textstyle">
<th>@Html.Label("Vehicle Id")</th>
<th>@Html.Label("Vehicle Name")</th>
<th>@Html.Label("Vehicle Type ")</th>
<th>@Html.Label("Purchase Price")</th>
<th>@Html.Label("Purchase Year")</th>
<th>@Html.Label("No of Seats")</th>
<th>@Html.Label("Vehicle Number")</th>
<th>@Html.Label("Vehicle Company")</th>
<th>@Html.Label("Service Agency")</th>
<th>@Html.Label("Booking For")</th>
<th>@Html.Label("Vehicle Logo")</th>

</tr>

<trclass="textstyle">
<td>@Html.DisplayFor(model => model.VehicleId)</td>
<td>@Html.DisplayFor(model => model.Name)</td>
<td>@Html.DisplayFor(model => model.Type)</td>
<td>@Html.DisplayFor(model => model.Price)</td>
<td>@Html.DisplayFor(model => model.Year)</td>
<td>@Html.DisplayFor(model => model.Seats)</td>
<td>@Html.DisplayFor(model => model.Cnmbr)</td>
<td>@Html.DisplayFor(model => model.Cmp)</td>
<td>@Html.DisplayFor(model => model.Agency)</td>
<td>@Html.DisplayFor(model => model.RentFor)</td>
<td>@Html.DisplayFor(model => model.Logo)</td>

</tr>

</table>

</div>

<div>
<tableclass="tablestyle">
<trclass="textstyle">
<tdcolspan="2"style="text-
align:center"><inputtype="submit"value="Delete"class="button"/></td>
<tdcolspan="2"style="text-align:center">@Html.ActionLink("Cancel", "VehicleManage")</td>

3
RMIS
RESOURCE MAINTENANCE AND

</tr>
</table>
</div>
}

ViewName: VehiceSearch.cshtml
@model IEnumerable<RMIS.Models.Vehicles>
@{
ViewBag.Title = "VehiclesSearch";
Layout = "~/Views/Shared/StaffMasterPage.cshtml";
}

<scripttype="text/javascript">
window.onload=function()

{
if(@Session["check"]==1 &&@Session["Logo"]==1)

{
document.getElementById("d1").style.visibility="hidden";//Hide labels on pageload
}
else
{
document.getElementById("d1").style.visibility="visible";//show labes after
pageloading
}
}
</script>
<div>
@using (Html.BeginForm())
{
<table>
<tr>
<tdcolspan="4">
<imgsrc="~/Images/Vehicles.jpg"width="1345"height="200"/>
</td>
</tr>

<tr>
<td>@Html.TextBox("VehicleId", null, new { @class = "search", placeholder = "Enter Vehilces
Id" })</td>

<td><inputtype="submit"value="Search"class="button"/></td>
<td>@ViewBag.message</td>
</tr>

</table>
}
</div>

<divclass="textstyle"id="d1">

<tableclass="tablestyle">

3
RMIS
RESOURCE MAINTENANCE AND
<tr>
<tdrowspan="6"style="text-align:left">

<imgsrc="@Url.Content(@Session["Logo"].ToString())"height="200"width="300"alt="Image"/>

</td>
<tr>
<td>@Html.Label("VehicleId")</td>
<td>@ViewBag.VehicleId</td>
<td>@Html.Label("Vehicle Name")</td>
<td>@ViewBag.Name</td>
</tr>
<tr>
<td>@Html.Label("Vehicle Type ")</td>
<td>@ViewBag.Type</td>
<td>@Html.Label("Vehicle Price ")</td>
<td>@ViewBag.Price</td>
</tr>
<tr>
<td>@Html.Label("Purchase Year ")</td>
<td>@ViewBag.Year</td>
<td>@Html.Label("No of Seats")</td>
<td>@ViewBag.Seats</td>
</tr>

<tr>
<td>@Html.Label("Vehicle Number ")</td>
<td>@ViewBag.Cnmbr</td>
<td>@Html.Label("Vehicle Agency ")</td>
<td>@ViewBag.Agency</td>

</tr>
<tr>
<td>@Html.Label("RentFor")</td>
<td>@ViewBag.RentFor</td>

</tr>

</table>
</div>
WebConfig: Database Path Settings

<?xmlversion="1.0"encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=301880
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?
LinkID=237468 -->
<sectionname="entityFramework"type="System.Data.Entity.Internal.ConfigFile.EntityFrame
workSection, EntityFramework, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"requirePermission="false" />
</configSections>

3
RMIS
RESOURCE MAINTENANCE AND
<appSettings>
<addkey="webpages:Version"value="3.0.0.0" />
<addkey="webpages:Enabled"value="false" />
<addkey="ClientValidationEnabled"value="true" />
<addkey="UnobtrusiveJavaScriptEnabled"value="true" />
</appSettings>
<system.web>
<compilationdebug="true"targetFramework="4.5.2" />
<httpRuntimetargetFramework="4.5.2" />
<httpModules>
<addname="ApplicationInsightsWebTracking"type="Microsoft.ApplicationInsights.Web.Appli
cationInsightsHttpModule, Microsoft.AI.Web" />
</httpModules>
</system.web>
<runtime>
<assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentityname="System.Web.Helpers"publicKeyToken="31bf3856ad364e35" />
<bindingRedirectoldVersion="1.0.0.0-3.0.0.0"newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.WebPages"publicKeyToken="31bf3856ad364e35" />
<bindingRedirectoldVersion="1.0.0.0-3.0.0.0"newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.Mvc"publicKeyToken="31bf3856ad364e35" />
<bindingRedirectoldVersion="1.0.0.0-5.2.3.0"newVersion="5.2.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.codedom>
<compilers>
<compilerlanguage="c#;cs;csharp"extension=".cs"type="Microsoft.CodeDom.Providers.DotNe
tCompilerPlatform.CSharpCodeProvider,
Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"warningLevel="4"compilerOptions="/langversion:6
/nowarn:1659;1699;1701" />
<compilerlanguage="vb;vbs;visualbasic;vbscript"extension=".vb"type="Microsoft.CodeDom.P
roviders.DotNetCompilerPlatform.VBCodeProvider,
Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"warningLevel="4"compilerOptions="/langversion:14
/nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
</compilers>
</system.codedom>
<system.webServer>
<validationvalidateIntegratedModeConfiguration="false" />
<modules>
<removename="ApplicationInsightsWebTracking" />
<addname="ApplicationInsightsWebTracking"type="Microsoft.ApplicationInsights.Web.Appli
cationInsightsHttpModule, Microsoft.AI.Web"preCondition="managedHandler" />
</modules>
</system.webServer>
<entityFramework>
<defaultConnectionFactorytype="System.Data.Entity.Infrastructure.LocalDbConnectionFact
ory, EntityFramework">
<parameters>
<parametervalue="mssqllocaldb" />
</parameters>

3
RMIS
RESOURCE MAINTENANCE AND
</defaultConnectionFactory>
<providers>
<providerinvariantName="System.Data.SqlClient"type="System.Data.Entity.SqlServer.SqlPr
oviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>

<connectionStrings>
<addname="RMISEntity"connectionString="Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\rahul\documents\visual studio 2015\
Projects\RMIS\RMIS\App_Data\RMIS.mdf;Integrated
Security=True"providerName="System.Data.SqlClient"/>
</connectionStrings>

<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behaviorname="">
<serviceMetadatahttpGetEnabled="true"httpsGetEnabled="true" />
<serviceDebugincludeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironmentaspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
</system.serviceModel>
</configuration>

You might also like