| | |
| | | [ApiController] |
| | | public class SJController : ControllerBase |
| | | { |
| | | [HttpPost("GetMaxBillNo")] |
| | | public ResponseResult GetMaxBillNo() |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | var tbBillList = |
| | | new SJService().getMaxBillNo(); |
| | | resultInfos.tbBillList = tbBillList; |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | [HttpPost("GetPage")] |
| | |
| | | } |
| | | } |
| | | |
| | | [HttpPost("Save")] |
| | | public ResponseResult Save([FromBody] QsItem item) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | var tbBillList = new SJService(); |
| | | var detail021 = tbBillList.Save(item); |
| | | resultInfos.tbBillList = detail021; |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | //SaveItem |
| | | [HttpPost("SaveItem")] |