修改质量月报汇总
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user