日常巡检、班前会统计
This commit is contained in:
@@ -6,6 +6,7 @@ using BLL.OfficeCheck.Inspect;
|
||||
using Model;
|
||||
using static BLL.OfficeCheck.Inspect.Inspect_InspectionService;
|
||||
using System.Collections.Generic;
|
||||
using static WebAPI.Controllers.HSSE.ImageRecognitionController;
|
||||
|
||||
namespace WebAPI.Controllers.HSSE
|
||||
{
|
||||
@@ -179,8 +180,33 @@ namespace WebAPI.Controllers.HSSE
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#region 保存专检子项
|
||||
[HttpPost]
|
||||
public Model.ResponeData SaveInspectionChild(Model.Inspect_InspectionItem child)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
if (string.IsNullOrEmpty(child.InspectionItemId))
|
||||
{
|
||||
child.InspectionItemId = Guid.NewGuid().ToString();
|
||||
child.CompileTime = DateTime.Now;
|
||||
Inspect_InspectionService.AddInspectionItem(child);
|
||||
}
|
||||
else
|
||||
{
|
||||
Inspect_InspectionService.UpdateInspectionItem(child);
|
||||
}
|
||||
} catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
//编辑 新增明细
|
||||
[HttpPost]
|
||||
public Model.ResponeData SaveInspectionItem([FromBody] List<Model.Inspect_InspectionItem> InspectionItems)
|
||||
@@ -241,6 +267,8 @@ namespace WebAPI.Controllers.HSSE
|
||||
TimeLimited = x.TimeLimited,
|
||||
RectificationDescription = x.RectificationDescription,
|
||||
RectificationResults = x.RectificationResults,
|
||||
RectificationPhotoUrl = x.RectificationPhotoUrl,
|
||||
RectificationVideoUrl = x.RectificationVideoUrl,
|
||||
States = x.States,
|
||||
CompileMan = subUser1.UserName,
|
||||
CompileTime = x.CompileTime,
|
||||
|
||||
Reference in New Issue
Block a user