From a9cddcd1e3e8ae51f68a885326cfce3247fdbd66 Mon Sep 17 00:00:00 2001 From: yyk <2336760928@qq.com> Date: 星期五, 23 八月 2024 09:20:47 +0800 Subject: [PATCH] 调整批量添加储位接口。 --- Wms/WMS.BLL/SysServer/StorageLocatServer.cs | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/Wms/WMS.BLL/SysServer/StorageLocatServer.cs b/Wms/WMS.BLL/SysServer/StorageLocatServer.cs index a6ea852..43ffec1 100644 --- a/Wms/WMS.BLL/SysServer/StorageLocatServer.cs +++ b/Wms/WMS.BLL/SysServer/StorageLocatServer.cs @@ -234,12 +234,30 @@ try { var q = 0; + var depth = 0; + var depthString = ""; // 鎺�(缁�)寰幆 for (int i = 1; i <= model.Row; i++) { // 鍒楀惊鐜� for (int z = 1; z <= model.Col; z++) { + if (z == 1) + { + depth += 1; + if (depth >= 10) + { + depthString = depth.ToString(); + } + else if (depth < 10) + { + depthString = "0" + depth.ToString(); + } + else { + //鍏朵綑鏉′欢 + } + } + q += await LocatRst.AddAsync(new SysStorageLocat() { // 鍖哄煙+鎺�+鍒�+灞� @@ -251,7 +269,7 @@ AisleOne = "1", AisleTwo = "", Flag = "0", - Depth = z.ToString(), + Depth = depthString, Row = i, Column = z, Layer = 1, -- Gitblit v1.8.0