SPRPE01001_파일다운로드팝업.xrw 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>SPRPE01001_파일다운로드팝업</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <epentcofile>
  11. <epentcofilelist/>
  12. </epentcofile>
  13. <attchfile/>
  14. </main>
  15. <send>
  16. <epentcofile>
  17. <apntinfono/>
  18. <examno/>
  19. </epentcofile>
  20. <attchfile>
  21. <filepath/>
  22. </attchfile>
  23. </send>
  24. <init/>
  25. <hidden/>
  26. </root>
  27. </instance>
  28. <script ev:event="xforms-ready" type="javascript">
  29. <![CDATA[
  30. misfGridInit(grd_attachfile);
  31. misfMsterDetailSet(grd_attachfile, null, "TRRPE01012" ,"N");
  32. model.setValue("/root/send/epentcofile/apntinfono",model.getValue("/root/target/defaultvalue/apntinfono"));
  33. model.setValue("/root/send/epentcofile/examno",model.getValue("/root/target/defaultvalue/examno"));
  34. misfMsterDetailRetrieve();
  35. ]]>
  36. </script>
  37. <submission id="TRRPE01012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/epentcofile" resultref="/root/main/epentcofile"/>
  38. <submission id="TRRPE01014" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/attchfile" resultref="/root/main/attchfile"/>
  39. </model>
  40. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  41. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  42. <script src="../../../mis/miscommonweb/js/MIS.js" type="javascript"/>
  43. </xhtml:head>
  44. <xhtml:body pagewidth="670" pageheight="410">
  45. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:217px; height:14px; vertical-align:middle; ">파일 다운로드</caption>
  46. <line id="line8" class="line_1" style="x1:0px; y1:32px; x2:665px; y2:32px; "/>
  47. <caption id="caption20" class="tit_2" style="left:6px; top:17px; width:118px; height:13px; ">첨부파일 목록</caption>
  48. <button id="btn_ok" class="btn4_letter2" style="left:532px; top:380px; width:56px; height:22px; ">
  49. <caption>확인</caption>
  50. <close ev:event="DOMActivate"/>
  51. </button>
  52. <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; ">
  53. <col ref="filenm"/>
  54. <col ref="filesize"/>
  55. <col ref="filetype"/>
  56. <col ref="filepath" visibility="hidden"/>
  57. <col ref="apntinfono" visibility="hidden"/>
  58. <col ref="examno" visibility="hidden"/>
  59. <col ref="seqno" visibility="hidden"/>
  60. <script ev:event="ondblclick" type="javascript">
  61. <![CDATA[
  62. //alert(getActionURL("TRRPE01014"));
  63. if( grd_attachfile.isCell(event.target) && grd_attachfile.row >= grd_attachfile.fixedRows ){
  64. var idx = grd_attachfile.row;
  65. var filepath = model.getValue("/root/main/epentcofile/epentcofilelist["+idx+"]/filepath");
  66. var filenm = model.getValue("/root/main/epentcofile/epentcofilelist["+idx+"]/filenm");
  67. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  68. if (localfile != "") {
  69. model.download(getActionURL("TRRPE01014")+"&filepath="+filepath,localfile);
  70. var rtn = messageBox("파일을", "Q004");
  71. if( rtn == 6 ) {
  72. window.exec(localfile);
  73. }
  74. }
  75. }
  76. ]]>
  77. </script>
  78. </datagrid>
  79. <button id="btn_close" class="btn4_letter2" style="left:590px; top:380px; width:56px; height:22px; ">
  80. <caption>닫기</caption>
  81. <close ev:event="onclick"/>
  82. </button>
  83. </xhtml:body>
  84. </xhtml:html>