-
Notifications
You must be signed in to change notification settings - Fork 1
/
attachment_Vem.xml
29 lines (29 loc) · 2.61 KB
/
attachment_Vem.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<WndTap Name="attachment" Text="attachment_e" Ver="2">
<var name="refreshAfterEdit" expr="0"/>
<var name="dataRequired" expr=""/>
<var name="dataRequireless" expr=""/>
<var name="work2do" expr=""/>
<xi:include href="lan\attachment.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<Ctrls>
<GroupBox Name="GBattachment" id="attachment" Text="attachment" Size="100,100"><Ctrls>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="attachment_GBDEDIT.xml"/>
<BR AutoHeight="1"/><!--xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="attachment_GBOPE.xml"/>
<BR /-->
<Button Name="attachfile" Size="100,20" Text="attachment">
<OnClick><if cond="!%{projecttaskid}"><alert expr="上传附件前请先生成单据!"/><elseif cond="!'%{description}'"/><alert expr="请先填说明"/><elseif cond="!%{attachedfile}"/><DbDetails mode="insert" fcsm="1">
<DbTable>vtigercrm6.attachment</DbTable>
<Required>%{dataRequired}</Required>
<Requireless>%{dataRequireless}</Requireless>
<Data>description</Data>
<DataEx>reftbl,refid,creation_date,created_by,last_update_by,last_update_date,typestr;'vtiger_projecttask',%{projecttaskid},now(),'%{user_id}','%{user_id}',now(),''</DataEx>
<queryFormat>insert into %{table} %{data}</queryFormat></DbDetails>
<submit namelist="DbDetails"/><submit next="attachment_vLst"/><else/><assign name="topmost" expr="SendFile:,filter=*.*|*.*|,dir=file/%{user_id},localdir=,query=insert into attachment (filename,path,attachment,description,reftbl, refid, created_by, creation_date, last_update_by, last_update_date) values('%{_upload_file_name}','file/%{user_id}/','file/%{user_id}/%{_upload_file_name}','%{description}','vtiger_projecttask',%{projecttaskid}, '%{user_id}',now(),'%{user_id}',now())"/>
<info expr="处理中......"/></if></OnClick><OnSendFileEnd><if cond="%{attachfile[result]}"><submit next="attachment_vLst"/></if></OnSendFileEnd></Button><TAB/> ON DUPLICATE KEY UPDATE filename='%{_upload_file_name}',path='file/%{user_id}/',attachment='file/%{user_id}/%{_upload_file_name}', last_update_by='%{user_id}',last_update_date=now()
<!--Button Name="Download" Size="50,20" Text="下载文件">
<OnClick><assign name="topmost" expr="GetFile:%{DocList[filenameany]},dir=%{DocList[path]},localdir="/></OnClick>
<OnFecthFileEnd><alert next="GroupBox" expr="xiazai"/></OnFecthFileEnd></Button-->
<BR AutoHeight="1"/><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="attachment_Vv.xml"/>
</Ctrls></GroupBox></Ctrls>
<OnChanged></OnChanged>
<OnActivate><SetVisible name="insertattachment" Visible="1"/><SetVisible name="modifyattachment" Visible="0"/></OnActivate>
</WndTap>