SMMMO04300_입원환자리스트.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  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. <inpatinfo>
  11. <inpatlist>
  12. <pid/>
  13. <indd/>
  14. <cretno/>
  15. <seqno/>
  16. <instcd/>
  17. <hngnm/>
  18. <fsexamflag/>
  19. <orddeptcd/>
  20. <sa/>
  21. <hd/>
  22. <ad/>
  23. <pos/>
  24. <refer/>
  25. <replstat/>
  26. <deptnm/>
  27. <medispclnm/>
  28. <atdoctnm/>
  29. <diagnm/>
  30. <opnm/>
  31. <testrslt/>
  32. <cnst/>
  33. <dayregular/>
  34. <lastprcpdd/>
  35. <cpnm/>
  36. <insukind/>
  37. <dschnoti/>
  38. <preworkup/>
  39. <hsctpreday/>
  40. <trsntype/>
  41. <hsctday/>
  42. <postcxday/>
  43. <memo/>
  44. <roomcd/>
  45. <drginfo/>
  46. </inpatlist>
  47. </inpatinfo>
  48. <cond>
  49. <pid/>
  50. <indd/>
  51. <orddeptcd/>
  52. <atdoctid/>
  53. <medispclid/>
  54. <wardcd/>
  55. <patflagstat>-</patflagstat>
  56. <scrnid>inpatlist</scrnid>
  57. <hngnm/>
  58. <srchdd/>
  59. <sortcol/>
  60. <orderby/>
  61. <mypatflag>Y</mypatflag>
  62. <totcnt/>
  63. <transfer>Y</transfer>
  64. <subdeptcd/>
  65. </cond>
  66. <patinfo>
  67. <patinfolist/>
  68. </patinfo>
  69. <dschdclrt>
  70. <dschdclrt>
  71. <pid/>
  72. <indd/>
  73. <cretno/>
  74. <seqno/>
  75. <dschdclrtyn/>
  76. <dschdclrdt/>
  77. <dschdclrdd/>
  78. <dschdclrtrgstid/>
  79. <dschdclrtrgstnm/>
  80. <dschdclrtrgstdt/>
  81. </dschdclrt>
  82. </dschdclrt>
  83. <opprcpinfo>
  84. <opprcpinfo/>
  85. </opprcpinfo>
  86. </main>
  87. <send>
  88. <reqdata/>
  89. <savedata/>
  90. </send>
  91. <hidden>
  92. <srchcond/>
  93. <pid/>
  94. <hngnm/>
  95. </hidden>
  96. <init>
  97. <wardlist>
  98. </wardlist>
  99. <P0008/>
  100. <orddept/>
  101. <orddept2/>
  102. <userlist/>
  103. <userlist2/>
  104. <rsltgetdata>
  105. <getdata/>
  106. </rsltgetdata>
  107. <userscrnenvinfo/>
  108. <getdata/>
  109. <hardcdno/>
  110. <jobhardcdno/>
  111. <M0525/>
  112. <opdrugresn/>
  113. <subdeptinfo/>
  114. <reqphardcdno/>
  115. <npdeptcd/>
  116. <M0623/>
  117. </init>
  118. <temp>
  119. <cond/>
  120. <cpflag/>
  121. <dschdclrt>
  122. <pid/>
  123. <indd/>
  124. <cretno/>
  125. <seqno/>
  126. <dschdclrtyn/>
  127. <dschdclrdt/>
  128. <dschdclrrgstid/>
  129. <dschdclrrgstnm/>
  130. <dschdclrrgstdt/>
  131. </dschdclrt>
  132. </temp>
  133. <popupmenu>
  134. <menu>
  135. <item>
  136. <name>관심환자등록</name>
  137. <func>fCallWndConcPatRgst</func>
  138. </item>
  139. <item>
  140. <name>주의요망환자관리</name>
  141. <func>fCallWndWarnPat</func>
  142. </item>
  143. <item>
  144. <name>-</name>
  145. <func/>
  146. </item>
  147. <item>
  148. <name>미수행처방관리</name>
  149. <func>fOpenInFinPrcp</func>
  150. </item>
  151. <item>
  152. <name>-</name>
  153. <func/>
  154. </item>
  155. <item>
  156. <name>전공의 적용</name>
  157. <func>fRgstCnclAtDoct</func>
  158. </item>
  159. <item>
  160. <name>내 환자 적용</name>
  161. <func>fRgstCnclMyPat</func>
  162. </item>
  163. <item>
  164. <name>-</name>
  165. <func/>
  166. </item>
  167. <item>
  168. <name>협진관리</name>
  169. <func>fOpenCnstPat</func>
  170. </item>
  171. <item>
  172. <name>간호TPR 조회</name>
  173. <func>fCallCareTPRInfo</func>
  174. </item>
  175. <item>
  176. <name>-</name>
  177. <func/>
  178. </item>
  179. <item>
  180. <name>환자바코드 출력</name>
  181. <func>fPrintPatLabel</func>
  182. </item>
  183. <item>
  184. <name>안전사고보고</name>
  185. <func>fPatQi</func>
  186. </item>
  187. <!--
  188. <item>
  189. <name>-</name>
  190. <func/>
  191. </item>
  192. <item>
  193. <name>퇴원 예고</name>
  194. <func>fReqDschDclrtInfo</func>
  195. </item>
  196. <item>
  197. <name>-</name>
  198. <func/>
  199. </item>
  200. <item>
  201. <name>RC환자정보</name>
  202. <func>fA</func>
  203. </item>
  204. <item>
  205. <name>V/S조회</name>
  206. <func>fC</func>
  207. </item>
  208. <item>
  209. <name>-</name>
  210. <func/>
  211. </item>
  212. <item>
  213. <name>ICU입실적정성</name>
  214. <func>fOpenIcuINChk</func>
  215. </item>
  216. -->
  217. </menu>
  218. </popupmenu>
  219. <recv>
  220. <selcheck/>
  221. </recv>
  222. </root>
  223. </instance>
  224. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  225. <submission id="TRMMO04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/inpatinfo"/>
  226. <submission id="TRMMO04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/topinfo"/>
  227. <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
  228. <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
  229. <submission id="TRMMO04106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/wardlist"/>
  230. <submission id="TXMMO04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
  231. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  232. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  233. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  234. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  235. <submission id="TRMMB04106" mediatype="application/x-www-form-urlencoded" method="post"/>
  236. <script type="javascript" ev:event="xforms-model-construct-done">
  237. <![CDATA[
  238. fInitialize_SMMMO04300();
  239. ]]>
  240. </script>
  241. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  242. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  243. <submission id="TXMMO04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
  244. <submission id="TRMMO04304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dschdclrt"/>
  245. <submission id="TXMMO00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
  246. <submission id="TRMMO04109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/opprcpinfo"/>
  247. <submission id="TRMMO04309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/opprcpinfo"/>
  248. <submission id="TRMMO04305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/getdata"/>
  249. <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
  250. <submission id="TRMMO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/aftcert" resultref="/root/hidden/aftcert"/>
  251. <submission id="TRMMB04107" mediatype="application/x-www-form-urlencoded" method="post"/>
  252. </model>
  253. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  254. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  255. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  256. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  257. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  258. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  259. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  260. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
  261. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04300.js"/>
  262. </xhtml:head>
  263. <xhtml:body guideline="1,5;1,1174;2,716;2,62;2,38;2,10;2,62;1,206;1,692;1,913;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  264. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:62px; "/>
  265. <caption id="caption2" class="tit_2" style="left:0px; top:64px; width:113px; height:13px; ">입원환자 리스트</caption>
  266. <line id="line1" class="line_1" style="x1:0px; y1:79px; x2:1174px; y2:79px; "/>
  267. <datagrid id="grd_inpatlist" nodeset="/root/main/inpatinfo/inpatlist" caption="indd^cretno^seqno^질병군분류^메모^병실^color^성명^환자명^등록번호^S/A^HD^POD^AD^의료협력^회신상태^orddeptcd^진료과^세부과^전문의^MEDISPCLID^담당의^진단명^수술명^검사조회^의뢰^특이^익일정규^최종처방일^DRG^CP여부^보험유형^퇴원구분^관심^Transfer^협진팀^제한항생제^PreWork Up^BMT예정일^이식형태^BMT Day^Post Cx Day^선택진료여부^ordtype^전일기록 SO^전일기록 A^전일기록 P" colsep="^" colwidth="0, 0, 0, 70, 30, 55, 0, 0, 100, 65, 45, 35, 35, 75, 70, 65, 0, 90, 0, 55, 0, 55, 150, 100, 0, 39, 41, 55, 75, 50, 50, 63, 66, 64, 70, 70, 70, 76, 0, 64, 0, 0, 100, 0, 140, 140, 140" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:84px; width:1174px; height:632px; text-align:center; ">
  268. <col ref="indd"/>
  269. <col ref="cretno"/>
  270. <col ref="seqno"/>
  271. <col class="text_center;" ref="drginfo" style="text-align:center; "/>
  272. <col class="text_center;" ref="memo"/>
  273. <col class="text_center;" ref="roomcd"/>
  274. <col ref="color"/>
  275. <col class="text_center;" ref="hngnm" style="text-align:center; "/>
  276. <col class="text_center;" ref="dispnm2" style="text-align:center; "/>
  277. <col class="text_center;" ref="pid"/>
  278. <col class="text_center;" ref="sa" style="text-align:center; "/>
  279. <col class="text_center;" ref="hd" style="text-align:center; "/>
  280. <col class="text_center;" ref="pod" style="text-align:center; "/>
  281. <col class="text_center;" ref="ad" format="yyyy-mm-dd"/>
  282. <col class="text_center;" ref="refer"/>
  283. <col class="text_center;" ref="replstat"/>
  284. <col ref="orddeptcd" visibility="hidden"/>
  285. <col class="text_center;" ref="deptnm"/>
  286. <col class="text_center;" ref="subdeptnm"/>
  287. <col class="text_center;" ref="medispclnm" style="text-align:center; "/>
  288. <col ref="medispclid" visibility="hidden"/>
  289. <col class="text_center;" ref="atdoctnm" style="text-align:center; "/>
  290. <col class="text_center;" ref="diagnm" style="text-align:left; "/>
  291. <col class="text_center;" ref="opnm" style="text-align:left; "/>
  292. <col ref="testrslt"/>
  293. <col class="text_center;" ref="cnst"/>
  294. <col ref="spclflag"/>
  295. <col ref="dayregular"/>
  296. <col class="text_center;" ref="lastprcpdd" format="yyyy-mm-dd"/>
  297. <col class="text_center;" ref="drgyn"/>
  298. <col class="text_center;" ref="cpyn"/>
  299. <col class="text_center;" disabled="true" ref="insukind" type="combo">
  300. <choices>
  301. <itemset nodeset="/root/init/P0008/P0008">
  302. <label ref="cdnm"/>
  303. <value ref="cdid"/>
  304. </itemset>
  305. </choices>
  306. </col>
  307. <col class="text_center;" ref="dschnoti"/>
  308. <col ref="conctypenm"/>
  309. <col ref="transfer"/>
  310. <col disabled="true" ref="coopteamcd" type="combo">
  311. <choices>
  312. <itemset nodeset="/root/init/M0525/M0525">
  313. <label ref="cdnm"/>
  314. <value ref="cdid"/>
  315. </itemset>
  316. </choices>
  317. </col>
  318. <col ref="antidrugflag"/>
  319. <col ref="preworkup"/>
  320. <col ref="hsctpreday"/>
  321. <col ref="transtype"/>
  322. <col ref="hsctday"/>
  323. <col ref="postcxday"/>
  324. <col disabled="true" ref="specordtype" type="combo">
  325. <choices>
  326. <itemset nodeset="/root/init/M0623/M0623">
  327. <label ref="cdnm"/>
  328. <value ref="cdid"/>
  329. </itemset>
  330. </choices>
  331. </col>
  332. <col ref="ordtype" visibility="hidden"/>
  333. <col ref="recsubjective"/>
  334. <col ref="recaccess"/>
  335. <col ref="recplan"/>
  336. <script type="javascript" ev:event="ondblclick">
  337. <![CDATA[
  338. if (isDataCell() == true) {
  339. setGlobalVariable("OrderMainRefresh", "Y"); // 처방 메인 refresh 단일화를 위한 글로벌 변수 셋팅 - 20081212 by Moonsh
  340. if ( fChkBfPrcpLoad("I") == false ) {
  341. return;
  342. }
  343. fSelectInPat();
  344. }
  345. ]]>
  346. </script>
  347. <script type="javascript" ev:event="onmousedown">
  348. <![CDATA[
  349. setPopupMenu("grd_inpatlist", false, "/root/popupmenu/menu/item", "name", "func");
  350. ]]>
  351. </script>
  352. <script type="javascript" ev:event="onclick">
  353. <![CDATA[
  354. if(grd_inpatlist.isCell(event.target)) {
  355. var currow = grd_inpatlist.row;
  356. var curcol = grd_inpatlist.col;
  357. if(currow == 0){ //grid sort
  358. if(sORDERBY == "asc"){
  359. sORDERBY = "desc";
  360. }else{
  361. sORDERBY = "asc";
  362. }
  363. model.setValue("/root/main/cond/sortcol", curcol);
  364. model.setValue("/root/main/cond/orderby", sORDERBY);
  365. model.copyNode(opener.root.cond.inpatlist, root.main.cond);
  366. model.copyNode(opener.root.reopen.condlist, root.main.cond);
  367. //nodeListSort(grd_inpatlist.nodeset, grd_inpatlist.colAttribute(curcol, "ref"), sORDERBY);
  368. //grd_inpatlist.refresh();
  369. fChngGrdCellColor();
  370. }else{
  371. var pid = model.getValue("/root/main/inpatinfo/inpatlist[" + grd_inpatlist.row + "]/pid");
  372. model.setValue(opener.root.source.pid, pid);
  373. }
  374. }
  375. ]]>
  376. </script>
  377. <script type="javascript" ev:event="onaftersort">
  378. <![CDATA[
  379. grd_inpatlist.gridToInstance();
  380. ]]>
  381. </script>
  382. </datagrid>
  383. <caption id="caption3" class="search_name" style="left:511px; top:38px; width:76px; height:17px; ">병 동</caption>
  384. <select1 id="combo3" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" itemcount="30" style="left:590px; top:38px; width:90px; height:19px; ">
  385. <choices>
  386. <itemset nodeset="/root/init/orddept2/dept">
  387. <label ref="depthngnm"/>
  388. <value ref="deptcd"/>
  389. </itemset>
  390. </choices>
  391. </select1>
  392. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" style="left:795px; top:38px; width:90px; height:19px; ">
  393. <script type="javascript" ev:event="onkeypress">
  394. <![CDATA[
  395. inputEnterKey("btn_reqpatnm", "DOMActivate");
  396. ]]>
  397. </script>
  398. </input>
  399. <caption id="caption4" class="search_name" style="left:716px; top:38px; width:76px; height:17px; ">등록번호</caption>
  400. <select1 id="combo4" ref="/root/main/cond/atdoctid" class="combo_search" appearance="minimal" style="left:974px; top:9px; width:90px; height:19px; ">
  401. <choices>
  402. <itemset nodeset="/root/init/userlist2/usercombo">
  403. <label ref="usernm"/>
  404. <value ref="userid"/>
  405. </itemset>
  406. </choices>
  407. </select1>
  408. <caption id="caption5" class="search_name" style="left:5px; top:9px; width:60px; height:17px; ">총</caption>
  409. <input id="input2" ref="/root/main/cond/indd" class="input" inputtype="date" style="left:204px; top:9px; width:90px; height:19px; ">
  410. <script type="javascript" ev:event="xforms-value-changed">
  411. <![CDATA[
  412. model.removeNodeset("/root/init/orddept");
  413. model.makeNode("/root/init/orddept/dept");
  414. model.removeNodeset("/root/init/orddept2");
  415. model.makeNode("/root/init/orddept2/dept");
  416. var sOrdDd = model.getValue("/root/main/cond/indd");
  417. var sOrdDeptCd = model.getValue("/root/main/cond/orddeptcd");
  418. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "D", sOrdDd); // 진료일자 기준으로 진료과를 다시 조회
  419. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept2", "W", sOrdDd); // 진료일자 기준으로 병동를 다시 조회
  420. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  421. addComboInstance("/root/init/orddept2" , "deptcd^depthngnm", "-^전체", "dept"); //병동콤보 전체항목 추가
  422. if(isNull(model.getValue("/root/init/orddept/dept[deptcd='"+sOrdDeptCd+"']/deptcd"))) {
  423. if(fContainsHardCD("445", sOrdDeptCd)) { // 소아청소년과 분과 이면 소아청소년과로 설정.
  424. model.setValue("/root/main/cond/orddeptcd", "2110000000");
  425. cmb_orddept.dispatch("xforms-value-changed");
  426. } else {
  427. messageBox ( "선택일자에 존재하지 않는 진료과 입니다.\n\n진료과를 다시 선택 하세요.", "I" );
  428. model.setValue("/root/main/cond/orddeptcd", "");
  429. }
  430. }
  431. model.refresh();
  432. ]]>
  433. </script>
  434. </input>
  435. <caption id="caption6" class="search_name" style="left:125px; top:9px; width:76px; height:17px; ">진 료 일</caption>
  436. <caption id="caption7" class="search_name" style="left:301px; top:9px; width:76px; height:17px; ">진 료 과</caption>
  437. <caption id="caption8" class="search_name" style="left:895px; top:9px; width:76px; height:17px; ">담 당 의</caption>
  438. <output id="input3" ref="/root/main/cond/totcnt" format="yyyy-mm-dd" appearance="output" style="left:55px; top:9px; width:35px; height:19px; text-align:center; background-color:transparent; border-color:#ffffff; "/>
  439. <caption id="caption1" style="left:96px; top:9px; width:30px; height:20px; font-weight:bold; vertical-align:middle; ">명</caption>
  440. <select1 id="radio1" ref="/root/main/cond/patflagstat" class="radio_search" appearance="full" cellspacing="5" cols="4" rows="1" overflow="visible" style="left:215px; top:38px; width:253px; height:20px; border-style:none; ">
  441. <choices>
  442. <item>
  443. <label>재원</label>
  444. <value>-</value>
  445. </item>
  446. <item>
  447. <label>퇴원</label>
  448. <value>D</value>
  449. </item>
  450. <item>
  451. <label>입원예정</label>
  452. <value>P</value>
  453. </item>
  454. <item>
  455. <label>입실완료</label>
  456. <value>F</value>
  457. </item>
  458. </choices>
  459. </select1>
  460. <caption id="caption9" class="search_name" style="left:716px; top:9px; width:76px; height:17px; ">전 문 의</caption>
  461. <line id="line3" style="x1:1100px; y1:7px; x2:1100px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
  462. <caption id="caption10" class="search_name" style="left:895px; top:38px; width:76px; height:17px; ">환 자 명</caption>
  463. <input id="input1" ref="/root/main/cond/hngnm" class="input_search" style="left:974px; top:38px; width:90px; height:19px; ">
  464. <script type="javascript" ev:event="onkeypress">
  465. <![CDATA[
  466. if(event.keyCode == 13){
  467. model.setValue("/root/hidden/srchcond", "2");
  468. model.setValue("/root/hidden/hngnm", input1.currentText);
  469. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden", "/root/send");
  470. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  471. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  472. model.setValue("/root/main/cond/pid", pid);
  473. model.setValue("/root/main/cond/hngnm", hngnm);
  474. model.refresh();
  475. }
  476. ]]>
  477. </script>
  478. </input>
  479. <button id="btn_prcpclsnm" class="icon_search" style="left:1067px; top:38px; width:16px; height:16px; ">
  480. <caption/>
  481. <script type="javascript" ev:event="DOMActivate">
  482. <![CDATA[
  483. modal("SPPMC02500");
  484. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  485. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  486. model.setValue("/root/main/cond/pid", sPid);
  487. model.setValue("/root/main/cond/hngnm", sHngnm);
  488. model.refresh();
  489. ]]>
  490. </script>
  491. </button>
  492. <button id="btn_reqpatnm" disabled="true" style="left:490px; top:30px; width:45px; height:20px; ">
  493. <caption/>
  494. <script type="javascript" ev:event="DOMActivate">
  495. <![CDATA[
  496. fPidTrim("/root/main/cond/pid");
  497. var pid = model.getValue("/root/main/cond/pid");
  498. if(pid == ""){
  499. return;
  500. }
  501. var pid = model.getValue("/root/main/cond/pid");
  502. if(reqPatInfo("pid", "ptbs", pid)==true){
  503. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  504. model.setValue("/root/main/cond/hngnm", hngnm);
  505. model.refresh();
  506. fReqInPatList();
  507. }
  508. ]]>
  509. </script>
  510. </button>
  511. <button id="btn_req" class="btn1_letter2" style="left:1110px; top:19px; width:56px; height:22px; ">
  512. <caption>조회</caption>
  513. <script type="javascript" ev:event="DOMActivate">
  514. <![CDATA[
  515. //model.setValue("/root/main/cond/sortcol", "");
  516. //model.setValue("/root/main/cond/orderby", "");
  517. var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
  518. var medispclid = model.getValue("/root/main/cond/medispclid");
  519. var atdoctid = model.getValue("/root/main/cond/atdoctid");
  520. var wardcd = model.getValue("/root/main/cond/wardcd");
  521. if (orddeptcd == "-" && medispclid == "-" && atdoctid == "-" && wardcd == "-" ) {
  522. messageBox("조회조건 전부가 전체가 될수는", "I004");
  523. return;
  524. } else {
  525. fReqInPatList();
  526. }
  527. ]]>
  528. </script>
  529. </button>
  530. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:380px; top:9px; width:115px; height:19px; ">
  531. <choices>
  532. <itemset nodeset="/root/init/orddept/dept">
  533. <label ref="depthngnm"/>
  534. <value ref="deptcd"/>
  535. </itemset>
  536. </choices>
  537. <script type="javascript" ev:event="xforms-value-changed">
  538. <![CDATA[
  539. model.removeNodeset("/root/init/userlist");
  540. model.removeNodeset("/root/init/userlist2");
  541. model.makeNode("/root/init/userlist/usercombo");
  542. model.makeNode("/root/init/userlist2/usercombo");
  543. var rtorddeptcd = model.getValue("/root/init/hardcdno/hardcd/hardcd");
  544. var sOrdDd = model.getValue("/root/main/cond/indd");
  545. var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
  546. if (orddeptcd == rtorddeptcd) {
  547. caption13.visible = true;
  548. } else {
  549. caption13.visible = false;
  550. }
  551. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "M", sOrdDd, "", "P");
  552. if(fContainsHardCD("515", cmb_orddept.value)) { // 담당의 항목에 교수도 조회해야 하는 부서
  553. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2", cmb_orddept.value, "0330", "", "T", sOrdDd, "", "P"); // 담당의에 주치의도 포함 되도록 수정 -2015.11.06 엄영만 요청서:20151102005
  554. } else {
  555. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2", cmb_orddept.value, "0330", "", "A", sOrdDd, "", "P");
  556. }
  557. if (model.getValue("/root/main/cond/orddeptcd") == "-") {
  558. model.makeValue("/root/init/userlist/usercombo/userid", "-");
  559. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  560. model.makeValue("/root/init/userlist2/usercombo/userid", "-");
  561. model.makeValue("/root/init/userlist2/usercombo/usernm", "전체");
  562. } else {
  563. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  564. addComboInstance("/root/init/userlist2", "userid^usernm", "-^전체", "usercombo");//의사콤보 전체항목 추가
  565. }
  566. model.setValue("/root/main/cond/medispclid", "-");
  567. model.setValue("/root/main/cond/atdoctid", "-");
  568. var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
  569. var medispclid = model.getValue("/root/main/cond/medispclid");
  570. var atdoctid = model.getValue("/root/main/cond/atdoctid");
  571. var wardcd = model.getValue("/root/main/cond/wardcd");
  572. mmbfGetSubDeptComboList("/root/send/reqdata", "/root/init/subdeptinfo", orddeptcd);
  573. addComboInstance("/root/init/subdeptinfo", "subdeptnm^subdeptcd", "전체^-", "subdeptlist"); //의사콤보 전체항목 추가
  574. model.setValue("/root/main/cond/subdeptcd", "-");
  575. model.refresh();
  576. if (orddeptcd == "-" && medispclid == "-" && atdoctid == "-" && wardcd == "-" ) {
  577. messageBox("조회조건 전부가 전체가 될수는", "I004");
  578. return;
  579. } else {
  580. fReqInPatList();
  581. }
  582. ]]>
  583. </script>
  584. </select1>
  585. <select1 id="cmb_medispclid" ref="/root/main/cond/medispclid" class="combo_search" appearance="minimal" itemcount="30" style="left:795px; top:9px; width:90px; height:19px; ">
  586. <choices>
  587. <itemset nodeset="/root/init/userlist/usercombo">
  588. <label ref="usernm"/>
  589. <value ref="userid"/>
  590. </itemset>
  591. </choices>
  592. </select1>
  593. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/mypatflag" style="left:5px; top:35px; width:25px; height:20px; "/>
  594. <caption id="caption11" style="left:30px; top:37px; width:79px; height:17px; font-weight:bold; ">
  595. <![CDATA[내환자 포함]]>
  596. <script type="javascript" ev:event="onclick">
  597. <![CDATA[
  598. var mypatflag = model.getValue("/root/main/cond/mypatflag");
  599. if(mypatflag == "Y"){
  600. model.setValue("/root/main/cond/mypatflag", "N");
  601. }else{
  602. model.setValue("/root/main/cond/mypatflag", "Y");
  603. }
  604. model.refresh();
  605. ]]>
  606. </script>
  607. </caption>
  608. <bool id="bool2" checkvalue="Y,N" ref="/root/main/cond/transfer" style="left:110px; top:38px; width:15px; height:15px; "/>
  609. <caption id="caption12" style="left:125px; top:38px; width:90px; height:15px; font-weight:bold; ">
  610. <![CDATA[당일전과포함]]>
  611. <script type="javascript" ev:event="onclick">
  612. <![CDATA[
  613. var transfer = model.getValue("/root/main/cond/transfer");
  614. if (transfer == "Y") {
  615. model.setValue("/root/main/cond/transfer", "N");
  616. } else {
  617. model.setValue("/root/main/cond/transfer", "Y");
  618. }
  619. model.refresh();
  620. ]]>
  621. </script>
  622. </caption>
  623. <caption id="caption13" visibility="hidden" style="left:140px; top:65px; width:425px; height:15px; ">타과 방사선종양처방환자는 노란색으로 보입니다.</caption>
  624. <caption id="caption14" class="search_name" style="left:511px; top:9px; width:76px; height:17px; ">세 부 과</caption>
  625. <select1 id="cmb_subdept" ref="/root/main/cond/subdeptcd" class="combo" appearance="minimal" style="left:590px; top:9px; width:115px; height:19px; ">
  626. <choices>
  627. <itemset nodeset="/root/init/subdeptinfo/subdeptlist">
  628. <label ref="subdeptnm"/>
  629. <value ref="subdeptcd"/>
  630. </itemset>
  631. </choices>
  632. </select1>
  633. </xhtml:body>
  634. </xhtml:html>