修改合同用印文件下载逻辑
This commit is contained in:
@@ -6386,7 +6386,7 @@ namespace YLErp.Web.Controllers
|
||||
foreach (var type in req.docpdf)
|
||||
{
|
||||
var doc = contractBLL.GetContractDoc(item.TradeId, item.Type, item.TradeCashId);
|
||||
if (type == "PDF" && req.IsSeal)
|
||||
if (req.IsSeal)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(item.StampDocumentFileName))
|
||||
{
|
||||
@@ -6453,6 +6453,11 @@ namespace YLErp.Web.Controllers
|
||||
else
|
||||
{
|
||||
path = item.StampDocumentFileName;
|
||||
var extention = Path.GetExtension(path);
|
||||
var innerfName = GetFileName(path, extention);
|
||||
filePathList.Add(innerfName);
|
||||
break;//如果是下载已用印的文件只需要下载用印后的文件就行了;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6466,6 +6471,7 @@ namespace YLErp.Web.Controllers
|
||||
{
|
||||
filePathList.Add(fName);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user