using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Net;
|
using System.Net.Http;
|
using System.Web.Http;
|
using VueWebApi.DLL.BLL;
|
using VueWebApi.Tools;
|
|
namespace VueWebApi.Controllers
|
{
|
[RoutePrefix(prefix: "api/AppQualityManagement")]
|
[ControllerGroup("App质量管理", "在线接口")]
|
[ChannelActionFilterAttributeApp]
|
public class AppQualityManagementController : ApiController
|
{
|
//定义全局信息返回变量
|
ToMessage mes = new ToMessage();
|
RedisHelper redis = new RedisHelper();
|
|
#region[入厂检验,扫描采购到货生成标签]
|
/// <summary>
|
/// 入厂检验,扫描采购到货生成标签
|
/// </summary>
|
/// <param name="labcode">采购到货生成标签</param>
|
/// <returns></returns>
|
[Route(template: "InFactoryCheckScanLabCode")]
|
[HttpGet]
|
public HttpResponseMessage InFactoryCheckScanLabCode(string labcode)
|
{
|
mes = AppQualityManagementBLL.InFactoryCheckScanLabCode(labcode);
|
return TJson.toJson(mes);
|
}
|
#endregion
|
|
#region[入厂检验,根据选择的检验方案查找检验项目]
|
/// <summary>
|
/// 入厂检验,根据选择的检验方案查找检验项目
|
/// </summary>
|
/// <param name="checkstandcode">检验方案编码</param>
|
/// <returns></returns>
|
[Route(template: "InFactoryCheckItem")]
|
[HttpGet]
|
public HttpResponseMessage InFactoryCheckItem(string checkstandcode)
|
{
|
mes = AppQualityManagementBLL.InFactoryCheckItem(checkstandcode);
|
return TJson.toJson(mes);
|
}
|
#endregion
|
|
}
|
}
|