OA用印自动同步,完善确认书来源标识
This commit is contained in:
@@ -497,6 +497,7 @@ namespace YLErp.Modules.TradeModule.DocGenerateModule
|
||||
contractRecord.SellerName = isGJBuyer ? trade.ClientName : PS.Config.CompanyFullName;
|
||||
contractRecord.FileType = FileTypeEnum.Word;
|
||||
contractRecord.Status = ContractStatusEnum.Draft;
|
||||
contractRecord.SourceType = 1; // 系统生成
|
||||
contractRecord.Paths = $"App_Docs\\GTJA\\{outPutFileName}";
|
||||
contractRecord.FileName = outPutFileName;
|
||||
contractRecord.Type = ContractTypeEnum.Trade;
|
||||
|
||||
@@ -58,6 +58,7 @@ namespace YLErp.Modules.TradeModule.DocGenerateModule
|
||||
contractRecord.ContractVersion = contractVersion;
|
||||
contractRecord.FileType = FileTypeEnum.Pdf;
|
||||
contractRecord.Status = ContractStatusEnum.Draft;
|
||||
contractRecord.SourceType = 1; // 系统生成
|
||||
contractRecord.Paths = outPath;
|
||||
contractRecord.FileName = outPath.Replace(".xlsx", ".pdf");
|
||||
contractRecord.Type = ContractTypeEnum.Trade;
|
||||
|
||||
@@ -545,6 +545,7 @@ namespace YLErp.Modules.TradeModule.DocGenerateModule
|
||||
contractRecord.SellerName = isGJBuyer ? firstTrade.ClientName : (PS.Config.CompanyName ?? "");
|
||||
contractRecord.FileType = fileType;
|
||||
contractRecord.Status = ContractStatusEnum.Draft;
|
||||
contractRecord.SourceType = 1; // 系统生成
|
||||
contractRecord.Paths = "/App_Docs/contractdoc/output/" + fileName;
|
||||
contractRecord.FileName = fileName;
|
||||
contractRecord.StampDocumentFileName = null;
|
||||
@@ -697,6 +698,7 @@ namespace YLErp.Modules.TradeModule.DocGenerateModule
|
||||
contractRecord.SellerName = isGJBuyer ? firstTrade.ClientName : (PS.Config.CompanyName ?? "");
|
||||
contractRecord.FileType = fileType;
|
||||
contractRecord.Status = ContractStatusEnum.Draft;
|
||||
contractRecord.SourceType = 1; // 系统生成
|
||||
contractRecord.Paths = "/App_Docs/contractdoc/output/" + fileName;
|
||||
contractRecord.FileName = fileName;
|
||||
contractRecord.StampDocumentFileName = null;
|
||||
|
||||
@@ -611,6 +611,7 @@ namespace YLErp.Modules.TradeModule.DocGenerateModule
|
||||
contractRecord.SellerName = isGJBuyer ? trade.ClientName : PS.Config.CompanyFullName;
|
||||
contractRecord.FileType = FileTypeEnum.Word;
|
||||
contractRecord.Status = ContractStatusEnum.Draft;
|
||||
contractRecord.SourceType = 1; // 系统生成
|
||||
contractRecord.Paths = $"App_Docs\\GTJA\\{outPutFileName}";
|
||||
contractRecord.FileName = outPutFileName;
|
||||
contractRecord.Type = ContractTypeEnum.Trade;
|
||||
@@ -800,6 +801,7 @@ namespace YLErp.Modules.TradeModule.DocGenerateModule
|
||||
|
||||
#region 更新数据
|
||||
contractDoc.Comments = fileDescription;
|
||||
contractDoc.SourceType = 2; // 人工上传
|
||||
if (OurpartySeal && CounterpartySeal)
|
||||
{ contractDoc.Status = ContractStatusEnum.BothPartyStamped; }
|
||||
else if (OurpartySeal) { contractDoc.Status = ContractStatusEnum.OurPartyStamped; }
|
||||
@@ -922,6 +924,7 @@ namespace YLErp.Modules.TradeModule.DocGenerateModule
|
||||
}
|
||||
|
||||
#region 更新数据
|
||||
contractDoc.SourceType = 2; // 人工上传
|
||||
var confrimService = new TradeConfirmService(OptUser, db);
|
||||
foreach (var contractDocR in contractDocRArr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user