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.
150 lines
4.0 KiB
150 lines
4.0 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using Warehouse.DAL.Report;
|
|
|
|
namespace Warehouse.WebApi
|
|
{
|
|
[RoutePrefix("api/RunCard")]
|
|
public class RunCardController : ApiController
|
|
{
|
|
RunCard runcard = new RunCard();
|
|
[Route("QueryLotID")]
|
|
[HttpPost]
|
|
public IHttpActionResult QueryLotID(dynamic lotid)
|
|
{
|
|
|
|
var res = runcard.QueryLotID(lotid);
|
|
return Json(res);
|
|
//return Json<dynamic>(new { AA = "aa", BB = "cc" });
|
|
}
|
|
[Route("WeldStationInfo")]
|
|
[HttpGet]
|
|
public IHttpActionResult WeldStationInfo(string lotid)
|
|
{
|
|
var res = runcard.WeldStationInfo();
|
|
return Json(res);//
|
|
}
|
|
|
|
//装框接线盒
|
|
[Route("FrameBox")]
|
|
[HttpGet]
|
|
public IHttpActionResult FrameBox(string lotid)
|
|
{
|
|
var res = runcard.FrameBox(lotid);
|
|
return Json(res);//
|
|
}
|
|
//叠层EVA
|
|
[Route("LaminationEVA")]
|
|
[HttpGet]
|
|
public IHttpActionResult LaminationEVA(string lotid)
|
|
{
|
|
var res = runcard.LaminationEVA(lotid);
|
|
return Json(res);
|
|
}
|
|
//叠层高透EVA
|
|
[Route("LaminationHighEVA")]
|
|
[HttpGet]
|
|
public IHttpActionResult LaminationHighEVA(string lotid)
|
|
{
|
|
var res = runcard.LaminationHighEVA(lotid);
|
|
return Json(res);
|
|
}
|
|
|
|
//叠层玻璃
|
|
[Route("LaminationGlass")]
|
|
[HttpGet]
|
|
public IHttpActionResult LaminationGlass(string lotid)
|
|
{
|
|
var res = runcard.LaminationGlass(lotid);
|
|
return Json(res);
|
|
}
|
|
|
|
//叠层背板
|
|
[Route("LaminationBack")]
|
|
[HttpGet]
|
|
public IHttpActionResult LaminationBack(string lotid)
|
|
{
|
|
var res = runcard.LaminationBack(lotid);
|
|
return Json(res);
|
|
}
|
|
|
|
//IV
|
|
[Route("IV")]
|
|
[HttpGet]
|
|
public IHttpActionResult IV(string lotid)
|
|
{
|
|
var res = runcard.IVQueryInfo(lotid);
|
|
return Json(res);
|
|
}
|
|
|
|
//包装
|
|
[Route("Pack")]
|
|
[HttpGet]
|
|
public IHttpActionResult Pack(string lotid)
|
|
{
|
|
var res = runcard.PackQueryInfo(lotid);
|
|
return Json(res);
|
|
}
|
|
|
|
//测试后EL
|
|
[Route("ELAfterTest")]
|
|
[HttpGet]
|
|
public IHttpActionResult ELAfterTest(string lotid)
|
|
{
|
|
var res = runcard.ELAfterTest(lotid);
|
|
return Json(res);
|
|
}
|
|
|
|
//层压前EL
|
|
[Route("ELBeforeLayup")]
|
|
[HttpGet]
|
|
public IHttpActionResult ELBeforeLayup(string lotid)
|
|
{
|
|
var res = runcard.ELBeforeLayup(lotid);
|
|
return Json(res);
|
|
}
|
|
//功率后EL
|
|
[Route("ELAfterIV")]
|
|
[HttpGet]
|
|
public IHttpActionResult ELAfterIV(string lotid)
|
|
{
|
|
var res = runcard.ELAfterIV(lotid);
|
|
return Json(res);
|
|
}
|
|
//清洗
|
|
[Route("Clean")]
|
|
[HttpGet]
|
|
public IHttpActionResult Clean(string lotid)
|
|
{
|
|
IEnumerable<dynamic> res = runcard.CleanQueryInfo(lotid);
|
|
List<dynamic> list = res.ToList<dynamic>();
|
|
|
|
if (list.Count > 0)
|
|
{
|
|
list[0].curingtime = Math.Round(Convert.ToDouble(list[0].curingtime) / 60, 2, MidpointRounding.AwayFromZero);
|
|
if (list[0].curingtime != null) list[0].curingtime = list[0].curingtime + "H";
|
|
list[0].testitem = "dsdsa";
|
|
return Json(res);
|
|
}
|
|
//Math.Round((list[0].curingtime) / 60, 2,MidpointRounding.AwayFromZero)
|
|
return Json(res);
|
|
|
|
}
|
|
|
|
//层压后检验
|
|
[Route("QCAfterLayup")]
|
|
[HttpGet]
|
|
public IHttpActionResult QCAfterLayup(string lotid)
|
|
{
|
|
var res = runcard.QCAfterLayup(lotid);
|
|
return Json(res);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|