Aditya Raj: Project Report of
Aditya Raj: 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)
1. CERTIFICATION OF
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
study.
and student:
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
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
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
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
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
9. Testing...................................................................93-112
THANKS
2
RMIS
RESOURCE MAINTENANCE AND
SYNOPSIS
OF
RMIS
3
RMIS
RESOURCE MAINTENANCE AND
INDEX
S.NO PAGE
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
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
to solve all the problems which are generally faced in any organization while
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.
STAFF
Staffs will get rights from Admin to access the RMIS software
application.
VEHICLES
EQUIPMENT
6
RMIS
RESOURCE MAINTENANCE AND
Whenever any equipment are purchased then these records are
maintained.
CONFERENCE ROOM
SERVICE AGENCIES
SERVICE
AUCTION
When any Resources getting 5 years old then these are send for
auction.
Staff add all the auction related records and Admin manage it.
7
RMIS
RESOURCE MAINTENANCE AND
3.Tools / Platform
Hardware Requirement
Ram 4 GB
Mouse Optical
Software Requirement
8
RMIS
RESOURCE MAINTENANCE AND
4. Project Category
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
C#
SQL Server
9
RMIS
RESOURCE MAINTENANCE AND
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.
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
1
RMIS
RESOURCE MAINTENANCE AND
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
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
without doing Fact Findings then they can’t develop client’s accordingly
Customer can’t pay for the Project. So Fact finding is very important to
1
RMIS
RESOURCE MAINTENANCE AND
1. INTERVIEW
Administrator and their team member directly contact with Customer and
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
4. QUESTIONNAIRES
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
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
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
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
1
RMIS
RESOURCE MAINTENANCE AND
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
2.0 Agency
Service Agency will get resources and equipment for service and
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
4.0 Equipment
Staff adds new equipment with 20% depreciation annually. If they get 5
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
Agencies visit every weekend on organization site. They take away the
7.0 Auction
If any resources and equipment got 5 years old then these are send for
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
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
If any user forget their passwords then they can use forget links to get
Staff has rights to add resource and their service related records.
Staff can add any agency, service, bookings etc. related data.
Admin has full access like update, delete, and insert any records.
1
RMIS
RESOURCE MAINTENANCE AND
WATERFALL MODEL
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
REQUIREMENT GATHERING
ANALYSIS
DESIGN
CODING
TESTING
MAINTENANCE
1
RMIS
RESOURCE MAINTENANCE AND
PERT CHART
Event NO
DIFFERE NCE
5 4
6
1820 4550
2 5
7 10
3
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
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 EQUIPMENT
VEHICLE
2
RMI
2
RMIS
RESOURCE MAINTENANCE AND
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
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
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
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
4.1
GO
FOR
TRA MENU
CKI SELE
NG CT
ANY
ONE
FRO
M
ME
N4.2
TRACK
SHOW
2
RMIS
RESOURCE MAINTENANCE AND
5.0
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
DATA SHOWS
SINGLE DATA SHOWS
IN SCREEN
2
RMIS
RESOURCE MAINTENANCE AND
2
RMIS
RESOURCE MAINTENANCE AND
6.0
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
3
RMIS
RESOURCE MAINTENANCE AND
7.0
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
Get Message
Data Successfully Saved
in Database
3
RMIS
RESOURCE MAINTENANCE AND
5.0
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
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()
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
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
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
Acceptance Testing
under test (SUT) is tested without looking at the internal code structure,
It is also known as clear box testing, glass box testing, and transparent box
3
RMIS
RESOURCE MAINTENANCE AND
Software Security
It is an idea implemented to protect software against malicious attack and
availability.
model class to indicate the kind of value the property will hold.
1. Required
2. EmailAddress
3. FileExtension
4. String Length
5. Range
6. RegularExpression
7. MaxLength
8. MinLength
9. Phone
10. CustomValidation
3
RMIS
RESOURCE MAINTENANCE AND
8. FUTURE SCOPE
the features, processing, performance etc. In future I will be add some more
There will be following features which can be added in this MIS system.
Next version we will add some clean-up tools for removing virus,
Next version we will add some security alerts when any unauthorised
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
the internet.
This web service will help to find out some interested customer to
4
RMIS
RESOURCE MAINTENANCE AND
9. BIBILOGRAPHY
MVC
Title Author
Jon Galloway
Professional ASP.Net MVC 5
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
4
RMIS
RESOURCE MAINTENANCE AND
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
to solve all the problems which are generally faced in any organization while
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.
STAFF
Staffs will get rights from Admin to access the RMIS software
application.
VEHICLES
EQUIPMENT
4
RMIS
RESOURCE MAINTENANCE AND
Whenever any equipment are purchased then these records are
maintained.
CONFERENCE ROOM
SERVICE AGENCIES
SERVICE
AUCTION
When any Resources getting 5 years old then these are send for
auction.
Staff add all the auction related records and Admin manage it.
4
RMIS
RESOURCE MAINTENANCE AND
6. TOOLS / PLATFORM
HARDWARE REQUIREMENT
Ram 4 GB
Mouse Optical
SOFTWARE REQUIREMENT
4
RMIS
RESOURCE MAINTENANCE AND
7. SYSTEM
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.
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
4
RMIS
RESOURCE MAINTENANCE AND
7.1. FACT
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
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
without doing Fact Findings then they can’t develop client’s accordingly
Customer can’t pay for the Project. So Fact finding is very important to
4
RMIS
RESOURCE MAINTENANCE AND
1. INTERVIEW
Administrator and their team member directly contact with Customer and
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
4. QUESTIONNAIRES
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
4
RMIS
RESOURCE MAINTENANCE AND
be develop or not.
Technical Feasibility
It explains all the technical tools which are used to develop any this application. S
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
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
4
RMIS
RESOURCE MAINTENANCE AND
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
5
RMIS
RESOURCE MAINTENANCE AND
INDEX
S.NO PAGE NO
3. SPECIFIC REQURIREMENTS
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
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
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
1.4. REFERENCE
search eFollett )
MA.
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
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
BO OK IN G DE TAI LS
AU CTI ON DE TAI LS
BOOKING
AUCTION
ROOM EQUIPMENT
VEHICLE
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.
ADMIN
Hardware Interface
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,
This is a very light application with many features. But for running this
2.1.7. OPERATIONS
In this application there are many function for users. Basically there are two
STAFFS
Add Resources
Bookings of Vehicles and Rooms
Track Due Revenues
Add Auction of Resources
ADMIN
It defines the requirements for any data or initialization sequences that are
time to get information from many sites. I visited many job portal sites and
5
RMIS
RESOURCE MAINTENANCE AND
LOGIN
ADD
MANAGE
ADMIN
STAFF SEARCH
BOOK
TRACK
2.4 CONSTRAINTS
5
RMIS
RESOURCE MAINTENANCE AND
3. SPECIFIC
ADMIN
STAFF RESOURCE AGENCY
LOGIN
LOGIN
SERVICE
MANAGE
ADD RESOURCE
SEARCH
ADD STAFF
BOOKINGS
REVENUE
MANAGE
SEARCH
6
RMIS
RESOURCE MAINTENANCE AND
These are important things which helps in peak hours in any organization. It
RESPONSE TIME
Response time is the elapsed time between the end of an inquiry or demand.
input and the end of the response. So the response time of this application
WORK LOAD
has been given to do at a given time. The workload consists of some amount
hang.
SCABILITY
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
6
RMIS
RESOURCE MAINTENANCE AND
PLATFORM
application or service.
developers
3.4.2. RELIABILITY
3.4.3. AVAILABILITY
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
maintained.
3.4.6. SCALABILITY
to function well when it (or its context) is changed in size or volume in order
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
3.4.8. QUALITY
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
3.4.9. EXTENSIBILITY
3.4.10. PORTABILITYY
portable software.
3.4.11. TESTABILITY
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
3.4.13. INTEROPERABILITY
products without special effort. In future if client needs to convert this application
4. SUPPORTING INFORMATION
4.1. APPENDIX
1. Product Function.
2. Quality
3. Overview
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
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
6
RMIS
RESOURCE MAINTENANCE AND
REQUIREMENT GATHERING
ANALYSIS
DESIGN
CODING
TESTING
MAINTENANCE
software cost estimation. This model was developed by Barry Boehm. It uses
a basic regression formula, with parameters that are derived from historical
Basic COCOMO
6
RMIS
RESOURCE MAINTENANCE AND
Intermediate COCOMO
Detailed COCOMO
a
Effort = a х (KLOC) PM
1 2
b
Tdev = b x (Effort) Months
1 2
Where
6
RMIS
RESOURCE MAINTENANCE AND
Each value corresponds to multiplier, in the range [0.7, 1.66]
PM = PMnominal · 15 i=iEM i
The detailed model: – has more detailed multipliers for each development
PERT CHART
Event
NO
EARLIEST MAXIMUM
TIME TIME
67
DIFFERE
NCE
RMIS
RESOURCE MAINTENANCE AND
5 4
6
1820 4550
2 5
7 10
3
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
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
6
RMIS
RESOURCE MAINTENANCE AND
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
Schedule Risk:
Budget Risk:
Operational Risks:
Technical risks:
Programmatic Risks:
SCHEDULE RISK:
BUDGET RISK:
7
RMIS
RESOURCE MAINTENANCE AND
OPERATIONAL RISKS:
TECHNICAL RISKS:
PROGRAMMATIC RISKS:
These are the external risks beyond the operational limits. These are all
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
The majority of software projects entail the use of new technologies. Ever-
increase the probability that technology risks will arise in virtually any
critical importance, and the improper use of new technology most often
system features, functions, and quality of service. Too often, the process of
7
RMIS
RESOURCE MAINTENANCE AND
activities. These disruptions often lead to one or more critical failures of a
the team includes experts who understand the architecture and have the
PERFORMANCE
It’s important to ensure that any risk management plan encompasses user
benchmarks and threshold testing throughout the project to ensure that the
ORGANIZATIONAL
Project management must plan for efficient execution of the project, and
finda balance between the needs of the development team and the
8. SYSTEM
7
RMIS
RESOURCE MAINTENANCE AND
RESOURCE MAINTENACE AND MANAGEMENT SYSTEM (RMIS)
STAFF
SERVICE
EQIPMENT
ROOM EQIPMENT
VEHICLE
VEHICLE ROOM
CONTRAL TRANSFER
DATA TRANSFER
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
2.0 Agency
Service Agency will get resources and equipment for service and
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
4.0 Equipment
Staff adds new equipment with 20% depreciation annually. If they get 5
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
Agencies visit every weekend on organization site. They take away the
7.0 Auction
If any resources and equipment got 5 years old then these are send for
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
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()
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
7
RMIS
RESOURCE MAINTENANCE AND
START
LOGIN
Userid/Pa ssword
Yes No
ADD
8
RMIS
RESOURCE MAINTENANCE AND
START
ADMIN
LOGIN
Userid/Pa ssword
Yes No
Manage
Insert/Delete/ Update
8
RMIS
RESOURCE MAINTENANCE AND
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 EQUIPMENT
VEHICLE
8
RMIS
RESOURCE MAINTENANCE AND
8
RMIS
RESOURCE MAINTENANCE AND
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
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
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
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
4.1
GO
FOR
TRA MENU
CKI SELE
NG CT
ANY
ONE
FRO
M
ME
N4.2
TRACK
SHOW
8
RMIS
RESOURCE MAINTENANCE AND
5.0
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
DATA SHOWS
SINGLE DATA SHOWS
IN SCREEN
9
RMIS
RESOURCE MAINTENANCE AND
9
RMIS
RESOURCE MAINTENANCE AND
6.0
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
9
RMIS
RESOURCE MAINTENANCE AND
7.0
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
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
DATA SHOWS
9
RMIS
RESOURCE MAINTENANCE AND
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
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
Acceptance Testing
under test (SUT) is tested without looking at the internal code structure,
It is also known as clear box testing, glass box testing, and transparent box
9
RMIS
RESOURCE MAINTENANCE AND
correctly.
The process of developing test cases can also help find problems in the
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
9
RMIS
RESOURCE MAINTENANCE AND
1
RMIS
RESOURCE MAINTENANCE AND
TextBox2.
1
RMIS
RESOURCE MAINTENANCE AND
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.”
1
RMIS
RESOURCE MAINTENANCE AND
1
RMIS
RESOURCE MAINTENANCE AND
1
RMIS
RESOURCE MAINTENANCE AND
1
RMIS
RESOURCE MAINTENANCE AND
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
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
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
1
RMIS
RESOURCE MAINTENANCE AND
1
RMIS
RESOURCE MAINTENANCE AND
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
the defect.
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
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
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
Description
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
Description
Expected Result
Actual Result
TC –ID: TC : 018WebpageStaffRegistration.cshmtl
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective
Description
Expected Result
Error Message comes from Email Id Textbox “Please Include @ in Email Id”
Actual Result
1
RMIS
RESOURCE MAINTENANCE AND
TC –ID: TC : 006Webpage:AddVehicle.cshtml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective
Description
Actual Result
TC –ID: TC : 006Webpage:AddAgency.cshtml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective
Description
Actual Result
1
RMIS
RESOURCE MAINTENANCE AND
TC –ID: TC : 006Webpage:Booking.cshtml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective
Description
Due payment textbox will autofill after subtracting from Fare Field.
Actual Result
TC –ID: TC : 108Webpage:Manage.cshtml
Tester Name : Mr. kamal Test Date : 03/3/2019
Objective
Description
Expected Result
Actual Result
1
RMIS
RESOURCE MAINTENANCE AND
9.4. DEBUGGING
before testing begins to increase the quality of the system. Debugging will
not give confidence that the system meets its requirements completely but
DEBUGGING APPROACHES
software error. We apply this method when all else fail. In this method, a
studied. All dumps should be well documented and retained for possible use
on subsequent problems.
1
RMIS
RESOURCE MAINTENANCE AND
BACK TRACKING METHOD
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 ELIMINATION
The third approach to debugging, because elimination, is manifested by
This approach is also called induction and deduction. Data related to the
hypothesis" is devised and the data are used to prove or disprove the
case generators, memory dumps and cross reference maps. The following
1
RMIS
RESOURCE MAINTENANCE AND
1. Required
2. String Length
3. Range
4. RegularExpression
5. CustomValidation
6. EmailAddress
7. FileExtension
8. MaxLength
Browser. HTML5 also offer some input type validation like required, email
etc.
Validation. Asp.Net supports both Server Side and client Validation. When
Validation is done through Data Annotations then it is Server Side and when
1
RMIS
RESOURCE MAINTENANCE AND
10.1. DATABASE
TRHREATS IN DATABASE
Availability loss − Availability loss refers to non-availability of
confidence.
used to limit the type of data that can go into a table. This ensures the
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
DEFAULT CONSTRAINT
Provides a default value for a column when none is specified. The DEFAULT
UNIQUE CONSTRAINT
Ensures that all values in a column are different. The UNIQUE Constraint
the CUSTOMERS table, for example, you might want to prevent two or more
PRIMARY KEY
table. Primary keys must contain unique values. A primary key column
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
errors.
1
RMIS
RESOURCE MAINTENANCE AND
INDEX CONSTRAINT
The INDEX is used to create and retrieve data from the database very quickly.
VIEWS
A view is nothing more than a SQL statement that is stored in the database
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
Views, which are kind of virtual tables, allow users to do the following:
Restrict access to the data such that a user can see and (sometimes)
modify exactly what they need and no more.
CREATING VIEWS
Database views are created using the CREATE VIEW statement. Views can
be created from a single table, multiple tables, or another view.
1
RMIS
RESOURCE MAINTENANCE AND
10.2. DATA
Data security means protecting data, such as a database, from destructive
Exception Handling in C#
handling is built upon four keywords: try, catch, finally, and throw.
blocks.
exception.
1
RMIS
RESOURCE MAINTENANCE AND
EXCEPTION CLASSES IN C#
exceptions
a lot of libraries
1
RMIS
RESOURCE MAINTENANCE AND
Admin
Staff
ADMIN
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
Gmail, etc. They will have to fill register forms and create own User
Without login no one users can easily access the website services. To
Admin can only add the staff and manage all the company related
records.
All the service and agencies related data 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
There will be following features which can be added in this MIS system.
Next version we will add some clean-up tools for removing virus,
Next version we will add some security alerts when any unauthorised
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
the internet.
This web service will help to find out some interested customer to
1
RMIS
RESOURCE MAINTENANCE AND
13. CONCLUSIONS
My Mini Project is based on RESOURCE MAINTENANCE AND
users can operate this applications these are Staffs and Admins.
ICT Equipment. Staff can add agency related data which are
any bookings are done then these related data are filled by the
is also called Primary key then they have rights. But Staff can’t
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
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
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
1
RMIS
RESOURCE MAINTENANCE AND
1
RMIS
RESOURCE MAINTENANCE AND
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
1
RMIS
RESOURCE MAINTENANCE AND
CODINGS
WITH
COMMENTS
1
RMIS
RESOURCE MAINTENANCE AND
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
}
1
RMIS
RESOURCE MAINTENANCE AND
}
}
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
}
}
[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
}
}
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
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
}
}
{
[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
}
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
}
}
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
{
publicbool checkcard(int cno, string bn, string Ct, int cv, int Pin, string Ch, string Vu, int
Cl) //Implementation of Interface
{
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();
}
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();
}
}
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();
}
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();
}
}
[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
}
}
[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();
}
}
}
catch (Exception ex) // Exception Handling
{
ViewBag.Message = "Error! Please Try Again"; // Exception Message
return View();
}
}
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);
}
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
{
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();
}
}
{
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();
}
}
1
RMIS
RESOURCE MAINTENANCE AND
}
Agency a = ag.Agencies.Find(id); //Find Details in Database
return View(a);
}
[HttpPost]
[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();
}
}
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();
}
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
[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
}
1
RMIS
RESOURCE MAINTENANCE AND
}
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
}
[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
}
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
[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
{
return View(Conf.ConferenceRooms.ToList());
}
publicActionResult AddRooms()
{
if (Session["user"] == null) // Check the user session
{
return RedirectToAction("Stafflogin", "Staff"); // Redirect to Another 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
}
}
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
}
}
catch (Exception ex) // Exception handling
{
ViewBag.Message = "Erro! Please Try Again"; //Exception error
return View();// 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
}
[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
{
[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
}
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
}
}
[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
[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
[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
}
}
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();
}
}
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
}
[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
}
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();
}
}
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
{
2
RMIS
RESOURCE MAINTENANCE AND
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
}
[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
}
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
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
}
[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
}
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
{
[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
}
}
catch (Exception ex)// Handle Excetpion
{
ViewBag.Message = "Error! Try Again";//Show error
return View();//return page
}
2
RMIS
RESOURCE MAINTENANCE AND
return View();
}
return View();
}
publicActionResult SearchById()//search by Id
{
return View();
}
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
{
[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
{
[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
}
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
}
}
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
}
[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
}
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
{
return View(Veh.Vehicle.ToList());
}
[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
}
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
}
}
}
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
}
[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')
}
var x = document.getElementById("Pass").value;
var y = document.getElementById("Conf").value;
if (x === y) {
returntrue;
}
else {
alert('Password Mismatched');
returnfalse;
}
}
else {
alert('Only Numbers are allowed');
}
}
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
}
}
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;
@{
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>
<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">© 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() {
$('#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";
}
<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>
<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>
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>
<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>
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>
</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>
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>
<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>
</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";
}
<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>
</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>
</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";
}
}
}
</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>
<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>
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>
<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
else
{
alert('No Need to Purchase');//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>
</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>
<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>
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>
<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() {
$('#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>
</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>
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>
<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";
}
<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>
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>
<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=\"Web\" /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>