Office Management (web Application).docx

  • Uploaded by: Riddhi Singh
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Office Management (web Application).docx as PDF for free.

More details

  • Words: 6,133
  • Pages: 61
DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

INDEX Sr. No. Title

Page No.

1

Project Synopsis / Introduction  Project Details  Hardware / Software Requirement  INTRODUCTION  Client Details  Abstract  Proposed system  Module Specification  Limitation In Present System  Frontend  Backend  Stakeholder

5 6 6 7 7 7 8 10 10 11 12 13

2

System Design  ER-Diagram  Event Table  Use Case Diagram  Class Diagram  System Flow Chart  Structure Chart  Site Map

14 15 16 17 18 19

3 4 5 6 7 8 9

System Coding System Implementation Result Conclusion Future Enhancements References Plagiarism Report

20 50 52 55 57 59 61

Project Include  

Objective of Project Project Synopsis 0

Remark

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM                   

Project Profile Hardware Requirement Software Requirement Existing System Need for New System Feasibility System System Flowchart Use case Diagram Class Diagram Activity Diagram Sequence Diagram E- R Diagram Collaboration Diagram Data Dictionary Input Design Output Design Testing Post Implementation Review Future Enhancement

1

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Chapter 1 Project Synopsis /Introduction

SYNOPSIS DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM PROJECT OBJECTIVE 2

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

This is a live project for “DSRP ENTERPRISES”. It is an Office management system based on the requirements of the organization. It helps the organization to maintain the records and data in digital manner. And helps to enter data in an easy way. Office is an important section of a business. The term business implies office work. The dictionary meaning of office is “a place for the transaction of business, the room or department, where the clerical work is done,” or we can say, “a place where business is carried on,” or it is, “a place where all sorts of activities of organization are dealt with,” Office is the centre of an organization. Commercial office acts as a central directing and coordinating agency of the various activities of any business.

Project Details: Project Title

Office Management System (DSRP ENTERPRICES)

Front End

ASP.NET (Visual Studio 2015)

Back End

SQL SERVER 2014 (Store Procedure)

Other Tools

HTML forms, CSS & Java Script

Users

1) Administrator

2) Staff

3

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Hardware / Software Requirement 

Server-Side Requirement

Minimum Requirement

Minimum Requirement



Hardware

Software

Processor

CORE i3

Main Memory

2 GB RAM

HDD

2GB

Operating System

Windows 7

Database

SQL SERVER 2014

Platform

Asp.Net

Server

IIS 6.0

Browser

Any Browser

Client-Side Requirement

Minimum Requirement

Minimum Requirement

Hardware

Processor

Pentium III

Main Memory

1 GB RAM

HDD

100 MB Any Browser

Software Browser

Windows 7 or Higher

Operating System

4

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

INTRODUCTION Efficient office management comprises a number of vital functions, including time management, organizing our paperwork and workspace, managing multiple projects simultaneously, and being in control of all your job responsibilities. We could be wasting precious time because of misplaced files or documents. Maybe with all the tasks we are faced with, you are so overwhelmed you don’t know where to start or what to do first. Or we might be missing deadlines, call backs and follows up. The office management tips and methods will put us back in control of our workload. The objective of “DSRP ENTERPRICES OFFICE MANAGEMENT SYSTEM” is to provide a system which takes care of the storage records of the employee’s details, complaints, attendance, salary generation. The system is user friendly and the user will find it easy to use the system. As this is generic system which can be used to reduce the office paper work and maintain the records in digital manner. The project is developed as per the client requirements and their need.

Details of client and External guide: Name: MR. Sharad Sawant (MANAGING DIRECTOR) Contact: 8080803182 (Office Number) / +91 98700 87713

