SPCDT00900_수술검색.xrw 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * Name : SPCDT00800_수술검색.xrw
  4. * Summary : 수술검색
  5. * Programmer : 최정환
  6. * Date Written : 2008.06.27
  7. * History :
  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. <oplist>
  20. <opnm/>
  21. <opcd/>
  22. </oplist>
  23. </list>
  24. <search>
  25. <searchcondition>opnm</searchcondition>
  26. <searchterm/>
  27. </search>
  28. </main>
  29. <send>
  30. <searchcondition/>
  31. <searchterm/>
  32. </send>
  33. <temp>
  34. <oplist>
  35. <status>I</status>
  36. <dtmnkey/>
  37. <seq/>
  38. <opcd/>
  39. <opnm/>
  40. </oplist>
  41. </temp>
  42. </root>
  43. </instance>
  44. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. // 그리드의 col을 초기화 시켜준다.
  49. model.removenodeset("/root/main/list/oplist");
  50. model.refresh();
  51. fCheckAuth();
  52. ]]>
  53. </script>
  54. <script type="javascript">
  55. <![CDATA[
  56. // 권한체크
  57. function fCheckAuth() {
  58. if (!checkAuth("r")) {
  59. btn_search.disabled=true;
  60. }
  61. }
  62. function fGetOpInfo() {
  63. var count = 0;
  64. if (grd_oplist.row < 1 || grd_oplist.selectedRows < 1) {
  65. messageBox("수술을","C002");
  66. } else {
  67. for (i=0; i < grd_oplist.selectedRows; i++) {
  68. var opcd = grd_oplist.valuematrix(grd_oplist.selectedRow(i),1)
  69. var opnm = grd_oplist.valuematrix(grd_oplist.selectedRow(i),2)
  70. count = count + 1
  71. model.makeValue("/root/temp/oplist/opcd", opcd);
  72. model.makeValue("/root/temp/oplist/opnm", opnm); // 임시노드에 선택된 항목을 넣어준다.
  73. model.duplicate(opener.root.main, root.temp.oplist); // 임시노드에 있는 항목을 메인(부모)창에 복사해준다.
  74. model.removenodeset("/root/temp/oplist/opcd"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  75. model.removenodeset("/root/temp/oplist/opnm"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
  76. }
  77. opener.model.refresh();
  78. window.close();
  79. }
  80. }
  81. ]]>
  82. </script>
  83. <submission id="TRCDT00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  84. </model>
  85. </xhtml:head>
  86. <xhtml:body pagewidth="534" pageheight="350" style="border-color:#c7a3cf; ">
  87. <group id="group5" scroll="auto" style="left:0px; top:0px; width:534px; height:335px; ">
  88. <group id="group2" style="left:0px; top:0px; width:517px; height:35px; vertical-align:top; ">
  89. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:517px; height:35px; "/>
  90. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  91. <select1 id="combo1" ref="/root/main/search/searchcondition" class="combo_search" appearance="minimal" style="left:101px; top:8px; width:80px; height:19px; ">
  92. <choices>
  93. <item>
  94. <label>수술코드</label>
  95. <value>opcd</value>
  96. </item>
  97. <item>
  98. <label>수술이름</label>
  99. <value>opnm</value>
  100. </item>
  101. </choices>
  102. </select1>
  103. <input id="input3" ref="/root/main/search/searchterm" class="input_search" style="left:184px; top:8px; width:100px; height:19px; ">
  104. <script type="javascript" ev:event="onkeyup">
  105. <![CDATA[
  106. inputEnterKey("btn_search", "DOMActivate");
  107. ]]>
  108. </script>
  109. </input>
  110. <line id="line13" class="line_4" style="x1:429px; y1:7px; x2:429px; y2:29px; "/>
  111. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  112. <caption>조회</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. var searchterm = model.getValue("/root/main/search/searchterm");
  116. var searchcondition = model.getValue("/root/main/search/searchcondition");
  117. model.setValue("/root/send/searchterm", "%"+searchterm+"%");
  118. model.setValue("/root/send/searchcondition", searchcondition);
  119. submit("TRCDT00901");
  120. ]]>
  121. </script>
  122. </button>
  123. </group>
  124. <caption id="caption9" class="tit_2" style="left:0px; top:40px; width:180px; height:14px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">수술 검색</caption>
  125. <line id="line12" class="line_1" style="x1:0px; y1:55px; x2:517px; y2:55px; "/>
  126. <datagrid id="grd_oplist" nodeset="/root/main/list/oplist" class="text_left" caption="수술코드^수술명" colwidth="100,390" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" tooltip="true" style="left:0px; top:60px; width:517px; height:255px; ">
  127. <col ref="opcd"/>
  128. <col ref="opnm"/>
  129. <script type="javascript" ev:event="ondblclick">
  130. <![CDATA[
  131. if( grd_oplist.isCell(event.target) && grd_oplist.row >= grd_oplist.fixedRows ){
  132. fGetOpInfo();
  133. }
  134. ]]>
  135. </script>
  136. </datagrid>
  137. </group>
  138. <group id="group1" scroll="auto" style="left:0px; top:315px; width:517px; height:27px; ">
  139. <button id="btn_cnfm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  140. <caption>확인</caption>
  141. <script type="javascript" ev:event="onclick">
  142. <![CDATA[
  143. fGetOpInfo();
  144. ]]>
  145. </script>
  146. </button>
  147. <button id="btn_cncl" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  148. <caption>취소</caption>
  149. <close ev:event="DOMActivate"/>
  150. </button>
  151. </group>
  152. </xhtml:body>
  153. </xhtml:html>