using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web.Http; using WebAPI.Models; using WebAPI.Service; using WebAPI.WebS; namespace WebAPI.Controllers { public class NewApiController : ApiController { /// /// 获取单据号 /// /// [Route("api/newBill/getNewInterBillNo")] [HttpGet] public ApiResult GetNewInterBillNo() { var model = YqnQbService.GetInterBillNo(); return model; } /// /// 流转卡获取信息 /// /// [Route("api/newBill/getHbarCodeDetail")] [HttpGet] public ApiResult GetHbarCodeDetail(string sBillBarCode) { var model = YqnQbService.GetHbarCodeDetail(sBillBarCode); return model; } /// /// 流水号获得信息 /// /// [Route("api/newBill/getProcDetail")] [HttpGet] public ApiResult GetProcDetail(string sBillNo, string sProcNo) { var model = YqnQbService.GetProcDetail(sBillNo, sProcNo); return model; } /// /// 获取生产资源列表 /// /// /// [Route("api/newBill/getSourceList")] [HttpGet] public ApiResult GetSourceList(string sWhere) { return YqnQbService.GetSourceList(sWhere); } /// /// 获取工作中心 /// /// /// [Route("api/newBill/getWorkCenterList")] [HttpGet] public ApiResult GetWorkCenterList(string sWhere) { return YqnQbService.GetWorkCenterList(sWhere); } /// /// 获取进站单列表 /// /// /// [Route("api/newBill/getStationInBillList")] [HttpGet] public ApiResult GetStationInBillList(string sWhere) { return YqnQbService.GetStationInBillList(sWhere); } /// /// 获取出站单列表 /// /// /// [Route("api/newBill/getStationOutBillList")] [HttpGet] public ApiResult GetStationOutBillList(string sWhere) { return YqnQbService.GetStationOutBillList(sWhere); } /// /// 进站接收单 /// /// /// [Route("api/newBill/setStationInBill")] [HttpPost] public ApiResult SetStationInBill(ClsSc_StationInBillMain oMain) { return YqnQbService.SetStationInBill(oMain); } /// /// 出站站接收单 /// /// /// [Route("api/newBill/setStationOutBill")] [HttpPost] public ApiResult SetStationOutBill(Model.ClsSc_StationOutBillMain oMain) { return YqnQbService.SetStationOutBill(oMain); } } }