完善PC待办功能

This commit is contained in:
2023-08-17 09:39:51 +08:00
parent 12b9eaae63
commit c8d6ac780a
12 changed files with 1361 additions and 171 deletions
@@ -29,8 +29,17 @@ namespace WebAPI.Controllers.CQMS
{
newModel.InspectionCode = model.InspectionCode;
newModel.IsOnceQualified = model.IsOnceQualified;
newModel.InspectionDate = model.InspectionDate;
if (!string.IsNullOrEmpty(model.InspectionDate.ToString()))
{
newModel.InspectionDate = model.InspectionDate.ToString().Replace("/", "-");
}
newModel.UnqualifiedReason = model.UnqualifiedReason;
//附件
var Fjmodel = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == InspectionNoticeMenuId && x.MenuId == Const.InspectionNoticeMenuId);
if (model != null)
{
newModel.AttachUrl = Fjmodel.AttachUrl;
}
responeData.data = newModel;
}
@@ -84,12 +93,14 @@ namespace WebAPI.Controllers.CQMS
APIUpLoadFileService.SaveAttachUrl(toDoItem);
}
/// <summary>
/// 返回实体
/// </summary>
public class returnPersonQuality
{
public DateTime? InspectionDate { get; set; }
public string InspectionDate { get; set; }
public bool? IsOnceQualified { get; set; }
@@ -98,6 +109,8 @@ namespace WebAPI.Controllers.CQMS
public string InspectionCode { get; set; }
public string UnqualifiedReason { get; set; }
public string AttachUrl { get; set; }
}
}
}