You are on page 1of 69

Department of Computer Applications

T.JOHN COLLEGE

(Affiliated to Bangalore University & Approved to AICTE)

Gottigere, Bengaluru -560083

GUEST WORKERS INFO SYSTEM

A project report submitted to the Bangalore University in the partial


fulfillment of the requirements for the award of the degree of

MASTER OF COMPUTER APPLICATIONS

Submitted by

Muhammed Harshaqe
Reg No: MAC185308

Under the guidance of

Dr. S. DINAKARAN MCA, PH.D

(Assistant professor, Department of Computer Applications)

DECEMBER 2021
ACKNOWLEDGEMENT
Contents
1 INTRODUCTION 1

2 SYSTEM ANALYSIS 2
2.1 Module Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.2 Feasibility Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.1 Technical Feasibility . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.2 Economical Feasibility . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.3 Operational Feasibility . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3 System Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3.1 Software Environment . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3.2 Hardware Environment............................................................................... 12
2.4 Actors and roles...................................................................................................... 13

3 SYSTEM DESIGN 15
Use case model................................................................................................................................15
Activity diagram..................................................................................................................... 18
Sequence Diagram...........................................................................................................................22
Class Diagram..................................................................................................................................25
Database design............................................................................................................................... 26
UI Design.........................................................................................................................................30
Testing 43
Implementation....................................................................................................................... 47
Git History.............................................................................................................................. 48

4 CONCLUSION 49

5 SCOPE AND FUTURE ENHANCEMENTS 50


6 APPENDIX 51
Minimum Software Requirements.......................................................................................... 51
Minimum Hardware Requirements........................................................................................ 51

7 REFERENCES 52
List of Figures

Use case Model............................................................................................................................... 15


Sub-Diagram for work Mnagement........................................................................................ 17
Work Permit Allocation.......................................................................................................... 18
Renew Process................................................................................................................................ 19
Work Management.................................................................................................................. 20
Crime Updation...................................................................................................................... 21
Allow Work Permit................................................................................................................. 22
Renew 22
Work Management.................................................................................................................. 23
Crime Updating...................................................................................................................... 24
Class Diagram.................................................................................................................................25
Home screen.................................................................................................................................... 30
Log In Page............................................................................................................................. 31
Signup Page.....................................................................................................................................32
Registration Page.................................................................................................................... 33
Authetication Page................................................................................................................. 34
Display Approved Workers List............................................................................................. 35
Add job Page.......................................................................................................................... 36
Job View of Contractor..................................................................................................................37
job View of worker page................................................................................................................ 38
Displays recived job request................................................................................................... 39
Renew Page.....................................................................................................................................40
complaint registration page.................................................................................................... 41
Updating Case Details............................................................................................................ 42
Git Pushed file........................................................................................................................ 48
1. INTRODUCTION

The Guest workers info system is to calculate and manage the demographical data of guest
workers. So we can convert the decentralized system into a centralized one. A well designed
informative and updated website helps as to know the scenario of the migrants

There is no proper system for controlling the flow of guest workers. It is done by
manually. Therefore, there is no way for calculating the exact number and verifying the
identity of them. In the present situation anyone have the right to come and do work. It leads
to many problems faced by society and government, they are the The government has no
specific tool to calculate the incoming data of the guest workers and there is no proper
record about the labors working under each contractor, As we are having no identity about
the guest workers, many people who are not having the Indian citizenship are coming here
and living, At present in our society they are having a trend to commit many crimes for
their benefits, Since there is no restriction for the migrants, our labors are facing many
problems like they are working for low wages, reduced job vacancies etc. Even they are also
facing some problems like many contractors are treating them as slaves and they are forced
to do overtime works without giving proper wages. All this offences are happening due to
the failure of our existing system.

The development of this new system contains the following activities, which try to auto-
mate the entire process keeping in the view of database integration approach. The system
maintains the Databank of all guest workers. This system maintains user’s personal, address,
and contact details. User friendliness is provided in the application with various controls by
system rich user interface. Through the system we provide an online website to the guest
workers, contractors and sponsors (a person who introduces and supports all the basic needs
of a guest worker) to register with all their official details. All the necessary information will
be displayed on the homepage. This system is providing accessibility control to data with
respect to user’s feedback.
2. SYSTEM ANALYSIS

Module Description

• Registration:
Users can register for this system by use of this module.Before login to the sys- tem,
the user should complete the registration. Registration involves gathering basic user
personal information with their ID proofs. Then the users can login to the system by
using Their Username and Password. Each User have their own accounts in it.

• Authentication:
In this system, authentication can be done by providing Activate their Accounts. Here
the verification is done mainly for the ID proof and Adhar Number that has
provided by the user. It removes the possibility of registering fake user. Before login to
the system, the user should complete the registration.When the User submits the
registration form, administrator will completes the verification process and, if
successful, the User details are added to the database.Thus, the verified users are get
proceeded to further procedures.

• Permit Allocation:
After the Authentication process Admin gives a permit to the users for do work.This is
Known ”Work Permit”. In this module the admin gives permission to the guest
workers and contractors for do works. It is get them like a PDF file format. They can
view and download the file from their Own Profiles.
Guest Workers Info System

• Renew:
. Even the workers have the permit to work in our state after a period of 12 months
(365 days) they are requested to renew the Permit. Otherwise block the Permit after
crossing the last date and also calculating a fine amount for the worker.

• Block User:
Admin can block the user (deactivate the account) due to any uncertain situation
occurred. may be the number of crimes is increasing and like so

