/// <summary> /// 添加合同分解内容 /// </summary> /// <param name="doc">合同分解内容</param> /// <returns></returns> public ContractContent AddNewContractContent(byte[] doc) { var contractContent = new ContractContent { OrderId = Id, ContentDoc = doc }; contractContent.GenerateNewIdentity(); ContractContents.Add(contractContent); return contractContent; }
/// <summary> /// 更新合同内容 /// </summary> /// <param name="dtoContent">合同内容DTO</param> /// <param name="content">合同内容</param> private void UpdateContractContent(ContractContentDTO dtoContent, ContractContent content) { content.UpdateContent(dtoContent.ContentDoc); content.SetContentTag(dtoContent.ContentTags); content.SetDescription(dtoContent.Description); }