SMPIC90400_부서별의사ID조회.xrw 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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>부서 및 의사조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <usndept>
  11. <usndeptlist/>
  12. </usndept>
  13. </main>
  14. <send>
  15. <deptref>
  16. <instcd/>
  17. <actdeptcd/>
  18. <actdeptnm/>
  19. <actprcpdrid/>
  20. <actprcpdrnm/>
  21. <usndeptch/>
  22. <usndeptip/>
  23. </deptref>
  24. </send>
  25. <init>
  26. <usndept>
  27. <label>부서코드</label>
  28. <value>actdeptcd</value>
  29. <label>부서명</label>
  30. <value>actdeptnm</value>
  31. <label>의사코드</label>
  32. <value>actprcpdrid</value>
  33. <label>의사명</label>
  34. <value>actprcpdrnm</value>
  35. </usndept>
  36. </init>
  37. <temp/>
  38. </root>
  39. </instance>
  40. <submission id="TRPIC90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptref" resultref="/root/main/usndept"/>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. model.setValue(rdo_usndept.attribute("ref"), "actdeptcd");
  44. model.removeNodeset("/root/main/usndept/usndeptlist");
  45. model.copyNode("root/main","/root/temp/validation");
  46. // model.setValue("/root/send/deptref/instcd",model.getValue("/root/temp/defalut/instcd"));
  47. model.refresh();
  48. ]]>
  49. </script>
  50. <submission id="TRPIC90404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptref" resultref="/root/main/usndept"/>
  51. </model>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript">
  55. <![CDATA[
  56. var vflag = null;
  57. ]]>
  58. </script>
  59. </xhtml:head>
  60. <xhtml:body pagewidth="450" pageheight="700">
  61. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:12px; top:30px; width:425px; height:55px; "/>
  62. <caption id="caption6" class="tit_1" style="left:0px; top:5px; width:143px; height:15px; ">부서코드 및 의사ID 조회</caption>
  63. <caption id="caption1" class="search_name" style="left:25px; top:60px; width:105px; height:17px; ">조회조건 :</caption>
  64. <select1 id="rdo_usndept" ref="/root/send/deptref/usndeptch" class="radio_search" appearance="full" cellspacing="10" cols="4" style="left:25px; top:35px; width:305px; height:25px; ">
  65. <choices>
  66. <item>
  67. <label>부서코드</label>
  68. <value>actdeptcd</value>
  69. </item>
  70. <item>
  71. <label>부서명</label>
  72. <value>actdeptnm</value>
  73. </item>
  74. <item>
  75. <label>의사ID</label>
  76. <value>actprcpdrid</value>
  77. </item>
  78. <item>
  79. <label>의사명</label>
  80. <value>actprcpdrnm</value>
  81. </item>
  82. </choices>
  83. <script type="javascript" ev:event="xforms-select">
  84. <![CDATA[
  85. if(rdo_usndept.value == "actdeptcd") {
  86. ipt_usndept.attribute("imemode") = "disabled";
  87. }
  88. else if (rdo_usndept.value == "actdeptnm") {
  89. ipt_usndept.attribute("imemode") = "hangul";
  90. }
  91. else if (rdo_usndept.value == "actprcpdrnm"){
  92. ipt_usndept.attribute("imemode") = "hangul";
  93. }else{
  94. ipt_usndept.attribute("imemode") = "disabled";
  95. }
  96. model.setValue("/root/send/deptref/usndeptip" ,"");
  97. model.setFocus("ipt_usndept");
  98. model.refresh();
  99. ]]>
  100. </script>
  101. <hint>
  102. <![CDATA[원하는 조건을 선택 후 데이터를 입력해 주세요]]>
  103. </hint>
  104. </select1>
  105. <input id="ipt_usndept" ref="/root/send/deptref/usndeptip" style="left:118px; top:60px; width:147px; height:19px; ">
  106. <script type="javascript" ev:event="onkeyup">
  107. <![CDATA[
  108. inputEnterKey("btn_usndeptsch", "DOMActivate");
  109. ]]>
  110. </script>
  111. </input>
  112. <line id="line1" class="line_4" style="x1:362px; y1:37px; x2:362px; y2:77px; "/>
  113. <button id="btn_usndeptsch" class="btn1_letter2" style="left:372px; top:44px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  114. <caption>조회</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. if(rdo_usndept.value == "actdeptcd") {
  118. model.setValue("/root/send/deptref/actdeptcd" ,ipt_usndept.value);
  119. model.setValue("/root/send/deptref/actdeptnm" , "");
  120. model.setValue("/root/send/deptref/actprcpdrid" , "");
  121. model.setValue("/root/send/deptref/actprcpdrnm" , "");
  122. }else if(rdo_usndept.value == "actdeptnm"){
  123. model.setValue("/root/send/deptref/actdeptnm",ipt_usndept.value);
  124. model.setValue("/root/send/deptref/actdeptcd" , "");
  125. model.setValue("/root/send/deptref/actprcpdrid" , "");
  126. model.setValue("/root/send/deptref/actprcpdrnm" , "");
  127. }else if(rdo_usndept.value == "actprcpdrid"){
  128. model.setValue("/root/send/deptref/actprcpdrid" ,ipt_usndept.value);
  129. model.setValue("/root/send/deptref/actdeptcd" , "");
  130. model.setValue("/root/send/deptref/actdeptnm" , "");
  131. model.setValue("/root/send/deptref/actprcpdrnm" , "");
  132. }else{
  133. model.setValue("/root/send/deptref/actprcpdrnm",ipt_usndept.value);
  134. model.setValue("/root/send/deptref/actdeptcd" , "");
  135. model.setValue("/root/send/deptref/actdeptnm" , "");
  136. model.setValue("/root/send/deptref/actprcpdrid" , "");
  137. }
  138. model.setValue("/root/send/deptref/usndeptch", rdo_usndept.value);
  139. model.setValue("/root/send/deptref/instcd", getUserInfo("dutplceinstcd"));
  140. //model.refresh();
  141. submit("TRPIC90401");
  142. ]]>
  143. </script>
  144. </button>
  145. <caption id="caption2" class="tit_2" style="left:5px; top:95px; width:147px; height:13px; ">행위재료 검색</caption>
  146. <line id="line2" class="line_1" style="x1:7px; y1:110px; x2:442px; y2:110px; "/>
  147. <datagrid id="grd_usndept" nodeset="/root/main/usndept/usndeptlist" caption="부서코드^부서명^의사코드^의사명^기관코드" colsep="^" colwidth="93, 110, 101, 81, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:11px; top:118px; width:428px; height:512px; ">
  148. <col ref="actdeptcd" style="text-align:center; "/>
  149. <col ref="actdeptnm" style="text-align:center; "/>
  150. <col ref="actprcpdrid" style="text-align:center; "/>
  151. <col ref="actprcpdrnm" style="text-align:center; "/>
  152. <col ref="instcd" visibility="hidden"/>
  153. <script type="javascript" ev:event="ondblclick">
  154. <![CDATA[
  155. //if( grd_usndept.isCell(event.target) && grd_usndept.row > grd_usndept.fixedRows )
  156. //{
  157. btn_access.dispatch("DOMActivate");
  158. //}
  159. ]]>
  160. </script>
  161. <script type="javascript" ev:event="onaftersort">
  162. <![CDATA[
  163. grd_usndept.gridToInstance();
  164. ]]>
  165. </script>
  166. </datagrid>
  167. <button id="btn_access" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:320px; top:640px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  168. <caption>확인</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. opener.javascript.setParameter("actdeptcd",model.getValue("/root/main/usndept/usndeptlist["+grd_usndept.row+"]/actdeptcd"));//common.js popup설정(["+grd_usndept.row+"] => 선택한 그리드 행
  172. opener.javascript.setParameter("actdeptnm",model.getValue("/root/main/usndept/usndeptlist["+grd_usndept.row+"]/actdeptnm"));
  173. opener.javascript.setParameter("actprcpdrid",model.getValue("/root/main/usndept/usndeptlist["+grd_usndept.row+"]/actprcpdrid"));
  174. opener.javascript.setParameter("actprcpdrnm",model.getValue("/root/main/usndept/usndeptlist["+grd_usndept.row+"]/actprcpdrnm"));
  175. model.close();
  176. ]]>
  177. </script>
  178. <hint>
  179. <![CDATA[리스트를 선택 후 클릭해 주세요]]>
  180. </hint>
  181. </button>
  182. <button id="btn_cancel" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:385px; top:640px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  183. <caption>취소</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. window.close();
  187. ]]>
  188. </script>
  189. <hint>
  190. <![CDATA[popup창을 닫습니다]]>
  191. </hint>
  192. </button>
  193. </xhtml:body>
  194. </xhtml:html>