Compare commits
32 Commits
5fb1c2fe52
...
s-ikeda
| Author | SHA1 | Date | |
|---|---|---|---|
| 15d510df3b | |||
| 43f91b4116 | |||
| f091771efc | |||
| bb9fdcca5e | |||
| ba81a9b50f | |||
| b6af343b77 | |||
| 7e6bf7c80f | |||
| d26d5c7b0b | |||
| d158c0aa17 | |||
| 3b4ec1f78b | |||
|
|
57a499dea3 | ||
|
|
e9bc560cfa | ||
| 5ab1abde4d | |||
| 5f206740cc | |||
|
|
83ddd7d3d5 | ||
| 00ca28736d | |||
|
|
a3aab8ab6b | ||
|
|
7871635ffe | ||
| d119c26b64 | |||
|
|
1becc3b196 | ||
|
|
101296640c | ||
| a26978a690 | |||
| 580850be5a | |||
| 2761953159 | |||
| 37e9cb3be1 | |||
| b5a4317cba | |||
| d8b29c784b | |||
|
|
2659bfae11 | ||
| 1b26da2ed4 | |||
| f5488495bc | |||
| a3f2c47f89 | |||
|
|
65e5ab418d |
11
.project
Normal file
11
.project
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>last-group-delevelopment-team1</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
||||||
@@ -122,3 +122,5 @@
|
|||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
//package com.example.demo.controller;
|
||||||
|
//
|
||||||
|
//import java.util.logging.Level;
|
||||||
|
//import java.util.logging.Logger;
|
||||||
|
//
|
||||||
|
//import jakarta.servlet.http.HttpSession;
|
||||||
|
//
|
||||||
|
//import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
//import org.springframework.stereotype.Controller;
|
||||||
|
//import org.springframework.ui.Model;
|
||||||
|
//import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
|
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
//import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
|
//
|
||||||
|
//import com.example.demo.form.ApprovalForm;
|
||||||
|
//
|
||||||
|
///**
|
||||||
|
// * 書籍貸出承認確認用のコントローラ
|
||||||
|
// */
|
||||||
|
//@Controller
|
||||||
|
//public class ApprovalConfirmController {
|
||||||
|
//
|
||||||
|
// // ログ出力用インスタンス
|
||||||
|
// private final static Logger LOGGER = Logger.getLogger(ApprovalConfirmController.class.getName());
|
||||||
|
//
|
||||||
|
// // エラーメッセージ用の定数フィールド
|
||||||
|
// private final static String SEVERE_ERROR_MESSAGE = "エラーが発生しました!";
|
||||||
|
//
|
||||||
|
// HttpSession httpSession;
|
||||||
|
// ApprovalForm approvalform;
|
||||||
|
//
|
||||||
|
// @Autowired
|
||||||
|
// public ApprovalConfirmController(
|
||||||
|
// HttpSession httpSession,
|
||||||
|
// ApprovalForm approvalform) {
|
||||||
|
// this.httpSession = httpSession;
|
||||||
|
// this.approvalform = approvalform;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// @ModelAttribute
|
||||||
|
// public ApprovalForm approvalForm() {
|
||||||
|
// return new ApprovalForm();
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// @RequestMapping(value = "/ApprovalConfirm", method = RequestMethod.POST)
|
||||||
|
// public String AprrvalForm(ApprovalForm ApprovalForm, Model model) {
|
||||||
|
//
|
||||||
|
// try {
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// return;
|
||||||
|
// } catch (Exception e) {
|
||||||
|
// // ログイン情報の破棄
|
||||||
|
// httpSession.invalidate();
|
||||||
|
//
|
||||||
|
// e.printStackTrace();
|
||||||
|
//
|
||||||
|
// // エラーログ出力
|
||||||
|
// LOGGER.log(Level.SEVERE, SEVERE_ERROR_MESSAGE, e);
|
||||||
|
// // エラー画面遷移
|
||||||
|
// return "error";
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
package com.example.demo.controller;
|
|
||||||
|
|
||||||
public class a {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,123 @@
|
|||||||
package com.example.demo.entity;
|
package com.example.demo.entity;
|
||||||
|
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
|
||||||
|
import jakarta.persistence.Column;
|
||||||
|
import jakarta.persistence.Entity;
|
||||||
|
import jakarta.persistence.GeneratedValue;
|
||||||
|
import jakarta.persistence.GenerationType;
|
||||||
|
import jakarta.persistence.Id;
|
||||||
|
import jakarta.persistence.Table;
|
||||||
|
|
||||||
|
import org.springframework.data.annotation.LastModifiedDate;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
//テーブル名
|
||||||
|
@Table(name = "book_collection")
|
||||||
|
@Entity
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class Book_collectionEntity {
|
public class Book_collectionEntity {
|
||||||
|
|
||||||
|
|
||||||
|
//蔵書ID
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Column(name = "id_book", nullable = false)
|
||||||
|
private Integer idBook;
|
||||||
|
|
||||||
|
//ISBN
|
||||||
|
@Column(name = "isbn", nullable = false, length = 13)
|
||||||
|
private String isBn;
|
||||||
|
|
||||||
|
//書籍名
|
||||||
|
@Column(name = "nm_book", nullable = false, length = 50)
|
||||||
|
private String nmBook;
|
||||||
|
|
||||||
|
//書籍名よみ
|
||||||
|
@Column(name = "kn_book", nullable = true, length = 100)
|
||||||
|
private String knBook;
|
||||||
|
|
||||||
|
//出版社
|
||||||
|
@Column(name = "publisher", nullable = true, length = 50)
|
||||||
|
private String pubLisher;
|
||||||
|
|
||||||
|
//特記事項
|
||||||
|
@Column(name = "note text", nullable = true)
|
||||||
|
private String noteText;
|
||||||
|
|
||||||
|
//貸出フラグ -> charに変更する
|
||||||
|
@Column(name = "flg_lending", nullable = false, columnDefinition = "default 0")
|
||||||
|
private Character flgLending;
|
||||||
|
|
||||||
|
//更新者
|
||||||
|
@Column(name = "id_update", nullable = false)
|
||||||
|
private Integer idUpdate;
|
||||||
|
|
||||||
|
//更新日
|
||||||
|
@Column(name = "date_update", nullable = false)
|
||||||
|
@LastModifiedDate
|
||||||
|
private Timestamp dateUpdate;
|
||||||
|
|
||||||
|
// public static Book_collection convertFrom(Book_collection book_collection) {
|
||||||
|
// // 値を既に持ったインスタンスの生成に、コンストラクタを使用するとこうなります。
|
||||||
|
// return new Book_collection Entity(
|
||||||
|
// book_colletion.getIdBook(),
|
||||||
|
// book_colletion.getisBn(),
|
||||||
|
// book_colletion.getnmBook(),
|
||||||
|
// book_colletion..getknBook(),
|
||||||
|
// book_colletion.getpublisher(),
|
||||||
|
// book_colletion.getnoteText(),
|
||||||
|
// book_colletion.getflgLending(),
|
||||||
|
// book_colletion.getidUpdate(),
|
||||||
|
// book_colletion.getdateUupdate()
|
||||||
|
// );
|
||||||
|
//
|
||||||
|
//}
|
||||||
|
//public static EmployeeEntity convertFrom(SearchConditionEmployee searchConditionEmployee) {
|
||||||
|
// EmployeeEntity employeeEntity = new EmployeeEntity();
|
||||||
|
//
|
||||||
|
// employeeEntity.setIdBook(searchConditionEmployee.getIdBook());
|
||||||
|
// employeeEntity.setisBn(searchConditionEmployee.getisBn());
|
||||||
|
// employeeEntity.setnmBook(searchConditionEmployee.getnmBook());
|
||||||
|
|
||||||
|
// employeeEntity.setknBook(searchConditionEmployee.knBook());
|
||||||
|
// employeeEntity.setpublisher(searchConditionEmployee.getpublisher());
|
||||||
|
// employeeEntity.setnoteText(searchConditionEmployee.getnoteText());
|
||||||
|
// employeeEntity.setflgLending(searchConditionEmployee.getflgLending());
|
||||||
|
// employeeEntity.setidUpdate(searchConditionEmployee.getidUpdate());
|
||||||
|
// employeeEntity.setdateUpdate(searchConditionEmployee.getdateUupdate());
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
//// public static List<book_collection> createbook_collectionList(List<EmployeeEntity> employeeEntityList) {
|
||||||
|
//// return employeeEntityList.stream().map(EmployeeEntity::createbook_collection).toList();
|
||||||
|
//// }
|
||||||
|
//
|
||||||
|
// List<book_collection> book_collectionList = new ArrayList<>();
|
||||||
|
// for(book_collectionEntity book_collectionEntity:employeeEntityList){
|
||||||
|
// book_collection employee = book_collectionEntity.createbook_collection(book_collectionEntity);
|
||||||
|
// book_collectionList.add(employee);
|
||||||
|
// }
|
||||||
|
// return employeeList;
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// public LoginUser createLoginUser() {
|
||||||
|
// // 値を既に持ったインスタンスの生成に、コンストラクタを使用するとこうなります。
|
||||||
|
// return new LoginUser(
|
||||||
|
// getidBook(),
|
||||||
|
// getisBn(),
|
||||||
|
// getnmBook(),
|
||||||
|
// getknBook(),
|
||||||
|
// getpublisher(),
|
||||||
|
// getnoteText(),
|
||||||
|
// getflgLending(),
|
||||||
|
// getidUpdate(),
|
||||||
|
// getdateUpdate()
|
||||||
|
// );
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import jakarta.persistence.GenerationType;
|
|||||||
import jakarta.persistence.Id;
|
import jakarta.persistence.Id;
|
||||||
|
|
||||||
import org.hibernate.annotations.Audited.Table;
|
import org.hibernate.annotations.Audited.Table;
|
||||||
|
import org.springframework.data.annotation.LastModifiedDate;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -20,6 +21,7 @@ import lombok.NoArgsConstructor;
|
|||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
|
||||||
public class Borrow_booksEntity {
|
public class Borrow_booksEntity {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -51,11 +53,8 @@ public class Borrow_booksEntity {
|
|||||||
/*
|
/*
|
||||||
* ステータス
|
* ステータス
|
||||||
* */
|
* */
|
||||||
@Column(name = "status", nullable = false)
|
@Column(name = "status", nullable = false, columnDefinition = "default 1")
|
||||||
private char 返却済 = 0;
|
private Character status;
|
||||||
private char 承認待 = 1;
|
|
||||||
private char 貸出中 = 2;
|
|
||||||
private char 却下 = 9;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 承認者
|
* 承認者
|
||||||
@@ -97,5 +96,6 @@ public class Borrow_booksEntity {
|
|||||||
* 更新日
|
* 更新日
|
||||||
* */
|
* */
|
||||||
@Column(name = "date_update", nullable = false)
|
@Column(name = "date_update", nullable = false)
|
||||||
|
@LastModifiedDate
|
||||||
private Timestamp dateUpdate;
|
private Timestamp dateUpdate;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,141 @@
|
|||||||
package com.example.demo.entity;
|
package com.example.demo.entity;
|
||||||
|
|
||||||
public class EmployeeEntity {
|
import java.security.Timestamp;
|
||||||
|
|
||||||
|
import jakarta.persistence.Column;
|
||||||
|
import jakarta.persistence.Entity;
|
||||||
|
import jakarta.persistence.GeneratedValue;
|
||||||
|
import jakarta.persistence.GenerationType;
|
||||||
|
import jakarta.persistence.Id;
|
||||||
|
import jakarta.persistence.Table;
|
||||||
|
|
||||||
|
import org.springframework.data.annotation.LastModifiedDate;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* EmployeeテーブルのEntity
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table(name = "employee")
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
|
||||||
|
public class EmployeeEntity {
|
||||||
|
/**
|
||||||
|
* 社員ID
|
||||||
|
*/
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Column(name = "id_employee", nullable = false)
|
||||||
|
private Integer idEmployee;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 社員名
|
||||||
|
*/
|
||||||
|
@Column(name = "nm_employee", nullable = false, length = 50)
|
||||||
|
private String nmEmployee;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 社員よみ
|
||||||
|
*/
|
||||||
|
@Column(name = "kn_employee", nullable = false, length = 100)
|
||||||
|
private String knEmployee;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* メールアドレス
|
||||||
|
*/
|
||||||
|
@Column(name = "mail_address", nullable = false, length = 256)
|
||||||
|
private String MailAddress;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* パスワード
|
||||||
|
*/
|
||||||
|
@Column(name = "password", nullable = false, length = 256)
|
||||||
|
private String Password;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 管理者フラグ
|
||||||
|
*/
|
||||||
|
@Column(name = "flg_admin", nullable = false)
|
||||||
|
private Character FlgAdmin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退職者フラグ
|
||||||
|
*/
|
||||||
|
@Column(name = "flg_retirement", nullable = false)
|
||||||
|
private Character FlgRetirement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新者
|
||||||
|
*/
|
||||||
|
@Column(name = "id_update", nullable = false)
|
||||||
|
private Integer idUpdate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新日
|
||||||
|
*/
|
||||||
|
@Column(name = "date_update", nullable = false)
|
||||||
|
@LastModifiedDate
|
||||||
|
private Timestamp dateUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// public static EmployeeEntity convertForm(Employee employee) {
|
||||||
|
// return new EmployeeEntity(
|
||||||
|
// employee.getIdEmployee(),
|
||||||
|
// employee.getnmEmployee(),
|
||||||
|
// employee.getknEmployee(),
|
||||||
|
// employee.getMailAddress(),
|
||||||
|
// employee.getPassword(),
|
||||||
|
// employee.getFlgAdmin(),
|
||||||
|
// employee.getFlgRetirement(),
|
||||||
|
// employee.getIdUpdate(),
|
||||||
|
// employee.getDateUpdate());
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public static EmployeeEntity convertFrom(SearchConditionEmployee searchConditionEmployee) {
|
||||||
|
// EmployeeEntity employeeEntity = new EmployeeEntity();
|
||||||
|
//
|
||||||
|
// employeeEntity.setIdEmployee(searchConditionEmployee.getIdEmployee());
|
||||||
|
// employeeEntity.setNmEmployee(searchConditionEmployee.getNmEmployee());
|
||||||
|
// employeeEntity.setKnEmployee(searchConditionEmployee.getKnEmployee());
|
||||||
|
// employeeEntity.setMailAddress(searchConditionEmployee.getMailAddress());
|
||||||
|
//
|
||||||
|
// return employeeEntity;
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public static Employee createEmployee(EmployeeEntity employeeEntity) {
|
||||||
|
// return new Employee(
|
||||||
|
// employeeEntity.getIdEmployee(),
|
||||||
|
// employeeEntity.getNmEmployee(),
|
||||||
|
// employeeEntity.getKnEmployee(),
|
||||||
|
// employeeEntity.getMailAddress(),
|
||||||
|
// employeeEntity.getPassword(),
|
||||||
|
// employeeEntity.getFlgAdmin(),
|
||||||
|
// employeeEntity.getFlgRetirement(),
|
||||||
|
// employeeEntity.getIdUpdate(),
|
||||||
|
// employeeEntity.getDateUpdate());
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public static List<Employee> createEmployeeList(List<EmployeeEntity> employeeEntityList) {
|
||||||
|
// return employeeEntityList.stream().map(EmployeeEntity::createEmployee).toList();
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public LoginUser createLoginUser() {
|
||||||
|
// getIdEmployee(),
|
||||||
|
// getNmEmployee(),
|
||||||
|
// getKnEmployee(),
|
||||||
|
// getMailAddress(),
|
||||||
|
// getPassword(),
|
||||||
|
// getFlgAdmin(),
|
||||||
|
// getFlgRetirement(),
|
||||||
|
// getIdUpdate(),
|
||||||
|
// getDateUpdate());
|
||||||
|
//}
|
||||||
|
//}
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
package com.example.demo.entity;
|
|
||||||
|
|
||||||
public class a {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.example.demo.repository;
|
package com.example.demo.repository;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@@ -8,4 +10,9 @@ import com.example.demo.entity.Borrow_booksEntity;
|
|||||||
@Repository
|
@Repository
|
||||||
public interface Borrow_BooksRepository extends JpaRepository<Borrow_booksEntity, Integer> {
|
public interface Borrow_BooksRepository extends JpaRepository<Borrow_booksEntity, Integer> {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 申請者IDで検索
|
||||||
|
* */
|
||||||
|
Optional<Borrow_booksEntity> findByIdApplicant(Integer idApplicant);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.example.demo.repository;
|
package com.example.demo.repository;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@@ -7,5 +9,6 @@ import com.example.demo.entity.EmployeeEntity;
|
|||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
public interface EmployeeRepository extends JpaRepository<EmployeeEntity, Integer> {
|
public interface EmployeeRepository extends JpaRepository<EmployeeEntity, Integer> {
|
||||||
|
Optional<EmployeeEntity> findByMailAddressAndPassword(String mailAddress, String password);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
//package com.example.demo.service.Impl;
|
||||||
|
//
|
||||||
|
//import java.util.List;
|
||||||
|
//
|
||||||
|
//import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
//import org.springframework.stereotype.Service;
|
||||||
|
//import org.springframework.transaction.annotation.Transactional;
|
||||||
|
//
|
||||||
|
//import com.example.demo.repository.Borrow_BooksRepository;
|
||||||
|
//import com.example.demo.service.ApprovalBorrowBooks;
|
||||||
|
//
|
||||||
|
//@Service
|
||||||
|
//@Transactional
|
||||||
|
//public class ApprovalBorrowBooksImpl implements ApprovalBorrowBooks {
|
||||||
|
//
|
||||||
|
// Borrow_BooksRepository borrowbooksRepository;
|
||||||
|
//
|
||||||
|
// @Autowired
|
||||||
|
// public ApprovalBorrowBooksImpl(Borrow_BooksRepository borrowbooksRepository) {
|
||||||
|
// this.borrowbooksRepository = borrowbooksRepository;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// /* 申請情報から全件取得
|
||||||
|
// * @return 取得した情報すべて
|
||||||
|
// */
|
||||||
|
// public List<???> selectAll() {
|
||||||
|
// return ???Entity.create???List(???Repository.findAll());
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//}
|
||||||
69
team1/src/main/resources/templates/applicationList.html
Normal file
69
team1/src/main/resources/templates/applicationList.html
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||||
|
<!-- 外部のスクリプトファイルを読み込む -->
|
||||||
|
<script th:src="@{/js/common.js}"></script>
|
||||||
|
<!-- CSSの読み込み -->
|
||||||
|
<link rel="stylesheet" th:href="@{/css/all.css}">
|
||||||
|
<link rel=stylesheet th:href="@{/css/style.css}" type="text/css">
|
||||||
|
<title>検索</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="rightSection">
|
||||||
|
<button class="logoutButton" onclick="logoutSubmit()">ログアウト</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="header-spacing"></div>
|
||||||
|
<a href="showMenu">メニューに戻る</a>
|
||||||
|
|
||||||
|
<div class="header-spacing"></div>
|
||||||
|
<h1><span>検索結果</span></h1>
|
||||||
|
|
||||||
|
<div class="header-spacing"></div>
|
||||||
|
<th:block th:if="${employeeInfoFormList != null and employeeInfoFormList.size() > 0}">
|
||||||
|
<!-- 検索結果が1件以上ある場合 -->
|
||||||
|
<table class="table-grid table-striped table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 100px;">申請ID</th>
|
||||||
|
<th style="width: 100px;">申請者名</th>
|
||||||
|
<th style="width: 100px;">書籍名</th>
|
||||||
|
<th style="width: 100px;">申請日</th>
|
||||||
|
<th style="width: 100px;">貸出日</th>
|
||||||
|
<th style="width: 100px;">返却予定日</th>
|
||||||
|
<th style="width: 100px;">操作</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr th:each="employeeInfoForm : ${employeeInfoFormList}">
|
||||||
|
<td th:text="${employeeInfoForm.idRequest}"></td>
|
||||||
|
<td th:text="${employeeInfoForm.nmApplicant}"></td>
|
||||||
|
<td th:text="${employeeInfoForm.nmBook}"></td>
|
||||||
|
<td th:text="${employeeInfoForm.dateRequest}"></td>
|
||||||
|
<td th:text="${employeeInfoForm.dateBorrow}"></td>
|
||||||
|
<td th:text="${employeeInfoForm.dateReturn}"></td>
|
||||||
|
<td th:text="${employeeInfoForm.dateRequest}"></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td>
|
||||||
|
<form action="/approve" method="get">
|
||||||
|
<input name="idRequest" th:value="${employeeInfoForm.idRequest}" type="hidden">
|
||||||
|
<input type="submit" value="承認">
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</th:block>
|
||||||
|
|
||||||
|
<th:block th:if="${employeeInfoFormList == null or employeeInfoFormList.size() == 0}">
|
||||||
|
<!-- 検索結果が0件の場合 -->
|
||||||
|
現在書籍貸出の申請はありません。
|
||||||
|
</th:block>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
141
team1/src/main/resources/templates/approvalConfirm.html
Normal file
141
team1/src/main/resources/templates/approvalConfirm.html
Normal file
@@ -0,0 +1,141 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html xmlns:th="http://www.thymeleaf.org">
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||||
|
<!-- 外部のスクリプトファイルを読み込む -->
|
||||||
|
<script th:src="@{/js/common.js}"></script>
|
||||||
|
<!-- CSSの読み込み -->
|
||||||
|
<link rel="stylesheet" th:href="@{/css/all.css}">
|
||||||
|
<link rel=stylesheet th:href="@{/css/style.css}" type="text/css">
|
||||||
|
<title>書籍貸出承認確認</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>登録内容確認
|
||||||
|
<div class="rightSection">
|
||||||
|
<span class="loginInfo">ログイン者名:<span th:text="${session.loginUser.nmEmployee}"></span></span>
|
||||||
|
<button class="logoutButton" onclick="logoutSubmit()">ログアウト</button>
|
||||||
|
</div>
|
||||||
|
</h1>
|
||||||
|
<!-- 変数名は変更したが、中身は変更していない -->
|
||||||
|
<!-- ボタンや遷移も手を付けていない -->
|
||||||
|
<form action="insertEmployee"
|
||||||
|
id="insertForm"
|
||||||
|
method="post"
|
||||||
|
th:object="${insertEmployeeForm}">
|
||||||
|
|
||||||
|
<div class="msgBox error" th:if="${messageError != null}">
|
||||||
|
<span class="error" th:each="message : ${messageError.message}" th:text="${message}"></span>
|
||||||
|
</div>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th class="header">申請ID</th>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input class="readOnly"
|
||||||
|
name="idRquest"
|
||||||
|
readonly="readonly"
|
||||||
|
type="text"
|
||||||
|
value="自動で設定されます"/>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="header">申請者名</th>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input class="readOnly"
|
||||||
|
name="nmEmployee"
|
||||||
|
readonly="readonly"
|
||||||
|
th:value="*{nmEmployee}"
|
||||||
|
type="text"/>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="header">申請日</th>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input class="readOnly"
|
||||||
|
name="dataRequest"
|
||||||
|
readonly="readonly"
|
||||||
|
th:value="*{dataRequest}"
|
||||||
|
type="text"/>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="header">ISBN</th>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input class="readOnly"
|
||||||
|
name="isBn"
|
||||||
|
readonly="readonly"
|
||||||
|
th:value="*{isBn}"
|
||||||
|
type="text"/>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="header">書籍名</th>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input class="readOnly"
|
||||||
|
name="nmBook"
|
||||||
|
readonly="readonly"
|
||||||
|
th:value="*{nmBook}"
|
||||||
|
type="text"/>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="header">出版社</th>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input class="readOnly"
|
||||||
|
name="publisher"
|
||||||
|
readonly="readonly"
|
||||||
|
th:value="*{publisher}"
|
||||||
|
type="text"/>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="header">特記事項</th>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input class="readOnly"
|
||||||
|
name="note"
|
||||||
|
readonly="readonly"
|
||||||
|
th:value="*{note}"
|
||||||
|
type="text"/>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="header">貸出日</th>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input class="readOnly"
|
||||||
|
name="dateBorrow"
|
||||||
|
readonly="readonly"
|
||||||
|
th:value="*{dateBorrow}"
|
||||||
|
type="text"/>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="header">返却予定日</th>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input class="readOnly"
|
||||||
|
name="dateScheduledReturn"
|
||||||
|
readonly="readonly"
|
||||||
|
th:value="*{date_scheduled_return}"
|
||||||
|
type="text"/>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user