ouyangqing
2021-01-21 c5d2a942907529f1ff31dde1e630de9838e574de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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
    {
        /// <summary>
        /// 获取单据号
        /// </summary>
        /// <returns></returns>
        [Route("api/newBill/getNewInterBillNo")]
        [HttpGet]
        public ApiResult<DocumentsView> GetNewInterBillNo()
        {
            var model = YqnQbService.GetInterBillNo();
            return model;
        }
        /// <summary>
        /// 流转卡获取信息
        /// </summary>
        /// <returns></returns>
        [Route("api/newBill/getHbarCodeDetail")]
        [HttpGet]
        public ApiResult<DataSet> GetHbarCodeDetail(string sBillBarCode)
        {
            var model = YqnQbService.GetHbarCodeDetail(sBillBarCode);
            return model;
        }
        /// <summary>
        /// 流水号获得信息
        /// </summary>
        /// <returns></returns>
        [Route("api/newBill/getProcDetail")]
        [HttpGet]
        public ApiResult<DataSet> GetProcDetail(string sBillNo, string sProcNo)
        {
            var model = YqnQbService.GetProcDetail(sBillNo, sProcNo);
            return model;
        }
        /// <summary>
        /// 获取生产资源列表
        /// </summary>
        /// <param name="sWhere"></param>
        /// <returns></returns>
        [Route("api/newBill/getSourceList")]
        [HttpGet]
        public ApiResult<DataSet> GetSourceList(string sWhere)
        {
            return YqnQbService.GetSourceList(sWhere);
        }
        /// <summary>
        /// 获取工作中心
        /// </summary>
        /// <param name="sWhere"></param>
        /// <returns></returns>
        [Route("api/newBill/getWorkCenterList")]
        [HttpGet]
        public ApiResult<DataSet> GetWorkCenterList(string sWhere)
        {
            return YqnQbService.GetWorkCenterList(sWhere);
        }
        /// <summary>
        /// 进站接收单
        /// </summary>
        /// <param name="oMain"></param>
        /// <returns></returns>
        [Route("api/newBill/setStationInBill")]
        [HttpPost]
        public ApiResult SetStationInBill(ClsSc_StationInBillMain oMain)
        {
            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);
        }
    }
}