123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <attachlist>
- <filenm/>
- <filesize/>
- <filetype/>
- <filepath/>
- <reportid/>
- </attachlist>
- </list>
- </main>
- <send>
- <reportid/>
- </send>
- <init/>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct">
- <![CDATA[
- model.removeNodeset("/root/req/grid");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- submit("TRTSS00301");
- ]]>
- </script>
- <submission id="TRTSS00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TRTSS00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/list/attachlist");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="670" pageheight="410">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:217px; height:14px; vertical-align:middle; ">파일 다운로드</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:32px; x2:665px; y2:32px; "/>
- <caption id="caption20" class="tit_2" style="left:6px; top:17px; width:118px; height:13px; ">첨부파일 목록</caption>
- <button id="btn_ok" class="btn4_letter2" style="left:610px; top:380px; width:56px; height:22px; ">
- <caption>확인</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <datagrid id="grd_attachfile" nodeset="/root/main/list/attachlist" visibility="visible" caption="첨부파일명^파일크기^파일종류^서버저장경로^보고서ID^" colwidth="466, 97, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:0px; top:37px; width:665px; height:333px; ">
- <col ref="filenm"/>
- <col ref="filesize"/>
- <col ref="filetype"/>
- <col ref="filepath" visibility="hidden"/>
- <col ref="reportid" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- alert(getActionURL("TRTSS00302"));
- var idx = grd_attachfile.row;
- var filepath = model.getValue("/root/main/list/attachlist["+idx+"]/filepath");
- var filenm = model.getValue("/root/main/list/attachlist["+idx+"]/filenm");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRTSS00302")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|