SPCHT00500_건진패키지검색.xrw 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCHT00500_건진패키지검색
  4. * Summary : 건진패키지검색
  5. * Programmer : 최정환
  6. * Date Written : 2007.08.03
  7. * History : 2007.08.03
  8. * Remark :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>건진패키지 검색</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list>
  19. <pkglist>
  20. <pkgnm/>
  21. <pkgcd/>
  22. </pkglist>
  23. </list>
  24. <search>
  25. <searchcondition>pkgnm</searchcondition>
  26. <searchterm/>
  27. </search>
  28. </main>
  29. <send>
  30. <searchcondition/>
  31. <searchterm/>
  32. </send>
  33. </root>
  34. </instance>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  37. <submission id="TRCHT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. // 그리드의 col을 초기화 시켜준다.
  41. model.removenodeset("/root/main/list/pkglist");
  42. model.refresh();
  43. fCheckAuth();
  44. ]]>
  45. </script>
  46. <script type="javascript">
  47. <![CDATA[
  48. // 권한체크
  49. function fCheckAuth() {
  50. if (!checkAuth("r")) {
  51. btn_search.disabled=true;
  52. }
  53. }
  54. function fGetpkgInfo() {
  55. var receive_pkgnm_path = opener.window.javascript.getParameter("receive_pkgnm_path");
  56. var receive_pkgcd_path = opener.window.javascript.getParameter("receive_pkgcd_path");
  57. var row = grd_pkglist.row;
  58. var pkgnm = grd_pkglist.valueMatrix(row, grd_pkglist.colRef("pkgnm"));
  59. var pkgcd = grd_pkglist.valueMatrix(row, grd_pkglist.colRef("pkgcd"));
  60. if (grd_pkglist.row > 0){
  61. if (receive_pkgnm_path != "") { opener.model.setValue(receive_pkgnm_path, pkgnm); }
  62. if (receive_pkgcd_path != "") { opener.model.setValue(receive_pkgcd_path, pkgcd); }
  63. opener.model.refresh();
  64. window.close();
  65. } else {
  66. messageBox("조회하신 후 목록을 ","C002");
  67. model.SetFocus("grd_pkglist");
  68. }
  69. }
  70. ]]>
  71. </script>
  72. </model>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="534" pageheight="350" style="border-color:#c7a3cf; ">
  75. <group id="group5" scroll="auto" style="left:0px; top:0px; width:534px; height:335px; ">
  76. <group id="group2" style="left:0px; top:0px; width:517px; height:35px; vertical-align:top; ">
  77. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  78. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  79. <select1 id="combo1" ref="/root/main/search/searchcondition" class="combo_search" appearance="minimal" style="left:101px; top:8px; width:120px; height:19px; ">
  80. <choices>
  81. <item>
  82. <label>패키지코드</label>
  83. <value>pkgcd</value>
  84. </item>
  85. <item>
  86. <label>패키지이름</label>
  87. <value>pkgnm</value>
  88. </item>
  89. </choices>
  90. </select1>
  91. <input id="input3" ref="/root/main/search/searchterm" class="input_search" style="left:224px; top:8px; width:120px; height:19px; ">
  92. <script type="javascript" ev:event="onkeyup">
  93. <![CDATA[
  94. inputEnterKey("btn_search", "DOMActivate");
  95. ]]>
  96. </script>
  97. </input>
  98. <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  99. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  100. <caption>조회</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. var searchterm = model.getValue("/root/main/search/searchterm");
  104. var searchcondition = model.getValue("/root/main/search/searchcondition");
  105. model.setValue("/root/send/searchterm", "%"+searchterm+"%");
  106. model.setValue("/root/send/searchcondition", searchcondition);
  107. submit("TRCHT00501");
  108. ]]>
  109. </script>
  110. </button>
  111. </group>
  112. <caption id="caption9" class="tit_2" style="left:0px; top:40px; width:170px; height:14px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">건진패키지 검색</caption>
  113. <line id="line12" class="line_1" style="x1:0px; y1:55px; x2:517px; y2:55px; "/>
  114. <datagrid id="grd_pkglist" nodeset="/root/main/list/pkglist" caption="패키지코드^패키지명" colwidth="100,390" dataheight="25" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" tooltip="true" style="left:0px; top:60px; width:517px; height:243px; ">
  115. <col ref="pkgcd"/>
  116. <col ref="pkgnm"/>
  117. <script type="javascript" ev:event="ondblclick">
  118. <![CDATA[
  119. if( grd_pkglist.isCell(event.target) && grd_pkglist.row >= grd_pkglist.fixedRows ){
  120. fGetpkgInfo();
  121. }
  122. ]]>
  123. </script>
  124. </datagrid>
  125. </group>
  126. <group id="group1" scroll="auto" style="left:0px; top:305px; width:517px; height:27px; ">
  127. <button id="button2" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  128. <caption>확인</caption>
  129. <script type="javascript" ev:event="onclick">
  130. <![CDATA[
  131. fGetpkgInfo();
  132. ]]>
  133. </script>
  134. </button>
  135. <button id="button3" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  136. <caption>취소</caption>
  137. <close ev:event="DOMActivate"/>
  138. </button>
  139. </group>
  140. </xhtml:body>
  141. </xhtml:html>