SMMMO04401_erM.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common_mobile.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. <main>
  10. <erpatinfo>
  11. <erpatlist/>
  12. <erpatcnt/>
  13. </erpatinfo>
  14. <cond>
  15. <pid/>
  16. <orddeptcd/>
  17. <medispclid/>
  18. <hngnm/>
  19. <srchflag>1</srchflag>
  20. <srchdd/>
  21. <orddd/>
  22. <section>-</section>
  23. <sortcol/>
  24. <orderby/>
  25. <staytm>1</staytm>
  26. <atdoctid/>
  27. <erorddeptcd/>
  28. <ermedispclid/>
  29. </cond>
  30. <patinfo>
  31. <patinfolist/>
  32. </patinfo>
  33. </main>
  34. <send/>
  35. <hidden>
  36. <srchcond/>
  37. <pid/>
  38. <hngnm/>
  39. <pattriagelist/>
  40. <erincnclinfo/>
  41. </hidden>
  42. <init>
  43. <orddept/>
  44. <userlist/>
  45. <section>-</section>
  46. <rsltgetdata>
  47. <getdata/>
  48. </rsltgetdata>
  49. <userscrnenvinfo/>
  50. <hardcdno/>
  51. <colorflag/>
  52. <calltime/>
  53. <eroverallday/>
  54. <bpcallyn/>
  55. <M0623/>
  56. <erorddept/>
  57. <eruserlist/>
  58. <userlist2/>
  59. </init>
  60. <page>
  61. <curpage>1</curpage>
  62. <maxpage>1</maxpage>
  63. <offset/>
  64. <pagesize>10</pagesize>
  65. </page>
  66. </root>
  67. </instance>
  68. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  69. <submission id="TRMOB00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/erpatinfo"/>
  70. <submission id="TRMMO04403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/pattriagelist"/>
  71. <submission id="TRMMO04404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/erincnclinfo"/>
  72. <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
  73. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  74. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  75. <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
  76. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  77. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  78. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  79. <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
  80. <submission id="TRMMO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/aftcert" resultref="/root/hidden/aftcert"/>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. ///////////////////////////////////////////////////////////////////////////// 추가된 부분
  84. if ("SoonsuViewer" == document.userAgent)
  85. {
  86. group1.visible = true;
  87. group1.hide(0);
  88. }
  89. /////////////////////////////////////////////////////////////////////////////
  90. fInitialize_SMMMO04400();
  91. ]]>
  92. </script>
  93. <submission id="TRMOB00008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/section"/>
  94. </model>
  95. <script type="javascript" src="../../../emr/smmobileweb/js/mcommon.js"/>
  96. <script type="javascript" src="../../../emr/smmobileweb/js/SMMMO04100M.js"/>
  97. <script type="javascript" src="../../../emr/smmobileweb/js/SMMMO04400M.js"/>
  98. <script type="javascript">
  99. <![CDATA[
  100. ///////////////////////////////////////////////////////////////////////////// 추가된 부분
  101. var m_bSearchBarShow = false;
  102. /////////////////////////////////////////////////////////////////////////////
  103. function onclick()
  104. {
  105. if ("SoonsuViewer" == document.userAgent)
  106. {
  107. if ("xforms:cell" != document.all(event.target).elementName)
  108. {
  109. pop_group.visible = false;
  110. }
  111. }
  112. else
  113. {
  114. if ("xforms:col" != event.pTarget.elementName)
  115. {
  116. pop_group.visible = false;
  117. }
  118. }
  119. }
  120. ]]>
  121. </script>
  122. </xhtml:head>
  123. <xhtml:body pagewidth="463px" pageheight="400px" guideline="1,462;2,374;">
  124. <button id="prepage" class="icon_pre_month" style="left:156px; top:288px; width:16px; height:16px; ">
  125. <caption/>
  126. <script type="javascript" ev:event="onclick">
  127. <![CDATA[
  128. var curpage = parseInt(model.getValue("root/page/curpage"));
  129. if(curpage > 1)
  130. {
  131. curpage = curpage - 1;
  132. model.setValue("root/page/curpage", String(curpage));
  133. fReqERPatList();
  134. }
  135. ]]>
  136. </script>
  137. </button>
  138. <output id="maxpage" ref="/root/page/maxpage" style="left:216px; top:288px; width:40px; height:19px; text-align:center; "/>
  139. <button id="nextpage" class="icon_next_month" style="left:256px; top:288px; width:16px; height:16px; ">
  140. <caption/>
  141. <script type="javascript" ev:event="onclick">
  142. <![CDATA[
  143. var curpage = parseInt(model.getValue("root/page/curpage"));
  144. var maxpage = parseInt(model.getValue("root/page/maxpage"));
  145. if(curpage < maxpage)
  146. {
  147. curpage = curpage + 1;
  148. model.setValue("root/page/curpage", String(curpage));
  149. fReqERPatList();
  150. }
  151. ]]>
  152. </script>
  153. </button>
  154. <datagrid id="grd_erpatlist" nodeset="/root/main/erpatinfo/erpatlist" class="datagrid2" caption="BED^등록번호^환자명^S/A^진료과^주치의^호출진료과^호출의사^주호소^Remark^Remark2" colsep="^" colwidth="55, 65, 67, 45, 80, 76, 72, 69, 145, 112, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:25px; width:463px; height:255px; ">
  155. <col ref="bed" style="text-align:center; "/>
  156. <col ref="pid" style="text-align:center; "/>
  157. <col disabled="true" ref="hngnm" style="text-align:center; "/>
  158. <col ref="sa" style="text-align:center; "/>
  159. <col ref="ordindeptnm" style="text-align:center; "/>
  160. <col ref="medispclnm" style="text-align:center; "/>
  161. <col disabled="true" ref="orddeptnm" style="text-align:center; "/>
  162. <col ref="orddoctnm" style="text-align:left; "/>
  163. <col ref="mainsynom" style="text-align:center; "/>
  164. <col ref="remark1" style="text-align:center; "/>
  165. <col ref="remark2"/>
  166. <script type="javascript" ev:event="onclick">
  167. <![CDATA[
  168. var row = grd_erpatlist.row;
  169. if (isDataCell() == true) {
  170. model.property("pid") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/pid"); //환자번호
  171. model.property("hngnm") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/hngnm"); //환자이름
  172. model.property("indd") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/indd"); //입원일자
  173. model.property("cretno") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/cretno"); //접수번호
  174. model.property("orddeptcd") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/orddeptcd"); //진료과코드
  175. model.property("deptnm") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/ordindeptnm"); //진료과명
  176. model.property("medispclnm") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/medispclnm"); //주치의명
  177. model.property("medispclid") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/medispclid"); //주치의ID
  178. model.property("sexage") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/sa"); //나이성별
  179. model.property("wardroomnm") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/wardroomnm"); //병동병실
  180. model.property("wardcd") = model.getValue("/root/main/erpatinfo/erpatlist[" + row + "]/wardcd");
  181. }
  182. pop_group.attribute("left") = (event.clientX - 10) + "px";
  183. pop_group.attribute("top") = (event.clientY - 10) + "px";
  184. pop_group.visible = true;
  185. ]]>
  186. </script>
  187. </datagrid>
  188. <button id="button1" class="btn3_letter2" style="left:393px; top:0px; width:56px; height:22px; ">
  189. <caption>검색</caption>
  190. <script type="javascript" ev:event="onclick">
  191. <![CDATA[
  192. ///////////////////////////////////////////////////////////////////////////// 추가된 부분
  193. if ("SoonsuViewer" == document.userAgent)
  194. {
  195. if (m_bSearchBarShow)
  196. {
  197. group1.hide("slow");
  198. m_bSearchBarShow = false;
  199. }
  200. else
  201. {
  202. group1.show("slow");
  203. m_bSearchBarShow = true;
  204. }
  205. }
  206. else
  207. {
  208. if (m_bSearchBarShow)
  209. {
  210. group1.visible = false;
  211. m_bSearchBarShow = false;
  212. }
  213. else
  214. {
  215. group1.visible = true;
  216. m_bSearchBarShow = true;
  217. }
  218. }
  219. /////////////////////////////////////////////////////////////////////////////
  220. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D", String(getCurrentDate())); //부서코드 콤보
  221. cmb_orddept.select(0);
  222. ]]>
  223. </script>
  224. </button>
  225. <caption id="caption2" class="tit_2" style="left:4px; top:5px; width:151px; height:13px; vertical-align:middle; "> 응급환자 리스트</caption>
  226. <output id="curpage" ref="/root/page/curpage" style="left:174px; top:288px; width:40px; height:19px; text-align:center; "/>
  227. <group id="pop_group" visibility="hidden" overflow="hidden" style="left:310px; top:159px; width:125px; height:215px; background-color:#e4e5e7; border-color:#bdc0c5; border-width:1px; border-style:solid; ">
  228. <button id="btn_pop1" class="btn_mobile2" style="left:9px; top:4px; width:73px; height:23px; ">
  229. <caption>처방조회</caption>
  230. <script type="javascript" ev:event="onclick">
  231. <![CDATA[
  232. window.load("SPMMO14901_orderSurchM.xrw", "modeless");
  233. ]]>
  234. </script>
  235. </button>
  236. <button id="button2" class="btn_mobile2" style="left:9px; top:32px; width:100px; height:23px; ">
  237. <caption>환자요약</caption>
  238. <script type="javascript" ev:event="onclick">
  239. <![CDATA[
  240. window.load("SSMMR04801_SummaryM.xrw", "modeless");
  241. ]]>
  242. </script>
  243. </button>
  244. <button id="button3" class="btn_mobile2" style="left:9px; top:59px; width:100px; height:23px; ">
  245. <caption>I/O조회</caption>
  246. <script type="javascript" ev:event="onclick">
  247. <![CDATA[
  248. window.load("SPMNR05801_IOSurchM.xrw", "modeless");
  249. ]]>
  250. </script>
  251. </button>
  252. <button id="button4" class="btn_mobile2" style="left:9px; top:86px; width:100px; height:23px; ">
  253. <caption>약품편람</caption>
  254. <script type="javascript" ev:event="onclick">
  255. <![CDATA[
  256. window.load("SMADB01901_druginfoM.xrw", "modeless");
  257. ]]>
  258. </script>
  259. </button>
  260. <button id="button5" class="btn_mobile2" style="left:9px; top:112px; width:100px; height:23px; ">
  261. <caption>진료정보</caption>
  262. <script type="javascript" ev:event="onclick">
  263. <![CDATA[
  264. window.load("SMMMO02501_PatPrcpSrcM.xrw", "modeless");
  265. ]]>
  266. </script>
  267. </button>
  268. <button id="button6" class="btn_mobile2" style="left:9px; top:139px; width:100px; height:23px; ">
  269. <caption>기록조회</caption>
  270. <script type="javascript" ev:event="onclick">
  271. <![CDATA[
  272. window.load("SMMMO04201_DoctRecordListM.xrw", "modeless");
  273. ]]>
  274. </script>
  275. </button>
  276. <button id="button7" class="btn_mobile2" style="left:9px; top:164px; width:100px; height:23px; ">
  277. <caption>임상관찰</caption>
  278. <script type="javascript" ev:event="onclick">
  279. <![CDATA[
  280. window.load("SMMOB00900_NurseItemRecord.xrw", "modeless");
  281. ]]>
  282. </script>
  283. </button>
  284. <button id="button8" class="btn_mobile2" style="left:9px; top:189px; width:100px; height:23px; ">
  285. <caption>검사결과</caption>
  286. <script type="javascript" ev:event="onclick">
  287. <![CDATA[
  288. window.load("SMAER0081M_TestRsltSearchM.xrw", "modeless");
  289. ]]>
  290. </script>
  291. </button>
  292. </group>
  293. <group id="group1" visibility="hidden" overflow="hidden" style="left:0px; top:25px; width:462px; height:140px; background-color:transparent; ">
  294. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:463px; height:135px; background-color:#fffbf2; "/>
  295. <button id="btn_req" class="btn1_letter2" style="left:395px; top:110px; width:56px; height:22px; ">
  296. <caption>조회</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. model.setValue("/root/main/cond/orderby", "");
  300. model.setValue("/root/main/cond/sortcol", "");
  301. fReqERPatList();
  302. ///////////////////////////////////////////////////////////////////////////// 추가된 부분
  303. if ("SoonsuViewer" == document.userAgent)
  304. {
  305. group1.hide("slow");
  306. m_bSearchBarShow = false;
  307. }
  308. else
  309. {
  310. group1.visible = false;
  311. m_bSearchBarShow = false;
  312. }
  313. /////////////////////////////////////////////////////////////////////////////
  314. ]]>
  315. </script>
  316. </button>
  317. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" style="left:84px; top:70px; width:172px; height:19px; ">
  318. <script type="javascript" ev:event="onkeypress">
  319. <![CDATA[
  320. //inputEnterKey("btn_reqpatnm", "DOMActivate");
  321. ]]>
  322. </script>
  323. </input>
  324. <output id="out_curpatcnt" ref="/root/main/erpatinfo/erpatcnt/ercurpatcnt" style="left:280px; top:92px; width:30px; height:19px; text-align:right; "/>
  325. <output id="out_epatcnt" ref="/root/main/erpatinfo/erpatcnt/erpattotalcnt" style="left:324px; top:92px; width:34px; height:19px; text-align:right; "/>
  326. <caption id="caption10" class="search_name" style="left:4px; top:51px; width:76px; height:17px; ">조회구분</caption>
  327. <select1 id="combo1" ref="/root/main/cond/section" class="combo" appearance="minimal" style="left:280px; top:10px; width:90px; height:19px; ">
  328. <choices>
  329. <itemset nodeset="/root/init/section/section">
  330. <label ref="typenm"/>
  331. <value ref="typecd"/>
  332. </itemset>
  333. </choices>
  334. </select1>
  335. <caption id="caption11" style="left:364px; top:92px; width:20px; height:20px; font-weight:bold; ">명</caption>
  336. <caption id="caption3" class="search_name" style="left:265px; top:70px; width:60px; height:17px; ">성 명</caption>
  337. <caption id="caption34" class="search_name" visibility="hidden" style="left:4px; top:90px; width:76px; height:17px; ">체류시간</caption>
  338. <select1 id="combo2" ref="/root/main/cond/staytm" class="combo" visibility="hidden" appearance="minimal" style="left:84px; top:90px; width:110px; height:19px; ">
  339. <choices>
  340. <item>
  341. <label>전체</label>
  342. <value>1</value>
  343. </item>
  344. <item>
  345. <label>체류 4시간 초과/응급/일반의</label>
  346. <value>99ccff</value>
  347. </item>
  348. <item>
  349. <label>6시간 초과/입원장 X</label>
  350. <value>ccffcc</value>
  351. </item>
  352. <item>
  353. <label>체류 24시간 초과</label>
  354. <value>ff99cc</value>
  355. </item>
  356. <item>
  357. <label>의사처방X</label>
  358. <value>ffcc99</value>
  359. </item>
  360. </choices>
  361. </select1>
  362. <caption id="caption4" class="search_name" style="left:4px; top:70px; width:76px; height:17px; ">등록번호</caption>
  363. <select1 id="combo3" ref="/root/main/cond/medispclid" class="combo_search" appearance="minimal" style="left:280px; top:30px; width:120px; height:19px; ">
  364. <choices>
  365. <itemset nodeset="/root/init/userlist/usercombo">
  366. <label ref="usernm"/>
  367. <value ref="userid"/>
  368. </itemset>
  369. </choices>
  370. </select1>
  371. <caption id="caption35" class="search_name" style="left:201px; top:30px; width:65px; height:17px; ">주치의</caption>
  372. <select1 id="radio1" ref="/root/main/cond/srchflag" appearance="full" cellspacing="10" cols="4" rows="1" overflow="visible" style="left:84px; top:51px; width:181px; height:14px; border-style:none; ">
  373. <choices>
  374. <item>
  375. <label>재원</label>
  376. <value>1</value>
  377. </item>
  378. <item>
  379. <label>퇴실정리</label>
  380. <value>2</value>
  381. </item>
  382. <item>
  383. <label>퇴원</label>
  384. <value>3</value>
  385. </item>
  386. </choices>
  387. <script type="javascript" ev:event="xforms-value-changed">
  388. <![CDATA[
  389. fReqERPatList();
  390. ]]>
  391. </script>
  392. </select1>
  393. <caption id="caption5" class="search_name" style="left:201px; top:92px; width:76px; height:17px; ">재원환자</caption>
  394. <caption id="caption6" class="search_name" style="left:201px; top:10px; width:76px; height:17px; ">구 역</caption>
  395. <caption id="caption7" class="search_name" style="left:4px; top:30px; width:76px; height:17px; ">진료과</caption>
  396. <input id="input2" ref="/root/main/cond/srchdd" inputtype="date" style="left:84px; top:9px; width:90px; height:19px; "/>
  397. <input id="input3" ref="/root/main/cond/hngnm" class="input_search" style="left:329px; top:70px; width:91px; height:19px; "/>
  398. <caption id="caption8" class="search_name" style="left:4px; top:9px; width:76px; height:17px; ">조회일자</caption>
  399. <caption id="caption9" style="left:314px; top:92px; width:10px; height:20px; ">/</caption>
  400. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:84px; top:30px; width:111px; height:19px; ">
  401. <choices>
  402. <itemset nodeset="/root/init/orddept/dept">
  403. <label ref="depthngnm"/>
  404. <value ref="deptcd"/>
  405. </itemset>
  406. </choices>
  407. <script type="javascript" ev:event="xforms-value-changed">
  408. <![CDATA[
  409. model.removeNodeset("/root/init/userlist");
  410. model.makeNode("/root/init/userlist/usercombo");
  411. if(cmb_orddept.value == "-"){
  412. model.removeNode("/root/init/userlist/usercombo");
  413. model.makeValue("/root/init/userlist/usercombo/userid", "-");
  414. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  415. }else{
  416. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "M", String(getCurrentDate()), "N"); //진료과 의사콤보 조회
  417. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  418. }
  419. model.setValue("/root/main/cond/medispclid", "-");
  420. model.refresh();
  421. //fReqERPatList();
  422. ]]>
  423. </script>
  424. </select1>
  425. <button id="btn_reqpatnm" disabled="true" style="left:410px; top:70px; width:45px; height:20px; ">
  426. <caption/>
  427. <script type="javascript" ev:event="DOMActivate">
  428. <![CDATA[
  429. fPidTrim("/root/main/cond/pid");
  430. var pid = model.getValue("/root/main/cond/pid");
  431. if(pid == ""){
  432. return;
  433. }
  434. var pid = model.getValue("/root/main/cond/pid");
  435. if(reqPatInfo("pid", "ptbs", pid)==true){
  436. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  437. model.setValue("/root/main/cond/hngnm", hngnm);
  438. model.refresh();
  439. fReqERPatList();
  440. }
  441. model.refresh();
  442. ]]>
  443. </script>
  444. </button>
  445. </group>
  446. </xhtml:body>
  447. </xhtml:html>