示例#1
0
        string FormatUrl()
        {
            string attachmentPath = "";

            if (!We7Helper.IsEmptyID(AttachmentID))
            {
                ThisAttachment = AttachmentHelper.GetAttachment(AttachmentID);
            }
            else if (!We7Helper.IsEmptyID(OwnerID) && FileType != "")
            {
                ThisAttachment = AttachmentHelper.GetFirstAttachment(OwnerID, FileType, FilesName);
            }
            if (ThisAttachment != null)
            {
                attachmentPath = string.Format("\\{0}\\{1}", ThisAttachment.FilePath, ThisAttachment.FileName);
            }
            return(attachmentPath);
        }