| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.service.JJGZ; |
| | | using NewPdaSqlServer.service.Warehouse; |
| | | using NewPdaSqlServer.util; |
| | | |
| | | namespace NewPdaSqlServer.Controllers.JJGZ |
| | | { |
| | | namespace NewPdaSqlServer.Controllers.JJGZ; |
| | | |
| | | [Route("api/[controller]")] |
| | | [ApiController] |
| | | public class OaToMesRecordController : ControllerBase |
| | | { |
| | | OaToMesRecordManager m = new OaToMesRecordManager(); |
| | | private readonly OaToMesRecordManager m = new(); |
| | | |
| | | [HttpPost("ApproveRecord")] |
| | | public ResponseResult ApproveRecord(OaToMesRecord queryObj) |
| | | { |
| | | try |
| | | { |
| | | string rtnMsg = m.ApproveRecord(queryObj); |
| | | var rtnMsg = m.ApproveRecord(queryObj); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | { |
| | | try |
| | | { |
| | | string rtnMsg = m.ApproveUser(queryObj); |
| | | var rtnMsg = m.ApproveUser(queryObj); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | { |
| | | try |
| | | { |
| | | string rtnMsg = m.ApproveDepartment(queryObj); |
| | | var rtnMsg = m.ApproveDepartment(queryObj); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | } |
| | | } |