From e00c9e03eeaffad919cf16c95b2d6048e8abfb9d Mon Sep 17 00:00:00 2001
From: chengsc <11752@DESKTOP-DS49RCP>
Date: 星期五, 28 三月 2025 16:34:59 +0800
Subject: [PATCH] 修改问题
---
Wms/WMS.BLL/SysServer/StorageLocatServer.cs | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 59 insertions(+), 0 deletions(-)
diff --git a/Wms/WMS.BLL/SysServer/StorageLocatServer.cs b/Wms/WMS.BLL/SysServer/StorageLocatServer.cs
index 2f45fce..67ca384 100644
--- a/Wms/WMS.BLL/SysServer/StorageLocatServer.cs
+++ b/Wms/WMS.BLL/SysServer/StorageLocatServer.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
+using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
using Model.ModelDto.SysDto;
@@ -974,5 +975,63 @@
}
#endregion
+
+ /// <summary>
+ /// 鑾峰彇鍌ㄤ綅淇℃伅(瀵嗛泦搴�)
+ /// </summary>
+ /// <param name="wareHouseNo">浠撳簱</param>
+ /// <param name="row">鎺�</param>
+ /// <returns></returns>
+ public async Task<BordModelVM> GetFlatLegend(string wareHouseNo, int layer)
+ {
+ var list = await Db.Queryable<SysStorageLocat>().Where(s => s.WareHouseNo == wareHouseNo && s.Layer == layer && s.IsDel == "0").ToListAsync();
+ BordModelVM listBord = new BordModelVM()
+ {
+ Col = 15,
+ Row = 18
+ };
+
+ foreach (var modLocat in list)
+ {
+ SlotsVm mod = new SlotsVm()
+ {
+ SlotColumn = modLocat.Column,
+ SlotRow = modLocat.Row,
+ SlotCode = modLocat.LocatNo,
+ //SlotStatusCls = modLocat.Flag!="0"? "eight": modLocat.Status == "0"? "zero":,
+ Make = modLocat.Make
+ };
+ if (modLocat.Flag != "0")
+ mod.SlotStatusCls = "eight";
+ switch (modLocat.Status)
+ {
+ case "0":
+ mod.SlotStatusCls = "zero";
+ break;
+ case "1":
+ mod.SlotStatusCls = "one";
+ break;
+ case "2":
+ mod.SlotStatusCls = "two";
+ break;
+ case "3":
+ mod.SlotStatusCls = "three";
+ break;
+ case "4":
+ mod.SlotStatusCls = "four";
+ break;
+ case "5":
+ mod.SlotStatusCls = "five";
+ break;
+ default:
+ break;
+ }
+ listBord.SlotsVm.Add(mod);
+ }
+
+ return listBord;
+
+ }
+
}
}
--
Gitblit v1.8.0