| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_Core.CodeConfigEnum; |
| | |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("CodeAnalysis")] |
| | | public WebResponseContent CodeAnalysis(string serNum) |
| | | |
| | | |
| | | { |
| | | try |
| | | { |
| | | MatSerNumAnalysisModel model = CodeAnalysisHelper.CodeAnalysis<MatSerNumAnalysisModel>(AnalysisCodeEnum.MatSerNumAnalysis, serNum); |
| | | //MatSerialNumberDTO matSerialNumberDTOs = CodeAnalysisHelper.CodeAnalysis<MatSerialNumberDTO>(AnalysisCode.MatSerNumAnalysis, serNum); |
| | | model.DeliveryNote = model.DeliveryNote.Replace("BS:", ""); |
| | | model.LotNo = model.LotNo.Replace("DN:", ""); |
| | | return WebResponseContent.Instance.OK(data: model); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取库区物料信息 |
| | | /// </summary> |
| | |
| | | //{ |
| | | // return Service.GetWarehouseMaterielInfos(warehouseId); |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// 获取WMS物料信息 |
| | | /// </summary> |
| | | /// <param name="warehouseId"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("GetMaterielInfos"), AllowAnonymous] |
| | | public WebResponseContent GetMaterielInfos([FromBody] List<HouseMaterielinfo> materielinfo) |
| | | { |
| | | return Service.GetMaterielInfos(materielinfo); |
| | | } |
| | | |
| | | } |
| | | } |