Implementing Biometrics Into Data Securi
Implementing Biometrics Into Data Securi
BY
APRIL, 2012
i
DEDICATION
ii
ACKNOWLEDGEMENT
who I am today. Also for the intuition, life, Peace and every good thing God
lecturers back in school, bosses at past times and opponents for all their
More thanks to you, my readers. Continue the voyage on this work for
better discoveries.
iii
ABSTRACT.
systems and machine readable measures converts document fields into data
with the documents type are obtained or set and used to process the text field
for the defined task example posting. This research work is a web based
system designed with Microsoft Visual studio (ASP.Net) 2008 as its front
end and Microsoft SQL management server studio 2005 as its back end.
iv
TABLE OF CONTENTS
TITLE PAGES i & ii
CERTIFICATION iii
DEDICATION iv
ACKNOWLEDGEMENT v
ABSTRACT vi
TABLE OF CONTENTS vii-ix
LIST OF FIGURES x
LIST OF TABLES x
CHAPTER ONE – Introduction 1
1.1 Background of study 2
1.2 Objectives of study 4
1.3 Scope of the study 5
1.4 Motivation 6
1.5 Statement of Problem
1.6 Limitation of study
1.7 Methodology 6
CHAPTER TWO – Literature Review 11
2.1 Introduction 11
2.2 Review of verification systems 11
v
CHAPTER THREE – System Analysis and Design 29
3.1 Introduction 29
3.2 System analysis of the system 29
3.3 Constraints of the existing system 31
3.4 Proposed system design 33
3.4.1 System algorithm design 33
3.4.2 Input design 39
3.4.3 Interface design 41
3.4.4 Output design 42
3.4.5 System database design 43
3.5 Technology, tools and programming language used 45
CHAPTER FOUR – Design and Implementation 48
4.0 Introduction 48
4.1 System design 48
4.2 System description 49
4.3 System implementation 52
4.4 Hardware requirement 53
4.5 Software requirement 53
4.6 System testing 54
4.7 System review and maintenance 54
vi
4.8 Installation procedure 55
4.9 User guide 55
CHAPTER FIVE – Summary and Conclusion 57
5.1 Summary 57
5.2 Recommendation 58
5.3 Conclusion 58
REFERENCE 60
APPENDIX (SOURCE CODES) 62
vii
LIST OF FIGURES
1.1 The SSADM Approach. 8
1.2 The RAD Model. 9
2.1 Credit/Debit Card – front and back view 28
3.1 Input form to add Administrator 40
3.2 The main interface form 41
3.3a Verification Form 42
3.3b The Verification Result form 43
3.4 System’s database table for Admin 45
4.1 Use Case diagram for SVS 51
LIST OF TABLES
2.1 Address Verification Service – the types 13
2.2 Address Verification Service – detail description 17
3.1 Company Table 44
viii
CHAPTER ONE
INTRODUCTION
literally "to cut off," from de- "off" and caedere "to cut") can be regarded as the
activities.
unified whole.
Ever since the advent of Computers in our society, a lot of criticisms have
arisen on the danger it will pose on the society. Critics of this new technology
express their fear on how this system will be displacing and replacing all human
continue to prove the critics wrong as the invention continue to create additional
1
jobs for those who identify themselves with the technology. Thus, computers
accuracy, reliability, cost and security, among others. In recent years, awareness
Information System (MIS) and Decision Support System (DSS) in their decision
information.
on principles and experience. In recent times, efforts are being made to build
intelligence into computer system, whereby the computer can be used to process
evaluate and distribute pertinent, timely and accurate information for use by
System (MIS).
2. Un-confidentiality
3
5. Lack of competency among unskilled human resources that claim
professionals and so on
2. To design a system that is web based using MS visual studio 2008 and
MS management server studio 2005 as its front end and back end
respectively. This system will address the issues of the manual system.
This research work will be of great importance the NYSC Delta State as
well as other states as it will save the schemes reputation and cost.
1.5 SCOPE
State
1.6 LIMITATION
4
The scope of this research as well as the materials reviewed serves as
limitation to this research. Also, time and financial constraints have limited this
research.
1.7 METHODOLOGY
A system study using related systems to the proposed system was carried
out and their lapses were discovered. A feasibility study proceeded after the
various fact finding techniques. The materials and literature review are utilized
referenced and reviewed. The Graphic User Interface (GUI) was design using
Specification
Design
Implementation
Deploy
5
1.8 MOTIVATION
systems has provoked this research. Also, to create a level playing ground for
6
CHAPTER TWO
LITERATURE REVIEW
are essential business assets, their availability, integrity and confidentiality are
al, opined that information is the corner stone of any business establishment; In
addition, he said that the channels or information systems through which this
place. Mandell (1986) in Apanapudor, J.S. et al, said that information system
provides stand and reports and most recently, they provide information, that
literally "to cut off," from de- "off" and caedere "to cut") can be regarded as the
decision support systems (DSS), group support systems (GSS) and executive
Take
decision Compare alternative Identify constraints / barriers
courses of actions and generate alternative
from standard. Next we collect, sort and classify data regarding the problem.
Data collected must be representative of the problem, upon this, the data are
between the data using appropriate data analysis tools. Thereafter we identify
possible constraints and alterative courses of action are noted and used to
compare other alternatives. This may require additional data. At this point the
process may continue until an optimal choice is made from the alternative
courses of action.
decision approach to fit a set of indicators into the expert's experience and
into the decision making process. However, Decision Analysis recognized and
benefit or cost in nature. Then the problem might be to rank these alternatives in
terms of how attractive they are to the decision maker(s) when all the criteria
are considered simultaneously. Another goal might be to just find the best
9
alternative or to determine the relative total priority of each alternative (for
instance, if alternatives represent projects competing for funds) when all the
making (MCDM). This area of decision making, although it is very old and has
debated as there are many MCDA / MCDM methods which may yield very
different results when they are applied on exactly the same data. This leads to
making. The concepts are completely separate from one another. Traditionally it
is argued that problem analysis must be done first, so that the information
Problem analysis
actually are
10
Something can always be used to distinguish between what has and hasn't
Most likely cause to a problem is the one that exactly explains all the
facts
Decision making
The alternative that is able to achieve all the objectives is the tentative
decision
The decisive actions are taken, and additional actions are taken to prevent
There are steps that are generally followed that result in a decision model
11
Decision planning
Making a decision without planning is fairly common, but does not often
end well. Planning allows for decisions to be made comfortably and in a smart
way. Planning makes decision making a lot more simple than it is. Decision will
get four benefits out of planning: 1. Planning give chance to the establishment
you are going towards or further away from your goal. 3. Planning converts
values to action. You think twice about the plan and decide what will help
committed in an orderly way. Always govern the use of what is limited to you.
corresponding levels of decision making. The diagram below shows the levels.
12
Each of these levels needs information for making decision for
actualizing the goals and objective of the organization and so managers at all
Apanapudor, J.S. et al, opined that since information needs at the three levels
organization. Hence the data / information needed are largely internal and the
objectives of the organization. Hence tactical decisions are prevalent here. The
information requirements for decisions at this level include periodic reports and
At the top level, managers are more objective minded, future oriented and
type. Data/information required are on-time reports, trend analysis reports and
also data that are organized to provide inquiry capacity across functional lines
13
An information system may be defined as a continuing and interacting
evaluate and distribute pertinent, timely and accurate information for use by
from these systems goes a long way to meet the need of people in a given
System (MIS).
has the capability to provide decision makers with on-demand reports and
reports, scheduled listings and demand reports. These reports are management
oriented.
Predictive reports
Scheduled listings
Exception reports
Demand reports
Predictive Reports
These are future oriented reports, based on decision models, which may
be simple or complex. They are used for planning and permit an institution to
“what if’ kinds of queries. For example “What will be the fate of the presently
graduated students if ASUU strike is not called off before august? The decision
models on which our reports are based as well suited for middle and top
management decisions.
Scheduled Listings
These are reports generated at regular time intervals and often provide
rosters, leave schedule reports and call- duty reports are examples. By the way,
scheduled listings are generated, they tend to supply an over abundance of data,
most of which may not be relevant to some particular recipients These reports
Exception reports
15
These reports monitor performance and any deviation from expected
standard. Thus they are action — driven and often sensitized to action by
Demand Reports
These reports are generated only on request. Thus an MIS must have an
demands.
Providing demand reports can be very expensive. Non- availability and timely
production of demand reports can delay, and frustrate decision making and even
SYSTEMS
When an organization establishes an MIS, it has behind its mind the sole
16
4. Distributed design MIS
and/or business models to identify and solve problems and make decisions.”
and help to make decisions, which may be rapidly changing and not easily
systems
17
Fig. 2.3 Decision style model. Source; M.G. Martinsons and R.M. Davison (2007)
Fig. 2.4 Information technology applications and decision styles.Source; M.G. Martinsons and
R.M. Davison (2007)
18
NATIONAL YOUTH SERVICE CORP (NYSC)
rebuild the country after the Nigerian Civil war. The unfortunate antecedents in
our national history gave impetus to the establishment of the National Youth
Service Corps by decree No.24 of 22nd May 1973 which stated that the NYSC
of common ties among the youths of Nigeria and the promotion of national
unity".
illiteracy, acute shortage of high skilled manpower (coupled with most uneven
burden of reconstruction after the civil war, the government and people of
Nigeria set for the country, fresh goals, and objectives aimed at establishing
Nigeria as:
19
b) a great and dynamic economy;
The government and people of Nigeria are not aware that sound and
development of the country. As a nation, Nigeria has been less fortunate in the
kind of leadership that emerge to govern the affairs of the country in the period
notwithstanding, was none the less ill-prepared and generally not properly
e) There is no gain saying the fact that the future of any country depends on
the youths. The youths of Nigeria acknowledge this fact, and have
f) While one may give credence to the saying that leaders are born, not
made, one must also concede to the fact that leadership in a modem
all aware, these institutions are first and foremost committed to the
20
advancement of learning and knowledge, training of people for good
citizenship. Little wonder that the products of these institutions have been
accused of being too elitist in their outlook, of not identifying with the
h) It was the need to look beyond the immediate present and to think of the
Corps Scheme. This was done with a view to giving them the proper
National Youth Setvice Corps Decree No. 24 which has now been
repealed and replaced by Decree 51 of 16th June 1993, was then formally
promulgated.
the spirit of selfless service to the community, and to emphasize the spirit
clearly indicated the need for unity amongst all our people, and
isolation.
21
1) The objectives of the National Youth Service Corps Scheme are clearly
b) to raise the moral tone of the Nigerian youths by giving them the
shared experience and suitable training. which will make them more
f) to develop common ties among the Nigerian youths and promote national
people of Nigeria.
(ii) In order to achieve the objectives in subsection (3) of this section, the
(b) that as far as possible, youths are assigned to jobs in States other than their
States of origin;
(d) that the Nigerian youths are exposed to the modes of living of the people in
(e) that the Nigerian youths are encouraged to eschew religious intolerance by
(f) that members of the service corps are encouraged to seek at the end of their
one year national service, career employment all over Nigeria, thus promoting
(g) that employers are induced partly through their experience with members of
the service corps to employ more readily and on a permanent basis, qualified
23
CHAPTER THREE
comprehensive research has been made to achieve an insight into the needs and
and straightforward for the end user. Supplementary, a great number of research
on various other methods of building this application which and was able to
interactivity.
software; that interact to achieve a common goal. (Stella C. and France A.)
paramount in every analysis; hence the manual system was rigorously studies
NYSC posting system (this posting is not the national posting but the posting of
corp members to their place of primary assignment, PPA; within the state that
24
they were posted to by the National Headquarters of NYSC, Abuja) has a higher
systems are created to solve problems. Hence, this automated system solves the
problem of the manual system that has been aforementioned. It also, achieves
visual studio 2008 using Active Server Pages (ASP. Net) as it language and
1. Economic Feasibility
25
The project is economically feasible as the only cost involved is having a
computer with the minimum requirements mentioned earlier. For the users to
access the application, the only cost involved will be in getting access to the
Internet.
2. Technical Feasibility
To deploy the application, the only technical aspects needed are mentioned
below:
For Users:
Internet Browser
Internet Connection
3. Behavioral Feasibility
The application requires no special technical guidance and all the views
available in the application are self explanatory. The users are well guided with
validation, warning and failure messages for all the actions taken.
Stress
Data redundancy
This automated system has the following benefits over the manual
No stress
No risk
No defamation of character.
27
The system comprises of web forms and master pages which have the
following on them:
Image
Labels
Textboxes
buttons
Dropdownlist
Gridview
Hyperlink etc
The supplied data on the input forms serves as the input to the system.
These inputs are coupled to the systems database and comparison is made with
28
Fig. 3.2 Input Validation Form for Registration of companies, organization and
employers
Fig. 3.3 input form (registration continuation) after validation of the card details
29
This is the physical structure of the visible side of the system, mainly to
the users. That is the front end of the system, which the users of the system
command type; it is also an interactive, clear and not clumsy interface. It is easy
After input there is likely be an output either in a soft copy or a hard copy
as the case maybe. The output forms of this system are MyInfo.aspx,
MyPosting.aspx, and so on. When a registered user (corp member) logs in, he /
she see the form for the logon user information and the PPA (Place of Primary
Assignment) posting with the details which was supplied by him/her and the
30
decision made by the system for the posting. The general public makes use of
the static pages like Home.aspx, FAQs.aspx, AboutUs.aspx. The web Page
31
3.4.5 SYSTEM DATABASE DESIGN
SQL Management Server Studio. This database consists of table of which some
these tables has their column name (Field) and data types respectively. Notable,
tblLogin has
supplied as part of the Option Pack for Windows NT, they were subsequently
integrated with Windows 2000 and Windows Server 2003). The current
(Windows 2003) version is IIS 6.0 and includes servers for FTP (a software
standard for transferring computer files between machines with widely different
standard for email transmission across the Internet) and HTTP/HTTPS (is the
secure version of HTTP, the communication protocol of the World Wide Web).
Features: The web server itself cannot directly perform server side processing
but can delegate the task to ISAPI (Application Programming Interface of IIS)
server operating systems. A restricted version that supports one web site and a
Microsoft has also changed the server account that IIS runs on. In versions of
IIS before 6.0, all the features were run on the System account, allowing
exploits to run wild on the system. Under 6.0 many of the processes have been
33
particular this means that if there were an exploit on that feature, it would not
ASP.NET has many advantages – both for programmers and for the end users
frequent visits to a database when the data does not change very often.
34
c) Memory leak and crash protection: ASP.NET automatically recovers
from memory leaks and errors to make sure that the website is always
on another computer across a network (including the Internet). There are at least
and for different workloads (ranging from small applications that store and
retrieve data on the same computer, to millions of users and computers that
access huge amounts of data from the Internet at the same time). SQL Server
Server 2000. It included native support for managing XML data, in addition to
relational data. For this purpose, it defined an xml data type that could be used
can be associated with XSD schemas; XML data being stored is verified against
35
the schema. XML is converted to an internal binary data type before being
stored in the database. Specialized indexing methods were made available for
XML data. XML data is queried using XQuery; Common Language Runtime
(CLR) integration was a main feature with this edition, enabling one to write
SQL code as Managed Code by the CLR. SQL Server 2005 added some
SQL. In addition, it also defines a new extension to XQuery, called XML DML
that allows query-based modifications to XML data. SQL Server 2005 also
allows a database server to be exposed over web services using Tabular Data
Stream (TDS) packets encapsulated within SOAP (protocol) requests. When the
data is accessed over web services, results are returned as XML. Partitions on
tables and indexes are supported natively, so scaling out a database onto a
cluster is easier. SQL CLR was introduced with SQL Server 2005 to let it
36
CHAPTER 4
SYSTEM IMPLEMENTATION
4.0 Introduction
purpose of the system is achieved. This chapter explains how the website and
development and installation of the hardware and software testing of the system
and training the people that will use the system. It also covers the conversion
and use of the new system by the management of Delta State NYSC.
37
Microsoft.net frame work 2.0 and above
etc
A web master who manages the website. The job involves updating the
website periodically, editing the existing WebPages and creating new ones,
and uploading web resources, who must be an expert in the field with the
keenness to work.
creating, managing and monitoring the database and its schema (users,
tables, indexes, functions etc.)., who must be an expert in the field with the
enthusiasm to work.
The system (website) was designed with latest web technology to run on
38
For testing sake, a local web server (IIS) application, microsoft.net
use case diagram consist of actors use cases and arrows (for evens of flow).
The use cases are registration, my information, my posting, Apply, and so on.
The use case diagram of this automated system – Delta state NYSC
39
Registration
View posting
Admin
Users Admin Panel
My Info
Staff
My Posting
Contact us
General Public
About Us
Employers
Change Details
System Boundary
Fig 4.1 Delta State NYSC Automated Posting system USE CASE
tested to make sure. They work both individually and as a unit. Testing whether
individual programs and system application. The testing of this system is done
40
An automated system may have a hundred programs and a
databases and procedures and so on as the case may be.”, said Hampo, J.A.C.
(2011).
for errors and to verify that all components of the system are run simultaneously
and then observation and comparisons are made and documented. This is done
to ensure that the new system holds true to the advantages it should have over
System testing should be done before the new system and any new
This is carried out by the personnel with the use of the available software and
hardware. The forms of maintenance that this system will adopt include the
following:
41
Inserting new data into the database by the administrator.
Altering the database structure by adding new tables or editing existing ones
(socialization)
Changing the Cascading Style Sheet also known as, CSS; document for the
website which affects the layout and general theme of the website that is
4.8 DOCUMENTATION
Internet Information Service (IIS) web server installed and running. Once this is
achieved, the administrator can easily upload the relevant files / web resources
and other information to the server, and save as a Webpage which can be
browsed from any system connected to the network. The Webpage can also be
which will be used by the store. The database administrator should work hand-
in-hand with the management of Delta State NYSC in order to fully understand
and represent the needs of the system before building the database and its
schema. The new website should be tested on a sample of staff and customers
42
before being fully implemented as the new way of combating crime. This is to
the part of the system designer or the staff of NYSC in Delta State.
43
CHAPTER FIVE
5.1 SUMMARY
taking.
no more exist since there is no human present and in this system, immediately
The merits of this automated system over the manual police crime diary are as
follows
Accuracy
Reliability
44
Reduced paper work
Cost effective
5.2 RECOMMENDATION
NYSC and NYSC office in Delta State and other States at large, likewise others
5.3 CONCLUSION
manual systems.
strategically redefines the manual posting system. This system hence averts risk,
We human desire to live a simple and stress less life, decision making
systems like this system, Automated NYSC posting will soon lash out manual
45
REFERENCE
Hampo, J.A. (2011). Design and Implementation of Students Verification System for
Martinsons, M.G. and Davison R.M. (2007). Strategic decision making and support
http://pdf.aminer.org/000/289/253/executive_support_systems_for_strategic_ad
Stella, C.C. and Franca, A.E (2006). Principles of System Analysis and Design.
on: 15/11/2012)
WEBSTIES
http://en.wikipedia.org/wiki/microsoft-visual-studio (Accessed on: 10th November
2012).
www.nysc.gov.ng (Date Accessed: 10/10/2012)
http://www.springer.com/engineering/production+engineering/book/978-1-84628-
228-7 (Accessed on: 10/10/2012)
46
http://www.informationbuilders.com/decision-support-systems-dss (Accessed on:
02/12/12)
http://en.wikipedia.org/wiki/Decision_support_system (Accessed on: 11/11/12)
http://en.wikipedia.org/wiki/Decision_making (Accessed on: 15/12/12)
47
APPENDIX (SOURCE CODES)
HTML (ASP.NET) CODES
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<style type="text/css">
.style1
{
width: 6px;
}
.style4
{
width: 24%;
}
.style5
{
width: 87%;
margin-left: 0px;
}
.style6
{
width: 99%;
}
</style>
</head>
<body background="pics/nyscbuild%20EDITED.jpg"
style="background-repeat:no-repeat ; background-position:center "
bgcolor="#66ccff">
48
<asp:HyperLink ID="HyperLink2" runat="server"
BackColor="White"
BorderStyle="Outset"
NavigateUrl="~/AboutUs.aspx">About NYSC</asp:HyperLink>
<asp:HyperLink ID="HyperLink7" runat="server"
BackColor="White"
BorderStyle="Outset"
NavigateUrl="~/DeltaState.aspx">Delta State in Brief</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server"
BackColor="White"
BorderStyle="Outset"
NavigateUrl="~/ContactUs.aspx">Contact Us</asp:HyperLink>
<asp:HyperLink ID="HyperLink4" runat="server"
BackColor="White"
BorderStyle="Outset"
NavigateUrl="~/FAQs.aspx">FAQs</asp:HyperLink>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: right">
<asp:Panel ID="Panel4" runat="server">
<table class="style5">
<tr>
<td>
<asp:Label ID="Label4" runat="server"
style="color: #3399FF; font-weight:
700; background-color: #FFFFFF"
Text="Username: "></asp:Label>
<asp:TextBox ID="txtUserN"
runat="server">hamplus</asp:TextBox>
<asp:Label ID="Label5"
runat="server"
style="color: #3399FF; font-weight:
700; background-color: #FFFFFF;"
Text="Password: "></asp:Label>
<asp:TextBox ID="txtPassW"
runat="server" TextMode="Password"></asp:TextBox>
<asp:Button ID="btnLogin"
runat="server"
style="color: #3399FF; font-weight:
700" Text="Log in" />
<br />
<asp:Label ID="Label6" runat="server"
Text="Forgot detail? If yes, just click "></asp:Label>
<asp:HyperLink ID="HyperLink6"
runat="server" NavigateUrl="~/GetDetails.aspx">HERE</asp:HyperLink>
</td>
</tr>
<tr>
<td style="text-align: left">
<asp:Label ID="result" runat="server"
style="color: #FF0000"></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
49
</td>
</tr>
<tr valign="top">
<td style="text-align: left; " class="style4">
<asp:Image ID="Image1" runat="server"
ImageUrl="~/pics/dgnysc.jpg"
Width="169px" />
</td>
<td style="color: #3399FF; background-color: #FFFFFF">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
<p>
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td style="text-align: center; " class="style4">
</td>
<td>
</td>
</tr>
<tr valign="top">
<td style="text-align: left; " class="style4">
<asp:Panel ID="Panel5" runat="server" style="color:
#3399FF">
<table class="style6">
<tr>
<td>
<asp:Menu ID="Menu1" runat="server"
BorderColor="White" BorderStyle="Outset"
Font-Bold="True" Font-Size="Medium"
ForeColor="#3399FF"
style="color: #3399FF">
<Items>
<asp:MenuItem
Selectable="False" Text="Quick Links" Value="Quick Links">
<asp:MenuItem Text="Home"
Value="Home" NavigateUrl="~/Home.aspx"></asp:MenuItem>
<asp:MenuItem Text="About
NYSC" Value="About NYSC" NavigateUrl="~/AboutUs.aspx"></asp:MenuItem>
<asp:MenuItem Text="Delta
State in Brief" Value="Delta State in Brief"
NavigateUrl="~/DeltaState.aspx">
</asp:MenuItem>
<asp:MenuItem Text="Contact
Us" Value="Contact Us"
NavigateUrl="~/ContactUs.aspx"></asp:MenuItem>
<asp:MenuItem Text="FAQs"
Value="FAQs" NavigateUrl="~/FAQs.aspx"></asp:MenuItem>
</asp:MenuItem>
</Items>
</asp:Menu>
</td>
<td>
</td>
</tr>
</table>
50
</asp:Panel>
</td>
<td style="text-align: right">
</td>
</tr>
<tr>
<td colspan="2" style="text-align: right; background-color:
#66CCFF;">
<asp:Panel ID="Panel3" runat="server">
<table class="style5">
<tr>
<td>
<asp:Label ID="Label3" runat="server"
style="color: #FF3300; font-weight: 700"
NavigateUrl="~/CompReg.aspx">HERE</asp:HyperLink>
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
<td colspan="2">
<img alt="NYSC DELTA STATE e_POSTING BY HAMPLUS
JOHNPAUL"
longdesc="+234805076053, +2347063047037
(www.facebook.com/hamplus.johnpaul)"
src="pics/NYSC%20Delta%20State%20FT%20JPSoft.jpg"
style="width: 722px; height: 84px" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
<%@ Page Language="VB" MasterPageFile="~/Users.master"
AutoEventWireup="false" CodeFile="MyPosting.aspx.vb" Inherits="MyPosting"
title="NYSC Delta State .:.: My Posting" %>
51
<tr>
<td class="style8">
<asp:Label ID="Label31" runat="server" Text="State
Code"></asp:Label>
</td>
<td>
<asp:Label ID="stcode" runat="server"
style="font-weight: 700; font-size: x-
large"></asp:Label>
</td>
</tr>
<tr>
<td class="style8">
<asp:Label ID="Label25" runat="server"
Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtSN" runat="server" Enabled="False"
Width="176px"
style="color: #3399FF"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style8">
<asp:Label ID="Label19" runat="server"
Text="Qualification"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtqual" runat="server" Enabled="False"
Width="176px"
style="color: #3399FF"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style8">
<asp:Label ID="Label42" runat="server"
Text="Discipline"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtdisc" runat="server" Enabled="False"
Width="176px"
style="color: #3399FF"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style8">
<asp:Label ID="Label23" runat="server" Text="Year of
Graduation"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtYG" runat="server" Enabled="False"
MaxLength="4"
Width="176px" style="color: #3399FF"></asp:TextBox>
</td>
</tr>
<tr>
<td __designer:mapid="18b" class="style6">
<asp:Label ID="Label39" runat="server"
Text="Institution"></asp:Label>
</td>
<td __designer:mapid="18c">
52
<asp:TextBox ID="txtSOS" runat="server" Enabled="False"
TextMode="MultiLine"
Width="176px" style="color: #3399FF"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style8" colspan="2">
<asp:Panel ID="Panel1" runat="server">
<table class="style2">
<tr>
<td colspan="2">
<asp:Label ID="Label33" runat="server"
style="font-weight: 700"
Text="The above are your data used for
your deployment / posting. Haven meet the conditions for deployment, you
are hereby posted to:"></asp:Label>
</td>
</tr>
<tr>
<td class="style9">
<asp:Label ID="Label34" runat="server"
Text="Place of Primary Assignment"></asp:Label>
</td>
<td>
<asp:Label ID="LabelState" runat="server"
style="font-weight: 700; font-size:
large"></asp:Label>
</td>
</tr>
<tr>
<td class="style9">
<asp:Label ID="Label35" runat="server"
Text="PPA Address"></asp:Label>
</td>
<td>
<asp:Label ID="LabelOCA" runat="server"
style="font-weight: 700; font-size:
large"></asp:Label>
</td>
</tr>
<tr>
<td class="style9">
<asp:Label ID="Label36" runat="server"
Text="Date to Report:"></asp:Label>
</td>
<td>
<asp:Label ID="LabelDateToReport"
runat="server"
style="font-weight: 700; font-size:
large"></asp:Label>
</td>
</tr>
<tr>
<td class="style9">
<asp:Label ID="Label37" runat="server"
Text="Call Up Number"></asp:Label>
</td>
<td>
<asp:Label ID="LabelCallUpNumber"
runat="server"
53
style="font-weight: 700; font-size:
large"></asp:Label>
</td>
</tr>
<tr>
<td class="style8">
<asp:Label ID="Label41" runat="server"
Text="State Code"></asp:Label>
</td>
<td>
<asp:Label ID="stcode0" runat="server"
style="font-weight: 700; font-size: x-
large"></asp:Label>
</td>
</tr>
<tr>
<td class="style9">
</td>
<td>
<asp:Button ID="Button1" runat="server"
Text="Ok" />
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
<td class="style8" colspan="2">
<asp:Label ID="Label38" runat="server"></asp:Label>
<asp:DropDownList ID="ddlDecision" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="ddldecision2" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="ddldecision3" runat="server">
</asp:DropDownList>
</td>
</tr>
</table>
</asp:Content>
VB.NET CODES
Imports System.Data.SqlClient
Imports Microsoft.VisualBasic
54
End Try
End Sub
55
LabelDateToReport.Text = "August, " &
rdapplysearch.Item("year")
Else
LabelDateToReport.Text = "December, " &
rdapplysearch.Item("year")
End If
End If
End If
End Sub
End Class
Imports System.Data.SqlClient
Response.Redirect("Register.aspx")
End Sub
56
Dim hamplus As New SqlCommand
hamplus.Connection = uju.cn
hamplus.CommandText = "select * from tblCompany where sysID= '" &
Session("code") & "'"
hamplus.ExecuteNonQuery()
Dim rdhamplus As SqlDataReader
rdhamplus = hamplus.ExecuteReader
rdhamplus.Read()
If rdhamplus.HasRows = True Then
Dim johnpaul As SqlCommand
johnpaul = New SqlCommand("Insert into tblApply
(code,ppa,location,number,discipline,batch,year" _
& ",dt) values (@cn,@ppa,@loc,@cac,@dis,@si,@ad,@date)",
uju.cn)
johnpaul.Parameters.AddWithValue("@cn", Session("code"))
johnpaul.Parameters.AddWithValue("@ppa",
rdhamplus.Item("cname"))
johnpaul.Parameters.AddWithValue("@loc",
rdhamplus.Item("address"))
johnpaul.Parameters.AddWithValue("@cac", txtNCM.Text)
johnpaul.Parameters.AddWithValue("@dis", txtDecipline.Text)
johnpaul.Parameters.AddWithValue("@si", txtBatch.Text)
johnpaul.Parameters.AddWithValue("@ad", txtYear.Text)
johnpaul.Parameters.AddWithValue("@date", ochuku.dt)
rdhamplus.Close()
johnpaul.ExecuteNonQuery()
Response.Redirect("Apply.aspx")
Else
Response.Write("ERROR. PLEASE REFRESH YOUR BROWSER AND LOG OUT.
THEN LOG IN. THANKS")
End If
End Sub
End Class
Imports System.DateTime
Imports System.Data.SqlClient
Partial Class Register
Inherits System.Web.UI.Page
'c = Now.Year
'NYSC.Text = d
'Dim b1, b2, bc As Integer
'b1 = Now.Month.ToString()
57
If d <= 4 Then
c = Today.Year & "A"
ElseIf d <= 8 Then
c = Now.Year & "B"
Else
c = DateTime.Now.Year & "C"
End If
NYSC.Text = "DT/" & Right(c, 3) & "/" & b
With txtUN
.Enabled = False
.Text = NYSC.Text
End With
Panel4.Visible = False
Panel5.Visible = True
txtSN.Text = txtCUName.Text
End Sub
If ddlSex.SelectedIndex = 1 Then
rblSex.SelectedIndex = 0
rblSex.Enabled = False
ElseIf ddlSex.SelectedIndex = 2 Then
rblSex.SelectedIndex = 1
rblSex.Enabled = False
End If
58
Panel5.Visible = False
Panel6.Visible = True
End Sub
59
johnpaul.ExecuteNonQuery()
Dim hamplus As SqlDataReader
hamplus = johnpaul.ExecuteReader
hamplus.Read()
If hamplus.HasRows = True Then
If hamplus.Item("define") = "Staff" Then
Session("un") = hamplus.Item("username")
Session("pass") = hamplus.Item("password")
Session("code") = hamplus.Item("code")
Response.Redirect("Register.aspx")
ElseIf hamplus.Item("define") = "Company" Then
Session("un") = hamplus.Item("username")
Session("pass") = hamplus.Item("password")
Session("code") = hamplus.Item("code")
Response.Redirect("Apply.aspx")
ElseIf hamplus.Item("define") = "Corp Member" Then
Session("un") = hamplus.Item("username")
Session("pass") = hamplus.Item("password")
Session("code") = hamplus.Item("code")
Response.Redirect("MyInfo.aspx")
End If
Else
result.Text = "Log in Process Failed. Wrong Details. Please
Try Again"
End If
End If
End Sub
End Class
60