| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_IPackInfoRepository; |
| | | using WIDESEAWCS_Common.Utilities; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_IPackInfoService; |
| | | using WIDESEAWCS_Common.Utilities; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | |
| | | { |
| | | public class StationPackInfoService : ServiceBase<Dt_StationPackInfo, IStationPackInfoRepository>, IStationPackInfoService |
| | | { |
| | | public StationPackInfoService(IStationPackInfoRepository BaseDal) : base(BaseDal) |
| | | { |
| | | } |
| | | private readonly IStationPackDetailRepository _stationPackDetailRepository; |
| | | private readonly IPackinfoRepository _packInfoRepository; |
| | | private readonly IPackaxisTaskRepository _packaxisTaskRepository; |
| | |
| | | packInfo.AssignNum = 0; |
| | | packInfo.ExecutingNum = 0; |
| | | packInfo.OverNum = 0; |
| | | packInfo.HeightNum = 0; |
| | | content.Status = BaseDal.UpdateData(packInfo); |
| | | //åæ¶å é¤ç åå¾
æ§è¡æç»è¡¨ |
| | | |
| | | //å é¤ç å工使§è¡æç»ï¼ä¿®æ¹å¾
ç åä¿¡æ¯ç®±ç ç¶æä¸º0 |
| | | List<Dt_StationPackDetail> stationPackDetails = _stationPackDetailRepository.QueryData(x => x.StationPackId == packInfo.id); |
| | | List<Dt_StationPackDetail> stationPackDetails = _stationPackDetailRepository.QueryData(x => x.StationPackId == packInfo.Id); |
| | | List<string> barCodes = stationPackDetails.Select(x => x.BoxCode).ToList(); |
| | | List<Dt_Packinfo> packinfos = _packInfoRepository.QueryData(x => barCodes.Contains(x.BarCode)).ToList(); |
| | | packinfos.ForEach(x => x.PackStatus = 0);//æ¹åç¶æ |