´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/5dc6e739-d03f-48e2-b874-daeddde08c2d.vsidxBinary files differ
´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/dba84b80-59a3-4d5b-9a50-dd830ce6c4f5.vsidxBinary files differ
´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/read.lock
´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_ITaskInfoService/ITaskService.cs
@@ -100,7 +100,12 @@ /// <param name="taskNum">ä»»å¡å·</param> /// <param name="locationCode">å ¥åºæåºåºçè´§ä½å·</param> /// <returns></returns> WebResponseContent IsRelocation(int taskNum, string locationCode); MesResponseContent TestReturnStock(TestToolBackModel content); MesResponseContent TestReturnStock(TestToolBackModel backModel); /// <summary> /// æµè¯æ¶æ¥åº /// </summary> /// <param name="toolScrap"></param> /// <returns></returns> MesResponseContent TestScrap(TestToolScrap toolScrap); } } ´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs
@@ -37,7 +37,7 @@ Dt_StockInfo stockInfo = _stockRepository.StockInfoRepository.Db.Queryable<Dt_StockInfo>().Where(x => x.WarehouseId == warehouse.WarehouseId && x.StockStatus==(int)StockStatusEmun.å ¥åºå®æ) .Includes(x => x.Details).Where(x => x.Details.Any(x => x.MaterielCode == model.ToolCode)).First(); .Includes(x => x.Details).Where(x => x.Details.Any(x => x.BatchNo == model.ToolCode)).First(); if (stockInfo==null) { return responseContent.Error($"æµè¯æ¶:{model.ToolCode}æ å¯ç¨åºå"); @@ -100,7 +100,13 @@ MesResponseContent responseContent = new MesResponseContent(); try { //è·åæµè¯æ¶ååºåä¿¡æ¯ Dt_Warehouse warehouse = _basicRepository.WarehouseRepository.QueryFirst(x => x.WarehouseCode == WarehouseEnum.HA64.ToString()); //è·ååºåè®°å½ Dt_StockInfo stockInfo = _stockRepository.StockInfoRepository.Db.Queryable<Dt_StockInfo>().Where(x => x.WarehouseId == warehouse.WarehouseId && x.StockStatus == (int)StockStatusEmun.åºåºå®æ) .Includes(x => x.Details).Where(x => x.Details.Any(x => x.BatchNo == backModel.TestToolCode)).First(); } catch (Exception ex) { @@ -122,7 +128,10 @@ //è·ååºåè®°å½ Dt_StockInfo stockInfo = _stockRepository.StockInfoRepository.Db.Queryable<Dt_StockInfo>().Where(x => x.WarehouseId == warehouse.WarehouseId) .Includes(x => x.Details).Where(x => x.Details.Any(x => x.MaterielCode == toolScrap.ToolCode)).First(); .Includes(x => x.Details).Where(x => x.Details.Any(x => x.BatchNo == toolScrap.ToolCode)).First(); //æ¸ é¤åºåä¿¡æ¯ _unitOfWorkManage.BeginTran(); } catch (Exception ex) { ´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs
@@ -54,5 +54,15 @@ { return _taskService.TestReturnStock(model.Content); } /// <summary> /// æµè¯æ¶æ¥åº /// </summary> /// <param name="model"></param> /// <returns></returns> [HttpPost, Route("TestScrap"), AllowAnonymous, MethodParamsValidate] public MesResponseContent TestScrap([FromBody] Root<TestToolScrap> model) { return _taskService.TestScrap(model.Content); } } }