Commit f310fae4 by 吴春元

增加离线盘点模块

parent 6bf598ee
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.sxyz.rfid",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 17,
"versionName": "1.0.0",
"outputFile": "rfid_1.0.0.apk"
}
],
"elementType": "File"
}
\ No newline at end of file
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
<activity android:name=".ui.out.OutboundDetailListActivity" /> <activity android:name=".ui.out.OutboundDetailListActivity" />
<activity android:name=".ui.review.ReviewDetailActivity" /> <activity android:name=".ui.review.ReviewDetailActivity" />
<activity android:name=".ui.review.ReviewTaskActivity" /> <activity android:name=".ui.review.ReviewTaskActivity" />
<activity android:name=".ui.review.offline.ReviewOfflineActivity" />
<activity android:name="com.sxyz.rfid.ui.review.offline.ReviewOfflineDetailActivity" />
<activity android:name="com.sxyz.rfid.ui.review.offline.ReviewOfflineTaskActivity" />
</application> </application>
<!-- Android 10+ 需要添加 --> <!-- Android 10+ 需要添加 -->
......
...@@ -16,7 +16,6 @@ import androidx.multidex.MultiDexApplication; ...@@ -16,7 +16,6 @@ import androidx.multidex.MultiDexApplication;
import com.orhanobut.hawk.Hawk; import com.orhanobut.hawk.Hawk;
import com.sxyz.rfid.greendao.GreenDaoManager; import com.sxyz.rfid.greendao.GreenDaoManager;
import com.sxyz.rfid.utils.L;
import com.sxyz.rfid.widgets.MyActivityLifecycle; import com.sxyz.rfid.widgets.MyActivityLifecycle;
import com.ubx.usdk.RFIDSDKManager; import com.ubx.usdk.RFIDSDKManager;
import com.ubx.usdk.rfid.RfidManager; import com.ubx.usdk.rfid.RfidManager;
...@@ -53,7 +52,7 @@ public class App extends MultiDexApplication { ...@@ -53,7 +52,7 @@ public class App extends MultiDexApplication {
Hawk.init(getApplicationContext()).build(); Hawk.init(getApplicationContext()).build();
ip = Hawk.get(AppConfig.Ip.IP); ip = Hawk.get(AppConfig.Ip.IP);
port = Hawk.get(AppConfig.Ip.PORT); port = Hawk.get(AppConfig.Ip.PORT);
// initRfid(); initRfid();
initScan(); initScan();
initGreenDao(); initGreenDao();
registerActivityLifecycleCallbacks(new MyActivityLifecycle(getContext())); registerActivityLifecycleCallbacks(new MyActivityLifecycle(getContext()));
...@@ -125,23 +124,19 @@ public class App extends MultiDexApplication { ...@@ -125,23 +124,19 @@ public class App extends MultiDexApplication {
} }
public void initRfid() { public void initRfid() {
SoundTool.getInstance(getApplicationContext()); //初始化音效SDK
SoundTool.getInstance(App.getContext());
//初始化SDK
// 在异步回调中拿到RFID实例 // 在异步回调中拿到RFID实例
RFIDSDKManager.getInstance().power(true); RFIDSDKManager.getInstance().power(true);
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { new Handler(Looper.getMainLooper()).postDelayed(() -> {
@Override boolean connect = RFIDSDKManager.getInstance().connect();
public void run() { if (connect) {
boolean connect = RFIDSDKManager.getInstance().connect(); RFID_INIT_STATUS = true;
if (connect) { readerType = RFIDSDKManager.getInstance().getRfidManager().getReaderType();//80为短距,其他为长距
L.i("initRfid() success."); mRfidManager = RFIDSDKManager.getInstance().getRfidManager();
RFID_INIT_STATUS = true; mRfidManager.setScanInterval(0);//设置扫描间隔,单位毫秒,默认1000ms
readerType = RFIDSDKManager.getInstance().getRfidManager().getReaderType();//80为短距,其他为长距 String firmware = RFIDSDKManager.getInstance().getRfidManager().getFirmwareVersion();
mRfidManager = RFIDSDKManager.getInstance().getRfidManager();
String firmware = RFIDSDKManager.getInstance().getRfidManager().getFirmwareVersion();
L.i("initRfid: GetReaderType() = " + readerType);
} else {
L.i("initRfid fail.");
}
} }
}, 1500); }, 1500);
} }
......
package com.sxyz.rfid.greendao; package com.sxyz.rfid.greendao;
import android.content.Context; import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.os.Build; import android.os.Build;
import android.os.Environment; import android.os.Environment;
import com.sxyz.rfid.BuildConfig; import com.sxyz.rfid.BuildConfig;
import com.sxyz.rfid.utils.L;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.query.QueryBuilder; import org.greenrobot.greendao.query.QueryBuilder;
import java.io.File; import java.io.File;
...@@ -13,29 +16,17 @@ import java.io.File; ...@@ -13,29 +16,17 @@ import java.io.File;
import sql.com.yz.db.DaoMaster; import sql.com.yz.db.DaoMaster;
import sql.com.yz.db.DaoSession; import sql.com.yz.db.DaoSession;
/**
* @Description: java类作用描述
* @Author: chunyuan.wu
* @CreateDate: 5/12/23 5:31 PM
* @Version: 1.0
*/
public class GreenDaoManager { public class GreenDaoManager {
private static final String TAG = GreenDaoManager.class.getSimpleName(); private static final String TAG = GreenDaoManager.class.getSimpleName();
private static final String DB_NAME = "rfid.db"; public static final String DB_NAME = "wms_data.db";
private Context context; private Context context;
//多线程中要被共享的使用volatile关键字修饰
private volatile static GreenDaoManager manager = new GreenDaoManager(); private volatile static GreenDaoManager manager = new GreenDaoManager();
private static DaoMaster sDaoMaster; private DaoMaster sDaoMaster;
private static DaoMaster.DevOpenHelper sHelper; private DaoMaster.DevOpenHelper sHelper;
private static DaoSession sDaoSession; private DaoSession sDaoSession;
private String currentDbPath; // 记录当前数据库路径
/**
* 单例模式获得操作数据库对象
*
* @return
*/
public static GreenDaoManager getInstance() { public static GreenDaoManager getInstance() {
return manager; return manager;
} }
...@@ -46,62 +37,146 @@ public class GreenDaoManager { ...@@ -46,62 +37,146 @@ public class GreenDaoManager {
public void init(Context context) { public void init(Context context) {
this.context = context; this.context = context;
// 初始化时记录数据库路径
File dbFile = getDatabaseFile(context);
this.currentDbPath = dbFile.getAbsolutePath();
} }
/** /**
* 判断是否有存在数据库,如果没有则创建 * 获取数据库文件
*
* @return
*/ */
public DaoMaster getDaoMaster() { public File getDatabaseFile(Context context) {
if (sDaoMaster == null) { File dbDir = getExternalDatabaseDir(context);
// 获取外部存储的数据库目录 if (!dbDir.exists()) {
File dbDir = getExternalDatabaseDir(context); dbDir.mkdirs();
// 确保目录存在
if (!dbDir.exists()) {
dbDir.mkdirs();
}
// 数据库文件路径
File dbFile = new File(dbDir, DB_NAME);
// /storage/emulated/0/Android/data/com.sxyz.rfid/files/databases/rfid.db
DaoMaster.DevOpenHelper helper = new DaoMaster.DevOpenHelper(context, dbFile.getAbsolutePath(), null);
// DaoMaster.DevOpenHelper helper = new DaoMaster.DevOpenHelper(context, DB_NAME, null);
// DaoMaster.DevOpenHelper helper = new DaoMaster.DevOpenHelper(context, "/mnt/sdcard/Android/data/com.sxyz.rfid/databases/" + DB_NAME, null);
// DaoMaster.DevOpenHelper helper = new DaoMaster.DevOpenHelper(context, "/data/data/com.sxyz.rfid/databases/" + DB_NAME, null);
sDaoMaster = new DaoMaster(helper.getWritableDatabase());
} }
return sDaoMaster; return new File(dbDir, DB_NAME);
} }
private static File getExternalDatabaseDir(Context context) { private static File getExternalDatabaseDir(Context context) {
// Android 10 以下版本 // Android 10 以下版本
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
return new File(Environment.getExternalStorageDirectory(), return new File(Environment.getExternalStorageDirectory(), "Android/data/" + context.getPackageName() + "/files/databases/" + DB_NAME);
"Android/data/" + context.getPackageName() + "/databases");
} }
// Android 10 及以上版本 - 使用应用专属外部存储 // Android 10 及以上版本 - 使用应用专属外部存储
return new File(context.getExternalFilesDir(null), "databases"); return new File(context.getExternalFilesDir(null), "databases");
} }
/**
* 重置数据库连接 - 关键方法
*/
public void resetConnection() {
closeConnection();
sDaoMaster = null;
sDaoSession = null;
sHelper = null;
}
/** /**
* 完成对数据库的添加、删除、修改、查询操作,仅仅是一个接口 * 检查是否需要重新创建连接
*
* @return
*/ */
private boolean needRecreateConnection() {
if (sDaoMaster == null || sDaoSession == null) {
return true;
}
// 检查数据库文件是否存在
File dbFile = getDatabaseFile(context);
boolean fileExists = dbFile.exists();
// 如果文件不存在但连接存在,需要重置
if (!fileExists && sDaoMaster != null) {
return true;
}
// 检查路径是否变化
if (currentDbPath != null && !currentDbPath.equals(dbFile.getAbsolutePath())) {
return true;
}
return false;
}
public DaoMaster getDaoMaster() {
// 每次获取前检查是否需要重建连接
if (needRecreateConnection()) {
resetConnection();
}
if (sDaoMaster == null) {
File dbFile = getDatabaseFile(context);
currentDbPath = dbFile.getAbsolutePath();
if (dbFile.exists()) {
try {
// 检查数据库是否可以正常打开
SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getPath(), null, SQLiteDatabase.OPEN_READWRITE);
sDaoMaster = new DaoMaster(db);
} catch (Exception e) {
L.i("打开数据库失败===>" + dbFile.getAbsolutePath());
// 删除损坏的数据库文件
if (dbFile.exists()) {
dbFile.delete();
}
resetConnection();
return null;
}
} else {
// 数据库文件不存在,返回null
L.i("数据库文件不存在===>" + dbFile.getAbsolutePath());
return null;
}
}
return sDaoMaster;
}
public DaoSession getDaoSession() { public DaoSession getDaoSession() {
resetConnection();
if (needRecreateConnection()) {
resetConnection();
}
if (sDaoSession == null) { if (sDaoSession == null) {
if (sDaoMaster == null) { DaoMaster daoMaster = getDaoMaster();
sDaoMaster = getDaoMaster(); if (daoMaster != null) {
sDaoSession = daoMaster.newSession(IdentityScopeType.None);
} }
sDaoSession = sDaoMaster.newSession();
} }
return sDaoSession; return sDaoSession;
} }
/** /**
* 删除数据库文件的完整方法
*/
public boolean deleteDatabaseFile() {
resetConnection(); // 先关闭所有连接
File dbFile = getDatabaseFile(context);
if (dbFile.exists()) {
boolean deleted = dbFile.delete();
if (deleted) {
// 清除所有缓存
resetConnection();
// 也删除数据库的journal文件等
File journalFile = new File(dbFile.getPath() + "-journal");
if (journalFile.exists()) {
journalFile.delete();
}
File walFile = new File(dbFile.getPath() + "-wal");
if (walFile.exists()) {
walFile.delete();
}
File shmFile = new File(dbFile.getPath() + "-shm");
if (shmFile.exists()) {
shmFile.delete();
}
return true;
}
}
return false;
}
// 其他方法保持不变...
/**
* 打开输出日志,默认关闭 * 打开输出日志,默认关闭
*/ */
public void setDebug() { public void setDebug() {
......
package com.sxyz.rfid.greendao;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.os.Build;
import android.os.Environment;
import android.util.Log;
import com.sxyz.rfid.BuildConfig;
import org.greenrobot.greendao.query.QueryBuilder;
import java.io.File;
import sql.com.yz.db.DaoMaster;
import sql.com.yz.db.DaoSession;
/**
* @Description: java类作用描述
* @Author: chunyuan.wu
* @CreateDate: 5/12/23 5:31 PM
* @Version: 1.0
*/
public class GreenDaoManager1122 {
private static final String TAG = GreenDaoManager1122.class.getSimpleName();
public static final String DB_NAME = "wms_data.db";
private Context context;
//多线程中要被共享的使用volatile关键字修饰
private volatile static GreenDaoManager1122 manager = new GreenDaoManager1122();
private static DaoMaster sDaoMaster;
private static DaoMaster.DevOpenHelper sHelper;
private static DaoSession sDaoSession;
/**
* 单例模式获得操作数据库对象
*
* @return
*/
public static GreenDaoManager1122 getInstance() {
return manager;
}
private GreenDaoManager1122() {
setDebug();
}
public void init(Context context) {
this.context = context;
}
/**
* 判断是否有存在数据库,如果没有则创建
*
* @return
*/
public DaoMaster getDaoMaster() {
if (sDaoMaster == null) {
// 获取外部存储的数据库目录
File dbDir = getExternalDatabaseDir(context);
// 确保目录存在
if (!dbDir.exists()) {
dbDir.mkdirs();
}
// 数据库文件路径
File dbFile = new File(dbDir, DB_NAME);
// /storage/emulated/0/Android/data/com.sxyz.rfid/files/databases/rfid.db
DaoMaster.DevOpenHelper helper = new DaoMaster.DevOpenHelper(context, dbFile.getAbsolutePath(), null);
if (dbFile.exists()) {
// 文件已经存在,使用只读方式打开或特殊处理
SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getPath(), null, SQLiteDatabase.OPEN_READWRITE);
// 数据库文件已存在
sDaoMaster = new DaoMaster(db);
} else {
// 数据库文件不存在,创建数据库文件
// sDaoMaster = new DaoMaster(helper.getWritableDatabase());
// String msg = "数据库" + DB_NAME + "文件不存在,请连接电脑同步数据库文件";
// ToastUtil.showShort(msg);
// TipsDialog mTipsDialog = new TipsDialog(context);
// mTipsDialog.init(R.layout.dialog_offline_tips, msg);
// mTipsDialog.show();
// new AlertDialogUtil(context).builder()
// .setTitle("提示")
// .setMsg("数据库" + DB_NAME + "文件不存在,请连接电脑同步数据库文件")
// .setPositiveButton("确定", null)
// .show();
}
}
return sDaoMaster;
}
public static boolean isFileExist(Context context) {
try {
// 方法1:使用 Environment.getExternalStorageDirectory()(Android 10以下)
String path;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
// Android 10+ 使用 Scoped Storage
path = context.getExternalFilesDir(null) + "/databases/wms_data.db";
} else {
// Android 10以下
path = Environment.getExternalStorageDirectory() + "/Android/data/" + context.getPackageName() + "/files/databases/wms_data.db";
}
File dbFile = new File(path);
return dbFile.exists();
} catch (Exception e) {
Log.e("FileCheck", "检查文件出错", e);
return false;
}
}
private static File getExternalDatabaseDir(Context context) {
// Android 10 以下版本
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
return new File(Environment.getExternalStorageDirectory(), "Android/data/" + context.getPackageName() + "/files/databases/wms_data.db");
}
// Android 10 及以上版本 - 使用应用专属外部存储
return new File(context.getExternalFilesDir(null), "databases");
}
/**
* 完成对数据库的添加、删除、修改、查询操作,仅仅是一个接口
*
* @return
*/
public DaoSession getDaoSession() {
if (sDaoSession == null) {
if (sDaoMaster == null) {
sDaoMaster = getDaoMaster();
}
sDaoSession = sDaoMaster.newSession();
}
return sDaoSession;
}
/**
* 打开输出日志,默认关闭
*/
public void setDebug() {
if (BuildConfig.DEBUG) {
QueryBuilder.LOG_SQL = true;
QueryBuilder.LOG_VALUES = true;
}
}
/**
* 关闭所有的操作,数据库开启后,使用完毕要关闭
*/
public void closeConnection() {
closeHelper();
closeDaoSession();
}
public void closeHelper() {
if (sHelper != null) {
sHelper.close();
sHelper = null;
}
}
public void closeDaoSession() {
if (sDaoSession != null) {
sDaoSession.clear();
sDaoSession = null;
}
}
}
package com.sxyz.rfid.greendao.model;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
/**
* @Description: java类作用描述
* @Author: chunyuan.wu
* @CreateDate: 5/12/23 5:54 PM
* @Version: 1.0
*/
//@Entity 表明这个实体类会在数据库中生成一个与之相对应的表
@Entity
public class Out {
//@Id 对应数据表中的 Id 字段
@Id(autoincrement = true)
private Long id;//这里的坑要注意,如果id自增的话,必须必须定义id类型为大写的Long,小写的会报错。
// @Index(unique = true)
private String name;
private String type;
@Generated(hash = 577857007)
public Out(Long id, String name, String type) {
this.id = id;
this.name = name;
this.type = type;
}
@Generated(hash = 1304904767)
public Out() {
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
}
package com.sxyz.rfid.greendao.model;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Property;
import java.io.Serializable;
/**
* 主要功能: 库区表
*
* @Description:
* @Project: rfid-app
* @Package: com.sxyz.rfid.greendao.model
* @author: chunyuanwu
* @date: 2026年01月16日 14:59
* @version: 1.0.0
*/
@Entity(nameInDb = "wms_area")
public class WmsArea implements Serializable {
private static final long serialVersionUID = 1L;
@Property(nameInDb = "area_id")
private Long areaId;
@Property(nameInDb = "area_code")
private String areaCode;
@Property(nameInDb = "area_name")
private String areaName;
@Property(nameInDb = "warehouse_id")
private Integer warehouseId;
@Property(nameInDb = "parent_id")
private Integer parentId;
@Property(nameInDb = "area_type")
private String areaType;
@Property(nameInDb = "temperature_range")
private String temperatureRange;
@Property(nameInDb = "humidity_range")
private String humidityRange;
@Property(nameInDb = "capacity")
private Float capacity;
@Property(nameInDb = "sort_order")
private Integer sortOrder;
@Property(nameInDb = "status")
private String status;
@Property(nameInDb = "create_by")
private String createBy;
@Property(nameInDb = "create_time")
private String createTime;
@Property(nameInDb = "update_by")
private String updateBy;
@Property(nameInDb = "update_time")
private String updateTime;
@Property(nameInDb = "remark")
private String remark;
@Property(nameInDb = "del_flag")
private String delFlag;
@Generated(hash = 1099105956)
public WmsArea(Long areaId, String areaCode, String areaName,
Integer warehouseId, Integer parentId, String areaType,
String temperatureRange, String humidityRange, Float capacity,
Integer sortOrder, String status, String createBy, String createTime,
String updateBy, String updateTime, String remark, String delFlag) {
this.areaId = areaId;
this.areaCode = areaCode;
this.areaName = areaName;
this.warehouseId = warehouseId;
this.parentId = parentId;
this.areaType = areaType;
this.temperatureRange = temperatureRange;
this.humidityRange = humidityRange;
this.capacity = capacity;
this.sortOrder = sortOrder;
this.status = status;
this.createBy = createBy;
this.createTime = createTime;
this.updateBy = updateBy;
this.updateTime = updateTime;
this.remark = remark;
this.delFlag = delFlag;
}
@Generated(hash = 630738442)
public WmsArea() {
}
public Long getAreaId() {
return this.areaId;
}
public void setAreaId(Long areaId) {
this.areaId = areaId;
}
public String getAreaCode() {
return this.areaCode;
}
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getWarehouseId() {
return this.warehouseId;
}
public void setWarehouseId(Integer warehouseId) {
this.warehouseId = warehouseId;
}
public Integer getParentId() {
return this.parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public String getAreaType() {
return this.areaType;
}
public void setAreaType(String areaType) {
this.areaType = areaType;
}
public String getTemperatureRange() {
return this.temperatureRange;
}
public void setTemperatureRange(String temperatureRange) {
this.temperatureRange = temperatureRange;
}
public String getHumidityRange() {
return this.humidityRange;
}
public void setHumidityRange(String humidityRange) {
this.humidityRange = humidityRange;
}
public Float getCapacity() {
return this.capacity;
}
public void setCapacity(Float capacity) {
this.capacity = capacity;
}
public Integer getSortOrder() {
return this.sortOrder;
}
public void setSortOrder(Integer sortOrder) {
this.sortOrder = sortOrder;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public String getCreateBy() {
return this.createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public String getCreateTime() {
return this.createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return this.updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public String getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getDelFlag() {
return this.delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}
package com.sxyz.rfid.greendao.model;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import java.io.Serializable;
/**
* 主要功能: 库存表
*
* @Description:
* @Project: rfid-app
* @Package: com.sxyz.rfid.greendao.model
* @author: chunyuanwu
* @date: 2026年01月16日 14:24
* @version: 1.0.0
*/
@Entity(nameInDb = "wms_inventory")
public class WmsInventory implements Serializable {
private static final long serialVersionUID = 1L;
//主键
@Id(autoincrement = true)
@Property(nameInDb = "inventory_id")
private Long inventoryId;
@Property(nameInDb = "material_id")
private Integer materialId;
@Property(nameInDb = "warehouse_id")
private Integer warehouseId;
@Property(nameInDb = "area_id")
private Integer areaId;
@Property(nameInDb = "location_id")
private Integer locationId;
@Property(nameInDb = "batch_no")
private String batchNo;
@Property(nameInDb = "lot_no")
private String lotNo;
@Property(nameInDb = "production_date")
private String productionDate;
@Property(nameInDb = "expiration_date")
private String expirationDate;
@Property(nameInDb = "quantity")
private Float quantity;
@Property(nameInDb = "available_quantity")
private Float availableQuantity;
@Property(nameInDb = "locked_quantity")
private Float lockedQuantity;
@Property(nameInDb = "unit_cost")
private Float unitCost;
@Property(nameInDb = "total_cost")
private Float totalCost;
@Property(nameInDb = "quality_status")
private String qualityStatus;
@Property(nameInDb = "inventory_status")
private String inventoryStatus;
@Property(nameInDb = "last_inbound_time")
private String lastInboundTime;
@Property(nameInDb = "last_outbound_time")
private String lastOutboundTime;
@Property(nameInDb = "rfid_tag")
private String rfidTag;
@Property(nameInDb = "barcode")
private String barcode;
@Property(nameInDb = "is_fifo")
private String isFifo;
@Property(nameInDb = "rfid_binding_count")
private Integer rfidBindingCount;
@Property(nameInDb = "last_rfid_detect_time")
private String lastRfidDetectTime;
@Property(nameInDb = "rfid_coverage_rate")
private Float rfidCoverageRate;
@Property(nameInDb = "del_flag")
private String delFlag;
@Property(nameInDb = "create_time")
private String createTime;
@Property(nameInDb = "update_time")
private String updateTime;
@Property(nameInDb = "remark")
private String remark;
@Generated(hash = 1153757393)
public WmsInventory(Long inventoryId, Integer materialId, Integer warehouseId,
Integer areaId, Integer locationId, String batchNo, String lotNo,
String productionDate, String expirationDate, Float quantity,
Float availableQuantity, Float lockedQuantity, Float unitCost,
Float totalCost, String qualityStatus, String inventoryStatus,
String lastInboundTime, String lastOutboundTime, String rfidTag,
String barcode, String isFifo, Integer rfidBindingCount,
String lastRfidDetectTime, Float rfidCoverageRate, String delFlag,
String createTime, String updateTime, String remark) {
this.inventoryId = inventoryId;
this.materialId = materialId;
this.warehouseId = warehouseId;
this.areaId = areaId;
this.locationId = locationId;
this.batchNo = batchNo;
this.lotNo = lotNo;
this.productionDate = productionDate;
this.expirationDate = expirationDate;
this.quantity = quantity;
this.availableQuantity = availableQuantity;
this.lockedQuantity = lockedQuantity;
this.unitCost = unitCost;
this.totalCost = totalCost;
this.qualityStatus = qualityStatus;
this.inventoryStatus = inventoryStatus;
this.lastInboundTime = lastInboundTime;
this.lastOutboundTime = lastOutboundTime;
this.rfidTag = rfidTag;
this.barcode = barcode;
this.isFifo = isFifo;
this.rfidBindingCount = rfidBindingCount;
this.lastRfidDetectTime = lastRfidDetectTime;
this.rfidCoverageRate = rfidCoverageRate;
this.delFlag = delFlag;
this.createTime = createTime;
this.updateTime = updateTime;
this.remark = remark;
}
@Generated(hash = 787522309)
public WmsInventory() {
}
public Long getInventoryId() {
return this.inventoryId;
}
public void setInventoryId(Long inventoryId) {
this.inventoryId = inventoryId;
}
public Integer getMaterialId() {
return this.materialId;
}
public void setMaterialId(Integer materialId) {
this.materialId = materialId;
}
public Integer getWarehouseId() {
return this.warehouseId;
}
public void setWarehouseId(Integer warehouseId) {
this.warehouseId = warehouseId;
}
public Integer getAreaId() {
return this.areaId;
}
public void setAreaId(Integer areaId) {
this.areaId = areaId;
}
public Integer getLocationId() {
return this.locationId;
}
public void setLocationId(Integer locationId) {
this.locationId = locationId;
}
public String getBatchNo() {
return this.batchNo;
}
public void setBatchNo(String batchNo) {
this.batchNo = batchNo;
}
public String getLotNo() {
return this.lotNo;
}
public void setLotNo(String lotNo) {
this.lotNo = lotNo;
}
public String getProductionDate() {
return this.productionDate;
}
public void setProductionDate(String productionDate) {
this.productionDate = productionDate;
}
public String getExpirationDate() {
return this.expirationDate;
}
public void setExpirationDate(String expirationDate) {
this.expirationDate = expirationDate;
}
public Float getQuantity() {
return this.quantity;
}
public void setQuantity(Float quantity) {
this.quantity = quantity;
}
public Float getAvailableQuantity() {
return this.availableQuantity;
}
public void setAvailableQuantity(Float availableQuantity) {
this.availableQuantity = availableQuantity;
}
public Float getLockedQuantity() {
return this.lockedQuantity;
}
public void setLockedQuantity(Float lockedQuantity) {
this.lockedQuantity = lockedQuantity;
}
public Float getUnitCost() {
return this.unitCost;
}
public void setUnitCost(Float unitCost) {
this.unitCost = unitCost;
}
public Float getTotalCost() {
return this.totalCost;
}
public void setTotalCost(Float totalCost) {
this.totalCost = totalCost;
}
public String getQualityStatus() {
return this.qualityStatus;
}
public void setQualityStatus(String qualityStatus) {
this.qualityStatus = qualityStatus;
}
public String getInventoryStatus() {
return this.inventoryStatus;
}
public void setInventoryStatus(String inventoryStatus) {
this.inventoryStatus = inventoryStatus;
}
public String getLastInboundTime() {
return this.lastInboundTime;
}
public void setLastInboundTime(String lastInboundTime) {
this.lastInboundTime = lastInboundTime;
}
public String getLastOutboundTime() {
return this.lastOutboundTime;
}
public void setLastOutboundTime(String lastOutboundTime) {
this.lastOutboundTime = lastOutboundTime;
}
public String getRfidTag() {
return this.rfidTag;
}
public void setRfidTag(String rfidTag) {
this.rfidTag = rfidTag;
}
public String getBarcode() {
return this.barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getIsFifo() {
return this.isFifo;
}
public void setIsFifo(String isFifo) {
this.isFifo = isFifo;
}
public Integer getRfidBindingCount() {
return this.rfidBindingCount;
}
public void setRfidBindingCount(Integer rfidBindingCount) {
this.rfidBindingCount = rfidBindingCount;
}
public String getLastRfidDetectTime() {
return this.lastRfidDetectTime;
}
public void setLastRfidDetectTime(String lastRfidDetectTime) {
this.lastRfidDetectTime = lastRfidDetectTime;
}
public Float getRfidCoverageRate() {
return this.rfidCoverageRate;
}
public void setRfidCoverageRate(Float rfidCoverageRate) {
this.rfidCoverageRate = rfidCoverageRate;
}
public String getDelFlag() {
return this.delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getCreateTime() {
return this.createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
package com.sxyz.rfid.greendao.model;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import java.io.Serializable;
/**
* 主要功能: 库存结果表
*
* @Description:
* @Project: rfid-app
* @Package: com.sxyz.rfid.greendao.model
* @author: chunyuanwu
* @date: 2026年01月16日 12:55
* @version: 1.0.0
*/
@Entity(nameInDb = "wms_inventory_result")
public class WmsInventoryResult implements Serializable {
private static final long serialVersionUID = 1L;
//主键
@Id(autoincrement = true)
@Property(nameInDb = "result_id")
private Long resultId;
@Property(nameInDb = "task_id")
private Integer taskId;
@Property(nameInDb = "plan_id")
private Integer planId;
@Property(nameInDb = "warehouse_id")
private Integer warehouseId;
@Property(nameInDb = "warehouse_name")
private String warehouseName;
@Property(nameInDb = "area_ids")
private String areaIds;
@Property(nameInDb = "area_name")
private String areaName;
@Property(nameInDb = "checker_id")
private Integer checkerId;
@Property(nameInDb = "checker_name")
private String checkerName;
@Property(nameInDb = "start_time")
private String startTime;
@Property(nameInDb = "end_time")
private String endTime;
@Property(nameInDb = "total_items")
private Integer totalItems;
@Property(nameInDb = "counted_items")
private Integer countedItems;
@Property(nameInDb = "surplus_items")
private Integer surplusItems;
@Property(nameInDb = "deficit_items")
private Integer deficitItems;
@Property(nameInDb = "total_surplus")
private Double totalSurplus;
@Property(nameInDb = "total_deficit")
private Double totalDeficit;
@Property(nameInDb = "total_difference_value")
private Double totalDifferenceValue;
@Property(nameInDb = "difference_rate")
private Double differenceRate;
@Property(nameInDb = "result_status")
private String resultStatus;
@Property(nameInDb = "audit_status")
private String auditStatus;
@Property(nameInDb = "auditor_id")
private Integer auditorId;
@Property(nameInDb = "auditor_name")
private String auditorName;
@Property(nameInDb = "audit_time")
private String auditTime;
@Property(nameInDb = "audit_opinion")
private String auditOpinion;
@Property(nameInDb = "del_flag")
private String delFlag;
@Property(nameInDb = "create_time")
private String createTime;
@Property(nameInDb = "update_time")
private String updateTime;
@Property(nameInDb = "remark")
private String remark;
@Generated(hash = 1827251151)
public WmsInventoryResult(Long resultId, Integer taskId, Integer planId,
Integer warehouseId, String warehouseName, String areaIds,
String areaName, Integer checkerId, String checkerName,
String startTime, String endTime, Integer totalItems,
Integer countedItems, Integer surplusItems, Integer deficitItems,
Double totalSurplus, Double totalDeficit, Double totalDifferenceValue,
Double differenceRate, String resultStatus, String auditStatus,
Integer auditorId, String auditorName, String auditTime,
String auditOpinion, String delFlag, String createTime,
String updateTime, String remark) {
this.resultId = resultId;
this.taskId = taskId;
this.planId = planId;
this.warehouseId = warehouseId;
this.warehouseName = warehouseName;
this.areaIds = areaIds;
this.areaName = areaName;
this.checkerId = checkerId;
this.checkerName = checkerName;
this.startTime = startTime;
this.endTime = endTime;
this.totalItems = totalItems;
this.countedItems = countedItems;
this.surplusItems = surplusItems;
this.deficitItems = deficitItems;
this.totalSurplus = totalSurplus;
this.totalDeficit = totalDeficit;
this.totalDifferenceValue = totalDifferenceValue;
this.differenceRate = differenceRate;
this.resultStatus = resultStatus;
this.auditStatus = auditStatus;
this.auditorId = auditorId;
this.auditorName = auditorName;
this.auditTime = auditTime;
this.auditOpinion = auditOpinion;
this.delFlag = delFlag;
this.createTime = createTime;
this.updateTime = updateTime;
this.remark = remark;
}
@Generated(hash = 1423742613)
public WmsInventoryResult() {
}
public Long getResultId() {
return this.resultId;
}
public void setResultId(Long resultId) {
this.resultId = resultId;
}
public Integer getTaskId() {
return this.taskId;
}
public void setTaskId(Integer taskId) {
this.taskId = taskId;
}
public Integer getPlanId() {
return this.planId;
}
public void setPlanId(Integer planId) {
this.planId = planId;
}
public Integer getWarehouseId() {
return this.warehouseId;
}
public void setWarehouseId(Integer warehouseId) {
this.warehouseId = warehouseId;
}
public String getWarehouseName() {
return this.warehouseName;
}
public void setWarehouseName(String warehouseName) {
this.warehouseName = warehouseName;
}
public String getAreaIds() {
return this.areaIds;
}
public void setAreaIds(String areaIds) {
this.areaIds = areaIds;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getCheckerId() {
return this.checkerId;
}
public void setCheckerId(Integer checkerId) {
this.checkerId = checkerId;
}
public String getCheckerName() {
return this.checkerName;
}
public void setCheckerName(String checkerName) {
this.checkerName = checkerName;
}
public String getStartTime() {
return this.startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public String getEndTime() {
return this.endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public Integer getTotalItems() {
return this.totalItems;
}
public void setTotalItems(Integer totalItems) {
this.totalItems = totalItems;
}
public Integer getCountedItems() {
return this.countedItems;
}
public void setCountedItems(Integer countedItems) {
this.countedItems = countedItems;
}
public Integer getSurplusItems() {
return this.surplusItems;
}
public void setSurplusItems(Integer surplusItems) {
this.surplusItems = surplusItems;
}
public Integer getDeficitItems() {
return this.deficitItems;
}
public void setDeficitItems(Integer deficitItems) {
this.deficitItems = deficitItems;
}
public Double getTotalSurplus() {
return this.totalSurplus;
}
public void setTotalSurplus(Double totalSurplus) {
this.totalSurplus = totalSurplus;
}
public Double getTotalDeficit() {
return this.totalDeficit;
}
public void setTotalDeficit(Double totalDeficit) {
this.totalDeficit = totalDeficit;
}
public Double getTotalDifferenceValue() {
return this.totalDifferenceValue;
}
public void setTotalDifferenceValue(Double totalDifferenceValue) {
this.totalDifferenceValue = totalDifferenceValue;
}
public Double getDifferenceRate() {
return this.differenceRate;
}
public void setDifferenceRate(Double differenceRate) {
this.differenceRate = differenceRate;
}
public String getResultStatus() {
return this.resultStatus;
}
public void setResultStatus(String resultStatus) {
this.resultStatus = resultStatus;
}
public String getAuditStatus() {
return this.auditStatus;
}
public void setAuditStatus(String auditStatus) {
this.auditStatus = auditStatus;
}
public Integer getAuditorId() {
return this.auditorId;
}
public void setAuditorId(Integer auditorId) {
this.auditorId = auditorId;
}
public String getAuditorName() {
return this.auditorName;
}
public void setAuditorName(String auditorName) {
this.auditorName = auditorName;
}
public String getAuditTime() {
return this.auditTime;
}
public void setAuditTime(String auditTime) {
this.auditTime = auditTime;
}
public String getAuditOpinion() {
return this.auditOpinion;
}
public void setAuditOpinion(String auditOpinion) {
this.auditOpinion = auditOpinion;
}
public String getDelFlag() {
return this.delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getCreateTime() {
return this.createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
package com.sxyz.rfid.greendao.model;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import java.io.Serializable;
/**
* 主要功能: 库存任务表
*
* @Description:
* @Project: rfid-app
* @Package: com.sxyz.rfid.greendao.model
* @author: chunyuanwu
* @date: 2026年01月15日 14:13
* @version: 1.0.0
*/
//@Entity 表明这个实体类会在数据库中生成一个与之相对应的表
@Entity(nameInDb = "wms_inventory_task")
public class WmsInventoryTask implements Serializable {
private static final long serialVersionUID = 1L;
//主键
@Id(autoincrement = true)
@Property(nameInDb = "task_id")
private Long taskId;
@Property(nameInDb = "plan_id")
private Integer planId;
@Property(nameInDb = "task_no")
private String taskNo;
@Property(nameInDb = "task_name")
private String taskName;
@Property(nameInDb = "warehouse_id")
private Integer warehouseId;
@Property(nameInDb = "warehouse_name")
private String warehouseName;
@Property(nameInDb = "area_ids")
private String areaIds;
@Property(nameInDb = "area_name")
private String areaName;
@Property(nameInDb = "material_ids")
private String materialIds;
@Property(nameInDb = "location_range")
private String locationRange;
@Property(nameInDb = "assignee_id")
private Integer assigneeId;
@Property(nameInDb = "assistant_ids")
private String assistantIds;
@Property(nameInDb = "task_status")
private String taskStatus;
@Property(nameInDb = "start_time")
private String startTime;
@Property(nameInDb = "end_time")
private String endTime;
@Property(nameInDb = "total_items")
private Integer totalItems;
@Property(nameInDb = "counted_items")
private Integer countedItems;
@Property(nameInDb = "inventory_device")
private String inventoryDevice;
@Property(nameInDb = "del_flag")
private String delFlag;
@Property(nameInDb = "create_time")
private String createTime;
@Property(nameInDb = "update_time")
private String updateTime;
@Property(nameInDb = "remark")
private String remark;
@Generated(hash = 1984916082)
public WmsInventoryTask(Long taskId, Integer planId, String taskNo,
String taskName, Integer warehouseId, String warehouseName,
String areaIds, String areaName, String materialIds,
String locationRange, Integer assigneeId, String assistantIds,
String taskStatus, String startTime, String endTime, Integer totalItems,
Integer countedItems, String inventoryDevice, String delFlag,
String createTime, String updateTime, String remark) {
this.taskId = taskId;
this.planId = planId;
this.taskNo = taskNo;
this.taskName = taskName;
this.warehouseId = warehouseId;
this.warehouseName = warehouseName;
this.areaIds = areaIds;
this.areaName = areaName;
this.materialIds = materialIds;
this.locationRange = locationRange;
this.assigneeId = assigneeId;
this.assistantIds = assistantIds;
this.taskStatus = taskStatus;
this.startTime = startTime;
this.endTime = endTime;
this.totalItems = totalItems;
this.countedItems = countedItems;
this.inventoryDevice = inventoryDevice;
this.delFlag = delFlag;
this.createTime = createTime;
this.updateTime = updateTime;
this.remark = remark;
}
@Generated(hash = 950900997)
public WmsInventoryTask() {
}
public Long getTaskId() {
return this.taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
public Integer getPlanId() {
return this.planId;
}
public void setPlanId(Integer planId) {
this.planId = planId;
}
public String getTaskNo() {
return this.taskNo;
}
public void setTaskNo(String taskNo) {
this.taskNo = taskNo;
}
public String getTaskName() {
return this.taskName;
}
public void setTaskName(String taskName) {
this.taskName = taskName;
}
public Integer getWarehouseId() {
return this.warehouseId;
}
public void setWarehouseId(Integer warehouseId) {
this.warehouseId = warehouseId;
}
public String getWarehouseName() {
return this.warehouseName;
}
public void setWarehouseName(String warehouseName) {
this.warehouseName = warehouseName;
}
public String getAreaIds() {
return this.areaIds;
}
public void setAreaIds(String areaIds) {
this.areaIds = areaIds;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public String getMaterialIds() {
return this.materialIds;
}
public void setMaterialIds(String materialIds) {
this.materialIds = materialIds;
}
public String getLocationRange() {
return this.locationRange;
}
public void setLocationRange(String locationRange) {
this.locationRange = locationRange;
}
public Integer getAssigneeId() {
return this.assigneeId;
}
public void setAssigneeId(Integer assigneeId) {
this.assigneeId = assigneeId;
}
public String getAssistantIds() {
return this.assistantIds;
}
public void setAssistantIds(String assistantIds) {
this.assistantIds = assistantIds;
}
public String getTaskStatus() {
return this.taskStatus;
}
public void setTaskStatus(String taskStatus) {
this.taskStatus = taskStatus;
}
public String getStartTime() {
return this.startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public String getEndTime() {
return this.endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public Integer getTotalItems() {
return this.totalItems;
}
public void setTotalItems(Integer totalItems) {
this.totalItems = totalItems;
}
public Integer getCountedItems() {
return this.countedItems;
}
public void setCountedItems(Integer countedItems) {
this.countedItems = countedItems;
}
public String getInventoryDevice() {
return this.inventoryDevice;
}
public void setInventoryDevice(String inventoryDevice) {
this.inventoryDevice = inventoryDevice;
}
public String getDelFlag() {
return this.delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getCreateTime() {
return this.createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
package com.sxyz.rfid.greendao.model;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Transient;
import java.io.Serializable;
/**
* 主要功能: 盘点任务明细信息
*
* @Description:
* @Project: rfid-app
* @Package: com.sxyz.rfid.greendao.model
* @author: chunyuanwu
* @date: 2026年01月15日 16:01
* @version: 1.0.0
*/
@Entity(nameInDb = "wms_inventory_task_detail")
public class WmsInventoryTaskDetail implements Serializable {
private static final long serialVersionUID = 1L;
//主键
@Id(autoincrement = true)
@Property(nameInDb = "detail_id")
private Long detailId;
@Property(nameInDb = "task_id")
private Integer taskId;
@Property(nameInDb = "inventory_id")
private Integer inventoryId;
@Property(nameInDb = "material_id")
private Integer materialId;
@Property(nameInDb = "warehouse_id")
private Integer warehouseId;
@Property(nameInDb = "warehouse_name")
private String warehouseName;
@Property(nameInDb = "area_id")
private Integer areaId;
@Property(nameInDb = "area_name")
private String areaName;
@Property(nameInDb = "location_id")
private Integer locationId;
@Property(nameInDb = "location_name")
private String locationName;
@Property(nameInDb = "batch_no")
private String batchNo;
@Property(nameInDb = "system_quantity")
private Float systemQty;
@Property(nameInDb = "actual_quantity")
private Float actualQty;
@Property(nameInDb = "difference_rate")
private Float diffQty;
@Property(nameInDb = "difference_reason")
private String diffReason;
@Property(nameInDb = "check_status")
private String checkStatus;
@Property(nameInDb = "checker_id")
private Integer checkerId;
@Property(nameInDb = "checker_name")
private String checkerName;
@Property(nameInDb = "check_time")
private String checkTime;
@Property(nameInDb = "rfid_tag")
private String rfidTag;
@Property(nameInDb = "barcode")
private String barcode;
@Property(nameInDb = "is_blind_zone")
private String isBlindZone;
@Property(nameInDb = "quality_status")
private String qualityStatus;
@Property(nameInDb = "del_flag")
private String delFlag;
@Property(nameInDb = "create_time")
private String createTime;
@Property(nameInDb = "update_time")
private String updateTime;
@Property(nameInDb = "remark")
private String remark;
//一对一联表WmsInventoryResult
// @ToOne(joinProperty = "taskId")
// private WmsInventoryResult wmsInventoryResult;
//不映射到数据库字段 用于展开收起状态
@Transient
private boolean isExpanded;
@Generated(hash = 745553459)
public WmsInventoryTaskDetail(Long detailId, Integer taskId, Integer inventoryId, Integer materialId,
Integer warehouseId, String warehouseName, Integer areaId, String areaName, Integer locationId,
String locationName, String batchNo, Float systemQty, Float actualQty, Float diffQty, String diffReason,
String checkStatus, Integer checkerId, String checkerName, String checkTime, String rfidTag, String barcode,
String isBlindZone, String qualityStatus, String delFlag, String createTime, String updateTime, String remark) {
this.detailId = detailId;
this.taskId = taskId;
this.inventoryId = inventoryId;
this.materialId = materialId;
this.warehouseId = warehouseId;
this.warehouseName = warehouseName;
this.areaId = areaId;
this.areaName = areaName;
this.locationId = locationId;
this.locationName = locationName;
this.batchNo = batchNo;
this.systemQty = systemQty;
this.actualQty = actualQty;
this.diffQty = diffQty;
this.diffReason = diffReason;
this.checkStatus = checkStatus;
this.checkerId = checkerId;
this.checkerName = checkerName;
this.checkTime = checkTime;
this.rfidTag = rfidTag;
this.barcode = barcode;
this.isBlindZone = isBlindZone;
this.qualityStatus = qualityStatus;
this.delFlag = delFlag;
this.createTime = createTime;
this.updateTime = updateTime;
this.remark = remark;
}
public boolean isExpanded() {
return isExpanded;
}
public void setExpanded(boolean expanded) {
isExpanded = expanded;
}
@Generated(hash = 1405986565)
public WmsInventoryTaskDetail() {
}
public Long getDetailId() {
return this.detailId;
}
public void setDetailId(Long detailId) {
this.detailId = detailId;
}
public Integer getTaskId() {
return this.taskId;
}
public void setTaskId(Integer taskId) {
this.taskId = taskId;
}
public Integer getInventoryId() {
return this.inventoryId;
}
public void setInventoryId(Integer inventoryId) {
this.inventoryId = inventoryId;
}
public Integer getMaterialId() {
return this.materialId;
}
public void setMaterialId(Integer materialId) {
this.materialId = materialId;
}
public Integer getWarehouseId() {
return this.warehouseId;
}
public void setWarehouseId(Integer warehouseId) {
this.warehouseId = warehouseId;
}
public String getWarehouseName() {
return this.warehouseName;
}
public void setWarehouseName(String warehouseName) {
this.warehouseName = warehouseName;
}
public Integer getAreaId() {
return this.areaId;
}
public void setAreaId(Integer areaId) {
this.areaId = areaId;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getLocationId() {
return this.locationId;
}
public void setLocationId(Integer locationId) {
this.locationId = locationId;
}
public String getLocationName() {
return this.locationName;
}
public void setLocationName(String locationName) {
this.locationName = locationName;
}
public String getBatchNo() {
return this.batchNo;
}
public void setBatchNo(String batchNo) {
this.batchNo = batchNo;
}
public Float getSystemQty() {
return this.systemQty;
}
public void setSystemQty(Float systemQty) {
this.systemQty = systemQty;
}
public Float getActualQty() {
return this.actualQty;
}
public void setActualQty(Float actualQty) {
this.actualQty = actualQty;
}
public Float getDiffQty() {
return this.diffQty;
}
public void setDiffQty(Float diffQty) {
this.diffQty = diffQty;
}
public String getDiffReason() {
return this.diffReason;
}
public void setDiffReason(String diffReason) {
this.diffReason = diffReason;
}
public String getCheckStatus() {
return this.checkStatus;
}
public void setCheckStatus(String checkStatus) {
this.checkStatus = checkStatus;
}
public Integer getCheckerId() {
return this.checkerId;
}
public void setCheckerId(Integer checkerId) {
this.checkerId = checkerId;
}
public String getCheckerName() {
return this.checkerName;
}
public void setCheckerName(String checkerName) {
this.checkerName = checkerName;
}
public String getCheckTime() {
return this.checkTime;
}
public void setCheckTime(String checkTime) {
this.checkTime = checkTime;
}
public String getRfidTag() {
return this.rfidTag;
}
public void setRfidTag(String rfidTag) {
this.rfidTag = rfidTag;
}
public String getBarcode() {
return this.barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getIsBlindZone() {
return this.isBlindZone;
}
public void setIsBlindZone(String isBlindZone) {
this.isBlindZone = isBlindZone;
}
public String getQualityStatus() {
return this.qualityStatus;
}
public void setQualityStatus(String qualityStatus) {
this.qualityStatus = qualityStatus;
}
public String getDelFlag() {
return this.delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getCreateTime() {
return this.createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
package com.sxyz.rfid.greendao.model;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Property;
import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;
/**
* 主要功能:
*
* @Description: 库位表
* @Project: rfid-app
* @Package: com.sxyz.rfid.greendao.model
* @author: chunyuanwu
* @date: 2026年01月16日 15:01
* @version: 1.0.0
*/
@Entity(nameInDb = "wms_location")
public class WmsLocation implements Serializable {
private static final long serialVersionUID = 1L;
@Property(nameInDb = "location_id")
private Long locationId;
@Property(nameInDb = "location_code")
private String locationCode;
@Property(nameInDb = "location_name")
private String locationName;
@Property(nameInDb = "area_id")
private Integer areaId;
@Property(nameInDb = "location_type")
private String locationType;
@Property(nameInDb = "x_coordinate")
private Integer xCoordinate;
@Property(nameInDb = "y_coordinate")
private Integer yCoordinate;
@Property(nameInDb = "z_coordinate")
private Integer zCoordinate;
@Property(nameInDb = "max_capacity")
private Float maxCapacity;
@Property(nameInDb = "current_capacity")
private Float currentCapacity;
@Property(nameInDb = "weight_limit")
private Float weightLimit;
@Property(nameInDb = "length")
private Float length;
@Property(nameInDb = "width")
private Float width;
@Property(nameInDb = "height")
private Float height;
@Property(nameInDb = "status")
private String status;
@Property(nameInDb = "rfid_antenna_id")
private String rfidAntennaId;
@Property(nameInDb = "last_inventory_time")
private String lastInventoryTime;
@Property(nameInDb = "del_flag")
private String delFlag;
@Property(nameInDb = "create_time")
private String createTime;
@Property(nameInDb = "update_time")
private String updateTime;
@Property(nameInDb = "remark")
private String remark;
@Generated(hash = 1635717656)
public WmsLocation(Long locationId, String locationCode, String locationName,
Integer areaId, String locationType, Integer xCoordinate,
Integer yCoordinate, Integer zCoordinate, Float maxCapacity,
Float currentCapacity, Float weightLimit, Float length, Float width,
Float height, String status, String rfidAntennaId,
String lastInventoryTime, String delFlag, String createTime,
String updateTime, String remark) {
this.locationId = locationId;
this.locationCode = locationCode;
this.locationName = locationName;
this.areaId = areaId;
this.locationType = locationType;
this.xCoordinate = xCoordinate;
this.yCoordinate = yCoordinate;
this.zCoordinate = zCoordinate;
this.maxCapacity = maxCapacity;
this.currentCapacity = currentCapacity;
this.weightLimit = weightLimit;
this.length = length;
this.width = width;
this.height = height;
this.status = status;
this.rfidAntennaId = rfidAntennaId;
this.lastInventoryTime = lastInventoryTime;
this.delFlag = delFlag;
this.createTime = createTime;
this.updateTime = updateTime;
this.remark = remark;
}
@Generated(hash = 1501780407)
public WmsLocation() {
}
public Long getLocationId() {
return this.locationId;
}
public void setLocationId(Long locationId) {
this.locationId = locationId;
}
public String getLocationCode() {
return this.locationCode;
}
public void setLocationCode(String locationCode) {
this.locationCode = locationCode;
}
public String getLocationName() {
return this.locationName;
}
public void setLocationName(String locationName) {
this.locationName = locationName;
}
public Integer getAreaId() {
return this.areaId;
}
public void setAreaId(Integer areaId) {
this.areaId = areaId;
}
public String getLocationType() {
return this.locationType;
}
public void setLocationType(String locationType) {
this.locationType = locationType;
}
public Integer getXCoordinate() {
return this.xCoordinate;
}
public void setXCoordinate(Integer xCoordinate) {
this.xCoordinate = xCoordinate;
}
public Integer getYCoordinate() {
return this.yCoordinate;
}
public void setYCoordinate(Integer yCoordinate) {
this.yCoordinate = yCoordinate;
}
public Integer getZCoordinate() {
return this.zCoordinate;
}
public void setZCoordinate(Integer zCoordinate) {
this.zCoordinate = zCoordinate;
}
public Float getMaxCapacity() {
return this.maxCapacity;
}
public void setMaxCapacity(Float maxCapacity) {
this.maxCapacity = maxCapacity;
}
public Float getCurrentCapacity() {
return this.currentCapacity;
}
public void setCurrentCapacity(Float currentCapacity) {
this.currentCapacity = currentCapacity;
}
public Float getWeightLimit() {
return this.weightLimit;
}
public void setWeightLimit(Float weightLimit) {
this.weightLimit = weightLimit;
}
public Float getLength() {
return this.length;
}
public void setLength(Float length) {
this.length = length;
}
public Float getWidth() {
return this.width;
}
public void setWidth(Float width) {
this.width = width;
}
public Float getHeight() {
return this.height;
}
public void setHeight(Float height) {
this.height = height;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public String getRfidAntennaId() {
return this.rfidAntennaId;
}
public void setRfidAntennaId(String rfidAntennaId) {
this.rfidAntennaId = rfidAntennaId;
}
public String getLastInventoryTime() {
return this.lastInventoryTime;
}
public void setLastInventoryTime(String lastInventoryTime) {
this.lastInventoryTime = lastInventoryTime;
}
public String getDelFlag() {
return this.delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getCreateTime() {
return this.createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
package com.sxyz.rfid.greendao.model;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Property;
import java.io.Serializable;
/**
* 主要功能: 仓库表
*
* @Description:
* @Project: rfid-app
* @Package: com.sxyz.rfid.greendao.model
* @author: chunyuanwu
* @date: 2026年01月16日 14:26
* @version: 1.0.0
*/
@Entity(nameInDb = "wms_warehouse")
public class WmsWarehouse implements Serializable {
private static final long serialVersionUID = 1L;
@Property(nameInDb = "warehouse_id")
private Long warehouseId;
@Property(nameInDb = "warehouse_code")
private String warehouseCode;
@Property(nameInDb = "warehouse_name")
private String warehouseName;
@Property(nameInDb = "warehouse_type")
private String warehouseType;
@Property(nameInDb = "area")
private Float area;
@Property(nameInDb = "capacity")
private Float capacity;
@Property(nameInDb = "location")
private String location;
@Property(nameInDb = "manager_id")
private Long managerId;
@Property(nameInDb = "status")
private String status;
@Property(nameInDb = "del_flag")
private String delFlag;
@Property(nameInDb = "create_time")
private String createTime;
@Property(nameInDb = "update_time")
private String updateTime;
@Property(nameInDb = "remark")
private String remark;
@Generated(hash = 410946761)
public WmsWarehouse(Long warehouseId, String warehouseCode,
String warehouseName, String warehouseType, Float area, Float capacity,
String location, Long managerId, String status, String delFlag,
String createTime, String updateTime, String remark) {
this.warehouseId = warehouseId;
this.warehouseCode = warehouseCode;
this.warehouseName = warehouseName;
this.warehouseType = warehouseType;
this.area = area;
this.capacity = capacity;
this.location = location;
this.managerId = managerId;
this.status = status;
this.delFlag = delFlag;
this.createTime = createTime;
this.updateTime = updateTime;
this.remark = remark;
}
@Generated(hash = 775569255)
public WmsWarehouse() {
}
public Long getWarehouseId() {
return this.warehouseId;
}
public void setWarehouseId(Long warehouseId) {
this.warehouseId = warehouseId;
}
public String getWarehouseCode() {
return this.warehouseCode;
}
public void setWarehouseCode(String warehouseCode) {
this.warehouseCode = warehouseCode;
}
public String getWarehouseName() {
return this.warehouseName;
}
public void setWarehouseName(String warehouseName) {
this.warehouseName = warehouseName;
}
public String getWarehouseType() {
return this.warehouseType;
}
public void setWarehouseType(String warehouseType) {
this.warehouseType = warehouseType;
}
public Float getArea() {
return this.area;
}
public void setArea(Float area) {
this.area = area;
}
public Float getCapacity() {
return this.capacity;
}
public void setCapacity(Float capacity) {
this.capacity = capacity;
}
public String getLocation() {
return this.location;
}
public void setLocation(String location) {
this.location = location;
}
public Long getManagerId() {
return this.managerId;
}
public void setManagerId(Long managerId) {
this.managerId = managerId;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public String getDelFlag() {
return this.delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getCreateTime() {
return this.createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
...@@ -28,6 +28,8 @@ import com.ubx.usdk.USDKManager; ...@@ -28,6 +28,8 @@ import com.ubx.usdk.USDKManager;
import com.ubx.usdk.rfid.RfidManager; import com.ubx.usdk.rfid.RfidManager;
import com.ubx.usdk.util.SoundTool; import com.ubx.usdk.util.SoundTool;
import sql.com.yz.db.DaoSession;
/** /**
* 主要功能: 首页 * 主要功能: 首页
* *
...@@ -47,6 +49,7 @@ public class MainActivity extends BaseActivity<ActivityMainBinding> implements I ...@@ -47,6 +49,7 @@ public class MainActivity extends BaseActivity<ActivityMainBinding> implements I
public RfidManager mRfidManager;//RFID实例 public RfidManager mRfidManager;//RFID实例
public int readerType = 0;//阅读器类型 public int readerType = 0;//阅读器类型
private ILoginPresenter mILoginPresenter; private ILoginPresenter mILoginPresenter;
private DaoSession daoSession;
@Override @Override
public void initParms(Bundle mBundle) { public void initParms(Bundle mBundle) {
...@@ -68,6 +71,11 @@ public class MainActivity extends BaseActivity<ActivityMainBinding> implements I ...@@ -68,6 +71,11 @@ public class MainActivity extends BaseActivity<ActivityMainBinding> implements I
// mBinding.bottombar.setMode(BottomNavigationBar.MODE_DEFAULT); // mBinding.bottombar.setMode(BottomNavigationBar.MODE_DEFAULT);
// mBinding.bottombar.setBackgroundStyle(BottomNavigationBar.BACKGROUND_STYLE_RIPPLE);//设置Mode和BackgroundStyle // mBinding.bottombar.setBackgroundStyle(BottomNavigationBar.BACKGROUND_STYLE_RIPPLE);//设置Mode和BackgroundStyle
mBinding.bottombar.addItem(new BottomNavigationItem(imageViewArray[0], strings[0]).setActiveColorResource(R.color.purple_200)).addItem(new BottomNavigationItem(imageViewArray[1], strings[1]).setActiveColorResource(R.color.purple_200)).addItem(new BottomNavigationItem(imageViewArray[2], strings[2]).setActiveColorResource(R.color.purple_200)).setFirstSelectedPosition(0).setBarBackgroundColor(R.color.c_f9f9fc).initialise(); mBinding.bottombar.addItem(new BottomNavigationItem(imageViewArray[0], strings[0]).setActiveColorResource(R.color.purple_200)).addItem(new BottomNavigationItem(imageViewArray[1], strings[1]).setActiveColorResource(R.color.purple_200)).addItem(new BottomNavigationItem(imageViewArray[2], strings[2]).setActiveColorResource(R.color.purple_200)).setFirstSelectedPosition(0).setBarBackgroundColor(R.color.c_f9f9fc).initialise();
// Out model = new Out();
// model.setName("111");
// daoSession = GreenDaoManager.getInstance().getDaoSession();
// daoSession.insert(model);
} }
......
...@@ -27,6 +27,7 @@ import com.sxyz.rfid.presenter.model.UserInfoModel; ...@@ -27,6 +27,7 @@ import com.sxyz.rfid.presenter.model.UserInfoModel;
import com.sxyz.rfid.presenter.view.ILoginView; import com.sxyz.rfid.presenter.view.ILoginView;
import com.sxyz.rfid.ui.MainActivity; import com.sxyz.rfid.ui.MainActivity;
import com.sxyz.rfid.ui.login.bean.UserBean; import com.sxyz.rfid.ui.login.bean.UserBean;
import com.sxyz.rfid.ui.review.offline.ReviewOfflineActivity;
import com.sxyz.rfid.utils.LocalUtils; import com.sxyz.rfid.utils.LocalUtils;
import com.sxyz.rfid.utils.ToastUtil; import com.sxyz.rfid.utils.ToastUtil;
import com.sxyz.rfid.widgets.DialogUtil; import com.sxyz.rfid.widgets.DialogUtil;
...@@ -74,6 +75,7 @@ public class LoginActivity extends BaseActivity<ActivityLoginBinding> implements ...@@ -74,6 +75,7 @@ public class LoginActivity extends BaseActivity<ActivityLoginBinding> implements
mBinding.ivEye.setOnClickListener(this); mBinding.ivEye.setOnClickListener(this);
mBinding.tvLogin.setOnClickListener(this); mBinding.tvLogin.setOnClickListener(this);
mBinding.txtWellcome.setOnClickListener(this); mBinding.txtWellcome.setOnClickListener(this);
mBinding.tvOffline.setOnClickListener(this);
} }
@Override @Override
...@@ -119,6 +121,10 @@ public class LoginActivity extends BaseActivity<ActivityLoginBinding> implements ...@@ -119,6 +121,10 @@ public class LoginActivity extends BaseActivity<ActivityLoginBinding> implements
if (!AppConfig.DEBUG) { if (!AppConfig.DEBUG) {
continuousClick(COUNTS, DURATION); continuousClick(COUNTS, DURATION);
} }
}
break;
case R.id.tvOffline: {//离线执行盘点列表
startActivity(ReviewOfflineActivity.class);//跳转离线执行盘点列表
break; break;
} }
} }
......
...@@ -42,6 +42,8 @@ import java.util.List; ...@@ -42,6 +42,8 @@ import java.util.List;
import java.util.Set; import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import sql.com.yz.db.DaoSession;
/** /**
* 主要功能: 出库 * 主要功能: 出库
* *
...@@ -53,7 +55,7 @@ import java.util.stream.Collectors; ...@@ -53,7 +55,7 @@ import java.util.stream.Collectors;
* @version: 1.0.0 * @version: 1.0.0
*/ */
public class OutboundActivity extends BaseActivity<ActivityOutboundBinding> implements IOutBoundView { public class OutboundActivity extends BaseActivity<ActivityOutboundBinding> implements IOutBoundView {
// private DaoSession daoSession; private DaoSession daoSession;
private OutBoundDetailsAdapter mOutBoundAdapter; private OutBoundDetailsAdapter mOutBoundAdapter;
private List<OutBoundDetailModel.RowsBean> list = new ArrayList<>(); private List<OutBoundDetailModel.RowsBean> list = new ArrayList<>();
private List<OutboundFridModel.RowsBean> outBoundFridList = new ArrayList<>(); private List<OutboundFridModel.RowsBean> outBoundFridList = new ArrayList<>();
......
...@@ -3,9 +3,6 @@ package com.sxyz.rfid.ui.out; ...@@ -3,9 +3,6 @@ package com.sxyz.rfid.ui.out;
import static android.view.View.GONE; import static android.view.View.GONE;
import static android.view.View.VISIBLE; import static android.view.View.VISIBLE;
import android.Manifest;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle; import android.os.Bundle;
import android.text.Editable; import android.text.Editable;
import android.text.TextWatcher; import android.text.TextWatcher;
...@@ -16,38 +13,23 @@ import androidx.fragment.app.Fragment; ...@@ -16,38 +13,23 @@ import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import com.chad.library.adapter.base.listener.OnLoadMoreListener; import com.chad.library.adapter.base.listener.OnLoadMoreListener;
import com.hjq.permissions.OnPermission;
import com.hjq.permissions.Permission;
import com.hjq.permissions.XXPermissions;
import com.sxyz.rfid.R; import com.sxyz.rfid.R;
import com.sxyz.rfid.base.BaseFragment; import com.sxyz.rfid.base.BaseFragment;
import com.sxyz.rfid.databinding.FragmentOutboundBinding; import com.sxyz.rfid.databinding.FragmentOutboundBinding;
import com.sxyz.rfid.greendao.GreenDaoManager;
import com.sxyz.rfid.greendao.model.Out;
import com.sxyz.rfid.presenter.IDictPresenter;
import com.sxyz.rfid.presenter.IOutBoundPresenter; import com.sxyz.rfid.presenter.IOutBoundPresenter;
import com.sxyz.rfid.presenter.imp.DictPresenterImpl;
import com.sxyz.rfid.presenter.imp.OutBoundPresenterImpl; import com.sxyz.rfid.presenter.imp.OutBoundPresenterImpl;
import com.sxyz.rfid.presenter.model.DictModel;
import com.sxyz.rfid.presenter.model.OutBoundDetailModel; import com.sxyz.rfid.presenter.model.OutBoundDetailModel;
import com.sxyz.rfid.presenter.model.OutboundFlowingWaterModel; import com.sxyz.rfid.presenter.model.OutboundFlowingWaterModel;
import com.sxyz.rfid.presenter.model.OutboundFridModel; import com.sxyz.rfid.presenter.model.OutboundFridModel;
import com.sxyz.rfid.presenter.model.OutboundModel; import com.sxyz.rfid.presenter.model.OutboundModel;
import com.sxyz.rfid.presenter.view.IDictView;
import com.sxyz.rfid.presenter.view.IOutBoundView; import com.sxyz.rfid.presenter.view.IOutBoundView;
import com.sxyz.rfid.ui.MainActivity;
import com.sxyz.rfid.ui.out.adapter.OutBoundAdapter; import com.sxyz.rfid.ui.out.adapter.OutBoundAdapter;
import com.sxyz.rfid.utils.L;
import com.sxyz.rfid.utils.StringUtil; import com.sxyz.rfid.utils.StringUtil;
import com.sxyz.rfid.widgets.CustomLoadMoreView; import com.sxyz.rfid.widgets.CustomLoadMoreView;
import org.greenrobot.greendao.query.QueryBuilder;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import sql.com.yz.db.DaoSession;
/** /**
* 主要功能: * 主要功能:
* *
......
...@@ -8,26 +8,16 @@ import androidx.recyclerview.widget.LinearLayoutManager; ...@@ -8,26 +8,16 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import com.blankj.utilcode.util.StringUtils; import com.blankj.utilcode.util.StringUtils;
import com.sxyz.rfid.R; import com.sxyz.rfid.R;
import com.sxyz.rfid.base.BaseActivity; import com.sxyz.rfid.base.BaseActivity;
import com.sxyz.rfid.databinding.ActivityOutboundDetailBinding;
import com.sxyz.rfid.databinding.ActivityReviewDetailBinding; import com.sxyz.rfid.databinding.ActivityReviewDetailBinding;
import com.sxyz.rfid.presenter.IOutBoundPresenter;
import com.sxyz.rfid.presenter.IReviewPresenter; import com.sxyz.rfid.presenter.IReviewPresenter;
import com.sxyz.rfid.presenter.imp.OutBoundPresenterImpl;
import com.sxyz.rfid.presenter.imp.ReviewPresenterImpl; import com.sxyz.rfid.presenter.imp.ReviewPresenterImpl;
import com.sxyz.rfid.presenter.model.OutBoundDetailModel;
import com.sxyz.rfid.presenter.model.OutboundFlowingWaterModel;
import com.sxyz.rfid.presenter.model.OutboundFridModel;
import com.sxyz.rfid.presenter.model.OutboundModel;
import com.sxyz.rfid.presenter.model.ReviewDetailListModel; import com.sxyz.rfid.presenter.model.ReviewDetailListModel;
import com.sxyz.rfid.presenter.model.ReviewDetailModel; import com.sxyz.rfid.presenter.model.ReviewDetailModel;
import com.sxyz.rfid.presenter.model.ReviewModel; import com.sxyz.rfid.presenter.model.ReviewModel;
import com.sxyz.rfid.presenter.model.ReviewResultModel; import com.sxyz.rfid.presenter.model.ReviewResultModel;
import com.sxyz.rfid.presenter.model.ReviewRfidTaskCheckModel; import com.sxyz.rfid.presenter.model.ReviewRfidTaskCheckModel;
import com.sxyz.rfid.presenter.view.IOutBoundView;
import com.sxyz.rfid.presenter.view.IReviewView; import com.sxyz.rfid.presenter.view.IReviewView;
import com.sxyz.rfid.ui.out.OutboundDetailListActivity; import com.sxyz.rfid.ui.review.adapter.ReviewDetailAdapter;
import com.sxyz.rfid.ui.out.adapter.OutBoundDetailAdapter;
import com.sxyz.rfid.ui.out.adapter.ReviewDetailAdapter;
import com.sxyz.rfid.utils.StringUtil; import com.sxyz.rfid.utils.StringUtil;
import java.util.ArrayList; import java.util.ArrayList;
......
...@@ -29,7 +29,7 @@ import com.sxyz.rfid.presenter.model.ReviewResultModel; ...@@ -29,7 +29,7 @@ import com.sxyz.rfid.presenter.model.ReviewResultModel;
import com.sxyz.rfid.presenter.model.ReviewRfidTaskCheckModel; import com.sxyz.rfid.presenter.model.ReviewRfidTaskCheckModel;
import com.sxyz.rfid.presenter.model.ReviewTaskCheck; import com.sxyz.rfid.presenter.model.ReviewTaskCheck;
import com.sxyz.rfid.presenter.view.IReviewView; import com.sxyz.rfid.presenter.view.IReviewView;
import com.sxyz.rfid.ui.out.adapter.ReviewDetailAdapter; import com.sxyz.rfid.ui.review.adapter.ReviewDetailAdapter;
import com.sxyz.rfid.utils.L; import com.sxyz.rfid.utils.L;
import com.sxyz.rfid.utils.LocalUtils; import com.sxyz.rfid.utils.LocalUtils;
import com.sxyz.rfid.utils.StringUtil; import com.sxyz.rfid.utils.StringUtil;
......
package com.sxyz.rfid.ui.out.adapter; package com.sxyz.rfid.ui.review.adapter;
import android.view.View; import android.view.View;
import android.widget.ImageView; import android.widget.ImageView;
...@@ -13,9 +13,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter; ...@@ -13,9 +13,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.LoadMoreModule; import com.chad.library.adapter.base.module.LoadMoreModule;
import com.chad.library.adapter.base.viewholder.BaseViewHolder; import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sxyz.rfid.R; import com.sxyz.rfid.R;
import com.sxyz.rfid.presenter.model.OutBoundDetailModel;
import com.sxyz.rfid.presenter.model.ReviewDetailListModel; import com.sxyz.rfid.presenter.model.ReviewDetailListModel;
import com.sxyz.rfid.presenter.model.ReviewModel;
import java.util.List; import java.util.List;
......
package com.sxyz.rfid.ui.review.offline;
import static android.view.View.GONE;
import static android.view.View.VISIBLE;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.sxyz.rfid.R;
import com.sxyz.rfid.base.BaseActivity;
import com.sxyz.rfid.databinding.ActivityReviewOfflineBinding;
import com.sxyz.rfid.greendao.GreenDaoManager;
import com.sxyz.rfid.greendao.model.WmsInventoryTask;
import com.sxyz.rfid.ui.review.offline.adapter.ReviewOfflineAdapter;
import com.sxyz.rfid.utils.StringUtil;
import java.util.ArrayList;
import java.util.List;
import sql.com.yz.db.DaoSession;
import sql.com.yz.db.WmsInventoryTaskDao;
/**
* 主要功能: 离线执行盘点列表
*
* @Description: 离线执行盘点列表
* @Project: rfid-app
* @Package: com.sxyz.rfid.ui.review.offline
* @author: chunyuanwu
* @date: 2026年01月15日 13:54
* @version: 1.0.0
*/
public class ReviewOfflineActivity extends BaseActivity<ActivityReviewOfflineBinding> {
private DaoSession daoSession;
private List<WmsInventoryTask> mList = new ArrayList<>();
private ReviewOfflineAdapter mAdapter;
@Override
public void initParms(Bundle mBundle) {
}
@Override
protected ActivityReviewOfflineBinding getViewBinding() {
return ActivityReviewOfflineBinding.inflate(getLayoutInflater());
}
@Override
protected void initView() {
initToolBar("执行盘点列表");
mBinding.recyclerView.setLayoutManager(new LinearLayoutManager(mActivity));
mAdapter = new ReviewOfflineAdapter(R.layout.item_offline_review, mList);
mBinding.recyclerView.setAdapter(mAdapter);
}
@Override
protected void setListener() {
mBinding.swipeRefreshLayout.setOnRefreshListener(this::getData);
mBinding.searchEtInput.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
if (s.length() > 0) {
mBinding.ivSearch.setVisibility(VISIBLE);
} else {
mBinding.ivSearch.setVisibility(GONE);
}
}
@Override
public void afterTextChanged(Editable s) {
}
});
mBinding.ivSearch.setOnClickListener(v -> {
mBinding.searchEtInput.setText("");
getData();
});
mBinding.searchEtInput.setOnEditorActionListener((v, actionId, event) -> {
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
getData();
return true;
}
return false;
});
mAdapter.setOnItemClickListener(new ReviewOfflineAdapter.OnItemClickListener() {
@Override
public void onDeleteClick(int position, WmsInventoryTask item) {
//离线版不做删除操作
}
@Override
public void onItemClick(int position, WmsInventoryTask item) {
// 处理详情点击事件
Bundle bundle = new Bundle();
bundle.putSerializable("item", item);
startActivity(ReviewOfflineDetailActivity.class, bundle);
}
@Override
public void onCopyClick(int position, WmsInventoryTask item) {
StringUtil.copyToClipboard(mActivity, item.getTaskNo());
}
@Override
public void onReviewTaskClick(int position, WmsInventoryTask item) {
// 处理出库点击事件
Bundle bundle = new Bundle();
bundle.putSerializable("item", item);
startActivity(ReviewOfflineTaskActivity.class, bundle);
}
// 处理结束盘点点击事件
@Override
public void onStopTaskClick(int position, WmsInventoryTask item) {
// new AlertDialog.Builder(mActivity).setTitle("提示").setMessage("确定结束该盘点任务吗?").setPositiveButton("确定", (dialog, which) -> {
// mPresenter.doStopReviewTask(ReviewFragment.this, item.getTaskId());
// }).setNegativeButton("取消", null).show();
}
});
}
@Override
protected void onResume() {
super.onResume();
//刷新数据
getData();
}
protected void getData() {
daoSession = GreenDaoManager.getInstance().getDaoSession();
if (daoSession == null) {
//数据库不存在
mList.clear();
mAdapter.notifyDataSetChanged();
mBinding.includedNoDb.llNoDb.setVisibility(View.VISIBLE);
} else {
//根据任务编号查询所有盘点任务
mList = daoSession.queryBuilder(WmsInventoryTask.class).where(WmsInventoryTaskDao.Properties.TaskNo.like("%" + mBinding.searchEtInput.getText().toString() + "%")).build().forCurrentThread().list();
//设置新的数据集
mAdapter.setNewInstance(mList);
//隐藏暂无数据布局
mBinding.includedNoDb.llNoDb.setVisibility(View.GONE);
//判断是否为空 如果为空 则显示暂无数据 否则 隐藏暂无数据
if (mList.isEmpty()) {
mBinding.includedNothing.llNothing.setVisibility(View.VISIBLE);
} else {
mBinding.includedNothing.llNothing.setVisibility(View.GONE);
}
}
//关闭刷新动画
mBinding.swipeRefreshLayout.setRefreshing(false);
}
@Override
protected void initData() {
}
@Override
protected void onDestroy() {
super.onDestroy();
if (daoSession != null) {
try {
daoSession.clear();
GreenDaoManager.getInstance().closeConnection();
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
package com.sxyz.rfid.ui.review.offline;
import android.os.Bundle;
import android.view.View;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.blankj.utilcode.util.StringUtils;
import com.google.gson.Gson;
import com.sxyz.rfid.R;
import com.sxyz.rfid.base.BaseActivity;
import com.sxyz.rfid.databinding.ActivityReviewDetailBinding;
import com.sxyz.rfid.greendao.GreenDaoManager;
import com.sxyz.rfid.greendao.model.WmsInventoryTask;
import com.sxyz.rfid.greendao.model.WmsInventoryTaskDetail;
import com.sxyz.rfid.ui.review.offline.adapter.ReviewOfflineDetailAdapter;
import com.sxyz.rfid.utils.L;
import com.sxyz.rfid.utils.StringUtil;
import java.util.ArrayList;
import java.util.List;
import sql.com.yz.db.DaoSession;
import sql.com.yz.db.WmsInventoryTaskDetailDao;
/**
* 主要功能: 盘点详情 、 任务基础信息、任务明细信息
*
* @Description: 盘点详情 、 任务基础信息、任务明细信息
* @Project: rfid-app
* @Package: com.sxyz.rfid.ui.review
* @author: chunyuanwu
* @date: 2025年12月29日 18:18
* @version: 1.0.0
*/
public class ReviewOfflineDetailActivity extends BaseActivity<ActivityReviewDetailBinding> {
private WmsInventoryTask item;
private ReviewOfflineDetailAdapter mAdapter;
private List<WmsInventoryTaskDetail> mList = new ArrayList<>();
private DaoSession daoSession;
@Override
public void initParms(Bundle mBundle) {
item = (WmsInventoryTask) mBundle.getSerializable("item");
}
@Override
protected ActivityReviewDetailBinding getViewBinding() {
return ActivityReviewDetailBinding.inflate(getLayoutInflater());
}
@Override
protected void initView() {
initToolBar("盘点详情");
mBinding.rvOutboundDetails.setLayoutManager(new LinearLayoutManager(mActivity));
mAdapter = new ReviewOfflineDetailAdapter(R.layout.item_review_detail, mList);
mBinding.rvOutboundDetails.setAdapter(mAdapter);
}
@Override
protected void setListener() {
//复制按钮点击事件
mBinding.tvTaskNo.setOnClickListener(v -> {
StringUtil.copyToClipboard(this, item.getTaskNo());
});
//出库明细点击事件
mAdapter.setOnItemClickListener(new ReviewOfflineDetailAdapter.OnItemClickListener() {
@Override
public void onCopy1ItemClick(int position, WmsInventoryTaskDetail item) {
StringUtil.copyToClipboard(mActivity, item.getBatchNo());
}
@Override
public void onCopy2ItemClick(int position, WmsInventoryTaskDetail item) {
StringUtil.copyToClipboard(mActivity, item.getRfidTag());
}
});
}
@Override
protected void initData() {
//任务编号
mBinding.tvTaskNo.setText(item.getTaskNo());
switch (item.getTaskStatus()) {
case "0":
mBinding.tvTaskStatus.setText("未完成");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_red_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.red));
break;
case "1":
mBinding.tvTaskStatus.setText("进行中");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_org_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.text_orange3));
break;
case "2":
mBinding.tvTaskStatus.setText("已完成");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_green_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.green));
break;
case "3":
mBinding.tvTaskStatus.setText("已结束");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_gray_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.c_6666));
break;
default:
mBinding.tvTaskStatus.setText("-");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_gray_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.c_6666));
break;
}
//任务名称
mBinding.tvTaskName.setText(!StringUtils.isEmpty(item.getTaskName()) ? item.getTaskName() : "-");
//仓库名称
mBinding.txtWarehouseName.setText(!StringUtils.isEmpty(item.getWarehouseName()) ? item.getWarehouseName() : "-");
//已盘数
mBinding.txtReviewNumber.setText(item.getCountedItems() + "");
//总盘点数
mBinding.txtTotalNumber.setText(item.getTotalItems() + "");
//出库人
mBinding.txtRemark.setText(!StringUtils.isEmpty(item.getRemark()) ? item.getRemark() : "-");
daoSession = GreenDaoManager.getInstance().getDaoSession();
if (daoSession == null) {
//数据库不存在
mList.clear();
mAdapter.notifyDataSetChanged();
mBinding.includedNoDb.llNoDb.setVisibility(View.VISIBLE);
} else {
//根据item.getTaskId()查询任务明细
mList = daoSession.getWmsInventoryTaskDetailDao().queryBuilder()
.where(WmsInventoryTaskDetailDao.Properties.TaskId.eq(item.getTaskId()))
.list();
//设置新的数据集
mAdapter.setNewInstance(mList);
//隐藏暂无数据布局
mBinding.includedNoDb.llNoDb.setVisibility(View.GONE);
//判断是否为空 如果为空 则显示暂无数据 否则 隐藏暂无数据
if (mList.isEmpty()) {
mBinding.includedNothing.llNothing.setVisibility(View.VISIBLE);
} else {
mBinding.includedNothing.llNothing.setVisibility(View.GONE);
}
}
L.i("list ======\n " + new Gson().toJson(mList));
}
@Override
protected void onDestroy() {
super.onDestroy();
if (daoSession != null) {
try {
daoSession.clear();
GreenDaoManager.getInstance().closeConnection();
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
package com.sxyz.rfid.ui.review.offline;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.device.ScanManager;
import android.device.scanner.configuration.Triggering;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.blankj.utilcode.util.StringUtils;
import com.google.gson.Gson;
import com.sxyz.rfid.App;
import com.sxyz.rfid.R;
import com.sxyz.rfid.base.BaseActivity;
import com.sxyz.rfid.databinding.ActivityOfflineReviewTaskDetailBinding;
import com.sxyz.rfid.greendao.GreenDaoManager;
import com.sxyz.rfid.greendao.model.WmsArea;
import com.sxyz.rfid.greendao.model.WmsInventory;
import com.sxyz.rfid.greendao.model.WmsInventoryResult;
import com.sxyz.rfid.greendao.model.WmsInventoryTask;
import com.sxyz.rfid.greendao.model.WmsInventoryTaskDetail;
import com.sxyz.rfid.greendao.model.WmsLocation;
import com.sxyz.rfid.greendao.model.WmsWarehouse;
import com.sxyz.rfid.ui.review.offline.adapter.ReviewOfflineDetailAdapter;
import com.sxyz.rfid.utils.L;
import com.sxyz.rfid.utils.StringUtil;
import com.sxyz.rfid.utils.ToastUtil;
import com.sxyz.rfid.widgets.OEMSymbologyId;
import com.ubx.usdk.RFIDSDKManager;
import com.ubx.usdk.rfid.aidl.IRfidCallback;
import com.ubx.usdk.util.SoundTool;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import sql.com.yz.db.DaoSession;
import sql.com.yz.db.WmsAreaDao;
import sql.com.yz.db.WmsInventoryDao;
import sql.com.yz.db.WmsInventoryResultDao;
import sql.com.yz.db.WmsInventoryTaskDao;
import sql.com.yz.db.WmsInventoryTaskDetailDao;
import sql.com.yz.db.WmsLocationDao;
import sql.com.yz.db.WmsWarehouseDao;
/**
* 主要功能: 盘点任务详情
*
* @Description: 盘点任务详情
* @Project: rfid-app
* @Package: com.sxyz.rfid.ui.review
* @author: chunyuanwu
* @date: 2025年12月29日 18:18
* @version: 1.0.0
*/
public class ReviewOfflineTaskActivity extends BaseActivity<ActivityOfflineReviewTaskDetailBinding> {
private WmsInventoryTask item;
private ReviewOfflineDetailAdapter mAdapter;
private List<WmsInventoryTaskDetail> list = new ArrayList<>();
private boolean isMenuOpen = false;
private boolean isScan = false;
private boolean isRfid = false;
private int inventoryFlag = 0;
private ScanCallback callback = new ScanCallback();
private List<WmsInventoryTaskDetail> mList = new ArrayList<>();
private DaoSession daoSession;
@Override
public void initParms(Bundle mBundle) {
item = (WmsInventoryTask) mBundle.getSerializable("item");
L.i("item ======\n " + new Gson().toJson(item));
}
@Override
protected ActivityOfflineReviewTaskDetailBinding getViewBinding() {
return ActivityOfflineReviewTaskDetailBinding.inflate(getLayoutInflater());
}
@Override
protected void initView() {
initToolBar("执行盘点");
findViewById(R.id.iv_back).setOnClickListener(v -> {
if (isMenuOpen) {
closeMenu();
} else {
onBackPressed();
}
});
mBinding.rvOutboundDetails.setLayoutManager(new LinearLayoutManager(mActivity));
mAdapter = new ReviewOfflineDetailAdapter(R.layout.item_review_detail, list);
mBinding.rvOutboundDetails.setAdapter(mAdapter);
}
@Override
protected void setListener() {
if (RFIDSDKManager.getInstance().getRfidManager() != null) {
//注册rfid回调
RFIDSDKManager.getInstance().getRfidManager().registerCallback(callback);
}
//复制按钮点击事件
mBinding.tvTaskNo.setOnClickListener(v -> {
StringUtil.copyToClipboard(this, item.getTaskNo());
});
//出库明细点击事件
mAdapter.setOnItemClickListener(new ReviewOfflineDetailAdapter.OnItemClickListener() {
@Override
public void onCopy1ItemClick(int position, WmsInventoryTaskDetail item) {
StringUtil.copyToClipboard(mActivity, item.getBatchNo());
}
@Override
public void onCopy2ItemClick(int position, WmsInventoryTaskDetail item) {
StringUtil.copyToClipboard(mActivity, item.getRfidTag());
}
});
//如果菜单打开,点击空白区域关闭菜单
mBinding.ivClose.setOnClickListener(v -> {
if (isMenuOpen) {
closeMenu();
}
});
//rfid出库
mBinding.btnRfidOutbound.setOnClickListener(v -> {
if (!isMenuOpen) {
mBinding.tvTitle.setText("RFID出库");
isRfid = true;
isScan = false;
openMenu();
}
});
//扫码出库
mBinding.btnScanOutbound.setOnClickListener(v -> {
if (!isMenuOpen) {
mBinding.tvTitle.setText("扫码出库");
isScan = true;
isRfid = false;
openMenu();
}
});
//盘点方式 单盘/循环盘
mBinding.RgInventory.setOnCheckedChangeListener((group, checkedId) -> {
if (checkedId == mBinding.RbInventorySingle.getId()) {
inventoryFlag = 0;
App.mScanManager.setTriggerMode(Triggering.HOST);
} else if (checkedId == mBinding.RbInventoryLoop.getId()) {
inventoryFlag = 1;
App.mScanManager.setTriggerMode(Triggering.CONTINUOUS);
}
});
}
@Override
protected void initData() {
daoSession = GreenDaoManager.getInstance().getDaoSession();
if (daoSession == null) {
//数据库不存在
mList.clear();
mAdapter.notifyDataSetChanged();
mBinding.includedNoDb.llNoDb.setVisibility(View.VISIBLE);
} else {
//根据item.getTaskId()查询任务基础信息===========================================================================
WmsInventoryTask task = daoSession.getWmsInventoryTaskDao().load(item.getTaskId());
// L.i("task ======\n " + new Gson().toJson(task));
//任务编号
mBinding.tvTaskNo.setText(task.getTaskNo());
switch (task.getTaskStatus()) {
case "0":
mBinding.tvTaskStatus.setText("未完成");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_red_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.red));
break;
case "1":
mBinding.tvTaskStatus.setText("进行中");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_org_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.text_orange3));
break;
case "2":
mBinding.tvTaskStatus.setText("已完成");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_green_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.green));
break;
case "3":
mBinding.tvTaskStatus.setText("已结束");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_gray_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.c_6666));
break;
default:
mBinding.tvTaskStatus.setText("-");
mBinding.tvTaskStatus.setBackground(ContextCompat.getDrawable(this, R.drawable.status_gray_bg));
mBinding.tvTaskStatus.setTextColor(ContextCompat.getColor(this, R.color.c_6666));
break;
}
//任务名称
mBinding.tvTaskName.setText(!StringUtils.isEmpty(task.getTaskName()) ? task.getTaskName() : "-");
//仓库名称
mBinding.txtWarehouseName.setText(!StringUtils.isEmpty(task.getWarehouseName()) ? task.getWarehouseName() : "-");
//已盘数
mBinding.txtReviewNumber.setText(task.getCountedItems() + "");
//总盘点数
mBinding.txtTotalNumber.setText(task.getTotalItems() + "");
//出库人
mBinding.txtRemark.setText(!StringUtils.isEmpty(task.getRemark()) ? task.getRemark() : "-");
//根据item.getTaskId()查询任务明细信息列表===========================================================================
mList = daoSession.getWmsInventoryTaskDetailDao().queryBuilder().where(WmsInventoryTaskDetailDao.Properties.TaskId.eq(item.getTaskId())).list();
//L.i("list ======\n " + new Gson().toJson(mList));
//设置新的数据集
mAdapter.setNewInstance(mList);
//隐藏暂无数据布局
mBinding.includedNoDb.llNoDb.setVisibility(View.GONE);
//判断是否为空 如果为空 则显示暂无数据 否则 隐藏暂无数据
if (mList.isEmpty()) {
mBinding.includedNothing.llNothing.setVisibility(View.VISIBLE);
} else {
mBinding.includedNothing.llNothing.setVisibility(View.GONE);
}
//根据item.getTaskId()查询任务结果===========================================================================
WmsInventoryResult wmsInventoryResult = daoSession.getWmsInventoryResultDao().queryBuilder().where(WmsInventoryResultDao.Properties.TaskId.eq(item.getTaskId())).unique();
//总盘点数
mBinding.tvTotalItems.setText(wmsInventoryResult.getTotalItems() + "");
//已盘数 过滤出已盘的项 统计数量
mBinding.tvCountedItems.setText(wmsInventoryResult.getCountedItems() + "");
//盘盈数
mBinding.tvSurplusItems.setText(wmsInventoryResult.getSurplusItems() + "");
//盘亏数
mBinding.tvDeficitItems.setText(wmsInventoryResult.getDeficitItems() + "");
//盘点进度 已盘数/总盘点数*100%
int progress = (int) (wmsInventoryResult.getCountedItems() * 100.0 / wmsInventoryResult.getTotalItems());
mBinding.tvProgress.setText(progress + "%");
//进度条
mBinding.progressBar.setProgress(progress);
}
}
private void openMenu() {
mBinding.sideMenu.animate().translationX(0).setDuration(300).start();
isMenuOpen = true;
if (isScan) {
//开启扫码
App.mScanManager.openScanner();
}
}
private void closeMenu() {
mBinding.sideMenu.animate().translationX(-mBinding.sideMenu.getWidth()).setDuration(300).start();
isMenuOpen = false;
isScan = false;
isRfid = false;
//关闭扫码
App.mScanManager.stopDecode();
App.mScanManager.closeScanner();
//关闭rfid
if (RFIDSDKManager.getInstance().getRfidManager() != null) {
RFIDSDKManager.getInstance().getRfidManager().stopInventory();
}
}
/**
* 按键按下 开启扫描
**/
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((keyCode == 515 || keyCode == 523) && event.getRepeatCount() == 0) {
//RFID识别盘点
if (isRfid) {
if (inventoryFlag == 0) {//单盘
RFIDSDKManager.getInstance().getRfidManager().inventorySingle();//单次盘点
} else if (inventoryFlag == 1) {//循环盘
RFIDSDKManager.getInstance().getRfidManager().startRead();//少量标签盘点建议使用:0;盘点标签超过 100-200建议使用:1.
}
}
//二维码扫描
if (isScan) {
// mScanManager.startDecode();
}
mBinding.tvStatus.setText("正在盘点");
}
return super.onKeyDown(keyCode, event);
}
/**
* 按键抬起 关闭扫描
**/
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
if ((keyCode == 515 || keyCode == 523) && event.getRepeatCount() == 0) {
if (isRfid) {
if (RFIDSDKManager.getInstance().getRfidManager() != null) {
RFIDSDKManager.getInstance().getRfidManager().stopInventory();
}
}
//扫码出库 抬起 停止扫码
if (isScan) {
App.mScanManager.stopDecode();
}
mBinding.tvStatus.setText("");
}
return super.onKeyUp(keyCode, event);
}
/**
* RFID识别盘点 回调
*/
class ScanCallback implements IRfidCallback {
@Override
public void onInventoryTag(String EPC, final String TID, final String strRSSI) {
Log.e("xxx", "onInventoryTag:............... epc:" + EPC + " tid:" + TID);
SoundTool.getInstance(App.getContext()).playBeep(1);
mBinding.btnRfidOutbound.post(() -> {
if (daoSession != null) {
//将查询到的任务中的check_status 改为 1
String rfidTag = "BQ001";
updateTaskStatus(rfidTag, true);
}
});
}
/**
* 盘存结束回调(Inventory Command Operate End)
*/
@Override
public void onInventoryTagEnd() {
Log.i("xxx", "onInventoryTagEnd()");
}
}
/**
* 更新任务状态
*/
private void updateTaskStatus(String rfidOrScanTag, boolean isRfid) {
WmsInventoryTaskDetailDao wmsInventoryTaskDetailDao = daoSession.getWmsInventoryTaskDetailDao();
WmsInventoryTaskDetail taskDetail;
if (isRfid) {
taskDetail = wmsInventoryTaskDetailDao.queryBuilder().where(WmsInventoryTaskDetailDao.Properties.TaskId.eq(item.getTaskId())).where(WmsInventoryTaskDetailDao.Properties.RfidTag.eq(rfidOrScanTag)).build().unique();
} else {
taskDetail = wmsInventoryTaskDetailDao.queryBuilder().where(WmsInventoryTaskDetailDao.Properties.TaskId.eq(item.getTaskId())).where(WmsInventoryTaskDetailDao.Properties.BatchNo.eq(rfidOrScanTag)).build().unique();
}
if (taskDetail != null) {
//CheckStatus=1 已盘过,不重复盘
if (taskDetail.getCheckStatus().equals("1")) {
//已盘过,不重复盘
ToastUtil.showShort("该标签已盘过");
} else {
//盘存成功后,将盘存结果更新到任务详情中
//更新盘存状态为已盘1
taskDetail.setCheckStatus("1");
//更新盘存结果中的盘存差异原因 wcy=无差异;py=盘盈;pk=盘亏
taskDetail.setDiffReason("wcy");
//更新盘点时间为当前时间 时间戳
taskDetail.setCheckTime(new Date().getTime() + "");
//更新盘存结果中的盘存数量
wmsInventoryTaskDetailDao.update(taskDetail);
L.i("task:" + new Gson().toJson(taskDetail));
//根据item.getTaskId()查询任务结果,更新盘存数量
WmsInventoryResultDao wmsInventoryResultDao = daoSession.getWmsInventoryResultDao();
WmsInventoryResult wmsInventoryResult = wmsInventoryResultDao.queryBuilder().where(WmsInventoryResultDao.Properties.TaskId.eq(item.getTaskId())).unique();
if (wmsInventoryResult != null) {
//更新已盘数量+1
wmsInventoryResult.setCountedItems(wmsInventoryResult.getCountedItems() + 1);
wmsInventoryResultDao.update(wmsInventoryResult);
L.i("result:" + new Gson().toJson(wmsInventoryResult));
//将WmsInventoryTask的盘点数+1
WmsInventoryTaskDao wmsInventoryTaskDao = daoSession.getWmsInventoryTaskDao();
WmsInventoryTask wmsInventoryTask = wmsInventoryTaskDao.queryBuilder().where(WmsInventoryTaskDao.Properties.TaskId.eq(item.getTaskId())).unique();
if (wmsInventoryTask != null) {
wmsInventoryTask.setCountedItems(wmsInventoryTask.getCountedItems() + 1);
//判断是否完成所有盘存任务
if (wmsInventoryTask.getTotalItems() == wmsInventoryTask.getCountedItems()) {
wmsInventoryTask.setTaskStatus("2");//任务状态设置为2 已完成
}
wmsInventoryTaskDao.update(wmsInventoryTask);
}
}
//刷新页面数据
initData();
}
} else {
ToastUtil.showShort("盘盈");
//盘盈(查询库存表):在明细表中自增一条数据,根据rfidTag查询库存表WmsInventory数据
WmsInventoryDao wmsInventoryDao = daoSession.getWmsInventoryDao();
WmsInventory wmsInventory;
if (isRfid) {
wmsInventory = wmsInventoryDao.queryBuilder().where(WmsInventoryDao.Properties.RfidTag.eq(rfidOrScanTag)).unique();
} else {
wmsInventory = wmsInventoryDao.queryBuilder().where(WmsInventoryDao.Properties.BatchNo.eq(rfidOrScanTag)).unique();
}
if (wmsInventory != null) {
L.i("rfidTag查询获取库存数据:" + new Gson().toJson(wmsInventory));
//盘盈:在明细表中增加一条数据
WmsInventoryTaskDetail wmsInventoryTaskDetail = new WmsInventoryTaskDetail();
wmsInventoryTaskDetail.setInventoryId(wmsInventory.getInventoryId().intValue());
wmsInventoryTaskDetail.setTaskId(item.getTaskId().intValue());
wmsInventoryTaskDetail.setMaterialId(wmsInventory.getMaterialId());
wmsInventoryTaskDetail.setWarehouseId(wmsInventory.getWarehouseId());
//根据wmsInventory.getWarehouseId()查询仓库表WmsWarehouse数据
WmsWarehouseDao wmsWarehouseDao = daoSession.getWmsWarehouseDao();
WmsWarehouse wmsWarehouse = wmsWarehouseDao.queryBuilder().where(WmsWarehouseDao.Properties.WarehouseId.eq(wmsInventory.getWarehouseId())).unique();
if (wmsWarehouse != null) {
L.i("根据仓库id查询仓库数据:" + new Gson().toJson(wmsWarehouse));
wmsInventoryTaskDetail.setWarehouseName(wmsWarehouse.getWarehouseName());
}
wmsInventoryTaskDetail.setAreaId(wmsInventory.getAreaId());
//根据wmsInventory.getAreaId()查询库区表WmsArea数据
WmsAreaDao wmsAreaDao = daoSession.getWmsAreaDao();
WmsArea wmsArea = wmsAreaDao.queryBuilder().where(WmsAreaDao.Properties.AreaId.eq(wmsInventory.getAreaId())).unique();
if (wmsArea != null) {
L.i("根据库区id查询库区数据:" + new Gson().toJson(wmsArea));
wmsInventoryTaskDetail.setAreaName(wmsArea.getAreaName());
}
wmsInventoryTaskDetail.setLocationId(wmsInventory.getLocationId());
WmsLocationDao wmsLocationDao = daoSession.getWmsLocationDao();
WmsLocation wmsLocation = wmsLocationDao.queryBuilder().where(WmsLocationDao.Properties.LocationId.eq(wmsInventory.getLocationId())).unique();
if (wmsLocation != null) {
L.i("根据库位id查询库位数据:" + new Gson().toJson(wmsLocation));
wmsInventoryTaskDetail.setLocationName(wmsLocation.getLocationName());
}
wmsInventoryTaskDetail.setBatchNo(wmsInventory.getBatchNo());
// wmsInventoryTaskDetail.setSystemQty(wmsInventory.getSystemQty());//系统数量
// wmsInventoryTaskDetail.setActualQty(wmsInventory.getActualQty());//盘盈数量
// wmsInventoryTaskDetail.setDiffQty(wmsInventory.getDiffQty());//盘盈差异数量
// wmsInventoryTaskDetail.setCheckerId(item.getCheckerId());//盘盈检查人id
// wmsInventoryTaskDetail.setCheckerName(item.getCheckerName());//盘盈检查人姓名
wmsInventoryTaskDetail.setRfidTag(rfidOrScanTag);//盘盈算已盘点
wmsInventoryTaskDetail.setCheckStatus("1");//盘点状态设置为已盘1
wmsInventoryTaskDetail.setDiffReason("py");//盘存差异原因 wcy=无差异;py=盘盈;pk=盘亏
wmsInventoryTaskDetail.setCheckTime(new Date().getTime() + "");//盘盈检查时间 时间戳
wmsInventoryTaskDetail.setQualityStatus("0");//盘盈质量状态设置为1 正常
wmsInventoryTaskDetail.setDelFlag("0");//删除标志设置为0 正常
wmsInventoryTaskDetail.setCreateTime(new Date().getTime() + "");//创建时间 时间戳
wmsInventoryTaskDetail.setUpdateTime(new Date().getTime() + "");//更新时间 时间戳
wmsInventoryTaskDetailDao.insert(wmsInventoryTaskDetail);
L.i("新增一条盘盈数据:" + new Gson().toJson(wmsInventoryTaskDetail));
//根据item.getTaskId()查询任务结果,在结果表更新盘存数量================================================================================
WmsInventoryResultDao wmsInventoryResultDao = daoSession.getWmsInventoryResultDao();
WmsInventoryResult wmsInventoryResult = wmsInventoryResultDao.queryBuilder().where(WmsInventoryResultDao.Properties.TaskId.eq(item.getTaskId())).unique();
if (wmsInventoryResult != null) {
//更新总数量+1
wmsInventoryResult.setTotalItems(wmsInventoryResult.getTotalItems() + 1);
//更新已盘数量+1
wmsInventoryResult.setCountedItems(wmsInventoryResult.getCountedItems() + 1);
//更新盘盈数量+1
wmsInventoryResult.setSurplusItems(wmsInventoryResult.getSurplusItems() + 1);
wmsInventoryResultDao.update(wmsInventoryResult);
L.i("更新盘存结果数据:" + new Gson().toJson(wmsInventoryResult));
//将WmsInventoryTask的盘点数+1
WmsInventoryTaskDao wmsInventoryTaskDao = daoSession.getWmsInventoryTaskDao();
WmsInventoryTask wmsInventoryTask = wmsInventoryTaskDao.queryBuilder().where(WmsInventoryTaskDao.Properties.TaskId.eq(item.getTaskId())).unique();
if (wmsInventoryTask != null) {
wmsInventoryTask.setTotalItems(wmsInventoryTask.getTotalItems() + 1);
wmsInventoryTask.setCountedItems(wmsInventoryTask.getCountedItems() + 1);
if (wmsInventoryTask.getTotalItems() == wmsInventoryTask.getCountedItems()) {
wmsInventoryTask.setTaskStatus("2");//任务状态设置为2 已完成
}
wmsInventoryTaskDao.update(wmsInventoryTask);
}
}
//刷新页面数据
initData();
} else {
ToastUtil.showShort("盘盈不在库存中");
}
}
}
@Override
public void onPause() {
super.onPause();
if (RFIDSDKManager.getInstance().getRfidManager() != null) {
RFIDSDKManager.getInstance().getRfidManager().stopInventory();
}
registerReceiver(false);
}
@Override
protected void onResume() {
super.onResume();
registerReceiver(true);
}
/**
* @param register , ture register , false unregister
*/
private void registerReceiver(boolean register) {
if (register) {
IntentFilter filter = new IntentFilter();
filter.addAction(ScanManager.ACTION_DECODE);
registerReceiver(mReceiver, filter);
} else {
unregisterReceiver(mReceiver);
}
}
private BroadcastReceiver mReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
if (isScan) {
String action = intent.getAction();
if (action.equals(ScanManager.ACTION_DECODE)) {
String barcodeStr = intent.getStringExtra(ScanManager.BARCODE_STRING_TAG);
if (!TextUtils.isEmpty(barcodeStr)) {
byte scanType = intent.getByteExtra(ScanManager.BARCODE_TYPE_TAG, (byte) 0);
int engineType = OEMSymbologyId.getSymbologyId(App.mScanManager.getOutputParameter(7));
String barcodeFormat = OEMSymbologyId.stringFromSymbologyType(engineType, scanType);
L.i("条码格式:" + barcodeFormat + "\n" + barcodeStr);
mBinding.btnRfidOutbound.post(() -> {
String rfidTag = "IN2025122613490303880036";
updateTaskStatus(rfidTag, false);
});
}
}
}
}
};
// /**
// * 盘点结果
// *
// * @param model
// */
// @Override
// public void reviewResultSuccess(ReviewResultModel model) {
// if (model == null) {
// return;
// }
// if (model.getRows().isEmpty()) {
// return;
// }
// ReviewResultModel.RowsBean item = model.getRows().get(0);
// if (item == null) {
// return;
// }
// //总盘点数
// mBinding.tvTotalItems.setText(item.getTotalItems() + "");
// //已盘数
// mBinding.tvCountedItems.setText(item.getCountedItems() + "");
// //盘盈数
// mBinding.tvSurplusItems.setText(item.getSurplusItems() + "");
// //盘亏数
// mBinding.tvDeficitItems.setText(item.getDeficitItems() + "");
// //盘点进度 已盘数/总盘点数*100%
// int progress = (int) (item.getCountedItems() * 100.0 / item.getTotalItems());
// mBinding.tvProgress.setText(progress + "%");
// //进度条
// mBinding.progressBar.setProgress(progress);
// }
//
// /**
// * 执行盘点成功
// * 扫描任务
// */
// @Override
// public void reviewScanTaskCheckSuccess(ReviewRfidTaskCheckModel model) {
// if (model != null && model.getData() != null) {
// ReviewRfidTaskCheckModel.DataBean data = model.getData();
// //判断是否全部盘点完成 :已盘数等于总盘点数
// if (data.getTotalItems() == data.getCountedItems() || data.getCheckStatus().equals("2") || data.getCheckStatus().equals("3")) {
// new AlertDialogUtil(this).builder().setTitle("提示").setMsg("盘点已完成").setNegativeButton("我知道了", v -> {
// closeMenu();
// }).show();
// }
// }
// //刷新数据
// mPresenter.doReviewDetailList(this, item.getTaskId());
// mPresenter.doReviewDetail(this, item.getTaskId());
// mPresenter.doReviewResult(this, item.getTaskId());
// }
//
// /**
// * 执行盘点成功
// * RFID任务
// */
// @Override
// public void reviewRfidTaskCheckSuccess(ReviewRfidTaskCheckModel model) {
// if (model != null && model.getData() != null) {
// ReviewRfidTaskCheckModel.DataBean data = model.getData();
// //判断是否全部盘点完成 :已盘数等于总盘点数||状态为已完成
// if (data.getTotalItems() == data.getCountedItems() || data.getCheckStatus().equals("2") || data.getCheckStatus().equals("3")) {
// new AlertDialogUtil(this).builder().setTitle("提示").setMsg("盘点已完成").setNegativeButton("我知道了", v -> {
// closeMenu();
// }).show();
// }
// }
// //刷新数据
// mPresenter.doReviewDetailList(this, item.getTaskId());
// mPresenter.doReviewDetail(this, item.getTaskId());
// mPresenter.doReviewResult(this, item.getTaskId());
// }
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
return super.dispatchKeyEvent(event);
}
@Override
protected void onDestroy() {
super.onDestroy();
if (daoSession != null) {
try {
daoSession.clear();
GreenDaoManager.getInstance().closeConnection();
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
package com.sxyz.rfid.ui.review.offline.adapter;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import com.blankj.utilcode.util.StringUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sxyz.rfid.R;
import com.sxyz.rfid.greendao.model.WmsInventoryTask;
import com.sxyz.rfid.utils.ToastUtil;
import java.util.List;
/**
* 盘点适配器
*
* @author chunyuanwu
* @version 1.0.0
* @date 2025年12月27日 16:40
*/
public class ReviewOfflineAdapter extends BaseQuickAdapter<WmsInventoryTask, BaseViewHolder> {
public ReviewOfflineAdapter(int layoutResId, List<WmsInventoryTask> data) {
super(layoutResId, data);
}
@Override
protected void convert(@NonNull BaseViewHolder baseViewHolder, WmsInventoryTask dataBean) {
//出库单号
baseViewHolder.setText(R.id.tv_task_no, !StringUtils.isEmpty(dataBean.getTaskNo()) ? dataBean.getTaskNo() : "-");
//任务名称
baseViewHolder.setText(R.id.tv_task_name, !StringUtils.isEmpty(dataBean.getTaskName()) ? dataBean.getTaskName() : "-");
//仓库名称
baseViewHolder.setText(R.id.txt_warehouse_name, !StringUtils.isEmpty(dataBean.getWarehouseName()) ? dataBean.getWarehouseName() : "-");
//总盘点数
baseViewHolder.setText(R.id.txt_total_number, dataBean.getTotalItems() + "");
//已盘数
baseViewHolder.setText(R.id.txt_review_number, dataBean.getCountedItems() + "");
TextView reviewButton = baseViewHolder.getView(R.id.review_button);
TextView stopButton = baseViewHolder.getView(R.id.stop_button);
//任务状态
TextView taskStatus = baseViewHolder.getView(R.id.tv_task_status);
switch (dataBean.getTaskStatus()) {
case "0":
taskStatus.setText("未完成");
taskStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_red_bg));
taskStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.red));
reviewButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.green_bg));
reviewButton.setTextColor(ContextCompat.getColor(getContext(), R.color.white));
stopButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
stopButton.setTextColor(ContextCompat.getColor(getContext(), R.color.c_c1c1));
break;
case "1":
taskStatus.setText("进行中");
taskStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_org_bg));
taskStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.text_orange3));
reviewButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.green_bg));
reviewButton.setTextColor(ContextCompat.getColor(getContext(), R.color.white));
stopButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.red_bg4));
stopButton.setTextColor(ContextCompat.getColor(getContext(), R.color.white));
break;
case "2":
taskStatus.setText("已完成");
taskStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_green_bg));
taskStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.green));
reviewButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
reviewButton.setTextColor(ContextCompat.getColor(getContext(), R.color.c_c1c1));
stopButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
stopButton.setTextColor(ContextCompat.getColor(getContext(), R.color.c_c1c1));
break;
// case "3":
// taskStatus.setText("已结束");
// taskStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
// taskStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.c_6666));
// reviewButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
// reviewButton.setTextColor(ContextCompat.getColor(getContext(), R.color.c_c1c1));
// stopButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
// stopButton.setTextColor(ContextCompat.getColor(getContext(), R.color.c_c1c1));
// break;
default:
taskStatus.setText("-");
taskStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
taskStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.c_6666));
reviewButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
reviewButton.setTextColor(ContextCompat.getColor(getContext(), R.color.c_c1c1));
stopButton.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
stopButton.setTextColor(ContextCompat.getColor(getContext(), R.color.c_c1c1));
break;
}
//复制按钮
baseViewHolder.getView(R.id.tv_task_no).setOnClickListener(v -> {
if (mItemClickListener != null) {
mItemClickListener.onCopyClick(baseViewHolder.getLayoutPosition(), dataBean);
}
});
//详情按钮
baseViewHolder.getView(R.id.detail_button).setOnClickListener(v -> {
if (mItemClickListener != null) {
mItemClickListener.onItemClick(baseViewHolder.getLayoutPosition(), dataBean);
}
});
//执行盘点
reviewButton.setOnClickListener(v -> {
switch (dataBean.getTaskStatus()) {
case "0":
case "1":
if (mItemClickListener != null) {
mItemClickListener.onReviewTaskClick(baseViewHolder.getLayoutPosition(), dataBean);
}
break;
case "2":
ToastUtil.showShort("盘点已完成,无需执行盘点");
break;
// case "3":
// ToastUtil.showShort("盘点已结束,无需执行盘点");
// break;
default:
ToastUtil.showShort("未知状态,无法执行盘点");
break;
}
});
//删除按钮
// baseViewHolder.getView(R.id.delete_button).setOnClickListener(v -> {
// if (mItemClickListener != null) {
// mItemClickListener.onDeleteClick(baseViewHolder.getLayoutPosition(), dataBean);
// }
// });
//结束盘点
stopButton.setOnClickListener(v -> {
switch (dataBean.getTaskStatus()) {
case "0"://未开始
ToastUtil.showShort("盘点未开始,不能结束盘点");
break;
case "1"://已开始
if (mItemClickListener != null) {
mItemClickListener.onStopTaskClick(baseViewHolder.getLayoutPosition(), dataBean);
}
break;
case "2"://已完成
ToastUtil.showShort("盘点已完成,不能结束盘点");
break;
// case "3":
// ToastUtil.showShort("盘点已结束,不能结束盘点");
// break;
default:
ToastUtil.showShort("未知状态,无法结束盘点");
break;
}
});
}
public interface OnItemClickListener {
//删除
void onDeleteClick(int position, WmsInventoryTask item);
//详情
void onItemClick(int position, WmsInventoryTask item);
//复制按钮
void onCopyClick(int position, WmsInventoryTask item);
//执行盘点
void onReviewTaskClick(int position, WmsInventoryTask item);
//结束盘点
void onStopTaskClick(int position, WmsInventoryTask item);
}
private OnItemClickListener mItemClickListener;
public void setOnItemClickListener(OnItemClickListener mItemClickListener) {
this.mItemClickListener = mItemClickListener;
}
}
\ No newline at end of file
package com.sxyz.rfid.ui.review.offline.adapter;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import com.blankj.utilcode.util.StringUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.LoadMoreModule;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sxyz.rfid.R;
import com.sxyz.rfid.greendao.model.WmsInventoryTaskDetail;
import java.util.List;
/**
* 盘点详情 适配器
*
* @author chunyuanwu
* @version 1.0.0
* @date 2025年12月27日 16:40
*/
public class ReviewOfflineDetailAdapter extends BaseQuickAdapter<WmsInventoryTaskDetail, BaseViewHolder> implements LoadMoreModule {
public ReviewOfflineDetailAdapter(int layoutResId, List<WmsInventoryTaskDetail> data) {
super(layoutResId, data);
}
@Override
protected void convert(@NonNull BaseViewHolder baseViewHolder, WmsInventoryTaskDetail dataBean) {
//批次号
baseViewHolder.setText(R.id.tv_batch_no, !StringUtils.isEmpty(dataBean.getBatchNo()) ? dataBean.getBatchNo() : "-");
//RFID标签
baseViewHolder.setText(R.id.tv_rfid_tag, !StringUtils.isEmpty(dataBean.getRfidTag()) ? dataBean.getRfidTag() : "-");
//仓库名称
baseViewHolder.setText(R.id.tv_warehouse_name, !StringUtils.isEmpty(dataBean.getWarehouseName()) ? dataBean.getWarehouseName() : "-");
//区域名称
baseViewHolder.setText(R.id.tv_area_name, !StringUtils.isEmpty(dataBean.getAreaName()) ? dataBean.getAreaName() : "-");
//位置名称
baseViewHolder.setText(R.id.tv_location_name, !StringUtils.isEmpty(dataBean.getLocationName()) ? dataBean.getLocationName() : "-");
//系统数量
baseViewHolder.setText(R.id.tv_system_quantity, !StringUtils.isEmpty(dataBean.getSystemQty() + "") ? dataBean.getSystemQty() + "" : "-");
// //实际数量
baseViewHolder.setText(R.id.tv_actual_quantity, !StringUtils.isEmpty(dataBean.getActualQty() + "") ? dataBean.getActualQty() + "" : "-");
//检查人
baseViewHolder.setText(R.id.tv_checker_name, !StringUtils.isEmpty(dataBean.getCheckerName()) ? dataBean.getCheckerName() : "-");
//检查时间
baseViewHolder.setText(R.id.tv_check_time, !StringUtils.isEmpty(dataBean.getCheckTime()) ? dataBean.getCheckTime() : "-");
//差异数量
baseViewHolder.setText(R.id.tv_difference_quantity, !StringUtils.isEmpty(dataBean.getDiffReason() + "") ? dataBean.getDiffReason() : "-");
//差异率
baseViewHolder.setText(R.id.tv_difference_rate, !StringUtils.isEmpty(dataBean.getDiffQty() + "") ? dataBean.getDiffQty() + "" : "-");
//备注
// baseViewHolder.setText(R.id.tv_remark, !StringUtils.isEmpty(dataBean.getRemark()) ? dataBean.getRemark() : "-");
//拣货状态
TextView checkStatus = baseViewHolder.getView(R.id.tv_check_status);
switch (dataBean.getCheckStatus()) {
case "0":
checkStatus.setText("待盘点");
checkStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_org_bg));
checkStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.text_orange3));
break;
case "1":
checkStatus.setText("已盘点");
checkStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_green_bg));
checkStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.green));
break;
case "2":
checkStatus.setText("差异待确认");
checkStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_red_bg));
checkStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.red));
break;
default:
checkStatus.setText("-");
checkStatus.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.status_gray_bg));
checkStatus.setTextColor(ContextCompat.getColor(getContext(), R.color.c_6666));
break;
}
//差异原因
TextView tvDifferenceReason = baseViewHolder.getView(R.id.tv_difference_reason);
if (!StringUtils.isEmpty(dataBean.getDiffReason())) {
switch (dataBean.getDiffReason()) {
case "py":
tvDifferenceReason.setText("盘盈");
break;
case "pk":
tvDifferenceReason.setText("盘亏");
break;
case "wcy":
tvDifferenceReason.setText("无差异");
break;
default:
tvDifferenceReason.setText("-");
break;
}
} else {
tvDifferenceReason.setText("-");
}
LinearLayout ll1 = baseViewHolder.getView(R.id.ll1);
LinearLayout ll2 = baseViewHolder.getView(R.id.ll2);
TextView expandButton = baseViewHolder.getView(R.id.expand_button);
ImageView ivUp = baseViewHolder.getView(R.id.iv_up);
//展开收起按钮
baseViewHolder.getView(R.id.rl_up).setOnClickListener(v -> {
// 处理展开收起点击事件 切换展开收起状态
boolean isExpanded = dataBean.isExpanded();
if (!isExpanded) {
// 收起
ivUp.setRotation(180);
expandButton.setText("收起");
ll1.setVisibility(View.VISIBLE);
ll2.setVisibility(View.VISIBLE);
} else {
// 展开
ivUp.setRotation(0);
expandButton.setText("展开");
ll1.setVisibility(View.GONE);
ll2.setVisibility(View.GONE);
}
dataBean.setExpanded(!isExpanded);
});
//复制1按钮
baseViewHolder.getView(R.id.tv_batch_no).setOnClickListener(v -> {
if (mItemClickListener != null) {
mItemClickListener.onCopy1ItemClick(baseViewHolder.getAdapterPosition(), dataBean);
}
});
//复制2按钮
baseViewHolder.getView(R.id.tv_rfid_tag).setOnClickListener(v -> {
if (mItemClickListener != null) {
mItemClickListener.onCopy2ItemClick(baseViewHolder.getAdapterPosition(), dataBean);
}
});
}
public interface OnItemClickListener {
void onCopy1ItemClick(int position, WmsInventoryTaskDetail item);
void onCopy2ItemClick(int position, WmsInventoryTaskDetail item);
}
private OnItemClickListener mItemClickListener;
public void setOnItemClickListener(OnItemClickListener mItemClickListener) {
this.mItemClickListener = mItemClickListener;
}
}
\ No newline at end of file
package com.sxyz.rfid.widgets;
import android.app.Dialog;
import android.content.Context;
import android.view.Display;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import com.sxyz.rfid.R;
import com.sxyz.rfid.presenter.model.OutboundFridModel;
import java.util.List;
/**
* @Description: 提示弹窗
* @Author: chunyuan.wu
* @CreateDate: 2025/12/31 16:39
* @Version: 1.0
*/
public class TipsDialog extends Dialog {
private Context mContext;
private Display display;
public TipsDialog(@NonNull Context context) {
super(context);
mContext = context;
WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
display = windowManager.getDefaultDisplay();
}
public TipsDialog(@NonNull Context context, int themeResId) {
super(context, themeResId);
mContext = context;
WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
display = windowManager.getDefaultDisplay();
}
protected TipsDialog(@NonNull Context context, boolean cancelable, OnCancelListener cancelListener) {
super(context, cancelable, cancelListener);
mContext = context;
WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
display = windowManager.getDefaultDisplay();
}
DialogAdapter adapter;
/**
* 基本列表弹窗
*
* @param datas 内容
* @param dialogListener 位置回调
*/
public void init(int viewId, String msg) {
View v = LayoutInflater.from(mContext).inflate(viewId, null);
this.setContentView(v);
this.setCancelable(false);
LinearLayout lLayout_bg = v.findViewById(R.id.lLayout_bg);
// 调整dialog背景大小
lLayout_bg.setLayoutParams(new FrameLayout.LayoutParams((int) (display.getWidth() * 0.3), (int) (display.getHeight() * 0.5)));
//设置弹窗内容
TextView txt_msg = v.findViewById(R.id.txt_msg);
txt_msg.setText(msg);
//窗口位置
setWindow(getWindow());
}
//添加数据
public void addData(List<OutboundFridModel.RowsBean> datas) {
adapter.addData(datas);
}
/**
* 设置窗口位置
*/
private void setWindow(Window wd) {
if (wd == null) {
return;
}
WindowManager.LayoutParams params = wd.getAttributes();
params.width = WindowManager.LayoutParams.MATCH_PARENT;
params.height = WindowManager.LayoutParams.WRAP_CONTENT;
wd.setAttributes(params);
wd.setGravity(Gravity.BOTTOM);
}
/**
* 设置动画
*/
public void setAnim(int styleId) {
Window w = getWindow();
if (w == null) {
return;
}
w.setWindowAnimations(styleId);
}
/**
* 设置位置
*/
public void setPosition(int position) {
Window w = getWindow();
if (w == null) {
return;
}
w.setGravity(position);
}
}
...@@ -21,12 +21,24 @@ public class DaoMaster extends AbstractDaoMaster { ...@@ -21,12 +21,24 @@ public class DaoMaster extends AbstractDaoMaster {
/** Creates underlying database table using DAOs. */ /** Creates underlying database table using DAOs. */
public static void createAllTables(Database db, boolean ifNotExists) { public static void createAllTables(Database db, boolean ifNotExists) {
OutDao.createTable(db, ifNotExists); WmsAreaDao.createTable(db, ifNotExists);
WmsInventoryDao.createTable(db, ifNotExists);
WmsInventoryResultDao.createTable(db, ifNotExists);
WmsInventoryTaskDao.createTable(db, ifNotExists);
WmsInventoryTaskDetailDao.createTable(db, ifNotExists);
WmsLocationDao.createTable(db, ifNotExists);
WmsWarehouseDao.createTable(db, ifNotExists);
} }
/** Drops underlying database table using DAOs. */ /** Drops underlying database table using DAOs. */
public static void dropAllTables(Database db, boolean ifExists) { public static void dropAllTables(Database db, boolean ifExists) {
OutDao.dropTable(db, ifExists); WmsAreaDao.dropTable(db, ifExists);
WmsInventoryDao.dropTable(db, ifExists);
WmsInventoryResultDao.dropTable(db, ifExists);
WmsInventoryTaskDao.dropTable(db, ifExists);
WmsInventoryTaskDetailDao.dropTable(db, ifExists);
WmsLocationDao.dropTable(db, ifExists);
WmsWarehouseDao.dropTable(db, ifExists);
} }
/** /**
...@@ -45,7 +57,13 @@ public class DaoMaster extends AbstractDaoMaster { ...@@ -45,7 +57,13 @@ public class DaoMaster extends AbstractDaoMaster {
public DaoMaster(Database db) { public DaoMaster(Database db) {
super(db, SCHEMA_VERSION); super(db, SCHEMA_VERSION);
registerDaoClass(OutDao.class); registerDaoClass(WmsAreaDao.class);
registerDaoClass(WmsInventoryDao.class);
registerDaoClass(WmsInventoryResultDao.class);
registerDaoClass(WmsInventoryTaskDao.class);
registerDaoClass(WmsInventoryTaskDetailDao.class);
registerDaoClass(WmsLocationDao.class);
registerDaoClass(WmsWarehouseDao.class);
} }
public DaoSession newSession() { public DaoSession newSession() {
......
...@@ -8,9 +8,21 @@ import org.greenrobot.greendao.database.Database; ...@@ -8,9 +8,21 @@ import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType; import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig; import org.greenrobot.greendao.internal.DaoConfig;
import com.sxyz.rfid.greendao.model.Out; import com.sxyz.rfid.greendao.model.WmsArea;
import com.sxyz.rfid.greendao.model.WmsInventory;
import com.sxyz.rfid.greendao.model.WmsInventoryResult;
import com.sxyz.rfid.greendao.model.WmsInventoryTask;
import com.sxyz.rfid.greendao.model.WmsInventoryTaskDetail;
import com.sxyz.rfid.greendao.model.WmsLocation;
import com.sxyz.rfid.greendao.model.WmsWarehouse;
import sql.com.yz.db.OutDao; import sql.com.yz.db.WmsAreaDao;
import sql.com.yz.db.WmsInventoryDao;
import sql.com.yz.db.WmsInventoryResultDao;
import sql.com.yz.db.WmsInventoryTaskDao;
import sql.com.yz.db.WmsInventoryTaskDetailDao;
import sql.com.yz.db.WmsLocationDao;
import sql.com.yz.db.WmsWarehouseDao;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. // THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
...@@ -21,28 +33,100 @@ import sql.com.yz.db.OutDao; ...@@ -21,28 +33,100 @@ import sql.com.yz.db.OutDao;
*/ */
public class DaoSession extends AbstractDaoSession { public class DaoSession extends AbstractDaoSession {
private final DaoConfig outDaoConfig; private final DaoConfig wmsAreaDaoConfig;
private final DaoConfig wmsInventoryDaoConfig;
private final DaoConfig wmsInventoryResultDaoConfig;
private final DaoConfig wmsInventoryTaskDaoConfig;
private final DaoConfig wmsInventoryTaskDetailDaoConfig;
private final DaoConfig wmsLocationDaoConfig;
private final DaoConfig wmsWarehouseDaoConfig;
private final OutDao outDao; private final WmsAreaDao wmsAreaDao;
private final WmsInventoryDao wmsInventoryDao;
private final WmsInventoryResultDao wmsInventoryResultDao;
private final WmsInventoryTaskDao wmsInventoryTaskDao;
private final WmsInventoryTaskDetailDao wmsInventoryTaskDetailDao;
private final WmsLocationDao wmsLocationDao;
private final WmsWarehouseDao wmsWarehouseDao;
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
daoConfigMap) { daoConfigMap) {
super(db); super(db);
outDaoConfig = daoConfigMap.get(OutDao.class).clone(); wmsAreaDaoConfig = daoConfigMap.get(WmsAreaDao.class).clone();
outDaoConfig.initIdentityScope(type); wmsAreaDaoConfig.initIdentityScope(type);
outDao = new OutDao(outDaoConfig, this); wmsInventoryDaoConfig = daoConfigMap.get(WmsInventoryDao.class).clone();
wmsInventoryDaoConfig.initIdentityScope(type);
registerDao(Out.class, outDao); wmsInventoryResultDaoConfig = daoConfigMap.get(WmsInventoryResultDao.class).clone();
wmsInventoryResultDaoConfig.initIdentityScope(type);
wmsInventoryTaskDaoConfig = daoConfigMap.get(WmsInventoryTaskDao.class).clone();
wmsInventoryTaskDaoConfig.initIdentityScope(type);
wmsInventoryTaskDetailDaoConfig = daoConfigMap.get(WmsInventoryTaskDetailDao.class).clone();
wmsInventoryTaskDetailDaoConfig.initIdentityScope(type);
wmsLocationDaoConfig = daoConfigMap.get(WmsLocationDao.class).clone();
wmsLocationDaoConfig.initIdentityScope(type);
wmsWarehouseDaoConfig = daoConfigMap.get(WmsWarehouseDao.class).clone();
wmsWarehouseDaoConfig.initIdentityScope(type);
wmsAreaDao = new WmsAreaDao(wmsAreaDaoConfig, this);
wmsInventoryDao = new WmsInventoryDao(wmsInventoryDaoConfig, this);
wmsInventoryResultDao = new WmsInventoryResultDao(wmsInventoryResultDaoConfig, this);
wmsInventoryTaskDao = new WmsInventoryTaskDao(wmsInventoryTaskDaoConfig, this);
wmsInventoryTaskDetailDao = new WmsInventoryTaskDetailDao(wmsInventoryTaskDetailDaoConfig, this);
wmsLocationDao = new WmsLocationDao(wmsLocationDaoConfig, this);
wmsWarehouseDao = new WmsWarehouseDao(wmsWarehouseDaoConfig, this);
registerDao(WmsArea.class, wmsAreaDao);
registerDao(WmsInventory.class, wmsInventoryDao);
registerDao(WmsInventoryResult.class, wmsInventoryResultDao);
registerDao(WmsInventoryTask.class, wmsInventoryTaskDao);
registerDao(WmsInventoryTaskDetail.class, wmsInventoryTaskDetailDao);
registerDao(WmsLocation.class, wmsLocationDao);
registerDao(WmsWarehouse.class, wmsWarehouseDao);
} }
public void clear() { public void clear() {
outDaoConfig.clearIdentityScope(); wmsAreaDaoConfig.clearIdentityScope();
wmsInventoryDaoConfig.clearIdentityScope();
wmsInventoryResultDaoConfig.clearIdentityScope();
wmsInventoryTaskDaoConfig.clearIdentityScope();
wmsInventoryTaskDetailDaoConfig.clearIdentityScope();
wmsLocationDaoConfig.clearIdentityScope();
wmsWarehouseDaoConfig.clearIdentityScope();
}
public WmsAreaDao getWmsAreaDao() {
return wmsAreaDao;
}
public WmsInventoryDao getWmsInventoryDao() {
return wmsInventoryDao;
}
public WmsInventoryResultDao getWmsInventoryResultDao() {
return wmsInventoryResultDao;
}
public WmsInventoryTaskDao getWmsInventoryTaskDao() {
return wmsInventoryTaskDao;
}
public WmsInventoryTaskDetailDao getWmsInventoryTaskDetailDao() {
return wmsInventoryTaskDetailDao;
}
public WmsLocationDao getWmsLocationDao() {
return wmsLocationDao;
} }
public OutDao getOutDao() { public WmsWarehouseDao getWmsWarehouseDao() {
return outDao; return wmsWarehouseDao;
} }
} }
package sql.com.yz.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import com.sxyz.rfid.greendao.model.Out;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "OUT".
*/
public class OutDao extends AbstractDao<Out, Long> {
public static final String TABLENAME = "OUT";
/**
* Properties of entity Out.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property Id = new Property(0, Long.class, "id", true, "_id");
public final static Property Name = new Property(1, String.class, "name", false, "NAME");
public final static Property Type = new Property(2, String.class, "type", false, "TYPE");
}
public OutDao(DaoConfig config) {
super(config);
}
public OutDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"OUT\" (" + //
"\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: id
"\"NAME\" TEXT," + // 1: name
"\"TYPE\" TEXT);"); // 2: type
}
/** Drops the underlying database table. */
public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"OUT\"";
db.execSQL(sql);
}
@Override
protected final void bindValues(DatabaseStatement stmt, Out entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String name = entity.getName();
if (name != null) {
stmt.bindString(2, name);
}
String type = entity.getType();
if (type != null) {
stmt.bindString(3, type);
}
}
@Override
protected final void bindValues(SQLiteStatement stmt, Out entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String name = entity.getName();
if (name != null) {
stmt.bindString(2, name);
}
String type = entity.getType();
if (type != null) {
stmt.bindString(3, type);
}
}
@Override
public Long readKey(Cursor cursor, int offset) {
return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
}
@Override
public Out readEntity(Cursor cursor, int offset) {
Out entity = new Out( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // id
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // name
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2) // type
);
return entity;
}
@Override
public void readEntity(Cursor cursor, Out entity, int offset) {
entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
entity.setName(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
entity.setType(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
}
@Override
protected final Long updateKeyAfterInsert(Out entity, long rowId) {
entity.setId(rowId);
return rowId;
}
@Override
public Long getKey(Out entity) {
if(entity != null) {
return entity.getId();
} else {
return null;
}
}
@Override
public boolean hasKey(Out entity) {
return entity.getId() != null;
}
@Override
protected final boolean isEntityUpdateable() {
return true;
}
}
package sql.com.yz.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import com.sxyz.rfid.greendao.model.WmsArea;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "wms_area".
*/
public class WmsAreaDao extends AbstractDao<WmsArea, Void> {
public static final String TABLENAME = "wms_area";
/**
* Properties of entity WmsArea.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property AreaId = new Property(0, Long.class, "areaId", false, "area_id");
public final static Property AreaCode = new Property(1, String.class, "areaCode", false, "area_code");
public final static Property AreaName = new Property(2, String.class, "areaName", false, "area_name");
public final static Property WarehouseId = new Property(3, Integer.class, "warehouseId", false, "warehouse_id");
public final static Property ParentId = new Property(4, Integer.class, "parentId", false, "parent_id");
public final static Property AreaType = new Property(5, String.class, "areaType", false, "area_type");
public final static Property TemperatureRange = new Property(6, String.class, "temperatureRange", false, "temperature_range");
public final static Property HumidityRange = new Property(7, String.class, "humidityRange", false, "humidity_range");
public final static Property Capacity = new Property(8, Float.class, "capacity", false, "capacity");
public final static Property SortOrder = new Property(9, Integer.class, "sortOrder", false, "sort_order");
public final static Property Status = new Property(10, String.class, "status", false, "status");
public final static Property CreateBy = new Property(11, String.class, "createBy", false, "create_by");
public final static Property CreateTime = new Property(12, String.class, "createTime", false, "create_time");
public final static Property UpdateBy = new Property(13, String.class, "updateBy", false, "update_by");
public final static Property UpdateTime = new Property(14, String.class, "updateTime", false, "update_time");
public final static Property Remark = new Property(15, String.class, "remark", false, "remark");
public final static Property DelFlag = new Property(16, String.class, "delFlag", false, "del_flag");
}
public WmsAreaDao(DaoConfig config) {
super(config);
}
public WmsAreaDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"wms_area\" (" + //
"\"area_id\" INTEGER," + // 0: areaId
"\"area_code\" TEXT," + // 1: areaCode
"\"area_name\" TEXT," + // 2: areaName
"\"warehouse_id\" INTEGER," + // 3: warehouseId
"\"parent_id\" INTEGER," + // 4: parentId
"\"area_type\" TEXT," + // 5: areaType
"\"temperature_range\" TEXT," + // 6: temperatureRange
"\"humidity_range\" TEXT," + // 7: humidityRange
"\"capacity\" REAL," + // 8: capacity
"\"sort_order\" INTEGER," + // 9: sortOrder
"\"status\" TEXT," + // 10: status
"\"create_by\" TEXT," + // 11: createBy
"\"create_time\" TEXT," + // 12: createTime
"\"update_by\" TEXT," + // 13: updateBy
"\"update_time\" TEXT," + // 14: updateTime
"\"remark\" TEXT," + // 15: remark
"\"del_flag\" TEXT);"); // 16: delFlag
}
/** Drops the underlying database table. */
public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"wms_area\"";
db.execSQL(sql);
}
@Override
protected final void bindValues(DatabaseStatement stmt, WmsArea entity) {
stmt.clearBindings();
Long areaId = entity.getAreaId();
if (areaId != null) {
stmt.bindLong(1, areaId);
}
String areaCode = entity.getAreaCode();
if (areaCode != null) {
stmt.bindString(2, areaCode);
}
String areaName = entity.getAreaName();
if (areaName != null) {
stmt.bindString(3, areaName);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(4, warehouseId);
}
Integer parentId = entity.getParentId();
if (parentId != null) {
stmt.bindLong(5, parentId);
}
String areaType = entity.getAreaType();
if (areaType != null) {
stmt.bindString(6, areaType);
}
String temperatureRange = entity.getTemperatureRange();
if (temperatureRange != null) {
stmt.bindString(7, temperatureRange);
}
String humidityRange = entity.getHumidityRange();
if (humidityRange != null) {
stmt.bindString(8, humidityRange);
}
Float capacity = entity.getCapacity();
if (capacity != null) {
stmt.bindDouble(9, capacity);
}
Integer sortOrder = entity.getSortOrder();
if (sortOrder != null) {
stmt.bindLong(10, sortOrder);
}
String status = entity.getStatus();
if (status != null) {
stmt.bindString(11, status);
}
String createBy = entity.getCreateBy();
if (createBy != null) {
stmt.bindString(12, createBy);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(13, createTime);
}
String updateBy = entity.getUpdateBy();
if (updateBy != null) {
stmt.bindString(14, updateBy);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(15, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(16, remark);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(17, delFlag);
}
}
@Override
protected final void bindValues(SQLiteStatement stmt, WmsArea entity) {
stmt.clearBindings();
Long areaId = entity.getAreaId();
if (areaId != null) {
stmt.bindLong(1, areaId);
}
String areaCode = entity.getAreaCode();
if (areaCode != null) {
stmt.bindString(2, areaCode);
}
String areaName = entity.getAreaName();
if (areaName != null) {
stmt.bindString(3, areaName);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(4, warehouseId);
}
Integer parentId = entity.getParentId();
if (parentId != null) {
stmt.bindLong(5, parentId);
}
String areaType = entity.getAreaType();
if (areaType != null) {
stmt.bindString(6, areaType);
}
String temperatureRange = entity.getTemperatureRange();
if (temperatureRange != null) {
stmt.bindString(7, temperatureRange);
}
String humidityRange = entity.getHumidityRange();
if (humidityRange != null) {
stmt.bindString(8, humidityRange);
}
Float capacity = entity.getCapacity();
if (capacity != null) {
stmt.bindDouble(9, capacity);
}
Integer sortOrder = entity.getSortOrder();
if (sortOrder != null) {
stmt.bindLong(10, sortOrder);
}
String status = entity.getStatus();
if (status != null) {
stmt.bindString(11, status);
}
String createBy = entity.getCreateBy();
if (createBy != null) {
stmt.bindString(12, createBy);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(13, createTime);
}
String updateBy = entity.getUpdateBy();
if (updateBy != null) {
stmt.bindString(14, updateBy);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(15, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(16, remark);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(17, delFlag);
}
}
@Override
public Void readKey(Cursor cursor, int offset) {
return null;
}
@Override
public WmsArea readEntity(Cursor cursor, int offset) {
WmsArea entity = new WmsArea( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // areaId
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // areaCode
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // areaName
cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3), // warehouseId
cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4), // parentId
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // areaType
cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // temperatureRange
cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // humidityRange
cursor.isNull(offset + 8) ? null : cursor.getFloat(offset + 8), // capacity
cursor.isNull(offset + 9) ? null : cursor.getInt(offset + 9), // sortOrder
cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // status
cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11), // createBy
cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12), // createTime
cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13), // updateBy
cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // updateTime
cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // remark
cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16) // delFlag
);
return entity;
}
@Override
public void readEntity(Cursor cursor, WmsArea entity, int offset) {
entity.setAreaId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
entity.setAreaCode(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
entity.setAreaName(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
entity.setWarehouseId(cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3));
entity.setParentId(cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4));
entity.setAreaType(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
entity.setTemperatureRange(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
entity.setHumidityRange(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
entity.setCapacity(cursor.isNull(offset + 8) ? null : cursor.getFloat(offset + 8));
entity.setSortOrder(cursor.isNull(offset + 9) ? null : cursor.getInt(offset + 9));
entity.setStatus(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
entity.setCreateBy(cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11));
entity.setCreateTime(cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12));
entity.setUpdateBy(cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13));
entity.setUpdateTime(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
entity.setRemark(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
entity.setDelFlag(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
}
@Override
protected final Void updateKeyAfterInsert(WmsArea entity, long rowId) {
// Unsupported or missing PK type
return null;
}
@Override
public Void getKey(WmsArea entity) {
return null;
}
@Override
public boolean hasKey(WmsArea entity) {
// TODO
return false;
}
@Override
protected final boolean isEntityUpdateable() {
return true;
}
}
package sql.com.yz.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import com.sxyz.rfid.greendao.model.WmsInventory;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "wms_inventory".
*/
public class WmsInventoryDao extends AbstractDao<WmsInventory, Long> {
public static final String TABLENAME = "wms_inventory";
/**
* Properties of entity WmsInventory.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property InventoryId = new Property(0, Long.class, "inventoryId", true, "inventory_id");
public final static Property MaterialId = new Property(1, Integer.class, "materialId", false, "material_id");
public final static Property WarehouseId = new Property(2, Integer.class, "warehouseId", false, "warehouse_id");
public final static Property AreaId = new Property(3, Integer.class, "areaId", false, "area_id");
public final static Property LocationId = new Property(4, Integer.class, "locationId", false, "location_id");
public final static Property BatchNo = new Property(5, String.class, "batchNo", false, "batch_no");
public final static Property LotNo = new Property(6, String.class, "lotNo", false, "lot_no");
public final static Property ProductionDate = new Property(7, String.class, "productionDate", false, "production_date");
public final static Property ExpirationDate = new Property(8, String.class, "expirationDate", false, "expiration_date");
public final static Property Quantity = new Property(9, Float.class, "quantity", false, "quantity");
public final static Property AvailableQuantity = new Property(10, Float.class, "availableQuantity", false, "available_quantity");
public final static Property LockedQuantity = new Property(11, Float.class, "lockedQuantity", false, "locked_quantity");
public final static Property UnitCost = new Property(12, Float.class, "unitCost", false, "unit_cost");
public final static Property TotalCost = new Property(13, Float.class, "totalCost", false, "total_cost");
public final static Property QualityStatus = new Property(14, String.class, "qualityStatus", false, "quality_status");
public final static Property InventoryStatus = new Property(15, String.class, "inventoryStatus", false, "inventory_status");
public final static Property LastInboundTime = new Property(16, String.class, "lastInboundTime", false, "last_inbound_time");
public final static Property LastOutboundTime = new Property(17, String.class, "lastOutboundTime", false, "last_outbound_time");
public final static Property RfidTag = new Property(18, String.class, "rfidTag", false, "rfid_tag");
public final static Property Barcode = new Property(19, String.class, "barcode", false, "barcode");
public final static Property IsFifo = new Property(20, String.class, "isFifo", false, "is_fifo");
public final static Property RfidBindingCount = new Property(21, Integer.class, "rfidBindingCount", false, "rfid_binding_count");
public final static Property LastRfidDetectTime = new Property(22, String.class, "lastRfidDetectTime", false, "last_rfid_detect_time");
public final static Property RfidCoverageRate = new Property(23, Float.class, "rfidCoverageRate", false, "rfid_coverage_rate");
public final static Property DelFlag = new Property(24, String.class, "delFlag", false, "del_flag");
public final static Property CreateTime = new Property(25, String.class, "createTime", false, "create_time");
public final static Property UpdateTime = new Property(26, String.class, "updateTime", false, "update_time");
public final static Property Remark = new Property(27, String.class, "remark", false, "remark");
}
public WmsInventoryDao(DaoConfig config) {
super(config);
}
public WmsInventoryDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"wms_inventory\" (" + //
"\"inventory_id\" INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: inventoryId
"\"material_id\" INTEGER," + // 1: materialId
"\"warehouse_id\" INTEGER," + // 2: warehouseId
"\"area_id\" INTEGER," + // 3: areaId
"\"location_id\" INTEGER," + // 4: locationId
"\"batch_no\" TEXT," + // 5: batchNo
"\"lot_no\" TEXT," + // 6: lotNo
"\"production_date\" TEXT," + // 7: productionDate
"\"expiration_date\" TEXT," + // 8: expirationDate
"\"quantity\" REAL," + // 9: quantity
"\"available_quantity\" REAL," + // 10: availableQuantity
"\"locked_quantity\" REAL," + // 11: lockedQuantity
"\"unit_cost\" REAL," + // 12: unitCost
"\"total_cost\" REAL," + // 13: totalCost
"\"quality_status\" TEXT," + // 14: qualityStatus
"\"inventory_status\" TEXT," + // 15: inventoryStatus
"\"last_inbound_time\" TEXT," + // 16: lastInboundTime
"\"last_outbound_time\" TEXT," + // 17: lastOutboundTime
"\"rfid_tag\" TEXT," + // 18: rfidTag
"\"barcode\" TEXT," + // 19: barcode
"\"is_fifo\" TEXT," + // 20: isFifo
"\"rfid_binding_count\" INTEGER," + // 21: rfidBindingCount
"\"last_rfid_detect_time\" TEXT," + // 22: lastRfidDetectTime
"\"rfid_coverage_rate\" REAL," + // 23: rfidCoverageRate
"\"del_flag\" TEXT," + // 24: delFlag
"\"create_time\" TEXT," + // 25: createTime
"\"update_time\" TEXT," + // 26: updateTime
"\"remark\" TEXT);"); // 27: remark
}
/** Drops the underlying database table. */
public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"wms_inventory\"";
db.execSQL(sql);
}
@Override
protected final void bindValues(DatabaseStatement stmt, WmsInventory entity) {
stmt.clearBindings();
Long inventoryId = entity.getInventoryId();
if (inventoryId != null) {
stmt.bindLong(1, inventoryId);
}
Integer materialId = entity.getMaterialId();
if (materialId != null) {
stmt.bindLong(2, materialId);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(3, warehouseId);
}
Integer areaId = entity.getAreaId();
if (areaId != null) {
stmt.bindLong(4, areaId);
}
Integer locationId = entity.getLocationId();
if (locationId != null) {
stmt.bindLong(5, locationId);
}
String batchNo = entity.getBatchNo();
if (batchNo != null) {
stmt.bindString(6, batchNo);
}
String lotNo = entity.getLotNo();
if (lotNo != null) {
stmt.bindString(7, lotNo);
}
String productionDate = entity.getProductionDate();
if (productionDate != null) {
stmt.bindString(8, productionDate);
}
String expirationDate = entity.getExpirationDate();
if (expirationDate != null) {
stmt.bindString(9, expirationDate);
}
Float quantity = entity.getQuantity();
if (quantity != null) {
stmt.bindDouble(10, quantity);
}
Float availableQuantity = entity.getAvailableQuantity();
if (availableQuantity != null) {
stmt.bindDouble(11, availableQuantity);
}
Float lockedQuantity = entity.getLockedQuantity();
if (lockedQuantity != null) {
stmt.bindDouble(12, lockedQuantity);
}
Float unitCost = entity.getUnitCost();
if (unitCost != null) {
stmt.bindDouble(13, unitCost);
}
Float totalCost = entity.getTotalCost();
if (totalCost != null) {
stmt.bindDouble(14, totalCost);
}
String qualityStatus = entity.getQualityStatus();
if (qualityStatus != null) {
stmt.bindString(15, qualityStatus);
}
String inventoryStatus = entity.getInventoryStatus();
if (inventoryStatus != null) {
stmt.bindString(16, inventoryStatus);
}
String lastInboundTime = entity.getLastInboundTime();
if (lastInboundTime != null) {
stmt.bindString(17, lastInboundTime);
}
String lastOutboundTime = entity.getLastOutboundTime();
if (lastOutboundTime != null) {
stmt.bindString(18, lastOutboundTime);
}
String rfidTag = entity.getRfidTag();
if (rfidTag != null) {
stmt.bindString(19, rfidTag);
}
String barcode = entity.getBarcode();
if (barcode != null) {
stmt.bindString(20, barcode);
}
String isFifo = entity.getIsFifo();
if (isFifo != null) {
stmt.bindString(21, isFifo);
}
Integer rfidBindingCount = entity.getRfidBindingCount();
if (rfidBindingCount != null) {
stmt.bindLong(22, rfidBindingCount);
}
String lastRfidDetectTime = entity.getLastRfidDetectTime();
if (lastRfidDetectTime != null) {
stmt.bindString(23, lastRfidDetectTime);
}
Float rfidCoverageRate = entity.getRfidCoverageRate();
if (rfidCoverageRate != null) {
stmt.bindDouble(24, rfidCoverageRate);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(25, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(26, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(27, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(28, remark);
}
}
@Override
protected final void bindValues(SQLiteStatement stmt, WmsInventory entity) {
stmt.clearBindings();
Long inventoryId = entity.getInventoryId();
if (inventoryId != null) {
stmt.bindLong(1, inventoryId);
}
Integer materialId = entity.getMaterialId();
if (materialId != null) {
stmt.bindLong(2, materialId);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(3, warehouseId);
}
Integer areaId = entity.getAreaId();
if (areaId != null) {
stmt.bindLong(4, areaId);
}
Integer locationId = entity.getLocationId();
if (locationId != null) {
stmt.bindLong(5, locationId);
}
String batchNo = entity.getBatchNo();
if (batchNo != null) {
stmt.bindString(6, batchNo);
}
String lotNo = entity.getLotNo();
if (lotNo != null) {
stmt.bindString(7, lotNo);
}
String productionDate = entity.getProductionDate();
if (productionDate != null) {
stmt.bindString(8, productionDate);
}
String expirationDate = entity.getExpirationDate();
if (expirationDate != null) {
stmt.bindString(9, expirationDate);
}
Float quantity = entity.getQuantity();
if (quantity != null) {
stmt.bindDouble(10, quantity);
}
Float availableQuantity = entity.getAvailableQuantity();
if (availableQuantity != null) {
stmt.bindDouble(11, availableQuantity);
}
Float lockedQuantity = entity.getLockedQuantity();
if (lockedQuantity != null) {
stmt.bindDouble(12, lockedQuantity);
}
Float unitCost = entity.getUnitCost();
if (unitCost != null) {
stmt.bindDouble(13, unitCost);
}
Float totalCost = entity.getTotalCost();
if (totalCost != null) {
stmt.bindDouble(14, totalCost);
}
String qualityStatus = entity.getQualityStatus();
if (qualityStatus != null) {
stmt.bindString(15, qualityStatus);
}
String inventoryStatus = entity.getInventoryStatus();
if (inventoryStatus != null) {
stmt.bindString(16, inventoryStatus);
}
String lastInboundTime = entity.getLastInboundTime();
if (lastInboundTime != null) {
stmt.bindString(17, lastInboundTime);
}
String lastOutboundTime = entity.getLastOutboundTime();
if (lastOutboundTime != null) {
stmt.bindString(18, lastOutboundTime);
}
String rfidTag = entity.getRfidTag();
if (rfidTag != null) {
stmt.bindString(19, rfidTag);
}
String barcode = entity.getBarcode();
if (barcode != null) {
stmt.bindString(20, barcode);
}
String isFifo = entity.getIsFifo();
if (isFifo != null) {
stmt.bindString(21, isFifo);
}
Integer rfidBindingCount = entity.getRfidBindingCount();
if (rfidBindingCount != null) {
stmt.bindLong(22, rfidBindingCount);
}
String lastRfidDetectTime = entity.getLastRfidDetectTime();
if (lastRfidDetectTime != null) {
stmt.bindString(23, lastRfidDetectTime);
}
Float rfidCoverageRate = entity.getRfidCoverageRate();
if (rfidCoverageRate != null) {
stmt.bindDouble(24, rfidCoverageRate);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(25, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(26, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(27, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(28, remark);
}
}
@Override
public Long readKey(Cursor cursor, int offset) {
return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
}
@Override
public WmsInventory readEntity(Cursor cursor, int offset) {
WmsInventory entity = new WmsInventory( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // inventoryId
cursor.isNull(offset + 1) ? null : cursor.getInt(offset + 1), // materialId
cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2), // warehouseId
cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3), // areaId
cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4), // locationId
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // batchNo
cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // lotNo
cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // productionDate
cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8), // expirationDate
cursor.isNull(offset + 9) ? null : cursor.getFloat(offset + 9), // quantity
cursor.isNull(offset + 10) ? null : cursor.getFloat(offset + 10), // availableQuantity
cursor.isNull(offset + 11) ? null : cursor.getFloat(offset + 11), // lockedQuantity
cursor.isNull(offset + 12) ? null : cursor.getFloat(offset + 12), // unitCost
cursor.isNull(offset + 13) ? null : cursor.getFloat(offset + 13), // totalCost
cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // qualityStatus
cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // inventoryStatus
cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16), // lastInboundTime
cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17), // lastOutboundTime
cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18), // rfidTag
cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19), // barcode
cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20), // isFifo
cursor.isNull(offset + 21) ? null : cursor.getInt(offset + 21), // rfidBindingCount
cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22), // lastRfidDetectTime
cursor.isNull(offset + 23) ? null : cursor.getFloat(offset + 23), // rfidCoverageRate
cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24), // delFlag
cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25), // createTime
cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26), // updateTime
cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27) // remark
);
return entity;
}
@Override
public void readEntity(Cursor cursor, WmsInventory entity, int offset) {
entity.setInventoryId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
entity.setMaterialId(cursor.isNull(offset + 1) ? null : cursor.getInt(offset + 1));
entity.setWarehouseId(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2));
entity.setAreaId(cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3));
entity.setLocationId(cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4));
entity.setBatchNo(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
entity.setLotNo(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
entity.setProductionDate(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
entity.setExpirationDate(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8));
entity.setQuantity(cursor.isNull(offset + 9) ? null : cursor.getFloat(offset + 9));
entity.setAvailableQuantity(cursor.isNull(offset + 10) ? null : cursor.getFloat(offset + 10));
entity.setLockedQuantity(cursor.isNull(offset + 11) ? null : cursor.getFloat(offset + 11));
entity.setUnitCost(cursor.isNull(offset + 12) ? null : cursor.getFloat(offset + 12));
entity.setTotalCost(cursor.isNull(offset + 13) ? null : cursor.getFloat(offset + 13));
entity.setQualityStatus(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
entity.setInventoryStatus(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
entity.setLastInboundTime(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
entity.setLastOutboundTime(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
entity.setRfidTag(cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18));
entity.setBarcode(cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19));
entity.setIsFifo(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
entity.setRfidBindingCount(cursor.isNull(offset + 21) ? null : cursor.getInt(offset + 21));
entity.setLastRfidDetectTime(cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22));
entity.setRfidCoverageRate(cursor.isNull(offset + 23) ? null : cursor.getFloat(offset + 23));
entity.setDelFlag(cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24));
entity.setCreateTime(cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25));
entity.setUpdateTime(cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26));
entity.setRemark(cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27));
}
@Override
protected final Long updateKeyAfterInsert(WmsInventory entity, long rowId) {
entity.setInventoryId(rowId);
return rowId;
}
@Override
public Long getKey(WmsInventory entity) {
if(entity != null) {
return entity.getInventoryId();
} else {
return null;
}
}
@Override
public boolean hasKey(WmsInventory entity) {
return entity.getInventoryId() != null;
}
@Override
protected final boolean isEntityUpdateable() {
return true;
}
}
package sql.com.yz.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import com.sxyz.rfid.greendao.model.WmsInventoryResult;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "wms_inventory_result".
*/
public class WmsInventoryResultDao extends AbstractDao<WmsInventoryResult, Long> {
public static final String TABLENAME = "wms_inventory_result";
/**
* Properties of entity WmsInventoryResult.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property ResultId = new Property(0, Long.class, "resultId", true, "result_id");
public final static Property TaskId = new Property(1, Integer.class, "taskId", false, "task_id");
public final static Property PlanId = new Property(2, Integer.class, "planId", false, "plan_id");
public final static Property WarehouseId = new Property(3, Integer.class, "warehouseId", false, "warehouse_id");
public final static Property WarehouseName = new Property(4, String.class, "warehouseName", false, "warehouse_name");
public final static Property AreaIds = new Property(5, String.class, "areaIds", false, "area_ids");
public final static Property AreaName = new Property(6, String.class, "areaName", false, "area_name");
public final static Property CheckerId = new Property(7, Integer.class, "checkerId", false, "checker_id");
public final static Property CheckerName = new Property(8, String.class, "checkerName", false, "checker_name");
public final static Property StartTime = new Property(9, String.class, "startTime", false, "start_time");
public final static Property EndTime = new Property(10, String.class, "endTime", false, "end_time");
public final static Property TotalItems = new Property(11, Integer.class, "totalItems", false, "total_items");
public final static Property CountedItems = new Property(12, Integer.class, "countedItems", false, "counted_items");
public final static Property SurplusItems = new Property(13, Integer.class, "surplusItems", false, "surplus_items");
public final static Property DeficitItems = new Property(14, Integer.class, "deficitItems", false, "deficit_items");
public final static Property TotalSurplus = new Property(15, Double.class, "totalSurplus", false, "total_surplus");
public final static Property TotalDeficit = new Property(16, Double.class, "totalDeficit", false, "total_deficit");
public final static Property TotalDifferenceValue = new Property(17, Double.class, "totalDifferenceValue", false, "total_difference_value");
public final static Property DifferenceRate = new Property(18, Double.class, "differenceRate", false, "difference_rate");
public final static Property ResultStatus = new Property(19, String.class, "resultStatus", false, "result_status");
public final static Property AuditStatus = new Property(20, String.class, "auditStatus", false, "audit_status");
public final static Property AuditorId = new Property(21, Integer.class, "auditorId", false, "auditor_id");
public final static Property AuditorName = new Property(22, String.class, "auditorName", false, "auditor_name");
public final static Property AuditTime = new Property(23, String.class, "auditTime", false, "audit_time");
public final static Property AuditOpinion = new Property(24, String.class, "auditOpinion", false, "audit_opinion");
public final static Property DelFlag = new Property(25, String.class, "delFlag", false, "del_flag");
public final static Property CreateTime = new Property(26, String.class, "createTime", false, "create_time");
public final static Property UpdateTime = new Property(27, String.class, "updateTime", false, "update_time");
public final static Property Remark = new Property(28, String.class, "remark", false, "remark");
}
public WmsInventoryResultDao(DaoConfig config) {
super(config);
}
public WmsInventoryResultDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"wms_inventory_result\" (" + //
"\"result_id\" INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: resultId
"\"task_id\" INTEGER," + // 1: taskId
"\"plan_id\" INTEGER," + // 2: planId
"\"warehouse_id\" INTEGER," + // 3: warehouseId
"\"warehouse_name\" TEXT," + // 4: warehouseName
"\"area_ids\" TEXT," + // 5: areaIds
"\"area_name\" TEXT," + // 6: areaName
"\"checker_id\" INTEGER," + // 7: checkerId
"\"checker_name\" TEXT," + // 8: checkerName
"\"start_time\" TEXT," + // 9: startTime
"\"end_time\" TEXT," + // 10: endTime
"\"total_items\" INTEGER," + // 11: totalItems
"\"counted_items\" INTEGER," + // 12: countedItems
"\"surplus_items\" INTEGER," + // 13: surplusItems
"\"deficit_items\" INTEGER," + // 14: deficitItems
"\"total_surplus\" REAL," + // 15: totalSurplus
"\"total_deficit\" REAL," + // 16: totalDeficit
"\"total_difference_value\" REAL," + // 17: totalDifferenceValue
"\"difference_rate\" REAL," + // 18: differenceRate
"\"result_status\" TEXT," + // 19: resultStatus
"\"audit_status\" TEXT," + // 20: auditStatus
"\"auditor_id\" INTEGER," + // 21: auditorId
"\"auditor_name\" TEXT," + // 22: auditorName
"\"audit_time\" TEXT," + // 23: auditTime
"\"audit_opinion\" TEXT," + // 24: auditOpinion
"\"del_flag\" TEXT," + // 25: delFlag
"\"create_time\" TEXT," + // 26: createTime
"\"update_time\" TEXT," + // 27: updateTime
"\"remark\" TEXT);"); // 28: remark
}
/** Drops the underlying database table. */
public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"wms_inventory_result\"";
db.execSQL(sql);
}
@Override
protected final void bindValues(DatabaseStatement stmt, WmsInventoryResult entity) {
stmt.clearBindings();
Long resultId = entity.getResultId();
if (resultId != null) {
stmt.bindLong(1, resultId);
}
Integer taskId = entity.getTaskId();
if (taskId != null) {
stmt.bindLong(2, taskId);
}
Integer planId = entity.getPlanId();
if (planId != null) {
stmt.bindLong(3, planId);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(4, warehouseId);
}
String warehouseName = entity.getWarehouseName();
if (warehouseName != null) {
stmt.bindString(5, warehouseName);
}
String areaIds = entity.getAreaIds();
if (areaIds != null) {
stmt.bindString(6, areaIds);
}
String areaName = entity.getAreaName();
if (areaName != null) {
stmt.bindString(7, areaName);
}
Integer checkerId = entity.getCheckerId();
if (checkerId != null) {
stmt.bindLong(8, checkerId);
}
String checkerName = entity.getCheckerName();
if (checkerName != null) {
stmt.bindString(9, checkerName);
}
String startTime = entity.getStartTime();
if (startTime != null) {
stmt.bindString(10, startTime);
}
String endTime = entity.getEndTime();
if (endTime != null) {
stmt.bindString(11, endTime);
}
Integer totalItems = entity.getTotalItems();
if (totalItems != null) {
stmt.bindLong(12, totalItems);
}
Integer countedItems = entity.getCountedItems();
if (countedItems != null) {
stmt.bindLong(13, countedItems);
}
Integer surplusItems = entity.getSurplusItems();
if (surplusItems != null) {
stmt.bindLong(14, surplusItems);
}
Integer deficitItems = entity.getDeficitItems();
if (deficitItems != null) {
stmt.bindLong(15, deficitItems);
}
Double totalSurplus = entity.getTotalSurplus();
if (totalSurplus != null) {
stmt.bindDouble(16, totalSurplus);
}
Double totalDeficit = entity.getTotalDeficit();
if (totalDeficit != null) {
stmt.bindDouble(17, totalDeficit);
}
Double totalDifferenceValue = entity.getTotalDifferenceValue();
if (totalDifferenceValue != null) {
stmt.bindDouble(18, totalDifferenceValue);
}
Double differenceRate = entity.getDifferenceRate();
if (differenceRate != null) {
stmt.bindDouble(19, differenceRate);
}
String resultStatus = entity.getResultStatus();
if (resultStatus != null) {
stmt.bindString(20, resultStatus);
}
String auditStatus = entity.getAuditStatus();
if (auditStatus != null) {
stmt.bindString(21, auditStatus);
}
Integer auditorId = entity.getAuditorId();
if (auditorId != null) {
stmt.bindLong(22, auditorId);
}
String auditorName = entity.getAuditorName();
if (auditorName != null) {
stmt.bindString(23, auditorName);
}
String auditTime = entity.getAuditTime();
if (auditTime != null) {
stmt.bindString(24, auditTime);
}
String auditOpinion = entity.getAuditOpinion();
if (auditOpinion != null) {
stmt.bindString(25, auditOpinion);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(26, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(27, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(28, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(29, remark);
}
}
@Override
protected final void bindValues(SQLiteStatement stmt, WmsInventoryResult entity) {
stmt.clearBindings();
Long resultId = entity.getResultId();
if (resultId != null) {
stmt.bindLong(1, resultId);
}
Integer taskId = entity.getTaskId();
if (taskId != null) {
stmt.bindLong(2, taskId);
}
Integer planId = entity.getPlanId();
if (planId != null) {
stmt.bindLong(3, planId);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(4, warehouseId);
}
String warehouseName = entity.getWarehouseName();
if (warehouseName != null) {
stmt.bindString(5, warehouseName);
}
String areaIds = entity.getAreaIds();
if (areaIds != null) {
stmt.bindString(6, areaIds);
}
String areaName = entity.getAreaName();
if (areaName != null) {
stmt.bindString(7, areaName);
}
Integer checkerId = entity.getCheckerId();
if (checkerId != null) {
stmt.bindLong(8, checkerId);
}
String checkerName = entity.getCheckerName();
if (checkerName != null) {
stmt.bindString(9, checkerName);
}
String startTime = entity.getStartTime();
if (startTime != null) {
stmt.bindString(10, startTime);
}
String endTime = entity.getEndTime();
if (endTime != null) {
stmt.bindString(11, endTime);
}
Integer totalItems = entity.getTotalItems();
if (totalItems != null) {
stmt.bindLong(12, totalItems);
}
Integer countedItems = entity.getCountedItems();
if (countedItems != null) {
stmt.bindLong(13, countedItems);
}
Integer surplusItems = entity.getSurplusItems();
if (surplusItems != null) {
stmt.bindLong(14, surplusItems);
}
Integer deficitItems = entity.getDeficitItems();
if (deficitItems != null) {
stmt.bindLong(15, deficitItems);
}
Double totalSurplus = entity.getTotalSurplus();
if (totalSurplus != null) {
stmt.bindDouble(16, totalSurplus);
}
Double totalDeficit = entity.getTotalDeficit();
if (totalDeficit != null) {
stmt.bindDouble(17, totalDeficit);
}
Double totalDifferenceValue = entity.getTotalDifferenceValue();
if (totalDifferenceValue != null) {
stmt.bindDouble(18, totalDifferenceValue);
}
Double differenceRate = entity.getDifferenceRate();
if (differenceRate != null) {
stmt.bindDouble(19, differenceRate);
}
String resultStatus = entity.getResultStatus();
if (resultStatus != null) {
stmt.bindString(20, resultStatus);
}
String auditStatus = entity.getAuditStatus();
if (auditStatus != null) {
stmt.bindString(21, auditStatus);
}
Integer auditorId = entity.getAuditorId();
if (auditorId != null) {
stmt.bindLong(22, auditorId);
}
String auditorName = entity.getAuditorName();
if (auditorName != null) {
stmt.bindString(23, auditorName);
}
String auditTime = entity.getAuditTime();
if (auditTime != null) {
stmt.bindString(24, auditTime);
}
String auditOpinion = entity.getAuditOpinion();
if (auditOpinion != null) {
stmt.bindString(25, auditOpinion);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(26, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(27, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(28, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(29, remark);
}
}
@Override
public Long readKey(Cursor cursor, int offset) {
return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
}
@Override
public WmsInventoryResult readEntity(Cursor cursor, int offset) {
WmsInventoryResult entity = new WmsInventoryResult( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // resultId
cursor.isNull(offset + 1) ? null : cursor.getInt(offset + 1), // taskId
cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2), // planId
cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3), // warehouseId
cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // warehouseName
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // areaIds
cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // areaName
cursor.isNull(offset + 7) ? null : cursor.getInt(offset + 7), // checkerId
cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8), // checkerName
cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // startTime
cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // endTime
cursor.isNull(offset + 11) ? null : cursor.getInt(offset + 11), // totalItems
cursor.isNull(offset + 12) ? null : cursor.getInt(offset + 12), // countedItems
cursor.isNull(offset + 13) ? null : cursor.getInt(offset + 13), // surplusItems
cursor.isNull(offset + 14) ? null : cursor.getInt(offset + 14), // deficitItems
cursor.isNull(offset + 15) ? null : cursor.getDouble(offset + 15), // totalSurplus
cursor.isNull(offset + 16) ? null : cursor.getDouble(offset + 16), // totalDeficit
cursor.isNull(offset + 17) ? null : cursor.getDouble(offset + 17), // totalDifferenceValue
cursor.isNull(offset + 18) ? null : cursor.getDouble(offset + 18), // differenceRate
cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19), // resultStatus
cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20), // auditStatus
cursor.isNull(offset + 21) ? null : cursor.getInt(offset + 21), // auditorId
cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22), // auditorName
cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23), // auditTime
cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24), // auditOpinion
cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25), // delFlag
cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26), // createTime
cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27), // updateTime
cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28) // remark
);
return entity;
}
@Override
public void readEntity(Cursor cursor, WmsInventoryResult entity, int offset) {
entity.setResultId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
entity.setTaskId(cursor.isNull(offset + 1) ? null : cursor.getInt(offset + 1));
entity.setPlanId(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2));
entity.setWarehouseId(cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3));
entity.setWarehouseName(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
entity.setAreaIds(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
entity.setAreaName(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
entity.setCheckerId(cursor.isNull(offset + 7) ? null : cursor.getInt(offset + 7));
entity.setCheckerName(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8));
entity.setStartTime(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
entity.setEndTime(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
entity.setTotalItems(cursor.isNull(offset + 11) ? null : cursor.getInt(offset + 11));
entity.setCountedItems(cursor.isNull(offset + 12) ? null : cursor.getInt(offset + 12));
entity.setSurplusItems(cursor.isNull(offset + 13) ? null : cursor.getInt(offset + 13));
entity.setDeficitItems(cursor.isNull(offset + 14) ? null : cursor.getInt(offset + 14));
entity.setTotalSurplus(cursor.isNull(offset + 15) ? null : cursor.getDouble(offset + 15));
entity.setTotalDeficit(cursor.isNull(offset + 16) ? null : cursor.getDouble(offset + 16));
entity.setTotalDifferenceValue(cursor.isNull(offset + 17) ? null : cursor.getDouble(offset + 17));
entity.setDifferenceRate(cursor.isNull(offset + 18) ? null : cursor.getDouble(offset + 18));
entity.setResultStatus(cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19));
entity.setAuditStatus(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
entity.setAuditorId(cursor.isNull(offset + 21) ? null : cursor.getInt(offset + 21));
entity.setAuditorName(cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22));
entity.setAuditTime(cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23));
entity.setAuditOpinion(cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24));
entity.setDelFlag(cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25));
entity.setCreateTime(cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26));
entity.setUpdateTime(cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27));
entity.setRemark(cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28));
}
@Override
protected final Long updateKeyAfterInsert(WmsInventoryResult entity, long rowId) {
entity.setResultId(rowId);
return rowId;
}
@Override
public Long getKey(WmsInventoryResult entity) {
if(entity != null) {
return entity.getResultId();
} else {
return null;
}
}
@Override
public boolean hasKey(WmsInventoryResult entity) {
return entity.getResultId() != null;
}
@Override
protected final boolean isEntityUpdateable() {
return true;
}
}
package sql.com.yz.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import com.sxyz.rfid.greendao.model.WmsInventoryTask;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "wms_inventory_task".
*/
public class WmsInventoryTaskDao extends AbstractDao<WmsInventoryTask, Long> {
public static final String TABLENAME = "wms_inventory_task";
/**
* Properties of entity WmsInventoryTask.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property TaskId = new Property(0, Long.class, "taskId", true, "task_id");
public final static Property PlanId = new Property(1, Integer.class, "planId", false, "plan_id");
public final static Property TaskNo = new Property(2, String.class, "taskNo", false, "task_no");
public final static Property TaskName = new Property(3, String.class, "taskName", false, "task_name");
public final static Property WarehouseId = new Property(4, Integer.class, "warehouseId", false, "warehouse_id");
public final static Property WarehouseName = new Property(5, String.class, "warehouseName", false, "warehouse_name");
public final static Property AreaIds = new Property(6, String.class, "areaIds", false, "area_ids");
public final static Property AreaName = new Property(7, String.class, "areaName", false, "area_name");
public final static Property MaterialIds = new Property(8, String.class, "materialIds", false, "material_ids");
public final static Property LocationRange = new Property(9, String.class, "locationRange", false, "location_range");
public final static Property AssigneeId = new Property(10, Integer.class, "assigneeId", false, "assignee_id");
public final static Property AssistantIds = new Property(11, String.class, "assistantIds", false, "assistant_ids");
public final static Property TaskStatus = new Property(12, String.class, "taskStatus", false, "task_status");
public final static Property StartTime = new Property(13, String.class, "startTime", false, "start_time");
public final static Property EndTime = new Property(14, String.class, "endTime", false, "end_time");
public final static Property TotalItems = new Property(15, Integer.class, "totalItems", false, "total_items");
public final static Property CountedItems = new Property(16, Integer.class, "countedItems", false, "counted_items");
public final static Property InventoryDevice = new Property(17, String.class, "inventoryDevice", false, "inventory_device");
public final static Property DelFlag = new Property(18, String.class, "delFlag", false, "del_flag");
public final static Property CreateTime = new Property(19, String.class, "createTime", false, "create_time");
public final static Property UpdateTime = new Property(20, String.class, "updateTime", false, "update_time");
public final static Property Remark = new Property(21, String.class, "remark", false, "remark");
}
public WmsInventoryTaskDao(DaoConfig config) {
super(config);
}
public WmsInventoryTaskDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"wms_inventory_task\" (" + //
"\"task_id\" INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: taskId
"\"plan_id\" INTEGER," + // 1: planId
"\"task_no\" TEXT," + // 2: taskNo
"\"task_name\" TEXT," + // 3: taskName
"\"warehouse_id\" INTEGER," + // 4: warehouseId
"\"warehouse_name\" TEXT," + // 5: warehouseName
"\"area_ids\" TEXT," + // 6: areaIds
"\"area_name\" TEXT," + // 7: areaName
"\"material_ids\" TEXT," + // 8: materialIds
"\"location_range\" TEXT," + // 9: locationRange
"\"assignee_id\" INTEGER," + // 10: assigneeId
"\"assistant_ids\" TEXT," + // 11: assistantIds
"\"task_status\" TEXT," + // 12: taskStatus
"\"start_time\" TEXT," + // 13: startTime
"\"end_time\" TEXT," + // 14: endTime
"\"total_items\" INTEGER," + // 15: totalItems
"\"counted_items\" INTEGER," + // 16: countedItems
"\"inventory_device\" TEXT," + // 17: inventoryDevice
"\"del_flag\" TEXT," + // 18: delFlag
"\"create_time\" TEXT," + // 19: createTime
"\"update_time\" TEXT," + // 20: updateTime
"\"remark\" TEXT);"); // 21: remark
}
/** Drops the underlying database table. */
public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"wms_inventory_task\"";
db.execSQL(sql);
}
@Override
protected final void bindValues(DatabaseStatement stmt, WmsInventoryTask entity) {
stmt.clearBindings();
Long taskId = entity.getTaskId();
if (taskId != null) {
stmt.bindLong(1, taskId);
}
Integer planId = entity.getPlanId();
if (planId != null) {
stmt.bindLong(2, planId);
}
String taskNo = entity.getTaskNo();
if (taskNo != null) {
stmt.bindString(3, taskNo);
}
String taskName = entity.getTaskName();
if (taskName != null) {
stmt.bindString(4, taskName);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(5, warehouseId);
}
String warehouseName = entity.getWarehouseName();
if (warehouseName != null) {
stmt.bindString(6, warehouseName);
}
String areaIds = entity.getAreaIds();
if (areaIds != null) {
stmt.bindString(7, areaIds);
}
String areaName = entity.getAreaName();
if (areaName != null) {
stmt.bindString(8, areaName);
}
String materialIds = entity.getMaterialIds();
if (materialIds != null) {
stmt.bindString(9, materialIds);
}
String locationRange = entity.getLocationRange();
if (locationRange != null) {
stmt.bindString(10, locationRange);
}
Integer assigneeId = entity.getAssigneeId();
if (assigneeId != null) {
stmt.bindLong(11, assigneeId);
}
String assistantIds = entity.getAssistantIds();
if (assistantIds != null) {
stmt.bindString(12, assistantIds);
}
String taskStatus = entity.getTaskStatus();
if (taskStatus != null) {
stmt.bindString(13, taskStatus);
}
String startTime = entity.getStartTime();
if (startTime != null) {
stmt.bindString(14, startTime);
}
String endTime = entity.getEndTime();
if (endTime != null) {
stmt.bindString(15, endTime);
}
Integer totalItems = entity.getTotalItems();
if (totalItems != null) {
stmt.bindLong(16, totalItems);
}
Integer countedItems = entity.getCountedItems();
if (countedItems != null) {
stmt.bindLong(17, countedItems);
}
String inventoryDevice = entity.getInventoryDevice();
if (inventoryDevice != null) {
stmt.bindString(18, inventoryDevice);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(19, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(20, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(21, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(22, remark);
}
}
@Override
protected final void bindValues(SQLiteStatement stmt, WmsInventoryTask entity) {
stmt.clearBindings();
Long taskId = entity.getTaskId();
if (taskId != null) {
stmt.bindLong(1, taskId);
}
Integer planId = entity.getPlanId();
if (planId != null) {
stmt.bindLong(2, planId);
}
String taskNo = entity.getTaskNo();
if (taskNo != null) {
stmt.bindString(3, taskNo);
}
String taskName = entity.getTaskName();
if (taskName != null) {
stmt.bindString(4, taskName);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(5, warehouseId);
}
String warehouseName = entity.getWarehouseName();
if (warehouseName != null) {
stmt.bindString(6, warehouseName);
}
String areaIds = entity.getAreaIds();
if (areaIds != null) {
stmt.bindString(7, areaIds);
}
String areaName = entity.getAreaName();
if (areaName != null) {
stmt.bindString(8, areaName);
}
String materialIds = entity.getMaterialIds();
if (materialIds != null) {
stmt.bindString(9, materialIds);
}
String locationRange = entity.getLocationRange();
if (locationRange != null) {
stmt.bindString(10, locationRange);
}
Integer assigneeId = entity.getAssigneeId();
if (assigneeId != null) {
stmt.bindLong(11, assigneeId);
}
String assistantIds = entity.getAssistantIds();
if (assistantIds != null) {
stmt.bindString(12, assistantIds);
}
String taskStatus = entity.getTaskStatus();
if (taskStatus != null) {
stmt.bindString(13, taskStatus);
}
String startTime = entity.getStartTime();
if (startTime != null) {
stmt.bindString(14, startTime);
}
String endTime = entity.getEndTime();
if (endTime != null) {
stmt.bindString(15, endTime);
}
Integer totalItems = entity.getTotalItems();
if (totalItems != null) {
stmt.bindLong(16, totalItems);
}
Integer countedItems = entity.getCountedItems();
if (countedItems != null) {
stmt.bindLong(17, countedItems);
}
String inventoryDevice = entity.getInventoryDevice();
if (inventoryDevice != null) {
stmt.bindString(18, inventoryDevice);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(19, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(20, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(21, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(22, remark);
}
}
@Override
public Long readKey(Cursor cursor, int offset) {
return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
}
@Override
public WmsInventoryTask readEntity(Cursor cursor, int offset) {
WmsInventoryTask entity = new WmsInventoryTask( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // taskId
cursor.isNull(offset + 1) ? null : cursor.getInt(offset + 1), // planId
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // taskNo
cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // taskName
cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4), // warehouseId
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // warehouseName
cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // areaIds
cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // areaName
cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8), // materialIds
cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // locationRange
cursor.isNull(offset + 10) ? null : cursor.getInt(offset + 10), // assigneeId
cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11), // assistantIds
cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12), // taskStatus
cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13), // startTime
cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // endTime
cursor.isNull(offset + 15) ? null : cursor.getInt(offset + 15), // totalItems
cursor.isNull(offset + 16) ? null : cursor.getInt(offset + 16), // countedItems
cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17), // inventoryDevice
cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18), // delFlag
cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19), // createTime
cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20), // updateTime
cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21) // remark
);
return entity;
}
@Override
public void readEntity(Cursor cursor, WmsInventoryTask entity, int offset) {
entity.setTaskId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
entity.setPlanId(cursor.isNull(offset + 1) ? null : cursor.getInt(offset + 1));
entity.setTaskNo(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
entity.setTaskName(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
entity.setWarehouseId(cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4));
entity.setWarehouseName(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
entity.setAreaIds(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
entity.setAreaName(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
entity.setMaterialIds(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8));
entity.setLocationRange(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
entity.setAssigneeId(cursor.isNull(offset + 10) ? null : cursor.getInt(offset + 10));
entity.setAssistantIds(cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11));
entity.setTaskStatus(cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12));
entity.setStartTime(cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13));
entity.setEndTime(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
entity.setTotalItems(cursor.isNull(offset + 15) ? null : cursor.getInt(offset + 15));
entity.setCountedItems(cursor.isNull(offset + 16) ? null : cursor.getInt(offset + 16));
entity.setInventoryDevice(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
entity.setDelFlag(cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18));
entity.setCreateTime(cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19));
entity.setUpdateTime(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
entity.setRemark(cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21));
}
@Override
protected final Long updateKeyAfterInsert(WmsInventoryTask entity, long rowId) {
entity.setTaskId(rowId);
return rowId;
}
@Override
public Long getKey(WmsInventoryTask entity) {
if(entity != null) {
return entity.getTaskId();
} else {
return null;
}
}
@Override
public boolean hasKey(WmsInventoryTask entity) {
return entity.getTaskId() != null;
}
@Override
protected final boolean isEntityUpdateable() {
return true;
}
}
package sql.com.yz.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import com.sxyz.rfid.greendao.model.WmsInventoryTaskDetail;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "wms_inventory_task_detail".
*/
public class WmsInventoryTaskDetailDao extends AbstractDao<WmsInventoryTaskDetail, Long> {
public static final String TABLENAME = "wms_inventory_task_detail";
/**
* Properties of entity WmsInventoryTaskDetail.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property DetailId = new Property(0, Long.class, "detailId", true, "detail_id");
public final static Property TaskId = new Property(1, Integer.class, "taskId", false, "task_id");
public final static Property InventoryId = new Property(2, Integer.class, "inventoryId", false, "inventory_id");
public final static Property MaterialId = new Property(3, Integer.class, "materialId", false, "material_id");
public final static Property WarehouseId = new Property(4, Integer.class, "warehouseId", false, "warehouse_id");
public final static Property WarehouseName = new Property(5, String.class, "warehouseName", false, "warehouse_name");
public final static Property AreaId = new Property(6, Integer.class, "areaId", false, "area_id");
public final static Property AreaName = new Property(7, String.class, "areaName", false, "area_name");
public final static Property LocationId = new Property(8, Integer.class, "locationId", false, "location_id");
public final static Property LocationName = new Property(9, String.class, "locationName", false, "location_name");
public final static Property BatchNo = new Property(10, String.class, "batchNo", false, "batch_no");
public final static Property SystemQty = new Property(11, Float.class, "systemQty", false, "system_quantity");
public final static Property ActualQty = new Property(12, Float.class, "actualQty", false, "actual_quantity");
public final static Property DiffQty = new Property(13, Float.class, "diffQty", false, "difference_rate");
public final static Property DiffReason = new Property(14, String.class, "diffReason", false, "difference_reason");
public final static Property CheckStatus = new Property(15, String.class, "checkStatus", false, "check_status");
public final static Property CheckerId = new Property(16, Integer.class, "checkerId", false, "checker_id");
public final static Property CheckerName = new Property(17, String.class, "checkerName", false, "checker_name");
public final static Property CheckTime = new Property(18, String.class, "checkTime", false, "check_time");
public final static Property RfidTag = new Property(19, String.class, "rfidTag", false, "rfid_tag");
public final static Property Barcode = new Property(20, String.class, "barcode", false, "barcode");
public final static Property IsBlindZone = new Property(21, String.class, "isBlindZone", false, "is_blind_zone");
public final static Property QualityStatus = new Property(22, String.class, "qualityStatus", false, "quality_status");
public final static Property DelFlag = new Property(23, String.class, "delFlag", false, "del_flag");
public final static Property CreateTime = new Property(24, String.class, "createTime", false, "create_time");
public final static Property UpdateTime = new Property(25, String.class, "updateTime", false, "update_time");
public final static Property Remark = new Property(26, String.class, "remark", false, "remark");
}
public WmsInventoryTaskDetailDao(DaoConfig config) {
super(config);
}
public WmsInventoryTaskDetailDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"wms_inventory_task_detail\" (" + //
"\"detail_id\" INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: detailId
"\"task_id\" INTEGER," + // 1: taskId
"\"inventory_id\" INTEGER," + // 2: inventoryId
"\"material_id\" INTEGER," + // 3: materialId
"\"warehouse_id\" INTEGER," + // 4: warehouseId
"\"warehouse_name\" TEXT," + // 5: warehouseName
"\"area_id\" INTEGER," + // 6: areaId
"\"area_name\" TEXT," + // 7: areaName
"\"location_id\" INTEGER," + // 8: locationId
"\"location_name\" TEXT," + // 9: locationName
"\"batch_no\" TEXT," + // 10: batchNo
"\"system_quantity\" REAL," + // 11: systemQty
"\"actual_quantity\" REAL," + // 12: actualQty
"\"difference_rate\" REAL," + // 13: diffQty
"\"difference_reason\" TEXT," + // 14: diffReason
"\"check_status\" TEXT," + // 15: checkStatus
"\"checker_id\" INTEGER," + // 16: checkerId
"\"checker_name\" TEXT," + // 17: checkerName
"\"check_time\" TEXT," + // 18: checkTime
"\"rfid_tag\" TEXT," + // 19: rfidTag
"\"barcode\" TEXT," + // 20: barcode
"\"is_blind_zone\" TEXT," + // 21: isBlindZone
"\"quality_status\" TEXT," + // 22: qualityStatus
"\"del_flag\" TEXT," + // 23: delFlag
"\"create_time\" TEXT," + // 24: createTime
"\"update_time\" TEXT," + // 25: updateTime
"\"remark\" TEXT);"); // 26: remark
}
/** Drops the underlying database table. */
public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"wms_inventory_task_detail\"";
db.execSQL(sql);
}
@Override
protected final void bindValues(DatabaseStatement stmt, WmsInventoryTaskDetail entity) {
stmt.clearBindings();
Long detailId = entity.getDetailId();
if (detailId != null) {
stmt.bindLong(1, detailId);
}
Integer taskId = entity.getTaskId();
if (taskId != null) {
stmt.bindLong(2, taskId);
}
Integer inventoryId = entity.getInventoryId();
if (inventoryId != null) {
stmt.bindLong(3, inventoryId);
}
Integer materialId = entity.getMaterialId();
if (materialId != null) {
stmt.bindLong(4, materialId);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(5, warehouseId);
}
String warehouseName = entity.getWarehouseName();
if (warehouseName != null) {
stmt.bindString(6, warehouseName);
}
Integer areaId = entity.getAreaId();
if (areaId != null) {
stmt.bindLong(7, areaId);
}
String areaName = entity.getAreaName();
if (areaName != null) {
stmt.bindString(8, areaName);
}
Integer locationId = entity.getLocationId();
if (locationId != null) {
stmt.bindLong(9, locationId);
}
String locationName = entity.getLocationName();
if (locationName != null) {
stmt.bindString(10, locationName);
}
String batchNo = entity.getBatchNo();
if (batchNo != null) {
stmt.bindString(11, batchNo);
}
Float systemQty = entity.getSystemQty();
if (systemQty != null) {
stmt.bindDouble(12, systemQty);
}
Float actualQty = entity.getActualQty();
if (actualQty != null) {
stmt.bindDouble(13, actualQty);
}
Float diffQty = entity.getDiffQty();
if (diffQty != null) {
stmt.bindDouble(14, diffQty);
}
String diffReason = entity.getDiffReason();
if (diffReason != null) {
stmt.bindString(15, diffReason);
}
String checkStatus = entity.getCheckStatus();
if (checkStatus != null) {
stmt.bindString(16, checkStatus);
}
Integer checkerId = entity.getCheckerId();
if (checkerId != null) {
stmt.bindLong(17, checkerId);
}
String checkerName = entity.getCheckerName();
if (checkerName != null) {
stmt.bindString(18, checkerName);
}
String checkTime = entity.getCheckTime();
if (checkTime != null) {
stmt.bindString(19, checkTime);
}
String rfidTag = entity.getRfidTag();
if (rfidTag != null) {
stmt.bindString(20, rfidTag);
}
String barcode = entity.getBarcode();
if (barcode != null) {
stmt.bindString(21, barcode);
}
String isBlindZone = entity.getIsBlindZone();
if (isBlindZone != null) {
stmt.bindString(22, isBlindZone);
}
String qualityStatus = entity.getQualityStatus();
if (qualityStatus != null) {
stmt.bindString(23, qualityStatus);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(24, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(25, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(26, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(27, remark);
}
}
@Override
protected final void bindValues(SQLiteStatement stmt, WmsInventoryTaskDetail entity) {
stmt.clearBindings();
Long detailId = entity.getDetailId();
if (detailId != null) {
stmt.bindLong(1, detailId);
}
Integer taskId = entity.getTaskId();
if (taskId != null) {
stmt.bindLong(2, taskId);
}
Integer inventoryId = entity.getInventoryId();
if (inventoryId != null) {
stmt.bindLong(3, inventoryId);
}
Integer materialId = entity.getMaterialId();
if (materialId != null) {
stmt.bindLong(4, materialId);
}
Integer warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(5, warehouseId);
}
String warehouseName = entity.getWarehouseName();
if (warehouseName != null) {
stmt.bindString(6, warehouseName);
}
Integer areaId = entity.getAreaId();
if (areaId != null) {
stmt.bindLong(7, areaId);
}
String areaName = entity.getAreaName();
if (areaName != null) {
stmt.bindString(8, areaName);
}
Integer locationId = entity.getLocationId();
if (locationId != null) {
stmt.bindLong(9, locationId);
}
String locationName = entity.getLocationName();
if (locationName != null) {
stmt.bindString(10, locationName);
}
String batchNo = entity.getBatchNo();
if (batchNo != null) {
stmt.bindString(11, batchNo);
}
Float systemQty = entity.getSystemQty();
if (systemQty != null) {
stmt.bindDouble(12, systemQty);
}
Float actualQty = entity.getActualQty();
if (actualQty != null) {
stmt.bindDouble(13, actualQty);
}
Float diffQty = entity.getDiffQty();
if (diffQty != null) {
stmt.bindDouble(14, diffQty);
}
String diffReason = entity.getDiffReason();
if (diffReason != null) {
stmt.bindString(15, diffReason);
}
String checkStatus = entity.getCheckStatus();
if (checkStatus != null) {
stmt.bindString(16, checkStatus);
}
Integer checkerId = entity.getCheckerId();
if (checkerId != null) {
stmt.bindLong(17, checkerId);
}
String checkerName = entity.getCheckerName();
if (checkerName != null) {
stmt.bindString(18, checkerName);
}
String checkTime = entity.getCheckTime();
if (checkTime != null) {
stmt.bindString(19, checkTime);
}
String rfidTag = entity.getRfidTag();
if (rfidTag != null) {
stmt.bindString(20, rfidTag);
}
String barcode = entity.getBarcode();
if (barcode != null) {
stmt.bindString(21, barcode);
}
String isBlindZone = entity.getIsBlindZone();
if (isBlindZone != null) {
stmt.bindString(22, isBlindZone);
}
String qualityStatus = entity.getQualityStatus();
if (qualityStatus != null) {
stmt.bindString(23, qualityStatus);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(24, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(25, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(26, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(27, remark);
}
}
@Override
public Long readKey(Cursor cursor, int offset) {
return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
}
@Override
public WmsInventoryTaskDetail readEntity(Cursor cursor, int offset) {
WmsInventoryTaskDetail entity = new WmsInventoryTaskDetail( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // detailId
cursor.isNull(offset + 1) ? null : cursor.getInt(offset + 1), // taskId
cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2), // inventoryId
cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3), // materialId
cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4), // warehouseId
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // warehouseName
cursor.isNull(offset + 6) ? null : cursor.getInt(offset + 6), // areaId
cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // areaName
cursor.isNull(offset + 8) ? null : cursor.getInt(offset + 8), // locationId
cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // locationName
cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // batchNo
cursor.isNull(offset + 11) ? null : cursor.getFloat(offset + 11), // systemQty
cursor.isNull(offset + 12) ? null : cursor.getFloat(offset + 12), // actualQty
cursor.isNull(offset + 13) ? null : cursor.getFloat(offset + 13), // diffQty
cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // diffReason
cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // checkStatus
cursor.isNull(offset + 16) ? null : cursor.getInt(offset + 16), // checkerId
cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17), // checkerName
cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18), // checkTime
cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19), // rfidTag
cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20), // barcode
cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21), // isBlindZone
cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22), // qualityStatus
cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23), // delFlag
cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24), // createTime
cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25), // updateTime
cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26) // remark
);
return entity;
}
@Override
public void readEntity(Cursor cursor, WmsInventoryTaskDetail entity, int offset) {
entity.setDetailId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
entity.setTaskId(cursor.isNull(offset + 1) ? null : cursor.getInt(offset + 1));
entity.setInventoryId(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2));
entity.setMaterialId(cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3));
entity.setWarehouseId(cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4));
entity.setWarehouseName(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
entity.setAreaId(cursor.isNull(offset + 6) ? null : cursor.getInt(offset + 6));
entity.setAreaName(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
entity.setLocationId(cursor.isNull(offset + 8) ? null : cursor.getInt(offset + 8));
entity.setLocationName(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
entity.setBatchNo(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
entity.setSystemQty(cursor.isNull(offset + 11) ? null : cursor.getFloat(offset + 11));
entity.setActualQty(cursor.isNull(offset + 12) ? null : cursor.getFloat(offset + 12));
entity.setDiffQty(cursor.isNull(offset + 13) ? null : cursor.getFloat(offset + 13));
entity.setDiffReason(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
entity.setCheckStatus(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
entity.setCheckerId(cursor.isNull(offset + 16) ? null : cursor.getInt(offset + 16));
entity.setCheckerName(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
entity.setCheckTime(cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18));
entity.setRfidTag(cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19));
entity.setBarcode(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
entity.setIsBlindZone(cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21));
entity.setQualityStatus(cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22));
entity.setDelFlag(cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23));
entity.setCreateTime(cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24));
entity.setUpdateTime(cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25));
entity.setRemark(cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26));
}
@Override
protected final Long updateKeyAfterInsert(WmsInventoryTaskDetail entity, long rowId) {
entity.setDetailId(rowId);
return rowId;
}
@Override
public Long getKey(WmsInventoryTaskDetail entity) {
if(entity != null) {
return entity.getDetailId();
} else {
return null;
}
}
@Override
public boolean hasKey(WmsInventoryTaskDetail entity) {
return entity.getDetailId() != null;
}
@Override
protected final boolean isEntityUpdateable() {
return true;
}
}
package sql.com.yz.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import com.sxyz.rfid.greendao.model.WmsLocation;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "wms_location".
*/
public class WmsLocationDao extends AbstractDao<WmsLocation, Void> {
public static final String TABLENAME = "wms_location";
/**
* Properties of entity WmsLocation.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property LocationId = new Property(0, Long.class, "locationId", false, "location_id");
public final static Property LocationCode = new Property(1, String.class, "locationCode", false, "location_code");
public final static Property LocationName = new Property(2, String.class, "locationName", false, "location_name");
public final static Property AreaId = new Property(3, Integer.class, "areaId", false, "area_id");
public final static Property LocationType = new Property(4, String.class, "locationType", false, "location_type");
public final static Property XCoordinate = new Property(5, Integer.class, "xCoordinate", false, "x_coordinate");
public final static Property YCoordinate = new Property(6, Integer.class, "yCoordinate", false, "y_coordinate");
public final static Property ZCoordinate = new Property(7, Integer.class, "zCoordinate", false, "z_coordinate");
public final static Property MaxCapacity = new Property(8, Float.class, "maxCapacity", false, "max_capacity");
public final static Property CurrentCapacity = new Property(9, Float.class, "currentCapacity", false, "current_capacity");
public final static Property WeightLimit = new Property(10, Float.class, "weightLimit", false, "weight_limit");
public final static Property Length = new Property(11, Float.class, "length", false, "length");
public final static Property Width = new Property(12, Float.class, "width", false, "width");
public final static Property Height = new Property(13, Float.class, "height", false, "height");
public final static Property Status = new Property(14, String.class, "status", false, "status");
public final static Property RfidAntennaId = new Property(15, String.class, "rfidAntennaId", false, "rfid_antenna_id");
public final static Property LastInventoryTime = new Property(16, String.class, "lastInventoryTime", false, "last_inventory_time");
public final static Property DelFlag = new Property(17, String.class, "delFlag", false, "del_flag");
public final static Property CreateTime = new Property(18, String.class, "createTime", false, "create_time");
public final static Property UpdateTime = new Property(19, String.class, "updateTime", false, "update_time");
public final static Property Remark = new Property(20, String.class, "remark", false, "remark");
}
public WmsLocationDao(DaoConfig config) {
super(config);
}
public WmsLocationDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"wms_location\" (" + //
"\"location_id\" INTEGER," + // 0: locationId
"\"location_code\" TEXT," + // 1: locationCode
"\"location_name\" TEXT," + // 2: locationName
"\"area_id\" INTEGER," + // 3: areaId
"\"location_type\" TEXT," + // 4: locationType
"\"x_coordinate\" INTEGER," + // 5: xCoordinate
"\"y_coordinate\" INTEGER," + // 6: yCoordinate
"\"z_coordinate\" INTEGER," + // 7: zCoordinate
"\"max_capacity\" REAL," + // 8: maxCapacity
"\"current_capacity\" REAL," + // 9: currentCapacity
"\"weight_limit\" REAL," + // 10: weightLimit
"\"length\" REAL," + // 11: length
"\"width\" REAL," + // 12: width
"\"height\" REAL," + // 13: height
"\"status\" TEXT," + // 14: status
"\"rfid_antenna_id\" TEXT," + // 15: rfidAntennaId
"\"last_inventory_time\" TEXT," + // 16: lastInventoryTime
"\"del_flag\" TEXT," + // 17: delFlag
"\"create_time\" TEXT," + // 18: createTime
"\"update_time\" TEXT," + // 19: updateTime
"\"remark\" TEXT);"); // 20: remark
}
/** Drops the underlying database table. */
public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"wms_location\"";
db.execSQL(sql);
}
@Override
protected final void bindValues(DatabaseStatement stmt, WmsLocation entity) {
stmt.clearBindings();
Long locationId = entity.getLocationId();
if (locationId != null) {
stmt.bindLong(1, locationId);
}
String locationCode = entity.getLocationCode();
if (locationCode != null) {
stmt.bindString(2, locationCode);
}
String locationName = entity.getLocationName();
if (locationName != null) {
stmt.bindString(3, locationName);
}
Integer areaId = entity.getAreaId();
if (areaId != null) {
stmt.bindLong(4, areaId);
}
String locationType = entity.getLocationType();
if (locationType != null) {
stmt.bindString(5, locationType);
}
Integer xCoordinate = entity.getXCoordinate();
if (xCoordinate != null) {
stmt.bindLong(6, xCoordinate);
}
Integer yCoordinate = entity.getYCoordinate();
if (yCoordinate != null) {
stmt.bindLong(7, yCoordinate);
}
Integer zCoordinate = entity.getZCoordinate();
if (zCoordinate != null) {
stmt.bindLong(8, zCoordinate);
}
Float maxCapacity = entity.getMaxCapacity();
if (maxCapacity != null) {
stmt.bindDouble(9, maxCapacity);
}
Float currentCapacity = entity.getCurrentCapacity();
if (currentCapacity != null) {
stmt.bindDouble(10, currentCapacity);
}
Float weightLimit = entity.getWeightLimit();
if (weightLimit != null) {
stmt.bindDouble(11, weightLimit);
}
Float length = entity.getLength();
if (length != null) {
stmt.bindDouble(12, length);
}
Float width = entity.getWidth();
if (width != null) {
stmt.bindDouble(13, width);
}
Float height = entity.getHeight();
if (height != null) {
stmt.bindDouble(14, height);
}
String status = entity.getStatus();
if (status != null) {
stmt.bindString(15, status);
}
String rfidAntennaId = entity.getRfidAntennaId();
if (rfidAntennaId != null) {
stmt.bindString(16, rfidAntennaId);
}
String lastInventoryTime = entity.getLastInventoryTime();
if (lastInventoryTime != null) {
stmt.bindString(17, lastInventoryTime);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(18, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(19, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(20, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(21, remark);
}
}
@Override
protected final void bindValues(SQLiteStatement stmt, WmsLocation entity) {
stmt.clearBindings();
Long locationId = entity.getLocationId();
if (locationId != null) {
stmt.bindLong(1, locationId);
}
String locationCode = entity.getLocationCode();
if (locationCode != null) {
stmt.bindString(2, locationCode);
}
String locationName = entity.getLocationName();
if (locationName != null) {
stmt.bindString(3, locationName);
}
Integer areaId = entity.getAreaId();
if (areaId != null) {
stmt.bindLong(4, areaId);
}
String locationType = entity.getLocationType();
if (locationType != null) {
stmt.bindString(5, locationType);
}
Integer xCoordinate = entity.getXCoordinate();
if (xCoordinate != null) {
stmt.bindLong(6, xCoordinate);
}
Integer yCoordinate = entity.getYCoordinate();
if (yCoordinate != null) {
stmt.bindLong(7, yCoordinate);
}
Integer zCoordinate = entity.getZCoordinate();
if (zCoordinate != null) {
stmt.bindLong(8, zCoordinate);
}
Float maxCapacity = entity.getMaxCapacity();
if (maxCapacity != null) {
stmt.bindDouble(9, maxCapacity);
}
Float currentCapacity = entity.getCurrentCapacity();
if (currentCapacity != null) {
stmt.bindDouble(10, currentCapacity);
}
Float weightLimit = entity.getWeightLimit();
if (weightLimit != null) {
stmt.bindDouble(11, weightLimit);
}
Float length = entity.getLength();
if (length != null) {
stmt.bindDouble(12, length);
}
Float width = entity.getWidth();
if (width != null) {
stmt.bindDouble(13, width);
}
Float height = entity.getHeight();
if (height != null) {
stmt.bindDouble(14, height);
}
String status = entity.getStatus();
if (status != null) {
stmt.bindString(15, status);
}
String rfidAntennaId = entity.getRfidAntennaId();
if (rfidAntennaId != null) {
stmt.bindString(16, rfidAntennaId);
}
String lastInventoryTime = entity.getLastInventoryTime();
if (lastInventoryTime != null) {
stmt.bindString(17, lastInventoryTime);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(18, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(19, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(20, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(21, remark);
}
}
@Override
public Void readKey(Cursor cursor, int offset) {
return null;
}
@Override
public WmsLocation readEntity(Cursor cursor, int offset) {
WmsLocation entity = new WmsLocation( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // locationId
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // locationCode
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // locationName
cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3), // areaId
cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // locationType
cursor.isNull(offset + 5) ? null : cursor.getInt(offset + 5), // xCoordinate
cursor.isNull(offset + 6) ? null : cursor.getInt(offset + 6), // yCoordinate
cursor.isNull(offset + 7) ? null : cursor.getInt(offset + 7), // zCoordinate
cursor.isNull(offset + 8) ? null : cursor.getFloat(offset + 8), // maxCapacity
cursor.isNull(offset + 9) ? null : cursor.getFloat(offset + 9), // currentCapacity
cursor.isNull(offset + 10) ? null : cursor.getFloat(offset + 10), // weightLimit
cursor.isNull(offset + 11) ? null : cursor.getFloat(offset + 11), // length
cursor.isNull(offset + 12) ? null : cursor.getFloat(offset + 12), // width
cursor.isNull(offset + 13) ? null : cursor.getFloat(offset + 13), // height
cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // status
cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // rfidAntennaId
cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16), // lastInventoryTime
cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17), // delFlag
cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18), // createTime
cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19), // updateTime
cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20) // remark
);
return entity;
}
@Override
public void readEntity(Cursor cursor, WmsLocation entity, int offset) {
entity.setLocationId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
entity.setLocationCode(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
entity.setLocationName(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
entity.setAreaId(cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3));
entity.setLocationType(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
entity.setXCoordinate(cursor.isNull(offset + 5) ? null : cursor.getInt(offset + 5));
entity.setYCoordinate(cursor.isNull(offset + 6) ? null : cursor.getInt(offset + 6));
entity.setZCoordinate(cursor.isNull(offset + 7) ? null : cursor.getInt(offset + 7));
entity.setMaxCapacity(cursor.isNull(offset + 8) ? null : cursor.getFloat(offset + 8));
entity.setCurrentCapacity(cursor.isNull(offset + 9) ? null : cursor.getFloat(offset + 9));
entity.setWeightLimit(cursor.isNull(offset + 10) ? null : cursor.getFloat(offset + 10));
entity.setLength(cursor.isNull(offset + 11) ? null : cursor.getFloat(offset + 11));
entity.setWidth(cursor.isNull(offset + 12) ? null : cursor.getFloat(offset + 12));
entity.setHeight(cursor.isNull(offset + 13) ? null : cursor.getFloat(offset + 13));
entity.setStatus(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
entity.setRfidAntennaId(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
entity.setLastInventoryTime(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
entity.setDelFlag(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
entity.setCreateTime(cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18));
entity.setUpdateTime(cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19));
entity.setRemark(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
}
@Override
protected final Void updateKeyAfterInsert(WmsLocation entity, long rowId) {
// Unsupported or missing PK type
return null;
}
@Override
public Void getKey(WmsLocation entity) {
return null;
}
@Override
public boolean hasKey(WmsLocation entity) {
// TODO
return false;
}
@Override
protected final boolean isEntityUpdateable() {
return true;
}
}
package sql.com.yz.db;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import com.sxyz.rfid.greendao.model.WmsWarehouse;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "wms_warehouse".
*/
public class WmsWarehouseDao extends AbstractDao<WmsWarehouse, Void> {
public static final String TABLENAME = "wms_warehouse";
/**
* Properties of entity WmsWarehouse.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property WarehouseId = new Property(0, Long.class, "warehouseId", false, "warehouse_id");
public final static Property WarehouseCode = new Property(1, String.class, "warehouseCode", false, "warehouse_code");
public final static Property WarehouseName = new Property(2, String.class, "warehouseName", false, "warehouse_name");
public final static Property WarehouseType = new Property(3, String.class, "warehouseType", false, "warehouse_type");
public final static Property Area = new Property(4, Float.class, "area", false, "area");
public final static Property Capacity = new Property(5, Float.class, "capacity", false, "capacity");
public final static Property Location = new Property(6, String.class, "location", false, "location");
public final static Property ManagerId = new Property(7, Long.class, "managerId", false, "manager_id");
public final static Property Status = new Property(8, String.class, "status", false, "status");
public final static Property DelFlag = new Property(9, String.class, "delFlag", false, "del_flag");
public final static Property CreateTime = new Property(10, String.class, "createTime", false, "create_time");
public final static Property UpdateTime = new Property(11, String.class, "updateTime", false, "update_time");
public final static Property Remark = new Property(12, String.class, "remark", false, "remark");
}
public WmsWarehouseDao(DaoConfig config) {
super(config);
}
public WmsWarehouseDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"wms_warehouse\" (" + //
"\"warehouse_id\" INTEGER," + // 0: warehouseId
"\"warehouse_code\" TEXT," + // 1: warehouseCode
"\"warehouse_name\" TEXT," + // 2: warehouseName
"\"warehouse_type\" TEXT," + // 3: warehouseType
"\"area\" REAL," + // 4: area
"\"capacity\" REAL," + // 5: capacity
"\"location\" TEXT," + // 6: location
"\"manager_id\" INTEGER," + // 7: managerId
"\"status\" TEXT," + // 8: status
"\"del_flag\" TEXT," + // 9: delFlag
"\"create_time\" TEXT," + // 10: createTime
"\"update_time\" TEXT," + // 11: updateTime
"\"remark\" TEXT);"); // 12: remark
}
/** Drops the underlying database table. */
public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"wms_warehouse\"";
db.execSQL(sql);
}
@Override
protected final void bindValues(DatabaseStatement stmt, WmsWarehouse entity) {
stmt.clearBindings();
Long warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(1, warehouseId);
}
String warehouseCode = entity.getWarehouseCode();
if (warehouseCode != null) {
stmt.bindString(2, warehouseCode);
}
String warehouseName = entity.getWarehouseName();
if (warehouseName != null) {
stmt.bindString(3, warehouseName);
}
String warehouseType = entity.getWarehouseType();
if (warehouseType != null) {
stmt.bindString(4, warehouseType);
}
Float area = entity.getArea();
if (area != null) {
stmt.bindDouble(5, area);
}
Float capacity = entity.getCapacity();
if (capacity != null) {
stmt.bindDouble(6, capacity);
}
String location = entity.getLocation();
if (location != null) {
stmt.bindString(7, location);
}
Long managerId = entity.getManagerId();
if (managerId != null) {
stmt.bindLong(8, managerId);
}
String status = entity.getStatus();
if (status != null) {
stmt.bindString(9, status);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(10, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(11, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(12, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(13, remark);
}
}
@Override
protected final void bindValues(SQLiteStatement stmt, WmsWarehouse entity) {
stmt.clearBindings();
Long warehouseId = entity.getWarehouseId();
if (warehouseId != null) {
stmt.bindLong(1, warehouseId);
}
String warehouseCode = entity.getWarehouseCode();
if (warehouseCode != null) {
stmt.bindString(2, warehouseCode);
}
String warehouseName = entity.getWarehouseName();
if (warehouseName != null) {
stmt.bindString(3, warehouseName);
}
String warehouseType = entity.getWarehouseType();
if (warehouseType != null) {
stmt.bindString(4, warehouseType);
}
Float area = entity.getArea();
if (area != null) {
stmt.bindDouble(5, area);
}
Float capacity = entity.getCapacity();
if (capacity != null) {
stmt.bindDouble(6, capacity);
}
String location = entity.getLocation();
if (location != null) {
stmt.bindString(7, location);
}
Long managerId = entity.getManagerId();
if (managerId != null) {
stmt.bindLong(8, managerId);
}
String status = entity.getStatus();
if (status != null) {
stmt.bindString(9, status);
}
String delFlag = entity.getDelFlag();
if (delFlag != null) {
stmt.bindString(10, delFlag);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(11, createTime);
}
String updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindString(12, updateTime);
}
String remark = entity.getRemark();
if (remark != null) {
stmt.bindString(13, remark);
}
}
@Override
public Void readKey(Cursor cursor, int offset) {
return null;
}
@Override
public WmsWarehouse readEntity(Cursor cursor, int offset) {
WmsWarehouse entity = new WmsWarehouse( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // warehouseId
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // warehouseCode
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // warehouseName
cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // warehouseType
cursor.isNull(offset + 4) ? null : cursor.getFloat(offset + 4), // area
cursor.isNull(offset + 5) ? null : cursor.getFloat(offset + 5), // capacity
cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // location
cursor.isNull(offset + 7) ? null : cursor.getLong(offset + 7), // managerId
cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8), // status
cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // delFlag
cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // createTime
cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11), // updateTime
cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12) // remark
);
return entity;
}
@Override
public void readEntity(Cursor cursor, WmsWarehouse entity, int offset) {
entity.setWarehouseId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
entity.setWarehouseCode(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
entity.setWarehouseName(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
entity.setWarehouseType(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
entity.setArea(cursor.isNull(offset + 4) ? null : cursor.getFloat(offset + 4));
entity.setCapacity(cursor.isNull(offset + 5) ? null : cursor.getFloat(offset + 5));
entity.setLocation(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
entity.setManagerId(cursor.isNull(offset + 7) ? null : cursor.getLong(offset + 7));
entity.setStatus(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8));
entity.setDelFlag(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
entity.setCreateTime(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
entity.setUpdateTime(cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11));
entity.setRemark(cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12));
}
@Override
protected final Void updateKeyAfterInsert(WmsWarehouse entity, long rowId) {
// Unsupported or missing PK type
return null;
}
@Override
public Void getKey(WmsWarehouse entity) {
return null;
}
@Override
public boolean hasKey(WmsWarehouse entity) {
// TODO
return false;
}
@Override
protected final boolean isEntityUpdateable() {
return true;
}
}
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="1024dp"
android:height="1024dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:pathData="M32,915a480,250 0,1 0,960 0a480,250 0,1 0,-960 0z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="512"
android:startY="515.6"
android:endX="512"
android:endY="885.3"
android:type="linear">
<item android:offset="0" android:color="#FFCFDFFA"/>
<item android:offset="1" android:color="#00EAF0FC"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M846,265.2C846,279.6 832.2,291.1 814.7,291.1L718,291.1C700.5,290 686,279 686,264.1C686,254.3 692.5,245.6 702,241C701.3,239.3 700.5,237.6 700.5,235.8C700.5,226.1 710,217.4 722.4,217.4C727.5,217.4 731.8,219.2 735.5,221.5C744.2,208.2 760.2,199 779.1,199C805.3,199 826.4,216.8 826.4,238.7L826.4,241C838,245.1 846,254.3 846,265.2Z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="766"
android:startY="230.1"
android:endX="771.8"
android:endY="263.3"
android:type="linear">
<item android:offset="0" android:color="#FFCFDFFA"/>
<item android:offset="1" android:color="#00EAF0FC"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M198.2,149C222.9,149 243.9,164.8 251.7,186.8L288.5,186.8C298.2,186.8 306,194.6 306,204.3L306,247.1C306,256.7 298.2,264.6 288.5,264.6L110.2,264.6C100.5,264.6 92.7,256.7 92.7,247.1L92.7,234.6C88.4,227.8 86,219.8 86,211.2C86,186.7 105.9,166.8 130.4,166.8C138.4,166.8 145.8,168.9 152.3,172.5C162.6,158.3 179.3,149 198.2,149Z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="196"
android:startY="191.2"
android:endX="204"
android:endY="225.9"
android:type="linear">
<item android:offset="0" android:color="#FFCFDFFA"/>
<item android:offset="1" android:color="#00EAF0FC"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M216,797a12.8,4 0,1 0,25.6 0a12.8,4 0,1 0,-25.6 0z"
android:strokeWidth="1"
android:fillColor="#CCDCF6"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M215.2,795.4C217,766.3 224.3,749.5 237.1,744.9C242.2,744.2 247.8,743.2 243.9,749.8C240,756.3 229.4,753.8 218.9,795.4C217.9,797.2 216.7,797.2 215.2,795.4Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="230.2"
android:startY="750.4"
android:endX="232.4"
android:endY="796.8"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M215,795.1C211.5,767.9 208.7,750.8 206.6,743.8C203.3,733.3 196.3,713 210.8,720.7C225.3,728.3 227,767.6 220.3,791.5C218.2,797.5 216.5,798.7 215,795.1Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="213"
android:startY="728"
android:endX="213.5"
android:endY="822"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M784,759.9C781.5,748.4 774.1,740.4 761.9,735.8C748,731.4 740.4,726 749.1,722.2C756.4,721.6 772.1,715.9 784,750.1C784.8,753.4 784.8,756.7 784,759.9Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="765"
android:startY="726.5"
android:endX="774.5"
android:endY="770.8"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M784.6,761.7C777.3,734.3 768.9,714.3 759.6,701.8C752.8,693.1 753.2,680.8 759.6,678C766.1,677.3 778.1,676.2 787.2,723.4C787.8,726.6 790.9,745.6 787.2,757.8C786.6,759.5 785.8,760.8 784.6,761.7Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="771.8"
android:startY="687.5"
android:endX="773.2"
android:endY="788.4"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M786.3,755.5C789.6,743.3 789.2,727.3 785,707.6C778.7,688.5 767.8,665 787.6,664.4C795.6,665.5 805.3,673.9 801.7,715.9C799.4,732.8 795.5,742.8 791.5,755.5C790,756.3 788.3,756.3 786.3,755.5Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="789.4"
android:startY="674.9"
android:endX="789.9"
android:endY="785.3"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M790.2,760.3C788.8,725.6 795.2,700.8 809.2,685.7C813,680.7 827.3,676 827.3,691.8C825.8,698.5 822.6,713 804,735.1C797.9,743.1 793.9,754.8 793.9,757.5C793.9,759.3 792.6,760.3 790.2,760.3Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="808.7"
android:startY="690.1"
android:endX="810.7"
android:endY="785.6"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M718.1,764.8C732,762.3 739.6,760.1 741.1,758.3C743.2,755.5 762.1,743.9 773.8,753.7C776.4,750.4 784.6,747.9 789.3,753.7C791.5,744.5 804.9,738.6 810.7,739.5C817.3,739 836.7,739.2 838.1,764.8C832.8,765 792.8,765 718.1,764.8Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="778.1"
android:startY="751.7"
android:endX="807.2"
android:endY="753.1"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M297.9,436.1L382,436.1L396,458.2L535.3,458C553,457.9 567.3,472.2 567.4,489.9C567.4,489.9 567.4,489.9 567.4,490L567.4,681.9L567.4,681.9L297.9,681.9L297.9,436.1Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="617.2"
android:startY="730.1"
android:endX="249.6"
android:endY="433.1"
android:type="linear">
<item android:offset="0" android:color="#FF5792F0"/>
<item android:offset="1" android:color="#FFBFD4FA"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M326.5,489.9h218.9v242.5h-218.9z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="648"
android:startY="611.2"
android:endX="301.7"
android:endY="611.2"
android:type="linear">
<item android:offset="0" android:color="#00EAF0FC"/>
<item android:offset="1" android:color="#FFCFDFFA"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M321.5,513.5h229.1v213.9h-229.1z"
android:strokeWidth="1"
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M319.8,528.7h237.5v197.1h-237.5z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="668.6"
android:startY="627.3"
android:endX="292.9"
android:endY="627.3"
android:type="linear">
<item android:offset="0" android:color="#00EAF0FC"/>
<item android:offset="1" android:color="#FFCFDFFA"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M276,550.6l320,0l-29.1,181.9l-261.8,0z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="655.1"
android:startY="690.7"
android:endX="218.6"
android:endY="605.4"
android:type="linear">
<item android:offset="0" android:color="#FF5792F0"/>
<item android:offset="1" android:color="#FFBFD4FA"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M467.2,629.7L467.2,629.7A5.9,5.9 0,0 1,473.1 635.6L473.1,635.6A5.9,5.9 0,0 1,467.2 641.5L467.2,641.5A5.9,5.9 0,0 1,461.3 635.6L461.3,635.6A5.9,5.9 0,0 1,467.2 629.7z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="478.6"
android:startY="635.6"
android:endX="460"
android:endY="635.6"
android:type="linear">
<item android:offset="0" android:color="#00EAF0FC"/>
<item android:offset="1" android:color="#FFCFDFFA"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M490.7,629.7L531.2,629.7A5.9,5.9 0,0 1,537.1 635.6L537.1,635.6A5.9,5.9 0,0 1,531.2 641.5L490.7,641.5A5.9,5.9 0,0 1,484.8 635.6L484.8,635.6A5.9,5.9 0,0 1,490.7 629.7z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="561.6"
android:startY="635.6"
android:endX="478.9"
android:endY="635.6"
android:type="linear">
<item android:offset="0" android:color="#00EAF0FC"/>
<item android:offset="1" android:color="#FFCFDFFA"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M465.5,655L529.5,655A5.9,5.9 0,0 1,535.4 660.9L535.4,660.9A5.9,5.9 0,0 1,529.5 666.8L465.5,666.8A5.9,5.9 0,0 1,459.6 660.9L459.6,660.9A5.9,5.9 0,0 1,465.5 655z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="570.9"
android:startY="660.9"
android:endX="451"
android:endY="660.9"
android:type="linear">
<item android:offset="0" android:color="#00EAF0FC"/>
<item android:offset="1" android:color="#FFCFDFFA"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M419.2,424.3m-25.3,0a25.3,25.3 0,1 1,50.5 0a25.3,25.3 0,1 1,-50.5 0"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="504.8"
android:startY="498.6"
android:endX="384.8"
android:endY="391.2"
android:type="linear">
<item android:offset="0" android:color="#FF5792F0"/>
<item android:offset="1" android:color="#FFBFD4FA"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M419.2,432.7l-9.9,5.2l1.9,-11l-8,-7.8l11.1,-1.6l4.9,-10l4.9,10l11.1,1.6l-8,7.8l1.9,11z"
android:strokeWidth="1"
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M480.1,250.6l-18.4,23.1l-52.9,-71.4l106.7,4.7l-15.9,21.4l-76.5,-19.6l68.9,29.8l12.3,21.7z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="364.3"
android:startY="390"
android:endX="502.7"
android:endY="202.3"
android:type="linear">
<item android:offset="0" android:color="#FF5792F0"/>
<item android:offset="1" android:color="#FFBFD4FA"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M527.8,264.9C659.8,302.8 696.4,387.5 637.9,519"
android:strokeAlpha="0.3"
android:strokeWidth="1"
android:fillColor="#00000000"
android:fillType="nonZero"
android:strokeColor="#5792F0"
android:fillAlpha="0.3"/>
<path
android:pathData="M600,789a50,16 0,1 0,100 0a50,16 0,1 0,-100 0z"
android:strokeWidth="1"
android:fillColor="#CCDCF6"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M634.6,777.4L633.8,782.9C630.4,783 626.8,784 622.8,785.8C620.2,787.5 620.1,788.2 620,789.6C620,790.6 627.2,790.6 641.7,789.6L641.7,775.4L634.6,777.4Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="623.1"
android:startY="777.2"
android:endX="641.7"
android:endY="786.4"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M666.6,777.4L665.8,782.9C662.4,783 658.8,784 654.8,785.8C652.2,787.5 652.1,788.2 652,789.6C652,790.6 659.2,790.6 673.7,789.6L673.7,775.4L666.6,777.4Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="655.1"
android:startY="777.2"
android:endX="673.7"
android:endY="786.4"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M659.5,666C664.7,666 668.8,666.6 668.8,666.6C668.8,666.6 667.4,685.2 668.5,705.5C670.4,738.8 675.3,780.4 675.3,780.4L665,780.4C665,780.4 648,724.2 648.2,687.5C642,718.4 642.8,781 642.8,781L632,779.9C632,779.9 628.1,742 627.2,711.6C626.4,686.9 628.5,668.5 628.5,668.5C633.8,667.7 639.2,667.7 644.5,668.3C644.6,668.3 644.6,668.3 644.6,668.3C646.9,667.5 649.9,666.7 652.9,666.3C654.9,666.1 657,666 659,666L659.5,666Z"
android:strokeWidth="1"
android:fillType="nonZero"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="648.1"
android:startY="630.3"
android:endX="651.2"
android:endY="773.1"
android:type="linear">
<item android:offset="0" android:color="#FFBFD4FA"/>
<item android:offset="1" android:color="#FF5792F0"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M659.7,580.4l-14.7,0l-0,14.7l14.7,0z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="652.4"
android:startY="582.3"
android:endX="652.4"
android:endY="595.1"
android:type="linear">
<item android:offset="0" android:color="#FFFFCDA5"/>
<item android:offset="1" android:color="#FFFFE8D1"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M665.1,569a16.7,14.7 90,1 1,-29.5 0a16.7,14.7 90,1 1,29.5 0z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="648.1"
android:startY="552.2"
android:endX="661.8"
android:endY="585.8"
android:type="linear">
<item android:offset="0" android:color="#FFFFF2DF"/>
<item android:offset="1" android:color="#FFFEE0BC"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M637,558.4C641.1,564 645.7,567.4 650.9,568.6C652.7,569.4 656.6,566.7 657.4,570.4C657.6,572.8 656.3,576.1 654.3,575.5C655,577.7 656.9,580.1 660.1,582.8C663.4,584.1 666.7,583.6 670.1,581.4C674.7,577.1 680.1,562.9 669.6,550.7C669.2,550.5 657.1,538.9 642.1,548.8C638.4,551.2 636.7,554.4 637,558.4Z"
android:strokeWidth="1"
android:fillColor="#483029"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M667.7,549.6m7.4,0a7.4,7.4 0,1 0,-14.9 0a7.4,7.4 0,1 0,14.9 0"
android:strokeWidth="1"
android:fillColor="#483029"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M643.5,589C643.5,589 636.8,592 633.5,597.5C628,606.6 624.9,622.1 624.9,622.1C624.9,622.1 624.7,626.9 621.1,633.6C617.2,640.9 615.8,641.8 615.8,641.8C615.8,641.8 610.2,645.6 608.7,645.9C606.8,646.3 602.5,648.2 602.5,648.2L605.4,657.3C605.4,657.3 617.6,656.2 626.1,652.3C632.5,649.5 634.9,641.8 634.9,641.8L643.5,589Z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="617.1"
android:startY="606.6"
android:endX="688.7"
android:endY="630.9"
android:type="linear">
<item android:offset="0" android:color="#FFFEE127"/>
<item android:offset="1" android:color="#FFF9AB21"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M646.8,595L659.7,587.8C659.7,587.8 660.9,589 661.4,589.5C662.3,590.2 663.2,590.8 663.2,590.8C663.2,590.8 666.5,592.7 668.3,595.8C670.4,599.4 670.3,611.9 670.3,611.9C670.3,611.9 670,621.2 670.6,630.9C671.8,647.8 672.3,667.7 672.3,667.7C672.3,667.7 658.9,668.4 648.7,668.5C638.1,668.5 627.9,667.9 627.9,667.9L634.4,608.4C634.4,608.4 635.3,598.2 639.1,592.2C640.7,589.6 644.9,588.5 644.9,588.5L646.8,595Z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="650.1"
android:startY="587.8"
android:endX="650.1"
android:endY="668.5"
android:type="linear">
<item android:offset="0" android:color="#FFFEE127"/>
<item android:offset="1" android:color="#FFF9AB21"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M663.6,591.1C663.6,591.1 669.5,594.9 671.5,598.4C674.6,603.7 675.9,627.7 675.9,627.7C675.9,627.7 676.5,631.8 674.5,635C672.3,638.5 652.9,650.3 652.9,650.3L637,659.1L632,647.9L659.1,628C659.1,628 660.4,627 660.6,625.7C660.8,624.4 658.2,609.5 658.2,609.5C658.2,609.5 657.2,603.6 658.8,599.3C660.3,595.4 663.6,591.1 663.6,591.1Z"
android:strokeWidth="1"
android:fillType="evenOdd"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:startX="646.6"
android:startY="608.6"
android:endX="687.8"
android:endY="617.1"
android:type="linear">
<item android:offset="0" android:color="#FFFEE127"/>
<item android:offset="1" android:color="#FFF9AB21"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M598.1,633.9L628.5,633.9C628.8,633.9 629.2,634 629.5,634.3C629.8,634.6 629.9,634.9 629.9,635.3L630.8,655.3C630.8,655.7 630.7,656 630.4,656.3C630.1,656.6 629.7,656.7 629.3,656.7L600.1,656.7C599.7,656.7 599.4,656.6 599.1,656.3C598.8,656 598.7,655.7 598.7,655.3L596.6,635.3C596.6,634.9 596.8,634.6 597,634.3C597.3,634 597.7,633.9 598.1,633.9L598.1,633.9Z"
android:strokeWidth="1"
android:fillColor="#483029"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
<path
android:pathData="M632,648.2L623.6,648.5C623.6,648.5 622.8,648.5 622.8,649.8C622.8,650.2 623,650.5 623.3,650.6L625.4,651.4C624.4,651.7 623.3,651.9 622.2,651.9C620.8,652 619.4,652 618,651.9C618,651.9 617.1,651.9 617.3,653.3C617.4,654.8 617.8,657 617.8,657C617.8,657 618,658.5 619.9,658.8C622.4,659.3 628.3,659.4 628.3,659.4C629.8,659.4 631.3,659.3 632.7,659.1C634,658.9 636.4,658 636.4,658C636.4,658 635.4,655.4 634.3,652.9C633.7,651.3 632.9,649.7 632,648.2ZM598.5,648.4L605.7,647.9C605.7,647.9 606.3,647.8 606.4,649.1C606.4,649.4 606.3,649.7 606,649.9L604.3,650.8C605.2,651 606.1,651.1 607,651.1C608.2,651.1 609.4,650.9 610.6,650.8C610.6,650.8 611.4,650.6 611.3,652C611.3,653.4 611.2,655.5 611.2,655.5C611.1,656.4 610.4,657.2 609.5,657.4C607.5,658.1 602.4,658.6 602.4,658.6C601.2,658.8 599.9,658.8 598.6,658.7C598.2,658.7 597.5,658.8 597.1,658.5C596.7,658.2 596.4,657.8 596.3,657.4C595.9,655.6 595.9,653.8 596.3,652C596.5,651.2 596.7,650.4 597,649.6C597.2,648.9 597.8,648.4 598.5,648.4L598.5,648.4Z"
android:strokeWidth="1"
android:fillColor="#FEE0BC"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
</vector>
...@@ -156,6 +156,18 @@ ...@@ -156,6 +156,18 @@
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" /> android:textStyle="bold" />
<Button
android:id="@+id/tvOffline"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="10dp"
android:background="@drawable/gray_bg"
android:gravity="center"
android:text="离线盘点"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/MatchWrap.Vertical">
<include layout="@layout/toolbar_title_text" />
<RelativeLayout style="@style/MatchMatch.Horizontal">
<!--rfid出库、扫码出库 按钮-->
<LinearLayout
android:id="@+id/llOutbound"
style="@style/MatchWrap.Horizontal"
android:paddingHorizontal="10dp">
<Button
android:id="@+id/btnRfidOutbound"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="FRID 盘点" />
<Button
android:id="@+id/btnScanOutbound"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:text="扫码盘点" />
</LinearLayout>
<androidx.core.widget.NestedScrollView
style="@style/MatchMatch"
android:layout_below="@+id/llOutbound">
<LinearLayout
style="@style/MatchWrap.Vertical"
android:padding="5dp">
<!-- 左右两根虚线 中间名称 -->
<LinearLayout
style="@style/MatchWrap.Horizontal"
android:gravity="center"
android:paddingHorizontal="50dp">
<!-- 虚线 -->
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1"
android:background="@color/purple_200" />
<!-- 名称 -->
<TextView
style="@style/WrapWrap"
android:layout_gravity="center"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:text="任务基础信息"
android:textColor="@color/purple_200"
android:textSize="14sp"
android:textStyle="bold" />
<!-- 虚线 -->
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1"
android:background="@color/purple_200" />
</LinearLayout>
<!-- Header Information Card -->
<androidx.cardview.widget.CardView
style="@style/MatchWrap"
android:layout_marginBottom="5dp"
app:cardCornerRadius="8dp"
app:cardElevation="3dp"
app:cardUseCompatPadding="true">
<RelativeLayout style="@style/MatchWrap">
<View
android:layout_width="5dp"
android:layout_height="200dp"
android:layout_alignTop="@+id/ll"
android:layout_alignBottom="@+id/ll"
android:background="@color/purple_200" />
<LinearLayout
android:id="@+id/ll"
style="@style/MatchWrap.Vertical"
android:paddingStart="15dp"
android:paddingTop="10dp"
android:paddingEnd="10dp"
android:paddingBottom="15dp">
<!-- 任务编号 状态 -->
<RelativeLayout style="@style/MatchWrap">
<TextView
android:id="@+id/tv_task_no"
style="@style/WrapWrap"
android:text="-"
android:textColor="@color/purple_200"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_task_status"
style="@style/WrapWrap"
android:layout_alignParentEnd="true"
android:layout_gravity="end"
android:background="@drawable/status_green_bg"
android:paddingHorizontal="10dp"
android:paddingVertical="2dp"
android:text="-"
android:textColor="@color/purple_200"
android:textSize="12sp" />
</RelativeLayout>
<!--横线-->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:background="@color/c_f5f5" />
<TextView
android:id="@+id/tv_task_name"
style="@style/WrapWrap"
android:text="-"
android:textColor="@color/black"
android:textSize="14sp"
android:textStyle="bold" />
<LinearLayout
style="@style/MatchWrap.Horizontal"
android:layout_marginBottom="5dp"
android:paddingTop="5dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:orientation="vertical">
<!-- 仓库 -->
<TextView
style="@style/WrapWrap"
android:text="仓库"
android:textColor="@color/c_6666"
android:textSize="12sp" />
<TextView
android:id="@+id/txt_warehouse_name"
style="@style/text_black13_ww"
android:text="-"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<!-- 已盘数 -->
<TextView
style="@style/WrapWrap"
android:layout_marginTop="5dp"
android:text="已盘数"
android:textColor="@color/c_6666"
android:textSize="12sp" />
<TextView
android:id="@+id/txt_review_number"
style="@style/text_black13_ww"
android:text="0"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<!-- 数量/金额 -->
<TextView
style="@style/WrapWrap"
android:layout_marginTop="5dp"
android:text="总盘点数"
android:textColor="@color/c_6666"
android:textSize="12sp" />
<TextView
android:id="@+id/txt_total_number"
style="@style/text_black13_ww"
android:text="0"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- 备注 -->
<TextView
style="@style/WrapWrap"
android:text="备注"
android:textColor="@color/c_6666"
android:textSize="12sp" />
<TextView
android:id="@+id/txt_remark"
style="@style/text_black13_ww"
android:text="-"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<!-- 左右两根虚线 中间名称 -->
<LinearLayout
style="@style/MatchWrap.Horizontal"
android:gravity="center"
android:paddingHorizontal="50dp">
<!-- 虚线 -->
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1"
android:background="@color/purple_200" />
<!-- 名称 -->
<TextView
style="@style/WrapWrap"
android:layout_gravity="center"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:text="任务明细信息"
android:textColor="@color/purple_200"
android:textSize="14sp"
android:textStyle="bold" />
<!-- 虚线 -->
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1"
android:background="@color/purple_200" />
</LinearLayout>
<RelativeLayout style="@style/MatchMatch">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_outbound_details"
style="@style/RecyclerViewStyleMatchWrap" />
<LinearLayout
style="@style/WrapWrap.Vertical"
android:layout_centerInParent="true"
android:layout_marginTop="100dp"
android:gravity="center_horizontal">
<!--暂无数据-->
<include
android:id="@+id/included_nothing"
layout="@layout/include_nothing_layout" />
<!--暂无数据-->
<include
android:id="@+id/included_no_db"
layout="@layout/include_no_db_layout" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<RelativeLayout
android:id="@+id/side_menu"
android:layout_width="330dp"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:background="@drawable/alert_bg"
android:elevation="16dp"
android:translationX="-330dp">
<RelativeLayout
android:id="@+id/rl_title"
android:layout_width="match_parent"
android:layout_height="45dp"
android:elevation="10dp">
<TextView
android:id="@+id/tv_title"
style="@style/text_black16_ww"
android:layout_centerVertical="true"
android:layout_marginStart="10dp"
android:text="FRID 盘点"
android:textStyle="bold" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_close"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:background="?actionBarItemBackground"
android:padding="13dp"
android:src="@drawable/login_clear_icon" />
<TextView
android:id="@+id/tv_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="15dp"
android:layout_toEndOf="@+id/tv_title"
android:paddingHorizontal="10dp"
android:paddingVertical="3dp"
android:textColor="@color/purple_200"
android:textSize="12sp" />
</RelativeLayout>
<!--横线-->
<View
android:id="@+id/view_line"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/rl_title"
android:layout_marginBottom="5dp"
android:background="@color/c_f5f5" />
<LinearLayout
android:id="@+id/ll_RadioGroup"
style="@style/MatchWrap.Horizontal"
android:layout_below="@+id/view_line">
<RadioGroup
android:id="@+id/RgInventory"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingHorizontal="10dp">
<RadioButton
android:id="@+id/RbInventorySingle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="true"
android:text="@string/rbInventoryOnce"
android:textColor="@drawable/check_text_color2"
android:textSize="12sp" />
<RadioButton
android:id="@+id/RbInventoryLoop"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/rbInventoryLoop"
android:textColor="@drawable/check_text_color2"
android:textSize="12sp" />
</RadioGroup>
</LinearLayout>
<LinearLayout
style="@style/MatchWrap.Vertical"
android:layout_below="@+id/ll_RadioGroup"
android:layout_marginHorizontal="10dp"
android:layout_marginTop="10dp">
<LinearLayout
style="@style/MatchWrap.Horizontal"
android:layout_marginStart="5dp"
android:layout_marginBottom="10dp"
android:gravity="center_vertical">
<!-- 盘亏数 -->
<TextView
style="@style/WrapWrap"
android:text="盘点进度"
android:textColor="@color/c_6666"
android:textSize="14sp" />
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="15dp"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:max="100"
android:progress="0"
android:progressDrawable="@drawable/custom_progressbar" />
<TextView
android:id="@+id/tv_progress"
style="@style/text_green16_ww"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:text="0%"
android:textStyle="bold" />
</LinearLayout>
<!-- Header Information Card -->
<LinearLayout style="@style/MatchWrap.Horizontal">
<androidx.cardview.widget.CardView
style="@style/WrapWrap"
android:layout_weight="1"
app:cardCornerRadius="8dp"
app:cardElevation="3dp"
app:cardUseCompatPadding="true">
<LinearLayout style="@style/MatchWrap.Vertical">
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="@color/purple_200" />
<!--4个白色圆角背景内,上面图标 下面文字-->
<!-- 图标 -->
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:src="@drawable/total_items_icon" />
<TextView
android:id="@+id/tv_total_items"
style="@style/text_black25_ww"
android:layout_gravity="center"
android:text="0"
android:textStyle="bold" />
<!-- 文字 -->
<TextView
style="@style/WrapWrap"
android:layout_gravity="center"
android:layout_marginBottom="10dp"
android:text="总盘点数"
android:textColor="@color/c_6666"
android:textSize="14sp" />
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
style="@style/WrapWrap"
android:layout_weight="1"
app:cardCornerRadius="8dp"
app:cardElevation="3dp"
app:cardUseCompatPadding="true">
<LinearLayout style="@style/MatchWrap.Vertical">
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="@color/text_blue" />
<!--4个白色圆角背景内,上面图标 下面文字-->
<!-- 图标 -->
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:src="@drawable/counted_items_icon" />
<TextView
android:id="@+id/tv_counted_items"
style="@style/text_black25_ww"
android:layout_gravity="center"
android:text="0"
android:textStyle="bold" />
<TextView
style="@style/WrapWrap"
android:layout_gravity="center"
android:layout_marginBottom="10dp"
android:text="已盘数"
android:textColor="@color/c_6666"
android:textSize="14sp" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout style="@style/MatchWrap.Horizontal">
<androidx.cardview.widget.CardView
style="@style/WrapWrap"
android:layout_weight="1"
app:cardCornerRadius="8dp"
app:cardElevation="3dp"
app:cardUseCompatPadding="true">
<LinearLayout style="@style/MatchWrap.Vertical">
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="@color/text_orange3" />
<!--4个白色圆角背景内,上面图标 下面文字-->
<!-- 图标 -->
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:src="@drawable/surplus_items_icon" />
<TextView
android:id="@+id/tv_surplus_items"
style="@style/text_black25_ww"
android:layout_gravity="center"
android:text="0"
android:textStyle="bold" />
<!-- 文字 -->
<TextView
style="@style/WrapWrap"
android:layout_gravity="center"
android:layout_marginBottom="10dp"
android:text="盘盈数"
android:textColor="@color/c_6666"
android:textSize="14sp" />
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
style="@style/WrapWrap"
android:layout_weight="1"
app:cardCornerRadius="8dp"
app:cardElevation="3dp"
app:cardUseCompatPadding="true">
<LinearLayout style="@style/MatchWrap.Vertical">
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="@color/red" />
<!--4个白色圆角背景内,上面图标 下面文字-->
<!-- 图标 -->
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:src="@drawable/deficit_items" />
<TextView
android:id="@+id/tv_deficit_items"
style="@style/text_black25_ww"
android:layout_gravity="center"
android:text="0"
android:textStyle="bold" />
<TextView
style="@style/WrapWrap"
android:layout_gravity="center"
android:layout_marginBottom="10dp"
android:text="盘亏数"
android:textColor="@color/c_6666"
android:textSize="14sp" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android" <androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/MatchWrap.Vertical"> style="@style/MatchMatch.Vertical">
<include layout="@layout/toolbar_title_text" /> <include layout="@layout/toolbar_title_text" />
<ScrollView <androidx.core.widget.NestedScrollView
android:layout_width="match_parent" style="@style/MatchMatch"
android:layout_height="0dp"
android:layout_weight="1"> android:layout_weight="1">
<LinearLayout <LinearLayout
...@@ -226,9 +225,31 @@ ...@@ -226,9 +225,31 @@
android:background="@color/purple_200" /> android:background="@color/purple_200" />
</LinearLayout> </LinearLayout>
<androidx.recyclerview.widget.RecyclerView <RelativeLayout style="@style/MatchMatch">
android:id="@+id/rv_outbound_details"
style="@style/RecyclerViewStyleMatchWrap" /> <androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_outbound_details"
style="@style/RecyclerViewStyleMatchWrap" />
<LinearLayout
style="@style/WrapWrap.Vertical"
android:layout_centerInParent="true"
android:layout_marginTop="100dp"
android:gravity="center_horizontal">
<!--暂无数据-->
<include
android:id="@+id/included_nothing"
layout="@layout/include_nothing_layout" />
<!--暂无数据-->
<include
android:id="@+id/included_no_db"
layout="@layout/include_no_db_layout" />
</LinearLayout>
</RelativeLayout>
</LinearLayout> </LinearLayout>
</ScrollView> </androidx.core.widget.NestedScrollView>
</androidx.appcompat.widget.LinearLayoutCompat> </androidx.appcompat.widget.LinearLayoutCompat>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/MatchMatch.Vertical">
<include layout="@layout/toolbar_title_text" />
<RelativeLayout style="@style/MatchWrap.Horizontal">
<!-- 背景EditText -->
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/search_et_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="5dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@drawable/white_bg"
android:drawableStart="@drawable/search_icon"
android:drawablePadding="10dp"
android:hint="请输入任务编号"
android:imeOptions="actionSearch"
android:inputType="text"
android:paddingVertical="10dp"
android:paddingStart="10dp"
android:paddingEnd="50dp"
android:textSize="14sp" />
<!-- 覆盖在EditText上的ImageView -->
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_search"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@id/search_et_input"
android:layout_centerVertical="true"
android:layout_marginEnd="10dp"
android:background="?actionBarItemBackground"
android:elevation="11dp"
android:padding="10dp"
android:src="@drawable/login_clear_icon"
android:visibility="gone" />
</RelativeLayout>
<RelativeLayout style="@style/MatchMatch">
<com.sxyz.rfid.widgets.AbsSwipeRefreshLayout
android:id="@+id/swipeRefreshLayout"
style="@style/MatchMatch">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
style="@style/RecyclerViewStyleMatchMatch1"
android:background="@color/c_f5f5" />
</com.sxyz.rfid.widgets.AbsSwipeRefreshLayout>
<LinearLayout
style="@style/WrapWrap.Vertical"
android:layout_centerInParent="true"
android:gravity="center_horizontal">
<!--暂无数据-->
<include
android:id="@+id/included_nothing"
layout="@layout/include_nothing_layout" />
<!--暂无数据-->
<include
android:id="@+id/included_no_db"
layout="@layout/include_no_db_layout" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/lLayout_bg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/alert_bg"
android:orientation="vertical">
<TextView
android:id="@+id/txt_msg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="1111" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_no_db"
style="@style/WrapWrap.Vertical"
android:layout_centerInParent="true"
android:gravity="center"
android:visibility="visible">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/no_db" />
<TextView
android:id="@+id/tv_no_data"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="center"
android:text="数据库wms_data.db文件不存在,\n请连接电脑同步数据库文件"
android:textColor="@color/c_999"
android:textSize="14sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
style="@style/WrapWrap.Vertical" style="@style/WrapWrap.Vertical"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:gravity="center" android:gravity="center"
android:visibility="visible"> android:visibility="gone">
<androidx.appcompat.widget.AppCompatImageView <androidx.appcompat.widget.AppCompatImageView
android:layout_width="100dp" android:layout_width="100dp"
...@@ -19,4 +19,5 @@ ...@@ -19,4 +19,5 @@
android:text="暂无出库数据" android:text="暂无出库数据"
android:textColor="@color/c_999" android:textColor="@color/c_999"
android:textSize="14sp" /> android:textSize="14sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </androidx.appcompat.widget.LinearLayoutCompat>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/MatchWrap"
android:layout_marginStart="5dp"
android:layout_marginTop="2dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="5dp"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="5dp"
app:cardElevation="1dp"
app:cardUseCompatPadding="true">
<RelativeLayout style="@style/MatchWrap">
<View
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/ll"
android:layout_alignBottom="@+id/ll"
android:background="@color/purple_200" />
<LinearLayout
android:id="@+id/ll"
style="@style/MatchWrap.Vertical"
android:paddingVertical="10dp"
android:paddingStart="15dp"
android:paddingEnd="10dp">
<!-- 任务编号 状态 -->
<RelativeLayout style="@style/MatchWrap">
<TextView
android:id="@+id/tv_task_no"
style="@style/WrapWrap"
android:text="-"
android:textColor="@color/purple_200"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_task_status"
style="@style/WrapWrap"
android:layout_alignParentEnd="true"
android:layout_gravity="end"
android:background="@drawable/status_green_bg"
android:paddingHorizontal="10dp"
android:paddingVertical="2dp"
android:text="-"
android:textColor="@color/purple_200"
android:textSize="12sp" />
</RelativeLayout>
<!--横线-->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:background="@color/c_f5f5" />
<TextView
android:id="@+id/tv_task_name"
style="@style/WrapWrap"
android:text="-"
android:textColor="@color/black"
android:textSize="16sp"
android:textStyle="bold" />
<LinearLayout
style="@style/MatchWrap.Horizontal"
android:layout_marginBottom="5dp"
android:paddingTop="5dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:orientation="vertical">
<!-- 仓库 -->
<TextView
style="@style/WrapWrap"
android:text="仓库"
android:textColor="@color/c_6666"
android:textSize="12sp" />
<TextView
android:id="@+id/txt_warehouse_name"
style="@style/text_black14_ww"
android:text="-"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<!-- 已盘数 -->
<TextView
style="@style/WrapWrap"
android:layout_marginTop="5dp"
android:text="已盘数"
android:textColor="@color/c_6666"
android:textSize="12sp" />
<TextView
android:id="@+id/txt_review_number"
style="@style/text_black14_ww"
android:text="0"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<!-- 数量/金额 -->
<TextView
style="@style/WrapWrap"
android:layout_marginTop="5dp"
android:text="总盘点数"
android:textColor="@color/c_6666"
android:textSize="12sp" />
<TextView
android:id="@+id/txt_total_number"
style="@style/text_black14_ww"
android:text="0"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
<!-- 操作按钮 -->
<LinearLayout
style="@style/MatchWrap.Horizontal"
android:paddingTop="8dp">
<TextView
android:id="@+id/detail_button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/gray_bg"
android:gravity="center"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:text="详情"
android:textColor="@color/purple_200" />
<TextView
android:id="@+id/review_button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:layout_weight="1"
android:background="@drawable/green_bg"
android:gravity="center"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:text="执行盘点"
android:textColor="@color/white" />
<TextView
android:id="@+id/stop_button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:layout_weight="1"
android:background="@drawable/red_bg4"
android:gravity="center"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:text="结束盘点"
android:textColor="@color/white" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</androidx.cardview.widget.CardView>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment