智云SRM-WEBAPI(目前客户通用API)
yusijie
2024-09-12 c05f1964fc49bebb9ea64e189400337f8d4f0c42
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
using DAL;
using Kingdee.BOS.WebApi.Client;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
 
 
namespace WebAPI.BLL
{
    public class WebServer
    {
        SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
 
        #region  基础资料
        /// <summary>
        /// 获取仓库列表
        /// </summary>
        /// <param name="sWhere"></param>
        /// <param name="sErr"></param>
        /// <returns></returns>
        public DataSet GetWarehouseList(string sWhere, ref string sErr)
        {
 
            DataSet ds = new DataSet();
            ds = oCn.RunProcReturn("select * from h_v_IF_Warehouse " + sWhere, "h_v_IF_Warehouse");
            //DAL.ClsIF_Warehouse_View dal = new DAL.ClsIF_Warehouse_View();
            return ds;
        }
        /// <summary>
        /// 获取仓位列表
        /// </summary>
        /// <param name="sWhere"></param>
        /// <param name="sErr"></param>
        /// <returns></returns>
        public DataSet GetStockPlaceList(string sWhere, ref string sErr)
        {
            
            DataSet ds = new DataSet();
            ds = oCn.RunProcReturn("select * from h_v_IF_StockPlace " + sWhere, "h_v_IF_StockPlace");
            //DAL.ClsIF_StockPlace_View dal = new DAL.ClsIF_StockPlace_View();
            return ds;
        }
        /// <summary>
        /// 获取部门列表
        /// </summary>
        /// <param name="sWhere"></param>
        /// <param name="sErr"></param>
        /// <returns></returns>
        public DataSet GetDepartmentList(string sWhere, ref string sErr)
        {
            
            DataSet ds = new DataSet();
            ds = oCn.RunProcReturn("select * from h_v_IF_Department " + sWhere, "h_v_IF_Department");
            //DAL.ClsIF_Department_View dal = new DAL.ClsIF_Department_View();
            return ds;
        }
        /// <summary>
        /// 职员列表
        /// </summary>
        /// <param name="sWhere"></param>
        /// <param name="sErr"></param>
        /// <returns></returns>
        public DataSet GetEmployeeList(string sWhere, ref string sErr)
        {
           
            DataSet ds = new DataSet();
            ds = oCn.RunProcReturn("select * from h_v_IF_Emp " + sWhere, "h_v_IF_Emp");
            //DAL.ClsIF_Employee_View dal = new DAL.ClsIF_Employee_View();
            return ds;
        }
        /// <summary>
        /// 供应商列表
        /// </summary>
        /// <param name="sWhere"></param>
        /// <param name="sErr"></param>
        /// <returns></returns>
        public DataSet GetSupplierList(string sWhere, ref string sErr)
        {
            DataSet ds = new DataSet();
            ds = oCn.RunProcReturn("select * from h_v_IF_Supplier " + sWhere, "h_v_IF_Supplier");
            //DAL.ClsIF_Supplier_View dal = new DAL.ClsIF_Supplier_View();
            return ds;
        }
        /// <summary>
        /// 客户列表
        /// </summary>
        /// <param name="sWhere"></param>
        /// <param name="sErr"></param>
        /// <returns></returns>
        public DataSet GetCustomerList(string sWhere, ref string sErr)
        {
            DataSet ds = new DataSet();
            ds = oCn.RunProcReturn("select * from h_v_IF_Customer " + sWhere, "h_v_IF_Customer");
            //DAL.ClsIF_Customer_View dal = new DAL.ClsIF_Customer_View();
            return ds;
        }
        #endregion
        /// <summary>
        /// 打印模板列表
        /// </summary>
        /// <param name="sWhere"></param>
        /// <param name="sErr"></param>
        /// <returns></returns>
        public DataSet GetOpenTmpList(string sWhere, ref string sErr)
        {
            DataSet ds = new DataSet();
            ds = oCn.RunProcReturn("select * from h_v_IF_OpenTmpList " + sWhere, "h_v_IF_OpenTmpList");
            return ds;
        }
    }
}