质量检测,包装,首检表格处添加开始时间显示
This commit is contained in:
@@ -9,6 +9,7 @@ using ZR.Service.mes.qc.IService;
|
||||
using ZR.Model.MES.qc;
|
||||
using ZR.Model.MES.qc.DTO;
|
||||
using ZR.Model;
|
||||
using ZR.Model.MES.pro;
|
||||
|
||||
namespace ZR.Service.mes.qc
|
||||
{
|
||||
@@ -134,6 +135,25 @@ namespace ZR.Service.mes.qc
|
||||
|
||||
}
|
||||
|
||||
|
||||
public string GetQcQualityStatisticsFirstStartTime(string workOrderId)
|
||||
{
|
||||
try
|
||||
{
|
||||
ProWorkordertimeStep proWorkordertime = Context.Queryable<ProWorkordertimeStep>()
|
||||
.Where(it=>it.WorkoderId == workOrderId)
|
||||
.First();
|
||||
if(proWorkordertime == null)
|
||||
{
|
||||
return "工单无开始时间!";
|
||||
}
|
||||
string timeStr = proWorkordertime.FirstInspectTime?.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
return timeStr;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return "工单无开始时间!";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user