|
|
|
@ -182,7 +182,7 @@ public class InboundView extends BorderPane {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建入库记录
|
|
|
|
|
String id = String.format("NO%014d", System.currentTimeMillis());
|
|
|
|
|
String id = String.format("IN%014d", System.currentTimeMillis());
|
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
|
|
|
|
|
|
// 修改数据库连接为相对路径
|
|
|
|
@ -197,7 +197,7 @@ public class InboundView extends BorderPane {
|
|
|
|
|
pstmt.setInt(3, quantity);
|
|
|
|
|
pstmt.setString(4, supplier);
|
|
|
|
|
pstmt.setString(5, now.toString());
|
|
|
|
|
pstmt.setString(6, "当前用户");
|
|
|
|
|
pstmt.setString(6, "系统管理员");
|
|
|
|
|
pstmt.setString(7, remark);
|
|
|
|
|
|
|
|
|
|
pstmt.executeUpdate();
|
|
|
|
@ -211,7 +211,7 @@ public class InboundView extends BorderPane {
|
|
|
|
|
quantity,
|
|
|
|
|
supplier,
|
|
|
|
|
now,
|
|
|
|
|
"当前用户",
|
|
|
|
|
"系统管理员",
|
|
|
|
|
remark
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
@ -227,7 +227,7 @@ public class InboundView extends BorderPane {
|
|
|
|
|
// 添加操作日志
|
|
|
|
|
String details = String.format("入库货物:%s,数量:%d,供应商:%s",
|
|
|
|
|
goodsName, quantity, supplier);
|
|
|
|
|
DataManager.getInstance().addOperationLog("入库", goodsName, "当前用户", details);
|
|
|
|
|
DataManager.getInstance().addOperationLog("入库", goodsName, "系统管理员", details);
|
|
|
|
|
|
|
|
|
|
showAlert("成功", "入库记录已保存!");
|
|
|
|
|
|
|
|
|
|