📄 stipend.java
字号:
package com.buat.stipend;
import java.sql.Date;
public class Stipend {
private int id=0;
private int employeeid=0;
private float basic=0;
private float eat=0;
private float house=0;
private float duty=0;
private float tax=0;
private float assistance=0;
private float punishment=0;
private Date granttime;
private float total=0;
public int getId() {
return id;
}
public Stipend() {
super();
}
public void setId(int id) {
this.id = id;
}
public int getEmployeeid() {
return employeeid;
}
public void setEmployeeid(int employeeid) {
this.employeeid = employeeid;
}
public float getBasic() {
return basic;
}
public void setBasic(float basic) {
this.basic = basic;
}
public float getEat() {
return eat;
}
public void setEat(float eat) {
this.eat = eat;
}
public float getHouse() {
return house;
}
public void setHouse(float house) {
this.house = house;
}
public float getDuty() {
return duty;
}
public void setDuty(float duty) {
this.duty = duty;
}
public float getTax() {
return tax;
}
public void setTax(float tax) {
this.tax = tax;
}
public float getAssistance() {
return assistance;
}
public void setAssistance(float assistance) {
this.assistance = assistance;
}
public float getPunishment() {
return punishment;
}
public void setPunishment(float punishment) {
this.punishment = punishment;
}
public Date getGranttime() {
return granttime;
}
public void setGranttime(Date granttime) {
this.granttime = granttime;
}
public float getTotal() {
total = this.basic+this.eat+this.house+this.duty - this.tax+this.assistance-this.punishment;
return total;
}
public void setTotal(float total) {
this.total = this.basic+this.eat+this.house+this.duty-this.tax+this.assistance-this.punishment;
}
public Stipend(int employeeid, float basic, float eat, float house,
float duty, float tax, float assistance, float punishment,
Date granttime, float total) {
super();
this.employeeid = employeeid;
this.basic = basic;
this.eat = eat;
this.house = house;
this.duty = duty;
this.tax = tax;
this.assistance = assistance;
this.punishment = punishment;
this.granttime = granttime;
this.total = total;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -