增加 登录 查询
parent
31dd5fce0c
commit
99d846c2b6
@ -0,0 +1,20 @@
|
||||
{
|
||||
"version": 3,
|
||||
"artifactType": {
|
||||
"type": "APK",
|
||||
"kind": "Directory"
|
||||
},
|
||||
"applicationId": "com.example.beijing_daxing",
|
||||
"variantName": "release",
|
||||
"elements": [
|
||||
{
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 5,
|
||||
"versionName": "1.5",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
],
|
||||
"elementType": "File"
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
package com.example.beijing_daxing;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.example.beijing_daxing.base.BaseActivity;
|
||||
import com.example.beijing_daxing.base.MyRecultCall;
|
||||
import com.example.beijing_daxing.base.MyResult;
|
||||
import com.example.beijing_daxing.been.PmBasePersonInfo;
|
||||
import com.example.beijing_daxing.databinding.ActivitySelectPersonInfoBinding;
|
||||
import com.example.beijing_daxing.dialog.TakePictureDialog;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
public class SelectPersonInfoActivity extends BaseActivity {
|
||||
private ActivitySelectPersonInfoBinding binding;
|
||||
private TakePictureDialog pictureDialog;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
binding = DataBindingUtil.setContentView(this, R.layout.activity_select_person_info);
|
||||
pictureDialog=new TakePictureDialog(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readTidReault(boolean b, String bytes2HexString, byte[] rdata) {
|
||||
super.readTidReault(b, bytes2HexString, rdata);
|
||||
binding.selectInfoEpc.setText(bytes2HexString);
|
||||
OkGo.<MyResult>post(url + "/selectPersonInfo")
|
||||
.params("epc", bytes2HexString)
|
||||
.execute(new MyRecultCall(dialog, this) {
|
||||
@Override
|
||||
public void onSuccess(Response<MyResult> response) {
|
||||
super.onSuccess(response);
|
||||
MyResult body = response.body();
|
||||
if (body.getCode() == 0) {
|
||||
PmBasePersonInfo personInfo =gson.fromJson(body.getJson(), PmBasePersonInfo.class);
|
||||
binding.setPersonInfo(personInfo);
|
||||
Glide.with(SelectPersonInfoActivity.this).load(url.replace("/api", "")+personInfo.getPhotoPath()).into(binding.selectInfoPhoto);
|
||||
return;
|
||||
}
|
||||
Toast.makeText(SelectPersonInfoActivity.this, body.getMsg(), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void selectInfoPhoto(View view) {
|
||||
|
||||
}
|
||||
|
||||
public void selectInfoSubmit(View view) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,145 @@
|
||||
package com.example.beijing_daxing.been;
|
||||
|
||||
/**
|
||||
* 人员信息对象 pm_base_person_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-26
|
||||
*/
|
||||
public class PmBasePersonInfo {
|
||||
|
||||
/**
|
||||
* 人员表主键
|
||||
*/
|
||||
private Long basePersonId;
|
||||
|
||||
/**
|
||||
* RFID编码
|
||||
*/
|
||||
|
||||
private String rfidId;
|
||||
|
||||
/**
|
||||
* 工号
|
||||
*/
|
||||
|
||||
private String employeeId;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
|
||||
private String peopleName;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
|
||||
private String peopleSex;
|
||||
|
||||
/**
|
||||
* 驾驶证代号
|
||||
*/
|
||||
private String driverCode;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 照片
|
||||
*/
|
||||
private String photoPath;
|
||||
|
||||
/**
|
||||
* 有效日期截止
|
||||
*/
|
||||
private String joinDate;
|
||||
|
||||
/**
|
||||
* 学历
|
||||
*/
|
||||
private String academicQualification;
|
||||
|
||||
public Long getBasePersonId() {
|
||||
return basePersonId;
|
||||
}
|
||||
|
||||
public void setBasePersonId(Long basePersonId) {
|
||||
this.basePersonId = basePersonId;
|
||||
}
|
||||
|
||||
public String getRfidId() {
|
||||
return rfidId;
|
||||
}
|
||||
|
||||
public void setRfidId(String rfidId) {
|
||||
this.rfidId = rfidId;
|
||||
}
|
||||
|
||||
public String getEmployeeId() {
|
||||
return employeeId;
|
||||
}
|
||||
|
||||
public void setEmployeeId(String employeeId) {
|
||||
this.employeeId = employeeId;
|
||||
}
|
||||
|
||||
public String getPeopleName() {
|
||||
return peopleName;
|
||||
}
|
||||
|
||||
public void setPeopleName(String peopleName) {
|
||||
this.peopleName = peopleName;
|
||||
}
|
||||
|
||||
public String getPeopleSex() {
|
||||
return peopleSex;
|
||||
}
|
||||
|
||||
public void setPeopleSex(String peopleSex) {
|
||||
this.peopleSex = peopleSex;
|
||||
}
|
||||
|
||||
public String getDriverCode() {
|
||||
return driverCode;
|
||||
}
|
||||
|
||||
public void setDriverCode(String driverCode) {
|
||||
this.driverCode = driverCode;
|
||||
}
|
||||
|
||||
public String getPhoneNumber() {
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
public void setPhoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
public String getPhotoPath() {
|
||||
return photoPath;
|
||||
}
|
||||
|
||||
public void setPhotoPath(String photoPath) {
|
||||
this.photoPath = photoPath;
|
||||
}
|
||||
|
||||
public String getJoinDate() {
|
||||
return joinDate;
|
||||
}
|
||||
|
||||
public void setJoinDate(String joinDate) {
|
||||
this.joinDate = joinDate;
|
||||
}
|
||||
|
||||
public String getAcademicQualification() {
|
||||
return academicQualification;
|
||||
}
|
||||
|
||||
public void setAcademicQualification(String academicQualification) {
|
||||
this.academicQualification = academicQualification;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package com.example.beijing_daxing.dialog;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.example.beijing_daxing.R;
|
||||
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2023/2/1 17:06
|
||||
*/
|
||||
public class LookPictureDialog extends Dialog {
|
||||
|
||||
private Context context;
|
||||
private String path;
|
||||
private ImageView imageView;
|
||||
|
||||
public LookPictureDialog(@NonNull Context context) {
|
||||
super(context, R.style.dialog);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
@SuppressLint("MissingInflatedId")
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.dialog_look_picture);
|
||||
|
||||
imageView = findViewById(R.id.picture_imageview);
|
||||
findViewById(R.id.confirm_back).setOnClickListener(v -> {
|
||||
dismiss();
|
||||
});
|
||||
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context);
|
||||
linearLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void show() {
|
||||
super.show();
|
||||
Glide.with(context).load(path).into(imageView);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,162 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
<variable
|
||||
name="personInfo"
|
||||
type="com.example.beijing_daxing.been.PmBasePersonInfo" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/bg1"
|
||||
tools:context=".SelectPersonInfoActivity">
|
||||
|
||||
<TextView
|
||||
style="@style/title_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:text="信息查询" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="扫描RFID:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/select_info_epc"
|
||||
style="@style/san_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="工号:" />
|
||||
|
||||
<TextView
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="@{personInfo.employeeId}" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="姓名:" />
|
||||
|
||||
<TextView
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:text="@{personInfo.peopleName}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="驾驶证代号:" />
|
||||
|
||||
<TextView
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:text="@{personInfo.driverCode}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="有效日期:" />
|
||||
|
||||
<TextView
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="@{personInfo.joinDate}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="205dp"
|
||||
android:layout_marginTop="10dp">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center|top"
|
||||
android:text="照片:" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/select_info_photo"
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:onClick="selectInfoPhoto"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<!-- <Button
|
||||
style="@style/button_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_margin="20dp"
|
||||
android:onClick="selectInfoSubmit"
|
||||
android:text="回库" />-->
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="450dp"
|
||||
android:background="@drawable/info_text_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/picture_imageview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="12dp" />
|
||||
<Button
|
||||
android:id="@+id/confirm_back"
|
||||
style="@style/button_style2"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_margin="10dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="关闭" />
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@ -1,3 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">RFID轮挡</string>
|
||||
<string name="app_name">人员管理</string>
|
||||
</resources>
|
||||
Loading…
Reference in New Issue