180 lines
4.1 KiB
C#
180 lines
4.1 KiB
C#
using Asp.Versioning;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using StoreHub.KJDWebService.Services;
|
|
|
|
namespace StoreHub.KJDWebService.Controllers
|
|
{
|
|
[ApiController]
|
|
[ApiVersionNeutral]
|
|
[Route("bxx_price/[action]")]
|
|
public class BXXPriceController : BaseApiController
|
|
{
|
|
private readonly BXXPriceService _bXXPriceService;
|
|
|
|
public BXXPriceController(BXXPriceService bXXPriceService)
|
|
{
|
|
_bXXPriceService = bXXPriceService;
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult get_price_list()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.GetPriceList(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult add_price()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.AddPrice(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult del_db_price()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.DelDbPrice(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult mdy_db_price()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.MdyDBPrice(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult mdy_purchase_price()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.MdyPurchasePrice(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult add_purchase_price()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.AddPurchasePrice(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult del_purchase_price()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.DelPurchasePrice(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult get_purchase_price_list()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.GetPurchasePriceList(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult add_ext_code_price()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.AddExtCodePrice(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult get_ext_code_price_list()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.GetExtCodePriceList(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult del_db_ext_code_price()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.DelDbExtCodePrice(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult mdy_db_ext_code_price()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _bXXPriceService.MdyDBExtCodePrice(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|