SPARC02700_되의뢰유형등록.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>병원명조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. </send>
  11. <main>
  12. <reqagninfo>
  13. <reqagnkindcd>1</reqagnkindcd>
  14. <reqagnkindnm/>
  15. </reqagninfo>
  16. </main>
  17. <init>
  18. <areacd>
  19. <A0426>
  20. </A0426>
  21. </areacd>
  22. <hospgrade>
  23. <A0429>
  24. </A0429>
  25. </hospgrade>
  26. </init>
  27. </root>
  28. </instance>
  29. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  30. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  31. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. fInit();
  35. ]]>
  36. </script>
  37. <submission id="TRARH00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
  38. </model>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  44. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  45. <script type="javascript" src="../../../ast/soclworkweb/js/AWMCommon.js"/>
  46. <script type="javascript">
  47. <![CDATA[
  48. // 초기값
  49. function fInit()
  50. {
  51. // 공통코드 목록 가져오기
  52. zbcfGetCodeList(new Array("A0429"), new Array("/root/init/hospgrade") , true);
  53. // 유형코드
  54. zbcfGetKindCodeList(
  55. new Array("A0014"), //업무규칙
  56. new Array("A0426"), //코드군
  57. new Array("/root/init/areacd"), //노드
  58. true, //minimum : true TRZBC00105
  59. new Array(""), //sorting 항목
  60. new Array("")
  61. );
  62. model.removeNodeset("/root/main/list/req_hosp_list");
  63. model.refresh();
  64. }
  65. // 병원 선택
  66. function fConfirm() {
  67. if ( checkOpener() ) {
  68. opener.model.makeNode("/root/send/savedata/replinfo/reqagnkindcd");
  69. opener.model.setValue("/root/send/savedata/replinfo/reqagnkindcd", model.getValue("/root/main/reqagninfo/reqagnkindcd"));
  70. if (model.getValue("/root/main/reqagninfo/reqagnkindcd") == "9")
  71. {
  72. var reqagnkindnm = model.getValue("/root/main/reqagninfo/reqagnkindnm");
  73. }
  74. else
  75. {
  76. var reqagnkindnm = rdo_reqagnkindcd.label;
  77. }
  78. opener.model.makeNode("/root/send/savedata/replinfo/reqagnkindnm");
  79. opener.model.setValue("/root/send/savedata/replinfo/reqagnkindnm", reqagnkindnm);
  80. model.close();
  81. /*
  82. var row = grd_list.row;
  83. if( row > 0 ){
  84. if( getNodesetCount("/root/main/list/req_hosp_list") > 0 ){
  85. //opener.model.copyNode("/root/main/hospinfo/hospinfolist", grd_list.getNode( row ));
  86. model.copyNode(opener.root.main.hospinfo.hospinfolist, "/root/main/list/req_hosp_list[" + row + "]");
  87. opener.model.makeNode("/root/main/hospflag");
  88. opener.model.setValue("/root/main/hospflag", "Y");
  89. opener.model.refresh();
  90. window.close();
  91. }
  92. }
  93. */
  94. } else {
  95. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  96. }
  97. }
  98. function fSelect()
  99. {
  100. if (rdo_reqagnkindcd.value == "9")
  101. {
  102. ipt_reqagnkindnm.disabled = false;
  103. }
  104. else
  105. {
  106. ipt_reqagnkindnm.disabled = true;
  107. }
  108. }
  109. // 조회
  110. function fSearch()
  111. {
  112. // reqGetHospList
  113. // getHospList
  114. submit("TRARH00201");
  115. }
  116. function fHospPopup()
  117. {
  118. var coophospnm = setParameter("coophospnm", model.getValue("/root/send/search/coophospnm"));
  119. var status = setParameter("status", "i");
  120. modal("SMARH00100",1,1,1);
  121. fSearch();
  122. }
  123. ]]>
  124. </script>
  125. </xhtml:head>
  126. <xhtml:body pagewidth="218" pageheight="145" guideline="1,2;500,500;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  127. <group id="group3" scroll="auto" style="left:0px; top:0px; width:200px; height:120px; ">
  128. <group id="grp_tle" style="left:0px; top:0px; width:200; height:13px; ">
  129. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">되의뢰유형등록</caption>
  130. </group>
  131. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:25px; width:197px; height:90px; "/>
  132. <select1 id="rdo_reqagnkindcd" ref="/root/main/reqagninfo/reqagnkindcd" overflow="visible" appearance="full" rows="3" style="left:20px; top:35px; width:165px; height:50px; border-style:none; ">
  133. <choices>
  134. <item>
  135. <label>환자와 면담 후 결정</label>
  136. <value>1</value>
  137. </item>
  138. <item>
  139. <label>의뢰병원으로 되의뢰</label>
  140. <value>2</value>
  141. </item>
  142. <item>
  143. <label>병원지정</label>
  144. <value>9</value>
  145. </item>
  146. </choices>
  147. <script type="javascript" ev:event="xforms-select">
  148. <![CDATA[
  149. fSelect();
  150. model.refresh();
  151. ]]>
  152. </script>
  153. </select1>
  154. <input id="ipt_reqagnkindnm" ref="/root/main/reqagninfo/reqagnkindnm" class="input_default" disabled="true" navindex="63" maxlength="30" style="left:35px; top:85px; width:145px; height:19px; "/>
  155. </group>
  156. <group id="group2" scroll="auto" style="left:0px; top:120px; width:200px; height:25px; ">
  157. <button id="btn_confirm" class="btn4_letter2" style="left:140px; top:0px; width:56px; height:22px; ">
  158. <caption>확인</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. fConfirm();
  162. ]]>
  163. </script>
  164. </button>
  165. </group>
  166. </xhtml:body>
  167. </xhtml:html>