using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Pub_Class;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Web.Http;
using WebAPI.Models;
namespace WebAPI.Controllers
{
//收款单Controller
public class KB_CGSLController : ApiController
{
//获取系统参数
Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
public DBUtility.ClsPub.Enum_BillStatus BillStatus;
private json objJsonResult = new json();
SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
DataSet ds;
#region 采购收料看板 查询
///
/// 返回应收单列表
///参数:string sql。
///返回值:object。
///
[Route("KB_CGSL/getData_CGSL")]
[HttpGet]
public object getData_CGSL(string sWhere, string user)
{
try
{
////查看权限
//if (!DBUtility.ClsPub.Security_Log("Xs_ReceivableBill_Query", 1, false, user))
//{
// objJsonResult.code = "0";
// objJsonResult.count = 0;
// objJsonResult.Message = "无查看权限!";
// objJsonResult.data = null;
// return objJsonResult;
//}
List tableList = new List();
List