| | |
| | | var automaticIpqcFirstCheck = |
| | | mesQaItemsDetect02Manager |
| | | .AutomaticIpqcFirstCheck(womdaa.Daa001); |
| | | if (!automaticIpqcFirstCheck) throw new Exception("首检生成失败"); |
| | | if (!automaticIpqcFirstCheck) |
| | | { |
| | | Console.WriteLine($"自动首检失败,工单号:{womdaa.Daa001}"); |
| | | throw new Exception("首检生成失败"); |
| | | } |
| | | |
| | | // 获取当前时间 |
| | | var s1 = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | |
| | | var editDate = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | |
| | | // 发送HTTP请求到数据刷新接口 |
| | | MesNumerical mesNumerical = null; |
| | | MesNumericalBycl mesNumerical = null; |
| | | try |
| | | { |
| | | using (var httpClient = new HttpClient()) |
| | |
| | | if (responseObj != null && responseObj.code == 200) |
| | | { |
| | | // 请求成功,获取MesNumerical数据 |
| | | mesNumerical = Db.Queryable<MesNumerical>() |
| | | mesNumerical = Db.Queryable<MesNumericalBycl>() |
| | | .Where(s => s.EditDate == editDate |
| | | && s.MachineNo == entity.MachineNo) |
| | | .OrderByDescending(s => s.Id) |
| | |
| | | // var reportingOkQty = |
| | | // Convert.ToDecimal(vOrder.todayOutput) - |
| | | // reporting.OkQty; |
| | | var CjQty = Db.Queryable<MesNumerical>() |
| | | var CjQty = Db.Queryable<MesNumericalBycl>() |
| | | .Where(s => s.MachineNo == entity.MachineNo && s.EditDate == date) |
| | | .OrderByDescending(s=>s.CjTiem) |
| | | .Select<long?>(s=>s.CjNum).First(); |