Abstract: DSRP Enterprises is Direct Solution For Recruitment & Placement DSRP Enterprises was established in 2016 in Navi Mumbai, India. The Company provides recruitment services to Corporate Houses in India and around the globe. DSRP Enterprises was established in 2016 in Mumbai, India. Owned by Mr. Dilip K. Sawant & MR. Sharad Sawant The Company provides recruitment services to Corporate Houses in India and around the globe. The Company has been providing excellent job opportunities to candidates across various fields. DSRP comprises of a professional team of Job Placement Consultants in Navi Mumbai, highly skilled in providing human resource solutions that are tailored specially to meet the needs of your company and take it to the next level of the industry's hierarchy. Ranked amongst the best HR

5

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Consultants in Navi Mumbai. Being a customer centric firm, it matches our pace with Top Job Consultants in India. DSRP Enterprises is a fastest growing placement agency in Navi Mumbai. It’s rated as one of the most Credible & Reliable Placement agency in Navi Mumbai.

Proposed System  The Proposed website is computerized and has been developed using advance language.  It gives more facilities than present system.  It allows quick access to any data  Specified Enterprise needed a better way of maintain records for a long run.  The Project is based on various events that are managed by company System.

 The Website maintains all records easy. Proposed system To reduce the inconvenience that were found in maintaining the records, it has been automated so as to provide a user-friendly GUI that will help data entry. This also includes maintenance of employee details and daily attendance & there complaints regarding their systems. The proposed system will include following features:  Creating a database for the office containing the information present with them on the paper in the existing system.  Also, the system is intended to take very few inputs from the user.

6

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Advantage of Proposed System  It is very helpful for every mode of the Website.  It help financially and physically to Company because no need of filing maintaining registers and paper work.  This Website will provide timely report information  Useful for Admin to get information about employee.  Useful for employee to get familiar about enterprise.  The computer can hold amount of data in its storage device.  The operation and speed of the computer is very high.  A database application can be stored in computer effectively.  It is very user friendly and easy to handle.  So the computerized system is more suitable than the manual system.

7

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Module Specification: Admin 

Manage Admin User.



Manage Staff.



Manage Leave.



Manage Attendance.



Generate Excel Sheet of Attendance & System Complaints

Staff 

Login to the Portal.



Apply for Leave.



Register System Complaints

Limitation of Present System  The manually handled system is time consuming.  Data security is not assured.  IT is difficult to maintain record in long run.  Daily and usual record are not maintained in proper Manner.  It’s a hectic to handle huge transactions.

8

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

FRONTEND: - MICROSOFT VISUAL STUDIO 2015  First of all, C#.NET provides managed code execution that runs under the Common Language Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET framework are readily available in C#.NET  C#.NET is totally object oriented. This is a major addition that VB6 and other earlier releases didn't have.  The .NET framework comes with ADO.NET, which follows the disconnected paradigm, i.e. once the required records are fetched the connection no longer exists. It also retrieves the records that are expected to be accessed in the immediate future. This enhances Scalability of the application to a great extent.  C#.NET uses XML to transfer data between the various layers in the DNA Architecture i.e. data are passed as simple text strings.  Error handling has changed in C#.NET. A new Try-Catch-Finally block has been introduced to handle errors and exceptions as a unit, allowing appropriate action to be taken at the place the error occurred thus discouraging the use of ON ERROR GOTO statement. This again credits to the maintainability of the code  Another great feature added to C#.NET is free threading against the VB singlethreaded apartment feature. In many situations developers need spawning of a new thread to run as a background process and increase the usability of the application. C#NET allows developers to spawn threads wherever they feel like, hence giving freedom and better control on the application.  Security has become more robust in C#.NET. In addition to the role-based security in VB6, C#.NET comes with a new security model. Code Access security. This security controls on what the code can access. For example you can set the security to a component such that the component cannot access the database. This type of security is important because it allows building components that can be trusted to various degrees.  The CLR takes care of garbage collection i.e. the CLR releases resources as soon as an object is no more in use. This relieves the developer from thinking of ways to manage memory. CLR does this for them.

9

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