• Crime Detail Updation:


if any criminal offences being registered it will be updated in Corresponding user
Profile. In this module the admin can add the FIR case history and view the details by
Contractors.

• Post and Remove Works:


Post a work with basic details Including time, place, and wage. Contractors can add
Work as well as they can remove it from the site.

• Send Request:
The workers can send a request message to contractors for each work posted in the
site. The contractors can decide Reject or Accept. if Accept a notification pass to the
workers.

• Complaint:
In this site theire is facility for register the omplaints of both workers and con- tractors.
and also the users can check the current status of (further steps taken) complaints.

Department of Computer Applications, MCA 3


Guest Workers Info System

Feasibility Analysis

A feasibility study aims to objectively and rationally uncover the strengths and
weaknesses of an existing system or proposed system, opportunities and threats present in
the natural environment, the resources required to carry through, and ultimately the
prospects for success.
Evaluated the feasibility of the system in terms of the following categories:

• Technical Feasibility

• Economical Feasibility

• Operational Feasibility

Technical Feasibility

The Proposed system “Alumni Wall” is technically feasible since all the required tools are
easily available.

• Required tools are easily available.

• Necessary technology existence

• Technical guarantees of accuracy, reliability, ease of access, secure payments, and


aspects of future expansion.

Economical Feasibility

In our proposed system

• The development cost of the application is optimum

• The hardware requirement is much feasible

• No much maintenance is required.

Hence, the proposed system is economically feasible.

Department of Computer Applications, MCA 4


Guest Workers Info System

Operational Feasibility

Operational feasibility assesses the extent to which the required system performs a
series of steps to solve business problems and user requirements. Operational fea- sibility is
mainly concerned with issues like whether the system will be used if it is developed and
implemented. The proposed system really benefits the organiza- tion and the management
supports to the project. And they have been involved in the planning and development of
the project. By all these the proposed system is Operationally feasible.

Department of Computer Applications, MCA 5


Guest Workers Info System

System Environment

System environment specifies the hardware and software configuration of the new system.
Regardless of how the requirement phase proceeds, it ultimately ends with the software
requirement specification. A good SRS contains all the system requirements to a level of
detail sufficient to enable designers to design a system that satisfies those requirements.
The system specified in the SRS will assist the potential users to determine if the system
meets their needs or how the system must be modified to meet their needs.

Software Environment

Front End : Python

IDE : Pycharm

This website is developed using the following latest development tools:

1. SQLite 3

SQLite version 3.0 is made possible in part by AOL developers supporting and embracing
great Open-Source Software. SQLite version 3.0 introduces important changes to the
library, including:
- A more compact format for database files.
- Manifest typing and BLOB support.
- Support for both UTF-8 and UTF-16 text.
- User-defined text collating sequences.
- 64-bit ROWIDs.
- Improved Concurrency.

Following are the advantages of using SQLite 3 Database in our project:

• Lightweight:
SQLite is a very light weighted database so, it is easy to use it as an embedded
software with devices like televisions, Mobile phones, cameras, home electronic
devices, etc.

• Better Performance: - Reading and writing operations are very fast for SQLite
database.It is almost 35% faster than File system.

Department of Computer Applications, MCA 6


Guest Workers Info System

- It only loads the data which is needed, rather than reading the entire file and hold
it in memory.
- If you edit small parts, it only overwrite the parts of the file which was changed.

• No Installation Needed: SQLite is very easy to learn. You don’t need to install and
configure it. Just download SQLite libraries in your computer and it is ready for
creating the database.

• Reliable: It updates your content continuously so, little or no work is lost in a case
of power failure or crash. SQLite is less bugs prone rather than custom written file I/O
codes. SQLite queries are smaller than equivalent procedural codes so, chances of
bugs are minimal.

• Portable: SQLite is portable across all 32-bit and 64-bit operating systems and big-
and little-endian architectures. Multiple processes can be attached with same
application file and can read and write without interfering each other. It can be used
with all programming languages without any compatibility issue.

• Accessible: SQLite database is accessible through a wide variety of third-party


tools.SQLite database’s content is more likely to be recoverable if it has been lost.
Data lives longer than code.

• Reduce Cost and Complexity: It reduces application cost because content can be
accessed and updated using concise SQL queries instead of lengthy and error-prone
procedural queries. SQLite can be easily extended in in future re- leases just by adding
new tables and/or columns. It also preserve the backwards compatibility.

2. Pycharm

PyCharm is an integrated development environment (IDE) used in computer pro-


gramming, specifically for the Python language. It is developed by the Czech company
JetBrains.[6] It provides code analysis, a graphical debugger, an integrated unit tester,
integration with version control systems (VCSes), and supports web development with
Django as well as data science with Anaconda.

Here we use Pycharm as an IDE for website development.


Advantages:
There are many advantages over any other IDE, they are as follow:

• Intelligent Code Editor PyCharm comes with a smart code editor that fa- cilitates
writing high-quality Python code. It offers an enhanced level of code

Department of Computer Applications, MCA 7


Guest Workers Info System

comprehension and readability by means of distinct color schemes for keywords,


classes, and functions, i.e., syntax and error highlighting.
In addition to offering the smart code completion feature, the code editor gener- ates
instructions for completing the current code. Identifying errors and issues is much
more comfortable, along with linter integration and quick fixes.

• Availability of Integration Tools PyCharm provides support for integrating a range of


