完善PC待办功能
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user