Stept 7 Done

This commit is contained in:
2026-09-15 15:28:42 +09:00
parent eacd21df50
commit 3811f93f39
8 changed files with 333 additions and 117 deletions

View File

@@ -1,19 +1,94 @@
public class EmployeeData {
String idEmployee;
String nmEmployee;
String knEmployee;
String mailAddress;
String password;
String idDepartment;
private String idEmployee;
private String nmEmployee;
private String knEmployee;
private String mailAddress;
private String password;
private String idDepartment;
void showInfo() {
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);
}
// boolean isMatchId(String id) { //stept 7
// return this.idEmployee.equals(id);
//
// }
}