12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?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>SPRPE01001_파일다운로드팝업</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <epentcofile>
- <epentcofilelist/>
- </epentcofile>
- <attchfile/>
- </main>
- <send>
- <epentcofile>
- <apntinfono/>
- <examno/>
- </epentcofile>
- <attchfile>
- <filepath/>
- </attchfile>
- </send>
- <init/>
- <hidden/>
- </root>
- </instance>
- <script ev:event="xforms-ready" type="javascript">
- <![CDATA[
- misfGridInit(grd_attachfile);
-
- misfMsterDetailSet(grd_attachfile, null, "TRRPE01012" ,"N");
-
- model.setValue("/root/send/epentcofile/apntinfono",model.getValue("/root/target/defaultvalue/apntinfono"));
- model.setValue("/root/send/epentcofile/examno",model.getValue("/root/target/defaultvalue/examno"));
-
- misfMsterDetailRetrieve();
- ]]>
- </script>
- <submission id="TRRPE01012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/epentcofile" resultref="/root/main/epentcofile"/>
- <submission id="TRRPE01014" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/attchfile" resultref="/root/main/attchfile"/>
- </model>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script src="../../../mis/miscommonweb/js/MIS.js" type="javascript"/>
- </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:532px; top:380px; width:56px; height:22px; ">
- <caption>확인</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <datagrid id="grd_attachfile" nodeset="/root/main/epentcofile/epentcofilelist" visibility="visible" caption="첨부파일명^파일크기^파일종류^서버저장경로^채용번호^수험번호^일련번호^|첨부파일명^파일크기^파일종류^서버저장경로^채용번호^수험번호^일련번호^" colwidth="429, 97, 100, 100, 36, 34, 33" mergecellsfixedrows="bycolrec" rowheader="seq" 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="apntinfono" visibility="hidden"/>
- <col ref="examno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <script ev:event="ondblclick" type="javascript">
- <![CDATA[
- //alert(getActionURL("TRRPE01014"));
-
- if( grd_attachfile.isCell(event.target) && grd_attachfile.row >= grd_attachfile.fixedRows ){
- var idx = grd_attachfile.row;
- var filepath = model.getValue("/root/main/epentcofile/epentcofilelist["+idx+"]/filepath");
- var filenm = model.getValue("/root/main/epentcofile/epentcofilelist["+idx+"]/filenm");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRRPE01014")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_close" class="btn4_letter2" style="left:590px; top:380px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="onclick"/>
- </button>
- </xhtml:body>
- </xhtml:html>
|