提交代码
This commit is contained in:
@@ -56,7 +56,8 @@ namespace BLL
|
||||
|
||||
ResponsibleMan = x.ResponsibleMan,
|
||||
ReceiveMan = x.ReceiveMan,
|
||||
ReceiveManName = UserService.getUserNamesUserIds(x.ReceiveMan)
|
||||
ReceiveManName = UserService.getUserNamesUserIds(x.ReceiveMan),
|
||||
AttachUrl2= APIUpLoadFileService.getFileUrl(x.CheckSpecialId+"zgh", null),
|
||||
|
||||
};
|
||||
return getInfo.FirstOrDefault();
|
||||
@@ -98,8 +99,8 @@ namespace BLL
|
||||
|
||||
ResponsibleMan = x.ResponsibleMan,
|
||||
ReceiveMan = x.ReceiveMan,
|
||||
ReceiveManName = UserService.getUserNamesUserIds(x.ReceiveMan)
|
||||
|
||||
ReceiveManName = UserService.getUserNamesUserIds(x.ReceiveMan),
|
||||
AttachUrl2 = APIUpLoadFileService.getFileUrl(x.CheckSpecialId + "zgh", null),
|
||||
};
|
||||
return getInfo.FirstOrDefault();
|
||||
}
|
||||
@@ -232,7 +233,7 @@ namespace BLL
|
||||
//// 删除专项检查明细项
|
||||
Check_CheckSpecialDetailService.DeleteCheckSpecialDetails(newCheckSpecial.CheckSpecialId);
|
||||
}
|
||||
////保存附件
|
||||
////保存附件(提交前附件)
|
||||
if (!string.IsNullOrEmpty(newItem.AttachUrl1))
|
||||
{
|
||||
UploadFileService.SaveAttachUrl(UploadFileService.GetSourceByAttachUrl(newItem.AttachUrl1, 10, null), newItem.AttachUrl1, Const.ProjectCheckSpecialMenuId, newCheckSpecial.CheckSpecialId);
|
||||
@@ -242,6 +243,16 @@ namespace BLL
|
||||
CommonService.DeleteAttachFileById(Const.ProjectCheckSpecialMenuId, newCheckSpecial.CheckSpecialId);
|
||||
}
|
||||
|
||||
////保存附件(整改后附件)
|
||||
if (!string.IsNullOrEmpty(newItem.AttachUrl2))
|
||||
{
|
||||
UploadFileService.SaveAttachUrl(UploadFileService.GetSourceByAttachUrl(newItem.AttachUrl2, 10, null), newItem.AttachUrl2, Const.ProjectCheckSpecialMenuId, newCheckSpecial.CheckSpecialId+"zgh");
|
||||
}
|
||||
else
|
||||
{
|
||||
CommonService.DeleteAttachFileById(Const.ProjectCheckSpecialMenuId, newCheckSpecial.CheckSpecialId + "zgh");
|
||||
}
|
||||
|
||||
///// 新增检查项
|
||||
if (newItem.CheckSpecialDetailItems != null && newItem.CheckSpecialDetailItems.Count() > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user