| | |
| | | /// </summary> |
| | | /// <param name="palletCode">RFIDä¿¡æ¯</param> |
| | | /// <returns></returns> |
| | | public WebResponseContent YLPurchaseBoxing(string palletCode, decimal weight = 0, decimal thickness = 0, decimal wide = 0) |
| | | public WebResponseContent YLPurchaseBoxing(string palletCode, decimal weight = 0, decimal thickness = 0, decimal wide = 0, string stationCode = "") |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | |
| | | UpdateStock(stockInfoOld, weight, thickness, wide); |
| | | return content.OK($"临æ¶å
¥åº{stockInfoOld.RfidCode}"); |
| | | } |
| | | else if (stockInfoOld != null && stockInfoOld.MaterielInvOrgId == MaterielInvOrgEnum.èå.ObjToInt() && stockInfoOld.StockStatus == StockStatusEmun.èåéåº.ObjToInt()) |
| | | else if (stockInfoOld != null && stockInfoOld.MaterielInvOrgId == MaterielInvOrgEnum.èå.ObjToInt() && stockInfoOld.StockStatus == StockStatusEmun.åºåºå®æ.ObjToInt() && stockInfoOld.IsPick==WhetherEnum.False.ObjToInt() && stationCode.IsNotEmptyOrNull()) |
| | | { |
| | | stockInfoOld.StockStatus = StockStatusEmun.èåéåº.ObjToInt(); |
| | | stockInfoOld.IsFull = WhetherEnum.True.ObjToInt(); |
| | | stockInfoOld.StockOutLength = 0; |
| | | stockInfoOld.WarehouseId = WarehouseEnum.LLDYL.ObjToInt(); |
| | | UpdateStock(stockInfoOld, weight, thickness, wide); |
| | | return content.OK($"èåéåº{stockInfoOld.RfidCode}"); |
| | | return content.OK($"èåæªé¢æéåº{stockInfoOld.RfidCode}"); |
| | | } |
| | | else if (stockInfoOld != null && stockInfoOld.MaterielInvOrgId == MaterielInvOrgEnum.èå.ObjToInt() && stockInfoOld.StockStatus == StockStatusEmun.èåéææå.ObjToInt() && stationCode.IsNotEmptyOrNull()) |
| | | { |
| | | stockInfoOld.StockStatus = StockStatusEmun.èåéåº.ObjToInt(); |
| | | stockInfoOld.IsFull = WhetherEnum.True.ObjToInt(); |
| | | stockInfoOld.IsPick = WhetherEnum.False.ObjToInt(); |
| | | stockInfoOld.StockOutLength = 0; |
| | | stockInfoOld.WarehouseId = WarehouseEnum.LLDYL.ObjToInt(); |
| | | UpdateStock(stockInfoOld, weight, thickness, wide); |
| | | return content.OK($"èå颿éåº{stockInfoOld.RfidCode}"); |
| | | } |
| | | else if (stockInfoOld != null) |
| | | { |
| | | return content.Error("RFIDä¿¡æ¯å·²åå¨"); |
| | | throw new Exception($"{palletCode}RFIDä¿¡æ¯å·²åå¨"); |
| | | } |
| | | |
| | | if (stationCode.IsNullOrEmpty()) |
| | | { |
| | | #region å¤çéè´ç»å®RFIDé»è¾ |
| | | Dt_YLInboundCache? yLInboundCache = _inboundRepository.YLInboundCacheRepository.QueryData(x => x.InvOrg == MaterielInvOrgEnum.èå.ToString()).FirstOrDefault(); |
| | | if (yLInboundCache == null) |
| | |
| | | _unitOfWorkManage.CommitTran(); |
| | | return content.OK($"åæéåºå转å{ExistStockInfo.RfidCode}"); |
| | | } |
| | | else |
| | | else if(ExistStockInfo != null && ExistStockInfo.MaterielInvOrgId == MaterielInvOrgEnum.èå.ObjToInt() && ExistStockInfo.StockStatus == StockStatusEmun.ç»çæå.ObjToInt()) |
| | | { |
| | | //è·åéè´ä¿¡æ¯ |
| | | Dt_PurchaseBSTOrderDetail purchaseBSTOrderDetail = _purchaseBSTOrderDetailRepository.QueryFirst(x => x.Barcode == yLInboundCache.BarCode); |
| | | if (purchaseBSTOrderDetail == null) |
| | | { |
| | | return content.Error($"æªæ¾å°æ¡ç {yLInboundCache.BarCode}éè´ä¿¡æ¯"); |
| | | } |
| | | if (purchaseBSTOrderDetail.PurchaseBSTOrderDetailStatus != InOrderStatusEnum.æªå¼å§.ObjToInt()) |
| | | { |
| | | return content.Error($"éè´{purchaseBSTOrderDetail.Barcode}ä¿¡æ¯å·²å
¥åºæå
¥åºä¸"); |
| | | Dt_PurchaseBSTOrderDetail purchaseBSTOrderDetail = _inboundRepository.PurchaseBSTOrderDetailRepository.QueryFirst(x => x.Barcode == yLInboundCache.BarCode); |
| | | yLInboundCache.RfidCode = palletCode; |
| | | yLInboundCache.BindStatus = WhetherEnum.True.ObjToInt(); |
| | | ExistStockInfo.RfidCode = palletCode; |
| | | purchaseBSTOrderDetail.RfidCode= palletCode; |
| | | _unitOfWorkManage.BeginTran(); |
| | | UpdateStock(ExistStockInfo, weight, thickness, wide); |
| | | _inboundRepository.YLInboundCacheRepository.UpdateData(yLInboundCache); |
| | | _inboundRepository.PurchaseBSTOrderDetailRepository.UpdateData(purchaseBSTOrderDetail); |
| | | _unitOfWorkManage.CommitTran(); |
| | | return content.OK($"éè´å
¥åº{ExistStockInfo.RfidCode}"); |
| | | } |
| | | else |
| | | { |
| | | purchaseBSTOrderDetail.PurchaseBSTOrderDetailStatus = InOrderStatusEnum.å
¥åºä¸.ObjToInt(); |
| | | purchaseBSTOrderDetail.RfidCode = palletCode; |
| | | } |
| | | //è·åéè´ä¸»å |
| | | Dt_PurchaseBSTOrder purchaseBSTOrder = _purchaseBSTOrderRepository.QueryFirst(x => x.Id == purchaseBSTOrderDetail.PurchaseBSTOrderId); |
| | | //è·åç©æ |
| | | Dt_MaterielInfo materielInfo = _basicRepository.MaterielInfoRepository.QueryFirst(x => x.MaterialSourceId == purchaseBSTOrderDetail.MaterialId); |
| | | //çæåºåç»çä¿¡æ¯ |
| | | Dt_StockInfo stockInfo = new Dt_StockInfo() |
| | | { |
| | | MaterielInvOrgId = materielInfo.MaterielInvOrgId, |
| | | PalletCode = purchaseBSTOrderDetail.Barcode, |
| | | RfidCode = palletCode, |
| | | LocationCode = "", |
| | | PalletType = 1, |
| | | WarehouseId = materielInfo.WarehouseId, |
| | | StockAttribute = materielInfo.MaterielSourceType, |
| | | StockStatus = StockStatusEmun.ç»çæå.ObjToInt(), |
| | | MaterielSpec = materielInfo.MaterielSpec, |
| | | Unit = materielInfo.MaterielUnit, |
| | | MaterielThickness = purchaseBSTOrderDetail.MaterialThick, |
| | | MaterielWide = purchaseBSTOrderDetail.MaterialWide, |
| | | MaterielWeight = purchaseBSTOrderDetail.DeliveryQty, |
| | | CheckWeight=weight, |
| | | CheckThickness=thickness, |
| | | CheckWide=wide, |
| | | MaterielCode = materielInfo.MaterielCode, |
| | | MaterielName = materielInfo.MaterielName, |
| | | StockLength = purchaseBSTOrderDetail.ProcurementLength, |
| | | MaterielId = purchaseBSTOrderDetail.MaterialId |
| | | }; |
| | | if (purchaseBSTOrderDetail.MaterialWide > 1200) |
| | | { |
| | | stockInfo.PalletType = 2; |
| | | } |
| | | yLInboundCache.RfidCode = palletCode; |
| | | yLInboundCache.BindStatus = WhetherEnum.True.ObjToInt(); |
| | | _unitOfWorkManage.BeginTran(); |
| | | //æ°å¢ç»çä¿¡æ¯ |
| | | _stockRepository.StockInfoRepository.AddData(stockInfo); |
| | | if (purchaseBSTOrder.PurchaseOrderStatus == InOrderStatusEnum.æªå¼å§.ObjToInt()) |
| | | { |
| | | purchaseBSTOrder.PurchaseOrderStatus = InOrderStatusEnum.å
¥åºä¸.ObjToInt(); |
| | | _purchaseBSTOrderRepository.UpdateData(purchaseBSTOrder); |
| | | } |
| | | _inboundRepository.YLInboundCacheRepository.UpdateData(yLInboundCache); |
| | | _purchaseBSTOrderDetailRepository.UpdateData(purchaseBSTOrderDetail); |
| | | _unitOfWorkManage.CommitTran(); |
| | | throw new Exception("æªç¥é误"); |
| | | } |
| | | } |
| | | #endregion |
| | | content.OK("ç»å®æå"); |
| | | } |
| | | else if (!stationCode.IsNullOrEmpty() && stockInfoOld == null) |
| | | { |
| | | throw new Exception($"{palletCode}RFIDä¿¡æ¯ä¸åå¨"); |
| | | } |
| | | else |
| | | { |
| | | throw new Exception("æªç¥é误"); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | { |
| | | if (string.IsNullOrEmpty(palletCode)) |
| | | { |
| | | return content.Error("æ¡ç ä¸è½ä¸ºç©º"); |
| | | throw new Exception("æ¡ç ä¸è½ä¸ºç©º"); |
| | | } |
| | | Dt_StockInfo stockInfoOld = _stockRepository.StockInfoRepository.QueryFirst(x => x.PalletCode == palletCode); |
| | | if (stockInfoOld != null) |
| | | { |
| | | return content.Error("æ¡ç ä¿¡æ¯åºåä¸å·²åå¨"); |
| | | throw new Exception("æ¡ç ä¿¡æ¯åºåä¸å·²åå¨"); |
| | | } |
| | | //è·åéè´ä¿¡æ¯ |
| | | Dt_PurchaseBSTOrderDetail purchaseBSTOrderDetail = _purchaseBSTOrderDetailRepository.QueryFirst(x => x.Barcode == palletCode); |
| | | Dt_PurchaseBSTOrderDetail purchaseBSTOrderDetail = _inboundRepository.PurchaseBSTOrderDetailRepository.QueryFirst(x => x.Barcode == palletCode); |
| | | if (purchaseBSTOrderDetail == null) |
| | | { |
| | | BSTResponse<BSTStockInfoDTO> bSTResponse = _invokeERPService.BSTStockAsync(palletCode).DeserializeObject<BSTResponse<BSTStockInfoDTO>>(); |
| | | if (bSTResponse.Code == 500) |
| | | { |
| | | return content.Error($"æªæ¾å°æ¡ç {palletCode}éè´ä¿¡æ¯å¹¶ä¸æERPåºåä¹ä¸åå¨"); |
| | | throw new Exception($"æªæ¾å°æ¡ç {palletCode}éè´ä¿¡æ¯å¹¶ä¸æERPåºåä¹ä¸åå¨"); |
| | | } |
| | | BSTStockInfoDTO bSTStockInfoDTO=bSTResponse.Data; |
| | | if (bSTStockInfoDTO==null) |
| | | { |
| | | return content.Error($"䏿ERPæªè¿å{palletCode}çåºåä¿¡æ¯"); |
| | | } |
| | | Dt_MaterielInfo materielInfo = _basicRepository.MaterielInfoRepository.QueryFirst(x => x.MaterialSourceId == bSTStockInfoDTO.MaterialId); |
| | | if (materielInfo==null) |
| | | { |
| | | return content.Error($"æªæ¾å°æ¡ç {palletCode}ç©æä¿¡æ¯{bSTStockInfoDTO.MaterialNo}"); |
| | | } |
| | | |
| | | BSTStockInfoDTO bSTStockInfoDTO=bSTResponse.Data ?? throw new Exception($"䏿ERPæªè¿å{palletCode}çåºåä¿¡æ¯"); |
| | | |
| | | Dt_MaterielInfo materielInfo = _basicRepository.MaterielInfoRepository.QueryFirst(x => x.MaterialSourceId == bSTStockInfoDTO.MaterialId) ?? throw new Exception($"æªæ¾å°æ¡ç {palletCode}ç©æä¿¡æ¯{bSTStockInfoDTO.MaterialNo}"); |
| | | |
| | | //çæåºåç»çä¿¡æ¯ |
| | | Dt_StockInfo stockInfo = new Dt_StockInfo() |
| | | { |
| | |
| | | { |
| | | stockInfo.PalletType = 2; |
| | | } |
| | | Dt_YLInboundCache? yLInboundCache = _inboundRepository.YLInboundCacheRepository.QueryData(x => x.InvOrg == MaterielInvOrgEnum.èå.ToString()).FirstOrDefault(); |
| | | if (yLInboundCache == null) |
| | | { |
| | | return content.Error("æªæ¾å°åææ¡ç ç¼åä¿¡æ¯"); |
| | | } |
| | | Dt_YLInboundCache? yLInboundCache = _inboundRepository.YLInboundCacheRepository.QueryData(x => x.InvOrg == MaterielInvOrgEnum.èå.ToString()).FirstOrDefault() ?? throw new Exception("æªæ¾å°åææ¡ç ç¼åä¿¡æ¯"); |
| | | int Id = yLInboundCache.Id; |
| | | if (yLInboundCache.BarCode == palletCode) |
| | | { |
| | | return content.Error($"æ¡ç {palletCode}å·²æ«ç "); |
| | | throw new Exception($"æ¡ç {palletCode}å·²æ«ç "); |
| | | } |
| | | else if (yLInboundCache.BarCode != palletCode && yLInboundCache.BindStatus == WhetherEnum.True.ObjToInt()) |
| | | { |
| | |
| | | //æ°å¢ç»çä¿¡æ¯ |
| | | _stockRepository.StockInfoRepository.AddData(stockInfo); |
| | | _inboundRepository.YLInboundCacheRepository.UpdateData(yLInboundCache); |
| | | //å¯å¨çº¿ä½ |
| | | WebResponseContent webResponse = YLPurchasePush(); |
| | | if (!webResponse.Status) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | return content.Error($"ä¸å·æ¡ç {yLInboundCache.BarCode}è¿æªè¿è¡ç»å®"); |
| | | throw new Exception($"ä¸å·æ¡ç {yLInboundCache.BarCode}è¿æªè¿è¡ç»å®"); |
| | | } |
| | | |
| | | } |
| | |
| | | { |
| | | if (purchaseBSTOrderDetail.PurchaseBSTOrderDetailStatus != InOrderStatusEnum.æªå¼å§.ObjToInt()) |
| | | { |
| | | return content.Error($"æ¡ç {palletCode}éè´ä¿¡æ¯å·²å
¥åºæå
¥åºä¸"); |
| | | throw new Exception($"æ¡ç {palletCode}éè´ä¿¡æ¯å·²å
¥åºæå
¥åºä¸"); |
| | | } |
| | | Dt_YLInboundCache? yLInboundCache = _inboundRepository.YLInboundCacheRepository.QueryData(x => x.InvOrg == MaterielInvOrgEnum.èå.ToString()).FirstOrDefault(); |
| | | if (yLInboundCache == null) |
| | | { |
| | | return content.Error("æªæ¾å°åææ¡ç ç¼åä¿¡æ¯"); |
| | | throw new Exception("æªæ¾å°åææ¡ç ç¼åä¿¡æ¯"); |
| | | } |
| | | int Id = yLInboundCache.Id; |
| | | if (yLInboundCache.BarCode == palletCode) |
| | | { |
| | | return content.Error($"æ¡ç {palletCode}å·²æ«ç "); |
| | | throw new Exception($"æ¡ç {palletCode}å·²æ«ç "); |
| | | } |
| | | else if (yLInboundCache.BarCode != palletCode && yLInboundCache.BindStatus == WhetherEnum.True.ObjToInt()) |
| | | { |
| | | yLInboundCache = _mapper.Map<Dt_YLInboundCache>(purchaseBSTOrderDetail); |
| | | yLInboundCache.Id = Id; |
| | | //è·åéè´ä¸»å |
| | | Dt_PurchaseBSTOrder purchaseBSTOrder = _inboundRepository.PurchaseBSTOrderRepository.QueryFirst(x => x.Id == purchaseBSTOrderDetail.PurchaseBSTOrderId); |
| | | //è·åç©æ |
| | | Dt_MaterielInfo materielInfo = _basicRepository.MaterielInfoRepository.QueryFirst(x => x.MaterialSourceId == purchaseBSTOrderDetail.MaterialId); |
| | | //çæåºåç»çä¿¡æ¯ |
| | | Dt_StockInfo stockInfo = new Dt_StockInfo() |
| | | { |
| | | MaterielInvOrgId = materielInfo.MaterielInvOrgId, |
| | | PalletCode = purchaseBSTOrderDetail.Barcode, |
| | | RfidCode = "", |
| | | LocationCode = "", |
| | | PalletType = 1, |
| | | WarehouseId = materielInfo.WarehouseId, |
| | | StockAttribute = materielInfo.MaterielSourceType, |
| | | StockStatus = StockStatusEmun.ç»çæå.ObjToInt(), |
| | | MaterielSpec = materielInfo.MaterielSpec, |
| | | Unit = materielInfo.MaterielUnit, |
| | | MaterielThickness = purchaseBSTOrderDetail.MaterialThick, |
| | | MaterielWide = purchaseBSTOrderDetail.MaterialWide, |
| | | MaterielWeight = purchaseBSTOrderDetail.DeliveryQty, |
| | | MaterielCode = materielInfo.MaterielCode, |
| | | MaterielName = materielInfo.MaterielName, |
| | | StockLength = purchaseBSTOrderDetail.ProcurementLength, |
| | | MaterielId = purchaseBSTOrderDetail.MaterialId |
| | | }; |
| | | if (purchaseBSTOrderDetail.MaterialWide > 1200) |
| | | { |
| | | stockInfo.PalletType = 2; |
| | | } |
| | | purchaseBSTOrderDetail.PurchaseBSTOrderDetailStatus = InOrderStatusEnum.å
¥åºä¸.ObjToInt(); |
| | | _unitOfWorkManage.BeginTran(); |
| | | _inboundRepository.YLInboundCacheRepository.UpdateData(yLInboundCache); |
| | | //æ°å¢ç»çä¿¡æ¯ |
| | | _stockRepository.StockInfoRepository.AddData(stockInfo); |
| | | if (purchaseBSTOrder.PurchaseOrderStatus == InOrderStatusEnum.æªå¼å§.ObjToInt()) |
| | | { |
| | | purchaseBSTOrder.PurchaseOrderStatus = InOrderStatusEnum.å
¥åºä¸.ObjToInt(); |
| | | _inboundRepository.PurchaseBSTOrderRepository.UpdateData(purchaseBSTOrder); |
| | | } |
| | | _inboundRepository.PurchaseBSTOrderDetailRepository.UpdateData(purchaseBSTOrderDetail); |
| | | //å¯å¨çº¿ä½ |
| | | WebResponseContent webResponse = YLPurchasePush(); |
| | | if (!webResponse.Status) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | return content.Error($"ä¸å·æ¡ç {yLInboundCache.BarCode}è¿æªè¿è¡ç»å®"); |
| | | throw new Exception($"ä¸å·æ¡ç {yLInboundCache.BarCode}è¿æªè¿è¡ç»å®"); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | return content.Error($"æªæ¾å°å¯¹åºçç»ç¹è´§ä½ä¿¡æ¯"); |
| | | } |
| | | Dt_AGVStationInfo agvstation = _agvStationInfoRepository.QueryFirst(x => x.AGVStationCode == task.SourceAddress && ( x.StationArea == nameof(AGVStationAreaEnum.䏿¥¼æå°ç 头) || x.StationArea == nameof(AGVStationAreaEnum.䏿¥¼æ 纺ç»å¸) || x.StationArea == nameof(AGVStationAreaEnum.䏿¥¼æ 纺æ·è) || x.StationArea == nameof(AGVStationAreaEnum.䏿¥¼æ 纺æ·è))); |
| | | Dt_AGVStationInfo agvstation = _basicRepository.AGVStationInfoRepository.QueryFirst(x => x.AGVStationCode == task.SourceAddress && ( x.StationArea == nameof(AGVStationAreaEnum.䏿¥¼æå°ç 头) || x.StationArea == nameof(AGVStationAreaEnum.䏿¥¼æ 纺ç»å¸) || x.StationArea == nameof(AGVStationAreaEnum.䏿¥¼æ 纺æ·è) || x.StationArea == nameof(AGVStationAreaEnum.䏿¥¼æ 纺æ·è))); |
| | | if (agvstation != null) |
| | | { |
| | | agvstation.IsOccupied = WhetherEnum.False.ObjToInt(); |
| | |
| | | _unitOfWorkManage.BeginTran(); |
| | | if (agvstation != null) |
| | | { |
| | | _agvStationInfoRepository.UpdateData(agvstation); |
| | | _basicRepository.AGVStationInfoRepository.UpdateData(agvstation); |
| | | } |
| | | proStockInfo.LocationCode = locationInfoEnd.LocationCode; |
| | | proStockInfo.StockStatus = StockStatusEmun.å
¥åºå®æ.ObjToInt(); |
| | |
| | | _unitOfWorkManage.BeginTran(); |
| | | if (agvstation != null) |
| | | { |
| | | _agvStationInfoRepository.UpdateData(agvstation); |
| | | _basicRepository.AGVStationInfoRepository.UpdateData(agvstation); |
| | | } |
| | | proStockInfo.LocationCode = locationInfoEnd.LocationCode; |
| | | proStockInfo.StockStatus = StockStatusEmun.å
¥åºå®æ.ObjToInt(); |
| | |
| | | _basicService.LocationInfoService.UpdateLocationStatus(locationInfoEnd, stockInfo.PalletType, LocationStatusEnum.InStock, stockInfo.WarehouseId); |
| | | BaseDal.DeleteAndMoveIntoHty(task, App.User.UserId > 0 ? WIDESEA_Core.Enums.OperateTypeEnum.äººå·¥å®æ : WIDESEA_Core.Enums.OperateTypeEnum.èªå¨å®æ); |
| | | //䏿¥èåERP |
| | | if (stockInfo.MaterielInvOrgId == MaterielInvOrgEnum.èå.ObjToInt()) |
| | | if (stockInfo.MaterielInvOrgId == MaterielInvOrgEnum.èå.ObjToInt() && task.TaskType==TaskTypeEnum.Inbound.ObjToInt()) |
| | | { |
| | | int Qty = Convert.ToInt32(stockInfo.MaterielWeight); |
| | | BSTPurchaseUpModel bSTPurchaseUpModel = new BSTPurchaseUpModel() |
| | |
| | | //{ |
| | | // return content.Error($"æ¡ç æ ¼å¼é误{barCode}"); |
| | | //} |
| | | Dt_AGVStationInfo agvstation = _agvStationInfoRepository.QueryFirst(x=>x.AGVStationCode==startPoint); |
| | | Dt_AGVStationInfo agvstation = _basicRepository.AGVStationInfoRepository.QueryFirst(x=>x.AGVStationCode==startPoint); |
| | | if (agvstation==null) |
| | | { |
| | | return content.Error($"èµ·ç¹é误{startPoint}"); |
| | |
| | | { |
| | | return content.Error($"æªæ¾å°ç©æä¿¡æ¯{matCode}"); |
| | | } |
| | | Dt_AGVStationInfo agvstation = _agvStationInfoRepository.QueryFirst(x => x.AGVStationCode == startPoint); |
| | | Dt_AGVStationInfo agvstation = _basicRepository.AGVStationInfoRepository.QueryFirst(x => x.AGVStationCode == startPoint); |
| | | if (agvstation == null) |
| | | { |
| | | return content.Error($"èµ·ç¹é误{startPoint}"); |
| | |
| | | return content.Error($"ç©æç¼ç {nameof(MESProInDTO.MaterialCode)}:{CheckMaterialCode.MaterialCode}ä¿¡æ¯ä¸åå¨"); |
| | | } |
| | | //è·åææAGVç¹ä½ |
| | | List<Dt_AGVStationInfo> aGVStationInfos = _agvStationInfoRepository.QueryData(x => !string.IsNullOrEmpty(x.MESPointCode)); |
| | | List<Dt_AGVStationInfo> aGVStationInfos = _basicRepository.AGVStationInfoRepository.QueryData(x => !string.IsNullOrEmpty(x.MESPointCode)); |
| | | |
| | | //夿æ¯å¦åå¨éå¤ |
| | | MESProInDTO? proInDTO = proInDTOs.FirstOrDefault(x => x.IsMantissa == false && proInOrderInfos.Select(x => x.BarCode).Contains(x.BarCode)); |
| | |
| | | List<Dt_StockInfo> stockInfos = new List<Dt_StockInfo>(); |
| | | List<Dt_Task> tasks = new List<Dt_Task>(); |
| | | //è·åææAGVç¹ä½ |
| | | List<Dt_AGVStationInfo> aGVStationInfos = _agvStationInfoRepository.QueryData(x => !string.IsNullOrEmpty(x.MESPointCode)); |
| | | List<Dt_AGVStationInfo> aGVStationInfos = _basicRepository.AGVStationInfoRepository.QueryData(x => !string.IsNullOrEmpty(x.MESPointCode)); |
| | | //æ ¹æ®åæåä¿¡æ¯å¼å«å¯¹åºä»»å¡ |
| | | foreach (var item in mESProInOrderInfos) |
| | | { |