95 lines
2.3 KiB
Java
95 lines
2.3 KiB
Java
|
|
public class EmployeeData {
|
|
private String idEmployee;
|
|
private String nmEmployee;
|
|
private String knEmployee;
|
|
private String mailAddress;
|
|
private String password;
|
|
private String idDepartment;
|
|
|
|
|
|
public String getIdEmployee() {
|
|
return idEmployee;
|
|
}
|
|
|
|
public void setIdEmployee(String idEmployee) {
|
|
this.idEmployee = idEmployee;
|
|
}
|
|
|
|
public String getNmEmployee() {
|
|
return nmEmployee;
|
|
}
|
|
|
|
public void setNmEmployee(String nmEmployee) {
|
|
this.nmEmployee = nmEmployee;
|
|
}
|
|
|
|
public String getKnEmployee() {
|
|
return knEmployee;
|
|
}
|
|
|
|
public void setKnEmployee(String knEmployee) {
|
|
this.knEmployee = knEmployee;
|
|
}
|
|
|
|
public String getMailAddress() {
|
|
return mailAddress;
|
|
}
|
|
|
|
public void setMailAddress(String mailAddress) {
|
|
this.mailAddress = mailAddress;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
|
|
public String getIdDepartment() {
|
|
return idDepartment;
|
|
}
|
|
|
|
public void setIdDepartment(String idDepartment) {
|
|
this.idDepartment = idDepartment;
|
|
}
|
|
private static int empCount = 0;
|
|
|
|
|
|
public void showInfo() {
|
|
System.out.println(this.idEmployee + "\t" + this.nmEmployee + this.knEmployee + this.mailAddress + this.password
|
|
+ this.idDepartment);
|
|
// System.out.println("社員ID: " + this.getIdEmployee());
|
|
// System.out.println("社員氏名: " + this.getNmEmployee());
|
|
// System.out.println("フリガナ: " + this.getKnEmployee());
|
|
// System.out.println("メールアドレス: " + this.getMailAddress());
|
|
// System.out.println("パスワード: " + this.getPassword());
|
|
// System.out.println("部署ID: " + this.getIdDepartment());
|
|
}
|
|
public EmployeeData() {
|
|
empCount++;
|
|
|
|
}
|
|
public EmployeeData(String idEmployee, String nmEmployee, String knEmployee, String mailAddress, String password, String idDepartment) {
|
|
this.setIdEmployee(idEmployee);
|
|
this.setNmEmployee(nmEmployee);
|
|
this.setKnEmployee(knEmployee);
|
|
this.setMailAddress(mailAddress);
|
|
this.setPassword(password);
|
|
this.setIdDepartment(idDepartment);
|
|
empCount++;
|
|
|
|
}
|
|
public static int getEmpCount() {
|
|
|
|
return empCount;
|
|
}
|
|
|
|
// boolean isMatchId(String id) { //stept 7
|
|
// return this.idEmployee.equals(id);
|
|
//
|
|
// }
|
|
}
|