yyk
2024-08-23 a9cddcd1e3e8ae51f68a885326cfce3247fdbd66
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,