copy from MESApplication/Controllers/MesLineUserController.cs
copy to MESApplication/Controllers/Warehouse/MesInvItemArnController.cs
Îļþ´Ó MESApplication/Controllers/MesLineUserController.cs ¸´ÖÆ |
| | |
| | | using System.Dynamic; |
| | | using MES.Service.Dto.service; |
| | | using MES.Service.Modes; |
| | | using MES.Service.service; |
| | | using MES.Service.service.Warehouse; |
| | | using MES.Service.util; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | |
| | | namespace MESApplication.Controllers; |
| | | namespace MESApplication.Controllers.Warehouse; |
| | | |
| | | [ApiController] |
| | | [Route("api/[controller]")] |
| | | public class MesLineUserController : ControllerBase |
| | | public class MesInvItemArnController : ControllerBase |
| | | { |
| | | private readonly MesLineUserManager m = new(); |
| | | private readonly MesInvItemArnManager m = new(); |
| | | |
| | | |
| | | /***è¿å
¥æ¨¡ç管çå¯ä»¥ä¿®æ¹æ¨¡ç***/ |
| | | [HttpPost("GetPageList")] |
| | | public ResponseResult GetPageList(WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetPagedResults(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åææ |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("Insert")] |
| | | public ResponseResult Add([FromBody] MesLineUser data) |
| | | public ResponseResult Add([FromBody] MesInvItemArn data) |
| | | { |
| | | try |
| | | { |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("InsertReturnIdentity")] |
| | | public ResponseResult InsertReturnIdentity([FromBody] MesLineUser data) |
| | | public ResponseResult InsertReturnIdentity([FromBody] MesInvItemArn data) |
| | | { |
| | | try |
| | | { |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("Update")] |
| | | public ResponseResult Update([FromBody] MesLineUser data) |
| | | public ResponseResult Update([FromBody] MesInvItemArn data) |
| | | { |
| | | try |
| | | { |