tools. These tools vary from helping in enhancing the code produc- tivity to facilitate
dealing with data science projects. Some of the most essential integration tools
available for PyCharm include:
Anaconda - A free and open-source Python distribution geared towards scientific
computing with simplified package management and deployment. IPython - A robust
command shell for interactive computing. Kite - An AI-powered auto- complete
plugin. Pylint - A source-code, bug, and quality checker. pytest - A framework for
writing small tests for Python code. WakaTime - A developer dashboard with
productivity metrics and automatic time tracking

• Data Science and Machine Learning [Professional Edition Only] Py- Charm comes with
support for scientific libraries, such as Matplotlib and SciPy, to help Python developers
accomplish data science and machine learning projects.
ı Google App Engine [Professional Edition Only] Google App Engine, or directly App
Engine, is a PaaS and cloud computing platform targeted towards developing and
hosting web applications. It offers automatic scaling for web applications. The
professional edition of PyCharm provides support for Google App Engine.

• Integrated Debugging and Testing An IDE comes with support for de- bugging and
testing programs. To accomplish the same, PyCharm features an integrated Python
debugger and integrated unit testing with line-by-line code coverage.

• Multi-technology Development [Professional Edition Only] Python de- velopers can also
use PyCharm for creating web applications. As such, the Python IDE provides support
for popular web technologies, including Coffee- Script, CSS, HTML, JavaScript,
TypeScript. Additionally, it also includes sup- port for Cython, template languages,
and SQL.
Live editing is also available in PyCharm, i.e., developers can create/modify a web
page while pushing it live simultaneously. Hence, changes can be followed directly on
a web browser. Building web applications using AngularJS or NodeJS is also available.

Department of Computer Applications, MCA 8


Guest Workers Info System

• Project and Code Navigation The code navigation feature makes it much easier for
developers to navigate to a class, function, or file. It also helps in sig- nificantly
cutting-down effort and time required to edit and enhance the Python code. File
structure views and specialized project views are readily available.
The lens mode allows a developer to inspect and debug the entire Python source code
thoroughly. With code navigation, locating an element, variable, etc. is done in almost
no time. Developers can quickly jump between classes, files, and methods.

• Refactoring The refactoring feature in PyCharm helps in improving the inter- nal
structure of a Python program without affecting the external performance of the
same. Making changes to both local and global variables is efficient and fast.
The extract method is also there to split up extended classes and functions. Other
useful code refactoring features include:
Introduce constant Introduce variable Pull up Push down Rename

• Remote Development PyCharm allows running, debugging, testing, and de- ploying
applications on remote hosts or virtual machines. For the purpose, the Python IDE
offers:
An integrated SSH terminal Docker and Vagrant integration Remote interpreters

• Support for Popular Python Web Frameworks [Professional Edition Only] PyCharm lets
developers leverage Django in their Python development projects. The Python IDE offers
the autocomplete feature and generates sug- gestions for Django.
Debugging code written using Django is also available. PyCharm also provides
support for other popular Python frameworks, namely Flask, Pyramid, and web2py.

• Version Control Systems (VCSs) Integration In its simplicity, a version control system
(VCS) keeps track of the changes made to files, applications, and other sources of
information. It can be considered as a database of changes.
PyCharm provides a unified user interface for CVS, Git, Mercurial, Perforce, and
Subversion.

Department of Computer Applications, MCA 9


Guest Workers Info System

Other Pycharm Features Other than the aforementioned features, PyCharm offers
the following capabilities:
Code generation for generating language-specific code constructs. Code reference
information for instantly accessing API documentation, hints on using various
programming entities, etc File templates for creating scripts, stub classes, etc Import
assistance for importing missing libraries Intention actions and quick fixes for
optimizing code Language-specific tools for developing, running, test- ing, and
deploying applications Language injections to work with supported languages inside
attributes, tags, or string literals Live templates for expanding abbreviations into
complicated code constructs

4.Python

Python is an interpreted, object-oriented, high-level programming language with


dynamic semantics. Its high-level built in data structures, combined with dynamic
typing and dynamic binding, make it very attractive for Rapid Appli- cation
Development, as well as for use as a scripting or glue language to connect existing
components together. Python’s simple, easy to learn syntax emphasizes readability and
therefore reduces the cost of program maintenance. Python sup- ports modules and
packages, which encourages program modularity and code reuse. The Python
interpreter and the extensive standard library are available in source or binary form
without charge for all major platforms, and can be freely distributed.

Programmers fall in love with Python because of the increased productivity it


provides. Since there is no compilation step, the edit-test-debug cycle is incred- ibly
fast. Debugging Python programs is easy: a bug or bad input will never cause a
segmentation fault. Instead, when the interpreter discovers an error, it raises an
exception. When the program doesn’t catch the exception, the inter- preter prints a
stack trace. A source level debugger allows inspection of local and global variables,
evaluation of arbitrary expressions, setting breakpoints, stepping through the code a
line at a time, and so on. The debugger is written in Python itself, testifying to
Python’s introspective power. On the other hand, often the quickest way to debug a
program is to add a few print statements to the source: the fast edit-test-debug cycle
makes this simple approach very effective. These are reason for choosing python as
backend.

Department of Computer Applications, MCA 10


Guest Workers Info System

5. Github

