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;
|
}
|
}
|
}
|