SPMMI00100_대상자조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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. <main>
  10. <cond>
  11. <subdeptcd/>
  12. </cond>
  13. <pidlist1>
  14. <mainpidlist>
  15. <pid/>
  16. <patnm/>
  17. <sna/>
  18. <flag/>
  19. <wardcd/>
  20. <roomcd/>
  21. <juminno/>
  22. <emrinpat/>
  23. </mainpidlist>
  24. </pidlist1>
  25. </main>
  26. <send>
  27. <userid/>
  28. <flag/>
  29. <dailyyn/>
  30. </send>
  31. <init>
  32. <cmb_ward>
  33. <initexecward>
  34. <execwardcdid/>
  35. <execwardcdnm/>
  36. </initexecward>
  37. </cmb_ward>
  38. <cmb_orddept>
  39. <initexecorddept>
  40. <execorddeptcdid/>
  41. <execorddeptcdnm/>
  42. </initexecorddept>
  43. </cmb_orddept>
  44. <cmb_room>
  45. <initexecroom>
  46. <execroomcdid/>
  47. <execroomcdnm/>
  48. </initexecroom>
  49. </cmb_room>
  50. </init>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. model.makeValue("/root/send/flag", "0");
  56. submit("TRMMI00131"); // 진료과코드
  57. cmb_deptlist.value = getUserInfo("dutplcecd");
  58. cmb_deptlist.dispatch("xforms-value-changed");
  59. cmb_medispcllist.value = getUserInfo("userid");
  60. submit("TRMMI00132"); // 병동코드 조회
  61. fGetPatList() ;
  62. ]]>
  63. </script>
  64. <submission id="TRAER00819" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/pidlist1"/>
  65. <submission id="TRAER00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardcd" replace="instance" resultref="/root/init/cmb_room"/>
  66. <submission id="TRAER00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptcd" replace="instance" resultref="/root/init/cmb_orddr"/>
  67. <submission id="TRMMI00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_orddept"/>
  68. <submission id="TRMMI00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_ward"/>
  69. </model>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  73. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript">
  76. <![CDATA[
  77. function fGetPatList() {
  78. var deptcd = model.getValue("/root/send/deptcd");
  79. var drid = model.getValue("/root/send/drid");
  80. var wardcd = model.getValue("/root/send/wardcd");
  81. var roomcd = model.getValue("/root/send/roomcd");
  82. if ( deptcd == "" && drid == "" && wardcd == "" && roomcd == "" ) {
  83. messageBox("조회 항목[진료과,주치의,병동,병실]을 선택하세요.","I999");
  84. return;
  85. }
  86. submit("TRAER00819");
  87. var srchLength1 = model.instances(0).selectNodes( "/root/main/pidlist1/mainpidlist" ).length;
  88. if ( srchLength1 > 0 ) {
  89. // Grid Background Color Clear
  90. for ( var i = 1; i <= srchLength1; i++ ) {
  91. grd_pidlist.rowstyle( i , "data" , "background-color" ) = "#ffffff";
  92. }
  93. for ( var i = 1; i <= srchLength1; i++ ) {
  94. if ( model.getValue("/root/main/pidlist1/mainpidlist[" + i + "]/emrinpat") == "N3") {
  95. grd_pidlist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";
  96. }
  97. }
  98. }
  99. }
  100. function fSendPidList(grdobj){
  101. // alert("1");
  102. if ( grdobj.row >= grdobj.fixedRows ) {
  103. var row = grdobj.row;
  104. var pid = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/pid");
  105. var patnm = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/patnm");
  106. var juminno = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/juminno");
  107. //var warcd = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/wardcd");
  108. window.opener.model.setValue("/root/send/data/singdata/srchpid", pid);
  109. window.opener.model.makeValue("/root/main/patinfo/patinfolist/hngnm", patnm);
  110. window.opener.model.makeValue("/root/main/patinfo/patinfolist/rrgstno1", juminno);
  111. //if ( warcd != "" )
  112. // window.opener.model.setValue("/root/send/data/singdata/wardcd", wardcd);
  113. window.opener.model.refresh();
  114. window.opener.javaScript.btn_srch.dispatch("DOMActivate");
  115. // searchChart("/root/hidden/temp")
  116. }
  117. }
  118. /* @group : 결과조회
  119. * @ver : 2007.06.14
  120. * @by : 장준원
  121. * @-----------------------------------
  122. * @type : function
  123. * @access : public
  124. * @desc : 주치의정보 조회를 위한 Function
  125. */
  126. function fChngSrchDrId() {
  127. if ( model.getValue("/root/send/deptcd") == "" ) return;
  128. model.resetInstanceNode("/root/init/cmb_orddr/initexecorddr");
  129. submit("TRAER00804");
  130. }
  131. /* @group : 결과조회
  132. * @ver : 2007.06.14
  133. * @by : 장준원
  134. * @-----------------------------------
  135. * @type : function
  136. * @access : public
  137. * @desc : 병실정보 조회를 위한 Function
  138. */
  139. function fChngSrchRoomCd() {
  140. if ( model.getValue("/root/send/wardcd") == "" ) return;
  141. model.resetInstanceNode("/root/init/cmb_room/initexecroom");
  142. submit("TRAER00802");
  143. }
  144. /**
  145. * @desc : NodeSet의 최종길이를 구한다.
  146. * @param : path : xpath
  147. * @return : NodeSet 최종 길이값
  148. * @authur : 이상현 200?. ?. ??
  149. * @---------------------------------------------------
  150. */
  151. ]]>
  152. </script>
  153. </xhtml:head>
  154. <xhtml:body overflow="hidden" pagewidth="460" pageheight="650" guideline="1,409;1,455;">
  155. <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:7px; top:0px; width:448px; height:122px; background-color:#fffbf2; border-color:#ffd799; "/>
  156. <button id="btn_sea" class="btn1_letter2" style="left:390px; top:50px; width:56px; height:22px; ">
  157. <caption>조회</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. model.makeValue("/root/send/flag", cmb_flag.value);
  161. fGetPatList();
  162. window.modelesstopmost = true;
  163. ]]>
  164. </script>
  165. </button>
  166. <datagrid id="grd_pidlist" nodeset="/root/main/pidlist1/mainpidlist" autoresize="true" caption="병실^등록번호^이름^S/A^구분^주민번호^대상자" colsep="^" colwidth="75, 85, 90, 55, 50, 70, 0" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" style="left:6px; top:130px; width:449px; height:510px; ">
  167. <col ref="roomcd" style="text-align:left; "/>
  168. <col ref="pid" style="text-align:center; "/>
  169. <col ref="patnm" style="font-weight:bold; "/>
  170. <col ref="sna" style="text-align:center; "/>
  171. <col ref="flag" style="text-align:center; "/>
  172. <col ref="juminno" style="text-align:center; "/>
  173. <col ref="emrinpat" visibility="hidden"/>
  174. <script type="javascript" ev:event="onaftersort">
  175. <![CDATA[
  176. grd_pidlist.gridToInstance();
  177. ]]>
  178. </script>
  179. <script type="javascript" ev:event="ondblclick">
  180. <![CDATA[
  181. if ( (grd_pidlist.row >= grd_pidlist.fixedRows) && (grd_pidlist.isCell(event.target))) {
  182. fSendPidList(grd_pidlist);
  183. }
  184. ]]>
  185. </script>
  186. </datagrid>
  187. <line id="line1" class="line_1" style="x1:6px; y1:125px; x2:455px; y2:125px; "/>
  188. <caption id="caption3" class="search_name" style="left:12px; top:4px; width:91px; height:17px; ">조회기준</caption>
  189. <caption id="caption1" class="search_name" style="left:12px; top:27px; width:93px; height:17px; ">진 료 과</caption>
  190. <select1 id="cmb_deptlist" ref="/root/send/deptcd" class="combo_search" appearance="minimal" style="left:105px; top:25px; width:90px; height:19px; ">
  191. <choices>
  192. <itemset nodeset="/root/init/cmb_orddept/initexecorddept">
  193. <label ref="execorddeptcdnm"/>
  194. <value ref="execorddeptcdid"/>
  195. </itemset>
  196. </choices>
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. fChngSrchDrId();
  200. btn_sea.dispatch("DOMActivate");
  201. window.modelesstopmost = true;
  202. ]]>
  203. </script>
  204. </select1>
  205. <caption id="caption4" class="search_name" style="left:12px; top:51px; width:73px; height:17px; ">주 치 의</caption>
  206. <select1 id="cmb_medispcllist" ref="/root/send/drid" class="combo_search" appearance="minimal" style="left:105px; top:49px; width:90px; height:19px; ">
  207. <choices>
  208. <itemset nodeset="/root/init/cmb_orddr/initexecorddr">
  209. <label ref="execorddrcdnm"/>
  210. <value ref="execorddrcdid"/>
  211. </itemset>
  212. </choices>
  213. <script type="javascript" ev:event="xforms-value-changed">
  214. <![CDATA[
  215. btn_sea.dispatch("DOMActivate");
  216. window.modelesstopmost = true;
  217. ]]>
  218. </script>
  219. </select1>
  220. <caption id="caption5" class="search_name" style="left:12px; top:75px; width:86px; height:17px; ">병 동</caption>
  221. <select1 id="combo3" ref="/root/send/wardcd" class="combo_search" appearance="minimal" style="left:105px; top:74px; width:90px; height:19px; ">
  222. <choices>
  223. <itemset nodeset="/root/init/cmb_ward/initexecward">
  224. <label ref="execwardcdnm"/>
  225. <value ref="execwardcdid"/>
  226. </itemset>
  227. </choices>
  228. <script type="javascript" ev:event="xforms-value-changed">
  229. <![CDATA[
  230. fChngSrchRoomCd();
  231. btn_sea.dispatch("DOMActivate");
  232. window.modelesstopmost = true;
  233. ]]>
  234. </script>
  235. </select1>
  236. <select1 id="combo4" ref="/root/send/roomcd" class="combo_search" appearance="minimal" style="left:205px; top:74px; width:90px; height:19px; ">
  237. <choices>
  238. <itemset nodeset="/root/init/cmb_room/initexecroom">
  239. <label ref="execroomcdnm"/>
  240. <value ref="execroomcdid"/>
  241. </itemset>
  242. </choices>
  243. <script type="javascript" ev:event="xforms-value-changed">
  244. <![CDATA[
  245. btn_sea.dispatch("DOMActivate");
  246. window.modelesstopmost = true;
  247. ]]>
  248. </script>
  249. </select1>
  250. <select id="chk_DailyResult" ref="/root/send/dailyyn" overflow="visible" appearance="full" style="left:300px; top:4px; width:70px; height:15px; border-style:none; ">
  251. <choices>
  252. <item>
  253. <label>당일결과</label>
  254. <value>Y</value>
  255. </item>
  256. </choices>
  257. <script type="javascript" ev:event="onclick">
  258. <![CDATA[
  259. alert('[당일결과만 존재하는 대상자 조회] 기능은 구현중입니다.');
  260. ]]>
  261. </script>
  262. </select>
  263. <line id="line2" class="line_4" style="x1:380px; y1:8px; x2:380px; y2:114px; "/>
  264. <select1 id="cmb_flag" ref="/root/send/flag" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:105px; top:4px; width:180px; height:17px; border-style:none; ">
  265. <choices>
  266. <item>
  267. <label>전체</label>
  268. <value>0</value>
  269. </item>
  270. <item>
  271. <label>외래</label>
  272. <value>2</value>
  273. </item>
  274. <item>
  275. <label>입원</label>
  276. <value>1</value>
  277. </item>
  278. <item>
  279. <label>응급</label>
  280. <value>3</value>
  281. </item>
  282. </choices>
  283. </select1>
  284. <select1 id="combo5" ref="/root/main/cond/subdeptcd" class="combo_search" appearance="minimal" style="left:205px; top:25px; width:90px; height:19px; ">
  285. <choices>
  286. <itemset nodeset="/root/init/cmb_orddept/initexecorddept">
  287. <label ref="execorddeptcdnm"/>
  288. <value ref="execorddeptcdid"/>
  289. </itemset>
  290. </choices>
  291. <script type="javascript" ev:event="xforms-value-changed">
  292. <![CDATA[
  293. fChngSrchDrId();
  294. btn_sea.dispatch("DOMActivate");
  295. window.modelesstopmost = true;
  296. ]]>
  297. </script>
  298. </select1>
  299. <caption id="caption2" class="search_name" style="left:205px; top:51px; width:75px; height:17px; ">담 당 의</caption>
  300. <select1 id="combo6" ref="/root/send/drid" class="combo_search" appearance="minimal" style="left:285px; top:49px; width:90px; height:19px; ">
  301. <choices>
  302. <itemset nodeset="/root/init/cmb_orddr/initexecorddr">
  303. <label ref="execorddrcdnm"/>
  304. <value ref="execorddrcdid"/>
  305. </itemset>
  306. </choices>
  307. <script type="javascript" ev:event="xforms-value-changed">
  308. <![CDATA[
  309. btn_sea.dispatch("DOMActivate");
  310. window.modelesstopmost = true;
  311. ]]>
  312. </script>
  313. </select1>
  314. <caption id="caption6" class="search_name" style="left:12px; top:99px; width:89px; height:17px; ">담당간호사</caption>
  315. <select1 id="combo7" ref="/root/send/drid" class="combo_search" appearance="minimal" style="left:105px; top:98px; width:90px; height:19px; ">
  316. <choices>
  317. <itemset nodeset="/root/init/cmb_orddr/initexecorddr">
  318. <label ref="execorddrcdnm"/>
  319. <value ref="execorddrcdid"/>
  320. </itemset>
  321. </choices>
  322. <script type="javascript" ev:event="xforms-value-changed">
  323. <![CDATA[
  324. btn_sea.dispatch("DOMActivate");
  325. window.modelesstopmost = true;
  326. ]]>
  327. </script>
  328. </select1>
  329. </xhtml:body>
  330. </xhtml:html>