SMPMC02100_방문객용 재원환자조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <srchcondflag/>
  11. <srchcond/>
  12. </send>
  13. <main>
  14. <inhosppat>
  15. <inhosppatlist/>
  16. </inhosppat>
  17. <visitinpatlist>
  18. <hngnm/>
  19. <sex/>
  20. <age/>
  21. <orddeptnm/>
  22. </visitinpatlist>
  23. <paper>
  24. <hngnm/>
  25. <wardnm/>
  26. <roomnm/>
  27. <posinfonm/>
  28. <roomtel/>
  29. <instcd/>
  30. </paper>
  31. </main>
  32. <init>
  33. <P0313list>
  34. <P0313>
  35. <cdnm/>
  36. <cdid/>
  37. </P0313>
  38. </P0313list>
  39. <orddeptcd>
  40. <orddeptcdlist>
  41. <cd/>
  42. <nm/>
  43. </orddeptcdlist>
  44. </orddeptcd>
  45. </init>
  46. <hidden>
  47. <tmp>
  48. <orddeptcd/>
  49. <orddrid/>
  50. </tmp>
  51. </hidden>
  52. </root>
  53. </instance>
  54. <submission id="TRPMC02100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inhosppat"/>
  55. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  56. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  63. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  64. <script type="javascript">
  65. <![CDATA[
  66. function fInitialize() {
  67. model.setValue("/root/send/srchcondflag","1");
  68. model.resetInstanceNode("/root/main/inhosppat/inhosppatlist");
  69. // model.resetInstanceNode("/root/send/srchcondflag");
  70. model.resetInstanceNode("/root/send/srchcond");
  71. model.refresh();
  72. model.setFocus("ipt_patnm");
  73. grd_inhosppatlist.rebuildStyle();
  74. }
  75. function fSetBirth(){
  76. var rows = grd_inhosppatlist.rows;
  77. var frow = grd_inhosppatlist.fixedRows;
  78. var nrow = rows - frow;
  79. for(var i = 1; i <= nrow; i++){
  80. var oldbirthdd = grd_inhosppatlist.valueMatrix(i, 4);
  81. var gender = oldbirthdd.substr(6, 1);
  82. var regYY = eval(oldbirthdd.substr(0, 2));
  83. var regMM = eval(oldbirthdd.substr(2, 2));
  84. var regDD = eval(oldbirthdd.substr(4, 2));
  85. if(gender == '3' || gender == '4' || gender == '7' || gender == '8') {
  86. regYY += 2000;
  87. } else if(gender == '0' || gender == '9') {
  88. regYY += 1800;
  89. } else {
  90. regYY += 1900;
  91. }
  92. var newbirthdd = regYY + "년 " + regMM + "월 " + regDD + "일";
  93. grd_inhosppatlist.valueMatrix(i, 4) = newbirthdd;
  94. }
  95. model.refresh();
  96. }
  97. ]]>
  98. </script>
  99. <script type="javascript" ev:event="xforms-ready">
  100. <![CDATA[
  101. setForceOn();
  102. zbcfGetCodeList(
  103. new Array("P0149","P0313"),
  104. new Array("/root/init/P0149list","/root/init/P0313list")
  105. );
  106. //진료과코드 진료의사ID 조회
  107. setForceOn();
  108. pamGetDeptCDDrIDList();
  109. fInitialize();
  110. ]]>
  111. </script>
  112. </xhtml:head>
  113. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  114. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  115. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">방문객용 재원환자 조회</caption>
  116. </group>
  117. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  118. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  119. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  120. <caption id="caption2" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  121. <button id="btn_srch" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  122. <caption>조회</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. if (model.getValue("/root/send/srchcondflag")=="") {
  126. messageBox("검색조건을 정확히", "C001");
  127. model.setFocus("cbosearch");
  128. } else if (isNull(model.getValue("/root/send/srchcond"))) {
  129. messageBox("이름을", "C001");
  130. return;
  131. } else {
  132. if (ipt_patnm.currentText.length > 1) {
  133. if (submit("TRPMC02100") == true) {
  134. // 배경색 초기화
  135. grd_inhosppatlist.rebuildStyle();
  136. var iResultCount = getNodesetCount("/root/main/inhosppat/inhosppatlist");
  137. if (iResultCount == 0) {
  138. messageBox("조회된 결과가", "I004");
  139. // 사생활 보호 환자들을 구분하기위해 배경색 변경처리 추가
  140. } else {
  141. for (i = 0; i <= iResultCount; i++) {
  142. // 사생활 보호 요청여부 확인
  143. if (model.getValue("/root/main/inhosppat/inhosppatlist[" + i + "]/privacyyn") == 'Y') {
  144. grd_inhosppatlist.rowStyle(i, "all", "background-color") = "#FF99CC";
  145. }
  146. }
  147. }
  148. }
  149. } else {
  150. if (model.getValue("/root/send/srchcondflag")=="1" ) {
  151. messageBox("환자성명 2자 이상", "C001");
  152. } else {
  153. messageBox("피보험자 성명을 2자 이상", "C001");
  154. }
  155. model.setFocus("ipt_patnm");
  156. }
  157. }
  158. model.setFocus("ipt_patnm");
  159. // 생년월일생성.
  160. //fSetBirth();
  161. model.refresh();
  162. ]]>
  163. </script>
  164. </button>
  165. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  166. <select1 id="cbosearch" ref="/root/send/srchcondflag" class="combo_s_essential" appearance="minimal" style="left:114px; top:8px; width:150px; height:19px; ">
  167. <choices>
  168. <item>
  169. <label>환자 이름</label>
  170. <value>1</value>
  171. </item>
  172. <item>
  173. <label>피보험자 이름</label>
  174. <value>2</value>
  175. </item>
  176. </choices>
  177. <script type="javascript" ev:event="xforms-select">
  178. <![CDATA[
  179. model.setValue("/root/send/srchcond","");
  180. model.setFocus("ipt_patnm");
  181. model.refresh();
  182. ]]>
  183. </script>
  184. </select1>
  185. <input id="ipt_patnm" ref="/root/send/srchcond" class="input_s_essential" imemode="hangul" style="left:272px; top:8px; width:138px; height:19px; ">
  186. <script type="javascript" ev:event="onkeypress">
  187. <![CDATA[
  188. if (event.keyCode == "13") {
  189. setInputNodeCurText();
  190. inputEnterKey("btn_srch", "DOMActivate");
  191. model.setFocus("ipt_patnm");
  192. }
  193. ]]>
  194. </script>
  195. </input>
  196. </group>
  197. <caption id="caption20" class="tit_2" style="left:5px; top:52px; width:120px; height:13px; ">재원환자 리스트</caption>
  198. <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  199. <!-- <col ref="rrgstno" secretendposition="14" secretstartposition="8" format="999999-9999999" style="text-align:center; "/> -->
  200. <datagrid id="grd_inhosppatlist" nodeset="/root/main/inhosppat/inhosppatlist" caption="재원상태^구분^환자명^나이^주민번호^사생활보호여부^사생활보호신청자^사생활보호대상자^사생활보호내용^사생활보호비고^병동^병실^병실위치^전화번호(내선)^진료과^성별^입원일^퇴원일^환자번호" colsep="^" colwidth="63, 32, 65, 34, 109, 33, 110, 110, 100, 100, 110, 102, 66, 110, 169, 70, 120, 120, 100" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:664px; ">
  201. <col ref="inhospstatus" style="text-align:center; "/>
  202. <col ref="instcd" visibility="hidden"/>
  203. <col ref="hngnm" style="text-align:center; "/>
  204. <col ref="age" style="text-align:center; "/>
  205. <col ref="rrgstno" style="text-align:center; "/>
  206. <col ref="privacyyn" visibility="hidden"/>
  207. <col ref="privacyrequest"/>
  208. <col ref="privacytarget"/>
  209. <col ref="privacytype"/>
  210. <col ref="privacyrmk"/>
  211. <col ref="wardnm" style="text-align:center; "/>
  212. <col ref="roomnm" style="text-align:center; "/>
  213. <col ref="posinfonm" style="text-align:center; "/>
  214. <col ref="roomtel" style="text-align:center; "/>
  215. <col ref="orddeptnm"/>
  216. <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
  217. <choices>
  218. <itemset nodeset="/root/init/P0313list/P0313">
  219. <label ref="cdnm"/>
  220. <value ref="cdid"/>
  221. </itemset>
  222. </choices>
  223. </col>
  224. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  225. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  226. <col ref="pid" visibility="hidden"/>
  227. <script type="javascript" ev:event="ondblclick">
  228. <![CDATA[
  229. if(isDataCell()) {
  230. var row = grd_inhosppatlist.row;
  231. var sInstcd = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/instcd");
  232. var sHngnm = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/hngnm");
  233. var sWardnm = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/wardnm");
  234. var sRoomnm = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/roomnm");
  235. var sPosinfonm = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/posinfonm");
  236. var sRoomtel = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/roomtel");
  237. submit("TRPMC02100");
  238. model.setValue("/root/main/paper/instcd" , sInstcd);
  239. model.setValue("/root/main/paper/hngnm" , sHngnm);
  240. model.setValue("/root/main/paper/wardnm" , sWardnm);
  241. model.setValue("/root/main/paper/roomnm" , sRoomnm);
  242. model.setValue("/root/main/paper/posinfonm" , sPosinfonm);
  243. model.setValue("/root/main/paper/roomtel" , sRoomtel);
  244. exeReportPreview("RPPMC02200", "XMLSTR", "","", "true","","","","","true");
  245. }
  246. ]]>
  247. </script>
  248. </datagrid>
  249. <caption id="caption1" style="left:420px; top:19px; width:198px; height:20px; font-weight:bold; color:#0000ff; ">초기화시 F9버튼을 눌러 주세요!</caption>
  250. <shape id="rectangle1" appearance="rectangle" style="left:130px; top:51px; width:15px; height:15px; background-color:#ff99cc; "/>
  251. <caption id="caption3" style="left:147px; top:50px; width:323px; height:20px; color:#ff0000; ">사생활 보호 요청환자입니다. 안내시 주의하시기 바랍니다!!!</caption>
  252. </group>
  253. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  254. <button id="btn_init" accesskey="f9" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  255. <caption>초기화</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. fInitialize();
  259. ]]>
  260. </script>
  261. </button>
  262. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  263. </group>
  264. <button id="button2" class="btn6_letter2" visibility="visible" style="left:1139px; top:61px; width:56px; height:22px; ">
  265. <caption>출력</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. model.resetInstanceNode("/root/main/visitinpatlist");
  269. var iResultCount = getNodesetCount("/root/main/inhosppat/inhosppatlist");
  270. if (iResultCount == 0) {
  271. messageBox("조회된 결과가", "I004");
  272. } else {
  273. copyNodesetType("/root/main/visitinpatlist", "/root/main/inhosppat/inhosppatlist", "replace");
  274. exeReportPreview("RPPMC02100", "XMLSTR", "","", "true","","","","","true");
  275. }
  276. ]]>
  277. </script>
  278. </button>
  279. </xhtml:body>
  280. </xhtml:html>