1
pulg
2025-05-14 5a640911f7e7ef3a003775993f077e1a0e9ac130
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using HH.WCS.Hexafluo.util;
using HH.WCS.Hexafluo.wms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace HH.WCS.SJML.Comm
{
    public class AssistComm
    {
        /// <summary>
        /// 往对应的货位中加入托盘
        /// </summary>
        /// <param name="Loca"></param>
        public List<Location> LocationTrayList(List<Location> Loca)
        {
            List<string> Lo = new List<string>();
            Lo = Loca.Select(e => e.S_LOC_CODE).ToList();
            var lstObj = SqlSugarHelper.Db.Queryable<LocCntrRel>().Where(e => Lo.Contains(e.S_LOC_CODE)).ToList();
            List<Location> LocationList = new List<Location>();
            foreach (Location Y in Loca)
            {
                Location ca = new Location();
                ca = Y;
                ca.LocCntrRel = lstObj.Where(e => e.S_LOC_CODE == Y.S_LOC_CODE).First();
                LocationList.Add(ca);
            }
            return LocationList;
        }
 
        public Location LocationTray(Location Loca)
        {
            var lstObj = SqlSugarHelper.Db.Queryable<LocCntrRel>().Where(e => e.S_LOC_CODE== Loca.S_LOC_CODE).First();
            Loca.LocCntrRel = lstObj;
            return Loca;
        }
    }
}