Git is an open-source version control system that was started by Linus Tor- valds the
same person who created Linux. Git is similar to other version control systems
Subversion, CVS, and Mercurial to name a few. Version control systems keep these
revisions straight, storing the modifications in a central repository. This allows
developers to easily collaborate, as they can download a new version of the software,
make changes, and upload the newest revision. Every developer can see these new
changes, download them, and contribute. Git is the preferred version control system of
most developers, since it has multiple advantages over the other systems available. It
stores file changes more efficiently and ensures file integrity better. If you’re interested
in knowing the details, the Git Basics page has a thorough explanation on how Git
works.

The social networking aspect of GitHub is probably its most powerful feature,
allowing projects to grow more than just about any of the other features offered.
Project revisions can be discussed publicly, so a mass of experts can contribute
knowledge and collaborate to advance a project forward.

6. Django

Django is a high-level Python web framework that enables rapid development of


secure and maintainable websites. Built by experienced developers, Django takes care
of much of the hassle of web development, so you can focus on writing your app
without needing to reinvent the wheel. It is free and open source, has a thriving and
active community, great documentation, and many options for free and paid-for
support.

Django helps you write software that is:

– Complete
– Versatile
– Secure
– Reusability : It offers the unified API to access multiple databases.
– Security : It uses a prepared statement which protects from SQL injection. A
prepared statement is a pre-compiled SQL statement that separates the instruction
of the SQL statement from the data

Department of Computer Applications, MCA 11


Guest Workers Info System

Hardware Environment

Hardware capacity : 10 GB(minimum)

RAM : 4 GB

Processor : Intel Core i3

Display : 1366 * 768

Minimum Software Requirements

Software : Pycharm (IDE)


Operating System : Windows

Department of Computer Applications, MCA 12


Guest Workers Info System

Actors and roles

1. Admin

Admin is super user of this application. Admin verify the records and details of
users and allocate work permit Also do block (cancel the issued work permit) the users
due to any uncertain situations occurred (crime detection , didn’t do renewal after time
period). If any criminal offences are being registered, it will be update in
corresponding users profile they will be terminated if it reaches more than 3. and
track the empolyee details along with contractors .
2. Guest Worker

The guest workers wants register in to the site and enter the details of ID proof.
They should also link their Adharcard along with the official details. With those details
provided by them the government verifies and allot a work permit with a unique id to
each worker. Even if they have the permit to work in our state after a period of 12
months they are requested to renew the permit. The users have a facility for
registering their complaints and know their status.
2. Contractors

The contractors are register in the website. They should also provide an idea about
the place, wage and basic working conditions and enter the id and details of the guest
works to admin. they can post the Work details and select workers from them.

Department of Computer Applications, MCA 13


1.SYSTEM DESIGN

Use case model

A UML diagram is a diagram based on the UML (Unified Modeling Language) with
the purpose of visually representing a system along with its main actors, roles, actions,
artefacts or classes, in order to better understand, alter, maintain, or document
information about the system.

Figure 1.1: Use case Model


Guest Workers Info System

The Guest Worker and the Contractor need to register to the system for the first
time. The registration involves an authentication process. The admin takes initiative in
this authentication process. So here the Registration module uses the Authentication
process. After the Authentication process Permit Allocation is done.

Block user means Deactivate the Account of a User due to the Number of Crimes
Increasing. Block user module extends from Crime Updating Because it depends on
crime numbers. In Crime updating if any worker committed to any illegal activities the
FIR details entering in the worker’s Profile. and the Renewal is renew the work permit
of Workers , Firstly Allocate the work permit for 12 months, the 365th Day (Expiring
12 months) they again requested to Renew the Permit Otherwise Automatically block
the Permit and Fine Calculate for each day.

Work Management is consist of many activities , contractors can that are Post
the Work(Also remove) Details on the site with basic details and the Guest workers
can the facility to view the Job , if they are interested they can send a Request for that
job , it received by the corresponding contractor who posted the work. and the
contractors can respond with Reject or accept it changes the request status on workers
profile. each user’s profile they can register complaints and view the status what action
are taken for our complaint that is updated by admin.

Department of Computer Applications, MCA 16


Guest Workers Info System

Figure 1.2: Sub-Diagram for work Mnagement

Department of Computer Applications, MCA 17


Guest Workers Info System

2. Activity diagram

Figure 2.1: Work Permit Allocation

A User can create an account by entering the basic personal details and ID proofs. The
Admin verifies the provided details and makes a confirmation on the verification process.
The partner can proceed further after the successful verification process. After the
Authentication Admin gives a Permit With Unique id.

Department of Computer Applications, MCA 18


Guest Workers Info System

Figure 2.2: Renew Process

After the Period of 12 months the Guest Workers Permit is temporarly Blocked then they
send Renew Request For re-allocating the Permit . Then the Fine for each user is calculated
and inform them . after the payment of amount admin granded the submission.

Department of Computer Applications, MCA 19


Guest Workers Info System

Figure 2.3: Work Management

Work Management is consist of post the Work(Also remove) Details on the site with
basic details and the Guest workers can the facility to view the Job , if they are
interested they can send a Request for that job , it received by the corresponding contractor
who posted the work. after the verification process they decide reject or accept it changes the
request status on workers profile. if accept the worker that details send to admin.

Department of Computer Applications, MCA 20


Guest Workers Info System

Figure 2.4: Crime Updation

The Guest workers entered any crime admin add the details of crime in to their profile ,
and check the number of crime if it is greater than 3 the corresponding account will be
deactivated , then after they can’t login to the account.

Department of Computer Applications, MCA 21


Guest Workers Info System

