SPARH00600_HIE과팝업.xrw 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <deptinfo/>
  11. </main>
  12. <send>
  13. <searchdept>
  14. <deptnm/>
  15. </searchdept>
  16. </send>
  17. <init/>
  18. <hidden/>
  19. </root>
  20. </instance>
  21. <submission id="TRARH00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchdept" resultref="/root/main/deptinfo"/>
  22. <script type="javascript" ev:event="xforms-ready">
  23. <![CDATA[
  24. fInit();
  25. ]]>
  26. </script>
  27. </model>
  28. </xhtml:head>
  29. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  30. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  31. <script type="javascript">
  32. <![CDATA[
  33. function fInit(){
  34. fSearch();
  35. model.refresh();
  36. }
  37. function fSearch(){
  38. submit("TRARH00605");
  39. }
  40. function fSetReturn(){
  41. var nodelist = instance1.selectNodes("/root/main/deptinfo/deptlist[chk='Y']");
  42. var rCVS = getNodeListCSV(nodelist);
  43. opener.javascript.setParameter("SPARH00600_PARAM", rCVS);
  44. }
  45. ]]>
  46. </script>
  47. <xhtml:body pagewidth="325px" pageheight="450px" style="margin:8; ">
  48. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:205px; height:14px; ">HIE 과 팝업</caption>
  49. <group id="group5" style="left:0px; top:25px; width:320px; height:35px; vertical-align:top; ">
  50. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:320px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  51. <line id="line2" class="line_4" style="x1:230px; y1:9px; x2:230px; y2:31px; "/>
  52. <button id="btn_search" class="btn1_letter2" navindex="33" style="left:240px; top:8px; width:56px; height:22px; ">
  53. <caption>조회</caption>
  54. <script type="javascript" ev:event="DOMActivate">
  55. <![CDATA[
  56. fSearch();
  57. model.refresh();
  58. ]]>
  59. </script>
  60. </button>
  61. <input id="input2" ref="/root/send/searchdept/deptnm" navindex="32" style="left:90px; top:10px; width:125px; height:19px; ">
  62. <script type="javascript" ev:event="onkeydown">
  63. <![CDATA[
  64. if(event.keyCode==13)
  65. {
  66. inputEnterKey("btn_search", "DOMActivate");
  67. }
  68. ]]>
  69. </script>
  70. </input>
  71. <caption id="caption7" class="search_name" style="left:8px; top:10px; width:94px; height:17px; ">과 명</caption>
  72. </group>
  73. <datagrid id="grd_deptlist" nodeset="/root/main/deptinfo/deptlist" caption="^코드^이름" colsep="^" colwidth="24, 73, 198" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:320px; height:340px; ">
  74. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  75. <col ref="commoncode"/>
  76. <col ref="commoncodename"/>
  77. <script type="javascript" ev:event="ondblclick">
  78. <![CDATA[
  79. if(grd_deptlist.row<1) return;
  80. var row = grd_deptlist.row;
  81. model.setValue("/root/main/deptinfo/deptlist["+(row)+"]/chk","Y");
  82. fSetReturn();
  83. //window.close();
  84. ]]>
  85. </script>
  86. </datagrid>
  87. <button id="button1" class="btn4_letter2" style="left:95px; top:415px; width:56px; height:22px; ">
  88. <caption>선택</caption>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. fSetReturn();
  92. window.close();
  93. ]]>
  94. </script>
  95. </button>
  96. <button id="button2" class="btn4_letter2" style="left:160px; top:415px; width:56px; height:22px; ">
  97. <caption>닫기</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. window.close();
  101. ]]>
  102. </script>
  103. </button>
  104. </xhtml:body>
  105. </xhtml:html>