Resort Management Documentation
Resort Management Documentation
Project Report On
IMAGICA RESORTMANAGEMENT
Project work submitted in partial fulfillment of the
requirements for the award of the degree of
B.Sc. (Information Technology)
SUBMITTED BY
NEHAL .S. KHAN
PROJECT GUIDE
MS. SNEHAL YEOLE
CERTIFICATE
Project Guide
INDEX
Sr.No. Topic
Acknowledgement
1 Preliminary Investigation
1 Objectives and scope of the system
2 Description of System
3 Feasibility Study
4 Project Analysis
5 Hardware and software requirement
6 Gantt Chart
2 Project Design
1 Design Document
2 Data Flow Diagram
3 Activity Diagram
4 UML
5 Use Case
6 Sequence diagram
7 ERD
8 Database Diagram
3 Screen Layout
4 System Implementation
5 System maintenance
6 Project Testing
7 Conclusion
8 References and Bibliography
ACKNOWLEDGEMENT :
We thank the almighty for giving us the courage & perseverance in completing the
project. This project itself is an acknowledgement for all those who have given us their heart-
felt-co-operation in making it a grand success.
We are also thankful to the project coordinator& guide, Mrs.Snehal Yeole for
extending their sincere & heartfelt guidance through out this project work. Without their
supervision and many hours of devoted guidance, stimulating & constructive criticism, this
thesis would never come out in this form.
It is a pleasure to express our deep and sincere gratitude to the project Guide and
are profoundly grateful towards the unmatched help rendered by him. Our special thanks to
all the lectures of Information Technology, for their valuable advises at every stage of this
work.
Last but not the least; we would like to express our deep sense and earnest thanks giving to
our dear parents for their moral support and heartfelt cooperation in doing the project. We
would also like to thank our friends, whose direct or indirect help has enabled us to complete
this work successfully.
Preliminary investigation
After understanding the existing system and understanding the need for developing a
new system different people involved in the related activities have been consulted. The data
needed for the study has been collected from company records.
The computerization of this system would avoid the wrong interpretation and bad
calculation of data .The system help the user to see any documents, source code, tasks,
activities, team information with details at the click of a button. The record data is maintained
and backed up such a way that data is not loss. The speed of the system could also
increased.
PROJECT OVERVIEW:
1. Administrator module
3. Accountant module
Administrator module:
In this Administrator Creates and Maintains all staff Details, Maintain Room Details,
Maintain Expenses details, Maintain User Details, Maintain Bill Details .
Accountant module:
In this Accountant Module Creates Expenses, Creates Bills, View Daily Expenses,
Monthly Expenses and View Daily Bills and Monthly Bills.
As the name specifies "IMAGICA RESORT MANAGEMENT " is a software developed for
For the past few years the number oftourist is increasing rapidly.
Thereby the number of resort is also increasing for the accommodation of the tourist staying
in this resort. And hence there is a lot of strain on the person who are running the resort and
software's are not usually used in this context.
This particular project deals with the problems on managing a resort and avoids the
problems which occur when carried manually Identification of the drawbacks of the existing
system leads to the designing of computerized system that will be compatible to the existing
system with the system
which is more user friendly and more GUI oriented. We can improve the efficiency of
· High security
· Data consistency
· Easy to handle
FEASIBILITY STUDY
Feasibility should be measured throughout the life cycle. The scope and complexity
of an apparently feasible project can change after the initial problems and
opportunities are fully analyzed and after the system has been designed. Thus, a
project that is feasible at one point may become infeasible later.
Generally there are following areas of risk for a new system that are considered
when confirming project feasibility:
PROJECT ANALYSIS
1. Existing System
Present system is manual. The Project Metrics has to enter all the details of project,
documents, and tasks. It also maintenance the team information and also efforts estimation.
For this purpose the organization maintain the size of the document, source code and
update the information about team member’s details manually. Which is much of time
consuming process and more importantly it is error prone. Limitations Of the Manual system
1. It is time consuming
2. It leads to error prone results
3. It consumes lot of manpower to better results
4. It lacks of data security
5. Retrieval of data takes lot of time
6. Percentage of accuracy is less
7. Reports take time to produce
SOFTWARE CONFIGURATION
HARDWARE CONFIGURATION
RAM : 4 GB
GANTT CHART:-
A Gantt chart is a type of bar chart that illustrates a project schedule. Gantt charts illustrate
the start and finish dates of the terminal elements and summary elements of a project.
Terminal elements and summary elements comprise the work breakdown structure of the
project.
Prelimina Expected
ry Phase Date
System
Analysis Date of
completion.
System
Design
System
Coding
Project
Report
Submissi
on
PROJECT DESIGNING
Design Document
The entire system is projected with a physical diagram which specifics the actual
storage parameters that are physically necessary for any database to be stored on
to the disk. The overall systems existential idea is derived from this diagram.
The relation upon the system is structure through a conceptual ER-Diagram, which
not only specifics the existential entities but also the standard relations through
which the system exists and the cardinalities that are necessary for the system
state to continue.
The content level DFD is provided to have an idea of the functional inputs and
outputs that are achieved through the system. The system depicts the input and out
put standards at the high level of the systems existence.
Data flows are data structures in motion, while data stores are data structures. Data
flows are paths or ‘pipe lines’, along which data structures travel, where as the data stores
are place where data structures are kept until needed.
Data flows are data structures in motion, while data stores are data structures at rest.
Hence it is possible that the data flow and the data store would be made up of the same data
structure.
Data flow diagrams is a very handy tool for the system analyst because it gives the
analyst the overall picture of the system, it is a diagrammatic approach.
A DFD is a pictorial representation of the path which data takes From its initial
interaction with the existing system until it completes any interaction. The diagram will
describe the logical data flows dealing the movements of any physical items. The DFD also
gives the insight into the data that is used in the system i.e., who actually uses it is
temporarily stored.
A DFD does not show a sequence of steps. A DFD only shows what the
different process in a system is and what data flows between them.
External entities
DATAFLOWS
Employee UI Screens
Emplo.
Reports
Login DFD
Admin Activities
Validates
Data
Validates Validates
Data Data
Employee
Details
Data Storage
Login Account Facility
Details
Details
Open Form()
Generate Bills
Add facility Log out
2.0.0 Registration 2.0.4
2.0.2
Enter Login
Details
Room Status
2.0.1 2.0.3
Data Storage
Verifies Validates
Data Data
ACTIVITY DIAGRAM:
T.Y.BSc (IT) Page 20
[IMAGICA RESORT MANAGEMENT]
Activity diagrams are graphical representations of work flows of stepwise activities and
action which support for choice interaction and concurrency
Login Activity:
The unified modeling language allows the software engineer to express an analysis
model using the modeling notation that is governed by a set of syntactic semantic
and pragmatic rules.
A UML system is represented using five different views that describe the system from
distinctly different perspective. Each view is defined by a set of diagram, which is as
follows.
ii. The analysis representation describes a usage scenario from the end-users
perspective.
Structural model view
In this model the data and functionality are arrived from inside the system.
In this the structural and behavioral as parts of the system are represented as
they are to be built.
In this the structural and behavioral aspects of the environment in which the system is to be
implemented are represented.UML is specifically constructed through two different domains
they are
UML Analysis modeling, which focuses on the user model and structural
model views of the system.
Admin: The Administrator is the user of the system. He is the responsible person to define
the StaffInfo, DetpInfo,ServiceInfo,RoomInfo.All these details are maintained by the
Adminstrator.
Class diagram
A Diagram is the unified modeling language (UML) is a type of static structure diagram that
describes the structure of system by showing the system classes there attributes and the
relationship between the classes. The purpose of class diagram is to identify and classify the
object that will up the new system. The purpose done is possible because object have
method as well as attribute.
Sequence Diagrams
Home Page Login Page DB Admin Home Page
: Admin
1 : Select Login()
4 : If user exist()
5 : if not exist()
Add Employee DB
4 : if user exist()
5 : Add Employee()
6 : if not exist()
8 : with values()
4 : if user exist()
6 : if not exist()
8 : with values()
Add Room DB
4 : if user exist()
5 : Add Room()
6 : if not exist()
8 : with values()
Add Facility DB
4 : if user exist()
5 : Click Add()
6 : if not exist()
7 : Enter values()
ENTITY-RELATIONSHIP Diagrams
E-R (Entity-Relationship) Diagram is used to represents the relationship between entities
in the table.
Represent attributes.
Attribute Name
DATABASE Design
a. tblGuestPersonalInfo:
a. tblFoodCharge:
b. tblFacilityCharge:
c. tblEmployeeDetail:
T.Y.BSc (IT) Page 35
[IMAGICA RESORT MANAGEMENT]
d. tblContact:
e. tblCheckOutDetail:
f. tblCheckedInDetail:
g. tblPayamentInformation:
h. tblSaleItem:
i. tblRoomRequest:
j. tblRoomMaster:
k. tblRoleMaster:
l. tblPurchaseItem:
m. tblPhoneMaster:
n. tblPhoneCharge:
o. tblPaymentMode:
p. tblLoginMaster:
q. tblLaundaryMaster:
r. tblLaundaryCharge:
Screens:
1) Home page:
AdminHomeMasterPage.master.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("~/Default.aspx");}}
2) Login page:
frmAdminLogin.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_frmAdminLogin : System.Web.UI.Page
{
LoginBL login = new LoginBL();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Image1.Visible = false;
lblMsg.Visible = false;
}
}
frmHotelHomePage:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
publicpartialclass_Default : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
{
[System.Web.Services.WebMethodAttribute(),
System.Web.Script.Services.ScriptMethodAttribute()]
publicstatic AjaxControlToolkit.Slide[] GetSlides(string contextKey)
{
returndefault(AjaxControlToolkit.Slide[]);
}}
4) Change password for user:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
publicpartialclassUser_frmChangePassword : System.Web.UI.Page
{
LoginBL login = newLoginBL();
protectedvoid Page_Load(object sender, EventArgs e)
{
if (Session["Name"] == null)
{
Response.Redirect("~/frmLogin.aspx");
}
if (!IsPostBack)
{
txtUname.Text = Session["Name"].ToString();
}
}
protectedvoid btnChange_Click(object sender, EventArgs e)
{
login.Uname = txtUname.Text.Trim();
login.Password = txtOldPwd.Text.Trim();
if (login.GetEmployee() == true)
{
login.Uname = txtUname.Text.Trim();
login.Password = txtNewPwd.Text.Trim();
login.ChangeEmployeePassword();
Label1.Text = "Password Changed successfully...!";
}
else
{
Label1.Text = "Plz Check Your Password...!";
txtOldPwd.Text = "";
txtOldPwd.Focus();
}
}
}
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
publicpartialclassAdmin_Hotel_Master_AddRoom : System.Web.UI.Page
{
RoomMasterBL room = newRoomMasterBL();
protectedvoid Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == null)
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
}
protectedvoid btnAdd_Click(object sender, EventArgs e)
{
try
{
room.Roomname = txtName.Text.Trim();
room.Roomtype = txtRoomType.Text.Trim();
room.Charge = Convert.ToDecimal(txtCharge.Text.Trim());
room.InsertRoom();
lblMsg.Text = "Room Added...!";
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
txtName.Text = "";
txtRoomType.Text = "";
txtCharge.Text = "";
}
protectedvoid btnClear_Click(object sender, EventArgs e)
{
txtName.Focus();
txtCharge.Text = "";
txtRoomType.Text = "";
txtName.Text = "";
lblMsg.Text = "";
}
protectedvoid txtName_TextChanged(object sender, EventArgs e)
{
}
}
1) Make payment:
allcreditdebit.aspx.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Data;
using System.Data.SqlClient;
public partial class allcreditdebit : System.Web.UI.Page
{
string var_card_type, var_bank_name;
protected void Page_Load(object sender, EventArgs e)
{
Label2.Text = Session["idnum"].ToString();
String amount = Session["FAmount"].ToString();
lblamount.Text = amount;
If (!IsPostBack)
{
REV_For_All.ValidationExpression = "^5[1-5][0-9]{14}$";
REV_cre.ValidationExpression = @"\d{4}";
}}
protected void btnpayment_Click(object sender, EventArgs e)
{
RoomRequestBL roomreq = new RoomRequestBL();
roomreq =(RoomRequestBL)Session["RoomInfo"];
roomreq.InsertRoomRequest();
Connection c1 = new Connection();
SqlCommand cmd2=new SqlCommand("Select max([RequestId]) from
[tblRoomRequest]",c1.conn);
SqlDataReader dr=cmd2.ExecuteReader();
dr.Read();
int requestroomid=int.Parse(dr[0].ToString());
dr.Close();
int famt=int.Parse(Session["FAmount"].ToString());
cancel.aspx.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class cancel : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
}}
Confirm:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="confirm.aspx.cs"
Inherits="confirm" %>
6) About us:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
publicpartialclassfrmAboutUs : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
{
}
}
7) Contact us:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
publicpartialclassfrmContactUs : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
{ }
protectedvoid Button1_Click(object sender, EventArgs e)
{
Connection cn = newConnection();
SqlCommand cmd = newSqlCommand("insert into tblContact(Namee,email,subject,Message)
values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text +
"')", cn.conn);
cmd.ExecuteNonQuery();}}
8) Our services:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
publicpartialclassfrmServices : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
{
}
}
9) Login by admin:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
publicpartialclassAdmin_frmAdminLogin : System.Web.UI.Page
{
LoginBL login = newLoginBL();
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Image1.Visible = false;
lblMsg.Visible = false;
}
}
{
Session["Uname"] = txtUname.Text.Trim();
Session["Pwd"] = txtPassword.Text.Trim();
Response.Redirect("~/Admin/AdminHome.aspx");
}
else
{
Image1.Visible = true;
lblMsg.Visible = true;
lblMsg.Text = "Invalid Username or Password...!";
txtUname.Focus();
}
}
}
}
frmAddEmployeeDetail.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
}
protected void btnAdd_Click(object sender, EventArgs e)
{
T.Y.BSc (IT) Page 59
[IMAGICA RESORT MANAGEMENT]
try
{
emp.Name = txtName.Text.Trim();
emp.Address = txtAddress.Text.Trim();
emp.Phone = txtPhone.Text.Trim();
emp.Email = txtMail.Text.Trim();
emp.Dutytime = ddlDutyTime.SelectedItem.Text;
emp.Uname = txtUname.Text.Trim();
emp.Password = txtPassword.Text.Trim();
emp.Roleid = 2;
emp.InsertEmployeeDetail();
lblMsg.Text = "Employee Added...!";
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
txtName.Text = "";
txtAddress.Text = "";
txtPhone.Text = "";
txtMail.Text = "";
txtUname.Text = "";
txtPassword.Text = "";
}
protected void btnClear_Click(object sender, EventArgs e)
{
txtName.Text="";
txtAddress.Text="";
txtPhone.Text="";
txtMail.Text="";
txtUname.Text="";
txtPassword.Text="";
lblMsg.Text = "";
}
protected void txtName_TextChanged(object sender, EventArgs e)
{}}
frmAddFacilities.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
}
protected void btnAdd_Click(object sender, EventArgs e)
{
try
{
facility.Type = txtName.Text.Trim();
facility.Charge = Convert.ToDecimal(txtCharge.Text.Trim());
facility.InsertFacility();
lblMsg.Text = "Facility Added...!";
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
txtName.Text = "";
txtCharge.Text = "";
}
protected void btnClear_Click(object sender, EventArgs e)
{
txtCharge.Text = "";
txtName.Text = "";
lblMsg.Text = "";
txtName.Focus();
}
protected void txtName_TextChanged(object sender, EventArgs e)
{}}
frmLaundaryCharge.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Hotel_Master_frmLaundaryCharge :
System.Web.UI.Page
{
LaundaryMasterBL laundary = new LaundaryMasterBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == null)
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
protected void btnAdd_Click(object sender, EventArgs e)
{
try
{
laundary.Charge = Convert.ToDecimal(txtCharge.Text.Trim());
laundary.InsertLaundaryCharge();
lblMsg.Text = "Charge Added...!";
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
txtCharge.Text = "";
}
protected void btnClear_Click(object sender, EventArgs e)
{
txtCharge.Text = "";
lblMsg.Text = "";
txtCharge.Focus();
}
protected void txtCharge_TextChanged(object sender, EventArgs e)
{}}
frmAddRoom.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
}
protected void btnAdd_Click(object sender, EventArgs e)
{
try
{
room.Roomname = txtName.Text.Trim();
room.Roomtype = txtRoomType.Text.Trim();
room.Charge = Convert.ToDecimal(txtCharge.Text.Trim());
room.InsertRoom();
lblMsg.Text = "Room Added...!";
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
txtName.Text = "";
txtRoomType.Text = "";
txtCharge.Text = "";
}
protected void btnClear_Click(object sender, EventArgs e)
{
txtName.Focus();
txtCharge.Text = "";
txtRoomType.Text = "";
txtName.Text = "";
lblMsg.Text = "";
}
protected void txtName_TextChanged(object sender, EventArgs e)
{}}
frmManagePhoneCharge.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Manage_frmManagePhoneCharge :
System.Web.UI.Page
{
PhoneMasterBL phone = new PhoneMasterBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == "")
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
if (!IsPostBack)
{
Panel1.Visible = false;
BindData();
}
}
private void BindData()
{
GridView1.DataSource = phone.ShowCallType();
GridView1.DataBind();
}
protected void GridView1_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
BindData():
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs
e)
{
try
{
Button btn;
{
if (gr.RowIndex == e.RowIndex)
{
Panel1.Visible = true;
btn = (Button)gr.FindControl("btndelete");
phone.Callid = int.Parse(btn.CommandArgument);
ViewState["Id"] = phone.Callid;
DataSet ds = new DataSet();
ds = phone.Show_CallType_ById();
txtType.Text = ds.Tables[0].Rows[0][0].ToString();
txtCharge.Text = ds.Tables[0].Rows[0][1].ToString();
}}}
protected void btnUpdate_Click(object sender, EventArgs e)
{
try
{
phone.Callid = int.Parse(ViewState["Id"].ToString());
phone.Type = txtType.Text.Trim();
phone.Charge = Convert.ToDecimal(txtCharge.Text.Trim());
phone.Update_CallType();
lblMsg.Text = "Updated...!";
BindData();
}
catch (Exception)
{throw;}}
protected void btnOk_Click(object sender, EventArgs e)
{
Panel1.Visible = false;
lblMsg.Text = "";
}}
frmPurchaseNewItem.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}}
protected void btnAdd_Click(object sender, EventArgs e)
{
try
{
purchase.Item = txtName.Text.Trim();
purchase.Date = GMDatePicker1.Date;
purchase.Quantity = int.Parse(txtQuantity.Text.Trim());
purchase.Amount = Convert.ToDecimal(txtItemCost.Text.Trim());
total = int.Parse(txtQuantity.Text.Trim()) *
Convert.ToDecimal(txtItemCost.Text.Trim());
txtTotAmount.Text = total.ToString();
purchase.Total = Convert.ToDecimal(txtTotAmount.Text.Trim());
purchase.InsertPurchaseItem();
lblMsg.Text = "Item Purchased...!";
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}}
protected void btnClear_Click(object sender, EventArgs e)
{
txtItemCost.Text = "";
txtName.Text = "";
txtTotAmount.Text = "";
txtQuantity.Text = "";
lblMsg.Text = "";
}}
frmSaleItem.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Inventory_Master_frmSaleItem : System.Web.UI.Page
{
decimal total;
SaleItemBL sale = new SaleItemBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == null)
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}}
protected void btnAdd_Click(object sender, EventArgs e)
{
try
{
sale.Item = txtName.Text.Trim();
sale.Date = GMDatePicker1.Date;
sale.Quantity = int.Parse(txtQuantity.Text.Trim());
sale.Amount = Convert.ToDecimal(txtItemCost.Text.Trim());
total = int.Parse(txtQuantity.Text.Trim()) *
Convert.ToDecimal(txtItemCost.Text.Trim());
txtTotAmount.Text = total.ToString();
sale.Total = Convert.ToDecimal(txtTotAmount.Text.Trim());
sale.InsertSaleItem();
lblMsg.Text = "Item Sold...!";
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}}
protected void btnClear_Click(object sender, EventArgs e)
{
txtItemCost.Text = "";
txtName.Text = "";
txtTotAmount.Text = "";
txtQuantity.Text = "";
lblMsg.Text = "";}}
frmManageFacilities.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Manage_frmManageFacilities : System.Web.UI.Page
{
FacilityMasterBL facility = new FacilityMasterBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == "")
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
if (!IsPostBack)
{
Panel1.Visible = false;
BindData();}}
private void BindData()
{
GridView1.DataSource = facility.ShowFacility();
GridView1.DataBind();
}
protected void GridView1_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
BindData();
}
protected void GridView1_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
Button btn;
foreach (GridViewRow gr in GridView1.Rows)
{
if (gr.RowIndex == e.RowIndex)
{
Panel1.Visible = true;
btn = (Button)gr.FindControl("btndelete");
facility.Facilityid = int.Parse(btn.CommandArgument);
ViewState["Id"] = facility.Facilityid;
DataSet ds = new DataSet();
ds = facility.ShowFacility_ById();
txtFacility.Text = ds.Tables[0].Rows[0][0].ToString();
txtCharge.Text=ds.Tables[0].Rows[0][1].ToString();
}}}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs
e)
{
Button btn;
foreach (GridViewRow gr in GridView1.Rows)
{
if (gr.RowIndex == e.RowIndex)
{
btn = (Button)gr.FindControl("btndelete");
facility.Facilityid = int.Parse(btn.CommandArgument);
}
facility.Delete_Facility();
Label1.Text = "Deleted...!";
T.Y.BSc (IT) Page 75
[IMAGICA RESORT MANAGEMENT]
BindData();
}}
protected void btnUpdate_Click(object sender, EventArgs e)
{
try
{
facility.Facilityid = int.Parse(ViewState["Id"].ToString());
facility.Type = txtFacility.Text.Trim();
facility.Charge = Convert.ToDecimal(txtCharge.Text.Trim());
facility.UpdateFacility();
Label1.Text = "Updated...!";
BindData();
}
catch (Exception)
{throw;}}
protected void btnOk_Click(object sender, EventArgs e)
{
Panel1.Visible = false;
Label1.Text = "";}}
frmLaundaryCharge.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Hotel_Master_frmLaundaryCharge :
System.Web.UI.Page
{
LaundaryMasterBL laundary = new LaundaryMasterBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == null)
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
}
protected void btnAdd_Click(object sender, EventArgs e)
{
try
{
laundary.Charge = Convert.ToDecimal(txtCharge.Text.Trim());
laundary.InsertLaundaryCharge();
lblMsg.Text = "Charge Added...!";
}
catch (Exception ex)
{
lblMsg.Text = ex.Message.ToString();
}
txtCharge.Text = "";
}
protected void btnClear_Click(object sender, EventArgs e)
{
txtCharge.Text = "";
lblMsg.Text = "";
txtCharge.Focus();
}
protected void txtCharge_TextChanged(object sender, EventArgs e)
{}}
frmManagePhoneCharge.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Manage_frmManagePhoneCharge :
System.Web.UI.Page
{
PhoneMasterBL phone = new PhoneMasterBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == "")
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
if (!IsPostBack)
{
Panel1.Visible = false;
T.Y.BSc (IT) Page 79
[IMAGICA RESORT MANAGEMENT]
BindData();
}
}
private void BindData()
{
GridView1.DataSource = phone.ShowCallType();
GridView1.DataBind();
}
protected void GridView1_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
BindData():
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs
e)
{
try
{
Button btn;
{
if (gr.RowIndex == e.RowIndex)
{
Panel1.Visible = true;
btn = (Button)gr.FindControl("btndelete");
phone.Callid = int.Parse(btn.CommandArgument);
ViewState["Id"] = phone.Callid;
DataSet ds = new DataSet();
ds = phone.Show_CallType_ById();
txtType.Text = ds.Tables[0].Rows[0][0].ToString();
txtCharge.Text = ds.Tables[0].Rows[0][1].ToString();
}}}
protected void btnUpdate_Click(object sender, EventArgs e)
{
try
{
phone.Callid = int.Parse(ViewState["Id"].ToString());
phone.Type = txtType.Text.Trim();
phone.Charge = Convert.ToDecimal(txtCharge.Text.Trim());
phone.Update_CallType();
lblMsg.Text = "Updated...!";
BindData();
}
catch (Exception)
{throw;}}
protected void btnOk_Click(object sender, EventArgs e)
{
Panel1.Visible = false;
lblMsg.Text = "";
}}
frmManageRoom.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Manage_frmManageRoom : System.Web.UI.Page
{
RoomMasterBL room = new RoomMasterBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == "")
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
if (!IsPostBack)
{
Panel1.Visible = false;
BindData();
}}
btn = (Button)gr.FindControl("btndelete");
room.Roomid = int.Parse(btn.CommandArgument);
ViewState["Id"] = room.Roomid;
DataSet ds = new DataSet();
ds = room.Show_Room_ById();
txtName.Text = ds.Tables[0].Rows[0][0].ToString();
txtRoomType.Text = ds.Tables[0].Rows[0][1].ToString();
txtCharge.Text = ds.Tables[0].Rows[0][2].ToString();
}}}
protected void btnUpdate_Click(object sender, EventArgs e)
{
try
{
room.Roomid = int.Parse(ViewState["Id"].ToString());
room.Roomname = txtName.Text.Trim();
room.Roomtype = txtRoomType.Text.Trim();
room.Charge = Convert.ToDecimal(txtCharge.Text.Trim());
room.Update_RoomInfo();
lblMsg.Text = "Updated...!";
BindData();
}
catch (Exception)
{throw;}}
protected void btnOk_Click(object sender, EventArgs e)
{
Panel1.Visible = false;
lblMsg.Text = "";
}}
frmManageEmployee.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Manage_frmManageEmployee : System.Web.UI.Page
{
EmployeeDetailBL emp = new EmployeeDetailBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == "")
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
if (!IsPostBack)
{
Panel1.Visible = false;
BindData();
T.Y.BSc (IT) Page 85
[IMAGICA RESORT MANAGEMENT]
}}
private void BindData()
{
GridView1.DataSource = emp.Show_Employee();
GridView1.DataBind();
}
protected void GridView1_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
BindData();
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs
e)
{
Button btn;
foreach (GridViewRow gr in GridView1.Rows)
{
if (gr.RowIndex == e.RowIndex)
{
btn = (Button)gr.FindControl("btndelete");
emp.Loginid = int.Parse(btn.CommandArgument);
}
emp.Delete_Employee();
Label1.Text = "Deleted...!";
BindData();}}
protected void GridView1_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
Button btn;
foreach (GridViewRow gr in GridView1.Rows)
{
if (gr.RowIndex == e.RowIndex)
{
Panel1.Visible = true;
btn = (Button)gr.FindControl("btndelete");
emp.Loginid = int.Parse(btn.CommandArgument);
ViewState["Id"] = emp.Loginid;
DataSet ds = new DataSet();
ds = emp.Show_Employee_ById();
T.Y.BSc (IT) Page 86
[IMAGICA RESORT MANAGEMENT]
txtName.Text = ds.Tables[0].Rows[0][0].ToString();
txtAddress.Text = ds.Tables[0].Rows[0][1].ToString();
txtPhone.Text = ds.Tables[0].Rows[0][2].ToString();
txtMail.Text = ds.Tables[0].Rows[0][3].ToString();
ListItem li=ddlDutyTime.Items.FindByText(ds.Tables[0].Rows[0][4].ToString());
}}}
protected void btnUpdate_Click(object sender, EventArgs e)
{
try
{
emp.Loginid = int.Parse(ViewState["Id"].ToString());
emp.Name = txtName.Text.Trim();
emp.Address = txtAddress.Text.Trim();
emp.Phone = txtPhone.Text.Trim();
emp.Email = txtMail.Text.Trim();
emp.Dutytime = ddlDutyTime.SelectedItem.Text;
emp.Update_Employee();
Label1.Text = "Updated...!";
BindData();
}
catch (Exception)
{throw;}}
protected void btnOk_Click(object sender, EventArgs e)
{
Panel1.Visible = false;
Label1.Text = "";
}}
frmShowRoomInfo.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}}
protected void btnShow_Click(object sender, EventArgs e)
{
try
{
if (ddlRoomType.SelectedIndex == 0)
{
GridView1.DataSource = room.ShowRoomInfoByAllottedStatus();
GridView1.DataBind();
}
else if (ddlRoomType.SelectedIndex == 1)
{
GridView1.DataSource = room.ShowRoomInfoByStatus();
GridView1.DataBind();
}}
catch (Exception)
{throw;}}
protected void GridView1_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
try
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = room.ShowRoomInfoByStatus();
GridView1.DataBind();
}
catch (Exception)
{throw;}}}
frmPurchaseItemReport.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Inventory_Master_Report_frmPurchaseItem :
System.Web.UI.Page
{
PurchaseItemBL purchase = new PurchaseItemBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == null)
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
}
protected void btnShow_Click(object sender, EventArgs e)
{
try
{
GridView1.DataSource = purchase.ShowPurchaseItem();
GridView1.DataBind();
}
catch (Exception)
{throw;
}}
protected void GridView1_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
try
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = purchase.ShowPurchaseItem();
GridView1.DataBind();
}
catch (Exception)
{throw;}}}
frmSaleItemReport.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Inventory_Master_Report_frmSaleItemReport :
System.Web.UI.Page
{
SaleItemBL sale = new SaleItemBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == null)
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}}
frmAllCheckedInGuest.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class
Admin_Hotel_Master_Show_Reports_frmAllCheckedInGuest :
System.Web.UI.Page
{
GuestEntryBL guest = new GuestEntryBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == null)
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
}
protected void btnShow_Click(object sender, EventArgs e)
{
try
{
GridView1.DataSource = guest.ShowAllCheckInGuest();
GridView1.DataBind();
}
catch (Exception)
{
throw;
}}
protected void GridView1_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
try
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = guest.ShowAllCheckInGuest();
GridView1.DataBind();
}
catch (Exception)
{throw;}}}
frmAllCheckedOutGuest.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class
Admin_Hotel_Master_Show_Reports_frmAllCheckedOutGuest :
System.Web.UI.Page
{
GuestEntryBL guest = new GuestEntryBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == null)
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
}
protected void btnShow_Click(object sender, EventArgs e)
{
try
{
GridView1.DataSource = guest.ShowAllCheckOutGuest();
GridView1.DataBind();
}
catch (Exception)
{throw;}}
protected void GridView1_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
try
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = guest.ShowAllCheckOutGuest();
GridView1.DataBind();
}
catch (Exception)
{throw;}}}
frmAllCustomerByDate.aspx.cs:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_Hotel_Master_Show_Reports_frmCustomerByDate :
System.Web.UI.Page
{
GuestEntryBL guest = new GuestEntryBL();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Uname"] == null)
{
Response.Redirect("~/Admin/frmAdminLogin.aspx");
}
}
T.Y.BSc (IT) Page 98
[IMAGICA RESORT MANAGEMENT]
System implemetaion :-
The following steps were carried out in implementation phase.
Conduct Training : the training was conducted for the employees of the company
to make them familiar with the system.
Bug fixing and documentation: any errors that occurred were solved and
documented.
SYSTEM MAINTENCE:
The maintenance of software is the time period in which the software is software product
performes useful work. Maintatenance activites involve making enhancement activites to the,
adapting product to new environment and correcting problems. Software enhancement may
involve providing new functional capabilities, improving user display and modes of interaction.
Adaptation of software to a new environment may involve moving the software to a
different machine. Problems correction involves modification and revalidation of software to
correct errors. The four types of maintenance activites are described below:
Corrective maintance
Preventive maintenance
Perfective maintaenance
Adaptive maintenance
Corrective Maintenance:-
Corrective maintenance can be defined as the maintenance which is required when an item has
failed or worn out, to bring it back to working order.
Adaptive Maintenance:-
Adaptive maintenance is an activity that modifies software to properly interface with the
changing environment.
Perfective Maintenance:-
Perfective maintenance is performed to satisfy user request such as new Capabilites,
modification to existing function and general enhancements.
Preventive Maintenance:-
Preventive maintanenance occurs when software is changed to improved future maintainability
or to provide a better basic for future enhancements.
PROJECT TESTING
1. Unit test
2. Integration test
3. Performance test
Unit Testing:
Unit testing focuses verification efforts on the smallest unit of software design module. The unit
test is always white box oriented. The tests that occur as part of unit testing are testing the
module interface, examining the local data structures, testing the boundary conditions,
execution all the independent paths and testing error-handling paths.
Integration Testing:
Performance Testing:
Timing for both read and update transactions should be gathered to determine whether
system functions are being performed in an acceptable timeframe.
CONCLUSION
CONCLUSION
The “IMAGICA RESORT” has been successfully completed. The goal of the system is
achieved and problems are solved. The package is developed in a manner that it is user friendly
and required help is provided at different levels.
The project can be easily used in the process of decision making. Different types of
reports can be generated which help the management to take correct decision and reduce the
time delay which automatically increases the company’s work standards as well as the
economical state of the company.
This system never decreases the manpower but helps the development of available
manpower and optimizes the manpower by which company’s standards and capabilities can be
scaled to higher dimensions.
BIBLOGRAPHY
BIBLOGRAPHY :
The following books were referred during the analysis and execution phase of the
project
SOFTWARE ENGINEERING
By Roger.S.Pressman
ASP.NET Unleashed
By Sams
Websites:
www.google.com
www.youtube.com
www.w3schools.com