SMADT01101_원외처방전출력(원무).xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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. <paramdata>
  11. <param>
  12. <pid/>
  13. <orddd/>
  14. <cretno/>
  15. <orddeptcd/>
  16. <orddrid/>
  17. <prcpdd/>
  18. <drugdd/>
  19. <drugno/>
  20. </param>
  21. </paramdata>
  22. <prcpdata>
  23. <patinfo/>
  24. <diaginfo/>
  25. <sumlist/>
  26. </prcpdata>
  27. <barcdprntsetup>
  28. </barcdprntsetup>
  29. </main>
  30. <send>
  31. <paramsrch/>
  32. <prcpsrch>
  33. <pid/>
  34. <orddd/>
  35. <cretno/>
  36. <orddeptcd/>
  37. <orddrid/>
  38. <prcpdd/>
  39. <drugdd/>
  40. <drugno/>
  41. <hosinmpsflag/>
  42. <hosoutmpsflag/>
  43. <lblflag/>
  44. <prntflag/>
  45. <autoinprntyn/>
  46. <autooutprntyn/>
  47. </prcpsrch>
  48. <deptinfo>
  49. <deptflag/>
  50. </deptinfo>
  51. <atcinfo>
  52. <drugdd/>
  53. <drugflag>O</drugflag>
  54. <instcd/>
  55. </atcinfo>
  56. <openflag/>
  57. <suminfo>
  58. <orddd/>
  59. </suminfo>
  60. <scrnid/>
  61. </send>
  62. <init>
  63. <barcdprntsetup>
  64. <setupinfo/>
  65. </barcdprntsetup>
  66. <mdrugflags>
  67. <mdrugflags/>
  68. </mdrugflags>
  69. </init>
  70. <hidden>
  71. <prcpsrch>
  72. <drugdd/>
  73. <drugno/>
  74. <hosinyn/>
  75. <hosinmpsflag/>
  76. <hosoutyn/>
  77. <hosoutmpsflag/>
  78. <lblyn/>
  79. <lblflag/>
  80. <prntflag>Y</prntflag>
  81. <autoinprntyn/>
  82. <autooutprntyn/>
  83. <instcd/>
  84. <autoprcp/>
  85. <reprintyn/>
  86. <autoatcyn/>
  87. <printer/>
  88. <eprntype/>
  89. <reprt/>
  90. <reprnttype/>
  91. <reprntpat/>
  92. <elctsignkey/>
  93. <elctsigncnts/>
  94. <digcdskipyn/>
  95. </prcpsrch>
  96. <deptlist>
  97. <dept>
  98. <deptcd/>
  99. <deptnm/>
  100. </dept>
  101. </deptlist>
  102. <popupinfo>
  103. <drugdd/>
  104. <drugno/>
  105. </popupinfo>
  106. </hidden>
  107. <temp>
  108. <ret/>
  109. <reqprtdata>
  110. <reqselflag/>
  111. <reqseldesc/>
  112. </reqprtdata>
  113. </temp>
  114. </root>
  115. </instance>
  116. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  120. <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT01101.js"/>
  121. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  122. <script type="javascript">
  123. <![CDATA[
  124. //프린터 설정
  125. function fSetPrint() {
  126. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  127. if(count == 0) {
  128. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  129. }
  130. open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  131. }
  132. ]]>
  133. </script>
  134. <script type="javascript" ev:event="xforms-ready">
  135. <![CDATA[
  136. //2009-05-07 원무의 트레이 번호를 가져와야 하나.. 현재는 기본을 '2' Setting ==>
  137. model.makeValue("/root/hidden/prcpsrch/printer", "1" );
  138. setParameter("opener_ID" , "SMADT01101_원외처방전출력(원무)");
  139. //공통코드 P0045에서 프린터 명칭과 트레이 호출
  140. fGetPrintName();
  141. setParameter("opener_printer_name" , getGlobalVariable("SPPAO00100_P0045_9_nm","p"));
  142. setParameter("opener_printer_tray" , getGlobalVariable("SPPAO00100_P0045_9_tray","p"));
  143. //호출끝
  144. fInit();
  145. //세종병원 이동재 2010.04.23 원외처방번호 있는경우 바로 인쇄!
  146. if (model.getValue("root/hidden/prcpsrch/drugno") != "") {
  147. fPrcpMPSPrint("/root/hidden/prcpsrch");
  148. window.close();
  149. }
  150. //////2015년 8월25일 김치국 원외처방전 재출력시
  151. model.makeValue("/root/temp/reqprtdata/reqselflag" , "");
  152. model.makeValue("/root/temp/reqprtdata/reqseldesc" , "");
  153. model.makeValue("/root/hidden/prcpsrch/reprnttype" , "");
  154. model.makeValue("/root/hidden/prcpsrch/reprntpat" , "");
  155. model.makeValue("/root/hidden/prcpsrch/elctsignkey" , "");
  156. model.makeValue("/root/hidden/prcpsrch/elctsigncnts" , "");
  157. model.makeValue("/root/hidden/prcpsrch/requeprtdesc" , "");
  158. // 질병분류기호 생략 추가 _ 2016.07.07_ by.Shaun
  159. model.makeValue("/root/hidden/prcpsrch/digcdskipyn" , "");
  160. capt_cover.visible = true ;
  161. ]]>
  162. </script>
  163. <submission id="TRADT01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paramsrch" replace="instance" resultref="/root/main/paramdata"/>
  164. <submission id="TRADT01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prcpsrch" replace="instance" resultref="/root/main/prcpdata"/>
  165. <submission id="TRADT01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  166. <submission id="TRADT01104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paramsrch" replace="instance" resultref="/root/main/paramdata"/>
  167. <submission id="TXADT10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/atcinfo" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  168. <submission id="TXADT01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/suminfo" replace="instance" resultref="/root/temp/ret"/>
  169. <!-- 프린터 설정-->
  170. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  171. <script type="javascript" ev:event="xforms-model-destruct">
  172. <![CDATA[
  173. if (gTimer != null) {
  174. window.clearinterval(gTimer);
  175. gTimer = null;
  176. }
  177. ]]>
  178. </script>
  179. <script type="javascript" ev:event="xforms-close">
  180. <![CDATA[
  181. if (gTimer != null) {
  182. window.clearinterval(gTimer);
  183. gTimer = null;
  184. }
  185. ]]>
  186. </script>
  187. <submission id="TRADT01105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  188. <submission id="TRADT01108" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/mdrugflags"/>
  189. </model>
  190. </xhtml:head>
  191. <xhtml:body pagewidth="604" pageheight="350" guideline="1,1195;1,0;1,1327;2,783;2,756;1,0;1,571;2,165;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  192. <script type="javascript" ev:event="onkeyup">
  193. <![CDATA[
  194. if (event.keyCode==121){
  195. checkbox12.visible=true;
  196. }
  197. ]]>
  198. </script>
  199. <datagrid id="grd_param" nodeset="/root/main/paramdata/param" visibility="hidden" caption="pid^orddd^cretno^orddeptcd^orddrid^prcpdd^drugdd^drugno^caption1^caption2" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:380px; top:60px; width:81px; height:65px; ">
  200. <col ref="pid"/>
  201. <col ref="orddd" style="left:100px; top:23px; width:100px; height:23px; "/>
  202. <col ref="cretno"/>
  203. <col ref="orddeptcd" style="left:300px; top:23px; width:100px; height:23px; "/>
  204. <col ref="orddrid"/>
  205. <col ref="prcpdd"/>
  206. <col ref="drugdd"/>
  207. <col ref="drugno"/>
  208. <col ref="prntdt"/>
  209. <col ref="lblprntdt"/>
  210. </datagrid>
  211. <group id="group1" style="left:0px; top:0px; width:570px; height:13px; ">
  212. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:500px; height:14px; ">외래처방전출력(Ver 1230)</caption>
  213. </group>
  214. <line id="line6" class="line_2" style="x1:0px; y1:78px; x2:570px; y2:78px; "/>
  215. <line id="line9" class="line_2" style="x1:0px; y1:128px; x2:570px; y2:128px; "/>
  216. <select id="checkbox1" ref="/root/hidden/prcpsrch/hosoutmpsflag" overflow="visible" appearance="full" cellspacing="10" cols="3" rows="1" sep="|" style="left:85px; top:107px; width:225px; height:20px; border-style:none; ">
  217. <choices>
  218. <item>
  219. <label>처방전(약국용)</label>
  220. <value>1</value>
  221. </item>
  222. <item>
  223. <label>처방전(환자용)</label>
  224. <value>2</value>
  225. </item>
  226. </choices>
  227. </select>
  228. <line id="line14" class="line_2" style="x1:0px; y1:133px; x2:570px; y2:133px; "/>
  229. <caption id="caption13" class="cell_1" style="left:0px; top:80px; width:80px; height:23px; vertical-align:middle; ">투약번호</caption>
  230. <caption id="caption22" class="cell_1" style="left:0px; top:55px; width:80px; height:23px; vertical-align:middle; ">투약일자</caption>
  231. <input id="input14" ref="/root/hidden/prcpsrch/drugno" class="input_search" autonext="false" maxlength="5" format="99999" style="left:85px; top:81px; width:105px; height:19px; ">
  232. <script type="javascript" ev:event="onkeyup">
  233. <![CDATA[
  234. if(event.keyCode == "13") {
  235. setInputNodeCurText();
  236. fPrcpMPSPrint();
  237. }
  238. ]]>
  239. </script>
  240. </input>
  241. <caption id="caption27" class="cell_1" style="left:0px; top:105px; width:80px; height:23px; vertical-align:middle; "/>
  242. <line id="line15" class="line_3" style="x1:0px; y1:133px; x2:570px; y2:133px; "/>
  243. <line id="line16" class="line_2" style="x1:0px; y1:103px; x2:570px; y2:103px; "/>
  244. <line id="line17" class="line_1" style="x1:0px; y1:50px; x2:570px; y2:50px; "/>
  245. <input id="input7" ref="/root/hidden/prcpsrch/drugdd" class="input_default" inputtype="date" style="left:85px; top:56px; width:105px; height:19px; "/>
  246. <select id="checkbox3" ref="/root/hidden/prcpsrch/hosoutyn" overflow="visible" appearance="full" style="left:5px; top:110px; width:65px; height:15px; background-color:#d8ebfa; border-style:none; ">
  247. <choices>
  248. <item>
  249. <label>원외</label>
  250. <value>Y</value>
  251. </item>
  252. </choices>
  253. <script type="javascript" ev:event="xforms-value-changed">
  254. <![CDATA[
  255. fChkHosout_YN();
  256. ]]>
  257. </script>
  258. </select>
  259. <select id="checkbox16" ref="/root/hidden/prcpsrch/eprntype" overflow="visible" appearance="full" style="left:197px; top:82px; width:100px; height:20px; border-style:none; ">
  260. <choices>
  261. <item>
  262. <label>영문명으로</label>
  263. <value>E</value>
  264. </item>
  265. </choices>
  266. <script type="javascript" ev:event="xforms-value-changed">
  267. <![CDATA[
  268. // 2009.09.09 pymi 영문명처방전
  269. /* if(model.getValue("/root/hidden/prcpsrch/eprntype") == "E") {
  270. fChkHosOutAutoPrnt("E");
  271. }*/
  272. //(e)
  273. ]]>
  274. </script>
  275. </select>
  276. <select id="checkbox6" visibility="hidden" overflow="visible" appearance="full" style="left:485px; top:83px; width:85px; height:15px; border-style:none; ">
  277. <choices>
  278. <item>
  279. <label>HD환자포함</label>
  280. <value>1</value>
  281. </item>
  282. </choices>
  283. </select>
  284. <button id="btn_prt" class="btn6_letter2" style="left:515px; top:138px; width:56px; height:22px; ">
  285. <caption>출력</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. fPrcpMPSPrint();
  289. ]]>
  290. </script>
  291. </button>
  292. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:18px; width:571px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  293. <caption id="caption47" class="cell_2" style="left:9px; top:23px; width:70px; height:20px; ">범 례</caption>
  294. <caption id="caption1" style="left:90px; top:23px; width:485px; height:20px; ">원내투약번호(1~10000) 원외투약번호(10001~20000) 응급실원외투약번호(90001~)</caption>
  295. <select id="checkbox11" ref="/root/hidden/prcpsrch/reprintyn" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" vcellspacing="8" style="left:512px; top:105px; width:59px; height:23px; border-style:none; ">
  296. <choices>
  297. <item>
  298. <label>재출력</label>
  299. <value>Y</value>
  300. </item>
  301. </choices>
  302. <script type="javascript" ev:event="onclick">
  303. <![CDATA[
  304. if (model.getValue("/root/hidden/prcpsrch/reprintyn") == "Y") {
  305. capt_cover.visible = false ;
  306. } else {
  307. capt_cover.visible = true ;
  308. }
  309. ]]>
  310. </script>
  311. </select>
  312. <select id="checkbox2" ref="/root/hidden/prcpsrch/digcdskipyn" visibility="visible" overflow="visible" appearance="full" style="left:450px; top:60px; width:120px; height:15px; border-style:none; ">
  313. <choices>
  314. <item>
  315. <label>질병분류기호 생략</label>
  316. <value>Y</value>
  317. </item>
  318. </choices>
  319. </select>
  320. <input id="input1" ref="/root/hidden/prcpsrch/printer" style="left:87px; top:139px; width:40px; height:19px; text-align:center; "/>
  321. <caption id="caption2" class="cell_1" style="left:0px; top:136px; width:80px; height:23px; vertical-align:middle; ">Tray-No</caption>
  322. <datagrid id="datagrid1" visibility="visible" caption="전 자 서 명" colsep="^" colwidth="240" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:323px; top:191px; width:240px; height:100px; ">
  323. <col/>
  324. </datagrid>
  325. <select1 id="radio1" ref="/root/temp/reqprtdata/reqselflag" appearance="full" cellspacing="30" cols="3" vcellspacing="10" overflow="visible" style="left:15px; top:217px; width:300px; height:60px; border-style:none; ">
  326. <choices>
  327. <item>
  328. <label>분실</label>
  329. <value>분실</value>
  330. </item>
  331. <item>
  332. <label>보험유형변경</label>
  333. <value>보험유형변경</value>
  334. </item>
  335. <item>
  336. <label>보험회사제출</label>
  337. <value>보험회사제출</value>
  338. </item>
  339. <item>
  340. <label>기타</label>
  341. <value>기타</value>
  342. </item>
  343. </choices>
  344. <script type="javascript" ev:event="onclick">
  345. <![CDATA[
  346. var reqsetflag = model.getValue("/root/temp/reqprtdata/reqselflag")
  347. if ( reqsetflag == '기타' ) {
  348. model.setValue("/root/hidden/prcpsrch/reprnttype" , model.getValue("/root/temp/reqprtdata/reqseldesc"));
  349. } else {
  350. model.setValue("/root/hidden/prcpsrch/reprnttype" , reqsetflag);
  351. }
  352. model.refresh();
  353. ]]>
  354. </script>
  355. </select1>
  356. <input id="inp_desc" ref="/root/temp/reqprtdata/reqseldesc" style="left:67px; top:247px; width:233px; height:19px; ">
  357. <script type="javascript" ev:event="DOMFocusOut">
  358. <![CDATA[
  359. model.setValue("/root/hidden/prcpsrch/requeprtdesc" , model.getValue("/root/temp/reqprtdata/reqseldesc"));
  360. model.setValue("/root/hidden/prcpsrch/reprnttype" , model.getValue("/root/temp/reqprtdata/reqseldesc"));
  361. ]]>
  362. </script>
  363. </input>
  364. <caption id="caption3" style="left:14px; top:196px; width:100px; height:20px; font-weight:bold; ">재출력 구분</caption>
  365. <import id="import1" src="./../../pam/pamcomnweb/xrw/SPPAO02102_전자서명입력_OCX.xrw" style="left:323px; top:216px; width:240px; height:120px; "/>
  366. <shape id="rectangle1" appearance="rectangle" style="left:8px; top:192px; width:310px; height:113px; border-color:#99ccff; "/>
  367. <line id="line1" class="line_3" style="x1:4px; y1:338px; x2:565px; y2:338px; "/>
  368. <line id="line2" class="line_3" style="x1:320px; y1:191px; x2:320px; y2:339px; "/>
  369. <line id="line3" class="line_3" style="x1:564px; y1:188px; x2:564px; y2:339px; "/>
  370. <line id="line4" class="line_3" style="x1:4px; y1:189px; x2:4px; y2:338px; "/>
  371. <line id="line5" class="line_3" style="x1:5px; y1:188px; x2:565px; y2:188px; "/>
  372. <input id="inp_reprtdesc" ref="/root/hidden/prcpsrch/reprnttype" visibility="hidden" appearance="input" style="left:110px; top:195px; width:58px; height:19px; "/>
  373. <input id="input2" ref="/root/hidden/prcpsrch/reprntpat" style="left:72px; top:282px; width:143px; height:19px; "/>
  374. <caption id="caption4" style="left:19px; top:281px; width:70px; height:20px; font-weight:bold; ">요청자 :</caption>
  375. <button id="button1" class="btn5_letter2" style="left:223px; top:281px; width:42px; height:19px; ">
  376. <caption>Sign</caption>
  377. <script type="javascript" ev:event="onclick">
  378. <![CDATA[
  379. fsignpad_init();
  380. fsignpad_request();
  381. ]]>
  382. </script>
  383. </button>
  384. <button id="button2" class="btn5_letter2" style="left:269px; top:282px; width:42px; height:19px; ">
  385. <caption>저장</caption>
  386. <script type="javascript" ev:event="onclick">
  387. <![CDATA[
  388. fsignpad_save();
  389. model.setValue("/root/hidden/prcpsrch/elctsignkey" , model.getValue("/root/result/sign/elctsignkey"));
  390. model.setValue("/root/hidden/prcpsrch/elctsigncnts" , model.getValue("/root/result/sign/elctsigncnts"));
  391. ]]>
  392. </script>
  393. </button>
  394. <caption id="capt_cover" style="left:3px; top:166px; width:565px; height:174px; background-color:#ffffff; border-color:#993300; "/>
  395. </xhtml:body>
  396. </xhtml:html>