3. Sequence Diagram

Allow Work Permit

Figure 3.1: Allow Work Permit

Admin can allow work permit by use of this.the process is done through the
user/worker register in the site , after registration admin verifies the details and ID then
approve the registration through activating users login. Completing the autheti- cation
process admin send a permit to worker for do works.

Renew

Figure 3.2: Renew

Department of Computer Applications, MCA 22


Guest Workers Info System

In renew process user sends a renew request, it calculate a fine amount for delay.
A fter the payment is done admin granted the renew request. it changes the permit
status .

Work Management

Figure 3.3: Work Management

The Contractors post the job details on the site. both admin and worker can view that.
workers send a work request to the contractor they verifies the details and then accept or
reject them . the admin can get details of worker from view job page

Department of Computer Applications, MCA 23


Guest Workers Info System

Crime Updating

Figure 3.4: Crime Updating

Admin updates the case history of workers . if the number is greater than a fixed limit,
the account deactivated.

Department of Computer Applications, MCA 24


Guest Workers Info System

4. Class Diagram

Figure 4.1: Class Diagram

Department of Computer Applications, MCA 25


Guest Workers Info System

Database design

Table name :User

Table name : Guest worker

Department of Computer Applications, MCA 26


Guest Workers Info System

Table name : Contractors

Table name : Permit

Table name : Job

Department of Computer Applications, MCA 27


Guest Workers Info System

Table name : Request

Table name : Renew

Table name : FIR

Department of Computer Applications, MCA 28


Guest Workers Info System

Table name :Complaint

Department of Computer Applications, MCA 29


Guest Workers Info System

UI Design

Figure 3.12: Home screen

The home page displays the message ”EFFECTIVE GOVERNANCE BETTER


CITIZEN SERVICES” and it also consist of navigation to signup page and login page.
contact number displays on the top

Department of Computer Applications, MCA 30


Guest Workers Info System

Figure 3.13: LogIn Page

The Login page contain two input fields, that are username and password .Also a
singnup button for new users.

Department of Computer Applications, MCA 31


Guest Workers Info System

Figure 3.14: Signup Page

In this system two type of users, Guest workers and Contractors. Selecting the Icons its
directed to corresponding Registration Page.

Department of Computer Applications, MCA 32


Guest Workers Info System

Figure 3.15: Registration Page

For the First time user need to signup into the website by providing basic details including ID
proof

Department of Computer Applications, MCA 33


Guest Workers Info System

Figure 3.16: Authetication Page

Admin want to approve the Registered user for log in. in this page the Activate button
approve users login to the site.

Department of Computer Applications, MCA 34


Guest Workers Info System

Figure 3.17: Display Approved Workers List

The page display all the details of registered workers .and it consist of activities the
admin can enter case details ,view permit, job details of the worker and also perform
deactivate account if any uncertain situation occurred.

Department of Computer Applications, MCA 35


Guest Workers Info System

Figure 3.18: Add job Page

Post the Work Details in this page by the contractor. They provide the Basic details
like Place , Time , Job duration , salary etc..

Department of Computer Applications, MCA 36


Guest Workers Info System

Figure 3.19: Job View of Contractor

The page displays work details and also there is an option for deleting the job. the Employee
button shows the list of workers selected for this Job.

Department of Computer Applications, MCA 37


Guest Workers Info System

Figure 3.20: job View of worker page

The page displays latest work details and an option to send request for the job

Department of Computer Applications, MCA 38


Guest Workers Info System

Figure 3.21: Displays recived job request

The page displays job request send by workers. it shows all the details of worker and
there is button for accepting the job.

Department of Computer Applications, MCA 39


Guest Workers Info System

Figure 3.22: Renew Page

The worker send renew request it received by admin, admin can approve the renew
request by click on renew button.

Department of Computer Applications, MCA 40


Guest Workers Info System

Figure 3.23: complaint registration page

The page for registering (Post) the complaints to Admin. in the work site or any other
feild related to work if any issues faced they can report it via this.

Department of Computer Applications, MCA 41


Guest Workers Info System

Figure 3.24: Updating Case Details

If workers are committed in to any crime the admin can add the case details in to
their profile . it is visible by contractors if they send work request to job under the
contractor.

Department of Computer Applications, MCA 42


Guest Workers Info System

Testing

Software testing is a critical element of software quality assurance and represents ul- timate
review of specification, design and code generation. Once the source code has been
generated the program should be executed before the customer gets it with the specific
intend of finding and removing all errors, test must be conducted systemati- cally and test
must be designed using disciplined techniques.

Test Cases

Testing is based on test cases. It describes which feature or service test attempts to
cover. In test cases specify what you are testing and which particular feature it tests.
• Test the normal use of system
• Test the abnormal, but reasonable use of system
• Test the abnormal and reasonable use of system
• Test the boundary Conditions

Unit Testing

Unit testing is a level of software testing where individual units/ components of the
software are tested. The purpose is to validate that each unit of the software performs as
designed. In the proposed android application unit test is performed by tested individual
components such as Registration, permit allocation, Add job, view job etc separately and
each module passes the test cases successfully. In each unit, its working is monitored so
that it works safely and accurately. Thus we can monitor the working of each unit.

Department of Computer Applications, MCA 43


Guest Workers Info System

Integration Testing

Integration Testing is a level of software testing where individual units are com-
bined and tested as a group. The purpose of this level of testing is to expose faults in the
interaction between integrated units. During the Integration testing phase of my project
its clear that the combined components/units don’t affect the expected processes and
other modules. Here we mixed up the units that have passed the test cases during unit
test. And check-out the workflow of the modules.

