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.
41 lines
1.1 KiB
41 lines
1.1 KiB
2 years ago
|
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.QCReport
|
||
|
{
|
||
|
public class FinalTestRoomDataController : ApiController
|
||
|
{
|
||
|
FinalTestRoomDataDal DT = new FinalTestRoomDataDal();
|
||
|
|
||
|
[Route("api/FinalTestRoomDatas/FinalTestRoomDatas")]
|
||
|
[HttpPost]
|
||
|
public IHttpActionResult FinalTestRoomData(dynamic para)
|
||
|
{
|
||
|
string bt = para.bt;
|
||
|
string et = para.et;
|
||
|
string workshop = para.workshop;
|
||
|
string workorder = para.workorder;
|
||
|
int[] count = null;
|
||
|
int[] n = null;
|
||
|
var res = DT.FinalTestRoomData(bt, et, workshop, workorder);
|
||
|
//int j = res.LastIndexOf(res);
|
||
|
//int index = res.FindIndex(item => item.Equals("0"));
|
||
|
//res.Select(t => t.StudentCode).ToList();
|
||
|
//foreach (string s in res[0])
|
||
|
//{
|
||
|
|
||
|
// if (s == "0" || s == "0.00%")
|
||
|
// {
|
||
|
|
||
|
// }
|
||
|
|
||
|
//}
|
||
|
return Json(res);
|
||
|
}
|
||
|
}
|
||
|
}
|