SMADT60200_병동처방전출력.xrw 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572
  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. </main>
  52. <send>
  53. <suminfo>
  54. <prcpdd/>
  55. <prcpflag/>
  56. <instcd/>
  57. <pid/>
  58. <ioflag>I</ioflag>
  59. <sumdrugkind/>
  60. <onlyantis/>
  61. </suminfo>
  62. <sumlistinfo/>
  63. <patlistinfo/>
  64. <prcpinfo/>
  65. <deptinfo>
  66. <deptflag/>
  67. </deptinfo>
  68. <atcinfo>
  69. <drugdd/>
  70. <drugflag>I</drugflag>
  71. <instcd/>
  72. </atcinfo>
  73. </send>
  74. <init/>
  75. <hidden>
  76. <srchinfo>
  77. <prcpdd/>
  78. <drugkind/>
  79. <etcflag/>
  80. <etcdescflag/>
  81. <fst_drugno/>
  82. <last_drugno/>
  83. <prcpflag/>
  84. <mpsflag/>
  85. <lblyn/>
  86. <lbl_drug/>
  87. <lbl_inj/>
  88. <wardcd/>
  89. <pid/>
  90. <prntflag/>
  91. <instcd/>
  92. <sumdt/>
  93. <autokind/>
  94. <autoprntflag/>
  95. <drugall/>
  96. <injall/>
  97. <wardnm/>
  98. <reprintyn/>
  99. <prntkind/>
  100. <reprintyn/>
  101. <onlyantis/>
  102. <autoatcyn/>
  103. <autoendyn>Y</autoendyn>
  104. <autodscyn/>
  105. </srchinfo>
  106. <deptlist>
  107. <ward>
  108. <wardcd/>
  109. <wardnm/>
  110. </ward>
  111. </deptlist>
  112. <popupinfo>
  113. <prcpdd/>
  114. <drugno/>
  115. <pid/>
  116. <ward/>
  117. </popupinfo>
  118. <sleeptime>1</sleeptime>
  119. <autoend/>
  120. </hidden>
  121. <temp>
  122. <ret/>
  123. <srchinfo>
  124. <ward/>
  125. </srchinfo>
  126. </temp>
  127. </root>
  128. </instance>
  129. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  133. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  134. <script type="javascript" ev:event="xforms-ready">
  135. <![CDATA[
  136. fInit();
  137. grd_patlist.fixedcellcheckbox(0,0) = true;
  138. fInSumList();
  139. ]]>
  140. </script>
  141. <submission id="TRADT60201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/main/sumlist"/>
  142. <submission id="TRADT60202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patlistinfo" replace="instance" resultref="/root/main/patlist"/>
  143. <submission id="TRADT60203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  144. <submission id="TXADT10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/suminfo" replace="instance" resultref="/root/main/sumrslt"/>
  145. <submission id="TXADT10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/atcinfo" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  146. <script type="javascript" ev:event="xforms-model-destruct">
  147. <![CDATA[
  148. if (gTimer != null) {
  149. window.clearinterval(gTimer);
  150. gTimer = null;
  151. }
  152. ]]>
  153. </script>
  154. <script type="javascript" ev:event="xforms-close">
  155. <![CDATA[
  156. if (gTimer != null) {
  157. window.clearinterval(gTimer);
  158. gTimer = null;
  159. }
  160. ]]>
  161. </script>
  162. </model>
  163. <script type="javascript">
  164. <![CDATA[
  165. var chk_drugno = 0;
  166. var chk_wardcd = 0;
  167. var chk_pid = 0;
  168. var chk_prnt_count = 0;
  169. var chk_sum_count = 0;
  170. var chk_count = 0;
  171. var gTimer = null;
  172. var gTimer2 = null;
  173. var gT1 = null;
  174. var sleepTime= 1000;
  175. /**
  176. * 초기화
  177. */
  178. function fInit() {
  179. if (model.getValue("/root/hidden/prcpsrch/prcpdd") == "") {
  180. // 날짜 초기화
  181. model.makeValue("/root/hidden/srchinfo/prcpdd", getCurrentDate());
  182. }
  183. //처방구분 초기화
  184. model.makeValue("/root/hidden/srchinfo/prcpflag", "A");
  185. //약주사구분 초기화
  186. model.makeValue("/root/hidden/srchinfo/drugkind", "T");
  187. //라벨 체크 초기화
  188. model.makeValue("/root/hidden/srchinfo/lblyn", "Y");
  189. fChkLBL_YN();
  190. //처방전 체크 초기화
  191. model.makeValue("/root/hidden/srchinfo/mpsflag", "P");
  192. //기타조회구분 초기화
  193. model.makeValue("/root/hidden/srchinfo/etcflag", "T");
  194. cbx_etcdescflag.disabled = true;
  195. //마감시 instcd 적용을 위해 instcd 초기화
  196. //model.setValue("/root/hidden/srchinfo/instcd", getUserInfo("posinstcd"));
  197. var dutplceinstcd = getUserInfo("dutplceinstcd");
  198. if(dutplceinstcd == ""){
  199. dutplceinstcd = "012";
  200. }
  201. model.makeValue("/root/hidden/srchinfo/instcd", dutplceinstcd);
  202. //makeReportPreview(0,270,820,700);
  203. //병동 Combo 조회
  204. model.setValue("/root/send/deptinfo/deptflag", "W");
  205. submit("TRADT60203");
  206. astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
  207. //자동출력구분 초기화
  208. btn_autoprnt_start.disabled = false;
  209. btn_autoprnt_end.disabled = true;
  210. //model.setValue("/root/hidden/srchinfo/auto_selflag", "1");
  211. //chk_auto_big.disabled = false;
  212. //chk_auto_small.disabled = true;
  213. //model.setValue("/root/hidden/srchinfo/auto_bigflag", "E|L|G");
  214. //model.setValue("/root/hidden/srchinfo/auto_smallflag", "");
  215. model.refresh();
  216. //처방전 감사화면에서 팝업으로 열때 데이터 조회
  217. if(model.getValue("/root/hidden/popupinfo/drugno") != ""){
  218. model.setValue("/root/hidden/srchinfo/prcpdd", model.getValue("/root/hidden/popupinfo/prcpdd"));
  219. model.setValue("/root/hidden/srchinfo/fst_drugno", model.getValue("/root/hidden/popupinfo/drugno"));
  220. model.setValue("/root/hidden/srchinfo/pid", model.getValue("/root/hidden/popupinfo/pid"));
  221. //model.setValue("/root/hidden/srchinfo/ward", model.getValue("/root/hidden/popupinfo/ward"));
  222. model.refresh();
  223. fInSumList();
  224. }
  225. }
  226. /**
  227. * 라벨 변경시 처리
  228. */
  229. function fChkLBL_YN() {
  230. var chk = model.getValue("/root/hidden/srchinfo/lblyn");
  231. var sLbl_Drug = "D|DT|DX|DE|DH";
  232. var sLbl_Inj = "I|IO|IX|IE|IH";
  233. if(chk == "Y"){
  234. model.makeValue("/root/hidden/srchinfo/lbl_drug", sLbl_Drug);
  235. model.makeValue("/root/hidden/srchinfo/lbl_inj", sLbl_Inj);
  236. model.makeValue("/root/hidden/srchinfo/drugall", "Y");
  237. model.makeValue("/root/hidden/srchinfo/injall", "Y");
  238. } else {
  239. model.makeValue("/root/hidden/srchinfo/lbl_drug", "");
  240. model.makeValue("/root/hidden/srchinfo/lbl_inj", "");
  241. model.makeValue("/root/hidden/srchinfo/drugall", "");
  242. model.makeValue("/root/hidden/srchinfo/injall", "");
  243. }
  244. model.refresh();
  245. }
  246. /**
  247. * 마감리스트 조회
  248. */
  249. function fInSumList() {
  250. chk_ward.visible = false;
  251. if(model.getValue("/root/hidden/srchinfo/autoprntflag") == "" && model.getValue("/root/hidden/srchinfo/prcpflag") == ""){
  252. messageBox("처방구분을", "C001")
  253. return;
  254. }
  255. model.copyNode("/root/send/sumlistinfo", "/root/hidden/srchinfo");
  256. submit("TRADT60201");
  257. grd_sumlist.isSelected(grd_sumlist.fixedRows) = true;
  258. grd_sumlist.row = grd_sumlist.fixedRows;
  259. if(grd_sumlist.Rows > 1){
  260. fPrntPatList(); //마감시간별 미출력환자데이터 조회
  261. } else {
  262. model.removeNodeset("/root/main/patlist/patlist");
  263. model.refresh();
  264. }
  265. }
  266. /**
  267. * 병동 마감
  268. */
  269. function fHosInSum(chk) {
  270. var prcpflag = model.getValue("/root/hidden/srchinfo/prcpflag");
  271. var prcpdd = model.getValue("/root/hidden/srchinfo/prcpdd");
  272. var instcd = model.getValue("/root/hidden/srchinfo/instcd");
  273. var pid = model.getValue("/root/hidden/srchinfo/pid");
  274. var drugkind = model.getValue("/root/hidden/srchinfo/drugkind");
  275. var onlyantis = model.getValue("/root/hidden/srchinfo/onlyantis");
  276. var prcpflagnm = rdo_prcp.label;
  277. var chkret = 0;
  278. if(chk == "Y"){
  279. chkret = messageBox(prcpflagnm + "마감을", "Q004");
  280. } else {
  281. chkret = 6;
  282. }
  283. if(chkret == 6){
  284. model.setValue("/root/send/suminfo/prcpdd", prcpdd);
  285. model.setValue("/root/send/suminfo/prcpflag", prcpflag);
  286. model.setValue("/root/send/suminfo/instcd", instcd);
  287. model.setValue("/root/send/suminfo/pid", pid);
  288. model.setValue("/root/send/suminfo/sumdrugkind", drugkind);
  289. model.setValue("/root/send/suminfo/onlyantis", onlyantis);
  290. model.setValue("/root/send/suminfo/ioflag", "I");
  291. submit("TXADT10201");
  292. if (model.getValue("/root/hidden/srchinfo/prcpflag")=="L" || model.getValue("/root/hidden/srchinfo/prcpflag")=="G") {
  293. model.setValue("/root/send/suminfo/prcpdd", prcpdd);
  294. model.setValue("/root/send/suminfo/prcpflag", prcpflag);
  295. model.setValue("/root/send/suminfo/instcd", instcd);
  296. model.setValue("/root/send/suminfo/pid", pid);
  297. model.setValue("/root/send/suminfo/ioflag", "O");
  298. submit("TXADT10201");
  299. }
  300. }
  301. }
  302. /**
  303. * 마감리스트 더블클릭시 출력할 환자리스트 조회
  304. */
  305. function fPrntPatList() {
  306. grd_patlist.rebuildStyle();
  307. if(model.getValue("/root/main/sumlist/sumlist["+grd_sumlist.row+"]/sumdt") != ""){
  308. model.copyNode("/root/send/patlistinfo","/root/main/sumlist/sumlist["+grd_sumlist.row+"]");
  309. model.makeValue("/root/send/patlistinfo/prcpdd", model.getValue("/root/hidden/srchinfo/prcpdd"));
  310. model.makeValue("/root/send/patlistinfo/fst_drugno", model.getValue("/root/hidden/srchinfo/fst_drugno"));
  311. model.makeValue("/root/send/patlistinfo/last_drugno", model.getValue("/root/hidden/srchinfo/last_drugno"));
  312. model.makeValue("/root/send/patlistinfo/wardcd", model.getValue("/root/hidden/srchinfo/wardcd"));
  313. model.makeValue("/root/send/patlistinfo/pid", model.getValue("/root/hidden/srchinfo/pid"));
  314. model.makeValue("/root/send/patlistinfo/autoprntflag", model.getValue("/root/hidden/srchinfo/autoprntflag"));
  315. model.makeValue("/root/send/patlistinfo/etcdescflag", model.getValue("/root/hidden/srchinfo/etcdescflag"));
  316. model.makeValue("/root/send/patlistinfo/prntkind", model.getValue("/root/hidden/srchinfo/prntkind"));
  317. model.makeValue("/root/send/patlistinfo/autolblyn", model.getValue("/root/hidden/srchinfo/autolblyn"));
  318. model.makeValue("/root/send/patlistinfo/autodscyn", model.getValue("/root/hidden/srchinfo/autodscyn"));
  319. model.makeValue("/root/send/patlistinfo/prcpflag", model.getValue("/root/hidden/srchinfo/prcpflag"));
  320. submit("TRADT60202");
  321. if(model.getValue("/root/hidden/srchinfo/fst_drugno") != ""){
  322. model.setValue("/root/main/patlist/patlist/sel", "Y");
  323. }
  324. }
  325. }
  326. /**
  327. * 처방전/라벨 출력
  328. */
  329. function fPrcpMPSPrint( flag ) {
  330. //투약번호로 출력
  331. var sDrugNo = model.getValue("/root/hidden/srchinfo/fst_drugno");
  332. sleepTime = model.getValue("/root/hidden/sleeptime") * 1000;
  333. /*if(sDrugNo != ""
  334. && chk_prnt_count == 0){
  335. fAutoPrnt();
  336. return;
  337. }*/
  338. chk_prnt_count = 0;
  339. //처방전 및 라벨 출력
  340. var chk_mpsflag = model.getValue("/root/hidden/srchinfo/mpsflag");
  341. var chk_lblyn = model.getValue("/root/hidden/srchinfo/lblyn");
  342. var chk_lbl_drug = model.getValue("/root/hidden/srchinfo/lbl_drug");
  343. var chk_lbl_inj = model.getValue("/root/hidden/srchinfo/lbl_inj");
  344. grd_patlist.rebuildStyle();
  345. if (chk_mpsflag != "" || chk_lblyn != "") {
  346. //처방전 출력 데이터 조회
  347. var cnt = 0;
  348. for(var i = grd_patlist.fixedRows; i < grd_patlist.rows; i++){
  349. if(model.getValue("/root/main/patlist/patlist["+i+"]/sel") == "Y"){
  350. model.copyNode("/root/send/prcpinfo", "/root/main/patlist/patlist["+i+"]");
  351. if(chk_lbl_drug != "" && chk_lbl_inj != ""){
  352. model.makeValue("/root/send/prcpinfo/lblflag", chk_lbl_drug+"|"+chk_lbl_inj);
  353. } else if(chk_lbl_drug != ""){
  354. model.makeValue("/root/send/prcpinfo/lblflag", chk_lbl_drug);
  355. } else if(chk_lbl_inj != ""){
  356. model.makeValue("/root/send/prcpinfo/lblflag", chk_lbl_inj);
  357. }
  358. model.makeValue("/root/send/prcpinfo/prcpflag", model.getValue("/root/hidden/srchinfo/prcpflag"));
  359. model.makeValue("/root/send/prcpinfo/prntflag", model.getValue("/root/hidden/srchinfo/prntflag"));
  360. model.makeValue("/root/send/prcpinfo/reprintyn", model.getValue("/root/hidden/srchinfo/reprintyn"));
  361. model.makeValue("/root/send/prcpinfo/ioflag", "I");
  362. var drugno = model.getValue("/root/send/prcpinfo/drugno");
  363. var wardcd = model.getValue("/root/send/prcpinfo/wardcd");
  364. var pid = model.getValue("/root/send/prcpinfo/pid");
  365. if ( flag =="M" || flag == null ){
  366. //처방전 출력
  367. // if (chk_mpsflag != "" && fChkParam(drugno, wardcd, pid) == true) {
  368. if (chk_mpsflag != "" ) {
  369. //var gT1 = window.setInterval("fHosInMPSPrint()",10000);
  370. //window.clearinterval(gT1);
  371. //gT1 = window.setInterval("fStopTimer()",100000);
  372. fSleep(sleepTime);
  373. fHosInMPSPrint();
  374. }
  375. }
  376. if ( flag =="L" || flag == null ){
  377. //라벨 출력
  378. // if (chk_lblyn != "" && fChkParam(drugno, wardcd, pid) == true) {
  379. if (chk_lblyn != "" ) {
  380. fSleep(sleepTime);
  381. fHosInLBLPrint();
  382. }
  383. }
  384. if ( flag =="Q" ){
  385. //라벨 출력
  386. // if (chk_lblyn != "" && fChkParam(drugno, wardcd, pid) == true) {
  387. if (chk_lblyn != "" ) {
  388. fSleep(sleepTime/2);
  389. fLiquidLBLPrint();
  390. }
  391. }
  392. cnt++;
  393. if (model.getValue("/root/hidden/srchinfo/autoyn") !="Y") {
  394. //출력상태 표시
  395. for ( var j = 0 ; j < grd_patlist.cols -1; j++){
  396. grd_patlist.cellStyle("background-color", i, j) = "#cfffcf";
  397. //grd_patlist.cellStyle("font-weight", i, j) = "bold";
  398. }
  399. grd_patlist.refresh();
  400. }
  401. }
  402. }
  403. if( cnt == 0 && gTimer == null){
  404. messageBox("처방전을 출력할 환자리스트가 없거나 선택된 환자가", "I004");
  405. }
  406. model.setValue("/root/send/atcinfo/drugdd", model.getValue("/root/hidden/srchinfo/prcpdd"));
  407. if ( model.getValue("/root/hidden/srchinfo/prcpflag") =="L" ) {
  408. model.setValue("/root/send/atcinfo/drugflag", "L");
  409. } else if ( model.getValue("/root/hidden/srchinfo/prcpflag") =="E" ) {
  410. model.setValue("/root/send/atcinfo/drugflag", "E");
  411. } else {
  412. model.setValue("/root/send/atcinfo/drugflag", "I");
  413. }
  414. if (model.getValue("/root/hidden/srchinfo/autoatcyn") =="Y") {
  415. model.setValue("/root/send/atcinfo/instcd", model.getValue("/root/hidden/srchinfo/instcd"));
  416. submit("TXADT10202"); //ATC Data 전송(배치호출)
  417. }
  418. }
  419. }
  420. function fStopTimer() {
  421. window.clearinterval(gT1);
  422. }
  423. /**
  424. * 처방전 출력
  425. */
  426. function fHosInMPSPrint() {
  427. var sParam = "";
  428. sParam = "drugdd▦drugno▦ioflag▦prcpdd▦orddd▦cretno▦prcpgenrflag▦pid▦orddeptcd▦wardcd▦lblflag▦prcpflag▦prntflag▦etcdescflag▦reprintyn▩";
  429. sParam += model.getValue("/root/send/prcpinfo/drugdd")+"▦"+
  430. model.getValue("/root/send/prcpinfo/drugno")+"▦"+
  431. model.getValue("/root/send/prcpinfo/ioflag")+"▦"+
  432. model.getValue("/root/send/prcpinfo/prcpdd")+"▦"+
  433. model.getValue("/root/send/prcpinfo/orddd")+"▦"+
  434. model.getValue("/root/send/prcpinfo/cretno")+"▦"+
  435. model.getValue("/root/send/prcpinfo/prcpgenrflag")+"▦"+
  436. model.getValue("/root/send/prcpinfo/pid")+"▦"+
  437. model.getValue("/root/send/prcpinfo/orddeptcd")+"▦"+
  438. model.getValue("/root/send/prcpinfo/wardcd")+"▦"+
  439. model.getValue("/root/send/prcpinfo/lblflag")+"▦"+
  440. //model.getValue("/root/send/prcpinfo/prcpflag")+"▦"+
  441. model.getValue("/root/send/prcpinfo/drugflag")+"▦"+
  442. model.getValue("/root/send/prcpinfo/prntflag")+"▦"+
  443. model.getValue("/root/hidden/srchinfo/etcdescflag")+"▦"+
  444. model.getValue("/root/send/prcpinfo/reprintyn")+"▩";
  445. model.setAttribute("params", sParam);
  446. modal("SPADT62200",0,200,200,"","");
  447. model.setAttribute("params", "");
  448. return 0;
  449. }
  450. /**
  451. * 라벨 출력
  452. */
  453. function fHosInLBLPrint() {
  454. var sParam = "";
  455. sParam = "drugdd▦drugno▦ioflag▦prcpdd▦orddd▦cretno▦prcpgenrflag▦pid▦orddeptcd▦wardcd▦lblflag▦prcpflag▦prntflag▦liquidflag▦etcdescflag▦reprintyn▩";
  456. sParam += model.getValue("/root/send/prcpinfo/drugdd")+"▦"+
  457. model.getValue("/root/send/prcpinfo/drugno")+"▦"+
  458. model.getValue("/root/send/prcpinfo/ioflag")+"▦"+
  459. model.getValue("/root/send/prcpinfo/prcpdd")+"▦"+
  460. model.getValue("/root/send/prcpinfo/orddd")+"▦"+
  461. model.getValue("/root/send/prcpinfo/cretno")+"▦"+
  462. model.getValue("/root/send/prcpinfo/prcpgenrflag")+"▦"+
  463. model.getValue("/root/send/prcpinfo/pid")+"▦"+
  464. model.getValue("/root/send/prcpinfo/orddeptcd")+"▦"+
  465. model.getValue("/root/send/prcpinfo/wardcd")+"▦"+
  466. model.getValue("/root/send/prcpinfo/lblflag")+"▦"+
  467. //model.getValue("/root/send/prcpinfo/prcpflag")+"▦"+
  468. model.getValue("/root/send/prcpinfo/drugflag")+"▦"+
  469. model.getValue("/root/send/prcpinfo/prntflag")+"▦"+
  470. ""+"▦"+
  471. model.getValue("/root/hidden/srchinfo/etcdescflag")+"▦"+
  472. model.getValue("/root/send/prcpinfo/reprintyn")+"▩";
  473. model.setAttribute("params", sParam);
  474. modal("SPADT62300",0,200,200,"","");
  475. model.setAttribute("params", "");
  476. // submit("TRADT60205");
  477. return 0;
  478. }
  479. /**
  480. * 물약 라벨 출력
  481. */
  482. function fLiquidLBLPrint() {
  483. //처방전 출력 데이터 조회
  484. var cnt = 0;
  485. for(var i = grd_patlist.fixedRows; i < grd_patlist.rows; i++){
  486. if(model.getValue("/root/main/patlist/patlist["+i+"]/sel") == "Y"){
  487. model.copyNode("/root/send/prcpinfo", "/root/main/patlist/patlist["+i+"]");
  488. model.makeValue("/root/send/prcpinfo/prcpflag", model.getValue("/root/hidden/srchinfo/prcpflag"));
  489. model.makeValue("/root/send/prcpinfo/prntflag", model.getValue("/root/hidden/srchinfo/prntflag"));
  490. model.makeValue("/root/send/prcpinfo/reprintyn", model.getValue("/root/hidden/srchinfo/reprintyn"));
  491. model.makeValue("/root/send/prcpinfo/ioflag", "I");
  492. var drugno = model.getValue("/root/send/prcpinfo/drugno");
  493. var wardcd = model.getValue("/root/send/prcpinfo/wardcd");
  494. var pid = model.getValue("/root/send/prcpinfo/pid");
  495. var sParam = "";
  496. sParam = "drugdd▦drugno▦ioflag▦prcpdd▦orddd▦cretno▦prcpgenrflag▦pid▦orddeptcd▦wardcd▦lblflag▦prcpflag▦prntflag▦liquidflag▦etcdescflag▦reprintyn▩";
  497. sParam += model.getValue("/root/send/prcpinfo/drugdd")+"▦"+
  498. model.getValue("/root/send/prcpinfo/drugno")+"▦"+
  499. model.getValue("/root/send/prcpinfo/ioflag")+"▦"+
  500. model.getValue("/root/send/prcpinfo/prcpdd")+"▦"+
  501. model.getValue("/root/send/prcpinfo/orddd")+"▦"+
  502. model.getValue("/root/send/prcpinfo/cretno")+"▦"+
  503. model.getValue("/root/send/prcpinfo/prcpgenrflag")+"▦"+
  504. model.getValue("/root/send/prcpinfo/pid")+"▦"+
  505. model.getValue("/root/send/prcpinfo/orddeptcd")+"▦"+
  506. model.getValue("/root/send/prcpinfo/wardcd")+"▦"+
  507. model.getValue("/root/send/prcpinfo/lblflag")+"▦"+
  508. //model.getValue("/root/send/prcpinfo/prcpflag")+"▦"+
  509. model.getValue("/root/send/prcpinfo/drugflag")+"▦"+
  510. model.getValue("/root/send/prcpinfo/prntflag")+"▦"+
  511. "Y"+"▦"+
  512. model.getValue("/root/hidden/srchinfo/etcdescflag")+"▦"+
  513. model.getValue("/root/send/prcpinfo/reprintyn")+"▩";
  514. model.setAttribute("params", sParam);
  515. modal("SPADT62300",0,200,200,"","");
  516. model.setAttribute("params", "");
  517. cnt++;
  518. }
  519. }
  520. if( cnt == 0 && gTimer == null){
  521. messageBox("라벨를 출력할 환자리스트가 없거나 선택된 환자가", "I004");
  522. }
  523. }
  524. /**
  525. * 자동출력 버튼 클릭시 타이머 작동
  526. */
  527. function fClickAutoPrnt(chk) {
  528. if (chk == "Y") {
  529. model.setValue("/root/hidden/autoend", "N") ;
  530. var sRst = "";
  531. if(gTimer != null) {
  532. sRst = messageBox("자동출력이 동작중입니다.\n자동출력구분설정대로 다시", "Q004");
  533. if(sRst == "6"){
  534. window.clearinterval(gTimer);
  535. gTimer = null;
  536. } else {
  537. return;
  538. }
  539. }
  540. if(sRst == ""){
  541. sRst = messageBox("자동출력을", "S001");
  542. if(sRst != "6"){
  543. return;
  544. }
  545. }
  546. btn_hist.visible=false;
  547. grd_sumlist.visible=false;
  548. grd_patlist.visible=false;
  549. checkbox4.visible=false;
  550. rdo_prcp.visible = false;
  551. rdo_prcp2.visible = false;
  552. checkbox7.visible = false;
  553. ipt_fst_drugno.visible = false;
  554. caption25.visible = false;
  555. ipt_last_drugno.visible = false;
  556. //cmb_ward.visible = false;
  557. ipt_pid.visible = false;
  558. model.setValue("/root/hidden/srchinfo/prcpflag", "");
  559. model.setValue("/root/hidden/srchinfo/fst_drugno", "");
  560. model.setValue("/root/hidden/srchinfo/last_drugno", "");
  561. model.setValue("/root/hidden/srchinfo/wardcd", "");
  562. model.setValue("/root/hidden/srchinfo/wardnm", "");
  563. model.setValue("/root/temp/srchinfo/ward", "");
  564. model.setValue("/root/hidden/srchinfo/pid", "");
  565. model.setValue("/root/hidden/srchinfo/onlyantis","");
  566. model.makeValue("/root/hidden/srchinfo/autoyn", "Y");
  567. model.refresh();
  568. window.minimize();
  569. fSleep(sleepTime);
  570. window.maximize();
  571. /*if(model.getValue("/root/hidden/srchinfo/auto_selflag") == "1"){
  572. model.setValue("/root/hidden/srchinfo/autoprntflag", model.getValue("/root/hidden/srchinfo/auto_bigflag"));
  573. } else {
  574. model.setValue("/root/hidden/srchinfo/autoprntflag", model.getValue("/root/hidden/srchinfo/auto_smallflag"));
  575. }*/
  576. btn_autoprnt_start.disabled = true;
  577. btn_autoprnt_end.disabled = false;
  578. chk_sum_count = 8;
  579. gTimer = window.setInterval("fAutoPrnt()",11000);
  580. //재출력 불가
  581. model.setValue("/root/hidden/srchinfo/reprintyn", "");
  582. checkbox3.disabled = true;
  583. group2.visible = "true";
  584. } else {
  585. window.clearinterval(gTimer);
  586. gTimer = null;
  587. btn_hist.visible=true;
  588. grd_sumlist.visible=true;
  589. grd_patlist.visible=true;
  590. checkbox4.visible=true;
  591. rdo_prcp.visible = true;
  592. rdo_prcp2.visible = true;
  593. checkbox7.visible = true;
  594. ipt_fst_drugno.visible = true;
  595. caption25.visible = true;
  596. ipt_last_drugno.visible = true;
  597. //cmb_ward.visible = true;
  598. ipt_pid.visible = true;
  599. model.setValue("/root/hidden/srchinfo/prcpflag", "");
  600. model.setValue("/root/hidden/srchinfo/fst_drugno", "");
  601. model.setValue("/root/hidden/srchinfo/last_drugno", "");
  602. model.setValue("/root/hidden/srchinfo/wardcd", "");
  603. model.setValue("/root/hidden/srchinfo/wardnm", "");
  604. model.setValue("/root/temp/srchinfo/ward", "");
  605. model.setValue("/root/hidden/srchinfo/pid", "");
  606. //model.setValue("/root/hidden/srchinfo/autoprntflag", "");
  607. model.makeValue("/root/hidden/srchinfo/autoyn", "");
  608. btn_autoprnt_start.disabled = false;
  609. btn_autoprnt_end.disabled = true;
  610. model.setValue("/root/hidden/autoend", "Y") ;
  611. model.refresh();
  612. //재출력 가능
  613. checkbox3.disabled = false;
  614. group2.visible = "false";
  615. }
  616. }
  617. function fReStart(){
  618. window.clearinterval(gTimer2);
  619. window.maximize();
  620. gTimer = window.setInterval("fAutoPrnt()",11000);
  621. }
  622. /**
  623. * 자동출력
  624. */
  625. function fAutoPrnt() {
  626. window.clearinterval(gTimer);
  627. if ( model.getValue("/root/hidden/autoend") =="Y" ){
  628. gTimer = null;
  629. return;
  630. }
  631. var orgPrcpflag = model.getValue("/root/hidden/srchinfo/prcpflag");
  632. if ( chk_count >= 50 ){
  633. chk_count = 0;
  634. window.minimize();
  635. gTimer2 = window.setInterval("fReStart()",5000);
  636. return;
  637. }
  638. chk_count++;
  639. if ( ( chk_count % 4 )=="0" ){
  640. caption14.text="자동 출력중[/]";
  641. }
  642. if ( ( chk_count % 4 )=="1" ){
  643. caption14.text="자동 출력중[―]";
  644. }
  645. if ( ( chk_count % 4 )=="2" ){
  646. caption14.text="자동 출력중[\]";
  647. }
  648. if ( ( chk_count % 4 )=="3" ){
  649. caption14.text="자동 출력중[|]";
  650. }
  651. caption14.refresh();
  652. if(chk_sum_count >= 8){
  653. if (model.getValue("/root/hidden/srchinfo/autoendyn") =="Y") {
  654. if ( model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("M") >=0 ){
  655. model.setValue("/root/hidden/srchinfo/prcpflag", "M");
  656. fHosInSum("N"); //Admission마감
  657. }
  658. if ( model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("W") >=0 ){
  659. model.setValue("/root/hidden/srchinfo/prcpflag", "W");
  660. fHosInSum("N"); //병동응급마감
  661. }
  662. if ( model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("L") >=0 ){
  663. model.setValue("/root/hidden/srchinfo/prcpflag", "G"); // 자동일때는 외출외박으로 처리하여 응급실 퇴원약 제외
  664. fHosInSum("N"); //퇴원약마감
  665. }
  666. if ( model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("G") >=0 ){
  667. model.setValue("/root/hidden/srchinfo/prcpflag", "G");
  668. fHosInSum("N"); //외박마감
  669. }
  670. if ( model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("E") >=0 ){
  671. //model.setValue("/root/hidden/srchinfo/prcpflag", "Q"); //마약만 마감
  672. //fHosInSum("N");
  673. }
  674. }
  675. model.setValue("/root/hidden/srchinfo/prcpflag", "");
  676. chk_sum_count = 0;
  677. }
  678. chk_sum_count++;
  679. //퇴원 자동출력시 마감을 G로 해서 원래 L 값을 보내줘야함
  680. //model.setValue("/root/hidden/srchinfo/prcpflag", orgPrcpflag); //이훈재 막음. ( 옵션을 선택한 값임)
  681. if ( model.getValue("/root/hidden/srchinfo/autokind").indexOf("M") > -1 ){
  682. model.setValue("/root/hidden/srchinfo/prntkind", "M");
  683. fInSumList(); //마감시간별 미출력데이터 조회
  684. for(var i = grd_sumlist.fixedRows; i < grd_sumlist.rows; i++){
  685. chk_prnt_count++;
  686. grd_sumlist.isSelected(i) = true;
  687. grd_sumlist.row = i;
  688. model.makeValue("/root/hidden/srchinfo/autolblyn", "");
  689. fPrntPatList(); //마감시간별 미출력환자데이터 조회
  690. fPrcpMPSPrint("M"); //출력
  691. }
  692. /*
  693. chk_ward.visible = false;
  694. if(model.getValue("/root/hidden/srchinfo/autoprntflag") == "" && model.getValue("/root/hidden/srchinfo/prcpflag") == ""){
  695. messageBox("처방구분을", "C001")
  696. return;
  697. }
  698. model.copyNode("/root/send/sumlistinfo", "/root/hidden/srchinfo");
  699. model.makeValue("/root/hidden/srchinfo/autolblyn", "");
  700. submit("TRADT60205");
  701. if(model.getValue("/root/hidden/srchinfo/fst_drugno") != ""){
  702. model.setValue("/root/main/patlist/patlist/sel", "Y");
  703. }
  704. model.refresh();
  705. fPrcpMPSPrint("M"); //출력
  706. */
  707. }
  708. if ( model.getValue("/root/hidden/srchinfo/autokind").indexOf("L") > -1 ){
  709. model.setValue("/root/hidden/srchinfo/prntkind", "L");
  710. fInSumList(); //마감시간별 미출력데이터 조회
  711. for(var i = grd_sumlist.fixedRows; i < grd_sumlist.rows; i++){
  712. chk_prnt_count++;
  713. grd_sumlist.isSelected(i) = true;
  714. grd_sumlist.row = i;
  715. if (model.getValue("/root/hidden/srchinfo/autoyn") =="Y") {
  716. model.makeValue("/root/hidden/srchinfo/autolblyn", "Y");
  717. } else {
  718. model.makeValue("/root/hidden/srchinfo/autolblyn", "");
  719. }
  720. fPrntPatList(); //마감시간별 미출력환자데이터 조회
  721. fPrcpMPSPrint("L"); //출력
  722. }
  723. }
  724. if ( model.getValue("/root/hidden/srchinfo/autokind").indexOf("Q") > -1 ){
  725. model.setValue("/root/hidden/srchinfo/prntkind", "Q");
  726. fInSumList(); //마감시간별 미출력데이터 조회
  727. for(var i = grd_sumlist.fixedRows; i < grd_sumlist.rows; i++){
  728. chk_prnt_count++;
  729. grd_sumlist.isSelected(i) = true;
  730. grd_sumlist.row = i;
  731. if (model.getValue("/root/hidden/srchinfo/autoyn") =="Y") {
  732. model.makeValue("/root/hidden/srchinfo/autolblyn", "Y");
  733. } else {
  734. model.makeValue("/root/hidden/srchinfo/autolblyn", "");
  735. }
  736. fPrntPatList(); //마감시간별 미출력환자데이터 조회
  737. fPrcpMPSPrint("Q"); //출력
  738. //var gT1 = window.setInterval("fDelay()",10000);
  739. //window.clearinterval(gT1);
  740. }
  741. }
  742. if (model.getValue("/root/hidden/srchinfo/autoatcyn") =="Y") {
  743. //ATC전송
  744. model.setValue("/root/send/atcinfo/drugdd", model.getValue("/root/hidden/srchinfo/prcpdd"));
  745. if ( model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("L") > -1 ) {
  746. model.setValue("/root/send/atcinfo/drugflag", "L");
  747. model.setValue("/root/send/atcinfo/instcd", model.getValue("/root/hidden/srchinfo/instcd"));
  748. submit("TXADT10202"); //ATC Data 전송(배치호출)
  749. }
  750. if ( model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("E") > -1 ) {
  751. model.setValue("/root/send/atcinfo/drugflag", "E");
  752. model.setValue("/root/send/atcinfo/instcd", model.getValue("/root/hidden/srchinfo/instcd"));
  753. submit("TXADT10202"); //ATC Data 전송(배치호출)
  754. }
  755. //if ( model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("L") == -1 && model.getValue("/root/hidden/srchinfo/autoprntflag").indexOf("E") == -1 ){
  756. model.setValue("/root/send/atcinfo/drugflag", "I");
  757. model.setValue("/root/send/atcinfo/instcd", model.getValue("/root/hidden/srchinfo/instcd"));
  758. submit("TXADT10202"); //ATC Data 전송(배치호출)
  759. //}
  760. }
  761. gTimer = window.setInterval("fAutoPrnt()",11000);
  762. }
  763. function fSleep(numberMillis) {
  764. var now = new Date();
  765. var exitTime = now.getTime() + numberMillis;
  766. while (true) {
  767. now = new Date();
  768. if (now.getTime() > exitTime)
  769. return;
  770. }
  771. }
  772. /**
  773. * 투약번호 변경시
  774. */
  775. function fChgDrugno(flag) {
  776. var bResult = true;
  777. if(flag == "first"){
  778. var chk = model.getValue("/root/hidden/srchinfo/fst_drugno");
  779. if(chk == ""){
  780. model.setValue("/root/hidden/srchinfo/last_drugno", "");
  781. model.refresh();
  782. bResult = false;
  783. } else {
  784. if(isNaN(chk)){
  785. messageBox("투약번호는 숫자로","C001");
  786. model.setValue("/root/hidden/srchinfo/fst_drugno", "");
  787. model.refresh();
  788. bResult = false;
  789. }
  790. if(chk.length > 5){
  791. messageBox("투약번호는 5자리미만으로","C001");
  792. model.setValue("/root/hidden/srchinfo/fst_drugno", "");
  793. model.refresh();
  794. bResult = false;
  795. }
  796. }
  797. } else if(flag == "last"){
  798. var chk_fst = model.getValue("/root/hidden/srchinfo/fst_drugno");
  799. var chk_last = model.getValue("/root/hidden/srchinfo/fst_drugno");
  800. if(chk_fst == ""){
  801. messageBox("첫번째 투약번호부터","C001");
  802. model.setValue("/root/hidden/srchinfo/last_drugno", "");
  803. bResult = false;
  804. } else {
  805. if(isNaN(chk_fst)){
  806. messageBox("투약번호는 숫자로","C001");
  807. model.setValue("/root/hidden/srchinfo/fst_drugno", "");
  808. bResult = false;
  809. }
  810. if(chk_fst.length > 5 ){
  811. messageBox("투약번호는 5자리미만으로","C001");
  812. model.setValue("/root/hidden/srchinfo/fst_drugno", "");
  813. bResult = false;
  814. }
  815. if(isNaN(chk_last)){
  816. messageBox("투약번호는 숫자로","C001");
  817. model.setValue("/root/hidden/srchinfo/last_drugno", "");
  818. bResult = false;
  819. }
  820. if(chk_last.length > 5 ){
  821. messageBox("투약번호는 5자리미만으로","C001");
  822. model.setValue("/root/hidden/srchinfo/last_drugno", "");
  823. bResult = false;
  824. }
  825. }
  826. model.refresh();
  827. }
  828. return bResult;
  829. }
  830. ]]>
  831. </script>
  832. </xhtml:head>
  833. <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; ">
  834. <script type="javascript" ev:event="onkeyup">
  835. <![CDATA[
  836. if (event.keyCode==121){
  837. checkbox5.visible=true;
  838. checkbox6.visible=true;
  839. }
  840. ]]>
  841. </script>
  842. <line id="line13" class="line_2" style="x1:0px; y1:422px; x2:570px; y2:422px; "/>
  843. <line id="line8" class="line_2" style="x1:0px; y1:314px; x2:570px; y2:314px; "/>
  844. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  845. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">병동처방전출력(Ver N0114)</caption>
  846. </group>
  847. <button id="button20" class="btn4_letter2" visibility="hidden" style="left:575px; top:448px; width:56px; height:22px; ">
  848. <caption>종료</caption>
  849. </button>
  850. <line id="line6" class="line_2" style="x1:0px; y1:63px; x2:570px; y2:63px; "/>
  851. <line id="line9" class="line_2" style="x1:0px; y1:165px; x2:570px; y2:165px; "/>
  852. <line id="line10" class="line_2" style="x1:0px; y1:268px; x2:570px; y2:268px; "/>
  853. <line id="line11" class="line_2" style="x1:0px; y1:293px; x2:570px; y2:293px; "/>
  854. <caption id="caption20" class="cell_1" style="left:0px; top:193px; width:80px; height:23px; vertical-align:middle; ">병동</caption>
  855. <line id="line12" class="line_2" style="x1:0px; y1:191px; x2:570px; y2:191px; "/>
  856. <caption id="caption21" class="cell_1" style="left:0px; top:218px; width:80px; height:23px; vertical-align:middle; ">등록번호</caption>
  857. <line id="line14" class="line_2" style="x1:0px; y1:216px; x2:570px; y2:216px; "/>
  858. <caption id="caption13" class="cell_1" style="left:0px; top:65px; width:80px; height:45px; vertical-align:middle; ">처방구분</caption>
  859. <caption id="caption22" class="cell_1" style="left:0px; top:40px; width:80px; height:23px; vertical-align:middle; ">적용일자</caption>
  860. <caption id="caption24" class="cell_1" style="left:0px; top:245px; width:80px; height:70px; vertical-align:middle; ">출력구분</caption>
  861. <caption id="caption25" style="left:190px; top:168px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
  862. <caption id="caption26" class="cell_1" style="left:0px; top:400px; width:80px; height:23px; vertical-align:middle; ">처방구분</caption>
  863. <line id="line15" class="line_2" style="x1:0px; y1:241px; x2:570px; y2:241px; "/>
  864. <line id="line17" class="line_1" style="x1:0px; y1:35px; x2:570px; y2:35px; "/>
  865. <button id="button25" class="btn3_letter4" style="left:0px; top:345px; width:80px; height:22px; ">
  866. <caption>출력결과</caption>
  867. <script type="javascript" ev:event="DOMActivate">
  868. <![CDATA[
  869. messageBox("개발중", "E008");
  870. ]]>
  871. </script>
  872. </button>
  873. <button id="button5" class="icon_search" visibility="visible" style="left:420px; top:195px; width:16px; height:16px; ">
  874. <caption/>
  875. <script type="javascript" ev:event="DOMActivate">
  876. <![CDATA[
  877. if(chk_ward.visible==true){
  878. chk_ward.visible = false;
  879. }else {
  880. chk_ward.visible = true;
  881. }
  882. model.refresh();
  883. ]]>
  884. </script>
  885. </button>
  886. <button id="btn_prt" class="btn6_letter2" style="left:510px; top:345px; width:56px; height:22px; ">
  887. <caption>출력</caption>
  888. <script type="javascript" ev:event="DOMActivate">
  889. <![CDATA[
  890. if(model.getValue("/root/hidden/srchinfo/fst_drugno") != "" || model.getValue("/root/hidden/srchinfo/fst_drugno") != "") {
  891. //setInputNodeCurText();
  892. var bResult = fChgDrugno("first");
  893. if(bResult){
  894. fInSumList();
  895. if(grd_patlist.rows > 1) {
  896. model.setValue("/root/main/patlist/patlist/sel", "Y");
  897. }
  898. //fPrcpMPSPrint();
  899. }
  900. }
  901. prntcheck = "Y"
  902. fPrcpMPSPrint();
  903. ]]>
  904. </script>
  905. </button>
  906. <button id="button1" class="btn6_letter2" style="left:510px; top:75px; width:56px; height:22px; ">
  907. <caption>마감</caption>
  908. <script type="javascript" ev:event="DOMActivate">
  909. <![CDATA[
  910. if ( model.getValue("/root/hidden/srchinfo/prcpflag") =="E" ){
  911. messageBox("응급실은 마감할 수 없습니다.", "E999");
  912. return;
  913. }
  914. fHosInSum("Y");
  915. fInSumList();
  916. ]]>
  917. </script>
  918. </button>
  919. <select id="chk_mps" ref="/root/hidden/srchinfo/mpsflag" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:85px; top:247px; width:105px; height:20px; border-style:none; ">
  920. <choices>
  921. <item>
  922. <label>처방전</label>
  923. <value>P</value>
  924. </item>
  925. </choices>
  926. </select>
  927. <select id="chk_lbl_drug" ref="/root/hidden/srchinfo/lbl_drug" overflow="visible" appearance="full" cellspacing="10" cols="10" rows="1" sep="|" style="left:240px; top:275px; width:280px; height:20px; border-style:none; ">
  928. <choices>
  929. <item>
  930. <label>정제</label>
  931. <value>D</value>
  932. </item>
  933. <item>
  934. <label>PTP</label>
  935. <value>DT</value>
  936. </item>
  937. <item>
  938. <label>기타약</label>
  939. <value>DX</value>
  940. </item>
  941. <item>
  942. <label>향정</label>
  943. <value>DH</value>
  944. </item>
  945. </choices>
  946. <script type="javascript" ev:event="xforms-value-changed">
  947. <![CDATA[
  948. if(model.getValue("/root/hidden/srchinfo/lbl_drug") == ""){
  949. if(model.getValue("/root/hidden/srchinfo/lbl_inj") == ""){
  950. model.setValue("/root/hidden/srchinfo/lblyn", "");
  951. }
  952. } else {
  953. model.setValue("/root/hidden/srchinfo/lblyn", "Y");
  954. }
  955. model.refresh();
  956. ]]>
  957. </script>
  958. </select>
  959. <select id="chk_lbl_inj" ref="/root/hidden/srchinfo/lbl_inj" overflow="visible" appearance="full" cellspacing="10" cols="10" rows="1" sep="|" style="left:240px; top:298px; width:315px; height:18px; border-style:none; ">
  960. <choices>
  961. <item>
  962. <label>일반주사</label>
  963. <value>I</value>
  964. </item>
  965. <item>
  966. <label>영양수액</label>
  967. <value>IO</value>
  968. </item>
  969. <item>
  970. <label>기타</label>
  971. <value>IX</value>
  972. </item>
  973. <item>
  974. <label>향정</label>
  975. <value>IH</value>
  976. </item>
  977. </choices>
  978. </select>
  979. <input id="ipt_prcpdd" ref="/root/hidden/srchinfo/prcpdd" class="input_default" inputtype="date" style="left:85px; top:41px; width:135px; height:19px; ">
  980. <script type="javascript" ev:event="xforms-value-changed">
  981. <![CDATA[
  982. fInSumList();
  983. ]]>
  984. </script>
  985. </input>
  986. <input id="ipt_fst_drugno" ref="/root/hidden/srchinfo/fst_drugno" class="input_search" autonext="false" maxlength="5" format="99999" style="left:85px; top:169px; width:100px; height:19px; ">
  987. <script type="javascript" ev:event="xforms-value-changed">
  988. <![CDATA[
  989. fChgDrugno("first");
  990. ]]>
  991. </script>
  992. <script type="javascript" ev:event="onkeyup">
  993. <![CDATA[
  994. if(event.keyCode == "13") {
  995. setInputNodeCurText();
  996. var bResult = fChgDrugno("first");
  997. if(bResult){
  998. fInSumList();
  999. if(grd_patlist.rows > 1) {
  1000. model.setValue("/root/main/patlist/patlist/sel", "Y");
  1001. }
  1002. //fPrcpMPSPrint();
  1003. }
  1004. }
  1005. ]]>
  1006. </script>
  1007. </input>
  1008. <input id="ipt_last_drugno" ref="/root/hidden/srchinfo/last_drugno" class="input_search" autonext="false" maxlength="5" format="99999" style="left:205px; top:169px; width:100px; height:19px; ">
  1009. <script type="javascript" ev:event="xforms-value-changed">
  1010. <![CDATA[
  1011. fChgDrugno("last");
  1012. ]]>
  1013. </script>
  1014. <script type="javascript" ev:event="onkeyup">
  1015. <![CDATA[
  1016. if(event.keyCode == "13") {
  1017. setInputNodeCurText();
  1018. var bResult = fChgDrugno("last");
  1019. if(bResult){
  1020. fInSumList();
  1021. model.setValue("/root/main/patlist/patlist/sel", "Y");
  1022. //fPrcpMPSPrint();
  1023. }
  1024. }
  1025. ]]>
  1026. </script>
  1027. </input>
  1028. <input id="ipt_pid" ref="/root/hidden/srchinfo/pid" class="input_default" autonext="false" maxlength="10" style="left:85px; top:219px; width:100px; height:19px; ">
  1029. <script type="javascript" ev:event="onkeyup">
  1030. <![CDATA[
  1031. if(event.keyCode == "13") {
  1032. setInputNodeCurText();
  1033. fInSumList();
  1034. }
  1035. ]]>
  1036. </script>
  1037. </input>
  1038. <select id="chk_lbl" ref="/root/hidden/srchinfo/lblyn" overflow="visible" appearance="full" style="left:85px; top:275px; width:55px; height:15px; border-style:none; ">
  1039. <choices>
  1040. <item>
  1041. <label>라벨</label>
  1042. <value>Y</value>
  1043. </item>
  1044. </choices>
  1045. <script type="javascript" ev:event="xforms-value-changed">
  1046. <![CDATA[
  1047. fChkLBL_YN();
  1048. ]]>
  1049. </script>
  1050. </select>
  1051. <output id="output1" ref="/root/hidden/srchinfo/instcd" visibility="hidden" style="left:640px; top:448px; width:100px; height:19px; "/>
  1052. <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; ">
  1053. <col ref="sumdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
  1054. <col ref="sumtm" format="hh:nn:ss" style="text-align:center; vertical-align:middle; "/>
  1055. <col ref="sumdt" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  1056. <col ref="prcpflagnm" style="text-align:center; vertical-align:middle; "/>
  1057. <col ref="cnt" style="text-align:right; vertical-align:middle; "/>
  1058. <col ref="sumflag" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  1059. <col ref="drugkind" visibility="hidden"/>
  1060. <script type="javascript" ev:event="onclick">
  1061. <![CDATA[
  1062. fPrntPatList();
  1063. ]]>
  1064. </script>
  1065. </datagrid>
  1066. <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, 69, 80, 61, 43, 67, 90, 85, 84, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:835px; top:35px; width:350px; height:305px; ">
  1067. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  1068. <col ref="prnttims" style="text-align:right; "/>
  1069. <col ref="drugdd" visibility="hidden" style="text-align:right; "/>
  1070. <col ref="drugno" style="text-align:right; "/>
  1071. <col ref="wardnm" style="text-align:center; "/>
  1072. <col ref="pid" style="text-align:center; "/>
  1073. <col ref="patnm" style="text-align:center; "/>
  1074. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1075. <col ref="orddd" visibility="hidden"/>
  1076. <col ref="cretno" visibility="hidden"/>
  1077. <col ref="orddeptcd" visibility="hidden"/>
  1078. <col ref="orddeptnm" style="text-align:center; "/>
  1079. <col ref="orddrnm" style="text-align:center; "/>
  1080. <col ref="prcpgenrflag" visibility="hidden"/>
  1081. <col ref="wardcd" visibility="hidden"/>
  1082. <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1083. <col ref="drugflag" visibility="hidden"/>
  1084. </datagrid>
  1085. <button id="btn_sea" class="btn1_letter2" visibility="visible" style="left:510px; top:40px; width:56px; height:22px; ">
  1086. <caption>조회</caption>
  1087. <script type="javascript" ev:event="DOMActivate">
  1088. <![CDATA[
  1089. fInSumList();
  1090. ]]>
  1091. </script>
  1092. </button>
  1093. <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; ">
  1094. <choices>
  1095. <item>
  1096. <label>정규</label>
  1097. <value>R</value>
  1098. </item>
  1099. <item>
  1100. <label>추가</label>
  1101. <value>A</value>
  1102. </item>
  1103. </choices>
  1104. <script type="javascript" ev:event="xforms-value-changed">
  1105. <![CDATA[
  1106. fInSumList();
  1107. ]]>
  1108. </script>
  1109. </select1>
  1110. <caption id="caption1" class="cell_1" style="left:0px; top:168px; width:80px; height:23px; vertical-align:middle; ">투약번호</caption>
  1111. <caption id="caption2" class="cell_1" style="left:0px; top:118px; width:80px; height:23px; vertical-align:middle; ">약주사구분</caption>
  1112. <select1 id="radio1" ref="/root/hidden/srchinfo/drugkind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:86px; top:120px; width:165px; height:20px; border-style:none; ">
  1113. <choices>
  1114. <item>
  1115. <label>전체</label>
  1116. <value>T</value>
  1117. </item>
  1118. <item>
  1119. <label>약</label>
  1120. <value>D</value>
  1121. </item>
  1122. <item>
  1123. <label>주사</label>
  1124. <value>M</value>
  1125. </item>
  1126. </choices>
  1127. <script type="javascript" ev:event="xforms-value-changed">
  1128. <![CDATA[
  1129. fInSumList();
  1130. ]]>
  1131. </script>
  1132. </select1>
  1133. <button id="btn_autoprnt_start" class="btn1_letter6" style="left:355px; top:448px; width:104px; height:22px; ">
  1134. <caption>자동출력시작</caption>
  1135. <script type="javascript" ev:event="DOMActivate">
  1136. <![CDATA[
  1137. fClickAutoPrnt("Y");
  1138. ]]>
  1139. </script>
  1140. </button>
  1141. <button id="btn_autoprnt_end" class="btn1_letter6" style="left:462px; top:448px; width:104px; height:22px; ">
  1142. <caption>자동출력종료</caption>
  1143. <script type="javascript" ev:event="DOMActivate">
  1144. <![CDATA[
  1145. fClickAutoPrnt("N");
  1146. ]]>
  1147. </script>
  1148. </button>
  1149. <select id="chk_auto_big" ref="/root/hidden/srchinfo/autokind" overflow="visible" appearance="full" cellspacing="34" cols="3" sep="|" style="left:85px; top:426px; width:305px; height:20px; border-style:none; ">
  1150. <choices>
  1151. <item>
  1152. <label>처방전</label>
  1153. <value>M</value>
  1154. </item>
  1155. <item>
  1156. <label>라벨</label>
  1157. <value>L</value>
  1158. </item>
  1159. <item>
  1160. <label>물약라벨</label>
  1161. <value>Q</value>
  1162. </item>
  1163. </choices>
  1164. </select>
  1165. <select id="chk_auto_small" ref="/root/hidden/srchinfo/autoprntflag" overflow="visible" appearance="full" cellspacing="12" cols="5" sep="|" style="left:85px; top:401px; width:375px; height:20px; border-style:none; ">
  1166. <choices>
  1167. <item>
  1168. <label>Admission</label>
  1169. <value>M</value>
  1170. </item>
  1171. <item>
  1172. <label>병동응급</label>
  1173. <value>W</value>
  1174. </item>
  1175. <item>
  1176. <label>응급실</label>
  1177. <value>E</value>
  1178. </item>
  1179. <item>
  1180. <label>퇴원</label>
  1181. <value>L</value>
  1182. </item>
  1183. <item>
  1184. <label>외박</label>
  1185. <value>G</value>
  1186. </item>
  1187. </choices>
  1188. </select>
  1189. <button id="btn_init" class="btn1_letter3" style="left:498px; top:193px; width:68px; height:22px; ">
  1190. <caption>초기화</caption>
  1191. <script type="javascript" ev:event="DOMActivate">
  1192. <![CDATA[
  1193. model.setValue("/root/hidden/srchinfo/fst_drugno", "");
  1194. model.setValue("/root/hidden/srchinfo/last_drugno", "");
  1195. model.setValue("/root/hidden/srchinfo/wardcd", "");
  1196. model.setValue("/root/hidden/srchinfo/wardnm", "");
  1197. model.setValue("/root/temp/srchinfo/ward", "");
  1198. model.setValue("/root/hidden/srchinfo/pid", "");
  1199. model.refresh();
  1200. fInSumList();
  1201. ]]>
  1202. </script>
  1203. </button>
  1204. <line id="line2" class="line_2" style="x1:0px; y1:398px; x2:570px; y2:398px; "/>
  1205. <button id="btn_hist" class="btn2_letter5" style="left:835px; top:15px; width:75px; height:19px; ">
  1206. <caption>미출력선택</caption>
  1207. <script type="javascript" ev:event="DOMActivate">
  1208. <![CDATA[
  1209. for ( var i = 1 ; i < grd_patlist.rows; i++){
  1210. if ( parseInt (model.getValue("/root/main/patlist/patlist["+i+"]/prnttims")) ==0 ){
  1211. model.setValue( "/root/main/patlist/patlist["+i+"]/sel", "Y");
  1212. } else {
  1213. model.setValue( "/root/main/patlist/patlist["+i+"]/sel", "N");
  1214. }
  1215. }
  1216. model.refresh();
  1217. ]]>
  1218. </script>
  1219. </button>
  1220. <caption id="caption3" class="cell_1" style="left:0px; top:143px; width:80px; height:23px; vertical-align:middle; ">기타조회구분</caption>
  1221. <select1 id="radio3" ref="/root/hidden/srchinfo/etcflag" appearance="full" cols="2" overflow="visible" style="left:86px; top:144px; width:130px; height:20px; border-style:none; ">
  1222. <choices>
  1223. <item>
  1224. <label>전체</label>
  1225. <value>T</value>
  1226. </item>
  1227. <item>
  1228. <label>특정구분만</label>
  1229. <value>Y</value>
  1230. </item>
  1231. </choices>
  1232. <script type="javascript" ev:event="xforms-value-changed">
  1233. <![CDATA[
  1234. if(model.getValue("/root/hidden/srchinfo/etcflag") == "T"){
  1235. model.setValue("/root/hidden/srchinfo/etcdescflag", "");
  1236. cbx_etcdescflag.disabled = true;
  1237. } else {
  1238. model.setValue("/root/hidden/srchinfo/etcdescflag", "");
  1239. cbx_etcdescflag.disabled = false;
  1240. }
  1241. model.refresh();
  1242. fInSumList();
  1243. ]]>
  1244. </script>
  1245. </select1>
  1246. <select id="cbx_etcdescflag" ref="/root/hidden/srchinfo/etcdescflag" overflow="visible" appearance="full" cols="3" sep="|" style="left:220px; top:144px; width:175px; height:20px; border-style:none; ">
  1247. <choices>
  1248. <item>
  1249. <label>고가</label>
  1250. <value>E</value>
  1251. </item>
  1252. <item>
  1253. <label>산제</label>
  1254. <value>P</value>
  1255. </item>
  1256. <item>
  1257. <label>향정</label>
  1258. <value>H</value>
  1259. </item>
  1260. </choices>
  1261. <script type="javascript" ev:event="xforms-value-changed">
  1262. <![CDATA[
  1263. fInSumList();
  1264. ]]>
  1265. </script>
  1266. </select>
  1267. <button id="button2" class="btn6_letter4" style="left:425px; top:345px; width:80px; height:22px; ">
  1268. <caption>물약라벨</caption>
  1269. <script type="javascript" ev:event="DOMActivate">
  1270. <![CDATA[
  1271. prntcheck = "Y"
  1272. fLiquidLBLPrint();
  1273. ]]>
  1274. </script>
  1275. </button>
  1276. <caption id="caption4" class="tit_2" style="left:5px; top:20px; width:185px; height:14px; ">마감 및 출력</caption>
  1277. <line id="line4" class="line_2" style="x1:0px; y1:110px; x2:570px; y2:110px; "/>
  1278. <line id="line5" class="line_2" style="x1:0px; y1:140px; x2:570px; y2:140px; "/>
  1279. <caption id="caption5" class="tit_2" style="left:5px; top:380px; width:185px; height:13px; ">자동출력</caption>
  1280. <line id="line7" class="line_1" style="x1:0px; y1:395px; x2:570px; y2:395px; "/>
  1281. <select id="checkbox1" ref="/root/hidden/srchinfo/drugall" overflow="visible" appearance="full" style="left:150px; top:275px; width:55px; height:15px; border-style:none; ">
  1282. <choices>
  1283. <item>
  1284. <label>약</label>
  1285. <value>Y</value>
  1286. </item>
  1287. </choices>
  1288. <script type="javascript" ev:event="xforms-value-changed">
  1289. <![CDATA[
  1290. var chk = model.getValue("/root/hidden/srchinfo/drugall");
  1291. var sLbl_Drug = "D|DT|DX|DH";
  1292. var sLbl_Inj = "I|IO|IX|IH";
  1293. if(chk == "Y"){
  1294. model.makeValue("/root/hidden/srchinfo/lbl_drug", sLbl_Drug);
  1295. } else {
  1296. model.makeValue("/root/hidden/srchinfo/lbl_drug", "");
  1297. }
  1298. model.refresh();
  1299. ]]>
  1300. </script>
  1301. </select>
  1302. <select id="checkbox2" ref="/root/hidden/srchinfo/injall" overflow="visible" appearance="full" style="left:150px; top:298px; width:55px; height:15px; border-style:none; ">
  1303. <choices>
  1304. <item>
  1305. <label>주사</label>
  1306. <value>Y</value>
  1307. </item>
  1308. </choices>
  1309. <script type="javascript" ev:event="xforms-value-changed">
  1310. <![CDATA[
  1311. var chk = model.getValue("/root/hidden/srchinfo/injall");
  1312. var sLbl_Drug = "D|DT|DX|DH";
  1313. var sLbl_Inj = "I|IO|IX|IH";
  1314. if(chk == "Y"){
  1315. model.makeValue("/root/hidden/srchinfo/lbl_inj", sLbl_Inj);
  1316. } else {
  1317. model.makeValue("/root/hidden/srchinfo/lbl_inj", "");
  1318. }
  1319. model.refresh();
  1320. ]]>
  1321. </script>
  1322. </select>
  1323. <caption id="caption7" autoresize="true" style="left:225px; top:277px; width:10px; height:15px; ">(</caption>
  1324. <caption id="caption8" autoresize="true" style="left:225px; top:300px; width:10px; height:15px; ">(</caption>
  1325. <caption id="caption9" autoresize="true" style="left:555px; top:300px; width:10px; height:15px; ">)</caption>
  1326. <caption id="caption10" autoresize="true" style="left:555px; top:277px; width:10px; height:15px; ">)</caption>
  1327. <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:85px; top:195px; width:325px; height:19px; "/>
  1328. <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:295px; top:215px; width:140px; height:19px; "/>
  1329. <select id="checkbox3" ref="/root/hidden/srchinfo/reprintyn" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:85px; top:320px; width:105px; height:20px; border-style:none; ">
  1330. <choices>
  1331. <item>
  1332. <label>재출력</label>
  1333. <value>Y</value>
  1334. </item>
  1335. </choices>
  1336. </select>
  1337. <caption id="caption11" class="cell_1" style="left:0px; top:318px; width:80px; height:23px; font-weight:bold; vertical-align:middle; ">재출력</caption>
  1338. <caption id="caption12" class="cell_1" style="left:0px; top:424px; width:80px; height:23px; vertical-align:middle; ">출력구분</caption>
  1339. <line id="line3" class="line_3" style="x1:0px; y1:446px; x2:570px; y2:446px; "/>
  1340. <line id="line1" class="line_3" style="x1:0px; y1:340px; x2:570px; y2:340px; "/>
  1341. <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; ">
  1342. <choices>
  1343. <item>
  1344. <label>Admission</label>
  1345. <value>M</value>
  1346. </item>
  1347. <item>
  1348. <label>병동응급</label>
  1349. <value>W</value>
  1350. </item>
  1351. <item>
  1352. <label>퇴원</label>
  1353. <value>L</value>
  1354. </item>
  1355. <item>
  1356. <label>외박</label>
  1357. <value>G</value>
  1358. </item>
  1359. <item>
  1360. <label>응급실</label>
  1361. <value>E</value>
  1362. </item>
  1363. </choices>
  1364. <script type="javascript" ev:event="xforms-value-changed">
  1365. <![CDATA[
  1366. fInSumList();
  1367. ]]>
  1368. </script>
  1369. </select1>
  1370. <script type="javascript" ev:event="onkeypress">
  1371. <![CDATA[
  1372. if(event.keyCode == "115") { //F4키를 누르면 자동출력 중지
  1373. prntcheck = "N"
  1374. }
  1375. ]]>
  1376. </script>
  1377. <group id="group2" visibility="hidden" style="left:575px; top:360px; width:605px; height:90px; background-color:#ffff99; ">
  1378. <caption id="caption14" style="left:0px; top:15px; width:595px; height:75px; font-size:48pt; font-weight:bold; color:#ff0000; ">자동 출력 중</caption>
  1379. </group>
  1380. <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; ">
  1381. <choices>
  1382. <item>
  1383. <label>항암프로토콜처방만</label>
  1384. <value>Y</value>
  1385. </item>
  1386. </choices>
  1387. </select>
  1388. <caption id="caption15" style="left:235px; top:347px; width:55px; height:15px; ">출력간격</caption>
  1389. <caption id="caption16" style="left:340px; top:347px; width:20px; height:15px; ">초</caption>
  1390. <input id="input1" ref="/root/hidden/sleeptime" class="input_default" visibility="visible" style="left:290px; top:345px; width:45px; height:19px; "/>
  1391. <select id="checkbox5" ref="/root/hidden/srchinfo/autoatcyn" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:495px; top:425px; width:65px; height:20px; border-style:none; ">
  1392. <choices>
  1393. <item>
  1394. <label>ATC전송</label>
  1395. <value>Y</value>
  1396. </item>
  1397. </choices>
  1398. </select>
  1399. <select id="checkbox6" ref="/root/hidden/srchinfo/autoendyn" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" rows="1" sep="|" style="left:420px; top:425px; width:65px; height:20px; border-style:none; ">
  1400. <choices>
  1401. <item>
  1402. <label>마감작업</label>
  1403. <value>Y</value>
  1404. </item>
  1405. </choices>
  1406. </select>
  1407. <select id="checkbox7" ref="/root/hidden/srchinfo/autodscyn" overflow="visible" appearance="full" style="left:375px; top:67px; width:95px; height:15px; border-style:none; ">
  1408. <choices>
  1409. <item>
  1410. <label>DSC퇴원제외</label>
  1411. <value>Y</value>
  1412. </item>
  1413. </choices>
  1414. <hint>
  1415. <![CDATA[처방구분이 퇴원이 선택된 경우만 적용됩니다.]]>
  1416. </hint>
  1417. <script type="javascript" ev:event="xforms-value-changed">
  1418. <![CDATA[
  1419. fInSumList();
  1420. ]]>
  1421. </script>
  1422. </select>
  1423. <select id="checkbox8" ref="/root/hidden/srchinfo/autodscyn" overflow="visible" appearance="full" style="left:440px; top:401px; width:95px; height:15px; border-style:none; ">
  1424. <choices>
  1425. <item>
  1426. <label>DSC퇴원제외</label>
  1427. <value>Y</value>
  1428. </item>
  1429. </choices>
  1430. <hint>
  1431. <![CDATA[처방구분이 퇴원이 선택된 경우만 적용됩니다.]]>
  1432. </hint>
  1433. <script type="javascript" ev:event="xforms-value-changed">
  1434. <![CDATA[
  1435. fInSumList();
  1436. ]]>
  1437. </script>
  1438. </select>
  1439. <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:215px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  1440. <choices>
  1441. <itemset nodeset="/root/hidden/deptlist/ward">
  1442. <label ref="wardnm"/>
  1443. <value ref="wardcd"/>
  1444. </itemset>
  1445. </choices>
  1446. <script type="javascript" ev:event="onclick">
  1447. <![CDATA[
  1448. //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  1449. if(chk_ward.mouseRow == 0){
  1450. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  1451. //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";
  1452. //ipt_wardnm.value = "분만실|신생아실|신생아중환자실|응급의료센터|통원수술센터|임상시험센터병동|04층동병동|04층서병동|05층동병동|05층서병동|06층동병동|06층서병동|07층동병동|07층서병동|08층동병동|08층서병동|09층동병동|09층서병동|10층동병동|10층서병동|응급병동|호스피스병동|중환자실|내과중환자실|외과중환자실|신경외과중환자실|순환기계중환자실|2층중환자실|특수주사실특수주사";
  1453. 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");
  1454. } else {
  1455. //ipt_wardcd.value = "";
  1456. //ipt_wardnm.value = "";
  1457. model.setValue("/root/temp/srchinfo/ward", "");
  1458. }
  1459. model.refresh();
  1460. }
  1461. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  1462. ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
  1463. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  1464. } else {
  1465. ipt_wardcd.value = chk_ward.value;
  1466. ipt_wardnm.value = chk_ward.label;
  1467. }
  1468. //input3.refresh();
  1469. //검사실 체크박스 감추기
  1470. //chk_excuroom.visible = false;
  1471. ]]>
  1472. </script>
  1473. </select>
  1474. </xhtml:body>
  1475. </xhtml:html>