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.ClsCNSRM oCn = new SQLHelper.ClsCNSRM();
        #region  基础资料
        /// 
        /// 获取仓库列表
        /// 
        /// 
        /// 
        /// 
        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;
        }
        /// 
        /// 获取仓位列表
        /// 
        /// 
        /// 
        /// 
        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;
        }
        /// 
        /// 获取部门列表
        /// 
        /// 
        /// 
        /// 
        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;
        }
        /// 
        /// 职员列表
        /// 
        /// 
        /// 
        /// 
        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;
        }
        /// 
        /// 供应商列表
        /// 
        /// 
        /// 
        /// 
        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;
        }
        /// 
        /// 客户列表
        /// 
        /// 
        /// 
        /// 
        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
        /// 
        /// 打印模板列表
        /// 
        /// 
        /// 
        /// 
        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;
        }
    }
}