package com.example.xxxmes.entity;
public class Process {
private int processId;
private String name;
private int equipmentId;
private String description;
private int productId; // 新增的字段
public Process() {
}
public Process(int processId, String name, int equipmentId, String description, int productId) {
this.processId = processId;
this.name = name;
this.equipmentId = equipmentId;
this.description = description;
this.productId = productId; // 初始化新增字段
}
public int getProcessId() {
return processId;
}
public void setProcessId(int processId) {
this.processId = processId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getEquipmentId() {
return equipmentId;
}
public void setEquipmentId(int equipmentId) {
this.equipmentId = equipmentId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public int getProductId() {
return productId; // 新增的 getter 方法
}
public void setProductId(int productId) {
this.productId = productId; // 新增的 setter 方法
}
}
package com.example.xxxmes;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
public class MineFragment extends Fragment {
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.mine_fragment, container, false);
Log.d("MineFragment", "onCreateView called");
// 获取按钮
Button editProfileButton = view.findViewById(R.id.edit_profile_button);
Button myTasksButton = view.findViewById(R.id.my_tasks_button);
Button settingsButton = view.findViewById(R.id.settings_button);
Button helpButton = view.findViewById(R.id.help_button);
Button banbenButton = view.findViewById(R.id.banben_button);
Button guanyuButton = view.findViewById(R.id.guanyu_button);
// 你可以选择在这里为按钮设置其他的属性,但不需要设置点击事件
// 例如,设置按钮的可见性、文本或其他属性
return view;
}
}
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人