修改质量验收
This commit is contained in:
parent
08b7fd28c8
commit
359e8058fe
|
@ -385,6 +385,7 @@ namespace BLL
|
|||
{
|
||||
newInspectionManagement.InspectionDate = inspectionManagement.InspectionDate;
|
||||
newInspectionManagement.IsOnceQualified = inspectionManagement.IsOnceQualified;
|
||||
newInspectionManagement.InspectionCode = inspectionManagement.InspectionCode;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,8 @@ namespace WebAPI.Controllers.CQMS
|
|||
try
|
||||
{
|
||||
InspectionManagementService.UpdateByInspectionManagementId(model);
|
||||
//上传附件
|
||||
SaveAttachFile(model.InspectionId, BLL.Const.InspectionNoticeMenuId, model.AttachUrl);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -35,5 +37,16 @@ namespace WebAPI.Controllers.CQMS
|
|||
return responeData;
|
||||
}
|
||||
#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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue