139 lines
3.5 KiB
C#
139 lines
3.5 KiB
C#
using KJD_Web.BLL.BXX;
|
|
using KJD_Web.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Services;
|
|
using System.Web.Http;
|
|
|
|
namespace KJD_Web.Controllers.BXX
|
|
{
|
|
[RoutePrefix("bxx_product_third")]
|
|
[Route("{action}")]
|
|
public class BXXProductThirdController : AsmxApiController
|
|
{
|
|
public IHttpActionResult get_product_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().GetProductList(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_product_detail_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().GetProductList(jsontext, true);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult add_product()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().AddProduct(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult del_db_product()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().DelDbProd(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult mdy_product_category()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().MdyProductCategory(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult add_user_select_product()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().AddUserSelectProduct(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult mdy_user_select_product_status()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().MdyUserSelectProductStatus(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_user_select_product_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().GetUserSelectProductList(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult admin_get_user_select_product_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().GetUserSelectProductList(jsontext, true);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult del_select_product()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().DelSelectProd(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult set_select_product_sub_sa()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().SetSelectProductSubSa(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult mdy_product_select_notes()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductThirdManage().MdyProductSelectNotes(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
}
|
|
}
|