SMADT30100_마약향정처방관리.xrw 80 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>마약/향정약 처방관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <narclist>
  11. <narclist>
  12. <sel/>
  13. <prcpdd/>
  14. <pid/>
  15. <patnm/>
  16. <issdeptcdnm/>
  17. <roomcd/>
  18. <prcpcd/>
  19. <drugnm/>
  20. <totdrugqty/>
  21. <dayprcpqty/>
  22. <prcpqty/>
  23. <prcpqtyunit/>
  24. <prcptims/>
  25. <prcpdayno/>
  26. <rtnqty/>
  27. <returnqty/>
  28. <rtnunit/>
  29. <prcpdt/>
  30. <prcpidnm/>
  31. <drugdt/>
  32. <drugidnm/>
  33. <delivedt/>
  34. <deliveidnm/>
  35. <acptdt/>
  36. <acptidnm/>
  37. <rtnappdt/>
  38. <rtnappidnm/>
  39. <rtndt/>
  40. <rtnidnm/>
  41. <rtncnfmdt/>
  42. <rtncnfmidnm/>
  43. <rtnresn/>
  44. <spreqty/>
  45. <spredt/>
  46. <spreidnm/>
  47. <sprecnfmdt/>
  48. <sprecnfmidnm/>
  49. <prcpno/>
  50. <prcphistno/>
  51. <drugdd/>
  52. <drugno/>
  53. <ioflag/>
  54. <instcd/>
  55. <narcflag/>
  56. <narcstat/>
  57. <cnclstat/>
  58. <rtnstat/>
  59. <prntflag/>
  60. <returnflag/>
  61. <orddd/>
  62. <orddeptcd/>
  63. <prcpgenrflag/>
  64. <drugflag/>
  65. <drugkind/>
  66. <drugkindnm/>
  67. <sumdt/>
  68. <reqid/>
  69. <reqidnm/>
  70. <reqdt/>
  71. <statvisible/>
  72. <medrendyn/>
  73. <medrqty/>
  74. <medrtims/>
  75. <medrx/>
  76. <rtndrugtims/>
  77. <rtndrugdayno/>
  78. <rtnstocqty/>
  79. <engnm/>
  80. <abbrnm/>
  81. <util/>
  82. <mthdcnts1/>
  83. <mthdcnts2/>
  84. <mthdcnts3/>
  85. <mthdcnts4/>
  86. <drugdesc/>
  87. <mthddesc/>
  88. </narclist>
  89. </narclist>
  90. <barcdprntsetup>
  91. </barcdprntsetup>
  92. <rtnprntlist/>
  93. <detlprcplist>
  94. <detlprcpinfo>
  95. <ioflagnm/>
  96. <ioflag/>
  97. <prcpno/>
  98. <drugno/>
  99. <execdd/>
  100. <exectm/>
  101. <drugsumdt/>
  102. <execdeptnm/>
  103. <execdeptcd/>
  104. <issdeptcd/>
  105. <issdeptcdnm/>
  106. <execdrnm/>
  107. </detlprcpinfo>
  108. </detlprcplist>
  109. <sumlist/>
  110. </main>
  111. <send>
  112. <srchinfo/>
  113. <srchcond>
  114. <deptflag/>
  115. <narcflag>M</narcflag>
  116. </srchcond>
  117. <prntinfo/>
  118. <narcinfo>
  119. <srchinfo/>
  120. <narclist/>
  121. <userinfo/>
  122. </narcinfo>
  123. <userinfo>
  124. <userid/>
  125. </userinfo>
  126. <prntdt>
  127. <narcdata/>
  128. </prntdt>
  129. <lblskip/>
  130. <chkall/>
  131. <scrnid/>
  132. </send>
  133. <init>
  134. <barcdprntsetup>
  135. <setupinfo/>
  136. </barcdprntsetup>
  137. <lbltype/>
  138. <nartype/>
  139. <misdeptlist>
  140. <deptlist/>
  141. </misdeptlist>
  142. </init>
  143. <hidden>
  144. <popup>
  145. <prcp>
  146. <item>
  147. <name>실시내역</name>
  148. <param>Execlist</param>
  149. </item>
  150. </prcp>
  151. </popup>
  152. </hidden>
  153. <temp>
  154. <srchinfo>
  155. <narcflag/>
  156. <timeflag>2</timeflag>
  157. <fst_dd/>
  158. <last_dd/>
  159. <pid/>
  160. <ward/>
  161. <srchdrugno/>
  162. <barcode/>
  163. <srchdrugkind/>
  164. <srchioflag>I</srchioflag>
  165. <drugflag>I</drugflag>
  166. <srchroot/>
  167. <narcstat/>
  168. <cnclflag/>
  169. <cnclstat/>
  170. <rtnflag/>
  171. <rtnstat/>
  172. <narctypeflag/>
  173. <narctype/>
  174. <srchid/>
  175. <narccd/>
  176. <srchdeptcd/>
  177. <prtab/>
  178. <barcodespre/>
  179. <nodeliveflag/>
  180. <stocdeptcd/>
  181. <autoprnt/>
  182. <srchprcpkind/>
  183. <srchprcpkindall/>
  184. <prntdt/>
  185. <issdeptcd/>
  186. <wardnm/>
  187. <selkey/>
  188. <selkeyall/>
  189. </srchinfo>
  190. <srchcond>
  191. <narclist>
  192. <sel/>
  193. <narcnm/>
  194. <narccd/>
  195. </narclist>
  196. <ward>
  197. <wardcd/>
  198. <wardnm/>
  199. </ward>
  200. <dept>
  201. <deptcd/>
  202. <deptnm/>
  203. </dept>
  204. </srchcond>
  205. <userinfo>
  206. <userinfo>
  207. <userid/>
  208. <usernm/>
  209. <userdeptcd/>
  210. <userdeptnm/>
  211. </userinfo>
  212. </userinfo>
  213. <chkcashinfo>
  214. <narclist/>
  215. </chkcashinfo>
  216. <ret/>
  217. <drugdeptinfo/>
  218. <hosp>
  219. <hosp/>
  220. </hosp>
  221. <narclist>
  222. <narclist/>
  223. </narclist>
  224. </temp>
  225. <prtinfo>
  226. <hosp>
  227. <hosp/>
  228. <narcflag/>
  229. <pastillyn/>
  230. </hosp>
  231. <narclist>
  232. <narclist/>
  233. </narclist>
  234. <sumlist>
  235. <sumlist/>
  236. </sumlist>
  237. </prtinfo>
  238. </root>
  239. </instance>
  240. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  241. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  242. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  243. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  244. <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT30100.js"/>
  245. <script type="javascript" ev:event="xforms-ready">
  246. <![CDATA[
  247. var autocnt = 0;
  248. fInit();
  249. chk_all.value = "Y";
  250. // 20101221 wify 경북대병원 처방전 재출력 버튼 추가
  251. model.makeNode("/root/temp/reprnt");
  252. ]]>
  253. </script>
  254. <submission id="TRADT30101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
  255. <submission id="TRADT30102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/narclist"/>
  256. <submission id="TRADT30103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntinfo" replace="instance" resultref="/root/main/prntlist"/>
  257. <submission id="TRADT30104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/temp/userinfo"/>
  258. <submission id="TRADT30106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/init/lbltype"/>
  259. <submission id="TRADT30107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/init/nartype"/>
  260. <submission id="TRADT30109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/sumlist"/>
  261. <submission id="TRADT30111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp/prntdt"/>
  262. <submission id="TXADT30101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo" replace="instance" resultref="/root/main/narclist"/>
  263. <submission id="TXADT30102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo" replace="instance" resultref="/root/temp/ret"/>
  264. <submission id="TXADT30104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntdt" replace="instance" resultref="/root/temp/ret"/>
  265. <submission id="TRADT30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
  266. <submission id="TRADT30405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutdeptinfo" replace="instance" resultref="/root/temp/dutdeptinfo"/>
  267. <!-- 프린터 설정-->
  268. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  269. <bind id="bind1" ref="/root/main/narclist/narclist/narcstat" readonly="../pid != ''"/>
  270. <bind id="bind2" ref="/root/main/narclist/narclist/cnclstat" readonly="../pid != ''"/>
  271. <bind id="bind3" ref="/root/main/narclist/narclist/rtnstat" readonly="../pid != ''"/>
  272. <bind id="bind4" ref="/root/main/narclist/narclist/sel" readonly="../narcstat = '1'"/>
  273. <submission id="TRADT30105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo"/>
  274. <submission id="TXADT30103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo/narclist" replace="instance"/>
  275. <!-- 출고부서조회-->
  276. <submission id="TRADT01106" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/misdeptlist"/>
  277. <submission id="TRADT30108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/rtnprntlist"/>
  278. <!-- 약력조회화면의 실시내역조회 -->
  279. <submission id="TRADT10311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdetlinfo" replace="instance" resultref="/root/main/detlprcplist"/>
  280. <submission id="TRADT30110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp/narclist"/>
  281. </model>
  282. <script type="javascript">
  283. <![CDATA[
  284. /* @group : 마약향정처방관리 엑셀다운
  285. * @ver : 2008.10.09
  286. * @by :
  287. * @-----------------------------------
  288. * @type : function
  289. * @access : public
  290. * @desc : 엑셀 저장
  291. */
  292. function fExeSaveToExcel(){
  293. var fileName = window.fileDialog("save", ",", false, "마약향정처방관리"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  294. if (fileName != "")
  295. {
  296. grd_narclist.saveExcel(fileName);
  297. }
  298. }
  299. //프린터 설정
  300. function fSetPrint() {
  301. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  302. if(count == 0) {
  303. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  304. }
  305. //open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  306. open("SPZUR00300_바코드프린터설정_knuh.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  307. }
  308. ]]>
  309. </script>
  310. </xhtml:head>
  311. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  312. <script type="javascript" ev:event="onmenu">
  313. <![CDATA[
  314. //********************************************************************************************//
  315. // 반환종료 팝업메뉴 //
  316. //********************************************************************************************//
  317. var popupParam = event.description;
  318. var selCnt = 0;
  319. if(popupParam == "RtnEnd") {//반환종료
  320. var msg = messageBox("[반환종료]", "Q004");
  321. if(msg == "7") return;
  322. model.removeNodeset("/root/send/narcinfo/narclist");
  323. // **** 체크박스 선택 값 카운트 Start ****
  324. for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
  325. var sel = model.getValue("/root/main/narclist/narclist["+i+"]/sel");
  326. var sNarcStat = model.getValue("/root/main/narclist/narclist["+i+"]/narcstat");
  327. if(sel == "Y" && sNarcStat != "1") selCnt++; // 선택된 값(sel == "Y") 들 중 미신청 값은 제외
  328. }
  329. if(selCnt == 0) {
  330. messageBox("선택된 데이터가","I004");
  331. return;
  332. }
  333. selCnt = 0;
  334. for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
  335. var sel = model.getValue("/root/main/narclist/narclist["+i+"]/sel"); // 선택여부
  336. var sNarcStat = model.getValue("/root/main/narclist/narclist["+i+"]/narcstat"); // 불출상태
  337. var sCnclStat = model.getValue("/root/main/narclist/narclist["+i+"]/cnclstat"); // 불출상태
  338. var sRtnStat = model.getValue("/root/main/narclist/narclist["+i+"]/rtnstat"); // 불출상태
  339. var sPrcphistcd = model.getValue("/root/main/narclist/narclist["+i+"]/prcphistcd"); // 처방상태
  340. var sTotdrugqty = model.getValue("/root/main/narclist/narclist["+i+"]/totdrugqty"); // 처방상태
  341. var sMedrtims = model.getValue("/root/main/narclist/narclist["+i+"]/medrtims"); // 처방상태
  342. //if(sel == "Y" && sNarcStat < 5 && sPrcphistcd == "D"){
  343. if(sel == "Y" && (sNarcStat > 1 && sNarcStat <5) &&sPrcphistcd == "D"){
  344. astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
  345. selCnt++;
  346. }
  347. }
  348. if(selCnt > 0) {
  349. submit("TXADT30103");
  350. messageBox(selCnt + "건","I001");
  351. fGetNarcData();
  352. }else{
  353. messageBox("[반환종료] 처리 데이터가","I004");
  354. }
  355. }
  356. /*
  357. 실시내역 조회
  358. */
  359. if(popupParam == "Execlist") {
  360. var row = 0;
  361. if(switch1.selectedIndex == "0") {
  362. row = grd_narclist.row;
  363. } else {
  364. row = grd_outnarc.row;
  365. }
  366. model.makeValue("/root/send/srchdetlinfo/srchpid", model.getValue("/root/main/narclist/narclist["+row+"]/pid"));
  367. model.makeValue("/root/send/srchdetlinfo/prcpno", model.getValue("/root/main/narclist/narclist["+row+"]/prcpno"));
  368. model.makeValue("/root/send/srchdetlinfo/prcpdd", model.getValue("/root/main/narclist/narclist["+row+"]/orgprcpdd"));
  369. //model.setValue("/root/send/srchdetlinfo/orddeptflag", model.getValue("/root/send/srchdata/srchorddeptflag"));
  370. if(submit("TRADT10311")) {
  371. group5.visible = true;
  372. }
  373. }
  374. //********************************************************************************************//
  375. ]]>
  376. </script>
  377. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  378. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:211px; height:14px; ">마약/향정약 처방관리(Ver 1230)</caption>
  379. </group>
  380. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  381. <group id="group2" style="left:0px; top:0px; width:1195px; height:190px; font-weight:bold; ">
  382. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:765px; height:190px; background-color:#fffbf2; border-color:#ffd799; "/>
  383. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:770px; top:0px; width:424px; height:165px; background-color:#fffbf2; border-color:#ffd799; "/>
  384. <input id="input8" ref="/root/temp/srchinfo/pid" class="input_search" navindex="16" autonext="false" maxlength="10" style="left:105px; top:140px; width:100px; height:19px; ">
  385. <script type="javascript" ev:event="onkeyup">
  386. <![CDATA[
  387. if(event.keyCode == "13") {
  388. setInputNodeCurText();
  389. fGetNarcData();
  390. }
  391. ]]>
  392. </script>
  393. </input>
  394. <input id="input9" ref="/root/temp/srchinfo/barcode" class="input_search" disabled="true" navindex="21" imemode="alpha" style="left:105px; top:167px; width:125px; height:19px; ">
  395. <script type="javascript" ev:event="onkeyup">
  396. <![CDATA[
  397. if(event.keyCode == "13") {
  398. input9.disabled=true;
  399. setInputNodeCurText();
  400. fChgBarcode();
  401. input9.disabled=false;
  402. model.setFocus("input9");
  403. }
  404. ]]>
  405. </script>
  406. </input>
  407. <select id="checkbox2" ref="/root/temp/srchinfo/narctypeflag" class="checkbox_search" navindex="25" visibility="hidden" overflow="visible" appearance="full" cols="2" rows="1" style="left:1055px; top:5px; width:130px; height:20px; border-style:none; ">
  408. <choices>
  409. <item>
  410. <label>전체</label>
  411. <value>T</value>
  412. </item>
  413. <item>
  414. <label>처방가능약</label>
  415. <value>A</value>
  416. </item>
  417. </choices>
  418. </select>
  419. <caption id="caption1" class="search_name" visibility="hidden" style="left:535px; top:55px; width:86px; height:17px; ">마약구분 :</caption>
  420. <line id="line13" class="line_4" style="x1:700px; y1:5px; x2:700px; y2:100px; border-color:#ffe4bb; border-left-style:solid; "/>
  421. <caption id="caption2" class="search_name" style="left:10px; top:140px; width:86px; height:17px; ">환자번호 :</caption>
  422. <select1 id="combo2" ref="/root/temp/srchinfo/timeflag" class="combo_s_essential" navindex="1" appearance="minimal" style="left:105px; top:8px; width:119px; height:19px; ">
  423. <choices>
  424. <item>
  425. <label>처방일자</label>
  426. <value>1</value>
  427. </item>
  428. <item>
  429. <label>적용일자</label>
  430. <value>2</value>
  431. </item>
  432. <item>
  433. <label>불출신청일자</label>
  434. <value>3</value>
  435. </item>
  436. <item>
  437. <label>실시일자</label>
  438. <value>4</value>
  439. </item>
  440. <item>
  441. <label>반환저장일자</label>
  442. <value>5</value>
  443. </item>
  444. <item>
  445. <label>잔량저장일자</label>
  446. <value>6</value>
  447. </item>
  448. </choices>
  449. <script type="javascript" ev:event="xforms-value-changed">
  450. <![CDATA[
  451. if(combo2.value == "5") {
  452. checkbox1.value = "Y";
  453. checkbox1.dispatch("xforms-value-changed");
  454. checkbox5.value = "Y";
  455. checkbox5.dispatch("xforms-value-changed");
  456. }
  457. ]]>
  458. </script>
  459. </select1>
  460. <button id="button61" class="icon_search" navindex="17" style="left:210px; top:140px; width:16px; height:16px; ">
  461. <caption/>
  462. </button>
  463. <caption id="caption3" class="search_name" style="left:780px; top:5px; width:86px; height:17px; ">마약종류 :</caption>
  464. <caption id="caption4" style="left:335px; top:8px; width:13px; height:20px; vertical-align:middle; ">~</caption>
  465. <select1 id="radio1" ref="/root/temp/srchinfo/narcflag" class="radio_search" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:610px; top:55px; width:135px; height:20px; border-style:none; ">
  466. <choices>
  467. <item>
  468. <label>전체</label>
  469. <value>T</value>
  470. </item>
  471. <item>
  472. <label>마약</label>
  473. <value>N</value>
  474. </item>
  475. <item>
  476. <label>향정</label>
  477. <value>P</value>
  478. </item>
  479. </choices>
  480. </select1>
  481. <line id="line1" class="line_2" style="x1:5px; y1:162px; x2:630px; y2:162px; "/>
  482. <select1 id="radio2" ref="/root/temp/srchinfo/srchdrugkind" class="radio_search" navindex="5" appearance="full" cols="3" rows="1" overflow="visible" style="left:105px; top:33px; width:195px; height:20px; border-style:none; ">
  483. <choices>
  484. <item>
  485. <label>전체</label>
  486. <value>T</value>
  487. </item>
  488. <item>
  489. <label>약</label>
  490. <value>D</value>
  491. </item>
  492. <item>
  493. <label>주사</label>
  494. <value>I</value>
  495. </item>
  496. </choices>
  497. </select1>
  498. <line id="line2" class="line_2" style="x1:5px; y1:105px; x2:630px; y2:105px; "/>
  499. <caption id="caption6" class="search_name" style="left:230px; top:140px; width:70px; height:17px; ">병동 :</caption>
  500. <select1 id="radio3" ref="/root/temp/srchinfo/narcstat" class="radio_search" disabled="false" navindex="8" appearance="full" cols="9" rows="1" overflow="visible" style="left:105px; top:62px; width:590px; height:20px; border-style:none; ">
  501. <choices>
  502. <item>
  503. <label>전체</label>
  504. <value>T</value>
  505. </item>
  506. <item>
  507. <label>미신청</label>
  508. <value>1</value>
  509. </item>
  510. <item>
  511. <label>불출신청</label>
  512. <value>2</value>
  513. </item>
  514. <item>
  515. <label>출력완료</label>
  516. <value>3</value>
  517. </item>
  518. <item>
  519. <label>조제완료</label>
  520. <value>4</value>
  521. </item>
  522. <item>
  523. <label>불출</label>
  524. <value>5</value>
  525. </item>
  526. <item>
  527. <label>부서확인</label>
  528. <value>6</value>
  529. </item>
  530. <item>
  531. <label>실 불출신청</label>
  532. <value>7</value>
  533. </item>
  534. <item>
  535. <label>재출력</label>
  536. <value>8</value>
  537. </item>
  538. </choices>
  539. <script type="javascript" ev:event="xforms-value-changed">
  540. <![CDATA[
  541. model.setValue("/root/temp/srchinfo/cnclflag","");
  542. model.setValue("/root/temp/srchinfo/cnclstat","");
  543. model.setValue("/root/temp/srchinfo/rtnflag","");
  544. model.setValue("/root/temp/srchinfo/rtnstat","");
  545. rdo_cncl.disabled = true;
  546. rdo_rtn.disabled = true;
  547. cmb_prntdt.value = "";
  548. if (radio3.value == "8") { //재출력
  549. grp_prntdt.visible = true;
  550. rdo_cncl.value = "T";
  551. rdo_rtn.value = "T";
  552. //checkbox1.dispatch("xforms-value-changed");
  553. //checkbox3.dispatch("xforms-value-changed");
  554. fGetNarcPrintDt();
  555. } else {
  556. cmb_prntdt.value = "";
  557. grp_prntdt.visible = false;
  558. }
  559. model.refresh();
  560. ]]>
  561. </script>
  562. </select1>
  563. <line id="line3" class="line_2" style="x1:5px; y1:108px; x2:630px; y2:108px; "/>
  564. <caption id="caption7" class="search_name" style="left:10px; top:167px; width:88px; height:17px; ">바코드 :</caption>
  565. <input id="ipt_lastdd" ref="/root/temp/srchinfo/last_dd" class="input_search" navindex="3" inputtype="date" style="left:350px; top:8px; width:100px; height:19px; "/>
  566. <line id="line4" class="line_2" style="x1:5px; y1:55px; x2:630px; y2:55px; "/>
  567. <line id="line5" class="line_2" style="x1:5px; y1:30px; x2:630px; y2:30px; "/>
  568. <caption id="caption9" class="search_name" style="left:10px; top:8px; width:86px; height:17px; ">조회구간 :</caption>
  569. <input id="ipt_fstdd" ref="/root/temp/srchinfo/fst_dd" class="input_search" navindex="2" inputtype="date" appearance="input" style="left:232px; top:8px; width:100px; height:19px; "/>
  570. <datagrid id="datagrid1" nodeset="/root/temp/srchcond/narclist" backcoloralternate="#f0f0f0" caption="선택^명칭^코드" colsep="^" colwidth="46, 220, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" navindex="26" style="left:780px; top:25px; width:408px; height:130px; ">
  571. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  572. <col ref="narcnm"/>
  573. <col ref="narccd"/>
  574. </datagrid>
  575. <button id="btn_sea" class="btn1_letter2" navindex="27" style="left:705px; top:35px; width:56px; height:22px; ">
  576. <caption>조회</caption>
  577. <script type="javascript" ev:event="DOMActivate">
  578. <![CDATA[
  579. if (radio3.value == "8") {
  580. if (cmb_prntdt.value == "") {
  581. messageBox("출력할 출력일시를 선택", "I008");
  582. model.setFocus("cmb_prntdt");
  583. return;
  584. }
  585. }
  586. model.setValue("/root/temp/srchinfo/selkey", "");
  587. //// 2017.4.19 김치국 자동출력시 글자 View
  588. if(chk_auto.value == "Y") {
  589. cap_automess.visible = true;
  590. }
  591. ////
  592. fGetNarcData();
  593. ]]>
  594. </script>
  595. </button>
  596. <select1 id="cmb_ward" ref="/root/temp/srchinfo/ward" navindex="18" appearance="minimal" style="left:290px; top:140px; width:100px; height:19px; ">
  597. <choices>
  598. <itemset nodeset="/root/temp/srchcond/ward">
  599. <label ref="wardnm"/>
  600. <value ref="wardcd"/>
  601. </itemset>
  602. </choices>
  603. </select1>
  604. <caption id="caption5" class="search_name" style="left:10px; top:34px; width:86px; height:17px; ">조회구분 :</caption>
  605. <caption id="caption8" class="search_name" style="left:480px; top:168px; width:88px; height:17px; ">담당자 :</caption>
  606. <output id="opt_usernm" ref="/root/temp/userinfo/userinfo/usernm" class="output_search" style="left:675px; top:167px; width:80px; height:19px; "/>
  607. <input id="ipt_srchid" ref="/root/temp/srchinfo/srchid" class="input_search" navindex="23" autonext="false" maxlength="10" style="left:565px; top:167px; width:100px; height:19px; ">
  608. <script type="javascript" ev:event="onkeyup">
  609. <![CDATA[
  610. if(event.keyCode == "13") {
  611. setInputNodeCurText();
  612. fChgUserID();
  613. }
  614. ]]>
  615. </script>
  616. </input>
  617. <select1 id="rdo_drugflag" ref="/root/temp/srchinfo/drugflag" navindex="7" appearance="full" cols="3" overflow="visible" style="left:440px; top:34px; width:165px; height:20px; border-style:none; ">
  618. <choices>
  619. <item>
  620. <label>병동</label>
  621. <value>I</value>
  622. </item>
  623. <item>
  624. <label>퇴원/외박/외출</label>
  625. <value>L</value>
  626. </item>
  627. </choices>
  628. <script type="javascript" ev:event="xforms-value-changed">
  629. <![CDATA[
  630. fChgSwitch();
  631. fGetNarcData();
  632. ]]>
  633. </script>
  634. </select1>
  635. <caption id="caption10" class="search_name" style="left:395px; top:140px; width:86px; height:17px; ">투약번호 :</caption>
  636. <input id="input2" ref="/root/temp/srchinfo/srchdrugno" class="input_search" navindex="19" autonext="false" maxlength="5" format="99999" style="left:480px; top:140px; width:65px; height:19px; ">
  637. <script type="javascript" ev:event="onkeyup">
  638. <![CDATA[
  639. if(event.keyCode == "13") {
  640. setInputNodeCurText();
  641. fGetNarcData();
  642. }
  643. ]]>
  644. </script>
  645. </input>
  646. <select1 id="radio4" ref="/root/send/srchcond/narcflag" class="radio_search" navindex="24" appearance="full" cols="3" rows="1" overflow="visible" style="left:870px; top:5px; width:135px; height:20px; border-style:none; ">
  647. <choices>
  648. <item>
  649. <label>마약</label>
  650. <value>M</value>
  651. </item>
  652. <item>
  653. <label>향정</label>
  654. <value>H</value>
  655. </item>
  656. <item>
  657. <label>전체</label>
  658. <value>A</value>
  659. </item>
  660. </choices>
  661. <script type="javascript" ev:event="xforms-select">
  662. <![CDATA[
  663. submit("TRADT30101");
  664. model.setValue("/root/temp/srchinfo/narcflag", model.getValue("/root/send/srchcond/narcflag"));
  665. //반환대상, 반납대상, 미불출 조건 변경
  666. if(model.getValue("/root/temp/srchinfo/narcflag") == "M"){
  667. model.toggle("case4");
  668. combo2.select(1); //그외 적용일자
  669. } else if(model.getValue("/root/temp/srchinfo/narcflag") == "H"){
  670. model.toggle("case5");
  671. if(model.getValue("/root/temp/srchinfo/srchioflag") == "O") {
  672. combo2.select(3);//향정외래일때 실시일자
  673. } else {
  674. combo2.select(1); //그외 적용일자
  675. }
  676. } else {
  677. model.toggle("case4");
  678. //combo2.select(1); //그외 적용일자
  679. }
  680. fGetNarcData();
  681. ]]>
  682. </script>
  683. </select1>
  684. <caption id="caption12" class="search_name" visibility="visible" style="left:550px; top:140px; width:90px; height:17px; ">수행부서 :</caption>
  685. <select1 id="combo3" ref="/root/temp/srchinfo/srchdeptcd" navindex="20" visibility="visible" appearance="minimal" cols="2" editmode="inputsearch" style="left:640px; top:140px; width:120px; height:19px; ">
  686. <choices>
  687. <itemset nodeset="/root/temp/drugdeptinfo/dept">
  688. <label ref="deptnm"/>
  689. <value ref="deptcd"/>
  690. </itemset>
  691. </choices>
  692. <script type="javascript" ev:event="xforms-value-changed">
  693. <![CDATA[
  694. //fSrchRoomCD();
  695. ]]>
  696. </script>
  697. </select1>
  698. <select1 id="radio5" ref="/root/temp/srchinfo/srchioflag" navindex="6" appearance="full" cols="3" overflow="visible" style="left:300px; top:34px; width:129px; height:20px; border-style:none; ">
  699. <choices>
  700. <item>
  701. <label>전체</label>
  702. <value/>
  703. </item>
  704. <item>
  705. <label>외래</label>
  706. <value>O</value>
  707. </item>
  708. <item>
  709. <label>병동</label>
  710. <value>I</value>
  711. </item>
  712. </choices>
  713. <script type="javascript" ev:event="xforms-value-changed">
  714. <![CDATA[
  715. fChgIOFlag();
  716. /*
  717. if ( model.getValue("/root/temp/srchinfo/srchioflag") ==""){
  718. group4.disabled=true;
  719. } else {
  720. group4.disabled=false;
  721. } */
  722. ]]>
  723. </script>
  724. </select1>
  725. <input id="input1" ref="/root/temp/srchinfo/barcodespre" class="input_search" navindex="22" imemode="alpha" style="left:335px; top:167px; width:125px; height:19px; ">
  726. <script type="javascript" ev:event="onkeyup">
  727. <![CDATA[
  728. if(event.keyCode == "13") {
  729. input1.disabled=true;
  730. setInputNodeCurText();
  731. fChgBarcodeSpre();
  732. input1.disabled=false;
  733. model.setFocus("input1");
  734. }
  735. ]]>
  736. </script>
  737. </input>
  738. <caption id="caption11" class="search_name" style="left:240px; top:167px; width:88px; height:17px; ">잔량확인 :</caption>
  739. <switch id="switch2" class="sw_no_border" style="left:5px; top:107px; width:755px; height:30px; ">
  740. <case id="case4" selected="true">
  741. <select1 id="rdo_cncl" ref="/root/temp/srchinfo/cnclstat" navindex="13" appearance="full" cols="5" overflow="visible" style="left:90px; top:5px; width:320px; height:20px; border-style:none; ">
  742. <choices>
  743. <item>
  744. <label>전체</label>
  745. <value>T</value>
  746. </item>
  747. <item>
  748. <label>반환대상</label>
  749. <value>0</value>
  750. </item>
  751. <item>
  752. <label>반환신청</label>
  753. <value>1</value>
  754. </item>
  755. <item>
  756. <label>반환확인</label>
  757. <value>2</value>
  758. </item>
  759. <item>
  760. <label>반환종료</label>
  761. <value>7</value>
  762. </item>
  763. </choices>
  764. </select1>
  765. <select id="checkbox1" ref="/root/temp/srchinfo/cnclflag" navindex="12" overflow="visible" appearance="full" style="left:5px; top:5px; width:80px; height:20px; border-style:none; ">
  766. <choices>
  767. <item>
  768. <label>반환대상만</label>
  769. <value>Y</value>
  770. </item>
  771. </choices>
  772. <script type="javascript" ev:event="xforms-value-changed">
  773. <![CDATA[
  774. if(model.getValue("/root/temp/srchinfo/cnclflag") == "Y"){
  775. rdo_cncl.disabled = false;
  776. model.setValue("/root/temp/srchinfo/cnclstat", "T");
  777. // rdo_rtn.disabled = true;
  778. // model.setValue("/root/temp/srchinfo/rtnflag", "");
  779. // model.setValue("/root/temp/srchinfo/rtnstat", "");
  780. model.setValue("/root/temp/srchinfo/narcstat", "");
  781. } else {
  782. rdo_cncl.disabled =true;
  783. model.setValue("/root/temp/srchinfo/cnclstat", "");
  784. if(model.getValue("/root/temp/srchinfo/rtnflag") != "Y") {
  785. model.setValue("/root/temp/srchinfo/narcstat", "T");
  786. }
  787. }
  788. model.refresh();
  789. ]]>
  790. </script>
  791. </select>
  792. <select id="checkbox3" ref="/root/temp/srchinfo/rtnflag" navindex="14" overflow="visible" appearance="full" style="left:413px; top:5px; width:80px; height:20px; border-style:none; ">
  793. <choices>
  794. <item>
  795. <label>반납대상만</label>
  796. <value>Y</value>
  797. </item>
  798. </choices>
  799. <script type="javascript" ev:event="xforms-value-changed">
  800. <![CDATA[
  801. if(model.getValue("/root/temp/srchinfo/rtnflag") == "Y"){
  802. rdo_rtn.disabled = false;
  803. model.setValue("/root/temp/srchinfo/rtnstat", "T");
  804. // rdo_cncl.disabled = true;
  805. // model.setValue("/root/temp/srchinfo/cnclflag", "");
  806. // model.setValue("/root/temp/srchinfo/cnclstat", "");
  807. model.setValue("/root/temp/srchinfo/narcstat", "");
  808. } else {
  809. rdo_rtn.disabled =true;
  810. model.setValue("/root/temp/srchinfo/rtnstat", "");
  811. if(model.getValue("/root/temp/srchinfo/cnclflag") != "Y") {
  812. model.setValue("/root/temp/srchinfo/narcstat", "T");
  813. }
  814. }
  815. model.refresh();
  816. ]]>
  817. </script>
  818. </select>
  819. <select1 id="rdo_rtn" ref="/root/temp/srchinfo/rtnstat" class="radio_search" navindex="15" appearance="full" cols="4" overflow="visible" style="left:495px; top:5px; width:250px; height:20px; border-style:none; ">
  820. <choices>
  821. <item>
  822. <label>전체</label>
  823. <value>T</value>
  824. </item>
  825. <item>
  826. <label>잔량대상</label>
  827. <value>0</value>
  828. </item>
  829. <item>
  830. <label>잔량신청</label>
  831. <value>1</value>
  832. </item>
  833. <item>
  834. <label>잔량확인</label>
  835. <value>2</value>
  836. </item>
  837. </choices>
  838. </select1>
  839. </case>
  840. <case id="case5">
  841. <select id="checkbox5" ref="/root/temp/srchinfo/cnclflag" overflow="visible" appearance="full" style="left:5px; top:5px; width:80px; height:20px; border-style:none; ">
  842. <choices>
  843. <item>
  844. <label>반환대상만</label>
  845. <value>Y</value>
  846. </item>
  847. </choices>
  848. <script type="javascript" ev:event="xforms-value-changed">
  849. <![CDATA[
  850. if(model.getValue("/root/temp/srchinfo/cnclflag") == "Y"){
  851. rdo_cncl.disabled = false;
  852. model.setValue("/root/temp/srchinfo/cnclstat", "T");
  853. // rdo_rtn.disabled = true;
  854. // model.setValue("/root/temp/srchinfo/rtnflag", "");
  855. // model.setValue("/root/temp/srchinfo/rtnstat", "");
  856. model.setValue("/root/temp/srchinfo/narcstat", "");
  857. } else {
  858. rdo_cncl.disabled =true;
  859. model.setValue("/root/temp/srchinfo/cnclstat", "");
  860. if(model.getValue("/root/temp/srchinfo/rtnflag") != "Y") {
  861. model.setValue("/root/temp/srchinfo/narcstat", "T");
  862. }
  863. }
  864. model.refresh();
  865. ]]>
  866. </script>
  867. </select>
  868. <select id="checkbox6" ref="/root/temp/srchinfo/rtnflag" overflow="visible" appearance="full" style="left:340px; top:5px; width:80px; height:20px; border-style:none; ">
  869. <choices>
  870. <item>
  871. <label>반납대상만</label>
  872. <value>Y</value>
  873. </item>
  874. </choices>
  875. <script type="javascript" ev:event="xforms-value-changed">
  876. <![CDATA[
  877. if(model.getValue("/root/temp/srchinfo/rtnflag") == "Y"){
  878. rdo_rtn.disabled = false;
  879. model.setValue("/root/temp/srchinfo/rtnstat", "T");
  880. // rdo_cncl.disabled = true;
  881. // model.setValue("/root/temp/srchinfo/cnclflag", "");
  882. // model.setValue("/root/temp/srchinfo/cnclstat", "");
  883. model.setValue("/root/temp/srchinfo/narcstat", "");
  884. } else {
  885. rdo_rtn.disabled =true;
  886. model.setValue("/root/temp/srchinfo/rtnstat", "");
  887. if(model.getValue("/root/temp/srchinfo/cnclflag") != "Y") {
  888. model.setValue("/root/temp/srchinfo/narcstat", "T");
  889. }
  890. }
  891. model.refresh();
  892. ]]>
  893. </script>
  894. </select>
  895. <select id="checkbox7" ref="/root/temp/srchinfo/nodeliveflag" overflow="visible" appearance="full" style="left:610px; top:5px; width:80px; height:20px; border-style:none; ">
  896. <choices>
  897. <item>
  898. <label>미불출만</label>
  899. <value>Y</value>
  900. </item>
  901. </choices>
  902. </select>
  903. <select1 id="radio6" ref="/root/temp/srchinfo/cnclstat" appearance="full" cols="5" overflow="visible" style="left:90px; top:5px; width:250px; height:20px; border-style:none; ">
  904. <choices>
  905. <item>
  906. <label>전체</label>
  907. <value>T</value>
  908. </item>
  909. <item>
  910. <label>반환신청</label>
  911. <value>1</value>
  912. </item>
  913. <item>
  914. <label>반환확인</label>
  915. <value>2</value>
  916. </item>
  917. <item>
  918. <label>반환종료</label>
  919. <value>7</value>
  920. </item>
  921. </choices>
  922. </select1>
  923. <select1 id="radio7" ref="/root/temp/srchinfo/rtnstat" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:422px; top:5px; width:185px; height:20px; border-style:none; ">
  924. <choices>
  925. <item>
  926. <label>전체</label>
  927. <value>T</value>
  928. </item>
  929. <item>
  930. <label>잔량신청</label>
  931. <value>1</value>
  932. </item>
  933. <item>
  934. <label>잔량확인</label>
  935. <value>2</value>
  936. </item>
  937. </choices>
  938. </select1>
  939. </case>
  940. </switch>
  941. <caption id="caption13" style="left:460px; top:10px; width:70px; height:20px; font-weight:bold; color:#ff0000; ">실출고부서</caption>
  942. <select1 id="combo1" ref="/root/temp/srchinfo/stocdeptcd" navindex="4" appearance="minimal" style="left:534px; top:9px; width:131px; height:19px; ">
  943. <choices>
  944. <itemset nodeset="/root/init/misdeptlist/deptlist">
  945. <label ref="deptnm"/>
  946. <value ref="deptcd"/>
  947. </itemset>
  948. </choices>
  949. <script type="javascript" ev:event="xforms-value-changed">
  950. <![CDATA[
  951. ]]>
  952. </script>
  953. </select1>
  954. <select id="chk_auto" ref="/root/temp/srchinfo/autoprnt" overflow="visible" appearance="full" style="left:710px; top:59px; width:45px; height:20px; border-style:none; ">
  955. <choices>
  956. <item>
  957. <label>자동</label>
  958. <value>Y</value>
  959. </item>
  960. </choices>
  961. <script type="javascript" ev:event="xforms-value-changed">
  962. <![CDATA[
  963. /* 2011.01.05 pymi
  964. *
  965. * 자동출력 : 실 불출신청 대상 조회 -> 일괄처리 로직
  966. */
  967. if(chk_auto.value == "Y") {
  968. radio2.disabled = true;
  969. radio3.disabled = true;
  970. radio5.disabled = true;
  971. radio3.value = "7";
  972. rdo_drugflag.disabled = true;
  973. checkbox1.disabled = true;
  974. checkbox3.disabled = true;
  975. rdo_cncl.value = "";
  976. rdo_rtn.value = "";
  977. radio5.value = "O";
  978. chk_all.value = "Y";
  979. cap_automess.visible = true;
  980. } else {
  981. radio2.disabled = false;
  982. radio3.disabled = false;
  983. radio5.disabled = false;
  984. rdo_drugflag.disabled = false;
  985. checkbox1.disabled = false;
  986. checkbox3.disabled = false;
  987. cap_automess.visible = false;
  988. }
  989. var autoflag = model.getValue("/root/temp/srchinfo/autoprnt");
  990. if (autoflag == "Y" && nextFlag == "GO") {
  991. if (gTimer == null) {
  992. fAutoOutNarc() ;
  993. gTimer = window.setInterval("fAutoOutNarc()",13000);
  994. }
  995. //alert(gTimer) ;
  996. } else {
  997. if (gTimer != null) {
  998. window.clearinterval(gTimer);
  999. gTimer = null;
  1000. }
  1001. }
  1002. ]]>
  1003. </script>
  1004. </select>
  1005. <caption id="caption14" class="search_name" style="left:10px; top:85px; width:86px; height:17px; ">처방구분 :</caption>
  1006. <select id="chk_prcpkind" ref="/root/temp/srchinfo/srchprcpkind" navindex="10" overflow="visible" appearance="full" cols="5" rows="1" style="left:155px; top:86px; width:285px; height:15px; border-style:none; ">
  1007. <choices>
  1008. <item>
  1009. <label>정규</label>
  1010. <value>R</value>
  1011. </item>
  1012. <item>
  1013. <label>추가</label>
  1014. <value>A</value>
  1015. </item>
  1016. <item>
  1017. <label>응급</label>
  1018. <value>W</value>
  1019. </item>
  1020. <item>
  1021. <label>Admission</label>
  1022. <value>M</value>
  1023. </item>
  1024. <item>
  1025. <label>PRN</label>
  1026. <value>P</value>
  1027. </item>
  1028. </choices>
  1029. </select>
  1030. <select id="checkbox8" ref="/root/temp/srchinfo/srchprcpkindall" navindex="9" overflow="visible" appearance="full" style="left:105px; top:86px; width:45px; height:15px; border-style:none; ">
  1031. <choices>
  1032. <item>
  1033. <label>전체</label>
  1034. <value>Y</value>
  1035. </item>
  1036. </choices>
  1037. <script type="javascript" ev:event="onclick">
  1038. <![CDATA[
  1039. var allflag = model.getValue("/root/temp/srchinfo/srchprcpkindall");
  1040. // 전체선택
  1041. if (allflag == "Y") {
  1042. chk_prcpkind.disabled = true;
  1043. } else {
  1044. chk_prcpkind.disabled = false;
  1045. }
  1046. model.refresh();
  1047. ]]>
  1048. </script>
  1049. </select>
  1050. <group id="grp_prntdt" visibility="hidden" style="left:440px; top:80px; width:520px; height:25px; background-color:#fffbf2; border-color:#ffd799; border-width:1px; ">
  1051. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:516px; height:24px; background-color:#fffbf2; border-color:#ffd799; "/>
  1052. <caption id="caption15" class="search_name" visibility="visible" style="left:5px; top:3px; width:105px; height:17px; ">출력시간 :</caption>
  1053. <select1 id="cmb_prntdt" ref="/root/temp/srchinfo/wardnm" navindex="11" visibility="visible" appearance="minimal" cols="1" itemwidth="400px" style="left:95px; top:3px; width:415px; height:19px; ">
  1054. <choices>
  1055. <itemset nodeset="/root/temp/prntdt/item">
  1056. <label ref="wardnm"/>
  1057. <value ref="wardnm"/>
  1058. </itemset>
  1059. </choices>
  1060. <script type="javascript" ev:event="xforms-value-changed">
  1061. <![CDATA[
  1062. //alert(cmb_prntdt.focusIndex);
  1063. //alert("3:"+cmb_prntdt.value);
  1064. model.setValue("/root/temp/srchinfo/prntdt", model.getValue(cmb_prntdt.choices.itemset.attribute("nodeset")+"[wardnm='"+ cmb_prntdt.value+"']/prntdt"));
  1065. model.setValue("/root/temp/srchinfo/issdeptcd", model.getValue(cmb_prntdt.choices.itemset.attribute("nodeset")+"[wardnm='"+ cmb_prntdt.value+"']/issdeptcd"));
  1066. ]]>
  1067. </script>
  1068. </select1>
  1069. </group>
  1070. <script type="javascript" ev:event="xforms-value-changed">
  1071. <![CDATA[
  1072. model.setValue("/root/temp/srchinfo/selkey", "");
  1073. ]]>
  1074. </script>
  1075. <caption id="cap_automess" style="left:795px; top:165px; width:300px; height:25px; font-size:14pt; color:#ff0000; ">자동 출력중!!</caption>
  1076. </group>
  1077. <switch id="switch1" class="sw_no_border" style="left:0px; top:225px; width:1195px; height:519px; ">
  1078. <case id="case1" selected="true">
  1079. <datagrid id="grd_narclist" nodeset="/root/main/narclist/narclist" class="datagrid2" backcoloralternate="#f0f0f0" caption="^불출상태^처방&#xA;상태^반환상태^반납상태^처방일자^투약번호^처방구분^수행부서^병실^환자번호^환자명^약품코드^약품명^총량^총량^일수량^일수량^1회수량^1회수량^일용량^일용량^1회용량^1회용량^횟수^잔량^잔량^반환횟수^반환횟수^반환수량^반환수량^불출신청일자^불출&#xA;신청자^조제일시^조제&#xA;약사^투약일시^투약&#xA;약사^수령일시^수령&#xA;담당자^병동수령일시^부서확인&#xA;간호사^간호투약일시^간호투약&#xA;간호사^반환신청일시^반환신청&#xA;간호사^반환일시^반환&#xA;담당자^반환확인일시^반환확인&#xA;약사^반환사유^잔량반납&#xA;신청일시^잔량반납신청&#xA;간호사^잔량반납&#xA;확인일시^잔량반납확인&#xA;약사^prcpno^prcphistno^drugdd^drugno^ioflag^instcd^narcflag^prntflag^orddd^orddeptcd^prcpgenrflag^prntdt^caption1^반납반환&#xA;표시여부^투약기록&#xA;완료여부^간호&#xA;실시횟수^간호&#xA;반환횟수^투약x반환불가&#xA;횟수" colsep="^" colwidth="17, 56, 33, 54, 55, 67, 41, 45, 70, 40, 62, 50, 74, 150, 28, 30, 36, 29, 35, 31, 40, 28, 40, 29, 26, 32, 28, 28, 29, 32, 35, 8, 70, 8, 70, 8, 70, 8, 70, 9, 70, 9, 70, 9, 70, 9, 70, 7, 70, 100, 7, 85, 7, 85, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 70, 70, 70, 70, 100, 100" extendlastcol="scroll" frozencols="14" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="28" style="left:0px; top:0px; width:1195px; height:510px; ">
  1080. <col checkvalue="Y,N" ref="sel" type="checkbox" style="left:20px; top:32px; width:30px; height:23px; "/>
  1081. <col ref="narcstat" type="combo">
  1082. <choices>
  1083. <item>
  1084. <label>미신청</label>
  1085. <value>1</value>
  1086. </item>
  1087. <item>
  1088. <label>불출신청</label>
  1089. <value>2</value>
  1090. </item>
  1091. <item>
  1092. <label>출력완료</label>
  1093. <value>3</value>
  1094. </item>
  1095. <item>
  1096. <label>조제완료</label>
  1097. <value>4</value>
  1098. </item>
  1099. <item>
  1100. <label>불출</label>
  1101. <value>5</value>
  1102. </item>
  1103. <item>
  1104. <label>부서확인</label>
  1105. <value>6</value>
  1106. </item>
  1107. </choices>
  1108. </col>
  1109. <col ref="prcphistcd" style="text-align:center; "/>
  1110. <col ref="cnclstat" type="combo" style="text-align:center; ">
  1111. <choices>
  1112. <item>
  1113. <label>-</label>
  1114. <value/>
  1115. </item>
  1116. <item>
  1117. <label>반환대상</label>
  1118. <value>0</value>
  1119. </item>
  1120. <item>
  1121. <label>반환신청</label>
  1122. <value>1</value>
  1123. </item>
  1124. <item>
  1125. <label>반환확인</label>
  1126. <value>2</value>
  1127. </item>
  1128. <item>
  1129. <label>반환종료</label>
  1130. <value>7</value>
  1131. </item>
  1132. <item>
  1133. <label>미불출</label>
  1134. <value>10</value>
  1135. </item>
  1136. </choices>
  1137. </col>
  1138. <col ref="rtnstat" type="combo" style="text-align:center; ">
  1139. <choices>
  1140. <item>
  1141. <label>-</label>
  1142. <value/>
  1143. </item>
  1144. <item>
  1145. <label>잔량대상</label>
  1146. <value>0</value>
  1147. </item>
  1148. <item>
  1149. <label>잔량신청</label>
  1150. <value>1</value>
  1151. </item>
  1152. <item>
  1153. <label>잔량확인</label>
  1154. <value>2</value>
  1155. </item>
  1156. <item>
  1157. <label>미불출</label>
  1158. <value>10</value>
  1159. </item>
  1160. </choices>
  1161. </col>
  1162. <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
  1163. <col ref="drugno" style="text-align:center; "/>
  1164. <col ref="prcpkindnm"/>
  1165. <col ref="issdeptcdnm" style="text-align:left; "/>
  1166. <col ref="roomcd" style="text-align:left; "/>
  1167. <col ref="pid" style="text-align:left; "/>
  1168. <col ref="patnm" style="text-align:left; "/>
  1169. <col ref="prcpcd"/>
  1170. <col ref="drugnm"/>
  1171. <col ref="totdrugqty" style="text-align:right; "/>
  1172. <col ref="prcpqtyunit" style="text-align:left; "/>
  1173. <col ref="dayprcpqty" style="text-align:right; "/>
  1174. <col ref="dayprcpqtyunit" style="text-align:left; "/>
  1175. <col ref="prcpqty2" style="text-align:right; "/>
  1176. <col ref="prcpqtyunit2" style="text-align:left; "/>
  1177. <col ref="prcpvol" style="text-align:right; "/>
  1178. <col ref="prcpvolunit" style="text-align:left; "/>
  1179. <col ref="prcpvol2" style="text-align:right; "/>
  1180. <col ref="prcpvolunit2" style="text-align:left; "/>
  1181. <col ref="prcptims" style="text-align:center; "/>
  1182. <col ref="spreqty" style="text-align:right; "/>
  1183. <col ref="prcpvolunit" style="text-align:left; "/>
  1184. <col ref="rtnqty" format="99999999999" style="text-align:right; "/>
  1185. <col ref="rtnunit" style="text-align:left; "/>
  1186. <col ref="returnqty" style="text-align:right; "/>
  1187. <col ref="prcpqtyunit" style="text-align:left; "/>
  1188. <col ref="reqdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1189. <col ref="reqidnm" style="text-align:center; "/>
  1190. <col ref="prcpdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1191. <col ref="prcpidnm" style="text-align:center; "/>
  1192. <col ref="drugdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1193. <col ref="drugidnm" visibility="hidden" style="text-align:center; "/>
  1194. <col ref="delivedt" visibility="hidden" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1195. <col ref="deliveidnm" style="text-align:center; "/>
  1196. <col ref="acptdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1197. <col ref="acptidnm" style="text-align:center; "/>
  1198. <col ref="nrexecdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1199. <col ref="nrexecridnm" style="text-align:center; "/>
  1200. <col ref="rtnappdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1201. <col ref="rtnappidnm" style="text-align:center; "/>
  1202. <col ref="rtndt" visibility="hidden" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1203. <col ref="rtnidnm" visibility="hidden" style="text-align:center; "/>
  1204. <col ref="rtncnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1205. <col ref="rtncnfmidnm" style="text-align:center; "/>
  1206. <col ref="rtnresn"/>
  1207. <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1208. <col ref="spreidnm" style="text-align:center; "/>
  1209. <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1210. <col ref="sprecnfmidnm" style="text-align:center; "/>
  1211. <col ref="prcpno" visibility="hidden"/>
  1212. <col ref="prcphistno" visibility="hidden"/>
  1213. <col ref="drugdd" visibility="hidden"/>
  1214. <col ref="drugno" visibility="hidden"/>
  1215. <col ref="ioflag" visibility="hidden"/>
  1216. <col ref="instcd" visibility="hidden"/>
  1217. <col ref="narcflag" visibility="hidden"/>
  1218. <col ref="prntflag" visibility="hidden"/>
  1219. <col ref="orddd" visibility="hidden"/>
  1220. <col ref="orddeptcd" visibility="hidden"/>
  1221. <col ref="prcpgenrflag" visibility="hidden"/>
  1222. <col ref="prntdt" visibility="hidden"/>
  1223. <col ref="presqty2" visibility="hidden"/>
  1224. <col ref="statvisible" visibility="hidden" style="text-align:center; "/>
  1225. <col ref="medrendyn" visibility="hidden" style="text-align:center; "/>
  1226. <col ref="medrqty" visibility="hidden" style="text-align:center; "/>
  1227. <col ref="medrtims" visibility="hidden" style="text-align:center; "/>
  1228. <col ref="medrx" visibility="hidden" style="text-align:center; "/>
  1229. <col ref="drugseqno" visibility="hidden" style="text-align:center; "/>
  1230. <script type="javascript" ev:event="ondblclick">
  1231. <![CDATA[
  1232. if(grd_narclist.iscell(event.target) ){
  1233. model.setValue("/root/temp/srchinfo/pid",model.getValue("/root/main/narclist/narclist["+grd_narclist.row+"]/pid"));
  1234. //model.refresh();
  1235. fGetNarcData();
  1236. //환자별 조회라면 체크 표시
  1237. fChkPatSearch(grd_narclist);
  1238. }
  1239. ]]>
  1240. </script>
  1241. <script type="javascript" ev:event="onclick">
  1242. <![CDATA[
  1243. // 전체 선택시 미신청항목 체크박스 제외 -- 20090514 김귀남
  1244. if(grd_narclist.row == "0" && grd_narclist.col == "1"){
  1245. for ( var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
  1246. narcstat = grd_narclist.valueMatrix(i, 2);
  1247. if(narcstat == "1"){
  1248. grd_narclist.valueMatrix(i, 1) = "";
  1249. }
  1250. }
  1251. }
  1252. ]]>
  1253. </script>
  1254. <script type="javascript" ev:event="onmousedown">
  1255. <![CDATA[
  1256. setPopupMenu("grd_narclist", true, "/root/hidden/popup/prcp/item", "name", "param");
  1257. ]]>
  1258. </script>
  1259. <script type="javascript" ev:event="DOMFocusOut">
  1260. <![CDATA[
  1261. initPopupMenu();
  1262. ]]>
  1263. </script>
  1264. </datagrid>
  1265. </case>
  1266. <case id="case2">
  1267. <datagrid id="grd_sprelist" nodeset="/root/main/narclist/narclist" class="datagrid2" backcoloralternate="#f0f0f0" caption="^상태^처방일자^환자번호^환자명^약품코드^약품명^총량^총량^일수량^일수량^일용량^일용량^횟수^잔량^잔량^반납신청일시^반납신청&#xA;담당자^반납확인일시^반납확인&#xA;담당자^prcpno^prcphistno^drugdd^drugno^ioflag^instcd^narcflag^prntflag^orddd^orddeptcd^prcpgenrflag" colsep="^" colwidth="29, 60, 80, 65, 58, 90, 150, 50, 33, 50, 26, 50, 29, 34, 50, 34, 100, 65, 100, 62, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1195px; height:500px; ">
  1268. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  1269. <col ref="narcstat" type="combo">
  1270. <choices>
  1271. <item>
  1272. <label>미신청</label>
  1273. <value>1</value>
  1274. </item>
  1275. <item>
  1276. <label>불출신청</label>
  1277. <value>2</value>
  1278. </item>
  1279. <item>
  1280. <label>출력완료</label>
  1281. <value>3</value>
  1282. </item>
  1283. <item>
  1284. <label>조제완료</label>
  1285. <value>4</value>
  1286. </item>
  1287. <item>
  1288. <label>불출</label>
  1289. <value>5</value>
  1290. </item>
  1291. <item>
  1292. <label>부서확인</label>
  1293. <value>6</value>
  1294. </item>
  1295. <item>
  1296. <label>반납신청</label>
  1297. <value>7</value>
  1298. </item>
  1299. <item>
  1300. <label>반납확인</label>
  1301. <value>8</value>
  1302. </item>
  1303. <item>
  1304. <label>반환신청</label>
  1305. <value>9</value>
  1306. </item>
  1307. <item>
  1308. <label>반환확인</label>
  1309. <value>0</value>
  1310. </item>
  1311. </choices>
  1312. </col>
  1313. <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
  1314. <col ref="pid" style="text-align:center; "/>
  1315. <col ref="patnm" style="text-align:center; "/>
  1316. <col ref="prcpcd"/>
  1317. <col ref="drugnm"/>
  1318. <col ref="totdrugqty" style="text-align:right; "/>
  1319. <col ref="prcpqtyunit" style="text-align:left; "/>
  1320. <col ref="dayprcpqty" style="text-align:right; "/>
  1321. <col ref="prcpqtyunit" style="text-align:left; "/>
  1322. <col ref="prcpvol" style="text-align:right; "/>
  1323. <col ref="prcpvolunit" style="text-align:left; "/>
  1324. <col ref="prcptims" style="text-align:right; "/>
  1325. <col ref="spreqty" style="text-align:right; "/>
  1326. <col ref="prcpvolunit" style="text-align:left; "/>
  1327. <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1328. <col ref="spreidnm" style="text-align:center; "/>
  1329. <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1330. <col ref="sprecnfmidnm" style="text-align:center; "/>
  1331. <col ref="prcpno" visibility="hidden"/>
  1332. <col ref="prcphistno" visibility="hidden"/>
  1333. <col ref="drugdd" visibility="hidden"/>
  1334. <col ref="drugno" visibility="hidden"/>
  1335. <col ref="ioflag" visibility="hidden"/>
  1336. <col ref="instcd" visibility="hidden"/>
  1337. <col ref="narcflag" visibility="hidden"/>
  1338. <col ref="prntflag" visibility="hidden"/>
  1339. <col ref="orddd" visibility="hidden"/>
  1340. <col ref="orddeptcd" visibility="hidden"/>
  1341. <col ref="prcpgenrflag" visibility="hidden"/>
  1342. </datagrid>
  1343. <object id="CommAX" clsid="{B721F534-D025-466B-8A28-7CF40E700ACD}" style="left:270px; top:155px; width:45px; height:45px; "/>
  1344. </case>
  1345. <case id="case3">
  1346. <datagrid id="grd_outnarc" nodeset="/root/main/narclist/narclist" class="datagrid2" autoresize="true" backcoloralternate="#f0f0f0" caption="^불출상태^처방&#xA;상태^반환상태^반납상태^약품&#xA;구분^투약번호^처방구분^수행부서^처방일자^환자번호^환자명^약품코드^약품명^총량^총량^일수량^일수량^1회수량^1회수량^일용량^일용량^1회용량^1회용량^횟수^일수^잔량^잔량^반환횟수^반환횟수^반환수량^반환수량^불출신청일자^불출&#xA;신청자^조제일시^조제약사^투약일시^투약약사^수령일시^수령&#xA;담당자^부서확인&#xA;일시^부서확인&#xA;간호사^반환신청일시^반환신청&#xA;간호사^반환확인일시^반환확인&#xA;약사^반환사유^반납신청&#xA;일시^잔량반납신청&#xA;간호사^반납확인&#xA;일시^잔량반납확인&#xA;약사^prcpno^prcphistno^drugdd^drugno^ioflag^instcd^narcflag^prntflag^orddd^orddeptcd^prcpgenrflag^drugkind^rtndrugtims^rtndrugdayno^rtnstocqty" colsep="^" colwidth="27, 65, 40, 70, 70, 53, 50, 52, 70, 80, 65, 61, 90, 150, 40, 35, 40, 35, 40, 35, 40, 35, 40, 35, 30, 30, 40, 35, 55, 35, 40, 35, 8, 70, 8, 70, 8, 70, 8, 70, 7, 70, 10, 70, 10, 70, 100, 6, 85, 7, 85, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1195px; height:510px; ">
  1347. <col checkvalue="Y,N" ref="sel" type="checkbox">
  1348. <![CDATA[grd_outnarc.colHidden]]>
  1349. </col>
  1350. <col ref="narcstat" type="combo">
  1351. <choices>
  1352. <item>
  1353. <label>미신청</label>
  1354. <value>1</value>
  1355. </item>
  1356. <item>
  1357. <label>불출신청</label>
  1358. <value>2</value>
  1359. </item>
  1360. <item>
  1361. <label>출력완료</label>
  1362. <value>3</value>
  1363. </item>
  1364. <item>
  1365. <label>조제완료</label>
  1366. <value>4</value>
  1367. </item>
  1368. <item>
  1369. <label>불출</label>
  1370. <value>5</value>
  1371. </item>
  1372. <item>
  1373. <label>부서확인</label>
  1374. <value>6</value>
  1375. </item>
  1376. <item>
  1377. <label>반납신청</label>
  1378. <value>7</value>
  1379. </item>
  1380. <item>
  1381. <label>반납확인</label>
  1382. <value>8</value>
  1383. </item>
  1384. <item>
  1385. <label>반환신청</label>
  1386. <value>9</value>
  1387. </item>
  1388. <item>
  1389. <label>반환확인</label>
  1390. <value>0</value>
  1391. </item>
  1392. </choices>
  1393. </col>
  1394. <col ref="prcphistcd" style="text-align:center; "/>
  1395. <col ref="cnclstat" type="combo" style="text-align:center; ">
  1396. <choices>
  1397. <item>
  1398. <label>-</label>
  1399. <value/>
  1400. </item>
  1401. <item>
  1402. <label>반환대상</label>
  1403. <value>0</value>
  1404. </item>
  1405. <item>
  1406. <label>반환신청</label>
  1407. <value>1</value>
  1408. </item>
  1409. <item>
  1410. <label>반환확인</label>
  1411. <value>2</value>
  1412. </item>
  1413. <item>
  1414. <label>반환종료</label>
  1415. <value>7</value>
  1416. </item>
  1417. <item>
  1418. <label>미불출</label>
  1419. <value>10</value>
  1420. </item>
  1421. </choices>
  1422. </col>
  1423. <col ref="rtnstat" type="combo" style="text-align:center; ">
  1424. <choices>
  1425. <item>
  1426. <label>-</label>
  1427. <value/>
  1428. </item>
  1429. <item>
  1430. <label>잔량대상</label>
  1431. <value>0</value>
  1432. </item>
  1433. <item>
  1434. <label>잔량신청</label>
  1435. <value>1</value>
  1436. </item>
  1437. <item>
  1438. <label>잔량확인</label>
  1439. <value>2</value>
  1440. </item>
  1441. <item>
  1442. <label>미불출</label>
  1443. <value>10</value>
  1444. </item>
  1445. </choices>
  1446. </col>
  1447. <col ref="drugkindnm" style="text-align:center; "/>
  1448. <col ref="drugno" style="text-align:center; "/>
  1449. <col ref="prcpkindnm"/>
  1450. <col ref="issdeptcdnm" style="text-align:center; "/>
  1451. <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
  1452. <col ref="pid" style="text-align:center; "/>
  1453. <col ref="patnm" style="text-align:center; "/>
  1454. <col ref="prcpcd"/>
  1455. <col ref="drugnm"/>
  1456. <col ref="totdrugqty" style="text-align:right; "/>
  1457. <col ref="prcpqtyunit" style="text-align:left; "/>
  1458. <col ref="dayprcpqty" style="text-align:right; "/>
  1459. <col ref="dayprcpqtyunit" style="text-align:left; "/>
  1460. <col ref="prcpqty2" style="text-align:right; "/>
  1461. <col ref="prcpqtyunit2" style="left:1153px; top:32px; width:35px; height:23px; text-align:left; "/>
  1462. <col ref="prcpvol" style="text-align:right; "/>
  1463. <col ref="prcpvolunit" style="text-align:left; "/>
  1464. <col ref="prcpvol2" style="text-align:right; "/>
  1465. <col ref="prcpvolunit2" style="text-align:left; "/>
  1466. <col ref="prcptims" style="text-align:right; "/>
  1467. <col ref="prcpdayno" style="text-align:right; "/>
  1468. <col ref="spreqty" style="text-align:right; "/>
  1469. <col ref="prcpvolunit" style="text-align:left; "/>
  1470. <col class="gridinput" ref="rtnqty" type="input" style="text-align:right; "/>
  1471. <col ref="rtnunit" style="text-align:center; "/>
  1472. <col ref="returnqty" style="text-align:right; "/>
  1473. <col ref="prcpqtyunit" style="text-align:left; "/>
  1474. <col ref="reqdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1475. <col ref="reqidnm" style="text-align:center; "/>
  1476. <col ref="prcpdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1477. <col ref="prcpidnm" style="text-align:center; "/>
  1478. <col ref="drugdt" visibility="hidden" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1479. <col ref="drugidnm" visibility="hidden" style="text-align:center; "/>
  1480. <col ref="delivedt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1481. <col ref="deliveidnm" style="text-align:center; "/>
  1482. <col ref="acptdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1483. <col ref="acptidnm" style="text-align:center; "/>
  1484. <col ref="rtnappdt" visibility="visible" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1485. <col ref="rtnappidnm" visibility="visible" style="text-align:center; "/>
  1486. <col ref="rtncnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1487. <col ref="rtncnfmidnm" style="text-align:center; "/>
  1488. <col ref="rtnresn"/>
  1489. <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1490. <col ref="spreidnm" style="text-align:center; "/>
  1491. <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  1492. <col ref="sprecnfmidnm" style="text-align:center; "/>
  1493. <col ref="prcpno" visibility="hidden"/>
  1494. <col ref="prcphistno" visibility="hidden"/>
  1495. <col ref="drugdd" visibility="hidden"/>
  1496. <col ref="drugno" visibility="hidden"/>
  1497. <col ref="ioflag" visibility="hidden"/>
  1498. <col ref="instcd" visibility="hidden"/>
  1499. <col ref="narcflag" visibility="hidden"/>
  1500. <col ref="prntflag" visibility="hidden"/>
  1501. <col ref="orddd" visibility="hidden"/>
  1502. <col ref="orddeptcd" visibility="hidden"/>
  1503. <col ref="prcpgenrflag" visibility="hidden"/>
  1504. <col ref="drugkind" visibility="hidden" style="text-align:center; "/>
  1505. <col ref="rtndrugtims" visibility="hidden"/>
  1506. <col ref="rtndrugdayno" visibility="hidden"/>
  1507. <col ref="rtnstocqty" visibility="hidden"/>
  1508. <col ref="drugseqno" visibility="hidden" style="text-align:center; "/>
  1509. <script type="javascript" ev:event="xforms-value-changed">
  1510. <![CDATA[
  1511. if(model.getValue("/root/temp/srchinfo/narcflag") == "H") {
  1512. fIptRtnCnts(grd_outnarc.row);
  1513. }
  1514. ]]>
  1515. </script>
  1516. <script type="javascript" ev:event="ondblclick">
  1517. <![CDATA[
  1518. if(grd_outnarc.iscell(event.target) ){
  1519. model.setValue("/root/temp/srchinfo/pid",model.getValue("/root/main/narclist/narclist["+grd_outnarc.row+"]/pid"));
  1520. //model.refresh();
  1521. fGetNarcData();
  1522. //환자별 조회라면 체크 표시
  1523. fChkPatSearch(grd_outnarc);
  1524. }
  1525. ]]>
  1526. </script>
  1527. <script type="javascript" ev:event="onclick">
  1528. <![CDATA[
  1529. // 전체 선택시 미신청항목 체크박스 제외 -- 20090514 김귀남
  1530. if(grd_outnarc.row == "0" && grd_outnarc.col == "1"){
  1531. for ( var i = grd_outnarc.fixedRows; i < grd_outnarc.rows; i++){
  1532. narcstat = grd_outnarc.valueMatrix(i, 2);
  1533. if(narcstat == "1"){
  1534. grd_outnarc.valueMatrix(i, 1) = "";
  1535. }
  1536. }
  1537. }
  1538. ]]>
  1539. </script>
  1540. <script type="javascript" ev:event="onmousedown">
  1541. <![CDATA[
  1542. setPopupMenu("grd_outnarc", true, "/root/hidden/popup/prcp/item", "name", "param");
  1543. ]]>
  1544. </script>
  1545. <script type="javascript" ev:event="DOMFocusOut">
  1546. <![CDATA[
  1547. initPopupMenu();
  1548. ]]>
  1549. </script>
  1550. </datagrid>
  1551. </case>
  1552. </switch>
  1553. <group id="group4" scroll="auto" style="left:0px; top:194px; width:1195px; height:27px; ">
  1554. <button id="btn_rtn" class="btn4_letter4" navindex="39" style="left:861px; top:4px; width:80px; height:22px; ">
  1555. <caption>반환확인</caption>
  1556. <script type="javascript" ev:event="DOMActivate">
  1557. <![CDATA[
  1558. fNarcActing("Rtn");
  1559. fGetNarcData();
  1560. ]]>
  1561. </script>
  1562. </button>
  1563. <button id="btn_prt" class="btn6_letter4" navindex="29" style="left:0px; top:5px; width:92px; height:22px; ">
  1564. <caption>일괄처리</caption>
  1565. <script type="javascript" ev:event="DOMActivate">
  1566. <![CDATA[
  1567. fNarcPrint();
  1568. if (chk_all.value == "Y") {
  1569. /// 2014년 11.6 김치국 불출상태가 '1' = 불출신청이면서 일괄처리 버튼 누를시 에러를 발생 시킴
  1570. for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
  1571. var sel = model.getValue("/root/main/narclist/narclist["+i+"]/sel");
  1572. var cnclstat = model.getValue("/root/main/narclist/narclist["+i+"]/cnclstat"); // 반환상태
  1573. //alert( sel + cnclstat);
  1574. if(sel == "Y"){
  1575. if ( cnclstat == "1") {
  1576. alert("반환신청 자료는 일괄처리 할 수 없습니다");
  1577. return;
  1578. }
  1579. }
  1580. }
  1581. fNarcActing("Prcpdrug");
  1582. // model.setValue("/root/temp/srchinfo/barcode","");
  1583. // model.setFocus("input9");
  1584. // model.refresh();
  1585. }
  1586. // 20110922_laboru_처방전이나 라벨 출력 시 병동이나 수행부서를 조건으로 걸고 진행한 후 다시 공란으로 돌아가게 수정
  1587. model.setValue("/root/temp/srchinfo/ward", "");
  1588. model.setValue("/root/temp/srchinfo/srchdeptcd", "");
  1589. model.refresh();
  1590. ]]>
  1591. </script>
  1592. </button>
  1593. <button id="btn_drugcncl" class="btn4_letter4" visibility="hidden" style="left:777px; top:4px; width:80px; height:22px; ">
  1594. <caption>불출취소</caption>
  1595. <script type="javascript" ev:event="DOMActivate">
  1596. <![CDATA[
  1597. //messageBox("마약불출화면에서 마약수령자가 처리해야합니다.","I900");
  1598. if(messageBox("마약불출화면에서 마약수령자가 처리해야합니다. 진행하시겠습니까?", "Q900") == "7") {
  1599. return;
  1600. }
  1601. fNarcActing("DrugCncl");
  1602. ]]>
  1603. </script>
  1604. </button>
  1605. <button id="btn_spre" class="btn4_letter4" navindex="41" style="left:1029px; top:4px; width:80px; height:22px; ">
  1606. <caption>잔량확인</caption>
  1607. <script type="javascript" ev:event="DOMActivate">
  1608. <![CDATA[
  1609. fNarcActing("Spre");
  1610. ]]>
  1611. </script>
  1612. </button>
  1613. <button id="btn_prcpcncl" class="btn4_letter4" navindex="36" visibility="hidden" style="left:609px; top:4px; width:80px; height:22px; ">
  1614. <caption>조제취소</caption>
  1615. <script type="javascript" ev:event="DOMActivate">
  1616. <![CDATA[
  1617. fNarcActing("PrcpCncl");
  1618. ]]>
  1619. </script>
  1620. </button>
  1621. <button id="btn_prcp" class="btn4_letter4" navindex="37" visibility="hidden" style="left:655px; top:4px; width:80px; height:22px; ">
  1622. <caption>조제확인</caption>
  1623. <script type="javascript" ev:event="DOMActivate">
  1624. <![CDATA[
  1625. fNarcActing("Prcp");
  1626. ]]>
  1627. </script>
  1628. </button>
  1629. <button id="button7" class="btn6_letter5" navindex="31" style="left:192px; top:5px; width:92px; height:22px; ">
  1630. <caption>라벨재출력</caption>
  1631. <script type="javascript" ev:event="DOMActivate">
  1632. <![CDATA[
  1633. //fNarcLBLPrint("Reprnt");
  1634. fNarcLBLPrintR("Reprnt");
  1635. // 20110922_laboru_처방전이나 라벨 출력 시 병동이나 수행부서를 조건으로 걸고 진행한 후 다시 공란으로 돌아가게 수정
  1636. model.setValue("/root/temp/srchinfo/ward", "");
  1637. model.setValue("/root/temp/srchinfo/srchdeptcd", "");
  1638. model.refresh();
  1639. ]]>
  1640. </script>
  1641. </button>
  1642. <select id="checkbox4" ref="/root/send/lblskip" navindex="35" overflow="visible" appearance="full" style="left:546px; top:11px; width:75px; height:15px; border-style:none; ">
  1643. <choices>
  1644. <item>
  1645. <label>라벨생략</label>
  1646. <value>Y</value>
  1647. </item>
  1648. </choices>
  1649. </select>
  1650. <button id="button5" class="btn3_letter5" navindex="32" style="left:290px; top:5px; width:92px; height:22px; ">
  1651. <caption>바코드불출</caption>
  1652. <script type="javascript" ev:event="DOMActivate">
  1653. <![CDATA[
  1654. modal("SMADT30600","1","1","1","SMADT30600","","","caption:hidden;","false");
  1655. //open("SMADT30600",0,0,10,"SMADT30600","","");
  1656. ]]>
  1657. </script>
  1658. </button>
  1659. <button id="btn_prnt" class="btn3_letter5" navindex="33" style="left:385px; top:5px; width:92px; height:22px; ">
  1660. <caption>프린터설정</caption>
  1661. <script type="javascript" ev:event="DOMActivate">
  1662. <![CDATA[
  1663. fSetPrint();
  1664. ]]>
  1665. </script>
  1666. </button>
  1667. <button id="btn_sprecncl" class="btn4_letter4" navindex="42" visibility="visible" style="left:1113px; top:4px; width:80px; height:22px; ">
  1668. <caption>잔량취소</caption>
  1669. <script type="javascript" ev:event="DOMActivate">
  1670. <![CDATA[
  1671. fNarcActing("SpreCncl");
  1672. ]]>
  1673. </script>
  1674. </button>
  1675. <button id="btn_rtncncl" class="btn4_letter4" navindex="40" visibility="visible" style="left:945px; top:4px; width:80px; height:22px; ">
  1676. <caption>반환취소</caption>
  1677. <script type="javascript" ev:event="DOMActivate">
  1678. <![CDATA[
  1679. fNarcActing("RtnCncl");
  1680. fGetNarcData();
  1681. ]]>
  1682. </script>
  1683. </button>
  1684. <select id="chk_all" ref="/root/send/chkall" disabled="true" navindex="34" overflow="visible" appearance="full" style="left:480px; top:11px; width:65px; height:15px; border-style:none; ">
  1685. <choices>
  1686. <item>
  1687. <label>일괄처리</label>
  1688. <value>Y</value>
  1689. </item>
  1690. </choices>
  1691. </select>
  1692. <button id="button2" class="btn6_letter6" navindex="30" style="left:83px; top:5px; width:104px; height:22px; ">
  1693. <caption>처방전재출력</caption>
  1694. <script type="javascript" ev:event="DOMActivate">
  1695. <![CDATA[
  1696. // 20101221 wify 경북대병원 처방전재출력 추가.
  1697. model.setValue("/root/temp/reprnt", "Y");
  1698. fNarcPrint();
  1699. //alert( instance.selectNodesXml(“/root/main”) );
  1700. model.setValue("/root/temp/reprnt", "N");
  1701. // 20110922_laboru_처방전이나 라벨 출력 시 병동이나 수행부서를 조건으로 걸고 진행한 후 다시 공란으로 돌아가게 수정
  1702. model.setValue("/root/temp/srchinfo/ward", "");
  1703. model.setValue("/root/temp/srchinfo/srchdeptcd", "");
  1704. model.refresh();
  1705. ]]>
  1706. </script>
  1707. </button>
  1708. <button id="btn_drug" class="btn4_letter4" navindex="38" visibility="hidden" style="left:755px; top:4px; width:80px; height:22px; ">
  1709. <caption>불출확인</caption>
  1710. <script type="javascript" ev:event="DOMActivate">
  1711. <![CDATA[
  1712. //messageBox("마약불출화면에서 마약수령자가 처리해야합니다.","I900");
  1713. //return;
  1714. fNarcActing("Drug");
  1715. ]]>
  1716. </script>
  1717. </button>
  1718. </group>
  1719. </group>
  1720. <button id="btn_excel" class="btn2_letter4" navindex="46" style="left:1125px; top:760px; width:64px; height:19px; ">
  1721. <caption>엑셀저장</caption>
  1722. <script type="javascript" ev:event="DOMActivate">
  1723. <![CDATA[
  1724. if (grd_narclist.rows>1) {
  1725. fExeSaveToExcel();
  1726. }
  1727. ]]>
  1728. </script>
  1729. </button>
  1730. <button id="button8" class="btn6_letter6" navindex="45" style="left:1010px; top:760px; width:104px; height:22px; ">
  1731. <caption>반환반납장부</caption>
  1732. <script type="javascript" ev:event="DOMActivate">
  1733. <![CDATA[
  1734. model.copyNode("/root/send/srchinfo","/root/temp/srchinfo");
  1735. model.setValue("/root/send/srchinfo/cnclflag","Y");
  1736. model.setValue("/root/send/srchinfo/cnclstat","T");
  1737. model.setValue("/root/send/srchinfo/rtnflag","Y");
  1738. model.setValue("/root/send/srchinfo/rtnstat","T");
  1739. model.setValue("/root/send/srchinfo/pid", "");
  1740. model.setValue("/root/send/srchinfo/srchdrugno", "");
  1741. model.setValue("/root/send/srchinfo/narcstat", "");
  1742. model.makeValue("/root/send/srchinfo/usernm", getUserName());
  1743. //submit("TRADT30102");
  1744. submit("TRADT30108");
  1745. if(model.getValue("root/main/rtnprntlist/prntlist/pid") != "") {
  1746. if ( model.getValue("/root/temp/srchinfo/narcflag") =="H"){//향정
  1747. //20090915 이선경 주석 : 마약과 동일한 조건으로 장부 리스트 출력함
  1748. /*model.setValue("/root/temp/srchinfo/prtab", "Y");
  1749. fGetNarcData();
  1750. model.makeValue("/root/send/srchinfo/usernm", getUserName());
  1751. */
  1752. exeReportPreview("RFADT30103", "XMLSTR", "", "", "true","","","","","true");
  1753. } else if ( model.getValue("/root/temp/srchinfo/narcflag") =="M"){//마약
  1754. exeReportPreview("RFADT30101", "XMLSTR", "", "", "true","","","","","true");
  1755. }
  1756. }
  1757. ]]>
  1758. </script>
  1759. </button>
  1760. <button id="button9" class="btn6_letter8" navindex="44" style="left:880px; top:760px; width:128px; height:22px; ">
  1761. <caption>잔류마약폐기장부</caption>
  1762. <script type="javascript" ev:event="DOMActivate">
  1763. <![CDATA[
  1764. model.copyNode("/root/send/srchinfo","/root/temp/srchinfo");
  1765. model.setValue("/root/send/srchinfo/srchioflag","");
  1766. model.setValue("/root/send/srchinfo/rtnflag","Y");
  1767. model.setValue("/root/send/srchinfo/pid", "");
  1768. model.setValue("/root/send/srchinfo/srchdrugno", "");
  1769. model.setValue("/root/send/srchinfo/rtnstat", "2"); //잔량확인건만 -"2"
  1770. model.setValue("/root/send/srchinfo/cnclflag", "");
  1771. model.setValue("/root/send/srchinfo/cnclstat", "");
  1772. model.setValue("/root/send/srchinfo/narcstat", "");
  1773. submit("TRADT30102");
  1774. exeReportPreview("RFADT30102", "XMLSTR", "", "", "true","","","","","true");
  1775. ]]>
  1776. </script>
  1777. </button>
  1778. <button id="button1" class="btn6_letter6" navindex="43" style="left:775px; top:760px; width:104px; height:22px; ">
  1779. <caption>불출확인서</caption>
  1780. <script type="javascript" ev:event="DOMActivate">
  1781. <![CDATA[
  1782. var val = cmb_ward.value;
  1783. var val1 = radio3.value;
  1784. // if (val == "" ) {
  1785. // alert("병동을 선택하세요.");
  1786. // return false;
  1787. // }
  1788. if(val1 == "5" || val1== "7" || val1== "8") {
  1789. if (val1 == "8") {
  1790. if (cmb_prntdt.value == "") {
  1791. messageBox("출력할 출력일시를 선택", "I008");
  1792. model.setFocus("cmb_prntdt");
  1793. return;
  1794. }
  1795. }
  1796. var sSelKey = "";
  1797. var sSelKeyall = "";
  1798. var iCnt = getNodesetCount(grd_narclist.nodeset);
  1799. var selCnt = getNodesetCount(grd_narclist.nodeset+"[sel='Y']");
  1800. if (selCnt < 1) {
  1801. messageBox("출력할 처방을 선택", "I008");
  1802. return;
  1803. }
  1804. for (var i = 1; i <= iCnt; i++) {
  1805. if (model.getValue(grd_narclist.nodeset+"["+ i +"]/sel") == "Y") {
  1806. sSelKey += "'"+ model.getValue(grd_narclist.nodeset+"["+ i +"]/drugno") +
  1807. ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/pid") +
  1808. ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/prcpdd")+ "',";
  1809. sSelKeyall += "'"+ model.getValue(grd_narclist.nodeset+"["+ i +"]/drugno") +
  1810. ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/pid") +
  1811. ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/prcpdd")+
  1812. ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/prcpno")+
  1813. ""+model.getValue(grd_narclist.nodeset+"["+ i +"]/drugseqno")+"',";
  1814. }
  1815. }
  1816. sSelKey = sSelKey.replace(/,$/g, "");
  1817. sSelKeyall = sSelKeyall.replace(/,$/g, "");
  1818. model.setValue("/root/temp/srchinfo/selkey", sSelKey); //체크된 불출집계내역
  1819. model.setValue("/root/temp/srchinfo/selkeyall", sSelKeyall); //체크된 불출집계내역
  1820. fGetNarcData();
  1821. //20101216 wify 경북대병원 조회목록출력 변경 ==> 마약불출확인서
  1822. var befrNacrFlag = model.getValue("/root/send/srchinfo/narcflag");
  1823. //마약
  1824. if (getNodesetCount("/root/main/narclist/narclist[narcflag='M' and sel='Y']") > 0) {
  1825. model.setValue("/root/send/srchinfo/narcflag", "M");
  1826. var drugkind = model.getValue("/root/send/srchinfo/srchdrugkind");
  1827. {//마약 주사
  1828. model.setValue("/root/send/srchinfo/srchdrugkind", "I");
  1829. submit("TRADT30109");
  1830. copyNodesetType("/root/prtinfo/sumlist/sumlist","/root/main/sumlist/sumlist","replace");
  1831. model.setValue("/root/prtinfo/hosp/hosp", "");
  1832. if (getNodesetCount("/root/main/narclist/narclist[narcflag='M' and pastillyn != 'Y' and drugkind='M' and sel='Y']") > 0) {
  1833. model.setValue("/root/prtinfo/hosp/narcflag", "M");
  1834. model.setValue("/root/prtinfo/hosp/pastillyn", "N");
  1835. copyNodesetType("/root/prtinfo/narclist/narclist","/root/main/narclist/narclist[narcflag='M' and pastillyn != 'Y' and drugkind='M' and sel='Y']","replace");
  1836. exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
  1837. model.setValue("/root/prtinfo/hosp/hosp", "Y");
  1838. exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
  1839. }
  1840. }
  1841. {//마약 먹는약/외용약
  1842. model.setValue("/root/send/srchinfo/srchdrugkind", "D");
  1843. submit("TRADT30109");
  1844. copyNodesetType("/root/prtinfo/sumlist/sumlist","/root/main/sumlist/sumlist","replace");
  1845. model.setValue("/root/prtinfo/hosp/hosp", "");
  1846. if (getNodesetCount("/root/main/narclist/narclist[narcflag='M' and pastillyn != 'Y' and sel='Y' and (drugkind= 'N' or drugkind = 'Y')]") > 0) {
  1847. model.setValue("/root/prtinfo/hosp/narcflag", "M");
  1848. model.setValue("/root/prtinfo/hosp/pastillyn", "N");
  1849. copyNodesetType("/root/prtinfo/narclist/narclist","/root/main/narclist/narclist[narcflag='M' and pastillyn != 'Y' and sel='Y' and (drugkind= 'N' or drugkind = 'Y')]","replace");
  1850. exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
  1851. model.setValue("/root/prtinfo/hosp/hosp", "Y");
  1852. exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
  1853. }
  1854. }
  1855. {//마약이면서 향정수불인것
  1856. model.setValue("/root/send/srchinfo/srchdrugkind", "P");
  1857. submit("TRADT30109");
  1858. copyNodesetType("/root/prtinfo/sumlist/sumlist","/root/main/sumlist/sumlist","replace");
  1859. model.setValue("/root/prtinfo/hosp/hosp", "");
  1860. if (getNodesetCount("/root/main/narclist/narclist[narcflag='M' and pastillyn = 'Y' and sel='Y']") > 0) {
  1861. model.setValue("/root/prtinfo/hosp/narcflag", "M");
  1862. model.setValue("/root/prtinfo/hosp/pastillyn", "Y");
  1863. copyNodesetType("/root/prtinfo/narclist/narclist","/root/main/narclist/narclist[narcflag='M' and pastillyn = 'Y' and sel='Y']","replace");
  1864. exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
  1865. model.setValue("/root/prtinfo/hosp/hosp", "Y");
  1866. exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
  1867. }
  1868. }
  1869. model.setValue("/root/send/srchinfo/srchdrugkind", drugkind);
  1870. }
  1871. //향정
  1872. if (getNodesetCount("/root/main/narclist/narclist[narcflag='H' and sel='Y']") > 0) {
  1873. model.setValue("/root/send/srchinfo/narcflag", "H");
  1874. submit("TRADT30109");
  1875. copyNodesetType("/root/prtinfo/sumlist/sumlist","/root/main/sumlist/sumlist","replace");
  1876. copyNodesetType("/root/prtinfo/narclist/narclist","/root/main/narclist/narclist[narcflag='H' and sel='Y']","replace");
  1877. model.setValue("/root/prtinfo/hosp/hosp", "");
  1878. model.setValue("/root/prtinfo/hosp/narcflag", "H");
  1879. exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
  1880. model.setValue("/root/prtinfo/hosp/hosp", "Y");
  1881. exeReportPreview("RFADT30108", "XMLSTR", "", "", "true","","","","","true");
  1882. }
  1883. if (val1 != "8") { //재출력인 경우를 제외하고 출력일자 설정
  1884. fSetNarcPrintDt(); //출력일자 설정
  1885. }
  1886. model.setValue("/root/send/srchinfo/narcflag", befrNacrFlag);
  1887. //exeReportPreview("RFADT30104", "XMLSTR", "", "", "true","","","","","true");
  1888. //exeReportPreview("RFADT30104", "XMLSTR");
  1889. } else {
  1890. alert("불출구분(불출/실불출신청/재출력)중 하나를 선택해주세요");
  1891. return false;
  1892. }
  1893. ]]>
  1894. </script>
  1895. </button>
  1896. <group id="group5" visibility="hidden" style="left:535px; top:520px; width:435px; height:205px; ">
  1897. <datagrid id="datagrid2" nodeset="/root/main/detlprcplist/detlprcpinfo" visibility="visible" scroll="auto" caption="구분^ioflag^처방번호^투약번호^병실^실시일자^실시시간^집계일시^집계부서^시행부서^발행부서^마감일시^출력일시^execrid^실시자" colsep="^" colwidth="40, 5, 3, 57, 51, 81, 71, 123, 121, 121, 121, 120, 138, 0, 90" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:0px; width:430px; height:175px; ">
  1898. <col ref="ioflagnm" visibility="hidden" style="text-align:center; "/>
  1899. <col ref="ioflag" visibility="hidden"/>
  1900. <col ref="prcpno" visibility="hidden" style="text-align:center; ">
  1901. <![CDATA[/>]]>
  1902. </col>
  1903. <col ref="drugno" visibility="hidden" style="text-align:center; "/>
  1904. <col ref="roomcd" visibility="hidden" style="text-align:center; "/>
  1905. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1906. <col ref="exectm" format="hh:nn" style="text-align:center; "/>
  1907. <col ref="drugsumdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1908. <col ref="sumdeptnm" visibility="hidden" style="text-align:center; "/>
  1909. <col ref="execdeptnm" style="text-align:center; "/>
  1910. <col ref="issdeptcdnm" visibility="hidden" style="text-align:center; "/>
  1911. <col ref="sumdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1912. <col ref="prntdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1913. <col ref="execrid"/>
  1914. <col ref="execrnm"/>
  1915. </datagrid>
  1916. <button id="button10" class="btn4_letter2" style="left:375px; top:180px; width:56px; height:22px; ">
  1917. <caption>닫기</caption>
  1918. <script type="javascript" ev:event="DOMActivate">
  1919. <![CDATA[
  1920. group5.visible = false;
  1921. ]]>
  1922. </script>
  1923. </button>
  1924. </group>
  1925. <script type="javascript" ev:event="onkeyup">
  1926. <![CDATA[
  1927. //20110124_laboru
  1928. if (event.keyCode==121){
  1929. btn_prcp.visible=true;
  1930. btn_drug.visible=true;
  1931. }
  1932. if(event.keyCode==120) {
  1933. btn_prcp.visible=false;
  1934. btn_drug.visible=false;
  1935. }
  1936. ]]>
  1937. </script>
  1938. </xhtml:body>
  1939. </xhtml:html>