SMADT10200_병동처방전출력.xrw 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101
  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. <sumrslt/>
  11. <sumlist>
  12. <sumlist>
  13. <sumdd/>
  14. <sumtm/>
  15. <sumdt/>
  16. <prcpflagnm/>
  17. <cnt/>
  18. <sumflag/>
  19. <drugkind/>
  20. </sumlist>
  21. </sumlist>
  22. <patlist>
  23. <patlist>
  24. <sel/>
  25. <prnttims/>
  26. <drugdd/>
  27. <drugno/>
  28. <wardnm/>
  29. <pid/>
  30. <patnm/>
  31. <prcpdd/>
  32. <orddd/>
  33. <cretno/>
  34. <orddeptcd/>
  35. <orddeptnm/>
  36. <orddrnm/>
  37. <prcpgenrflag/>
  38. <wardcd/>
  39. <prntdt/>
  40. <drugflag/>
  41. </patlist>
  42. </patlist>
  43. <prcpdata>
  44. <patinfo/>
  45. <diaginfo/>
  46. <sumlist/>
  47. </prcpdata>
  48. <lbllist>
  49. <lbllist/>
  50. </lbllist>
  51. <barcdprntsetup>
  52. </barcdprntsetup>
  53. </main>
  54. <send>
  55. <suminfo>
  56. <prcpdd/>
  57. <prcpflag/>
  58. <instcd/>
  59. <pid/>
  60. <ioflag>I</ioflag>
  61. <sumdrugkind/>
  62. <onlyantis/>
  63. <fromdd/>
  64. <fromtm/>
  65. <todd/>
  66. <totm/>
  67. <sumdt/>
  68. <mstocdeptcd/>
  69. </suminfo>
  70. <sumlistinfo/>
  71. <patlistinfo/>
  72. <prcpinfo/>
  73. <deptinfo>
  74. <deptflag/>
  75. </deptinfo>
  76. <atcinfo>
  77. <drugdd/>
  78. <drugflag>I</drugflag>
  79. <instcd/>
  80. </atcinfo>
  81. <scrnid/>
  82. <atcreq/>
  83. </send>
  84. <init>
  85. <barcdprntsetup>
  86. <setupinfo/>
  87. </barcdprntsetup>
  88. <sumtmflaglist>
  89. <flaglist>
  90. <flagcd/>
  91. <flagnm/>
  92. <fromddflag/>
  93. <fromtm/>
  94. <toddflag/>
  95. <totm/>
  96. </flaglist>
  97. </sumtmflaglist>
  98. <sumprcpflagyn>
  99. <flagyn>
  100. <flagyn/>
  101. <orderbyatc/>
  102. </flagyn>
  103. </sumprcpflagyn>
  104. <roomyn>
  105. <roomyn/>
  106. </roomyn>
  107. </init>
  108. <hidden>
  109. <srchinfo>
  110. <prcpdd/>
  111. <drugkind/>
  112. <etcflag/>
  113. <etcdescflag/>
  114. <fst_drugno/>
  115. <last_drugno/>
  116. <prcpflag/>
  117. <mpsflag/>
  118. <lblyn/>
  119. <lbl_drug/>
  120. <lbl_inj/>
  121. <wardcd/>
  122. <pid/>
  123. <prntflag/>
  124. <instcd/>
  125. <sumdt/>
  126. <autokind/>
  127. <autoprntflag/>
  128. <drugall/>
  129. <injall/>
  130. <wardnm/>
  131. <reprintyn/>
  132. <prntkind/>
  133. <reprintyn/>
  134. <onlyantis/>
  135. <autoatcyn/>
  136. <autoendyn>Y</autoendyn>
  137. <orderbyatc/>
  138. <fromddflag/>
  139. <fromtm/>
  140. <toddflag/>
  141. <totm/>
  142. <endtime/>
  143. <autoyn/>
  144. <stocdeptcd>3242107000</stocdeptcd>
  145. <multiyn/>
  146. </srchinfo>
  147. <deptlist>
  148. <ward>
  149. <wardcd/>
  150. <wardnm/>
  151. </ward>
  152. </deptlist>
  153. <popupinfo>
  154. <prcpdd/>
  155. <drugno/>
  156. <pid/>
  157. <ward/>
  158. </popupinfo>
  159. <sleeptime>1</sleeptime>
  160. <autoend/>
  161. <timelist/>
  162. <endtype/>
  163. </hidden>
  164. <temp>
  165. <ret/>
  166. <srchinfo>
  167. <ward/>
  168. </srchinfo>
  169. <stocdeptcd/>
  170. </temp>
  171. </root>
  172. </instance>
  173. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  174. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  175. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  176. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  177. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  178. <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT10200.js"/>
  179. <script type="javascript">
  180. <![CDATA[
  181. //프린터 설정
  182. function fSetPrint() {
  183. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  184. if(count == 0) {
  185. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  186. }
  187. open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  188. }
  189. ]]>
  190. </script>
  191. <script type="javascript" ev:event="xforms-ready">
  192. <![CDATA[
  193. fInit();
  194. grd_patlist.fixedcellcheckbox(0,0) = true;
  195. fInSumList();
  196. ]]>
  197. </script>
  198. <submission id="TRADT10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/main/sumlist"/>
  199. <submission id="TRADT10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patlistinfo" replace="instance" resultref="/root/main/patlist"/>
  200. <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  201. <submission id="TRADT10205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/main/patlist"/>
  202. <submission id="TXADT10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/suminfo" replace="instance" resultref="/root/main/sumrslt"/>
  203. <submission id="TXADT10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/atcinfo" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  204. <!-- 프린터 설정-->
  205. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  206. <!--마감시간구분 설정-->
  207. <submission id="TRADT10206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/init/sumtmflaglist"/>
  208. <!--마감시 처방구분이 추가일때 adm과 응급도 함께 처리하는지 여부 -->
  209. <submission id="TRADT10207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/suminfo" replace="instance" resultref="/root/init/sumprcpflagyn"/>
  210. <!--라벨 출력 방법 -->
  211. <submission id="TRADT10208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/suminfo" replace="instance" resultref="/root/init/lbltype"/>
  212. <submission id="TRADT01106" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/misdeptlist"/>
  213. <script type="javascript" ev:event="xforms-model-destruct">
  214. <![CDATA[
  215. if (gTimer != null) {
  216. window.clearinterval(gTimer);
  217. gTimer = null;
  218. }
  219. ]]>
  220. </script>
  221. <script type="javascript" ev:event="xforms-close">
  222. <![CDATA[
  223. if (gTimer != null) {
  224. window.clearinterval(gTimer);
  225. gTimer = null;
  226. }
  227. ]]>
  228. </script>
  229. <submission id="TRADT10210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/atcreq" replace="instance"/>
  230. <submission id="TRADT10213" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/roomyn/roomyn"/>
  231. </model>
  232. </xhtml:head>
  233. <xhtml:body guideline="1,1195;1,0;1,1327;2,783;2,756;1,0;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  234. <script type="javascript" ev:event="onkeyup">
  235. <![CDATA[
  236. if (event.keyCode==121){
  237. checkbox5.visible=true;
  238. checkbox6.visible=true;
  239. }
  240. ]]>
  241. </script>
  242. <line id="line13" class="line_2" style="x1:0px; y1:442px; x2:570px; y2:442px; "/>
  243. <line id="line8" class="line_2" style="x1:0px; y1:334px; x2:570px; y2:334px; "/>
  244. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  245. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">병동처방전출력(Ver 0701)</caption>
  246. </group>
  247. <button id="button20" class="btn4_letter2" visibility="hidden" style="left:575px; top:448px; width:56px; height:22px; ">
  248. <caption>종료</caption>
  249. </button>
  250. <line id="line6" class="line_2" style="x1:0px; y1:63px; x2:570px; y2:63px; "/>
  251. <line id="line9" class="line_2" style="x1:0px; y1:185px; x2:570px; y2:185px; "/>
  252. <line id="line10" class="line_2" style="x1:0px; y1:288px; x2:570px; y2:288px; "/>
  253. <line id="line11" class="line_2" style="x1:0px; y1:313px; x2:570px; y2:313px; "/>
  254. <caption id="caption20" class="cell_1" style="left:0px; top:213px; width:80px; height:23px; vertical-align:middle; ">병동</caption>
  255. <line id="line12" class="line_2" style="x1:0px; y1:211px; x2:570px; y2:211px; "/>
  256. <caption id="caption21" class="cell_1" style="left:0px; top:238px; width:80px; height:23px; vertical-align:middle; ">등록번호</caption>
  257. <line id="line14" class="line_2" style="x1:0px; y1:236px; x2:570px; y2:236px; "/>
  258. <caption id="caption13" class="cell_1" style="left:0px; top:65px; width:80px; height:45px; vertical-align:middle; ">처방구분</caption>
  259. <caption id="caption22" class="cell_1" style="left:0px; top:40px; width:80px; height:23px; vertical-align:middle; ">적용일자</caption>
  260. <caption id="caption24" class="cell_1" style="left:0px; top:265px; width:80px; height:70px; vertical-align:middle; ">출력구분</caption>
  261. <caption id="caption25" style="left:190px; top:188px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
  262. <caption id="caption26" class="cell_1" style="left:0px; top:420px; width:80px; height:23px; vertical-align:middle; ">처방구분</caption>
  263. <line id="line15" class="line_2" style="x1:0px; y1:261px; x2:570px; y2:261px; "/>
  264. <line id="line17" class="line_1" style="x1:0px; y1:35px; x2:570px; y2:35px; "/>
  265. <button id="button25" class="btn3_letter4" style="left:0px; top:468px; width:80px; height:22px; ">
  266. <caption>출력결과</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. messageBox("개발중", "E008");
  270. ]]>
  271. </script>
  272. </button>
  273. <button id="button5" class="icon_search" visibility="visible" style="left:420px; top:215px; width:16px; height:16px; ">
  274. <caption/>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. if(chk_ward.visible==true){
  278. chk_ward.visible = false;
  279. }else {
  280. chk_ward.visible = true;
  281. }
  282. model.refresh();
  283. ]]>
  284. </script>
  285. </button>
  286. <button id="btn_prt" class="btn6_letter2" style="left:510px; top:365px; width:56px; height:22px; ">
  287. <caption>출력</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. if(model.getValue("/root/hidden/srchinfo/fst_drugno") != "" || model.getValue("/root/hidden/srchinfo/fst_drugno") != "") {
  291. //setInputNodeCurText();
  292. var bResult = fChgDrugno("first");
  293. if(bResult){
  294. fInSumList();
  295. if(grd_patlist.rows > 1) {
  296. model.setValue("/root/main/patlist/patlist/sel", "Y");
  297. }
  298. //fPrcpMPSPrint();
  299. }
  300. }
  301. prntcheck = "Y"
  302. fPrcpMPSPrint();
  303. ]]>
  304. </script>
  305. </button>
  306. <button id="button1" class="btn6_letter2" style="left:510px; top:75px; width:56px; height:22px; ">
  307. <caption>마감</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. if ( model.getValue("/root/hidden/srchinfo/prcpflag") =="E" ){
  311. messageBox("응급실은 마감할 수 없습니다.", "E999");
  312. return;
  313. }
  314. fHosInSum("Y");
  315. /*var instcd = getUserInfo("dutplceinstcd");
  316. if(instcd == "014") { // 성가 마감시 산제 데이터 ATC 자동전송
  317. model.makeValue("/root/send/atcreq/atc4", "Y");
  318. model.makeValue("/root/send/atcreq/srchflag1", "I");
  319. model.makeValue("/root/send/atcreq/startdd", model.getValue("/root/hidden/srchinfo/prcpdd"));
  320. model.makeValue("/root/send/atcreq/starttm", "0000");
  321. model.makeValue("/root/send/atcreq/enddd", model.getValue("/root/hidden/srchinfo/prcpdd"));
  322. model.makeValue("/root/send/atcreq/endtm", "2359");
  323. model.makeValue("/root/send/atcreq/powdflag", "Y");
  324. model.makeValue("/root/send/atcreq/srchprcpkind", model.getValue("/root/hidden/srchinfo/prcpflag"));
  325. model.makeValue("/root/send/atcreq/srchtrsmflag", "N"); // 미전송
  326. submit("TRADT10210");
  327. }*/
  328. fInSumList();
  329. ]]>
  330. </script>
  331. </button>
  332. <select id="chk_mps" ref="/root/hidden/srchinfo/mpsflag" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:85px; top:267px; width:105px; height:20px; border-style:none; ">
  333. <choices>
  334. <item>
  335. <label>처방전</label>
  336. <value>P</value>
  337. </item>
  338. </choices>
  339. </select>
  340. <select id="chk_lbl_drug" ref="/root/hidden/srchinfo/lbl_drug" overflow="visible" appearance="full" cellspacing="10" cols="10" rows="1" sep="|" style="left:230px; top:295px; width:325px; height:20px; border-style:none; ">
  341. <choices>
  342. <item>
  343. <label>정제</label>
  344. <value>D</value>
  345. </item>
  346. <item>
  347. <label>PTP</label>
  348. <value>DT</value>
  349. </item>
  350. <item>
  351. <label>기타약</label>
  352. <value>DX</value>
  353. </item>
  354. <item>
  355. <label>향정</label>
  356. <value>DH</value>
  357. </item>
  358. </choices>
  359. <script type="javascript" ev:event="xforms-value-changed">
  360. <![CDATA[
  361. if(model.getValue("/root/hidden/srchinfo/lbl_drug") == ""){
  362. if(model.getValue("/root/hidden/srchinfo/lbl_inj") == ""){
  363. model.setValue("/root/hidden/srchinfo/lblyn", "");
  364. }
  365. } else {
  366. model.setValue("/root/hidden/srchinfo/lblyn", "Y");
  367. }
  368. model.refresh();
  369. ]]>
  370. </script>
  371. </select>
  372. <select id="chk_lbl_inj" ref="/root/hidden/srchinfo/lbl_inj" overflow="visible" appearance="full" cellspacing="10" cols="10" rows="1" sep="|" style="left:230px; top:318px; width:315px; height:18px; border-style:none; ">
  373. <choices>
  374. <item>
  375. <label>일반주사</label>
  376. <value>I</value>
  377. </item>
  378. <item>
  379. <label>영양수액</label>
  380. <value>IO</value>
  381. </item>
  382. <item>
  383. <label>기타</label>
  384. <value>IX</value>
  385. </item>
  386. <item>
  387. <label>향정</label>
  388. <value>IH</value>
  389. </item>
  390. </choices>
  391. </select>
  392. <input id="ipt_prcpdd" ref="/root/hidden/srchinfo/prcpdd" class="input_default" inputtype="date" style="left:85px; top:41px; width:135px; height:19px; ">
  393. <script type="javascript" ev:event="xforms-value-changed">
  394. <![CDATA[
  395. fInSumList();
  396. ]]>
  397. </script>
  398. </input>
  399. <input id="ipt_fst_drugno" ref="/root/hidden/srchinfo/fst_drugno" class="input_search" autonext="false" maxlength="5" format="99999" style="left:85px; top:189px; width:100px; height:19px; ">
  400. <script type="javascript" ev:event="xforms-value-changed">
  401. <![CDATA[
  402. fChgDrugno("first");
  403. ]]>
  404. </script>
  405. <script type="javascript" ev:event="onkeyup">
  406. <![CDATA[
  407. if(event.keyCode == "13") {
  408. setInputNodeCurText();
  409. var bResult = fChgDrugno("first");
  410. if(bResult){
  411. fInSumList();
  412. if(grd_patlist.rows > 1) {
  413. model.setValue("/root/main/patlist/patlist/sel", "Y");
  414. }
  415. //fPrcpMPSPrint();
  416. }
  417. }
  418. ]]>
  419. </script>
  420. </input>
  421. <input id="ipt_last_drugno" ref="/root/hidden/srchinfo/last_drugno" class="input_search" autonext="false" maxlength="5" format="99999" style="left:205px; top:189px; width:100px; height:19px; ">
  422. <script type="javascript" ev:event="xforms-value-changed">
  423. <![CDATA[
  424. fChgDrugno("last");
  425. ]]>
  426. </script>
  427. <script type="javascript" ev:event="onkeyup">
  428. <![CDATA[
  429. if(event.keyCode == "13") {
  430. setInputNodeCurText();
  431. var bResult = fChgDrugno("last");
  432. if(bResult){
  433. fInSumList();
  434. model.setValue("/root/main/patlist/patlist/sel", "Y");
  435. //fPrcpMPSPrint();
  436. }
  437. }
  438. ]]>
  439. </script>
  440. </input>
  441. <input id="ipt_pid" ref="/root/hidden/srchinfo/pid" class="input_default" autonext="false" maxlength="10" style="left:85px; top:239px; width:100px; height:19px; ">
  442. <script type="javascript" ev:event="onkeyup">
  443. <![CDATA[
  444. if(event.keyCode == "13") {
  445. setInputNodeCurText();
  446. fInSumList();
  447. }
  448. ]]>
  449. </script>
  450. </input>
  451. <select id="chk_lbl" ref="/root/hidden/srchinfo/lblyn" overflow="visible" appearance="full" style="left:85px; top:295px; width:55px; height:15px; border-style:none; ">
  452. <choices>
  453. <item>
  454. <label>라벨</label>
  455. <value>Y</value>
  456. </item>
  457. </choices>
  458. <script type="javascript" ev:event="xforms-value-changed">
  459. <![CDATA[
  460. fChkLBL_YN();
  461. ]]>
  462. </script>
  463. </select>
  464. <output id="output1" ref="/root/hidden/srchinfo/instcd" visibility="hidden" style="left:640px; top:448px; width:100px; height:19px; "/>
  465. <datagrid id="grd_sumlist" nodeset="/root/main/sumlist/sumlist" caption="마감일자^마감시간^sumdt^처방구분^건수^sumflag^drugkind" colsep="^" colwidth="80, 60, 60, 60, 40, 50, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:575px; top:35px; width:260px; height:305px; ">
  466. <col ref="sumdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
  467. <col ref="sumtm" format="hh:nn:ss" style="text-align:center; vertical-align:middle; "/>
  468. <col ref="sumdt" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  469. <col ref="prcpflagnm" style="text-align:center; vertical-align:middle; "/>
  470. <col ref="cnt" style="text-align:right; vertical-align:middle; "/>
  471. <col ref="sumflag" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  472. <col ref="drugkind" visibility="hidden"/>
  473. <script type="javascript" ev:event="onclick">
  474. <![CDATA[
  475. fPrntPatList();
  476. ]]>
  477. </script>
  478. </datagrid>
  479. <datagrid id="grd_patlist" nodeset="/root/main/patlist/patlist" visibility="visible" caption="^출력^drugdd^투약번호^병동^병실^환자번호^성명^처방일^orddd^cretno^orddeptcd^진료과^진료의사^prcpgenrflag^wardcd^출력시간^drugflag" colsep="^" colwidth="36, 45, 70, 61, 80, 70, 70, 69, 80, 61, 43, 67, 90, 85, 84, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:835px; top:35px; width:350px; height:305px; ">
  480. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  481. <col ref="prnttims" style="text-align:right; "/>
  482. <col ref="drugdd" visibility="hidden" style="text-align:right; "/>
  483. <col ref="drugno" style="text-align:right; "/>
  484. <col ref="wardnm" style="text-align:center; "/>
  485. <col ref="roomcd" style="text-align:center; "/>
  486. <col ref="pid" style="text-align:center; "/>
  487. <col ref="patnm" style="text-align:center; "/>
  488. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  489. <col ref="orddd" visibility="hidden"/>
  490. <col ref="cretno" visibility="hidden"/>
  491. <col ref="orddeptcd" visibility="hidden"/>
  492. <col ref="orddeptnm" style="text-align:center; "/>
  493. <col ref="orddrnm" style="text-align:center; "/>
  494. <col ref="prcpgenrflag" visibility="hidden"/>
  495. <col ref="wardcd" visibility="hidden"/>
  496. <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  497. <col ref="drugflag" visibility="hidden"/>
  498. </datagrid>
  499. <button id="btn_sea" class="btn1_letter2" visibility="visible" style="left:510px; top:40px; width:56px; height:22px; ">
  500. <caption>조회</caption>
  501. <script type="javascript" ev:event="DOMActivate">
  502. <![CDATA[
  503. fInSumList();
  504. ]]>
  505. </script>
  506. </button>
  507. <select1 id="rdo_prcp" ref="/root/hidden/srchinfo/prcpflag" class="radio_search" appearance="full" cellspacing="6" cols="7" overflow="visible" style="left:86px; top:67px; width:114px; height:20px; border-style:none; ">
  508. <choices>
  509. <item>
  510. <label>정규</label>
  511. <value>R</value>
  512. </item>
  513. <item>
  514. <label>추가</label>
  515. <value>A</value>
  516. </item>
  517. </choices>
  518. <script type="javascript" ev:event="xforms-value-changed">
  519. <![CDATA[
  520. model.setValue("/root/hidden/srchinfo/endtime", "");
  521. model.setValue("/root/hidden/srchinfo/fromddflag", "");
  522. model.setValue("/root/hidden/srchinfo/fromtm", "");
  523. model.setValue("/root/hidden/srchinfo/toddflag", "");
  524. model.setValue("/root/hidden/srchinfo/totm", "");
  525. //마감시간구분 재조회
  526. if(model.getValue("/root/hidden/srchinfo/prcpflag") == "R" || model.getValue("/root/hidden/srchinfo/prcpflag") == "A") {
  527. model.copyNode("/root/send/sumlistinfo", "/root/hidden/srchinfo");
  528. submit("TRADT10206");
  529. cmb_sumtmflag.select(0);
  530. cmb_sumtmflag.disabled = false;
  531. cmb_fromddflag.disabled = false;
  532. ipt_fromtm.disabled = false;
  533. cmb_toddflag.disabled = false;
  534. ipt_totm.disabled = false;
  535. } else {
  536. cmb_sumtmflag.disabled = true;
  537. cmb_fromddflag.disabled = true;
  538. ipt_fromtm.disabled = true;
  539. cmb_toddflag.disabled = true;
  540. ipt_totm.disabled = true;
  541. }
  542. fInSumList();
  543. ]]>
  544. </script>
  545. </select1>
  546. <caption id="caption1" class="cell_1" style="left:0px; top:188px; width:80px; height:23px; vertical-align:middle; ">투약번호</caption>
  547. <caption id="caption2" class="cell_1" style="left:0px; top:138px; width:80px; height:23px; vertical-align:middle; ">약주사구분</caption>
  548. <select1 id="radio1" ref="/root/hidden/srchinfo/drugkind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:86px; top:140px; width:165px; height:20px; border-style:none; ">
  549. <choices>
  550. <item>
  551. <label>전체</label>
  552. <value>T</value>
  553. </item>
  554. <item>
  555. <label>약</label>
  556. <value>D</value>
  557. </item>
  558. <item>
  559. <label>주사</label>
  560. <value>M</value>
  561. </item>
  562. </choices>
  563. <script type="javascript" ev:event="xforms-value-changed">
  564. <![CDATA[
  565. fInSumList();
  566. ]]>
  567. </script>
  568. </select1>
  569. <button id="btn_autoprnt_start" class="btn1_letter6" style="left:355px; top:468px; width:104px; height:22px; ">
  570. <caption>자동출력시작</caption>
  571. <script type="javascript" ev:event="DOMActivate">
  572. <![CDATA[
  573. fClickAutoPrnt("Y");
  574. ]]>
  575. </script>
  576. </button>
  577. <button id="btn_autoprnt_end" class="btn1_letter6" style="left:462px; top:468px; width:104px; height:22px; ">
  578. <caption>자동출력종료</caption>
  579. <script type="javascript" ev:event="DOMActivate">
  580. <![CDATA[
  581. fClickAutoPrnt("N");
  582. model.reset();
  583. ]]>
  584. </script>
  585. </button>
  586. <select id="chk_auto_big" ref="/root/hidden/srchinfo/autokind" overflow="visible" appearance="full" cellspacing="10" cols="5" sep="|" style="left:85px; top:446px; width:190px; height:20px; border-style:none; ">
  587. <choices>
  588. <item>
  589. <label>처방전</label>
  590. <value>M</value>
  591. </item>
  592. <item>
  593. <label>라벨</label>
  594. <value>L</value>
  595. </item>
  596. <item>
  597. <label>물약라벨</label>
  598. <value>Q</value>
  599. </item>
  600. </choices>
  601. </select>
  602. <select id="chk_auto_small" ref="/root/hidden/srchinfo/autoprntflag" overflow="visible" appearance="full" cellspacing="12" cols="5" sep="|" style="left:85px; top:421px; width:375px; height:20px; border-style:none; ">
  603. <choices>
  604. <item>
  605. <label>Admission</label>
  606. <value>M</value>
  607. </item>
  608. <item>
  609. <label>병동응급</label>
  610. <value>W</value>
  611. </item>
  612. <item>
  613. <label>응급실</label>
  614. <value>E</value>
  615. </item>
  616. <item>
  617. <label>퇴원</label>
  618. <value>L</value>
  619. </item>
  620. <item>
  621. <label>외박</label>
  622. <value>G</value>
  623. </item>
  624. </choices>
  625. </select>
  626. <button id="btn_init" class="btn1_letter3" style="left:498px; top:213px; width:68px; height:22px; ">
  627. <caption>초기화</caption>
  628. <script type="javascript" ev:event="DOMActivate">
  629. <![CDATA[
  630. model.setValue("/root/hidden/srchinfo/fst_drugno", "");
  631. model.setValue("/root/hidden/srchinfo/last_drugno", "");
  632. model.setValue("/root/hidden/srchinfo/wardcd", "");
  633. model.setValue("/root/hidden/srchinfo/wardnm", "");
  634. model.setValue("/root/temp/srchinfo/ward", "");
  635. model.setValue("/root/hidden/srchinfo/pid", "");
  636. model.refresh();
  637. fInSumList();
  638. ]]>
  639. </script>
  640. </button>
  641. <line id="line2" class="line_2" style="x1:0px; y1:418px; x2:570px; y2:418px; "/>
  642. <button id="btn_hist" class="btn2_letter5" style="left:835px; top:15px; width:75px; height:19px; ">
  643. <caption>미출력선택</caption>
  644. <script type="javascript" ev:event="DOMActivate">
  645. <![CDATA[
  646. for ( var i = 1 ; i < grd_patlist.rows; i++){
  647. if ( parseInt (model.getValue("/root/main/patlist/patlist["+i+"]/prnttims")) ==0 ){
  648. model.setValue( "/root/main/patlist/patlist["+i+"]/sel", "Y");
  649. } else {
  650. model.setValue( "/root/main/patlist/patlist["+i+"]/sel", "N");
  651. }
  652. }
  653. model.refresh();
  654. ]]>
  655. </script>
  656. </button>
  657. <caption id="caption3" class="cell_1" style="left:0px; top:163px; width:80px; height:23px; vertical-align:middle; ">기타조회구분</caption>
  658. <select1 id="radio3" ref="/root/hidden/srchinfo/etcflag" appearance="full" cols="2" overflow="visible" style="left:86px; top:164px; width:130px; height:20px; border-style:none; ">
  659. <choices>
  660. <item>
  661. <label>전체</label>
  662. <value>T</value>
  663. </item>
  664. <item>
  665. <label>특정구분만</label>
  666. <value>Y</value>
  667. </item>
  668. </choices>
  669. <script type="javascript" ev:event="xforms-value-changed">
  670. <![CDATA[
  671. if(model.getValue("/root/hidden/srchinfo/etcflag") == "T"){
  672. model.setValue("/root/hidden/srchinfo/etcdescflag", "");
  673. cbx_etcdescflag.disabled = true;
  674. } else {
  675. model.setValue("/root/hidden/srchinfo/etcdescflag", "");
  676. cbx_etcdescflag.disabled = false;
  677. }
  678. model.refresh();
  679. fInSumList();
  680. ]]>
  681. </script>
  682. </select1>
  683. <select id="cbx_etcdescflag" ref="/root/hidden/srchinfo/etcdescflag" overflow="visible" appearance="full" cols="3" sep="|" style="left:220px; top:164px; width:175px; height:20px; border-style:none; ">
  684. <choices>
  685. <item>
  686. <label>고가</label>
  687. <value>E</value>
  688. </item>
  689. <item>
  690. <label>산제</label>
  691. <value>P</value>
  692. </item>
  693. <item>
  694. <label>향정</label>
  695. <value>H</value>
  696. </item>
  697. </choices>
  698. <script type="javascript" ev:event="xforms-value-changed">
  699. <![CDATA[
  700. fInSumList();
  701. ]]>
  702. </script>
  703. </select>
  704. <button id="button2" class="btn6_letter4" style="left:425px; top:365px; width:80px; height:22px; ">
  705. <caption>물약라벨</caption>
  706. <script type="javascript" ev:event="DOMActivate">
  707. <![CDATA[
  708. prntcheck = "Y"
  709. fLiquidLBLPrint();
  710. ]]>
  711. </script>
  712. </button>
  713. <caption id="caption4" class="tit_2" style="left:5px; top:20px; width:185px; height:14px; ">마감 및 출력</caption>
  714. <line id="line4" class="line_2" style="x1:0px; y1:110px; x2:570px; y2:110px; "/>
  715. <line id="line5" class="line_2" style="x1:0px; y1:160px; x2:570px; y2:160px; "/>
  716. <caption id="caption5" class="tit_2" style="left:5px; top:400px; width:185px; height:13px; ">자동출력</caption>
  717. <line id="line7" class="line_1" style="x1:0px; y1:415px; x2:570px; y2:415px; "/>
  718. <select id="checkbox1" ref="/root/hidden/srchinfo/drugall" overflow="visible" appearance="full" style="left:150px; top:295px; width:55px; height:15px; border-style:none; ">
  719. <choices>
  720. <item>
  721. <label>약</label>
  722. <value>Y</value>
  723. </item>
  724. </choices>
  725. <script type="javascript" ev:event="xforms-value-changed">
  726. <![CDATA[
  727. var chk = model.getValue("/root/hidden/srchinfo/drugall");
  728. var sLbl_Drug = "D|DT|DX|DH|DI|DS";
  729. var sLbl_Inj = "I|IO|IX|IH";
  730. if(chk == "Y"){
  731. model.makeValue("/root/hidden/srchinfo/lbl_drug", sLbl_Drug);
  732. } else {
  733. model.makeValue("/root/hidden/srchinfo/lbl_drug", "");
  734. }
  735. model.refresh();
  736. ]]>
  737. </script>
  738. </select>
  739. <select id="checkbox2" ref="/root/hidden/srchinfo/injall" overflow="visible" appearance="full" style="left:150px; top:318px; width:55px; height:15px; border-style:none; ">
  740. <choices>
  741. <item>
  742. <label>주사</label>
  743. <value>Y</value>
  744. </item>
  745. </choices>
  746. <script type="javascript" ev:event="xforms-value-changed">
  747. <![CDATA[
  748. var chk = model.getValue("/root/hidden/srchinfo/injall");
  749. var sLbl_Drug = "D|DT|DX|DH|DI|DS";
  750. var sLbl_Inj = "I|IO|IX|IH";
  751. if(chk == "Y"){
  752. model.makeValue("/root/hidden/srchinfo/lbl_inj", sLbl_Inj);
  753. } else {
  754. model.makeValue("/root/hidden/srchinfo/lbl_inj", "");
  755. }
  756. model.refresh();
  757. ]]>
  758. </script>
  759. </select>
  760. <caption id="caption7" autoresize="true" style="left:225px; top:297px; width:10px; height:15px; ">(</caption>
  761. <caption id="caption8" autoresize="true" style="left:225px; top:320px; width:10px; height:15px; ">(</caption>
  762. <caption id="caption9" autoresize="true" style="left:555px; top:320px; width:10px; height:15px; ">)</caption>
  763. <caption id="caption10" autoresize="true" style="left:555px; top:297px; width:10px; height:15px; ">)</caption>
  764. <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:85px; top:215px; width:325px; height:19px; "/>
  765. <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:295px; top:235px; width:140px; height:19px; "/>
  766. <select id="checkbox3" ref="/root/hidden/srchinfo/reprintyn" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:85px; top:340px; width:105px; height:20px; border-style:none; ">
  767. <choices>
  768. <item>
  769. <label>재출력</label>
  770. <value>Y</value>
  771. </item>
  772. </choices>
  773. </select>
  774. <caption id="caption11" class="cell_1" style="left:0px; top:338px; width:80px; height:23px; font-weight:bold; vertical-align:middle; ">재출력</caption>
  775. <caption id="caption12" class="cell_1" style="left:0px; top:444px; width:80px; height:23px; vertical-align:middle; ">출력구분</caption>
  776. <line id="line3" class="line_3" style="x1:0px; y1:466px; x2:570px; y2:466px; "/>
  777. <line id="line1" class="line_3" style="x1:0px; y1:360px; x2:570px; y2:360px; "/>
  778. <select1 id="rdo_prcp2" ref="/root/hidden/srchinfo/prcpflag" class="radio_search" appearance="full" cellspacing="6" cols="7" overflow="visible" style="left:86px; top:90px; width:344px; height:20px; border-style:none; ">
  779. <choices>
  780. <item>
  781. <label>Admission</label>
  782. <value>M</value>
  783. </item>
  784. <item>
  785. <label>병동응급</label>
  786. <value>W</value>
  787. </item>
  788. <item>
  789. <label>퇴원</label>
  790. <value>L</value>
  791. </item>
  792. <item>
  793. <label>외박</label>
  794. <value>G</value>
  795. </item>
  796. <item>
  797. <label>응급실</label>
  798. <value>E</value>
  799. </item>
  800. </choices>
  801. <script type="javascript" ev:event="xforms-value-changed">
  802. <![CDATA[
  803. model.setValue("/root/hidden/srchinfo/endtime", "");
  804. model.setValue("/root/hidden/srchinfo/fromddflag", "");
  805. model.setValue("/root/hidden/srchinfo/fromtm", "");
  806. model.setValue("/root/hidden/srchinfo/toddflag", "");
  807. model.setValue("/root/hidden/srchinfo/totm", "");
  808. //마감시간구분 재조회
  809. if(model.getValue("/root/hidden/srchinfo/prcpflag") == "R" || model.getValue("/root/hidden/srchinfo/prcpflag") == "A") {
  810. model.copyNode("/root/send/sumlistinfo", "/root/hidden/srchinfo");
  811. submit("TRADT10206");
  812. cmb_sumtmflag.disabled = false;
  813. cmb_fromddflag.disabled = false;
  814. ipt_fromtm.disabled = false;
  815. cmb_toddflag.disabled = false;
  816. ipt_totm.disabled = false;
  817. } else {
  818. cmb_sumtmflag.disabled = true;
  819. cmb_fromddflag.disabled = true;
  820. ipt_fromtm.disabled = true;
  821. cmb_toddflag.disabled = true;
  822. ipt_totm.disabled = true;
  823. }
  824. fInSumList();
  825. ]]>
  826. </script>
  827. </select1>
  828. <script type="javascript" ev:event="onkeypress">
  829. <![CDATA[
  830. if(event.keyCode == "115") { //F4키를 누르면 자동출력 중지
  831. prntcheck = "N"
  832. }
  833. ]]>
  834. </script>
  835. <group id="group2" visibility="hidden" style="left:575px; top:365px; width:605px; height:125px; background-color:#ffff99; ">
  836. <caption id="caption14" style="left:0px; top:50px; width:595px; height:75px; font-size:48pt; font-weight:bold; color:#ff0000; text-align:center; ">자동 출력 중</caption>
  837. <caption id="caption23" style="left:15px; top:10px; width:580px; height:40px; font-size:14pt; font-weight:bold; color:#ff0000; vertical-align:top; "/>
  838. </group>
  839. <select id="checkbox4" ref="/root/hidden/srchinfo/onlyantis" class="checkbox_search" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:205px; top:67px; width:160px; height:20px; border-style:none; ">
  840. <choices>
  841. <item>
  842. <label>항암프로토콜처방만</label>
  843. <value>Y</value>
  844. </item>
  845. </choices>
  846. </select>
  847. <caption id="caption15" style="left:215px; top:471px; width:55px; height:15px; ">출력간격</caption>
  848. <caption id="caption16" style="left:320px; top:471px; width:20px; height:15px; ">초</caption>
  849. <input id="input1" ref="/root/hidden/sleeptime" class="input_default" visibility="visible" style="left:270px; top:469px; width:45px; height:19px; "/>
  850. <select id="checkbox5" ref="/root/hidden/srchinfo/autoatcyn" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:500px; top:445px; width:65px; height:20px; border-style:none; ">
  851. <choices>
  852. <item>
  853. <label>ATC전송</label>
  854. <value>Y</value>
  855. </item>
  856. </choices>
  857. </select>
  858. <select id="checkbox6" ref="/root/hidden/srchinfo/autoendyn" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:430px; top:445px; width:65px; height:20px; border-style:none; ">
  859. <choices>
  860. <item>
  861. <label>마감작업</label>
  862. <value>Y</value>
  863. </item>
  864. </choices>
  865. </select>
  866. <select id="chk_ward" ref="/root/temp/srchinfo/ward" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="2" sep="|" style="left:85px; top:235px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  867. <choices>
  868. <itemset nodeset="/root/hidden/deptlist/ward">
  869. <label ref="wardnm"/>
  870. <value ref="wardcd"/>
  871. </itemset>
  872. </choices>
  873. <script type="javascript" ev:event="onclick">
  874. <![CDATA[
  875. //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  876. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0){
  877. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  878. //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";
  879. //ipt_wardnm.value = "분만실|신생아실|신생아중환자실|응급의료센터|통원수술센터|임상시험센터병동|04층동병동|04층서병동|05층동병동|05층서병동|06층동병동|06층서병동|07층동병동|07층서병동|08층동병동|08층서병동|09층동병동|09층서병동|10층동병동|10층서병동|응급병동|호스피스병동|중환자실|내과중환자실|외과중환자실|신경외과중환자실|순환기계중환자실|2층중환자실|특수주사실특수주사";
  880. //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");
  881. // for(var i = 0; i < chk_ward.length; i++) {
  882. // chk_ward.select(i);
  883. // }
  884. var strwardnm = " ";
  885. var strwardcd = " ";
  886. for(var i = 0 ; i <= getNodesetCount("/root/hidden/deptlist/ward") ; i++) {
  887. strwardnm = strwardnm+ "|"+ model.getValue("/root/hidden/deptlist/ward[" + i + "]/wardnm");
  888. strwardcd = strwardcd + "|" + model.getValue("/root/hidden/deptlist/ward[" + i + "]/wardcd");
  889. }
  890. model.setValue("/root/temp/srchinfo/ward", strwardcd);
  891. } else {
  892. //ipt_wardcd.value = "";
  893. //ipt_wardnm.value = "";
  894. model.setValue("/root/temp/srchinfo/ward", "");
  895. }
  896. model.refresh();
  897. }
  898. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  899. ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
  900. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  901. } else {
  902. ipt_wardcd.value = chk_ward.value;
  903. ipt_wardnm.value = chk_ward.label;
  904. }
  905. //input3.refresh();
  906. //검사실 체크박스 감추기
  907. //chk_excuroom.visible = false;
  908. ]]>
  909. </script>
  910. </select>
  911. <select id="checkbox7" ref="/root/hidden/srchinfo/orderbyatc" overflow="visible" appearance="full" style="left:1080px; top:15px; width:100px; height:20px; border-style:none; ">
  912. <choices>
  913. <item>
  914. <label>ATC순으로정렬</label>
  915. <value>Y</value>
  916. </item>
  917. </choices>
  918. <script type="javascript" ev:event="onclick">
  919. <![CDATA[
  920. fPrntPatList();
  921. ]]>
  922. </script>
  923. </select>
  924. <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:0px; top:468px; width:92px; height:22px; ">
  925. <caption>프린터설정</caption>
  926. <script type="javascript" ev:event="DOMActivate">
  927. <![CDATA[
  928. fSetPrint();
  929. ]]>
  930. </script>
  931. </button>
  932. <caption id="caption17" class="cell_1" style="left:0px; top:113px; width:80px; height:23px; vertical-align:middle; ">마감구분</caption>
  933. <input id="ipt_fromtm" ref="/root/hidden/srchinfo/fromtm" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:320px; top:115px; width:45px; height:19px; "/>
  934. <caption id="caption18" style="left:370px; top:114px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
  935. <input id="ipt_totm" ref="/root/hidden/srchinfo/totm" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:455px; top:115px; width:50px; height:19px; "/>
  936. <select1 id="cmb_sumtmflag" ref="/root/hidden/srchinfo/endtime" class="combo_search" appearance="minimal" style="left:85px; top:115px; width:165px; height:19px; ">
  937. <choices>
  938. <itemset nodeset="/root/init/sumtmflaglist/flaglist">
  939. <label ref="flagnm"/>
  940. <value ref="flagcd"/>
  941. </itemset>
  942. </choices>
  943. <script type="javascript" ev:event="xforms-value-changed">
  944. <![CDATA[
  945. var idx = cmb_sumtmflag.mouseRow + 1;
  946. var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist[" + idx + "]/fromddflag");
  947. var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist[" + idx + "]/fromtm");
  948. var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist[" + idx + "]/toddflag");
  949. var totm = model.getValue("/root/init/sumtmflaglist/flaglist[" + idx + "]/totm");
  950. model.setValue("/root/hidden/srchinfo/fromddflag", fromddflag);
  951. model.setValue("/root/hidden/srchinfo/fromtm", fromtm);
  952. model.setValue("/root/hidden/srchinfo/toddflag", toddflag);
  953. model.setValue("/root/hidden/srchinfo/totm", totm);
  954. model.refresh();
  955. ]]>
  956. </script>
  957. </select1>
  958. <select1 id="cmb_fromddflag" ref="/root/hidden/srchinfo/fromddflag" class="combo_search" appearance="minimal" style="left:255px; top:115px; width:60px; height:19px; ">
  959. <choices>
  960. <item>
  961. <label>전일</label>
  962. <value>0</value>
  963. </item>
  964. <item>
  965. <label>당일</label>
  966. <value>1</value>
  967. </item>
  968. </choices>
  969. </select1>
  970. <select1 id="cmb_toddflag" ref="/root/hidden/srchinfo/toddflag" class="combo_search" appearance="minimal" style="left:390px; top:115px; width:60px; height:19px; ">
  971. <choices>
  972. <item>
  973. <label>전일</label>
  974. <value>0</value>
  975. </item>
  976. <item>
  977. <label>당일</label>
  978. <value>1</value>
  979. </item>
  980. </choices>
  981. </select1>
  982. <line id="line16" class="line_2" style="x1:0px; y1:135px; x2:570px; y2:135px; "/>
  983. <button id="button3" class="btn3_letter6" navindex="18" visibility="visible" style="left:96px; top:468px; width:104px; height:22px; ">
  984. <caption>마감시간관리</caption>
  985. <script type="javascript" ev:event="DOMActivate">
  986. <![CDATA[
  987. //fSetEndTime();
  988. modal("SPADT64100");
  989. if(getParameter("SPADT64100_param") == "Y") {
  990. //model.makeValue("/root/send/sumlistinfo/prcpflag", "A");
  991. if(submit("TRADT10206")) {
  992. var idx = cmb_sumtmflag.value;
  993. var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/fromddflag");
  994. var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/fromtm");
  995. var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/toddflag");
  996. var totm = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/totm");
  997. model.setValue("/root/hidden/srchinfo/fromddflag", fromddflag);
  998. model.setValue("/root/hidden/srchinfo/fromtm", fromtm);
  999. model.setValue("/root/hidden/srchinfo/toddflag", toddflag);
  1000. model.setValue("/root/hidden/srchinfo/totm", totm);
  1001. model.refresh();
  1002. }
  1003. }
  1004. ]]>
  1005. </script>
  1006. </button>
  1007. <button id="button4" class="btn6_letter4" visibility="hidden" style="left:340px; top:365px; width:80px; height:22px; ">
  1008. <caption>외용라벨</caption>
  1009. <script type="javascript" ev:event="DOMActivate">
  1010. <![CDATA[
  1011. prntcheck = "Y"
  1012. fOutLBLPrint();
  1013. ]]>
  1014. </script>
  1015. </button>
  1016. <button id="button6" class="btn6_letter4" visibility="hidden" style="left:255px; top:365px; width:80px; height:22px; ">
  1017. <caption>PTP라벨</caption>
  1018. <script type="javascript" ev:event="DOMActivate">
  1019. <![CDATA[
  1020. prntcheck = "Y"
  1021. fPTPLBLPrint();
  1022. ]]>
  1023. </script>
  1024. </button>
  1025. <select id="checkbox8" ref="/root/hidden/srchinfo/autokind" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="5" sep="|" style="left:275px; top:446px; width:145px; height:20px; border-style:none; ">
  1026. <choices>
  1027. <item>
  1028. <label>PTP라벨</label>
  1029. <value>P</value>
  1030. </item>
  1031. <item>
  1032. <label>외용라벨</label>
  1033. <value>O</value>
  1034. </item>
  1035. </choices>
  1036. </select>
  1037. <select1 id="combo1" ref="/root/hidden/srchinfo/stocdeptcd" appearance="minimal" style="left:269px; top:15px; width:145px; height:19px; ">
  1038. <choices>
  1039. <itemset nodeset="/root/init/misdeptlist/deptlist">
  1040. <label ref="deptnm"/>
  1041. <value ref="deptcd"/>
  1042. </itemset>
  1043. </choices>
  1044. <script type="javascript" ev:event="xforms-value-changed">
  1045. <![CDATA[
  1046. if(chk_cnt != 0) {
  1047. var ret = messageBox("약품출고부서를 " + combo1.label +"으로 ", "S001");
  1048. if(ret == "6") {
  1049. model.setValue("/root/temp/stocdeptcd", combo1.value);
  1050. } else {
  1051. model.setValue("/root/hidden/srchinfo/stocdeptcd", model.getValue("/root/temp/stocdeptcd"));
  1052. }
  1053. combo1.refresh();
  1054. }
  1055. ]]>
  1056. </script>
  1057. </select1>
  1058. <caption id="caption19" style="left:195px; top:15px; width:74px; height:20px; font-weight:bold; color:#ff0000; ">실출고부서</caption>
  1059. <select id="checkbox11" ref="/root/hidden/srchinfo/multiyn" class="checkbox_search" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:340px; top:67px; width:130px; height:20px; border-style:none; ">
  1060. <choices>
  1061. <item>
  1062. <label>Multi-day처방포함</label>
  1063. <value>Y</value>
  1064. </item>
  1065. </choices>
  1066. </select>
  1067. </xhtml:body>
  1068. </xhtml:html>