Employee Management System
Employee Management System
ABSTRACT
A well planned, systematically executed industrial training helps a great deal in inculcating a good work culture. It provides a linkage between students and the industry in order to develop awareness of the industrial approach to problem solving based on broad understanding of operations of the industrial organizations. This project entitled Employee Management System has been designed towards improving the Management of Employee Information in the field offices of DGLW. It maintains Seniority, Leave Records, Transfer & Postings and other basic information of Employee. Various MIS reports can be generated through it Viz. Leave Order, Seniority List, Vacancy Position and CR Status etc. It is a web-based application; it will be accessed simultaneously from many field offices of DGLW. Field offices are supposed to enter information of Employee of their region. This information is compiled and used at Headquarter Level for MIS purposes. The project has been an enriching experience for me in the field of programming and Enterprise Application development. The project has been developed to fulfill the requirements of the Employees in Labour Ministry. The tools and technologies used for developing the software are ASP for analysis and design phases for developing the code for the application and SQL SERVER as the back end tool on Microsoft windows 2000 platform.
Table of Contents
Certificate Acknowledgement.. Abstract... List of Tables and Figures.. 1. Introduction. 1.1 Background 1.2 Motivation 1.3 Organization 1.3.1 National Informatics Center 1.3.2 Labour information System Division 1.4 Realization of the Problem 1.5 Broad outline of work 2. Problem Formulation 2.1 Detailed Description of the Project 2.1.1 Major Functions 2.2 Methodology used for Carrying out the Study 2.3 Business Process 2.4 Existing System 2.5 The Proposed System 3. System Analysis and Design.. 3.1 Defining a System 3.1.1 System Lifecycle 3.1.2 System Analysis 3.2 Analysis and Development of the Actual System 3.3 Project Overview 3.3.1 Product Prospective 3.3.2 User Interface 3.3.3 Hardware and Software Interface 3.3.4 Memory Constraints 3.3.5 Product Functions 3.4 Constraints 3.4.1 General Constraints 3.4.2 Hardware Constraints 3.4.3 Security Constraints 3.4.4 Assumptions and Dependencies 3.5 Feasibility Study 3.5.1 Technical Feasibility 3.5.2 Operational Feasibility I II III IV 1 1 1 1 2 4 4 5 6 6 7 7 8 8 8 9 9 11 11 11 11 12 12 12 12 12 13 13 13 14 14 15 2
3.5.3 Economic Feasibility 3.5.4 Legal Feasibility 3.6 Information Gathering 3.6.1 Information about Project 3.6.2 Information Sources 3.7 DFDs 3.8 Processing Logic 3.8.1 Reports Generated by the System 3.8.2 Data Structures 3.9 Application Architecture 3.10 Database Architecture 3.11 Input Output Specification 3.11.1 Screen Layout 3.11.2 Navigation (Menu description) 3.11.3 Help Facilities 3.11.4 Error Messages 3.12 Choices of Tools and Technologies 3.12.1 ASP 3.12.2 ASP Programming 3.12.3 Parsing ASP Code 3.12.4 Connecting to Database 4. Testing and Implementation.. 4.1 Objectives of Testing 4.2 Types of Testing 4.2.1 Black Box Testing 4.2.2 White Box Testing 4.2.3 Condition Testing 4.2.4 Data Life Cycle Testing 4.2.5 Unit Testing 4.2.6 Functional Testing 4.2.7 System Testing 4.3 Various Levels of Testing 4.3.1 Level 1 Testing (Alpha testing) 4.3.2 Level 2 Testing (Beta testing) 4.4 Quality Assurance 4.5 System Implementation 4.6 System Specification 4.6.1 Hardware Requirements 4.6.2 Software Requirements 4.7 Installation 4.8 Implementation 5. Result and Conclusion 5.1 Conclusions 5.2 Future Scope of Improvement
15 15 15 15 16 17 23 24 24 25 27 39 39 39 39 39 39 40 42 43 44 47 47 47 47 48 48 48 49 49 49 50 50 50 51 51 51 52 52 52 52 53 53 53
Annexures
A. B. C. D. E. F.
Sample Forms Sample Reports Sample code List of Common Validations Definition Glossary Bibliography
CHAPER 1 INTRODUCTION
This section presents the background and motivation of the system that has been designed and prototyped in this project. The section also reviews the objective of the project.
1.1Background
In terms of background the Employee Management System for DGLW project referred as Directorate General of Labour Welfare. Labour Information Systems Division (LISD) of NIC is actively involved in development of the application for Directorate General of Labour Welfare (DGLW). DGLW has its Headquarter in Delhi and its field offices are spread across the country. System maintains the information regarding Human Resources through field offices. So, that manpower can be monitored at Headquarter. The application software takes care of database and day to day operations. For the ease of the user the web-based application is developed using ASP and SQL server in the back .The different modules were added to the system as per DGLW Desk requirement and are being integrated into this web-based application.
1.2
Motivation
Realizing a higher need of development efforts and the investment of time, developing uniform, more user-friendly application software for implementation. With keeping use in mind, supporting existing business process of DGLW appears as a fruitful concept for adding more value through a web based application. There by increasing quality of services offered.
1.2Organization
1.3 This section lists the name of the organization for which we designed and prototyped this project.
Some of the most important note worthy projects, which offer a glimpse of the multifaceted, diverse activities of NIC, touching upon all spheres of e-governance and thereby influencing the lives of millions of citizens of India are given below: Agricultural Marketing Information Network (AGMARKNET) Central Passport System Community Information Centers (CICs) Computerized Rural Information Systems Project (CRISP) Court Information System (COURTIS) Department of Agriculture Network (DACNET) Examination Results Portal India Image Land Records Information System (LRIS) National Hazardous Waste Information System (NHWIS) Public Grievance Redress and Monitoring System (PGRAMS) Spatial Data Infrastructure (SDI) Training Video Conferencing Web Site of NIC http://indiaimage.nic.in/
1.4
The Present system is manual and thus it is not user friendly. The proposed system DGLW will be implemented as an Intranet application. The application software will be hosted on the MOLDB (Ministry of Labour & Employment Database server) web server located at NIC Computer Cell, Ministry of Labour, Shram Shakti Bhawan, Rafi Marg, New Delhi. The application software will be developed in ASP, JavaScript, VB Script and HTML. The central database is based on MS SQL Server 2000. The system can be accessed over the Intranet connecting all the Intranet of Ministry of Labour & Employment nodes. Clients equipped with web-browsers can access the system from any of the Intranet Nodes. The function of the system will be managing Employees at various field offices from the Head Quarter .It manages information about Employees of DGLW at various Field offices. It manages information regarding Human Resources through field offices. So, that manpower can be monitored at Head Quarter. 8
2.1
Labour Information Systems Division of NIC is actively involved in development of the application for Directorate General of Labour Welfare. In all, application systems were to be developed and implemented at CLC Division in Labour Ministry. System maintains the information about the Employee records, it maintain the each and every record about the employee regarding their posting, leave, vacancy position etc., it maintains the details of all Employees located at various field offices. The application software takes care of database and day-to-day operations. DGLW (Directorate
10
General of Labour Welfare) has its Headquarter in Delhi and its field offices are spread across the country. This project will help in capturing information regarding Human Resources through field offices. So, that manpower can be monitored at Head Quarter. For the ease of the user and for the public the existing systems were migrated to web-based applications.
The function of the system will be managing Employees at various field offices from the Head Quarter .It manages information about Employees of DGLW at various Field offices. It manages information regarding Human Resources through field offices. So, that manpower can be monitored at Head Quarter.
2.2
METHODOLOGY TO BE USED CARRYING OUT THE STUDY Studying the existing system. This will involve the amount of information, the manpower equipment space and other resources used for the information storage. After analysing the existing setup this study would suggest a new management setup. The benefits and disadvantages of existing and new system would be critically revised. Cost Benefit Analysis study will done. The database structure and information storage retrieval process will also be studied and a new system for faster response using operation research techniques will be designed.
2.3 2.4
11
The existing system comprises of a system in which details are to be manually handled. This is not user friendly.
2.5
It will be able to manage information about Employee in more user friendly way. This system will manage Employees information at various field offices. User ID and password has been given to all the field offices so that they can enter their employees information into central database. Their access to the central database is restricted to their information only. Various reports based on the data entered by employees at field offices are generated at Head Quarter. These reports are helpful in Manpower management decisions.
12
Input
Output
Processing
Problem Definition Systems analysis Study of existing system Drawbacks of the existing system
13
Proposed system Systems Requirement study Data flow analysis Feasibility study Systems design Input Design (Database & Forms) Updation Query /Report Design Administration Testing Implementation Maintenance
3.2
14
A complete understanding of the requirement for the new system is very important for the successful development of a software product. Requirement Specification is the foundation in the process of software development .All further developments like system analysis; designing and coding will depend on how accurate and well documented the Requirement Specification is. Requirement specification appears to be a relatively simple task, but appearance is often deceiving. There is always a chance of wrong specification because of communication gap between the user and the Developer. Requirement Specification begins with a clear statement of the problem and the task to be performed. Then the requirement is described in a technical manner in precise statements. After the initial specification reports are received, they are analyzed and redefined through customer interaction.
3.3
Project Overview
15
3.4
Constraints
16
2) Recovery of data after a system crash will be possible only if backups are taken at regular intervals. 3) Manual interfaces cannot be fully avoided. Documented proofs like dates etc. will have to be verified by the concerned staff before entering it into the computerized system
3.4.2
Hardware Constraints
Constraints of the Internet & Intranet will be applicable to the system. The performance of the system will be dependent on the network conditions like network congestion, bandwidth etc. The primary memory (RAM) and the secondary memory (Hard Disk Space) requirement of the system at the client end will be the same as that required by the web browser and the operating system. At the server end memory requirements will be that of the server software (Operating system, Database Software, etc) and the space required to store the data. The space required to store the data would increase as more and more records are added to the system.
17
1. It is assumed that the user is familiar with the basic computer fundamentals. 2. Timely backup of data should be taken to avoid data loss in case of system crash. 3. The use of pirated software should be avoided as it may lead to data loss and system crashes due to viral infections. 4. Floppies and other removable media should be scanned for viruses before use. 5. Proper configuration of the client, database server and network is necessary for the system to function as intended. 6. It is assumed that the
maintenance of the database will be assigned to the authorized person only. 7. Only authorized persons will be allowed inside the server room.
3.5
Feasibility Study
The main objective of the feasibility study is to treat the technical, Operational, logical and economic feasibility of developing the computerized system. All systems are feasible, given unlimited resources and infinite time. It is both necessary and prudent to evaluate the feasibility of the project at System study phase itself. The feasibility study to be conduced for this project Involves. 1. Technical Feasibility
18
3.6
Information Gathering
19
20
user
menutable
21
Emp_name, Emp_ID Emp_name,Emp_ID Finding particular entry Type,fro m,to,Re marks,D ate Updating entry
Emp_name, Emp_ID
User
DFD of Transfer
22
Prev_regn, Prev_statn 1
Updating entry
Select Region
User
23
Region, Designation Designation, Region Find particular entry Update particular entry 1
Listing Designatio n
GnrlCode
DFD of Vacancyposition
Finding Particular entries Adding new entry
Employee Region, Station, Designation 1 Updating an entry Region, Designation 1 Region, Station, Designation VacancyPosition
Region, Station
User
User
DFD
24
Emp_ID,E mp_name
User
3.8
Processing Logic
The Employee Management System has been designed and developed for various field offices of DGLW to capture the information about human resources. Various 25
details about the Employee is entered in the system with all details like Employee name, Designation, Date of birth, Station, Region, seniority, etc. There are some major activities which is taking care by the Employee Management System. Employee Management System All of the Employee record such as his name, designation, Region of posting, station of posting, his salary detail, seniority level, date of joining, qualification etc., is entered into the computerized system by the Employees at various Regional Offices. DGLW Vacancy Position Information This file contains the information regarding Vacancy Position at various regional offices. Such as station, sanctioned strength, number of permanent filled posts, number of temporary filled posts etc, DGLW Employee detail This file stores multiple information of Employee. Each employee has a separate record regarding his basic information such as his designation, region of posting ,basic salary, seniority level, DOB, date of joining, date of retirement, qualification etc.,. DGLW Employee Posting/Transfer detail After some certain specified time employees are Posted/Transferred to different Stations of different Regions this file keep track of Posting/Transfer record of the Employees. On giving these details, some reports and queries are generated by the system.
26
List of Vacancy Detail Region and Designation wise Vacancy Position Report for a particular Region, Station, Designation Vacancy Position Report for a particular Region Vacancy Position Report for a particular Designation
3.8.4
Data Structures
The Database DGLW contains the tables that contain the information related to system and the data needed to run the software. The tables are discussed in detail: Directorate General of Labour Welfare (DGLW) 1. BalanceLeave Employee 2. Payscale increment 3. Defaults 4. EmpAddress 5. Employee : Table contains default information about Employee : It contains the Address of all Employee : contains all the information about employee regarding his date :Table contains information of Employees basic salary, :Table contains the information of balance leaves of the
of joining, seniority, posting region and all other 6. EmployeeCR : Table contains information about Employees CR 7. GnrlCode 8. GnrlDir 9. Leave : Code directory of Designation :Table contains of code directory : Table contains information about leave
10. LeaveApplication : Table contains record of the application applied for leave 11. Leo Employee 12. Menutable generation : Table contains the Menu item for dynamic : Table contains basic information about
27
13.
Posting
Employees posting at various Regions 14. Region 15. SectionPosting 16. Station 17. StatusLeave leave taken 18. UserTable : Table contains the information of : Region code directory : Division code directory : Station code directory : Table contains information about status of the
various users of the Software 19. VacancyPosition : Table contains information about vacancy
3.9
Application Architecture
Most of the users database system today is not present at user premises, but clients connect to it through a network. We can therefore differentiate between client and server machine. In our system the information about personnel and post exist in the central database. But it need to be accessed from DGLW offices all over India so that employees can view, enter or modifies their personal information through their user-id and password. This can be done only through web based application architecture, as shown in the next page.
28
User
Application Server
Database System
Fig: 3.0
29
Tables used:
Fig: 3.1
Table: BalanceLeave
Fig: 3.2
Table: Paysclale
30
Fig: 3.3
Table: Defaults
Fig: 3.4
Table: EmpAddress
31
Fig: 3.5
Table: Employee
Fig: 3.6
Table: EmployeeCR
32
Fig: 3.7
Table: GnrlCode
Fig: 3.8
Table: GnrlDir
33
Fig: 3.9
Table: Leave
Fig: 3.10
Table: LeaveApplication
34
Fig: 3.11
Table:LEO
Fig: 3.12
Table: MenuTable
35
Fig: 3.13
Table:Posting
Fig: 3.14
Table: Region
36
Fig: 3.15
Table: SectionPosting
Fig: 3.16
Table: Station
37
Fig: 3.17
Table: StatusLeave
Fig: 3.18
Table: UserTable
38
Fig: 3.19
Table: VacancyPosition
39
40
41
3.11.5Error Messages
Suitable error messages should be flashed on error arising from Data inputs, which is easily understood by the user.
therefore been based mainly on the objectives of the project, while the methodologies were selected after the tools were selected, due to the fact that technologies and tools poses certain restrictions of how development can be done.
3.12.1 ASP
ASP stands for Active Server Pages, and it is Microsoft's implementation of serverside scripting. In short, this server-site scripting basically means that a script is parsed and executed by the server. When a user requests a web-page containing ASP, the web-server will parse code and send the result to the user, so the ASP code will never reach the user's browser. This is the exact opposite of JavaScript. You don't need to be a programmer to understand ASP, but you should have some HTML knowledge, as the actual design of the web page will require it. To use ASP scripts, you must have installed Microsoft's IIS (Internet Information Services), which is a web-server included in Windows 2000 and Windows XP Professional. It is also a part of the Windows NT 4.0 Option Pack, which can be downloaded from Microsoft's web-site. If IIS is not already installed on your computer, you can install it using the Add/Remove Programs section within the Windows Control Panel. The ASP engine is included within IIS, so you won't have to download it and install it separately. You must have Windows NT 4.0 or later to run IIS, so if you use Windows 98 you should install PWS (Personal Web Server), which is the smaller brother of IIS. You can use ASP code to do a lot of things: dynamically edit, change or add any content to a web-page, access and query databases, read or write files, connect to remote computers, create images - the only limit is your imagination. The most obvious difference from HTML files is that ASP files have the extension ".asp", but this doesn't mean that you need to separate the ASP code from the HTML code in different files; you can use one file which will include both HTML and ASP code. The web-server won't mind at all, it will parse the ASP code and forget about the HTML code. Depending on your ASP code, the web-server will output some HTML instead of the ASP code, so the web-browser will only see HTML. This provides a higher level of security, because nobody will be able to view your ASP code, and copy it and use it on their own web-page. Furthermore, you don't need 43
any extra components for your web-browser, because the ASP files are returned in plain HTML, so they can be viewed in any web-browser. In case you don't have Windows, you should know that some companies also didn't like the fact the ASP was only available for Windows platforms, so they decided to adapt ASP to other operating systems. So they created technologies like Chili ASP and iASP, which allow you to take advantage of the ASP technology while using other web-servers, not just IIS. And because other web-servers run on many operating systems - like Apache web-server - this extends the ASP technology too, so it can run on other operating systems. Active Server Pages or ASP, as it is more commonly known, is a technology that enables you to make dynamic and interactive web pages. ASP uses server-side scripting to dynamically produce web pages that are not affected by the type of browser the web site visitor is using. The default scripting language used for writing ASP is VBScript, although you can use other scripting languages like JScript (Microsoft's version of JavaScript). ASP pages have the extension .asp instead of .htm, when a page with the extension .asp is requested by a browser the web server knows to interpret any ASP contained within the web page before sending the HTML produced to the browser. This way all the ASP is run on the web server and no ASP will ever be passed to the web browser. Just simply just simply opening the page in a web browser cannot run any web pages containing ASP. The page must be requested through a web server that supports ASP, this is why ASP stands for Active Server Pages, no server, and no active pages. As ASP was first introduced by Microsoft on its web server, Internet Information Services (IIS) that runs on Windows 2000/XP Pro/NT4, it is this web server that ASP pages usually run best on. For those of you running Windows and wish to play around with ASP on your own system you will need to install Microsoft's Internet Information Services (IIS). Lucky IIS or its micro version Personal Web Server (PWS) comes free with Windows. For Windows users you can find Internet Information Services (IIS) or Personal Web Server (PWS) in the following places:
Windows 2000/XP Pro - IIS can be found in 'Add/Remove Programs' in the 'Control Panel'.
44
Windows NT4/95 -You can get hold of IIS by downloading the NT4 Option Pack from Microsoft (don't be fooled by the name as it also runs on Windows 95).
Windows ME - IIS and PWS are not supported on this operating system. Windows XP Home Edition - IIS and PWS are not supported on this
on websites. Such functionality includes the delivery of dynamic, database-driven content to website viewers without taxing the server-side system. ASP programming involves writing ASP files and HTML files. The ASP code is placed within the HTML pages, enclosed in special tags. When you need to make changes in the ASP programming code, you need change only the ASP files; the HTML files, which do nothing but go and get the ASP files' coding, need not be changed. ASP files have a file extension of .asp, much like HTML files have file extensions of either .htm or .html. The HTML files that contain the ASP instructions enclose those instructions within tags that look like this: Notice that unlike HTML, the ASP ending tag does not include a slash. To send the results of an ASP instruction directly to a browser, you add an equals sign: <%=. ASP programming involves scripting in Visual Basic Script, Jscript, Perl, Python, or other languages. Certain modifications are necessary, but the programmer who has written code in these other languages will find ASP programming to be familiar indeed. The two languages that work the best for ASP programming are VBScript and Jscript. One common use of ASP programming is to gather data from the user and display it at another time. For example, you can use ASP programming to query the user to type in his or her name and then display that name on subsequent pages during the user's visit. Once the name is input, the ASP programming protocols transfer that data to the requisite database, from which it can be accessed by other HTML pages that contain the coding guiding such requests. Such data requests and displays can be as complex as you want to make them.
45
Written data isnt the only thing that can be uploaded to your website using ASP programming. You can design forms that allow users to upload image files to your site as well. Real estate websites are perfect examples of sites that can take advantage of this functionality. ASP programming also comes in handy when your HTML pages and what they display involve accessing large databases containing tons of data. In this case, you will really appreciate the benefits of not having to change HTML files when you update the parameters of your databases. ASP programming makes this process simple.
46
INSERT INTO myTable (value1) VALUES ("myValue") A database connection is done via a connection string in the ASP source code. There are two ways this is generally done, one is using a data source name (DSN) and the other is using a DSN-Less connection string, which instead can use the Server.MapPath method or physical pathname to locate the database. An example connection string using a DSN: <% dim strConnection, dbase 'Create string with the name of the data source strConnection = "MyDSN"
Set dbase = Server.CreateObject("ADODB.Connection") 'Open database dbase.Open strConnection, "user", "password" %> DSN's are created using the ODBC data source administrator. This can be found in your system32 folder or within control panel. When you set up a data source name you are required to input the data source name, plus the database that it connects to and the path of that database. A user ID and password are also necessary, which is what will be within the two "", "" parameters in the dbase.Open line. Example of a dsn-less connection, using Server.MapPath:
47
%> If you wanted to enter a physical path, the Server.MapPath method could be removed and in its place, something like "C:\somefolder\somedatabase.mdb". In order to create a path to the database, Server.MapPath maps the path back to web server root that the pages are running on, via the directory you have specified. It's advantageous to keep a connectionstring in an external file and include it using the <! -- #include file="file.asp" --> method.
48
This section introduces the concept of testing and how important is, for the successful implementation of the project. Different phases of testing are described along with the level of testing incorporated in this particular project. Testing is vital to the success of any system. Testing is done at different stages within the phase. System testing makes a logical assumption that if all phases of the system are correct, the goals will be achieved successfully. Inadequate testing at all leads to errors that may come up after a long time when correction would be extremely difficult. Another objective of testing is its utility as a user-oriented vehicle before implementation. The testing of the system was done on both artificial and live data. Testing involves operation of a system or application under controlled conditions and evaluating the results (e.g., if the user is in interface A of the application while using hardware B and does C, then D should not happen). The controlled conditions should include both normal and abnormal conditions. Typically, the project team includes a mix of testers and developers who work closely together, with the overall QA processes being monitored by the project managers.
4.2
Types of Testing
50
4.3
51
Exit Pints in code Exception handling Input / Output format Glass box testing Black box testing If the system is through with testing phase at LEVEL 1 then it is passed on to LEVEL 2.
4.4
Quality Assurance
Proper documentation is must for mainframe of any software. Apart from In-line documentation while coding. Help coding, help files corresponding to each program were prepared so as to tackle the person-dependency of the existing system.
52
4.5
System Implementation
During the implementation stage the system is physically created. Necessary programs are coded, debugged and documented. A new hardware is selected, ordered and installed.
4.6
System Specification
Every computer system consists of three major elements. 1. The Hardware 2. Application Software such as visual studio. 3. Operating system
For successful operation of the package following must be kept in mind: Too many packages should not be used, as very few systems may have all those packages installed due to memory problem. Thus, the compatibility of the system developed will get reduced.
53
4.7
Installation
The Application installation scripts have to be generated from the current server where the application source code is saved and installed in the main server from where the application is to be run. This was done using a special code, which generates all SQL-Statements to insert preliminary data (like menu entries, code in code directories etc) at server and the operational modules of the application made available to the end users successfully.
4.8
Implementation
The system is still under construction few reports are yet to me made after that this system will be implanted at client side. Users will be given a training to use the package and special workshops are conducted by the NIC for the purpose. And according to their feedback the changes are implanted in the software.
54
Conclusion
Today we are at the cross roads of innovation. The right direction to take will only evolve with time, but effort has to be taken seriously by everyone involved in education; the school/University, administration, faulty, students and parents. By designing the Directorate General of Labour Welfare through ASP server side technology, we are able to provide the basic functionality related to the submission activities with great ease. The use of ASP technology has made it easier to design and develop the n-tired architecture of this application. We were using the Microsoft Software Development Platform for the development of this project, which had given a complete, tight and integrated approach for the process of design and development of this project. Hence we may conclude that the application system being developed helps a great deal in modifying the computerized DGLW.
55
Front-end-----ASP, JavaScript, VBScript, HTML, DHTML Back-end----MS SQL Server 2004 Query Language----PL/SQL
Fig: 5.1
56
Fig: 5.2
After login this form will be shown from where we will have to choose
57
Fig: 5.3
After login this form will be shown from where we will have to choose
Fig: 5.4
choosing a particular designation all the employees at that designation on the region through which a person has entered will be listed
58
Fig: 5.5
listed like this also mentioning the total number of person at that designtion
59
Fig: 5.6
On clicking the New Information on the top and bottom of the State
60
Fig: 5.7
Information list then the Employee form will be loaded taking all the information from the Table Employee
Fig: 5.8
station will appear if it already have, also on clicking on the New Information link on the left side of for posting to the New Region can be assigned to the employee through whose record we have entered
61
Fig: 5.9
This will make one select the particular Region for the Posting
62
Fig: 5.10
On selecting the Region the above form will be loaded, now the
station, designation, and duration of the position will be chosen through this form
63
Fig: 5.11
Now when the new posting has been assigned to the person that data
64
Fig: 5.12
The record inserted above is listed here in the posting information form
65
Fig: 5.13
will be loaded giving information about his previous station and allowing the user to assign him new Region and Station and the date for the Transfer
66
Fig: 5.14
After inserting the Region for the Transfer this form will be loaded
listing Employees previous Region, Station and Region selected through previous form, then through this form Station for the Employee for the Transfer will be selected
67
Fig: 5.15
loaded listing all the leaves taken by Employee their type and duration
68
Fig: 5.16
form this form will be loaded where leave record can be entered
69
Fig: 5.17
listing particular station for the Region through which user has login
70
Fig: 5.18
71
Fig: 5.19
On selection the Station all the designation on that station will be listed
72
Fig: 5.19
73
Fig: 5.20
all the information regarding Vacancy Position about the Employee at designation
74
Fig: 5.21
75
Fig: 5.22
76
Fig: 5.23
On clicking the New Information link this page will be loaded with
77
Fig: 5.24
78
On inserting the above information this form will be loaded like this
i.e., the designation inserted will be printed now and editing on the other field can be
79
This is a login form, if user is not from regional area but is from
Administration he will have User ID and Password other than that of user from
80
Fig: 5.27
After this login this page will be loaded here the user will have both
Region and Station to select, user can access any region and station
81
Now again after entering the Region and Station this form will be
82
Fig: 5.29
83
Fig: 5.30
After selecting the Region and Station this page will be loaded listing
84
Fig: 5.31
On clicking the EmloyeeCR form from the menu this form will be
loaded listing all the station of the Region through which User has login
85
Fig: 5.32
On selecting the Station this page will be loaded bringing name and
86
Fig: 5.33
87
Fig: 5.34
On clicking the New Information on the left this form will be loaded
88
On clicking the Employees name in the list above this form will be
loaded with the information about Employees CR year this info can be edited and
89
On clicking on the Leave on the Menu this form will be loaded letting
to choose the designation, for the designation entered here the leave information will
90
Fig: 5.36
91
Annexure B: Reports
Fig: 5.37
On clicking on the List Region Repots in the menu this page will be
92
Fig: 5.37
For the Region entered above report listing all the data in table
VacancyPosition will listed regarding sanctioned strength for various designation at various Region and Station
93
Fig: 5.38
On selecting list Designation from the Menu this page will be loaded,
94
Fig: 5.39
All the information as entered in the table Vacancy Position for the
95
On selecting list vacancy Region from the menu this page will be
96
Fig: 5.41
Then for the selected Region, list of all the vacancy position for the
various designation at the various station of the selected Region will be listed
97
Fig: 5.42
On selecting vacancy Region from the menu this page will be loaded
98
Fig: 5.43
This page will list vacancy position for the various designation at each
99
Fig: 5.44
100
Fig: 5.45
This page asks the user to select the Region from the list
101
Fig: 5.46
For the selected Region, Designation record at the region will be listed
102
Fig: 5.47
103
104
Response.Write "New Form" cRegion=Request.Form("Region") case "Insert" GetValuesFrom "Form" frmInsert() Case "Save" GetValuesFrom "Form" frmUpdate() case "Delete" GetValuesFrom "Form" frmDelete() case "Search" GetValuesFrom "Form" frmSearch() case "Refresh" GetValuesFrom "Form" frmFind() case "Close" frmClose() case else select case cstr(Request.QueryString("frmAction")) case "Find" cID = Request("ID") frmFind() case else frmMode="New" GetValuesFrom "Default" Response.Write "New Form" cRegion=Request.QueryString("Region") cDesignation=Request.QueryString("Designation") end select end select sub frmInsert() insert=True
105
if (Not checkdate(cDOB)) then insert=False Response.Write "<Center><B><Font color=Red>Wrong Date of Birth</Font></B></Center>" frmMode="New" cDOB="" else strSql = "Insert into Employee (Name, " if (len(trim(cSeniority))>0) then strSql = strSql & " Seniority, " end if strSql = strSql & " Region, " if (len(trim(cStation))>0) then strSql = strSql & "Station, " end if strSql=strSql & " Sex, DOB, Designation, " if (isNumeric(cBasicPay)) then strSql= strSql & " BasicPay, " end if strSql= strSql & " PerFileNo, Category, " if (len(trim(cDtGovt))>0) then strSql= strSql & "DtGovt," end if if (len(trim(cDtService))>0) then strSql = strSql & " DtService,"
106
end if if (len(trim(cDtPost))>0) then strSql= strSql & " DtPost," end if if (len(trim(cIncrYear))>0) then strSql = strSql & " IncrYear, " end if if (len(trim(cIncrMonth))>0) then strSql = strSql & " IncrMonth, " end if strSql=strSql & " Qualification, QualificationDesc," if (len(trim(cDtLeaving))>0) then strSql=strSql & " DtLeaving, " end if strSql = strSql & " TypeLeaving, Remarks, Post, PostType," if (len(trim(cDtPostHeld))>0) then strSql = strSql & " DtPostHeld," end if if (len(trim(cUPSCDt))>0) then strSql = strSql & " UPSCDt," end if strSql= strSql & " UPSCNo1, UPSCNo2, EntryMode, HomeTown, PresentStatus) VALUES (" strSql = strSql & "'" & cName & "', "
107
if (len(trim(cSeniority))>0) then strSql = strSql & cSeniority & ", " end if strSql = strSql & cRegion & ", " if (len(trim(cStation))>0) then strSql = strSql & cStation & ", " end if strSql = strSql & "'" & cSex & "', " if (len(trim(cDOB))>0) then strSql = strSql & "'" & DateMMDDYYYY(cDOB) & "', " end if strSql = strSql & "'" & cDesignation & "', " if (IsNumeric(cBasicPay)) then strSql = strSql & "" & cBasicPay & ", " end if strSql = strSql & "'" & cPerFileNo & "', " strSql = strSql & "'" & cCategory & "', " if (len(trim(cDtGovt))>0) then strSql = strSql & "'" & DateMMDDYYYY(cDtGovt) & "', " end if if (len(trim(cDtService))>0) then strSql = strSql & "'" & DateMMDDYYYY(cDtService) & "', " end if if (len(trim(cDtPost))>0) then strSql = strSql & "'" & DateMMDDYYYY(cDtPost) & "', " end if
108
if (len(trim(cIncrYear))>0) then strSql = strSql & "'" & cIncrYear & "', " end if if (len(trim(cIncrMonth))>0) then strSql = strSql & "'" & cIncrMonth & "', " end if strSql = strSql & "'" & cQualification & "', " strSql = strSql & "'" & cQualDesc & "', " if (len(trim(cDtLeaving))>0) then strSql = strSql & "'" & DateMMDDYYYY(cDtLeaving) & "', " end if strSql = strSql & "'" & cTypeLeaving & "', " strSql = strSql & "'" & cRemarks & "', " strSql = strSql & "'" & cPost & "', " strSql = strSql & "'" & cPostType & "', " if (len(trim(cDtPostHeld))>0) then strSql = strSql & "'" & DateMMDDYYYY(cDtPostHeld) & "', " end if if (len(trim(cUPSCDt))>0) then strSql = strSql & "'" & DateMMDDYYYY(cUPSCDt) & "', " end if strSql = strSql & "'" & cUPSCNo1 & "', " strSql = strSql & "'" & cUPSCNo2 & "', " strSql = strSql & "'" & cEntryMode & "', " strSql = strSql & "'" & cHomeTown & "', " strSql = strSql & "'" & cPresentStatus & "'" strSql = strSql & ")"
109
set rsFrm = Server.CreateObject("ADODB.Recordset") Response.Write strSql rsFrm.open strSql, EmployeeConn Response.Redirect "Region=" & cRegion & "&Designation=" & cDesignation end if end sub sub frmUpdate() strSql ="Update Employee set " strSql = strSql & "Name = '" & cName & "', " if (len(trim(cSeniority))>0) then strSql = strSql & "Seniority =" & cSeniority & ", " end if strSql = strSql & "Region =" & cRegion & ", " strsql = strSql & "Station =" & cStation & ", " strSql = strSql & "Sex = '" & cSex & "', " if (len(trim(cDOB))>0) then strSql = strSql & "DOB = '" & DateMMDDYYYY(cDOB) & "', " end if strSql = strSql & "Designation = '" & cDesignation & "', " if (isNumeric(cBasicPay)) then strSql = strSql & "BasicPay = " & cBasicPay & ", " end if strSql = strSql & "PerFileNo = '" & cPerFileNo & "', " strSql = strSql & "Category = '" & cCategory & "', " if (len(trim(cDtGovt))>0) then strSql = strSql & "DtGovt = '" & DateMMDDYYYY(cDtGovt) & "', " end if
110
if (len(trim(cDtService))>0) then strSql = strSql & "DtService = '" & DateMMDDYYYY(cDtService) & "', " end if if (len(trim(cDtPost))>0) then strSql = strSql & "DtPost = '" & DateMMDDYYYY(cDtPost) & "', " end if if (len(trim(cIncrAmount))>0) then strSql = strSql & "IncrYear = '" & cIncrYear & "', " end if if (len(trim(cIncrMonth))>0) then strSql = strSql & "IncrMonth = '" & cIncrMonth & "', " end if if (len(trim(cIncrYear))>0) then strSql = strSql & "IncrYear = '" & cIncrYear & "', " else strSql=strSql & "IncrYear='', " end if strSql = strSql & "PostType = '" & cPostType & "', " strSql = strSql & "Qualification = '" & cQualification & "', " strSql = strSql & "QualDesc = '" & cQualDesc & "', " if (len(trim(cDtLeaving))>0) then strSql = strSql & "DtLeaving = '" & DateMMDDYYYY(cDtLeaving) & "', " end if strSql = strSql & "TypeLeaving = '" & cTypeLeaving & "', " strSql = strSql & "Remarks = '" & cRemarks & "', " strSql = strSql & "Post = '" & cPost & "', "
111
if (len(trim(cDtPostHeld))>0) then strSql = strSql & "DtPostHeld = '" & DateMMDDYYYY(cDtPostHeld) & "', " end if if (len(trim(cUPSCDt))>0) then strSql = strSql & "UPSCDt= '" & DateMMDDYYYY(cUPSCDt) & "', " end if strSql = strSql & "UPSCNo1= '" & cUPSCNo1 & "', " strSql = strSql & "UPSCNo2= '" & cUPSCNo2 & "', " strSql = strSql & "EntryMode= '" & cEntryMode & "', " strSql = strSql & "HomeTown= '" & cHomeTown & "', " strSql = strSql & "PresentStatus= '" & cPresentStatus & "'" strSql = strSql & " where Id = " & cID set rsFrm = Server.CreateObject("ADODB.Recordset") 'Response.Write strSql rsFrm.open strSql, EmployeeConn Response.Redirect "frmEmployee.asp?frmAction=Find&ID=" & cID & "&Region=" & cRegion end sub sub frmDelete() strSql = "Delete from Employee where ID =" & cID set rsFrm = Server.CreateObject("ADODB.Recordset") rsFrm.open strSql, EmployeeConn 'Response.Redirect "frmEmployee.asp?frmAction=New" & "&Region=" & cRegion Response.Redirect "Region=" & cRegion & "&Designation=" & cDesignation end sub sub frmClose() Response.Redirect RedirectURL & "?userName=" & session("gUserId") end sub
112
sub frmTransfer() Response.Redirect "frmRegion.asp?ID=" & cID & "&Region=" & cRegion & "&Station=" & cStation & "&Designation=" & cDesignation end sub sub frmPosting() Response.Redirect "../List/lstPosting.asp?ID=" & cID & "&Region=" & cRegion & "&Station=" & cStation end sub
sub frmLeave() Response.Redirect "../List/lstLeave.asp?ID=" & cID & "&Region=" & cRegion & "&Station=" & cStation end sub sub frmFind() set rsFrm = Server.CreateObject("ADODB.Recordset") strSql = "Select * from Employee where ID=" & cID rsFrm.Open strsql, EmployeeConn GetValuesFrom "Table" rsFrm.close end sub sub GetValuesFrom(ByVal Src) select case cstr(Src) case "Form" cId = Request.Form("ID") cName = Request.Form("Name") cSex = Request.Form("Sex") cDOB = Request.Form("DOB") cDesignation = Request.Form("Designation") cPayScale = Request.Form("BasicPay") cPerFileNo = Trim(Request.Form("PerFileNo")) cCategory = Request.Form("Category") cDtGovt = Request.Form("DtGovt")
113
cDtService = Request.Form("DtService") cDtSection = Request.Form("DtPost") cPost = Request.Form("Post") cPostType = Request.Form("PostType") cDtPostHeld=Request.Form("DtPostHeld") cPlacePosting = Request.Form("PlacePosting") cQualification = Request.Form("Qualification") cQualDesc = Request.Form("QualDesc") cHomeTown = Request.Form("HomeTown") cDtLeaving = Request.Form("DtLeaving") cTypeLeaving = Request.Form("TypeLeaving") cRemarks = Request.Form("Remarks") cRegion = Request.Form("Region") cStation= Request.Form("Station") cSeniority = Request.Form("Seniority") cBasicPay=Request.Form("BasicPay") cDtPost=Request.Form("DtPost") cUPSCDt=Request.Form("UPSCDt") cUPSCNo1=Request.Form("UPSCNo1") cUPSCNo2=Request.Form("UPSCNo2") cEntryMode=Request.Form("EntryMode") cPresentStatus=Request.Form("PresentStatus") cIncrMonth = Request.Form("IncrMonth") cIncrYear=Request.Form("IncrYear") case "Table" cId = rsFrm("Id") cName = rsFrm("Name") cSex = rsFrm("Sex") cDOB = rsFrm("DOB") cDesignation = rsFrm("Designation") cBasicPay = rsFrm("BasicPay") cPerFileNo = Trim(rsFrm("PerFileNo")) cCategory = rsFrm("Category") cDtGovt = rsFrm("DtGovt") cDtService = rsFrm("DtService")
114
cDtSection = rsFrm("DtPost") cPost = rsFrm("Post") cDtPostHeld=rsFrm("DtPostHeld") cPostType = rsFrm("PostType") cQualification = rsFrm("Qualification") cQualificationDesc = rsFrm("QualificationDesc") cHomeTown = rsFrm("HomeTown") cDtLeaving = rsFrm("DtLeaving") cTypeLeaving = rsFrm("TypeLeaving") cRemarks = rsFrm("Remarks") cRegion = rsFrm("Region") cStation= rsFrm("Station") cSeniority = rsFrm("Seniority") cDtPost=rsFrm("DtPost") cUPSCDt=rsFrm("UPSCDt") cUPSCNo1=rsFrm("UPSCNo1") cUPSCNo2=rsFrm("UPSCNo2") cEntryMode=rsFrm("EntryMode") cPresentStatus=rsFrm("PresentStatus") cIncrMonth=rsFrm("IncrMonth") cIncrYear= rsFrm("IncrYear") case else cName = "" cSex = "" cDOB = "" cDesignation = "" cPayScale = "" cPerFileNo = "" cCategory = "" cDtGovt = "" cDtService = "" cDtSection = "" cPost="" cPlacePosting = "" cPostType = ""
115
cQualification = "" cQualDesc = "" cHomeTown = "" cDtLeaving = "" cTypeLeaving = "" cRemarks = "" cRegion=Request.QueryString("Region") cIncrMonth="" cIncrYear="" end select end sub %> <HTML> <Head> <Title>Employee Details</Title> <!--#include File="../Library/JavaLibrary.asp"--> <SCRIPT language="JavaScript"> <!-function checkDOB() { if (document.frmName.DOB.value == "") { alert("Blank Date!, Date format is 'DD/MM/YYYY'"); //document.frmName.CGITReceivedDate.focus(); } else { if(!DateValid(document.frmName.DOB.value)) { //document.frmName.CGITReceivedDate.focus(); } } } function checkDtService() { if (document.frmName.DtService.value == "") {
116
alert("Blank Date!, Date format is 'DD/MM/YYYY'"); //document.frmName.CGITReceivedDate.focus(); } else { if(!DateValid(document.frmName.DtService.value)) { //document.frmName.CGITReceivedDate.focus(); } } } function checkDtGovt() { if (document.frmName.DtGovt.value == "") { alert("Blank Date!, Date format is 'DD/MM/YYYY'"); //document.frmName.CGITReceivedDate.focus(); } else { if(!DateValid(document.frmName.DtGovt.value)) { //document.frmName.CGITReceivedDate.focus(); } } } function checkDtPost() { if (document.frmName.DtPost.value == "") { alert("Blank Date!, Date format is 'DD/MM/YYYY'"); //document.frmName.CGITReceivedDate.focus(); } else { if(!DateValid(document.frmName.DtPost.value)) { //document.frmName.CGITReceivedDate.focus(); } } } function checkDtPostHeld() {
117
if (document.frmName.DtPostHeld.value == "") { alert("Blank Date!, Date format is 'DD/MM/YYYY'"); //document.frmName.CGITReceivedDate.focus(); } else { if(!DateValid(document.frmName.DtPostHeld.value)) { //document.frmName.CGITReceivedDate.focus(); } } } function checkUPSCDt() { if (document.frmName.UPSCDt.value == "") { alert("Blank Date!, Date format is 'DD/MM/YYYY'"); //document.frmName.CGITReceivedDate.focus(); } else { if(!DateValid(document.frmName.UPSCDt.value)) { //document.frmName.CGITReceivedDate.focus(); } } } function checkDtLeaving() { if (document.frmName.DtLeaving.value == "") { alert("Blank Date!, Date format is 'DD/MM/YYYY'"); //document.frmName.CGITReceivedDate.focus(); } else { if(!DateValid(document.frmName.DtLeaving.value)) { //document.frmName.CGITReceivedDate.focus(); } } }
118
function checkBP() { if (document.frmName.BasicPay.value == "") { alert("Blank Basic Pay!"); } else { if(!is_int(document.frmName.BasicPay)) { alert("'" + document.frmName.BasicPay.value + "' is not a valid Basic Pay!"); //alert(document.frmName.BasicPay.value); document.frmName.BasicPay.value="" } } } //--> </SCRIPT> </Head> <!-- <TR valign=top><TD align=Center colspan=6><Font face=sans-serif color=Blue><B>Present Information</B></Font></TD></TR>--> <TR bgcolor=LightSkyBlue valign=top> <TD align=left width=11% ><font face="Arial" size="2">Name/Seniority</font></TD> <TD width=25% ><PRE><INPUT Name=Name Value="<%=cName%>" Size=20 MaxLength=30 ><B>/</B><INPUT Name=Seniority Value="<%=cSeniority%>" Size=3 MaxLength=5></PRE> <INPUT Name=ID Value="<%=cId%>" Type=Hidden Size=5 MaxLength=30 > <INPUT Name=Region Type=Hidden Value="<%=cRegion%>" Size=5 MaxLength=5 > </TD> <TD align=left width=3% ><font face="Arial" size="2">Sex</font></TD> <TD width=10% ><select name="Sex"> <option value=""> <option value="M">Male</option> <option value="F">Female</option> </select></TD>
119
<TD align=left width=5% ><Font color=red>*</Font><font face="Arial" size="2">DoB</font></TD> <TD width=30%><INPUT Name=DOB Value="" Size=10 MaxLength=10 onBlur="checkDOB()"></TD> </TR> <TR bgcolor=Bisque valign=top><TD align=left width=5%><font face="Arial" size="2">Designation</font></TD> <TD width=20%><INPUT Name=Designation Type=Hidden Value="< %=Trim(cDesignation)%>" Size=5 MaxLength=5><B><Font Face="Arial"></Font></B></TD> <TD align=left width=5%><font face="Arial" size="2">Basic</font></TD> <TD width=10%><INPUT Name=BasicPay Value="<%=cBasicPay%>" Size=10 MaxLength=5 onBlur="checkBP()"></TD> <TD align=left width=3%><font face="Arial" size="2">File No.</font></TD><TD width=30%></Font> <INPUT Name=PerFileNo Value="<%=cPerFileNo%>" Size=13 MaxLength=25 ></TD> </TR> <TR bgcolor=Bisque valign=top><TD align=left><font face="Arial" size="2">Category</font></TD> <TD><select name="Category"> <option value=""> <option value="G">General</option> <option value="SC">Schedule Cast </option> <option value="ST">Schedule Tribe </option> <option value="OBC">OBC </option> </select></TD> <TD><font face="Arial" size="2">Station</font></TD> <TD colspan=3><select name="Station"></Select></TD> </TR> <TR bgcolor=Bisque valign=top><TD align=Left ><Font color=red>*</Font><font face="Arial" size="2">Dt.of Posting(Prsnt. Desg.)</font></TD> <TD><INPUT Name=DtService Value="" Size=10 MaxLength=10 onblur="checkDtService()"></TD> <TD align=left><font face="Arial" size="2">Dt. of Entry(Govt.)</font></TD> <TD><INPUT Name=DtGovt Value="" Size=10 MaxLength=10 onBlur="checkDtGovt()"></TD> <TD align=Left ><font face="Arial" size="2">Dt.Present Station </font></TD>
120
<TD><INPUT Name=DtPost Value="" Size=10 MaxLength=10 onBlur="checkDtPost()" ></TD> </TR> <TR bgcolor=Bisque valign=top><TD align=Left ><font face="Arial" size="2">Increment Month</font></TD> <TD ><select name="IncrMonth"></select></TD> <TD align=left><font face="Arial" size="2"> Incr.added upto Year </font></TD> <TD ColSpan=3><INPUT Name=IncrYear Value="<%=cIncrYear%>" Size=5 MaxLength=4></TD> </TR> <TR valign=top><TD align=Center colspan=6><Font face=sans-serif color=Blue><B>Permanent / Temporary Employee Info.</B></Font></TD></TR> <TR bgcolor=Bisque valign=top> <TD><font face="Arial" size="2">Post Name</font></TD> <TD><!--<select name="Post"></select>--><INPUT Name=Post Value="<%=cPost %>" Size=22 MaxLength=30></TD> <TD><font face="Arial" size="2">Perm./Temp.</font></TD> <TD><select name="PostType"></select></TD> <TD><font face="Arial" size="2">Dt. of Confirmation</font></TD> <TD><INPUT Name=DtPostHeld Value="" Size=15 MaxLength=10 onBlur="checkDtPostHeld()"></TD> </TR> <!--<TR valign=top><TD align=Center colspan=6><Font face=sans-serif color=Blue><B>Qualification Information</B></Font></TD></TR>--> <TR bgcolor=Lavender><TD align=Left><font face="Arial" size="2">Qualification</font></TD><TD colspan=2> <select name="Qualification"> <option value=""> <option value="10">10th</option> <option value="12">12th </option> <option value="Gt">Graduate </option> <option value="PG">Post Graduate </option> </select> </TD> <TD align=Right><font face="Arial" size="2">Description</font></TD><TD colspan=2><INPUT Name=QualDesc Value='<%=cQualDesc%>' Size=23 maxlength=50 ></TD> </TR>
121
<%if (cDesignation="LEO") then %> <!--<TR valign=top><TD align=Center colspan=6><Font face=sans-serif color=Blue><B>U.P.S.C. Information (In case of L.E.O.)</B></Font></TD></TR>-> <TR bgcolor=Gold valign=top><TD align=Left><font face="Arial" size="2">U.P.S.C. Date</font></TD> <TD><INPUT Name=UPSCDt Value='<%=RetDate(cUPSCDt)%>' Size=10 maxlength=10 onBlur="checkUPSCDt()"></TD> <TD align=Right><font face="Arial" size="2">U.P.S.C. No.</font></TD><TD><INPUT Name=UPSCNo1 Value='<%=cUPSCNo1%>' Size=12 maxlength=20 ></TD> <TD colspan=2><INPUT Name=UPSCNo2 Value='<%=cUPSCNo2%>' Size=12 maxlength=20 ></TD> </TR> <TR bgcolor=Gold valign=top><TD align=Left><font face="Arial" size="2">Entry Mode</font></TD><TD colspan=2> <select name="EntryMode"><%fillEntryMode(trim(cEntryMode))%></select> </TD> <TD align=Right><font face="Arial" size="2">Present Status</font></TD><TD colspan=2> <select name="PresentStatus"><%fillPresentStatus(trim(cPresentStatus))%></select> </TD> </TR> <%end if %> <!--<TR valign=top><TD Colspan=6 align=center><Font face=sans-serif color=Blue><B>Miscellaneous Information</B></Font></TD></TR>--> <TR bgcolor=Lavender valign=top><TD align=Left><font face="Arial" size="2">Home Town </font></TD><TD colspan=2><INPUT Name=HomeTown Value='<%=cHomeTown%>' Size=15 maxlength=20 ></TD> <TD align=Left><font face="Arial" size="2">Dt. of Leaving</font></TD><TD colspan=2><INPUT Name=DtLeaving Value="" Size=15 MaxLength=10 onBlur="checkDtLeaving()"></TD> </TR> <TR bgcolor=Lavender valign=top><TD align=Left><font face="Arial" size="2">Reason of Leaving</font></TD><TD colspan=5><select name="TypeLeaving"></select></TD> </TR> <TR bgcolor=Lavender valign=top><TD><font face="Arial" size="2">Remarks</font></TD><TD colspan=5><INPUT Name=Remarks Value='< %=cRemarks%>' Size=80></TD></TR> </TABLE> 122
<Center><I><Font color=red><Sup>*</Sup></Font> <Font color=Blue>These fields are mandatory</Font></I></Center> <P><INPUT name=SubmitAction type=hidden value="new"></P> <P> <%'=frmMode%> <%' Response.Write frmMode Response.Write "<Center>" response.write "<INPUT name=btnNew type=button value=New>" if frmMode="New" then response.write "<INPUT name=btnInsert type=submit value=Insert>" else response.write "<INPUT name=btnSave type=button value=Save>" response.write "<INPUT name=btnDelete type=button value=Delete>" response.write "<INPUT name=btnRefresh type=button value=Refresh>" Response.Write "<Table border=1 bordercolor=Blue><TR bgColor='Aqua'><TD>" response.write "<INPUT name=btnPosting type=button value='Postings'>" Response.Write "</TD><TD>" response.write "<INPUT name=btnTransfer type=button value='Transfer'>" Response.Write "</TD><TD>" response.write "<INPUT name=btnLeave type=button value='Leave'>" Response.Write "</TD></TR></Table><BR>" end if ' response.write "<INPUT name=btnSearch type=button value=Search>" response.write "<INPUT name=btnClose type=button value=Close>" Response.Write "</Center>" %> </p> </form> </body> </html> <!--#include File="../Library/LibraryFrm.asp"--> <SCRIPT language=VBScript> sub btnTransfer_OnClick() frmName.SubmitAction.value="Transfer" frmName.submit 123
end sub sub btnPosting_OnClick() frmName.SubmitAction.value="Posting" frmName.submit end sub sub btnLeave_OnClick() frmName.SubmitAction.value="Leave" frmName.submit end sub sub btnInsert_OnClick() frmName.SubmitAction.value="New" frmName.submit end sub </Script>
124
1. No field in a form should be left blank. 2. The name of a person cannot be numeric value. It has to be in alphabets 3. Data has to be entered in a valid format. 4. Data of birth has to be a date previous than the current date. 5. Time has to be entered in valid format. 6. In any form, only one option can be selected from the given number of options 7. Email address should be entered in a valid format.
125
Annexure E - Definition/Glossary
Data describe the numbers, text, graphics, image, and voice stored in this form that can be used by a computer. Record A set of related data items treated as a unit. File Set of record is termed as storage of files, and records in computer. LAN Based Application an application which run on internet or intranet. Project Life Cycle (PLC) Describe a way to make a successful project. Configuration status reporting (CSR) an activity that help software Developer to understanding what changes have been made and why. Validation Test to ensure that the software confirms to its requirement. Prototyping Creating a mock up of an application.
126
127