using Model;
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
{
public class Kf_ProductInBillController : ApiController
{
public DBUtility.ClsPub.Enum_BillStatus BillStatus;
public const string ModName = "1202"; //单据类型
public const string ModCaption = "生产入库单"; //单据名称
public const string ModRightName = "Kf_ProductInBill";
public const string ModRightNameList = ModRightName + "List"; //列表
public const string ModRightNameEdit = ModRightName + "_Edit"; //编辑
public const string ModRightNameCheck = ModRightName + "_Check"; //审核
public const string ModRightNameClose = ModRightName + "_Close"; //关闭
public const string ModRightNameDelete = ModRightName + "_Delete"; //作废
public const string ModRightNameDrop = ModRightName + "_Drop"; //删除
public const string ModRightNameMoney = ModRightName + "_Money"; //金额
public const string ModRightNameQty = ModRightName + "_Qty"; //数量
public DataSet ds = new DataSet();
private json objJsonResult = new json();
SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
public DAL.ClsKf_ProductInBill oBill = new DAL.ClsKf_ProductInBill();
public DAL.ClsKf_ProductInBill BillOld = new DAL.ClsKf_ProductInBill();
#region 生产入库单列表
///
/// 获取生产入库单列表信息
///
///
[Route("Kf_ProductInBillController/GetKf_ProductInBillList_Json")]
[HttpGet]
public object GetKf_ProductInBillList_Json(string sWhere, string HMaker, string OperationType, string ViewName)
{
try
{
List