Department of Computer Applications, MCA 44


Guest Workers Info System

Unit Test cases

Department of Computer Applications, MCA 45


Guest Workers Info System

Integration Test cases

System Testing

The process of testing an integrated system to verify that it meets specified re-
quirements in my project it satisfied all the requirements such as chatting corner,
Assignment zone, Multimedia player etc.,

Department of Computer Applications, MCA 46


Guest Workers Info System

Implementation

A crucial phase in system life cycle is the successful implementation of the new sys- tem
designed. Implementation is an activity that brings the developed system into operational use
without disrupting the functioning of the organization. Here the per- formance of the system
is reviewed to evaluate criteria. Implementation is the stage of the project where the
theoretical design is turned into a working system. At this stage the main workload, the
greatest upheaval and the major impact on the existing system shift to user department. If the
implementation is not carefully planned and controlled it can cause chaos and confusion.

Implementation includes all those activities that take place to convert from the old
system to new one. Proper implementation is essential to provide a reliable system to meet
the organization requirements. Successful implementation may not guarantee improvement
in the organization using the new system, but improper installation prevents it. The process
of putting the developed system in actual use is called system implementation.

After testing, the system “Guest Workers Info System” is ready for the imple- mentation.
Implementation is the stage of the project when the theoretical design is turned in to a
working system. Implementation is the process of bringing a newly de- veloped system or
revised into operational one. The new system and its components are to be tested in a
structured and planned manner. There are some challenges faced by the me while
implementing the software. Some of them

• Code-reuse: There are huge issues faced by me for compatibility checks and de- ciding
how much code to re-use.
• Version Management : Every time a new releases is issued to the product owner, i have
to maintain version and configuration related documentation. Git hub helps me to solve
such version control issues.

The implementation procedure involves careful planning, investigation of the cur- rent
system and the constraints on implementation, design methods to achieve the changeover,
an evaluation of changeover method. Apart from planning, major task of preparing the
implementation procedure are education and training to users. The implementation process
begins with preparing a plan for the implementation of the system. According for this plan,
the activities have been carried out; discussions have been made regarding the equipment
and resources. According to above plan the necessary equipment has to be acquired to
implement the new system.

Department of Computer Applications, MCA 47


Guest Workers Info System

Git History

Figure 3.25: Git Pushed file

Department of Computer Applications, MCA 48


Guest Workers Info System

SAMPLE CODE

{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block content %}

<!-- bradcam_area -->


