Ejemplo n.º 1
0
 /// <summary>
 ///     更新标准文档
 /// </summary>
 /// <param name="document">文档</param>
 /// <param name="fileName">名称</param>
 /// <param name="extension">扩展名</param>
 /// <param name="abstractInfo">摘要</param>
 /// <param name="note">备注</param>
 /// <param name="uploader">上传者</param>
 /// <param name="isValid">是否有效</param>
 /// <param name="stream">字节数组</param>
 public static void UpdateDocument(Document document, string fileName, string extension,
     string abstractInfo, string note, string uploader, bool isValid, byte[] stream)
 {
     document.FileName = fileName;
     document.Extension = extension;
     document.Abstract = abstractInfo;
     document.Note = note;
     document.Uploader = uploader;
     document.IsValid = isValid;
     document.FileStorage = stream;
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     设置合同文档
        /// </summary>
        /// <param name="doc">合同文档</param>
        public void SetContractDoc(Document doc)
        {
            if (doc == null || doc.IsTransient())
            {
                throw new ArgumentException("合同文档参数为空!");
            }

            ContractDocGuid = doc.Id;
            ContractName = doc.FileName;
        }