An analysis report on payroll system with diagrams is the 2nd most visited article. As per visitor’s interest I am writing this article to help you technically design your own payroll system.
I am not aware what computer language you prefer. So attaching source code for sample payroll system in maximum of languages. This is just for your reference and ideas. So you don’t leave any functionality by mistake while designing the whole system. It’ll also help you to complete your payroll system project in less time. And will give you an idea about screen designing.
Visual Basic .net

Account information
username: admin
password: admin
Java applet
Source code
import java.io.*;
import java.awt.*;
import java.awt.Color.*;
import java.awt.event.*;
import java.applet.*;
/*<applet code=train2.class height=300 width=600></applet>*/
public class train2 extends Applet implements
ActionListener,ItemListener
{
Label name,amount,seats,number;
TextField na,am,sts,nr;
TextArea t;
Choice css;
Checkbox si,sr;
CheckboxGroup g;
Button b,cancel;
int s,c,d;
int n1=400;
int n2=250;
int n3=100;
public void init()
{
setBackground(Color.yellow);
setForeground(Color.red);
setLayout(new FlowLayout());
na=new TextField(20);
am=new TextField(20);
sts=new TextField(20);
nr=new TextField(20);
name=new Label("NAME");
amount=new Label("AMOUNT");
seats=new Label("SEATS");
number=new Label("REQUIRED NO OF SEATS");
css=new Choice();
css.add("A.C SLEEPER");
css.add("FIRST CLASS");
css.add("SECOND CLASS");
t=new TextArea(40,45);
g=new CheckboxGroup();
si=new Checkbox("SATAPTI",g,false);
sr=new Checkbox("SABARI",g,false);
b=new Button("SUBMIT");
cancel=new Button("CANCEL");
add(name);
add(na);
add(seats);
add(sts);
add(number);
add(nr);
add(si);
add(sr);
add(css);
add(b);
add(amount);
add(am);
add(t);
add(cancel);
css.addItemListener(this);
b.addActionListener(this);
si.addItemListener (this);
sr.addItemListener (this);
}
public void actionPerformed(ActionEvent ae)
{
if(b.getActionCommand().equals("SUBMIT"))
{
d=Integer.parseInt(nr.getText());
s=(Integer.parseInt(sts.getText()))-d;
if(css.getSelectedItem().equals("A.C SLEEPER"))
{
am.setText("400");
}
else if(css.getSelectedItem().equals("FIRST CLASS"))
{
am.setText("250");
}
else
{
am.setText("100");
}
}
c=((Integer.parseInt(am.getText()))*(Integer.parseInt(nr.getText())));
t.setText("NAME:"+na.getText()+"
"+"After reservation total no.of
seats are:"
+s+"
"+"Train name
:"+g.getSelectedCheckbox().getLabel()+"
"+"Class:"+
css.getSelectedItem()+ "Total number of Rs :"+c);
if(cancel.getActionCommand().equals("CANCEL"))
{
repaint();
}
}
public void itemStateChanged(ItemEvent ie)
{
}
}
import java.io.*;
import java.awt.*;
import java.awt.Color.*;
import java.awt.event.*;
import java.applet.*;
/*<applet code=train2.class height=300 width=600></applet>*/
public class train2 extends Applet implements
ActionListener,ItemListener
{
Label name,amount,seats,number;
TextField na,am,sts,nr;
TextArea t;
Choice css;
Checkbox si,sr;
CheckboxGroup g;
Button b,cancel;
int s,c,d;
int n1=400;
int n2=250;
int n3=100;
public void init()
{
setBackground(Color.yellow);
setForeground(Color.red);
setLayout(new FlowLayout());
na=new TextField(20);
am=new TextField(20);
sts=new TextField(20);
nr=new TextField(20);
name=new Label("NAME");
amount=new Label("AMOUNT");
seats=new Label("SEATS");
number=new Label("REQUIRED NO OF SEATS");
css=new Choice();
css.add("A.C SLEEPER");
css.add("FIRST CLASS");
css.add("SECOND CLASS");
t=new TextArea(40,45);
g=new CheckboxGroup();
si=new Checkbox("SATAPTI",g,false);
sr=new Checkbox("SABARI",g,false);
b=new Button("SUBMIT");
cancel=new Button("CANCEL");
add(name);
add(na);
add(seats);
add(sts);
add(number);
add(nr);
add(si);
add(sr);
add(css);
add(b);
add(amount);
add(am);
add(t);
add(cancel);
css.addItemListener(this);
b.addActionListener(this);
si.addItemListener (this);
sr.addItemListener (this);
}
public void actionPerformed(ActionEvent ae)
{
if(b.getActionCommand().equals("SUBMIT"))
{
d=Integer.parseInt(nr.getText());
s=(Integer.parseInt(sts.getText()))-d;
if(css.getSelectedItem().equals("A.C SLEEPER"))
{
am.setText("400");
}
else if(css.getSelectedItem().equals("FIRST CLASS"))
{
am.setText("250");
}
else
{
am.setText("100");
}
}
c=((Integer.parseInt(am.getText()))*(Integer.parseInt(nr.getText())));
t.setText("NAME:"+na.getText()+"
"+"After reservation total no.of
seats are:"
+s+"
"+"Train name
:"+g.getSelectedCheckbox().getLabel()+"
"+"Class:"+
css.getSelectedItem()+ "Total number of Rs :"+c);
if(cancel.getActionCommand().equals("CANCEL"))
{
repaint();
}
}
public void itemStateChanged(ItemEvent ie)
{
}
}
Please rescan the downloaded files because I afraid from hackers before GOD
Let me know by your comments if you need more screen shots, source code or something else that can help you.
Amit Gupta
Hey! this is Amit Gupta (amty). By profession, I am a Software Eng. And teaching is my passion.
Sometimes I am a teacher, as you can see many technical tutorials on my site, sometimes I am a poet, And sometime just a friend of friends...
lhyn aniel
25 Jan, 2013
can i ask of some codes for a payroll system for my thesis….? it would be a big help for me…
thanks,
lhyn
Amit Gupta
5 Feb, 2013
are you looking for some projects in payroll or you are facing problem somewhere?