| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Dynamic; |
| | | using MES.Service.service; |
| | | using MES.Service.Dto.webApi; |
| | | using MES.Service.util; |
| | | using Newtonsoft.Json; |
| | | using MES.Service.Modes; |
| | | using MES.Service.service; |
| | | |
| | | namespace MESApplication.Controllers |
| | | { |
| | | [ApiController] |
| | | [Route("api/[controller]")] |
| | | public class ZZCXDController : ControllerBase |
| | | public class ZzcxController : ControllerBase |
| | | { |
| | | private readonly ZzcxdManager _manager = new(); // 这里对应新的 Service |
| | | private readonly ZzcxManager _manager = new(); |
| | | private readonly MessageCenterManager _messageManager = new(); |
| | | |
| | | private const string METHOD = "POST"; |
| | | private const string TableName = "ZZCXD"; |
| | | private const string URL = "http://localhost:10054/api/ERPZZCXD/"; |
| | | private const string TableName = "ZZCX"; |
| | | private const string URL = "http://localhost:10054/api/Zzcx/"; |
| | | |
| | | /// <summary> |
| | | /// 保存单条调拨单 |
| | | /// </summary> |
| | | |
| | | |
| | | [HttpPost("Save")] |
| | | public ResponseResult Save([FromBody] ERPZZCXD data) |
| | | { |
| | |
| | | Data = JsonConvert.SerializeObject(data), |
| | | Status = 1, |
| | | CreateBy = "PL017", |
| | | Route = data.ERPZZCXA.bill_no // 注意取 billno |
| | | Route = data.Main.bill_no |
| | | }; |
| | | |
| | | try |
| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 批量保存调拨单 |
| | | /// </summary> |
| | | [HttpPost("SaveList")] |
| | | public ResponseResult SaveList([FromBody] List<ERPZZCXD> dataList) |
| | | { |