SPCRB00200_예약Remark검색.xrw 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCRB00200_예약Remark검색.xrw
  4. * Summary : 외래간호에서 관리되는 Remark 검색
  5. * Programmer : 엄윤호
  6. * Date Written : 2007.09.11
  7. * History : 2007.09.11
  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>예약 Remark 검색</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <remarklist/>
  19. </main>
  20. <send>
  21. <srch>
  22. <orddept/>
  23. <srchterm/>
  24. </srch>
  25. </send>
  26. <init>
  27. <basecdlist>
  28. <orddeptlist>
  29. <dept>
  30. <depthngnm/>
  31. <deptcd/>
  32. </dept>
  33. </orddeptlist>
  34. </basecdlist>
  35. </init>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. var instcd = getUserInfo("dutplceinstcd");
  41. var standard_yn = "orduseyn";
  42. var ord_deptflag = "D"; // 외래진료과
  43. var rslt_ref = "/root/init/basecdlist/orddeptlist";
  44. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  45. // 부모창의 파라미터 처리
  46. var search_term = opener.window.javascript.getParameter("search_term");
  47. var receive_remarkcd_path = opener.window.javascript.getParameter("receive_remarkcd_path");
  48. var receive_remarknm_path = opener.window.javascript.getParameter("receive_remarknm_path");
  49. if (search_term != "") {
  50. model.setValue("/root/send/srch/srchterm", search_term);
  51. submit("TRCRB00201");
  52. }
  53. fCheckAuth();
  54. model.removeNodeset("/root/main/remarklist");
  55. model.refresh();
  56. ]]>
  57. </script>
  58. <submission id="TRCRB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/remarklist"/>
  59. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  64. <script type="javascript">
  65. <![CDATA[
  66. //===========================//
  67. // 문자열 앞뒤 공백 없애기 //
  68. // ==========================//
  69. function trimStringUtil(pm_sStr){
  70. return pm_sStr.replace(/^\s+|\s+$/g, '');
  71. }
  72. function fCheckAuth() {
  73. // 권한체크
  74. if (!checkAuth("r")) {
  75. btn_search.disabled=true;
  76. }
  77. //if (!checkAuth("x")) {
  78. //}
  79. //if (!checkAuth("p")) {
  80. //}
  81. }
  82. function fSetOpenerData() {
  83. // 부모창에 값을 넘겨주고 창을 닫는다.
  84. var receive_remarkcd_path = opener.window.javascript.getParameter("receive_remarkcd_path");
  85. var receive_remarknm_path = opener.window.javascript.getParameter("receive_remarknm_path");
  86. var receive_rgdeptcd_path = opener.window.javascript.getParameter("receive_rgdeptcd_path");
  87. var grid = grd_remarklist;
  88. var remarkTemp = grid.valueMatrix(grid.row, grid.colRef("typenm"));
  89. var remark = trimStringUtil(remarkTemp);
  90. var rgdeptcd = grid.valueMatrix(grid.row, grid.colRef("orddeptcd"));
  91. if (receive_remarkcd_path != "") opener.model.setValue(receive_remarkcd_path, remark);
  92. if (receive_remarknm_path != "") opener.model.setValue(receive_remarknm_path, remark);
  93. if (receive_rgdeptcd_path != "") opener.model.setValue(receive_rgdeptcd_path, rgdeptcd);
  94. opener.model.refresh();
  95. window.close();
  96. }
  97. ]]>
  98. </script>
  99. </xhtml:head>
  100. <xhtml:body pagewidth="506" pageheight="335" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  101. <group id="group1" scroll="auto" style="left:0px; top:0px; width:490px; height:305px; ">
  102. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:489px; height:35px; "/>
  103. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">검색조건 :</caption>
  104. <select1 id="cmb_orddept" ref="/root/send/srch/orddept" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:130px; height:19px; ">
  105. <choices>
  106. <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
  107. <label ref="depthngnm"/>
  108. <value ref="deptcd"/>
  109. </itemset>
  110. </choices>
  111. </select1>
  112. <input id="ipt_term" ref="/root/send/srch/srchterm" class="input_s_essential" style="left:241px; top:8px; width:145px; height:19px; ">
  113. <script type="javascript" ev:event="onkeyup">
  114. <![CDATA[
  115. inputEnterKey("btn_search", "DOMActivate");
  116. ]]>
  117. </script>
  118. </input>
  119. <line id="line1" class="line_4" style="x1:403px; y1:7px; x2:403px; y2:29px; "/>
  120. <button id="btn_search" class="btn1_letter2" style="left:418px; top:7px; width:56px; height:22px; ">
  121. <caption>조회</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. // // 필수항목 체크
  125. // if (model.getValue("/root/send/srch/srchterm") == "") {
  126. // messageBox("검색어를","C002");
  127. // model.setFocus("ipt_term");
  128. // } else {
  129. submit("TRCRB00201");
  130. // }
  131. ]]>
  132. </script>
  133. </button>
  134. <caption id="caption2" class="tit_2" style="left:5px; top:40px; width:165px; height:13px; vertical-align:middle; ">예약 Remark 조회</caption>
  135. <line id="line2" class="line_1" style="x1:0px; y1:55px; x2:489px; y2:55px; "/>
  136. <datagrid id="grd_remarklist" nodeset="/root/main/remarklist" allowselection="false" caption="진료과^예약 Remark" colwidth="150, 300, 0" extendlastcol="scroll" rowheader="select" style="left:0px; top:60px; width:489px; height:243px; ">
  137. <col ref="orddeptnm"/>
  138. <col ref="typenm"/>
  139. <col ref="orddeptcd" visibility="hidden"/>
  140. <script type="javascript" ev:event="ondblclick">
  141. <![CDATA[
  142. var grid = grd_remarklist;
  143. if (grid.row > 0 && grid.isCell(event.target)) {
  144. fSetOpenerData();
  145. } else {
  146. messageBox("예약 Remark를","C002");
  147. }
  148. ]]>
  149. </script>
  150. </datagrid>
  151. </group>
  152. <group id="group2" scroll="auto" style="left:0px; top:305px; width:489px; height:27px; ">
  153. <button id="btn_confirm" class="btn4_letter2" style="left:373px; top:5px; width:56px; height:22px; ">
  154. <caption>확인</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. var grid = grd_remarklist;
  158. if (grid.row > 0) {
  159. fSetOpenerData();
  160. } else {
  161. messageBox("예약 Remark를","C002");
  162. }
  163. ]]>
  164. </script>
  165. </button>
  166. <button id="btn_cancel" class="btn4_letter2" style="left:432px; top:5px; width:56px; height:22px; ">
  167. <caption>취소</caption>
  168. <close ev:event="DOMActivate"/>
  169. </button>
  170. </group>
  171. </xhtml:body>
  172. </xhtml:html>