旧版报表、仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.2 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Warehouse.Code;
using Warehouse.DAL.SysConfig;
namespace Warehouse.WebApi.SysConfig
{
public class QCConfigController : ApiController
{
[Route("api/QCConfig/SetConfig")]
[HttpPost]
public IHttpActionResult SetConfig(dynamic para)
{
string setValue = para.setValue;
if (Common.DBType == (int)DB.sqlserver)
{
var Res = new QCConfigMSDal().SetQCConfig(setValue);
if(Res>0) return Json(new { res = "success", msg = "配置成功" });
return Json(new { res = "fail", msg = "配置失败" });
}
else
{
return null;
}
}
[Route("api/QCConfig/QueryConfig")]
[HttpPost]
public IHttpActionResult QueryConfig()
{
if (Common.DBType == (int)DB.sqlserver)
{
var Res = new QCConfigMSDal().QueryQCConfig();
return Json(Res);
}
else
{
return null;
}
}
}
}