INDEX:
5.2 LEVEL 1… 15
5.3 LEVEL 2… 15
5.4 LEVEL 3… 16
5.5 LEVEL 4… 17
5.7 ER-DIAGRAMS… 21
The system even has the option for only viewing the employee’s
activities or appointments. This feature avoids direct contact to the
respective employee’s database and activities. There is an option where
only the supervisor (the top-level manager) can have direct access to the
employee’s activities, he can change the appointments of the employees
working under him. No other employee of the same designation or same
level of hierarchy can do this.
INTRODUCTION
PURPOSE OF DOCUMENT
This document covers the ESMS interface design and all the
requirements of the Employee Scheduler Management System.
Acronym Explanation
ESMS Employee Scheduler management System
Documents In ESMS, Documents are containers of information
exchanged between applications.
REFERENCES
3. REURIMENTS
5. DESIGN SPECIFICATION
superviso
r
MAIN Readonly
Perpose
Employee
5.2 Level: 1
Schedule2
Table
Shcedule
Empd Table
View
Name,
password
Registration Login
SUPERVISOR Conformation
Regs Table
5.3 Level: 2
Schedule2 Table
View Schedule
Name,password,Etime
Stime,Preference,Dept,D
escription.
5.4 Level: 3
Empd Table
Name,
password
Close
Login
Read Only
Purpose
Schedule Name,Dept,Stime,
Etime,preferece
View
Schedule
5.5 Level: 4
Registered
Employee
New Employee
Name,dept
password …
Employee
Regs Table
Login
Stime,
Schedule
Etime,preference
Schedule1 Table
View Schedule
Data objects
1. Employee
2. Register
3. Schedule
4. View
5. Supervisor
6. Reschedule
7. Add
8. Update
9. Generate Monthly Activities
Relationships
A relationship is a named association between agent and customer entity
or more than entities we say that relationship exists between clerk and
customer entity type. Similarly a relation between a clerk entity type and
a manager entity type.
5.7 ER-Diagram
REGS
SCHEDULE 1
SCHEDULE 2
7. AN OVERVIEW OF J2EE
J2EE Containers
Containers provide the runtime support for J2EE application
components. Containers provide a federated view of the underlying
J2EE APIs to the application components. J2EE application
components never interact directly with other J2EE application
components.
J2EE Servers
Underlying a J2EE container is the server of which it is a part.
A J2EE Product Provider typically implements the J2EE server-side
functionality using an existing transaction processing infrastructure in
combination with Java 2 Platform, Standard Edition (J2SE)
technology. The J2EE client functionality is typically built on J2SE
technology.
Resource Adapters
A resource adapter is a system-level software component that
implements network connectivity to an external resource manager. A
resource adapter can extend the functionality of the J2EE platform
either by implementing one of the J2EE standard service APIs (such
as a JDBC™ driver), or by defining and implementing a resource
adapter for a connector to an external application system.
RMI-IIOP
JDBC™ API
SECURITY SERVICE
DEPLOYMENT
CONTROL FUNDAMENTALS
• Labels
• Push Buttons
• Check Boxes
• Choice Lists
• Scroll bars
• Text Editing
Class Description
AWT Event Encapsulates AWT events.
Border Layout The border layout manager
Button Creates a push button control.
Check Box Creates a Check Box control.
Color Manages Color in a portal,
Platform-independent Fashion
Component An abstract super class of
Various AWT components.
Container A subclass of component
that can hold other components.
Dialog Create a dialog window.
Even the simplest Swing components have capabilities far beyond what
the AWT components offer:
Swing buttons and labels can display images instead of, or in addition
to, text. You can easily add or change the borders drawn around most
Swing components. For example, it's easy to put a box around the
outside of a container or label.
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.border.*;
import javax.swing.event.*;
JButton ok;
JLabel l,l1,l2,l3,sel;
JTextField tf;
JPanel panel;
String border_type="Titled";
public Option()
setTitle("Main Entry");
setSize(500,400);
move(120,100);
sel=new JLabel("Select");
sel.setForeground(Color.black);
l1=new JLabel("1.Supervisor");
l2=new JLabel("2.Employee");
ok=new JButton("OK");
tf=new JTextField(10);
// logos inserting
//
panel.setOpaque(false);
setContentPane( panel );
background1.setBounds(100,550, image1.getIconWidth(),
image1.getIconHeight());
getLayeredPane().add(background1, new
Integer(Integer.MIN_VALUE));
//
panel1.setOpaque(false);
setContentPane( panel1 );
panel.setBounds(200,300,550,230);
panel.setBackground(Color.gray);
Container c=getContentPane();
c.setBackground(Color.gray);
c.setLayout(null);
sel.setBounds(210,290,50,30);
l.setBounds(330,440,200,20);
l.setFont(new Font("convecta",Font.BOLD,16));
l.setForeground(Color.black);
l1.setBounds(230,330,200,20);
l1.setFont(new Font("convecta",Font.BOLD,16));
l1.setForeground(Color.black);
l2.setBounds(230,360,200,20);
l2.setFont(new Font("convecta",Font.BOLD,16));
l2.setForeground(Color.black);
l3.setBounds(230,390,200,20);
l3.setFont(new Font("convecta",Font.BOLD,16));
l3.setForeground(Color.black);
tf.setBounds(540,440,30,20);
tf.setFont(new Font("convecta",Font.BOLD,16));
ok.setBounds(580,440,60,20);
ok.setFont(new Font("convecta",Font.BOLD,16));
c.add(sel);
c.add(l);c.add(ok);c.add(tf);
c.add(l1);c.add(l2);c.add(l3);
tf.requestFocus();
tf.addNotify();
ok.addActionListener(this);
c.setBackground(Color.lightGray);
if(border_type.equals("Titled"))
c.add(panel);
panel.setBorder(border);
repaint();
setVisible(true);
String s=tf.getText();
i=Integer.parseInt(s);
if(i==1&&(e.getSource()==ok))
else
if(i==2&&(e.getSource()==ok))
else
if(i==3&&(e.getSource()==ok))
}//end of actionPerformed.
new Option();
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import javax.swing.border.*;
import java.util.*;
JLabel nl,np,stl,stp,etl,etp,desl,desp,detl,prel,prep;
JTextArea ta;
JButton close,feed,submit,postp,dchange,atten;
String msg,oname,pref;
int idn,d,m,y,descnum;
String s3=null;
JLabel p1,p2,pp1,pp2,p3,p4,dl,ml,yl;
JComboBox pd,pm,py,psh1,psm1,psh2,psm2;
JPanel panell;
String border_type="Line";
String
year[]={"2000","2001","2002","2003","2004","2005","2006","2007","2
008","2009","2010","2011","2012","2013","2014","2015"};
String
month[]={"01","02","03","04","05","06","07","08","09","10","11","12"}
;
String
date[]={"01","02","03","04","05","06","07","08","09","10","11","12","1
3","14","15","16","17","18","19","20","21","22","23","24","25","26","2
7","28","29","30","31"};
int ch=0;
Time sti,eti;
public details()
setTitle("Details");
setSize(415,420);
Container c=getContentPane();
c.setLayout(null);
move(200,85);
nl =new JLabel("NAME:");
nl.setForeground(Color.black);
np =new JLabel();
np.setForeground(Color.black);
stl.setForeground(Color.black);
stp.setForeground(Color.black);
etl.setForeground(Color.black);
etp.setForeground(Color.black);
desl.setForeground(Color.black);
desp.setForeground(Color.black);
detl.setForeground(Color.black);
ta =new JTextArea(30,30);
ta.setEditable(false);
dchange=new JButton("ChangeDetails");
atten=new JButton("Attended");
prel.setForeground(Color.black);
prep.setForeground(Color.black);
p1=new JLabel("Hr");
p1.setForeground(Color.black);
p2=new JLabel("Mn");
p2.setForeground(Color.black);
pp1=new JLabel("Hr");
pp1.setForeground(Color.black);
pp2=new JLabel("Mn");
pp2.setForeground(Color.black);
dl=new JLabel("DD");
ml=new JLabel("MM");
yl=new JLabel("YY");
dl.setForeground(Color.black);
ml.setForeground(Color.black);
yl.setForeground(Color.black);
p3.setForeground(Color.black);
pd=new JComboBox(date);
pm=new JComboBox(month);
py=new JComboBox(year);
psh1=new JComboBox(hours);
psm1=new JComboBox(minits);
psh2=new JComboBox(hours);
psm2=new JComboBox(minits);
p3.setBounds(30,50,100,20);
dl.setBounds(125,30,30,20);
pd.setBounds(120,50,50,20);
ml.setBounds(185,30,30,20);
pm.setBounds(172,50,50,20);
yl.setBounds(245,30,30,20);
py.setBounds(222,50,60,20);
p1.setBounds(125,70,30,20);
psh1.setBounds(120,90,50,20);
p2.setBounds(180,70,30,20);
psm1.setBounds(170,90,50,20);
pp1.setBounds(305,70,30,20);
psh2.setBounds(300,90,50,20);
pp2.setBounds(365,70,30,20);
psm2.setBounds(350,90,50,20);
nl.setBounds(30,10,80,20);
np.setBounds(120,10,100,20);
stl.setBounds(30,90,100,20);
stp.setBounds(90,90,100,20);
etl.setBounds(240,90,100,20);
etp.setBounds(295,90,100,20);
desl.setBounds(30,110,130,20);
desp.setBounds(180,110,130,20);
detl.setBounds(30,170,120,20);
prel.setBounds(30,140,120,20);
prep.setBounds(180,140,120,20);
ta.setBounds(110,170,260,60);
feed.setBounds(120,250,100,20);
submit.setBounds(245,322,80,20);
postp.setBounds(230,250,120,20);
dchange.setBounds(230,273,120,20);
atten.setBounds(230,297,120,20);
close.setBounds(200,345,70,20);
c.add(nl);c.add(np);c.add(stl);
c.add(stp);c.add(etl);c.add(etp);
c.add(desl);c.add(desp);c.add(prel);
c.add(prep);c.add(detl);
c.add(pp1);c.add(pp2);c.add(ta);c.add(dl);
c.add(ml);c.add(yl);c.add(close);
c.add(feed);c.add(submit);c.add(postp);
c.add(p1);c.add(p2);c.add(p3);
c.add(pd);c.add(pm);c.add(py);
c.add(psh1);c.add(psm1);c.add(psh2);
c.add(psm2);c.add(dchange);
c.add(atten);//c.add(ta);
postp.setVisible(false);
atten.setVisible(false);
dchange.setVisible(false);
p3.setVisible(false);
pd.setVisible(false);
pm.setVisible(false);
py.setVisible(false);
psh1.setVisible(false);
psm1.setVisible(false);
psh2.setVisible(false);
psm2.setVisible(false);
submit.setVisible(false);
p1.setVisible(false);
p2.setVisible(false);
pp1.setVisible(false);
pp2.setVisible(false);
dl.setVisible(false);
ml.setVisible(false);
yl.setVisible(false);
close.addActionListener(this);
feed.addActionListener(this);
submit.addActionListener(this);
dchange.addActionListener(this);
postp.addActionListener(this);
atten.addActionListener(this);
panell=new JPanel();
panell.setBounds(110,240,260,117);
panell.setBackground(Color.gray);
if(border_type.equals("Line"))
c.add(panell);
panell.setBorder(border);
repaint();
setVisible(true);
msg=msg1;
oname=oname1;
idn=id;
d=date;m=month;
y=year;
System.out.println("msg="+msg);
String detail=null;
String s1=msg.substring(0,2);
int t1=Integer.parseInt(s1);
String s11=msg.substring(3,5);
int t11=Integer.parseInt(s11);
String s2=msg.substring(10,12);
int t2=Integer.parseInt(s2);
String s21=msg.substring(13,15);
int t21=Integer.parseInt(s21);
s3=msg.substring(19,msg.length());
ResultSet rs;
try
Class
cfn=Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection
con=DriverManager.getConnection("Jdbc:Odbc:pro");
Statement st=con.createStatement();
while(rs.next())
descnum=rs.getInt("descno");
pref=rs.getString("preference");
detail=rs.getString("details");
} con.close();
catch(Exception ec)
{ System.out.println(""+ec); }
np.setText(oname);
stp.setText(""+st1);
etp.setText(""+et1);
prep.setText(""+pref);
desp.setText(""+s3);
ta.setText(detail);
if(ae.getSource()==close)
this.setVisible(false);
else
if(ae.getSource()==feed)
postp.setVisible(true);
dchange.setVisible(true);
submit.setVisible(true);
atten.setVisible(true);
else
if(ae.getSource()==postp)
p3.setVisible(true);
pd.setVisible(true);
pm.setVisible(true);
py.setVisible(true);
psh1.setVisible(true);
psm1.setVisible(true);
psh2.setVisible(true);
psm2.setVisible(true);
p1.setVisible(true);
p2.setVisible(true);
pp1.setVisible(true);
pp2.setVisible(true);
dl.setVisible(true);
ml.setVisible(true);
yl.setVisible(true);
stp.setVisible(false);
etp.setVisible(false);
ch=1;
else
if(ae.getSource()==atten)
ch=3;
else
if(ae.getSource()==dchange)
ta.setEditable(true);
ch=2;
else
if(ae.getSource()==submit)
int d1 =Integer.parseInt((String)pd.getSelectedItem());
int m1 =Integer.parseInt((String)pm.getSelectedItem());
int y1 =Integer.parseInt((String)py.getSelectedItem());
int sh=Integer.parseInt((String)psh1.getSelectedItem());
int sm=Integer.parseInt((String)psm1.getSelectedItem());
String st=""+sh+":"+sm+"";
int eh=Integer.parseInt((String)psh2.getSelectedItem());
int em=Integer.parseInt((String)psm2.getSelectedItem());
String et=""+eh+":"+em+"";
String post="PostPone";
String fb="Attended";
int uid[];
int r;
try
Class cfn=Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection
con=DriverManager.getConnection("Jdbc:Odbc:pro");
Statement sta=con.createStatement();
while(rs.next())
int id=rs.getInt("idno");
vm.addElement(""+id);
Enumeration enum=vm.elements();
uid=new int[vm.size()];
int p=0;
while(enum.hasMoreElements())
int ll=Integer.parseInt((String)enum.nextElement());
uid[p]=ll;
p++;
for(int i=0;i<uid.length;i++)
if(ch==2)
else //idn
if(ch==3)
else
if(ch==1)
con.close();
catch(Exception ec)
System.out.println(""+ec);
boolean check1=false;
Time stim,etim;
try
Class cfn1=Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection
con1=DriverManager.getConnection("Jdbc:Odbc:pro");
Statement st2=con1.createStatement( );
while(rs.next())
stim=rs.getTime("stime");
etim=rs.getTime("etime");
int i=stim.compareTo(sti);
int j=sti.compareTo(etim);
int a=stim.compareTo(eti);
int b=eti.compareTo(etim);
if( (i==0)&&(b==0) )
check1=true;
check1=true;
con1.close();
catch(Exception ec)
System.out.println(""+ec);
if(check1)
else
value=1;
}*/
new details();
}*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.sql.*;
Runtime r;
JLabel l;
JComboBox cb;
JButton go;
String selectedname;
public uinf()
setTitle("Selection Of Employee");
setSize(500,400);
move(120,100);
cb=new JComboBox();
go=new JButton("GO");
Container c=getContentPane();
c.setLayout(null);
l.setBounds(75,40,420,20);
l.setFont(new Font("convecta",Font.BOLD,16));
l.setForeground(Color.black);
cb.setBounds(95,150,150,25);
cb.setFont(new Font("convecta",Font.BOLD,16));
go.setBounds(250,150,52,26);
go.setFont(new Font("convecta",Font.BOLD,12));
go.setForeground(Color.black);
c.add(cb);c.add(l);c.add(go);
setVisible(true);
appendusers();
go.addActionListener(this);
try
Class cc=Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:pro");
Statement st=con.createStatement();
while(rs.next())
String name=rs.getString("l_name");
cb.addItem(name);
con.close();
catch(Exception ee)
System.out.println(" "+ee);
}//end of appendusers.
Object o=ae.getSource();
if(o==go)
selectedname=(String)cb.getSelectedItem();
td.senditems(selectedname);
td.method();
td.display();
this.setVisible(false);
}//end of actionPerformed.
new uinf();
} */
This form displays all modules in the project and helps to choose our own
choice
In the login is successful next the supervisor provided with list of the
employees in the organization supervisor selects one of the Employee and
fixes his appointments
DESCRIPTION:
DESCRIPTION
DESCRIPTION:
DESCRIPTION:
DESCRIPTION:
DESCRIPTION:
DESCRIPTION:
9.TEST CASES
S Observed Status
r behavior P = Passed
. Input Expected Behavior F = Failed
N
o
Enter Wrong user Error should be
name and displayed as a -do- P
1 password for message
Employee
Create New
employee from the New employee form -do- P
3 options Should be Displayed
TESTING
CORRECTIVE MAINTENANCE
This acts to correct errors that are uncovered after the software is in
use.
11.CONCLUSION