SMADC02101_복약지도환자조회(간호).xrw 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  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. <main>
  10. <patinfo>
  11. <patlist>
  12. <tmedcnst/>
  13. <req/>
  14. <stat/>
  15. <replpharmst/>
  16. <inyn/>
  17. <roomcd/>
  18. <drugno/>
  19. <orddeptnm/>
  20. <orddeptcd/>
  21. <orddrnm/>
  22. <orddrid/>
  23. <fsexamflag/>
  24. <pid/>
  25. <patnm/>
  26. <agesex/>
  27. <prcpdd/>
  28. <prtlnm/>
  29. <anticncrdayno/>
  30. <orddd/>
  31. <lastcnstdd/>
  32. <fstdrugcd/>
  33. <hd_pod/>
  34. <dschstat/>
  35. <dschdd/>
  36. <diagnm/>
  37. <srchflag/>
  38. <cretno/>
  39. <prcpgenrflag/>
  40. <exptypeyn/>
  41. <prntdt/>
  42. <difflagcd/>
  43. <wardcd/>
  44. <brthdd/>
  45. </patlist>
  46. </patinfo>
  47. <tmedinfo>
  48. <tmedlist/>
  49. </tmedinfo>
  50. <autoprntinfo>
  51. <aprntlist/>
  52. </autoprntinfo>
  53. </main>
  54. <send>
  55. <srchinfo/>
  56. <deptinfo>
  57. <deptflag/>
  58. </deptinfo>
  59. <orddrinfo>
  60. <deptcd/>
  61. <userflag/>
  62. </orddrinfo>
  63. <tmedinfo>
  64. <tmedlisth/>
  65. <tmedlistd/>
  66. </tmedinfo>
  67. </send>
  68. <init>
  69. <orddept>
  70. <dept>
  71. <deptcd/>
  72. <deptnm/>
  73. </dept>
  74. </orddept>
  75. <deptlist>
  76. <ward>
  77. <deptcd/>
  78. <deptnm/>
  79. </ward>
  80. </deptlist>
  81. <orddrlist>
  82. <user>
  83. <userid/>
  84. <usernm/>
  85. </user>
  86. </orddrlist>
  87. <difflagcd>1</difflagcd>
  88. <baseinfo>
  89. <tmedcnst>
  90. <A0036/>
  91. </tmedcnst>
  92. </baseinfo>
  93. </init>
  94. <hidden>
  95. <chkitem>
  96. <count/>
  97. </chkitem>
  98. <receivedrugcd>/root/temp/srchinfo/speccode</receivedrugcd>
  99. </hidden>
  100. <temp>
  101. <printlabel>
  102. <prtgubun/>
  103. <prthosinhosoutflag/>
  104. <prtprcpclscd/>
  105. <prttmedcnst/>
  106. <prtorddeptcd/>
  107. <prtwardroom/>
  108. <prtorddrid/>
  109. </printlabel>
  110. <srchinfo>
  111. <prcpddstart/>
  112. <prcpddend/>
  113. <srchflag/>
  114. <srchflagall/>
  115. <newdrugflag/>
  116. <hosinhosoutflag/>
  117. <hosinhosoutflagall/>
  118. <prcpclscd/>
  119. <tmedcnst/>
  120. <speccode/>
  121. <orddeptcd/>
  122. <wardcd/>
  123. <ward/>
  124. <orddrid/>
  125. <wardnm/>
  126. <pid/>
  127. <tmedprntdt/>
  128. <sortcol/>
  129. <drugno/>
  130. <prtflag>|3</prtflag>
  131. <autoprntflag/>
  132. <macheckflag/>
  133. </srchinfo>
  134. <receivedata>
  135. <receiveref/>
  136. <srchflag/>
  137. <srchcnts/>
  138. <drugkind/>
  139. </receivedata>
  140. <prtnlist>
  141. <prtnlist/>
  142. </prtnlist>
  143. </temp>
  144. </root>
  145. </instance>
  146. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  148. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  150. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  151. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  152. <script type="javascript" src="../../../ast/pharmacyconsultweb/js/SMADC02100.js"/>
  153. <script type="javascript" ev:event="xforms-ready">
  154. <![CDATA[
  155. document.controls("Base64_Preview1").attribute("visibility") = "hidden";
  156. model.makeValue("/root/temp/srchinfo/macheckflag", "Y");
  157. fInit();
  158. makeReportPreview("5","10", "350","370","grp_report");
  159. ]]>
  160. </script>
  161. <submission id="TRADC02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo/deptflag" replace="instance" resultref="/root/init/orddept"/>
  162. <submission id="TRADC02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/patinfo"/>
  163. <submission id="TRADC02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo/deptflag" replace="instance" resultref="/root/init/deptlist"/>
  164. <submission id="TRADC02104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/orddrinfo" replace="instance" resultref="/root/init/orddrlist"/>
  165. <submission id="TRADC02105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmedinfo/tmedlisth" replace="instance" resultref="/root/main/tmedinfo"/>
  166. <submission id="TXADC02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmedinfo" replace="instance" resultref="/root/hidden/chkitem"/>
  167. <submission id="TRADB00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/baseinfo/tmedcnst"/>
  168. </model>
  169. </xhtml:head>
  170. <xhtml:body guideline="1,1209;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  171. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  172. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:310px; height:14px; ">복약 지도 환자 조회(간호) ver.2.1 20090713</caption>
  173. </group>
  174. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  175. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:711px; width:268px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  176. <caption id="caption51" visibility="hidden" style="left:975px; top:720px; width:50px; height:14px; vertical-align:middle; ">퇴원예고</caption>
  177. <caption id="caption53" class="color_4" visibility="hidden" style="left:1037px; top:719px; width:15px; height:15px; vertical-align:middle; "/>
  178. <group id="group2" style="left:0px; top:5px; width:1195px; height:120px; ">
  179. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:120px; background-color:#fffbf2; border-color:#ffd799; "/>
  180. <button id="button4" class="icon_search" style="left:610px; top:75px; width:16px; height:16px; ">
  181. <caption/>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. if(chk_ward.visible){
  185. chk_ward.visible = false;
  186. }else {
  187. chk_ward.visible = true;
  188. }
  189. model.refresh();
  190. ]]>
  191. </script>
  192. </button>
  193. <button id="button5" class="icon_search" visibility="hidden" style="left:845px; top:50px; width:16px; height:16px; ">
  194. <caption/>
  195. </button>
  196. <caption id="caption1" class="search_name" style="left:15px; top:10px; width:72px; height:17px; ">일자 :</caption>
  197. <line id="line13" style="x1:1115px; y1:10px; x2:1115px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
  198. <select id="checkbox4" ref="/root/chk1" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="3" rows="1" style="left:750px; top:10px; width:150px; height:15px; border-style:none; ">
  199. <choices>
  200. <item>
  201. <label>의뢰</label>
  202. <value>1</value>
  203. </item>
  204. <item>
  205. <label>미의뢰</label>
  206. <value>2</value>
  207. </item>
  208. <item>
  209. <label>전체</label>
  210. <value>3</value>
  211. </item>
  212. </choices>
  213. </select>
  214. <caption id="caption2" class="search_name" style="left:330px; top:10px; width:72px; height:17px; ">구분 :</caption>
  215. <select id="checkbox5" ref="/root/chk2" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="3" rows="1" style="left:905px; top:100px; width:150px; height:15px; border-style:none; ">
  216. <choices>
  217. <item>
  218. <label>회신</label>
  219. <value>1</value>
  220. </item>
  221. <item>
  222. <label>미회신</label>
  223. <value>2</value>
  224. </item>
  225. <item>
  226. <label>전체</label>
  227. <value>3</value>
  228. </item>
  229. </choices>
  230. </select>
  231. <button id="button61" class="icon_search" style="left:610px; top:50px; width:16px; height:16px; ">
  232. <caption/>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
  236. model.setValue("/root/temp/receivedata/srchflag", "");
  237. model.setValue("/root/temp/receivedata/srchcnts", "");
  238. model.setValue("/root/temp/receivedata/drugkind","");
  239. // 약품코드 검색
  240. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  241. ]]>
  242. </script>
  243. </button>
  244. <caption id="caption3" class="search_name" style="left:640px; top:75px; width:86px; height:17px; ">진료과 :</caption>
  245. <button id="button9" class="icon_search" visibility="hidden" style="left:1070px; top:50px; width:16px; height:16px; ">
  246. <caption/>
  247. </button>
  248. <caption id="caption4" class="search_name" style="left:875px; top:75px; width:73px; height:17px; ">주치의 :</caption>
  249. <select1 id="radio1" ref="/root/optGu" class="radio_search" visibility="hidden" appearance="full" cols="2" rows="1" overflow="hidden" style="left:1095px; top:70px; width:85px; height:20px; border-style:none; ">
  250. <choices>
  251. <item>
  252. <label>AND</label>
  253. <value>1</value>
  254. </item>
  255. <item>
  256. <label>OR</label>
  257. <value>2</value>
  258. </item>
  259. </choices>
  260. </select1>
  261. <caption id="caption5" class="search_name" style="left:330px; top:75px; width:70px; height:17px; ">병 동 :</caption>
  262. <caption id="caption6" class="search_name" style="left:405px; top:50px; width:89px; height:17px; ">특정코드 :</caption>
  263. <caption id="caption7" class="search_name" visibility="hidden" style="left:15px; top:50px; width:89px; height:17px; ">복약분류 :</caption>
  264. <caption id="caption8" class="search_name" visibility="hidden" style="left:638px; top:50px; width:88px; height:17px; ">팀교육 :</caption>
  265. <caption id="caption9" class="search_name" visibility="hidden" style="left:875px; top:50px; width:83px; height:17px; ">상병군 :</caption>
  266. <input id="input4" class="input_search" visibility="hidden" style="left:725px; top:50px; width:108px; height:19px; ">
  267. <script type="javascript" ev:event="onkeydown">
  268. <![CDATA[
  269. inputEnterKey("btn_sea","DOMActivate");
  270. ]]>
  271. </script>
  272. </input>
  273. <input id="input6" class="input_search" visibility="hidden" style="left:957px; top:50px; width:108px; height:19px; ">
  274. <script type="javascript" ev:event="onkeydown">
  275. <![CDATA[
  276. inputEnterKey("btn_sea","DOMActivate");
  277. ]]>
  278. </script>
  279. </input>
  280. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:35px; width:56px; height:22px; ">
  281. <caption>조회</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. fSrchPatList();
  285. fPrntCnt(); //2008-11-25 출력건수 조회
  286. ]]>
  287. </script>
  288. </button>
  289. <select id="chk_srchflag" ref="/root/temp/srchinfo/srchflag" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" sep="|" style="left:395px; top:10px; width:135px; height:15px; border-style:none; ">
  290. <choices>
  291. <item>
  292. <label>재원</label>
  293. <value>1</value>
  294. </item>
  295. <item>
  296. <label>퇴원</label>
  297. <value>2</value>
  298. </item>
  299. <item>
  300. <label>외래</label>
  301. <value>3</value>
  302. </item>
  303. </choices>
  304. <script type="javascript" ev:event="xforms-value-changed">
  305. <![CDATA[
  306. fChkSrchflag();
  307. ]]>
  308. </script>
  309. </select>
  310. <select id="chk_srchflagall" ref="/root/temp/srchinfo/srchflagall" overflow="visible" appearance="full" style="left:527px; top:10px; width:49px; height:15px; border-style:none; ">
  311. <choices>
  312. <item>
  313. <label>전체</label>
  314. <value>Y</value>
  315. </item>
  316. </choices>
  317. <script type="javascript" ev:event="xforms-value-changed">
  318. <![CDATA[
  319. fChkSrchflagAll();
  320. ]]>
  321. </script>
  322. </select>
  323. <select id="chk_hosinhosoutflag" ref="/root/temp/srchinfo/hosinhosoutflag" class="checkbox_search" overflow="visible" appearance="full" cols="3" rows="1" sep="|" style="left:590px; top:10px; width:95px; height:15px; border-style:none; ">
  324. <choices>
  325. <item>
  326. <label>원내</label>
  327. <value>I</value>
  328. </item>
  329. <item>
  330. <label>원외</label>
  331. <value>O</value>
  332. </item>
  333. </choices>
  334. </select>
  335. <select id="chk_hosinhosoutflagall" ref="/root/temp/srchinfo/hosinhosoutflagall" overflow="visible" appearance="full" style="left:685px; top:10px; width:49px; height:15px; border-style:none; ">
  336. <choices>
  337. <item>
  338. <label>전체</label>
  339. <value>Y</value>
  340. </item>
  341. </choices>
  342. <script type="javascript" ev:event="onclick">
  343. <![CDATA[
  344. var allflag = model.getValue("/root/temp/srchinfo/hosinhosoutflagall");
  345. if(allflag == "Y"){
  346. model.setValue("/root/temp/srchinfo/hosinhosoutflag","I|O");
  347. }else{
  348. model.setValue("/root/temp/srchinfo/hosinhosoutflag","");
  349. }
  350. model.refresh();
  351. ]]>
  352. </script>
  353. </select>
  354. <select id="chk_prcpclscd" ref="/root/temp/srchinfo/prcpclscd" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" sep="|" style="left:590px; top:30px; width:265px; height:15px; border-style:none; ">
  355. <choices>
  356. <item>
  357. <label>일반약(</label>
  358. <value>A2</value>
  359. </item>
  360. <item>
  361. <label>외용제)</label>
  362. <value>A4</value>
  363. </item>
  364. <item>
  365. <label>항암주사</label>
  366. <value>D</value>
  367. </item>
  368. <item>
  369. <label>일반주사</label>
  370. <value>A6</value>
  371. </item>
  372. </choices>
  373. </select>
  374. <select id="chk_tmedcnst" ref="/root/temp/srchinfo/tmedcnst" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="7" rows="1" sep="|" style="left:30px; top:30px; width:285px; height:15px; border-style:none; ">
  375. <choices>
  376. <item>
  377. <label>항암</label>
  378. <value>1</value>
  379. </item>
  380. <item>
  381. <label>결핵</label>
  382. <value>2</value>
  383. </item>
  384. <item>
  385. <label>이식</label>
  386. <value>B</value>
  387. </item>
  388. <item>
  389. <label>흡입기</label>
  390. <value>3</value>
  391. </item>
  392. <item>
  393. <label>HIV</label>
  394. <value>4</value>
  395. </item>
  396. <item>
  397. <label>파킨슨</label>
  398. <value>5</value>
  399. </item>
  400. </choices>
  401. </select>
  402. <input id="ipt_speccode" ref="/root/temp/srchinfo/speccode" class="input_search" style="left:497px; top:50px; width:108px; height:19px; ">
  403. <script type="javascript" ev:event="onkeydown">
  404. <![CDATA[
  405. inputEnterKey("btn_sea","DOMActivate");
  406. ]]>
  407. </script>
  408. </input>
  409. <select1 id="cbo_orddeptcd" ref="/root/temp/srchinfo/orddeptcd" class="combo_search" appearance="minimal" style="left:725px; top:75px; width:140px; height:19px; ">
  410. <choices>
  411. <itemset nodeset="/root/init/orddept/dept">
  412. <label ref="deptnm"/>
  413. <value ref="deptcd"/>
  414. </itemset>
  415. </choices>
  416. <script type="javascript" ev:event="xforms-value-changed">
  417. <![CDATA[
  418. model.setValue("/root/temp/srchinfo/orddrid",""); //2008-11-18 주치의 Clear어 안되는 현상이 있음.
  419. model.setValue("/root/send/orddrinfo/userflag", "03%");
  420. model.setValue("/root/send/orddrinfo/deptcd", model.getValue("/root/temp/srchinfo/orddeptcd"));
  421. submit("TRADC02104");
  422. model.makeValue("/root/init/orddrlist/user", model.getValue("/root/init/orddrlist/user")); //2008-11-18 진료과별 조회후 전체조회시 오류발생 추가
  423. astfAddCombo("/root/init/orddrlist", "user", "userid,usernm", ",");
  424. ]]>
  425. </script>
  426. </select1>
  427. <input id="ipt_wardcd" ref="/root/temp/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:270px; top:90px; width:140px; height:19px; "/>
  428. <select1 id="cbo_orddrid" ref="/root/temp/srchinfo/orddrid" class="combo_search" appearance="minimal" style="left:957px; top:75px; width:108px; height:19px; ">
  429. <choices>
  430. <itemset nodeset="/root/init/orddrlist/user">
  431. <label ref="usernm"/>
  432. <value ref="userid"/>
  433. </itemset>
  434. </choices>
  435. </select1>
  436. <input id="ipt_prcpddstart" ref="/root/temp/srchinfo/prcpddstart" class="input_search" inputtype="date" style="left:105px; top:10px; width:110px; height:19px; "/>
  437. <input id="ipt_prcpddend" ref="/root/temp/srchinfo/prcpddend" class="input_search" inputtype="date" style="left:220px; top:10px; width:105px; height:19px; "/>
  438. <select1 id="rdo_newdrugflag" ref="/root/temp/srchinfo/newdrugflag" appearance="full" cols="2" overflow="visible" style="left:395px; top:30px; width:110px; height:20px; border-style:none; ">
  439. <choices>
  440. <item>
  441. <label>새처방</label>
  442. <value>1</value>
  443. </item>
  444. <item>
  445. <label>모두</label>
  446. <value>2</value>
  447. </item>
  448. </choices>
  449. </select1>
  450. <input id="ipt_wardnm" ref="/root/temp/srchinfo/wardnm" class="input_search" disabled="true" style="left:415px; top:74px; width:185px; height:19px; "/>
  451. <caption id="caption12" class="search_name" style="left:15px; top:98px; width:94px; height:17px; ">등록번호 :</caption>
  452. <input id="ipt_pid" ref="/root/temp/srchinfo/pid" class="input_search" style="left:110px; top:98px; width:140px; height:19px; ">
  453. <script type="javascript" ev:event="onkeydown">
  454. <![CDATA[
  455. inputEnterKey("btn_sea","DOMActivate");
  456. ]]>
  457. </script>
  458. </input>
  459. <caption id="caption15" class="search_name" visibility="hidden" style="left:15px; top:100px; width:99px; height:17px; ">투약번호 :</caption>
  460. <input id="input1" ref="/root/temp/srchinfo/drugno" class="input_search" visibility="hidden" style="left:110px; top:98px; width:140px; height:19px; "/>
  461. <select id="checkbox1" ref="/root/temp/srchinfo/prtflag" class="checkbox_search" overflow="visible" appearance="full" cols="4" rows="1" sep="|" style="left:915px; top:30px; width:150px; height:15px; border-style:none; ">
  462. <choices>
  463. <item>
  464. <label>출력</label>
  465. <value>1</value>
  466. </item>
  467. <item>
  468. <label>미출력</label>
  469. <value>2</value>
  470. </item>
  471. <item>
  472. <label>전체</label>
  473. <value>3</value>
  474. </item>
  475. </choices>
  476. </select>
  477. <select id="checkbox2" ref="/root/temp/srchinfo/tmedcnst" visibility="hidden" overflow="visible" appearance="full" cellspacing="4" cols="5" style="left:105px; top:50px; width:100px; height:20px; border-style:none; ">
  478. <choices>
  479. <itemset nodeset="/root/init/baseinfo/tmedcnst/A0036">
  480. <label ref="cdnm"/>
  481. <value ref="cdid"/>
  482. </itemset>
  483. </choices>
  484. </select>
  485. <select id="checkbox3" ref="/root/temp/srchinfo/macheckflag" class="checkbox_search" overflow="visible" appearance="full" cols="1" rows="1" style="left:915px; top:10px; width:155px; height:15px; border-style:none; ">
  486. <choices>
  487. <item>
  488. <label>마취통증의학과 제외</label>
  489. <value>Y</value>
  490. </item>
  491. </choices>
  492. </select>
  493. </group>
  494. <caption id="caption55" visibility="hidden" style="left:1055px; top:720px; width:50px; height:14px; vertical-align:middle; ">퇴원계산</caption>
  495. <caption id="caption35" class="color_9" visibility="hidden" style="left:1112px; top:719px; width:15px; height:15px; vertical-align:middle; "/>
  496. <caption id="caption36" visibility="hidden" style="left:1130px; top:720px; width:50px; height:14px; vertical-align:middle; ">퇴원수납</caption>
  497. <caption id="caption47" class="cell_2" style="left:7px; top:717px; width:70px; height:20px; vertical-align:middle; ">범 례</caption>
  498. <caption id="caption49" class="color_1" visibility="hidden" style="left:957px; top:719px; width:15px; height:15px; vertical-align:middle; "/>
  499. <datagrid id="grd_patlist" nodeset="/root/main/patinfo/patlist" caption="복약분류^의뢰^상태^회신약사^inyn^병실^투약번호^진료과^orddeptcd^등록번호^환자명^생년월일^orddrid^A/S^적용일자^프로토콜명^D#^입원일^초재진^주치의^최종상담일^최초복용약^HD/POD^퇴원상태^퇴원일^상병명^prcpkindcd^cretno^prcpgenrflag^exptypeyn^ 출력일시^difflagcd^wardcd" colsep="^" colwidth="56, 49, 51, 62, 36, 49, 60, 84, 100, 75, 84, 81, 100, 57, 81, 190, 29, 82, 56, 63, 80, 100, 70, 59, 82, 130, 100, 100, 100, 88, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:127px; width:1194px; height:583px; ">
  500. <col ref="tmedcnst" visibility="hidden" style="text-align:center; "/>
  501. <col ref="req" visibility="hidden" style="text-align:center; "/>
  502. <col ref="stat" visibility="hidden" style="text-align:center; "/>
  503. <col ref="replpharmst" visibility="hidden" style="text-align:center; "/>
  504. <col ref="inyn" visibility="hidden" style="text-align:center; "/>
  505. <col ref="roomcd" style="text-align:center; "/>
  506. <col ref="drugno" style="text-align:center; "/>
  507. <col ref="orddeptnm"/>
  508. <col ref="orddeptcd" visibility="hidden"/>
  509. <col ref="pid" style="text-align:center; "/>
  510. <col ref="patnm" style="text-align:center; "/>
  511. <col ref="brthdd" format="yyyy-mm-dd" style="text-align:center; "/>
  512. <col ref="orddrid" visibility="hidden"/>
  513. <col ref="agesex" style="text-align:center; "/>
  514. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  515. <col ref="prtlnm" visibility="hidden"/>
  516. <col ref="anticncrdayno" visibility="hidden"/>
  517. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  518. <col ref="fsexamflag" style="text-align:center; "/>
  519. <col ref="orddrnm"/>
  520. <col ref="lastcnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  521. <col ref="fstdrugcd"/>
  522. <col ref="hd_pod" style="text-align:center; "/>
  523. <col ref="dschstat" visibility="hidden" style="text-align:center; "/>
  524. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  525. <col ref="diagnm"/>
  526. <col ref="srchflag" visibility="hidden"/>
  527. <col ref="cretno" visibility="hidden"/>
  528. <col ref="prcpgenrflag" visibility="hidden"/>
  529. <col ref="exptypeyn" visibility="hidden"/>
  530. <col ref="prntdt" format="yyyy-mm-dd hh:mm"/>
  531. <col ref="prntdt" visibility="hidden"/>
  532. <col ref="wardcd" visibility="hidden"/>
  533. <script type="javascript" ev:event="ondblclick">
  534. <![CDATA[
  535. if(grd_patlist.iscell(event.target) && grd_patlist.row != 0 ){
  536. model.setValue("/root/temp/srchinfo/tmedprntdt","");
  537. model.makeValue("/root/main/patinfo/patlist[" + grd_patlist.row + "]/difflagcd", model.getValue("/root/init/difflagcd")); //복약설명서 출력조건[병원자료:1 , DIF한글:2, DIF영문:2]
  538. modal("SMADC02201", 0, 50, 50, "", "/root/main/patinfo/patlist[" + grd_patlist.row + "]", "/root/temp/srchinfo");
  539. }
  540. btn_sea.dispatch("DOMActivate");
  541. /*
  542. if (model.getValue("/root/temp/srchinfo/tmedprntdt") != '' ) {
  543. model.setValue( "/root/main/patinfo/patlist[" + datagrid1.row + "]/prntdt",model.getValue("/root/temp/srchinfo/tmedprntdt"));
  544. datagrid1.rowstyle(datagrid1.row, "data", "background-color") = "#7BE6B7" ; // 색깔표시
  545. }
  546. fPrntCnt(); //2008-11-25 출력건수 조회
  547. */
  548. ]]>
  549. </script>
  550. <script type="javascript" ev:event="onaftersort">
  551. <![CDATA[
  552. grd_patlist.gridToInstance();
  553. /* 화면에서 정렬한 사항이 그대로 유지되도록 설정 */
  554. var sortcol = grd_patlist.colAttribute(grd_patlist.col, "ref") + " " + grd_patlist.sort(1,1, grd_patlist.rows, grd_patlist.cols) ;
  555. model.setValue("/root/temp/srchinfo/sortcol", sortcol);
  556. ]]>
  557. </script>
  558. </datagrid>
  559. <select id="chk_ward" ref="/root/temp/srchinfo/ward" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="2" sep="|" style="left:415px; top:100px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  560. <choices>
  561. <itemset nodeset="/root/init/deptlist/ward">
  562. <label ref="deptnm"/>
  563. <value ref="deptcd"/>
  564. </itemset>
  565. </choices>
  566. <script type="javascript" ev:event="onclick">
  567. <![CDATA[
  568. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0){
  569. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  570. //ipt_wardcd.value = "2100300000|2110200000|2110201000|2280200000|2360800000|2361501000|3050107000|3050108000|3050109000|3050110000|3050112000|3050113000|3050115000|3050116000|3050118000|3050119000|3050120000|3050121000|3050122000|3050123000|3050135000|3050136000|3060000000|3060100000|3060200000|3060300000|3060400000|3060600000|3120400000";
  571. //ipt_wardnm.value = "분만실|신생아실|신생아중환자실|응급의료센터|통원수술센터|임상시험센터병동|04층동병동|04층서병동|05층동병동|05층서병동|06층동병동|06층서병동|07층동병동|07층서병동|08층동병동|08층서병동|09층동병동|09층서병동|10층동병동|10층서병동|응급병동|호스피스병동|중환자실|내과중환자실|외과중환자실|신경외과중환자실|순환기계중환자실|2층중환자실|특수주사실특수주사";
  572. //model.setValue("/root/temp/srchinfo/ward", "T|2100300000|2110200000|2110201000|2280200000|2360800000|2361501000|3050107000|3050108000|3050109000|3050110000|3050112000|3050113000|3050115000|3050116000|3050118000|3050119000|3050120000|3050121000|3050122000|3050123000|3050135000|3050136000|3060000000|3060100000|3060200000|3060300000|3060400000|3060600000|3120400000");
  573. var ward = "";
  574. for(var i = 1; i <= getNodesetCount("/root/init/deptlist/ward"); i++){
  575. if(i == (getNodesetCount("/root/init/deptlist/ward"))){
  576. ward += model.getValue("/root/init/deptlist/ward["+i+"]/deptcd");
  577. }else{
  578. ward += model.getValue("/root/init/deptlist/ward["+i+"]/deptcd")+"|";
  579. }
  580. }
  581. model.setValue("/root/temp/srchinfo/ward", ward);
  582. } else {
  583. model.setValue("/root/temp/srchinfo/ward", "");
  584. }
  585. model.refresh();
  586. }
  587. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  588. ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
  589. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  590. } else {
  591. ipt_wardcd.value = chk_ward.value;
  592. ipt_wardnm.value = chk_ward.label;
  593. }
  594. //input3.refresh();
  595. //검사실 체크박스 감추기
  596. //chk_excuroom.visible = false;
  597. ]]>
  598. </script>
  599. </select>
  600. <caption id="caption10" class="color_6" vertical-galign="middle" style="left:97px; top:719px; width:15px; height:15px; "/>
  601. <caption id="caption11" style="left:120px; top:720px; width:100px; height:14px; vertical-align:middle; ">일괄출력불가</caption>
  602. <group id="grp_report" visibility="hidden" style="left:745px; top:220px; width:300px; height:275px; "/>
  603. <caption id="caption13" class="color_4" style="left:207px; top:719px; width:15px; height:15px; vertical-align:middle; "/>
  604. <caption id="caption14" style="left:230px; top:720px; width:50px; height:14px; vertical-align:middle; ">출력</caption>
  605. <caption id="txtCnt" style="left:955px; top:100px; width:235px; height:20px; font-size:11pt; text-align:right; "/>
  606. <select1 id="rdo_difflagcd" ref="/root/init/difflagcd" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:365px; top:720px; width:255px; height:15px; border-style:none; ">
  607. <choices>
  608. <item>
  609. <label>병원복약기준자료</label>
  610. <value>1</value>
  611. </item>
  612. <!-- <item>
  613. <label>DIF한글</label>
  614. <value>2</value>
  615. </item>
  616. <item>
  617. <label>DIF영문</label>
  618. <value>3</value>
  619. </item> -->
  620. </choices>
  621. </select1>
  622. <object id="Base64_Preview1" clsid="{72e5d9ed-0d6a-46e8-aead-23144bfef878}" style="left:200px; top:290px; width:415px; height:380px; background-color:transparent; "/>
  623. <select id="chk_autoprnt" ref="/root/temp/srchinfo/autoprntflag" visibility="hidden" overflow="visible" appearance="full" cols="1" rows="1" sep="|" style="left:645px; top:720px; width:85px; height:20px; border-style:none; ">
  624. <choices>
  625. <item>
  626. <label>자동출력</label>
  627. <value>Y</value>
  628. </item>
  629. </choices>
  630. <script type="javascript" ev:event="xforms-value-changed">
  631. <![CDATA[
  632. // 20100223_laboru_복약설명서 자동출력
  633. fChkAutoDescPrnt();
  634. ]]>
  635. </script>
  636. </select>
  637. </group>
  638. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  639. <button id="button1" class="btn6_letter9" style="left:564px; top:5px; width:140px; height:22px; ">
  640. <caption>복약설명서일괄출력</caption>
  641. <script type="javascript" ev:event="DOMActivate">
  642. <![CDATA[
  643. fGetTmedlist();
  644. fPrntCnt(); //2008-11-25 출력건수 조회
  645. ]]>
  646. </script>
  647. </button>
  648. <button id="button2" class="btn3_letter6" style="left:270px; top:5px; width:80px; height:22px; ">
  649. <caption>통합결과조회</caption>
  650. <script type="javascript" ev:event="DOMActivate">
  651. <![CDATA[
  652. open("SMAER00800 ","","","","","/root/main/patinfo/patlist["+grd_patlist.row+"]/pid","/root/send/data/singdata/srchpid");
  653. ]]>
  654. </script>
  655. </button>
  656. <button id="button3" class="btn3_letter6" style="left:376px; top:5px; width:104px; height:22px; ">
  657. <caption>투약기록조회</caption>
  658. <script type="javascript" ev:event="DOMActivate">
  659. <![CDATA[
  660. open("SMMNR04500");
  661. ]]>
  662. </script>
  663. </button>
  664. <button id="button7" class="btn3_letter4" style="left:82px; top:5px; width:80px; height:22px; ">
  665. <caption>약력조회</caption>
  666. <script type="javascript" ev:event="DOMActivate">
  667. <![CDATA[
  668. open("SMADB10100",0,0,0,"SMADB10100","/root/main/patinfo/patlist["+grd_patlist.row+"]/pid","/root/temp/patinfo/pid");
  669. ]]>
  670. </script>
  671. </button>
  672. <button id="button8" class="btn3_letter4" style="left:0px; top:5px; width:80px; height:22px; ">
  673. <caption>처방조회</caption>
  674. <script type="javascript" ev:event="DOMActivate">
  675. <![CDATA[
  676. setParameter ("SPMMO14900_pid" , model.getValue("/root/main/patinfo/patlist["+grd_patlist.row+"]/pid")); //등록번호
  677. setParameter ("SPMMO14900_hngnm" , model.getValue("/root/main/patinfo/patlist["+grd_patlist.row+"]/patnm")); //성명
  678. open("SPMMO14900");
  679. ]]>
  680. </script>
  681. </button>
  682. <button id="button10" class="btn4_letter6" visibility="hidden" style="left:970px; top:5px; width:56px; height:22px; ">
  683. <caption>일괄상담완료</caption>
  684. <script type="javascript" ev:event="DOMActivate">
  685. <![CDATA[
  686. window.load( "SPADC61000_복약상담일괄완료.xrw","modal","code", "left:800px; top:500px; width:400px; height:250px;min:hidden;max:hidden;resize:false;" );
  687. ]]>
  688. </script>
  689. </button>
  690. <button id="btn_prt" class="btn6_letter2" style="left:706px; top:5px; width:56px; height:22px; ">
  691. <caption>출력</caption>
  692. <script type="javascript" ev:event="DOMActivate">
  693. <![CDATA[
  694. //exeReportPreview("RPADC02101", "XMLSTR", "", "", "true","","","","","true");
  695. exeReportPreview("RPADC02101", "XMLSTR", "", "", "false","","","","","false");
  696. ]]>
  697. </script>
  698. </button>
  699. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1078px; top:5px; width:56px; height:22px; ">
  700. <caption>저장</caption>
  701. </button>
  702. <button id="btn_del" class="btn4_letter2" visibility="hidden" style="left:1138px; top:5px; width:56px; height:22px; ">
  703. <caption>삭제</caption>
  704. </button>
  705. <button id="btn_prtndept" class="btn6_letter5" style="left:764px; top:5px; width:92px; height:22px; ">
  706. <caption>병동별 출력</caption>
  707. <script type="javascript" ev:event="DOMActivate">
  708. <![CDATA[
  709. var sRoomCd = "";
  710. //병실코드로 Sorting
  711. grd_patlist.colSort(grd_patlist.colRef("wardcd")) = "asc";
  712. grd_patlist.sort(1, 1, (grd_patlist.rows - 1), (grd_patlist.cols - 1))="usersort";
  713. grd_patlist.gridToInstance();
  714. grd_patlist.sortClear();
  715. //보고서 출력시 다음 페이지로 넘기기 위하여 각 병실의 마지막에 플로그 표시.
  716. sRoomCd = model.getValue("/root/main/patinfo/patlist[1]/wardcd");
  717. for(var iRowNo = 1 ; iRowNo < grd_patlist.rows ; iRowNo++ ) {
  718. if(iRowNo < (grd_patlist.rows - 1)) {
  719. if(model.getValue("/root/main/patinfo/patlist["+iRowNo+"]/wardcd") != model.getValue("/root/main/patinfo/patlist["+(iRowNo+1)+"]/wardcd")) {
  720. model.makeValue("/root/main/patinfo/patlist["+ iRowNo +"]/newpageyn", "Y");
  721. } else {
  722. model.makeValue("/root/main/patinfo/patlist["+ iRowNo +"]/newpageyn", "N");
  723. }
  724. } else {
  725. model.makeValue("/root/main/patinfo/patlist["+ iRowNo +"]/newpageyn", "N");
  726. }
  727. }
  728. grd_patlist.refresh();
  729. exeReportPreview("RPADC02101", "XMLSTR", "", "", "false","","","","","false");
  730. //초기화
  731. for(var iRowNo = 1 ; iRowNo < grd_patlist.rows ; iRowNo++ ) {
  732. model.makeValue("/root/main/patinfo/patlist["+ iRowNo +"]/newpageyn", "N");
  733. }
  734. ]]>
  735. </script>
  736. </button>
  737. <button id="button6" class="btn3_letter6" style="left:164px; top:5px; width:80px; height:22px; ">
  738. <caption>통합기록조회</caption>
  739. <script type="javascript" ev:event="DOMActivate">
  740. <![CDATA[
  741. setParameter("SMMRI00400_param_pid", model.getValue("/root/main/patinfo/patlist["+grd_patlist.row+"]/pid"));
  742. open("SMMRI00400");
  743. ]]>
  744. </script>
  745. </button>
  746. <button id="button11" class="btn3_letter4" style="left:482px; top:5px; width:80px; height:22px; ">
  747. <caption>약품편람</caption>
  748. <script type="javascript" ev:event="DOMActivate">
  749. <![CDATA[
  750. open("SMADB01900");
  751. ]]>
  752. </script>
  753. </button>
  754. </group>
  755. <group id="group4" visibility="hidden" style="left:735px; top:732px; width:130px; height:20px; background-color:#ffff99; ">
  756. <caption id="caption16" style="left:1px; top:2px; width:110px; height:15px; font-weight:bold; color:#ff0000; ">자동 출력 중</caption>
  757. </group>
  758. </xhtml:body>
  759. </xhtml:html>