修改质量月报汇总

This commit is contained in:
2023-09-12 09:09:49 +08:00
parent 50c4ca20fc
commit 006ac375f5
18 changed files with 7767 additions and 11 deletions
@@ -338,6 +338,26 @@ namespace Mvc.Controllers
{
item.IsShow = true;
}
//处理工作包实际完成时间
if (c.CheckNum != null && c.CheckNum != 0) //检查次数为0表示一直检查
{
if (c.CheckNum == 1) //检查一次
{
c.RealEndDate = DateTime.Now;
BLL.ControlItemAndCycleService.UpdateControlItemAndCycle(c);
BLL.WorkPackageService.UpdateWorkPackageRealEndDate(c.WorkPackageId);
}
else //检查多次
{
List<Model.Check_SpotCheckDetail> details = BLL.SpotCheckDetailService.GetSpotCheckDetailsByControlItemAndCycleId(c.ControlItemAndCycleId);
if (details.Count == c.CheckNum) //检查次数已达到最大值
{
c.RealEndDate = DateTime.Now;
BLL.ControlItemAndCycleService.UpdateControlItemAndCycle(c);
BLL.WorkPackageService.UpdateWorkPackageRealEndDate(c.WorkPackageId);
}
}
}
}
item.State = BLL.Const.SpotCheck_Audit5;
item.HandleMan = spotCheck1.CreateMan;