예제 #1
0
파일: Order.cs 프로젝트: unicloud/FRP
        /// <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;
        }
예제 #2
0
 /// <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);
 }