| | |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Net; |
| | | using System.Net.Http; |
| | | using System.Web.Http; |
| | | using WebAPI.Models; |
| | | using WebAPI.Service; |
| | |
| | | /// <returns></returns> |
| | | [Route("api/newBill/getNewInterBillNo")] |
| | | [HttpGet] |
| | | public ApiResult<DocumentsView> GetNewInterBillNo() |
| | | public ApiResult<DocumentsView> GetNewInterBillNo(string billType) |
| | | { |
| | | var model = YqnQbService.GetInterBillNo(); |
| | | var model = YqnQbService.GetInterBillNo(billType); |
| | | return model; |
| | | } |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <param name="sWhere"></param> |
| | | /// <returns></returns> |
| | | [Route("api/newBill/getSourceList")] |
| | | [Route("api/newBill/getWorkCenterList")] |
| | | [HttpGet] |
| | | public ApiResult<DataSet> GetWorkCenterList(string sWhere) |
| | | { |
| | |
| | | { |
| | | return YqnQbService.SetStationInBill(oMain); |
| | | } |
| | | /// <summary> |
| | | /// 获取进站单列表 |
| | | /// </summary> |
| | | /// <param name="sWhere"></param> |
| | | /// <returns></returns> |
| | | [Route("api/newBill/getStationInBillList")] |
| | | [HttpGet] |
| | | public ApiResult<DataSet> GetStationInBillList(string sWhere) |
| | | { |
| | | return YqnQbService.GetStationInBillList(sWhere); |
| | | } |
| | | /// <summary> |
| | | /// 获取出站单列表 |
| | | /// </summary> |
| | | /// <param name="sWhere"></param> |
| | | /// <returns></returns> |
| | | [Route("api/newBill/getStationOutBillList")] |
| | | [HttpGet] |
| | | public ApiResult<DataSet> GetStationOutBillList(string sWhere) |
| | | { |
| | | return YqnQbService.GetStationOutBillList(sWhere); |
| | | } |
| | | /// <summary> |
| | | /// 出站站接收单 |
| | | /// </summary> |
| | | /// <param name="oMain"></param> |
| | | /// <returns></returns> |
| | | [Route("api/newBill/setStationOutBill")] |
| | | [HttpPost] |
| | | public ApiResult SetStationOutBill(StationOutBillView oMain) |
| | | { |
| | | return YqnQbService.SetStationOutBill(oMain); |
| | | } |
| | | } |
| | | } |