BACKEND: - MICROSOFT SQL SERVER 2014 IBM developed the original version of SQL, originally called Sequel, as part of the System R Project in the early 1970s. The Sequel language has evolved since then, and its name has changed to SQL (Structured Query Language), many products now support the SQL language. SQL has clearly established itself as the standard relational database language. In 1986,the American Standards Institute (ANSI) and the International Organization for Standardization (ISO) published an SQL standard, called SOL86.ANSI published an extended standard for SQL,SQL-89,in 1989.The next version of the standard was SQL-92 standard followed by SQL:1999;the most recent versions are SQL:2008 and then SQL:2012 The SQL language has several parts:  Data-definition language (DDL): The SQL DDL provides Commands for defining relation schemas, deleting relations, and modifying relation schemas.  Interactive data-manipulation language (DML): The SQL DML includes. A query language based on both the relational algebra (2) and the tuple relational calculus (5).It includes also commands for specifying integrity constraints data stored in the database must satisfy. Updates that violate integrity constraints are disallowed.  Views definition: The SQL DDL includes commands for defining views. Beginning and ending of transactions.  Embedded SQL and Dynamic SQL: Embedded and dynamic SQL Define how SQL statements can be embedded within general-purpose programming languages, such as C, C++.Java, PL/I, COBOL, Pascal, and FORTRAN.  Authorization: The SQL DDL includes commands for specifying access Rights to relations and views.

10

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Stakeholders Stakeholders are anyone who has an interest in the project. Project stakeholders are individuals and organizations that are actively involved in the project, or whose interests may be affected as a result of project execution or project completion. They may also exert influence over the project’s objectives and outcomes. The project management team must identify the stakeholders, determine their requirements and expectations, and, to the extent possible, manage their influence in relation to the requirements to ensure a successful project.

The following are examples of project stakeholders: 1. Project Developers: 

Project Developers is one who develops software for customer. In my project I am the first stakeholder i.e. Project Developer.

2. Project customer: 

Project Customer is one who pays for the developed software.

3. Project user Group: 

Project User group are those people who use the software on daily basis for the Project Customer.

4. Project Testers: 

Project Testers are those who test the software. In my project myself, my project guide are the Project Testers.

11

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Chapter 2 System Design

12

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

ER-Diagram

13

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Event Table SR. NO 1.

EVENT Employee Login

TRIGGER SOURCE Login

Employee

Fill Up Complaint Employee form Maintenance Delete Staff Entry (Admin) Enter required Admin fields Enter Required Admin fields

2.

System Complaint

3.

System Complaint Register

4.

Attendance Register

5.

Attendance Register

6.

Add Employee

7.

Enter Work Fill Form Detail

8.

Logout

Fill form

ACTIVITY Authenticate User

RESPONSE DESTINATION User Is Home Page Login

Submit Complaint

Complaint is System Registered Page

Checking complaint register

Complaint System Complaint solved and Register page entry deleted

Check Attendance

Attendance Details

Convert Excel Sheet

Attendance details in Excel Sheet File Excel Sheet

Create Admin/Super Admin/ Admin Employee Account

User Created

Complaint

Attendance Register Page

Add Page

Employee

Work Details Employee / Enter Work Entered and Admin / Logout Page Details attendance Super Admin registered

Look Up Users All Details

User Logout

14

User Logout

Login Page

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Use Case Diagram

15

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Class Diagram

16

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

System Flow Charts

Attendance

Maintain Employee Attendance

Attendance Register

System

DSRP Enterprises Lab Management System

System Complaints

Maintain System Complaints details

Complaints Detail Reportss

Employee

Employee

17

Maintain Employee Details

Details storage

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Site Map Login.aspx

Add Users.aspx

Adding new employee details

System complain .aspx

Complaint register Admin check Complaint register

Homepage .aspx

Company Detail Employees list

18

Attendanc e_register_ page.aspx

Convert attendance register to Excel sheet

Add Users.aspx

Convert attendance register to Excel sheet

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Chapter 3 System Coding

