修改质量验收

This commit is contained in:
高飞 2023-07-24 19:52:40 +08:00
parent 08b7fd28c8
commit 359e8058fe
2 changed files with 14 additions and 0 deletions

View File

@ -385,6 +385,7 @@ namespace BLL
{ {
newInspectionManagement.InspectionDate = inspectionManagement.InspectionDate; newInspectionManagement.InspectionDate = inspectionManagement.InspectionDate;
newInspectionManagement.IsOnceQualified = inspectionManagement.IsOnceQualified; newInspectionManagement.IsOnceQualified = inspectionManagement.IsOnceQualified;
newInspectionManagement.InspectionCode = inspectionManagement.InspectionCode;
db.SubmitChanges(); db.SubmitChanges();
} }
} }

View File

@ -25,6 +25,8 @@ namespace WebAPI.Controllers.CQMS
try try
{ {
InspectionManagementService.UpdateByInspectionManagementId(model); InspectionManagementService.UpdateByInspectionManagementId(model);
//上传附件
SaveAttachFile(model.InspectionId, BLL.Const.InspectionNoticeMenuId, model.AttachUrl);
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -35,5 +37,16 @@ namespace WebAPI.Controllers.CQMS
return responeData; return responeData;
} }
#endregion #endregion
public static void SaveAttachFile(string dataId, string menuId, string url)
{
Model.ToDoItem toDoItem = new Model.ToDoItem
{
MenuId = menuId,
DataId = dataId,
UrlStr = url,
};
APIUpLoadFileService.SaveAttachUrl(toDoItem);
}
} }
} }