<div class="bradcam_area bradcam_bg_1" style="padding-top: 10px">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="bradcam_text">
<div class="about_area" STYLE="padding-top: 40px; width: 500px;height: 400px">
{# <div class="container">#}
{# <div class="row">#}
{# <div class="col-lg-5">#}
{##}
{# </div>#}
<div style="width: 100%;padding-right: 30px">

<div class="section_title mb-55">

<form method="POST">
{% csrf_token %}
<div class="form-group" >
<input class="form-control valid" style="width: 500px" name="username" id="email"
type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter username'" placeholder="Enter username">
</div>
<div class="form-group">
<input class="form-control valid" style="width: 500px" name="password" id="email"
type="password"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter password'" placeholder="Enter password">
</div>
<button type="submit" class="btn btn-primary login-btn mb-4">Login</button>
</form>
</div>
<label style="color: white">If Your Are Not Signup </label><span style="padding-left:
20px"></span><a href="SignUp" type="submit" class="btn btn-primary login-btn mb-4">SingUp</a>
<div class="info_inner">

</div>
</div>
</div>
</div>
</div>
</div>

Department of Computer Applications, MCA 49


Guest Workers Info System

Signup.html

{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block content %}
{% load static %}
<div class="container" align="center">
<br>
<br>
<br>
<a href="register"><img src="{% static 'img/Guest Worker.png' %}" width="300px" height="300px"></a>
<a href="reg_contractor"><img src="{% static 'img/contractor.png' %}" width="300px" height="300px"></a>
{# <a href="reg_sponsor"><img src="{% static 'img/sponsor.png' %}" width="300px" height="300px" ></a>#}
<br>
<label color="black" size="15" style="padding-right: 100px"><h3>Guest Worker</h3></label>
<label color="black" style="padding-left: 100px"> <h3>contractor</h3> </label>
{# <label color="black" style="padding-left: 180px"> <h3>sponsor</h3> </label>#}
</div>
<br>
<br>

{% endblock %}

Department of Computer Applications, MCA 50


Guest Workers Info System

User.html

{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block content %}

<!-- bradcam_area -->


<div class="bradcam_area bradcam_bg_1">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="bradcam_text">
<h2>Welcome</h2><h3>{{ user.first_name }}</h3>
<p><a href="index.html">Home</a> / About</p>
</div>
</div>
</div>
</div>
</div>
<!--/ bradcam_area -->

<!-- about_area_start -->


<div class="about_area">
<div class="container">
<div class="row">
<div class="col-lg-5">

</div>
<div class="col-lg-6">
<div class="about_info pl-70">
<div class="section_title mb-55">

</div>
<div class="info_inner">

</div>
</div>
</div>
</div>
</div>
</div>
<!-- about_area_end -->
{% endblock %}

Department of Computer Applications, MCA 51


Guest Workers Info System

Contract.html

{% extends 'base.html' %}
{% block content %}

<!-- bradcam_area -->


<div class="bradcam_area bradcam_bg_1" xmlns="http://www.w3.org/1999/html">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="bradcam_text">
<h3>Contractor Register</h3>
<p> <a href="index.html">Home</a> / About</p>
</div>
</div>
</div>
</div>
</div>
<!--/ bradcam_area -->
<script>

</script>

<form method="post" enctype="multipart/form-data">


{% csrf_token %}

<table align="center" width="500px" >


<tr>
<br>

Department of Computer Applications, MCA 52


Guest Workers Info System

Contract.html

<td><label>First Name</label></td>
<td><input class="form-control valid" name="fname" type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter First Name'" required placeholder="Enter First name"> </td>
</tr>
<tr>
<td><label>Last Name</label></td>
<td><input class="form-control valid" name="lname" type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter Last Name'" required placeholder="Enter Last name"></td>
</tr>
<tr>
<td><label>Gender</label></td>
<td><label><input class="form-control valid" name="gender" required value="Male" type="radio"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Male'" placeholder="Male"> Male </label>
<label><input class="form-control valid" name="gender" value="Female" type="radio"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Female'" required placeholder="Female">Female</label></td>
</tr>
<tr>
<td><label>Date Of Birth</label></td>
<td><input class="form-control valid" name="DOB" type="date"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter DOB'" required placeholder="Enter DOB"></td>
</tr>
<tr>
<td><label>Permanant Address</label></td>
<td><input class="form-control valid" name="paddress" required type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter permanant Address'" placeholder="Enter Permanant Address"></td>
</tr>
<tr>
<td><label>Temporary Address</label></td>
<td><input class="form-control valid" name="taddress" required type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter Temporary Address'" placeholder="Enter Temporary Address"></td>
</tr>
<tr>
<td> <label>Phone number</label></td>
<td><input class="form-control valid" name="contact" type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter Phone number'" pattern="[0-9]{10}" required placeholder="Enter
phone number"></td>
</tr>
<tr>
<td><label>E-mail</label></td>
<td><input class="form-control valid" name="email" type="email"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter email'" required placeholder="Enter email id"></td>
</tr>

<tr>
<td><label>State</label></td>

Department of Computer Applications, MCA 53


Guest Workers Info System
<td><input required name="state" class="form-control valid" placeholder="Enter State">
{# <select name="state" id="state" required>#}
{# <option>Kerala</option>#}
{##}

{# </select></td>#}
</tr>
<tr>
<td><label>District</label></td>
<td><input required name="district" class="form-control valid" placeholder="Enter District">
{# <select name="district" id="district" required>#}
{# <option>Ernakulam</option>#}
{# </select>#}

</td>
</tr>

<tr>
<td><label>Adhar Number</label></td>
<td><input class="form-control valid" name="adhar" type="text" pattern="[0-9]{12}"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter adhar number'" required placeholder="Enter adhar number"></td>
</tr>
<tr>
<td><label>Upload Your ID proof</label></td>
<td><input class="form-control valid" name="Idproof" type="file"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter ID proof'" required placeholder="Enter ID proof"></td>
</tr>
<tr>
<td><label>Upload Your Photo</label></td>
<td><input class="form-control valid" name="photo" type="file"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter photo'" required placeholder="Enter photo"></td>
</tr>
<tr>
<td><label>Password</label></td>
<td><input class="form-control valid" name="password" type="password"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter password'" required placeholder="Enter password"></td>
</tr>

<tr>
<td><label> Please Pay Registration Fees Rs.500</label></td>
</tr>
<tr>
<td><label> Enter Card Number</label></td>
<td><input class="form-control valid" required name="cpassword" type="text" pattern="[0-9]{12}"
placeholder="&#149;&#149;&#149; &#149;&#149;&#149; &#149;&#149;&#149;"></td>
</tr>
<tr>
<td><label> Enter CVV</label></td>
<td><input class="form-control valid" required name="cpassword" type="text" pattern="[0-9]{3}"
placeholder="&#149;&#149;&#149;"></td>
</tr>
<tr>
<td><label> Enter Expire Date</label></td>

Department of Computer Applications, MCA 54


Guest Workers Info System
<td><input class="form-control valid" required name="cpassword" type="date"
placeholder=""></td>
</tr>
<tr>
<td><label>Amount</label></td>
<td><input class="form-control valid" required name="cpassword" type=""
placeholder="" value="500" readonly></td>
</tr>
<tr></tr>
<tr align="center">
<td><button type="submit" class="btn btn-primary login-btn mb-4">Submit</button></td>
<td><a href="" type="submit" class="btn btn-primary login-btn mb-4">Cancel</a></td>
</tr>
</table>
</form>

<!-- about_area_end -->


{% endblock %}

Department of Computer Applications, MCA 55


Guest Workers Info System

Sponsor.html

{% extends 'base.html' %}
{% block content %}

<!-- bradcam_area -->


<div class="bradcam_area bradcam_bg_1" xmlns="http://www.w3.org/1999/html">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="bradcam_text">
<h3>Register</h3>
<p> <a href="index.html">Home</a> / About</p>
</div>
</div>
</div>
</div>
</div>
<!--/ bradcam_area -->
<form method="post" enctype="multipart/form-data">
{% csrf_token %}

<table align="center" width="500px" >


<tr>
<br>
<td><label>First Name</label></td>
<td><input class="form-control valid" name="fname" type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter First Name'" required placeholder="Enter First name"> </td>
</tr>
<tr>
<td><label>Last Name</label></td>
<td><input class="form-control valid" name="lname" type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter Last Name'" placeholder="Enter Last name"></td>
</tr>
<tr>
<td><label>Gender</label></td>
<td><label><input class="form-control valid" name="gender" value="Male" type="radio"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Male'" placeholder="Male"> Male </label>
<label><input class="form-control valid" name="gender" value="Female" type="radio"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Female'" placeholder="Female">Female</label></td>
</tr>
<tr>
<td><label>Date Of Birth</label></td>
<td><input class="form-control valid" name="DOB" type="date"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter DOB'" placeholder="Enter DOB"></td>
</tr>
<tr>
<td><label>Permanant Address</label></td>
<td><input class="form-control valid" name="paddress" type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter permanant Address'" placeholder="Enter Permanant Address"></td>

Department of Computer Applications, MCA 56


Guest Workers Info System
</tr>
<tr>
<td><label>Temporary Address</label></td>
<td><input class="form-control valid" name="taddress" type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter Temporary Address'" placeholder="Enter Temporary Address"></td>
</tr>
<tr>
<td> <label>Phone number</label></td>
<td><input class="form-control valid" name="contact" type="number"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter Phone number'" placeholder="Enter phone number"></td>
</tr>
<tr>
<td><label>E-mail</label></td>
<td><input class="form-control valid" name="email" type="email"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter email'" placeholder="Enter email id"></td>
</tr>
<tr>
<td><label>District</label></td>
<td><input class="form-control valid" name="district" type="text"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter District'" placeholder="Enter District"></td>
</tr>
<tr>
<td><label>State</label></td>
<td><select name="state" required><option>Kerala </option>
<option>Kerala </option>
<option>Thamizhnadu </option>
<option>Karnataka </option>
<option>Adhrapradhesh </option>
</select></td>
</tr>

<tr>
<td><label>Adhar Number</label></td>
<td><input class="form-control valid" name="adhar" type="number" pattern="[0-9]{12}"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter adhar number'" placeholder="Enter adhar number"></td>
</tr>
<tr>
<td><label>Upload Your ID proof</label></td>
<td><input class="form-control valid" name="Idproof" type="file"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter ID proof'" placeholder="Enter ID proof"></td>
</tr>
<tr>
<td><label>Upload Your Photo</label></td>
<td><input class="form-control valid" name="photo" type="file"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter photo'" placeholder="Enter photo"></td>
</tr>
<tr>
<td><label>Password</label></td>
<td><input class="form-control valid" name="password" type="password"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter password'" placeholder="Enter password"></td>

Department of Computer Applications, MCA 57


Guest Workers Info System
</tr>
<tr>
<td><label> Confirm Password</label></td>
<td><input class="form-control valid" name="cpassword" type="password"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter password'" placeholder="Re-Enter password"></td>
</tr>
<tr></tr>
<tr align="center">
<td><button type="submit" class="btn btn-primary login-btn mb-4">Submit</button></td>
<td><a href="" type="submit" class="btn btn-primary login-btn mb-4">Cancel</a></td>
</tr>
</table>
</form>
<!-- about_area_end -->
{% endblock %}

Department of Computer Applications, MCA 58


4. CONCLUSION

The project entitled “The Guest Workers Info System” is a web accessible database for
storing the personal information of workers and contractors,in our state . The purpose of this
website is to collect personal information of users as well as it is More helpful for
government because it control all the activities related to guest workers in our state.. It is a
user friendly software which can be easily operated by non technical persons as well as non
computer savvy user. User friendly describes a hardware device or software interface that
is easy to use. It is ”friendly” to the user, meaning it is not difficult to learn or
understand. While ”user friendly” is a subjective term, the following are several common
attributes found in user-friendly interfaces.

The Guest Workers Info System Co-ordinate workers in to centralized system be- cause it
store the demographical and personal data in to a single data base. which is accesable in
any time .we suggest a new system for controlling the flow of guest workers and
coordinating them.
5. SCOPE AND FUTURE ENHANCEMENTS

We can elaborating this system with adding more functionalities by including send proper
notifications to users via mails Now the data collection and event registration part of this
application works successfully. the online auction system can be enhanced further by adding
additional features such as in mobile phone applications.

Now the data collection and event registration part of this application works succes- fully.
But the payment process is not done in real. So, in future the payment process should be
done in real by using efficient payment gateway. A payment gateway is a merchant
service provided by an e-commerce application service provider that au- thorizes credit card
or direct payments processing for e-businesses, online retailers, bricks and clicks, or
traditional brick and mortar. The payment gateway may be provided by a bank to its
customers, but can be provided by a specialised financial service provider as a separate
service, such as a payment service provider. A payment gateway facilitates a payment
transaction by the transfer of information between a payment portal (such as a website,
mobile phone or interactive voice response service) and the front end processor or acquiring
bank
6. APPENDIX

Minimum Software Requirements

Software : Pycharm (IDE)


Operating System : Windows

Minimum Hardware Requirements

Hardware capacity : 10 GB(minimum)

RAM : 2 GB
Processor : Intel Core i3 preferred

Display : 1366 * 768 Peripheral

device : Qwality Headphone


7. REFERENCES

1. www.sql.server.helper.com
2. www.geeksforgeeks.org
3. w3school.com
4. Stack overflow

You might also like