19

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Login.aspx: <%@ Page Language="C#" AutoEventWireup="true" Inherits="CKT_COLLEGE__Computer_Science_.Login" %>

CodeBehind="Login.aspx.cs"

DSRP Enterprises|Login
<span class="login100-form-title"> Employee Login
<span class="focus-input100"> <span class="symbol-input100">
20

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

<span class="focus-input100"> <span class="symbol-input100">
<span class="txt1"> Forgot Username / Password?


Login.aspx.cs: using CKT_COLLEGE__Computer_Science_.DAL; using CKT_COLLEGE__Computer_Science_.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace CKT_COLLEGE__Computer_Science_ { public partial class Login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btn_login_Click(object sender, EventArgs e) { DataConnection dc = new DataConnection();

21

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

EmployeeEntity loginemployee = dc.IsUserAutherised(txtEmail.Text, txtPassword.Text); if (loginemployee != null && !string.IsNullOrEmpty(loginemployee.FullName)) { Session["LoginUser"] = loginemployee.FullName; Session["LoginId"] = loginemployee.ID; Session["LoginUserRole"] = loginemployee.UserRole; Response.Redirect("Home_Page.aspx", false); } else { string display = "Invalid username or password"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + display + "');", true); } } } }

Output:

DSRPMaster.Master: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="DSRPMaster.master.cs" Inherits="CKT_COLLEGE__Computer_Science_.DSRPMaster" %> 22

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

DSRP Enterprises

There are no secrets to success. It is the result of preparation, hard work, and learning from failure.

<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'> <script src="js/index.js">

DSRPMaster.Master.cs: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace CKT_COLLEGE__Computer_Science_ { public partial class DSRPMaster : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { if (Session["LoginUserRole"] != null) if (!(Session["LoginUserRole"].ToString() == "User")) { Admin_section.Visible = Admin_section1.Visible = true; } else { Admin_section.Visible = Admin_section1.Visible = false; } } protected void btn_logout_Click1(object sender, EventArgs e) { Response.Redirect("Log_out.aspx", false); } } }

24

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Home_Page.aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home_Page.aspx.cs" MasterPageFile="~/DSRPMaster.Master" Inherits="CKT_COLLEGE__Computer_Science_.Home_Page" %>

Welcome!!!

Welcome to DSRP Enterprises HR Recruitment Firm
DSRP Enterprises is Direct Solution For Recruitment & Placement
DSRP Enterprises was established in 2016 in Navi Mumbai, India.
The Company provides recruitment services to Corporate Houses
in India and around the globe.


To become the employers preferred Recruitment Agency of choice based on the extent and quality of our service. Endeavour preferred platform for candidates to discover and pursue exciting careers with their ideal organizations.

To provide professional & efficient recruitment solution to meet each client’s needs & requirements. To provide a bridge for individuals to career opportunities to achieve their career goal. we are committed to the provision of excellent customer service, quality staffing and competitive pricing.

25

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM


About Us

DIRECTOR : MR. Dilip krishna Sawant

MANAGING DIRECTOR : MR. Sharad Sawant

*Working Staff*

26

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Name Contact Number Email ID
Mr. DILIP K. SAWANT 8080803183 [email protected]
Mr. SHARAD SAWANT 8080803182 [email protected]
MS. Satnam kaur 8080803152 [email protected]
MS. Shilpa Shinde 8080803157 [email protected]
MS. Farah Shaikh 8080803193 [email protected]
MS. Veda Tawade 8080803126 [email protected]
MS. Ruhi Walia 8080803154 [email protected]
MS. Monika Dhaygude 8080803156 [email protected]
 

Our Leadership



27

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Name Post
Mr. DILIP K. SAWANT Director
Mr. SHARAD SAWANT Managing Director
MS. SATNAM KAUR CEO
Mr. CHANDRASHEKHAR THAKAR Buisness Patner



Facilities




Output:

28

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

29

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

30

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

