SMRPS90900_첨부파일업로드.xrw 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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>SMRPS90900_첨부파일업로드</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. <dutinstcd/>
  16. <chrgdeptcd/>
  17. <chrgteamcd/>
  18. <chrgunitcd/>
  19. <flag/>
  20. </send>
  21. </root>
  22. </instance>
  23. <script type="javascript" ev:event="xforms-ready">
  24. <![CDATA[
  25. model.removenode("/root/send/attach");
  26. model.refresh();
  27. ]]>
  28. </script>
  29. <submission id="TXRPS90901" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main/list"/>
  30. </model>
  31. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  34. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  35. </xhtml:head>
  36. <xhtml:body pagewidth="540" pageheight="350" style="text-align:center; margin-left:8; margin-right:8; ">
  37. <group id="group2" scroll="auto" style="left:0px; top:15px; width:495px; height:285px; ">
  38. <button id="button7" class="btn4_letter2" style="left:430px; top:250px; width:56px; height:22px; ">
  39. <caption>저장</caption>
  40. <script type="javascript" ev:event="DOMActivate">
  41. <![CDATA[
  42. if( submit("TXRPS90901") ) {
  43. model.removeNodeset("/root/send/attach");
  44. window.opener.model.setValue("/root/temp/flag", "1");
  45. window.opener.model.refresh();
  46. window.opener.ipt_flag.dispatch("xforms-value-changed");
  47. window.close();
  48. }
  49. ]]>
  50. </script>
  51. </button>
  52. <upload id="upload1" nodeset="/root/send/attach/file" style="left:185px; top:250px; width:35px; height:15px; "/>
  53. <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; ">
  54. <col ref="file"/>
  55. </datagrid>
  56. <button id="button1" class="btn1_letter4" style="left:255px; top:250px; width:80px; height:22px; ">
  57. <caption>파일선택</caption>
  58. <script type="javascript" ev:event="DOMActivate">
  59. <![CDATA[
  60. files = window.fileDialog("open", "|", true);
  61. if(files != "") {
  62. filelist = files.split("|");
  63. for(var i = 0 ; i < filelist.length ; i++ ) {
  64. grd_attach.addRow(false);
  65. grd_attach.valueMatrix(i+1, grd_attach.colRef("file")) = filelist[i];
  66. }
  67. }
  68. model.refresh();
  69. ]]>
  70. </script>
  71. </button>
  72. <button id="button2" class="btn4_letter2" style="left:370px; top:250px; width:56px; height:22px; ">
  73. <caption>삭제</caption>
  74. <script type="javascript" ev:event="DOMActivate">
  75. <![CDATA[
  76. var row = grd_attach.row;
  77. grd_attach.deleteRow(row);
  78. ]]>
  79. </script>
  80. </button>
  81. </group>
  82. <caption id="caption6" class="tit_1" style="left:0px; top:1px; width:495px; height:13px; ">첨부파일 업로드</caption>
  83. </xhtml:body>
  84. </xhtml:html>