parent
27e6fe7256
commit
5ec6d127d2
@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/Testfim.iml" filepath="$PROJECT_DIR$/Testfim.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/Testfim/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/Testfim/xml" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@ -0,0 +1,29 @@
|
||||
### IntelliJ IDEA ###
|
||||
out/
|
||||
!**/src/main/**/out/
|
||||
!**/src/test/**/out/
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
bin/
|
||||
!**/src/main/**/bin/
|
||||
!**/src/test/**/bin/
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/Testfim.iml" filepath="$PROJECT_DIR$/Testfim.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/xml" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@ -0,0 +1,15 @@
|
||||
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
|
||||
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
//TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
|
||||
// to see how IntelliJ IDEA suggests fixing it.
|
||||
System.out.printf("Hello and welcome!");
|
||||
|
||||
for (int i = 1; i <= 5; i++) {
|
||||
//TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
|
||||
// for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.
|
||||
System.out.println("i = " + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package com.lab.manager.entity;
|
||||
|
||||
/**
|
||||
* 实验室管理实体
|
||||
*/
|
||||
public class Lab {
|
||||
// 实验室ID
|
||||
private String labId;
|
||||
// 实验室名称
|
||||
private String labName;
|
||||
// 位置
|
||||
private String labLocation;
|
||||
// 状态(正常/维护)
|
||||
private String labStatus;
|
||||
|
||||
public Lab() {}
|
||||
|
||||
public Lab(String labId, String labName, String labLocation, String labStatus) {
|
||||
this.labId = labId;
|
||||
this.labName = labName;
|
||||
this.labLocation = labLocation;
|
||||
this.labStatus = labStatus;
|
||||
}
|
||||
|
||||
public String getLabId() { return labId; }
|
||||
public void setLabId(String labId) { this.labId = labId; }
|
||||
public String getLabName() { return labName; }
|
||||
public void setLabName(String labName) { this.labName = labName; }
|
||||
public String getLabLocation() { return labLocation; }
|
||||
public void setLabLocation(String labLocation) { this.labLocation = labLocation; }
|
||||
public String getLabStatus() { return labStatus; }
|
||||
public void setLabStatus(String labStatus) { this.labStatus = labStatus; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Lab{" +
|
||||
"labId='" + labId + '\'' +
|
||||
", labName='" + labName + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.lab.manager.entity;
|
||||
|
||||
/**
|
||||
* 材料类型管理实体
|
||||
*/
|
||||
public class MaterialType {
|
||||
// 类型ID
|
||||
private String typeId;
|
||||
// 类型名称(化学试剂/玻璃仪器/电子元件)
|
||||
private String typeName;
|
||||
// 类型描述
|
||||
private String typeDesc;
|
||||
|
||||
public MaterialType() {}
|
||||
|
||||
public MaterialType(String typeId, String typeName, String typeDesc) {
|
||||
this.typeId = typeId;
|
||||
this.typeName = typeName;
|
||||
this.typeDesc = typeDesc;
|
||||
}
|
||||
|
||||
public String getTypeId() { return typeId; }
|
||||
public void setTypeId(String typeId) { this.typeId = typeId; }
|
||||
public String getTypeName() { return typeName; }
|
||||
public void setTypeName(String typeName) { this.typeName = typeName; }
|
||||
public String getTypeDesc() { return typeDesc; }
|
||||
public void setTypeDesc(String typeDesc) { this.typeDesc = typeDesc; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MaterialType{" +
|
||||
"typeId='" + typeId + '\'' +
|
||||
", typeName='" + typeName + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.lab.manager.entity;
|
||||
|
||||
/**
|
||||
* 用户管理实体
|
||||
*/
|
||||
public class User {
|
||||
// 用户ID
|
||||
private String userId;
|
||||
// 用户名
|
||||
private String userName;
|
||||
// 密码
|
||||
private String userPwd;
|
||||
// 角色(管理员/教师/学生)
|
||||
private String userRole;
|
||||
// 联系方式
|
||||
private String userPhone;
|
||||
|
||||
// 无参构造
|
||||
public User() {}
|
||||
|
||||
// 全参构造
|
||||
public User(String userId, String userName, String userPwd, String userRole, String userPhone) {
|
||||
this.userId = userId;
|
||||
this.userName = userName;
|
||||
this.userPwd = userPwd;
|
||||
this.userRole = userRole;
|
||||
this.userPhone = userPhone;
|
||||
}
|
||||
|
||||
// getter & setter
|
||||
public String getUserId() { return userId; }
|
||||
public void setUserId(String userId) { this.userId = userId; }
|
||||
public String getUserName() { return userName; }
|
||||
public void setUserName(String userName) { this.userName = userName; }
|
||||
public String getUserPwd() { return userPwd; }
|
||||
public void setUserPwd(String userPwd) { this.userPwd = userPwd; }
|
||||
public String getUserRole() { return userRole; }
|
||||
public void setUserRole(String userRole) { this.userRole = userRole; }
|
||||
public String getUserPhone() { return userPhone; }
|
||||
public void setUserPhone(String userPhone) { this.userPhone = userPhone; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "User{" +
|
||||
"userId='" + userId + '\'' +
|
||||
", userName='" + userName + '\'' +
|
||||
", userRole='" + userRole + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<!-- 1. 用户管理 -->
|
||||
<bean id="user" class="com.lab.manager.entity.User">
|
||||
<property name="userId" value="U001"/>
|
||||
<property name="userName" value="张三"/>
|
||||
<property name="userPwd" value="123456"/>
|
||||
<property name="userRole" value="教师"/>
|
||||
<property name="userPhone" value="13800138000"/>
|
||||
</bean>
|
||||
|
||||
<!-- 2. 实验室管理 -->
|
||||
<bean id="lab" class="com.lab.manager.entity.Lab">
|
||||
<property name="labId" value="L001"/>
|
||||
<property name="labName" value="化学实验室"/>
|
||||
<property name="labLocation" value="实验楼302"/>
|
||||
<property name="labStatus" value="正常"/>
|
||||
</bean>
|
||||
|
||||
<!-- 3. 材料类型管理 -->
|
||||
<bean id="materialType" class="com.lab.manager.entity.MaterialType">
|
||||
<property name="typeId" value="T001"/>
|
||||
<property name="typeName" value="化学试剂"/>
|
||||
<property name="typeDesc" value="液体实验试剂"/>
|
||||
</bean>
|
||||
|
||||
<!-- 4. 材料管理(关联:材料类型 + 实验室) -->
|
||||
<bean id="material" class="com.lab.manager.entity.Material">
|
||||
<property name="materialId" value="M001"/>
|
||||
<property name="materialName" value="无水乙醇"/>
|
||||
<property name="materialSpec" value="500ml"/>
|
||||
<property name="materialStock" value="100"/>
|
||||
<property name="materialType" ref="materialType"/>
|
||||
<property name="materialLab" ref="lab"/>
|
||||
</bean>
|
||||
|
||||
<!-- 5. 材料维护管理(关联:材料) -->
|
||||
<bean id="maintain" class="com.lab.manager.entity.Maintain">
|
||||
<property name="maintainId" value="Mt001"/>
|
||||
<property name="maintainTime" value="2025-06-01"/>
|
||||
<property name="maintainContent" value="更换标签"/>
|
||||
<property name="maintainPerson" value="管理员"/>
|
||||
<property name="material" ref="material"/>
|
||||
</bean>
|
||||
|
||||
<!-- 6. 材料报废管理(关联:材料) -->
|
||||
<bean id="scrap" class="com.lab.manager.entity.Scrap">
|
||||
<property name="scrapId" value="Sp001"/>
|
||||
<property name="scrapTime" value="2025-06-02"/>
|
||||
<property name="scrapReason" value="过期失效"/>
|
||||
<property name="scrapCount" value="5"/>
|
||||
<property name="material" ref="material"/>
|
||||
</bean>
|
||||
|
||||
<!-- 7. 预约管理(关联:用户 + 实验室) -->
|
||||
<bean id="reserve" class="com.lab.manager.entity.Reserve">
|
||||
<property name="reserveId" value="R001"/>
|
||||
<property name="reserveTime" value="2025-06-03"/>
|
||||
<property name="reserveUse" value="教学实验"/>
|
||||
<property name="reserveStatus" value="已通过"/>
|
||||
<property name="user" ref="user"/>
|
||||
<property name="lab" ref="lab"/>
|
||||
</bean>
|
||||
|
||||
<!-- 8. 材料出入库管理(关联:材料) -->
|
||||
<bean id="stock" class="com.lab.manager.entity.Stock">
|
||||
<property name="stockId" value="St001"/>
|
||||
<property name="stockType" value="入库"/>
|
||||
<property name="stockTime" value="2025-06-01"/>
|
||||
<property name="stockCount" value="50"/>
|
||||
<property name="stockPerson" value="管理员"/>
|
||||
<property name="material" ref="material"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
Binary file not shown.
@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<!-- 1. 用户管理 -->
|
||||
<bean id="user" class="com.lab.manager.entity.User">
|
||||
<property name="userId" value="U001"/>
|
||||
<property name="userName" value="张三"/>
|
||||
<property name="userPwd" value="123456"/>
|
||||
<property name="userRole" value="教师"/>
|
||||
<property name="userPhone" value="13800138000"/>
|
||||
</bean>
|
||||
|
||||
<!-- 2. 实验室管理 -->
|
||||
<bean id="lab" class="com.lab.manager.entity.Lab">
|
||||
<property name="labId" value="L001"/>
|
||||
<property name="labName" value="化学实验室"/>
|
||||
<property name="labLocation" value="实验楼302"/>
|
||||
<property name="labStatus" value="正常"/>
|
||||
</bean>
|
||||
|
||||
<!-- 3. 材料类型管理 -->
|
||||
<bean id="materialType" class="com.lab.manager.entity.MaterialType">
|
||||
<property name="typeId" value="T001"/>
|
||||
<property name="typeName" value="化学试剂"/>
|
||||
<property name="typeDesc" value="液体实验试剂"/>
|
||||
</bean>
|
||||
|
||||
<!-- 4. 材料管理(关联:材料类型 + 实验室) -->
|
||||
<bean id="material" class="com.lab.manager.entity.Material">
|
||||
<property name="materialId" value="M001"/>
|
||||
<property name="materialName" value="无水乙醇"/>
|
||||
<property name="materialSpec" value="500ml"/>
|
||||
<property name="materialStock" value="100"/>
|
||||
<property name="materialType" ref="materialType"/>
|
||||
<property name="materialLab" ref="lab"/>
|
||||
</bean>
|
||||
|
||||
<!-- 5. 材料维护管理(关联:材料) -->
|
||||
<bean id="maintain" class="com.lab.manager.entity.Maintain">
|
||||
<property name="maintainId" value="Mt001"/>
|
||||
<property name="maintainTime" value="2025-06-01"/>
|
||||
<property name="maintainContent" value="更换标签"/>
|
||||
<property name="maintainPerson" value="管理员"/>
|
||||
<property name="material" ref="material"/>
|
||||
</bean>
|
||||
|
||||
<!-- 6. 材料报废管理(关联:材料) -->
|
||||
<bean id="scrap" class="com.lab.manager.entity.Scrap">
|
||||
<property name="scrapId" value="Sp001"/>
|
||||
<property name="scrapTime" value="2025-06-02"/>
|
||||
<property name="scrapReason" value="过期失效"/>
|
||||
<property name="scrapCount" value="5"/>
|
||||
<property name="material" ref="material"/>
|
||||
</bean>
|
||||
|
||||
<!-- 7. 预约管理(关联:用户 + 实验室) -->
|
||||
<bean id="reserve" class="com.lab.manager.entity.Reserve">
|
||||
<property name="reserveId" value="R001"/>
|
||||
<property name="reserveTime" value="2025-06-03"/>
|
||||
<property name="reserveUse" value="教学实验"/>
|
||||
<property name="reserveStatus" value="已通过"/>
|
||||
<property name="user" ref="user"/>
|
||||
<property name="lab" ref="lab"/>
|
||||
</bean>
|
||||
|
||||
<!-- 8. 材料出入库管理(关联:材料) -->
|
||||
<bean id="stock" class="com.lab.manager.entity.Stock">
|
||||
<property name="stockId" value="St001"/>
|
||||
<property name="stockType" value="入库"/>
|
||||
<property name="stockTime" value="2025-06-01"/>
|
||||
<property name="stockCount" value="50"/>
|
||||
<property name="stockPerson" value="管理员"/>
|
||||
<property name="material" ref="material"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue