| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | #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; |
| | | |
| | | } |
| | | |
| | | } |
| | | } |