返回文檔處理中的附件image

display image dispMainPic()
{
docuRef docuRef;
docuType docuType;
image ret;
;
select firstonly docuRef
where docuRef.RefCompanyId == this.dataAreaId &&
docuRef.RefTableId == this.TableId &&
docuRef.RefRecId == this.RecId
join docuType where docuRef.TypeId==docuType.TypeId && docuType.TypeGroup==DocuTypeGroup::Image;

if(docuRef.ValueRecId) {
ret=new image();
ret.setData(DocuValue::find(docuRef.ValueRecId).File);
}
return ret;
}

posted on 2014-08-20 14:01  Kobe.Zhang  阅读(200)  评论(0编辑  收藏  举报

导航