SPMNC00900_공통진단수진이력조회.xrw 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. <cond>
  10. <pid/>
  11. <orddd/>
  12. <stat/>
  13. <orddeptcd/>
  14. <orddrid/>
  15. </cond>
  16. <main>
  17. <otptlists>
  18. <otptlist>
  19. <gubn/>
  20. <orddd/>
  21. <ordtm/>
  22. <orddeptnm/>
  23. <orddrnm/>
  24. <genrflagcd/>
  25. <diagcd/>
  26. <diagnm/>
  27. <pid/>
  28. <cretno/>
  29. <org_orddd/>
  30. <org_indd/>
  31. </otptlist>
  32. </otptlists>
  33. </main>
  34. <send/>
  35. <hidden>
  36. <temp/>
  37. </hidden>
  38. </root>
  39. </instance>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. fInit();
  43. ]]>
  44. </script>
  45. <submission id="TRMNC00900" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/otptlists"/>
  46. </model>
  47. <script type="javascript">
  48. <![CDATA[
  49. function fInit(){
  50. var sParam = opener.javascript.getParameter("SPMNC00900_searchcond");
  51. opener.javascript.setParameter("SPMNC00900_searchcond","");
  52. if(sParam == null || sParam == "" || sParam == "undefined"){
  53. model.alert("진단명을 생성할 환자 정보가 존재하지 않습니다.");
  54. window.close();
  55. }else{
  56. //===============================
  57. //넘어온 파라미터 정보
  58. //var param = sPid+"▦"+sOrddd;
  59. //===============================
  60. var sParamArr = sParam.split("▦");
  61. model.setValue("/root/cond/pid" ,sParamArr[0]);
  62. model.setValue("/root/cond/orddd" ,sParamArr[1]);
  63. model.setValue("/root/cond/orddeptcd" ,sParamArr[2]);
  64. model.setValue("/root/cond/orddrid" ,sParamArr[3]);
  65. model.refresh();
  66. fGetOtptInptDiagList();
  67. }
  68. }
  69. //해당 외래입원 수진이력 조회
  70. function fGetOtptInptDiagList(){
  71. model.removenode("/root/send");
  72. model.makeValue("/root/send/pid" , model.getValue("/root/cond/pid" ));
  73. model.makeValue("/root/send/orddd" , model.getValue("/root/cond/orddd"));
  74. model.makeValue("/root/send/orddeptcd" , model.getValue("/root/cond/orddeptcd"));
  75. model.makeValue("/root/send/orddrid" , model.getValue("/root/cond/orddrid"));
  76. model.makeValue("/root/send/stat" , model.getValue("/root/cond/stat"));
  77. if(submit("TRMNC00900")){
  78. if(getNodesetCount("/root/main/otptlists/otptlist") < 1){
  79. model.alert("선택할 수진이력이 존재하지 않습니다.");
  80. return;
  81. }
  82. }else{
  83. model.alert("수진이력 조회시 서버 오류가 발생 되었습니다.");
  84. return;
  85. }
  86. }
  87. //선택 버튼을 눌렀을 경우 이벤트
  88. function fOnClickOkBtn(){
  89. var iGridCnt = getNodesetCnt(model, "/root/main/otptlists/otptlist");
  90. if(iGridCnt < 1){
  91. model.alert("선택할 수진이력이 존재하지 않습니다.");
  92. return;
  93. }
  94. var iSelectCnt = 0;
  95. var iSelectPos = 0;
  96. for(var i = 1; i <= iGridCnt; i++){
  97. if(grd_otptlist.isSelected(i) == true) {
  98. iSelectCnt ++;
  99. iSelectPos = i;
  100. }
  101. }
  102. if(iSelectCnt > 1){
  103. model.alert("하나의 수진이력만 선택하셔야 합니다.");
  104. return;
  105. }else{
  106. var sGridXpath = "/root/main/otptlists/otptlist[";
  107. var sPid = model.getValue(sGridXpath+iSelectPos+"]/pid");
  108. var sOrddd = model.getValue(sGridXpath+iSelectPos+"]/org_orddd");
  109. var sIndd = model.getValue(sGridXpath+iSelectPos+"]/org_indd");
  110. var sCretno = model.getValue(sGridXpath+iSelectPos+"]/cretno");
  111. var sGenrflagcd = model.getValue(sGridXpath+iSelectPos+"]/genrflagcd");
  112. var sOrddeptcd = model.getValue(sGridXpath+iSelectPos+"]/orddeptcd"); //파라미터 추가_20100118_SMY
  113. //var param = sPid+"▦"+sOrddd+"▦"+sIndd+"▦"+sCretno+"▦"+sGenrflagcd;
  114. var param = sPid+"▦"+sOrddd+"▦"+sIndd+"▦"+sCretno+"▦"+sGenrflagcd+"▦"+sOrddeptcd;
  115. opener.javascript.setParameter("preDiagResult", param);
  116. window.close();
  117. }
  118. }
  119. ]]>
  120. </script>
  121. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  123. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  126. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  127. </xhtml:head>
  128. <xhtml:body pagewidth="750" pageheight="500">
  129. <caption id="caption31" class="cell_1" style="left:4px; top:20px; width:84px; height:19px; font-family:돋움; text-align:center; ">등록번호</caption>
  130. <button id="btn_closenewpat" class="btn2_letter3" style="left:686px; top:19px; width:53px; height:19px; ">
  131. <caption>닫 기</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. window.close();
  135. ]]>
  136. </script>
  137. </button>
  138. <line id="line1" class="line_1" style="x1:4px; y1:40px; x2:739px; y2:40px; "/>
  139. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">수진이력</caption>
  140. <input id="input1" ref="/root/cond/pid" disabled="true" style="left:89px; top:20px; width:106px; height:19px; "/>
  141. <button id="button1" class="btn2_letter3" style="left:630px; top:19px; width:53px; height:19px; ">
  142. <caption>선 택</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. fOnClickOkBtn();
  146. ]]>
  147. </script>
  148. </button>
  149. <datagrid id="grd_otptlist" nodeset="/root/main/otptlists/otptlist" class="datagrid2" autoresize="true" caption="구분^진료일자^진료시간^진료과^진료의^진단&#xA;구분^진단코드^진단명^pid^cretno^org_orddd^org_indd" colsep="^" colwidth="45, 82, 57, 104, 68, 48, 99, 204, 53, 55, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:4px; top:45px; width:736px; height:440px; vertical-align:middle; ">
  150. <col disabled="true" ref="gubn" type="combo" format="yyyy-mm-dd" style="text-align:center; ">
  151. <choices>
  152. <item>
  153. <label>외래</label>
  154. <value>O</value>
  155. </item>
  156. <item>
  157. <label>입원</label>
  158. <value>I</value>
  159. </item>
  160. </choices>
  161. </col>
  162. <col disabled="true" ref="orddd"/>
  163. <col disabled="true" ref="ordtm" type="output" format="hh:nn" style="text-align:center; "/>
  164. <col disabled="true" ref="orddeptnm" type="output" style="text-align:center; "/>
  165. <col disabled="true" ref="orddrnm" type="output" style="text-align:center; "/>
  166. <col disabled="true" ref="genrflagcd" type="combo">
  167. <choices>
  168. <item>
  169. <label>외래</label>
  170. <value>O</value>
  171. </item>
  172. <item>
  173. <label>입원</label>
  174. <value>I</value>
  175. </item>
  176. <item>
  177. <label>응급</label>
  178. <value>E</value>
  179. </item>
  180. </choices>
  181. </col>
  182. <col disabled="true" ref="diagcd"/>
  183. <col disabled="false" ref="diagnm" style="text-align:left; "/>
  184. <col ref="pid" visibility="hidden"/>
  185. <col ref="cretno" visibility="hidden"/>
  186. <col ref="org_orddd" visibility="hidden"/>
  187. <col ref="org_indd" visibility="hidden"/>
  188. <script type="javascript" ev:event="ondblclick">
  189. <![CDATA[
  190. fOnClickOkBtn();
  191. ]]>
  192. </script>
  193. </datagrid>
  194. <select id="checkbox1" ref="/root/cond/stat" overflow="visible" appearance="full" style="left:200px; top:19px; width:100px; height:20px; border-style:none; ">
  195. <choices>
  196. <item>
  197. <label>가접수포함</label>
  198. <value>Y</value>
  199. </item>
  200. </choices>
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. fGetOtptInptDiagList();
  204. ]]>
  205. </script>
  206. </select>
  207. <caption id="caption1" style="left:305px; top:20px; width:270px; height:20px; ">※ 주진단이 있는 수진이력만 조회 됩니다.</caption>
  208. </xhtml:body>
  209. </xhtml:html>