System Complaints.aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="System Complaints.aspx.cs" MasterPageFile="~/DSRPMaster.Master" Inherits="CKT_COLLEGE__Computer_Science_.System_Complaints" %>
<span class="login100-form-title"> System Complaints
<span class="focus-input100">
<span class="focus-input100">
31

runat="server"

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

System Complaints.aspx.cs: using CKT_COLLEGE__Computer_Science_.DAL; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace CKT_COLLEGE__Computer_Science_ { public partial class System_Complaints : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session["LoginUser"] == null || string.IsNullOrEmpty(Session["LoginUser"].ToString())) Response.Redirect("Login.aspx", false); if (Session["LoginUserRole"] != null) if (!(Session["LoginUserRole"].ToString() == "User")) { Admin_section1.Visible = true; } else { Admin_section1.Visible = false; } } protected void btn_Sc_form_Click(object sender, EventArgs e) { DataConnection dc = new DataConnection(); if (dc.CreateTickets(Convert.ToInt32(Session["LoginId"]), txtPCno.Text,txtTicketDescription.Text)) { string display = "Success Message"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + display + "');", true); } else { string display = "Error Message"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + display + "');", true); } txtPCno.Text = ""; txtTicketDescription.Text = ""; } } }

32

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Output:

Header_footer.Master: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Header_footer.master.cs" Inherits="DSRP.Header_footer" %> DSRP Enterprises

Complaint Register.aspx <%@ Page Title="" Language="C#" MasterPageFile="~/Header_footer.Master" AutoEventWireup="true" CodeBehind="Complaint Register.aspx.cs" Inherits="DSRP.Complaint_Register" %>


34

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM


" SelectCommand="SELECT * FROM [TTickets]">


Complaint Register.aspx.cs: using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace DSRP { public partial class Complaint_Register : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btn_del_id_Click(object sender, EventArgs e) { try { 35

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

using (SqlConnection con = new SqlConnection("Data Source=LUCIFER\\SQLEXPRESS;Initial Catalog=DSRPENTERPRISES;Integrated Security=True;")) { con.Open(); using (SqlCommand command = new SqlCommand("DELETE FROM TTickets WHERE ID=" + txt_IDNumber.Text, con)) { command.ExecuteNonQuery(); string display = "Success Message"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + display + "');", true); } con.Close(); } } catch { string display = "Something Is wrong"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + display + "');", true); } } } }

36

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Output:

37

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Add_Users.aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add_User.aspx.cs" MasterPageFile="~/Header_footer.Master" Inherits="CKT_COLLEGE__Computer_Science_.Add_User" %>

Add User

38

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

<script src="vendor adduser/jquery/jquery.min.js"> <script src="vendor adduser/select2/select2.min.js"> <script src="vendor adduser/datepicker/moment.min.js"> <script src="vendor adduser/datepicker/daterangepicker.js"> <script src="jsadduser/global.js">


39

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM



Add_Users.aspx.cs: using CKT_COLLEGE__Computer_Science_.DAL; using CKT_COLLEGE__Computer_Science_.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace CKT_COLLEGE__Computer_Science_ { public partial class Add_User : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session["LoginUser"] == null || string.IsNullOrEmpty(Session["LoginUser"].ToString()) || Session["LoginUserRole"].ToString() == "User") Response.Redirect("Login.aspx", false); } protected void btn_adduser_Click(object sender, EventArgs e) { EmployeeEntity employee = new EmployeeEntity(); DataConnection dc = new DataConnection(); employee.FullName = fname.Text; employee.EmailID = Email_ID.Text; employee.Password = Password.Text; employee.DOJ = Convert.ToDateTime(DOJ.Text); employee.DOB = Convert.ToDateTime(DOB.Text); if (Session["LoginUserRole"].ToString() == "Super Admin") employee.UserRoleID = 2; else employee.UserRoleID = 3; if (dc.CreateUser(employee)) { string display = "Success Message"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + display + "');", true); } else { 40

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

string display = "Error Message"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + display + "');", true); } } } }

