|  |  | 
 |  |  | using Microsoft.AspNetCore.Http; | 
 |  |  | using Autofac.Core; | 
 |  |  | using Microsoft.AspNetCore.Http; | 
 |  |  | using Microsoft.AspNetCore.Mvc; | 
 |  |  | using WIDESEA_Core; | 
 |  |  | using WIDESEA_Core.BaseController; | 
 |  |  | using WIDESEA_Core.BaseRepository; | 
 |  |  | using WIDESEA_Core.CodeConfigEnum; | 
 |  |  | using WIDESEA_Core.Helper; | 
 |  |  | using WIDESEA_DTO.Basic; | 
 |  |  | using WIDESEA_IBasicService; | 
 |  |  | using WIDESEA_Model.Models; | 
 |  |  |  | 
 |  |  | namespace WIDESEA_WMSServer.Controllers.Basic | 
 |  |  | { | 
 |  |  |     /// <summary> | 
 |  |  |     /// ç©æ | 
 |  |  |     /// </summary> | 
 |  |  |     [Route("api/MaterielInfo")] | 
 |  |  |     [ApiController] | 
 |  |  |     public class MaterielInfoController : ApiBaseController<IMaterielInfoService, Dt_MaterielInfo> | 
 |  |  | 
 |  |  |         public MaterielInfoController(IMaterielInfoService service) : base(service) | 
 |  |  |         { | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// ç©æç è§£æ | 
 |  |  |         /// </summary> | 
 |  |  |         /// <param name="serNum"></param> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [HttpPost, HttpGet, Route("CodeAnalysis")] | 
 |  |  |         public WebResponseContent CodeAnalysis(string serNum) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 MatSerNumAnalysisModel model = CodeAnalysisHelper.CodeAnalysis<MatSerNumAnalysisModel>(AnalysisCodeEnum.MatSerNumAnalysis, serNum); | 
 |  |  |                 return WebResponseContent.Instance.OK(data: model); | 
 |  |  |             } | 
 |  |  |             catch (Exception ex) | 
 |  |  |             { | 
 |  |  |                 return WebResponseContent.Instance.Error(ex.Message); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         /// <summary> | 
 |  |  |         /// è·ååºåºç©æä¿¡æ¯ | 
 |  |  |         /// </summary> | 
 |  |  |         /// <param name="warehouseId"></param> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [HttpPost, HttpGet, Route("GetWarehouseMaterielInfos")] | 
 |  |  |         public WebResponseContent GetWarehouseMaterielInfos(int warehouseId) | 
 |  |  |         { | 
 |  |  |             return Service.GetWarehouseMaterielInfos(warehouseId); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  | } |