SMRPS00250_첨부파일추가.xrw 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>연간교육과정등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <attach>
  11. <file>
  12. </file>
  13. </attach>
  14. <appyy/>
  15. <instcd/>
  16. <educcd/>
  17. </send>
  18. </root>
  19. </instance>
  20. <script type="javascript" ev:event="xforms-ready">
  21. <![CDATA[
  22. model.removenode("/root/send/attach");
  23. model.refresh();
  24. ]]>
  25. </script>
  26. <submission id="TXRPS00205" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main/list"/>
  27. </model>
  28. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  29. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  31. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  32. </xhtml:head>
  33. <xhtml:body pagewidth="540" pageheight="350" style="text-align:center; margin-left:8; margin-right:8; ">
  34. <group id="group2" scroll="auto" style="left:0px; top:15px; width:495px; height:285px; ">
  35. <button id="button7" class="btn4_letter2" style="left:430px; top:250px; width:56px; height:22px; ">
  36. <caption>저장</caption>
  37. <script type="javascript" ev:event="DOMActivate">
  38. <![CDATA[
  39. if( submit("TXRPS00205") ) {
  40. model.removeNodeset("/root/send/attach");
  41. window.opener.model.setValue("/root/temp/flag", "1");
  42. window.opener.model.refresh();
  43. window.opener.ipt_flag.dispatch("xforms-value-changed");
  44. window.close();
  45. }
  46. ]]>
  47. </script>
  48. </button>
  49. <upload id="upload1" nodeset="/root/send/attach/file" style="left:185px; top:250px; width:35px; height:15px; "/>
  50. <datagrid id="grd_attach" nodeset="/root/send/attach" caption="파일경로" colsep="^" colwidth="454" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:0px; width:490px; height:246px; ">
  51. <col ref="file"/>
  52. </datagrid>
  53. <button id="button1" class="btn1_letter4" style="left:255px; top:250px; width:80px; height:22px; ">
  54. <caption>파일선택</caption>
  55. <script type="javascript" ev:event="DOMActivate">
  56. <![CDATA[
  57. files = window.fileDialog("open", "|", true);
  58. if(files != "") {
  59. filelist = files.split("|");
  60. for(var i = 0 ; i < filelist.length ; i++ ) {
  61. grd_attach.addRow(false);
  62. grd_attach.valueMatrix(i+1, grd_attach.colRef("file")) = filelist[i];
  63. }
  64. }
  65. model.refresh();
  66. ]]>
  67. </script>
  68. </button>
  69. <button id="button2" class="btn4_letter2" style="left:370px; top:250px; width:56px; height:22px; ">
  70. <caption>삭제</caption>
  71. <script type="javascript" ev:event="DOMActivate">
  72. <![CDATA[
  73. var row = grd_attach.row;
  74. grd_attach.deleteRow(row);
  75. ]]>
  76. </script>
  77. </button>
  78. </group>
  79. <caption id="caption6" class="tit_1" style="left:0px; top:1px; width:495px; height:13px; ">첨부파일 업로드</caption>
  80. </xhtml:body>
  81. </xhtml:html>