Output:

41

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Log_out.aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Log_out.aspx.cs" Inherits="CKT_COLLEGE__Computer_Science_.Log_out" %>








Log_out.aspx.cs: using CKT_COLLEGE__Computer_Science_.DAL; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace CKT_COLLEGE__Computer_Science_ { public partial class Log_out : System.Web.UI.Page 42

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

{ protected void Page_Load(object sender, EventArgs e) { if (Session["LoginUser"] == null || string.IsNullOrEmpty(Session["LoginUser"].ToString())) Response.Redirect("Login.aspx", false); } protected void btn_logout_Click(object sender, EventArgs e) { DataConnection dc = new DataConnection(); if (dc.UserLogout(Convert.ToInt32(Session["LoginId"]), txtWorkSummury.Text)) { Session.Clear(); Session.Abandon(); Session["LoginUser"] = null; Session["LoginId"] = null; Session["LoginUserRole"] = null; Response.Redirect("Login.aspx", false); } else { string display = "Error Message"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + display + "');", true); } } } }

Output:

43

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

DataConnection.cs: using CKT_COLLEGE__Computer_Science_.Entity; using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Linq; using System.Web; namespace CKT_COLLEGE__Computer_Science_.DAL { public class DataConnection { public EmployeeEntity IsUserAutherised(string username, string password) { EmployeeEntity loginemployee = new EmployeeEntity(); try { //Get connection string from web.config file string strcon = ConfigurationManager.ConnectionStrings["DSRPEnterprise"].ConnectionString; //create new sqlconnection and connection to database by using connection string from web.config file SqlConnection con = new SqlConnection(strcon); con.Open(); SqlCommand cmd = new SqlCommand("UserLogin", con); cmd.CommandType = System.Data.CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@EmailID", username)); cmd.Parameters.Add(new SqlParameter("@Password", password)); using (var reader = cmd.ExecuteReader()) //error occurs here { while (reader.Read()) { loginemployee.ID = Convert.ToInt32(reader["ID"]); loginemployee.EmailID = reader["EmailID"].ToString(); loginemployee.FullName = reader["FullName"].ToString(); loginemployee.UserRole = reader["UserRole"].ToString(); loginemployee.DOB = Convert.ToDateTime(reader["DOB"]); loginemployee.DOJ = Convert.ToDateTime(reader["DOJ"]); } } con.Close(); return loginemployee; } catch (Exception) { return loginemployee; } }

44

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

public bool CreateUser(EmployeeEntity employee) { try { //Get connection string from web.config file string strcon = ConfigurationManager.ConnectionStrings["DSRPEnterprise"].ConnectionString; //create new sqlconnection and connection to database by using connection string from web.config file SqlConnection con = new SqlConnection(strcon); con.Open(); SqlCommand cmd = new SqlCommand("CreateEmployee", con); cmd.CommandType = System.Data.CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@EmailID", employee.EmailID)); cmd.Parameters.Add(new SqlParameter("@Password", employee.Password)); cmd.Parameters.Add(new SqlParameter("@UserRoleID", employee.UserRoleID)); cmd.Parameters.Add(new SqlParameter("@FullName", employee.FullName)); cmd.Parameters.Add(new SqlParameter("@DOJ", employee.DOJ)); cmd.Parameters.Add(new SqlParameter("@DOB", employee.DOB)); cmd.ExecuteNonQuery(); con.Close(); return true; } catch (Exception) { return false; } } public List<EmployeeEntity> GetAllUser() { List<EmployeeEntity> lstemployee = new List<EmployeeEntity>(); try { //Get connection string from web.config file string strcon = ConfigurationManager.ConnectionStrings["DSRPEnterprise"].ConnectionString; //create new sqlconnection and connection to database by using connection string from web.config file SqlConnection con = new SqlConnection(strcon); con.Open(); SqlCommand cmd = new SqlCommand("GetAllUser", con); cmd.CommandType = System.Data.CommandType.StoredProcedure; using (var reader = cmd.ExecuteReader()) //error occurs here { while (reader.Read()) { EmployeeEntity employee = new EmployeeEntity(); employee.ID = Convert.ToInt32(reader["ID"]); employee.EmailID = reader["EmailID"].ToString(); employee.FullName = reader["FullName"].ToString(); employee.DOB = Convert.ToDateTime(reader["DOB"]); 45

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

employee.DOJ = Convert.ToDateTime(reader["DOJ"]); lstemployee.Add(employee); } } con.Close(); return lstemployee; } catch (Exception ex) { return lstemployee; } }

public bool UserLogout(int Eid, string WorkSummury) { try { //Get connection string from web.config file string strcon = ConfigurationManager.ConnectionStrings["DSRPEnterprise"].ConnectionString; //create new sqlconnection and connection to database by using connection string from web.config file SqlConnection con = new SqlConnection(strcon); con.Open(); SqlCommand cmd = new SqlCommand("UserLogOut", con); cmd.CommandType = System.Data.CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@Eid", Eid)); cmd.Parameters.Add(new SqlParameter("@WorkSummury", WorkSummury)); cmd.ExecuteNonQuery(); con.Close(); return true; } catch (Exception ex) { return false; } }

public bool CreateTickets(int Eid, string PCNo, string Ticket) { try { //Get connection string from web.config file string strcon = ConfigurationManager.ConnectionStrings["DSRPEnterprise"].ConnectionString; //create new sqlconnection and connection to database by using connection string from web.config file SqlConnection con = new SqlConnection(strcon); con.Open(); 46

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

SqlCommand cmd = new SqlCommand("CreateTickets", con); cmd.CommandType = System.Data.CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@Eid", Eid)); cmd.Parameters.Add(new SqlParameter("@PCno", PCNo)); cmd.Parameters.Add(new SqlParameter("@Ticket", Ticket)); cmd.ExecuteNonQuery(); con.Close(); return true; } catch (Exception ex) { return false; } } } }

Entity AttendanceEntity.cs: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CKT_COLLEGE__Computer_Science_.Entity { public class AttendanceEntity { public int ID { get; set; } public int EmployeeID { get; set; } public DateTime SignIn { get; set; } public DateTime SignOut { get; set; } public string WorkSummury { get; set; } public string EMP_Name { get; set; } } }

EmployeeEntity.cs: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CKT_COLLEGE__Computer_Science_.Entity 47

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

{ public class EmployeeEntity { public int ID { get; set; } public string EmailID { get; set; } public string Password { get; set; } public string UserRole { get; set; } public int UserRoleID { get; set; } public string FullName { get; set; } public DateTime DOJ { get; set; } public DateTime DOB { get; set; } } }

TicketsEntity.cs: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CKT_COLLEGE__Computer_Science_ { public class TicketsEntity { public int ID { get; set; } public int EmployeeID { get; set; } public string Ticket { get; set; } } }

UserRoleEntity.cs: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CKT_COLLEGE__Computer_Science_.Entity { public class UserRoleEntity { public int ID { get; set; } public string UserRole { get; set; } } }

48

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Chapter 4 System Implementation

49

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

System Implementation 1. Install Visual Studio 2015 and Microsoft SQL Server 2014 2. Copy the project file and exported db file. 3. Import the db file in SQL Server 2014. 4. Open the .sln extention file in Visual Studio 2015 5. Change the Data String with your own (in Dal folder DataConnection.cs) 6. And run the project file in any of the browser

50

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Chapter 5 Result

51

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Results SR. PRE TEST CASE ID OBJECTIVE No CONDITIONS

1

Click on login button to Admin_Login_ authenticate 01 user and take it into the portal

2

Open System Complaint Admin_Login_ page and click 02 on Admin: Check Complaints

3

Test that weather the Admin_Login_ registered 03 complaint entry is deleted or not

4

Check the Admin_Login_ attendance of 04 particular employee

5

Admin_Login_ 05

6

Click on login button to Employee_Log authenticate in_01 user and take it into the

Add a new Employee

STEPS

TEST CASE DATA

EXPECTED ACTUALL RESULT RESULT

User(Super Enter User(Super Admin) get authenticate Admin) get successfull admin User ID: entered into y entered Login page ID and [email protected] the portal into the must be open Password Pass: pass Attendance portal And click on Time IN Attendance login entered Time IN entered All Click on All System Complaint Registered Admin: Registered Complaint register will System Check System Page must be generated in grid complaints Complaints complaints open view Should be link are listed listed Admin: Check Complaints Enter page must be Complaint Complaint Complaint open and ID which ID: 12 ID: 12 Complaint should be Complaint ID: 12 Entry Entry is which is deleted, should be Deleted registered Click on Deleted should be Delete button solved Select Name: Rohit Particular employee Particular Dilip Sawant Employee Attendance name , From Employee From Date: Attendance Register page date & to Attendance 15/09/2018 Details must be open date and Details are To Date: should be click on listed 13/10/2018 listed search Name: harshadasawant Email ID: [email protected] Employee om details must Employee Add Enter Pass: 1234 be added details are Employee Employee DOB: 2018-10and its added and page must be Details 11 Account its Account open DOJ: 2018-10must be Is created 12 created Gender: Female Phone:98765432 12 Enter Employee Employee ID: authenticate get entered get Login page [email protected] User ID and into the successfull must be open om Password portal y entered Pass: 1234 And click on Attendance into the 52

STATUS (PASS /FAIL)

PASS

PASS

PASS

PASS

PASS

PASS

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

portal

login

7

Enter PC System Number Register Your Employee_Log Complaint Enter Detail System in_02 Page must be info about Complaint Open your complaint

8

Click on Log Out button and then Enter The Work Description and click on Log Out

Employee_Log Log Out of in_03 the portal

Any of the page

53

Time IN entered

portal Attendance Time IN entered

System System Complaint Complaint PC No.: 1 details details are System Issue: should be PASS registered Software Issue registered into into database database User is User Must logged out Be logged and out and Attendance Attendance Time Out Time Out is entered Work must be into the Description: PASS entered into database Testing the portal the database with work with work details details And And redirected to redirected Login Page to Login Page

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Chapter 6 Conclusion

54

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Conclusion  System helps to keep all the data about Enterprises and Employee to be stored in computer and there is no need to do paper work.  Data is going to be preserved carefully for longer period hence proper backup is required otherwise there is chance of losing entries.  There are also chances that calculation error can occur which can cause huge problem.  Easy to get Information by Time.  This information can be modified, deleted, Update as required.  More Comfortable for Company to get information about their office profile and employee work.

55

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Chapter 7 Future Enhancements

56

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Future Enhancements  The project contain a main module named as Employee Attendance right now in this project it is automated via login and logout we can move a step forward towards QR code scanning attendance.  Employee Salary Generations as per there working hours and days  Invoice generation.  Applying for leave, requesting for appointment letter etc.  Updating employee details (Admin).  Improvements in Attendance Register.  Improvements in designs.  Storing Detail info about employee

57

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Chapter 8 References

58

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

References

Requirements: DSRP ENTERPRISES

Enterprises Official Website: http://dsrpjobs.com/

Web Application guidance: https://www.w3schools.com/ https://www.aspsnippets.com/ https://stackoverflow.com/ https://docs.microsoft.com/en-us/dotnet/

59

DSRP ENTERPRISES OFFICE MANAGEMENT SYSTEM

Plagiarism report

60

Related Documents


More Documents from "Emieda Eraine"

Exp.docx
April 2020 9
Xperience 2008
November 2019 13
Story Board 28.docx
December 2019 13
H2 Footbridges
August 2019 26