|
花道
发表于 2020-5-18 18:11:07
对应附件和图片保存在附件表中
附件信息记录表:H_bizobjectfile
使用:
获取附件id
H3.DataModel.BizObjectFileHeader[] files = (H3.DataModel.BizObjectFileHeader[]) this.Request.BizObject["F0000020"]; //附件控件
foreach(H3.DataModel.BizObjectFileHeader f in files)
{
string FileId = f.FileId + string.Empty;
}//注意:新增的时候获取不了ID
获取附件链接
//获取图片缩略图url,FileId:附件Id
string fileurl = this.Request.UserContext.GetThumbnailUrl(string FileId);
//获取原图url,FileId:附件Id
string url="https://www.h3yun.com/Form/DoPreview/?attachmentId="+FileId |
|