SMADT30600_마약향정불출전용.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  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. <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. </narclist>
  68. </narclist>
  69. </main>
  70. <send>
  71. <srchinfo/>
  72. <srchcond>
  73. <deptflag/>
  74. <narcflag>M</narcflag>
  75. </srchcond>
  76. <prntinfo/>
  77. <narcinfo>
  78. <srchinfo/>
  79. <narclist/>
  80. <userinfo/>
  81. </narcinfo>
  82. <userinfo>
  83. <userid/>
  84. </userinfo>
  85. <lblskip/>
  86. </send>
  87. <init/>
  88. <hidden/>
  89. <temp>
  90. <srchinfo>
  91. <narcflag/>
  92. <timeflag>2</timeflag>
  93. <fst_dd/>
  94. <last_dd/>
  95. <pid/>
  96. <ward/>
  97. <srchdrugno/>
  98. <barcode/>
  99. <srchdrugkind/>
  100. <srchioflag>I</srchioflag>
  101. <drugflag>I</drugflag>
  102. <srchroot/>
  103. <narcstat/>
  104. <cnclflag/>
  105. <cnclstat/>
  106. <rtnflag/>
  107. <rtnstat/>
  108. <narctypeflag/>
  109. <narctype/>
  110. <srchid/>
  111. <narccd/>
  112. <barcode_2>drug</barcode_2>
  113. <phamid/>
  114. </srchinfo>
  115. <srchcond>
  116. <narclist>
  117. <sel/>
  118. <narcnm/>
  119. <narccd/>
  120. </narclist>
  121. <ward>
  122. <wardcd/>
  123. <wardnm/>
  124. </ward>
  125. </srchcond>
  126. <userinfo>
  127. <userinfo>
  128. <userid/>
  129. <usernm/>
  130. <userdeptcd/>
  131. <userdeptnm/>
  132. </userinfo>
  133. </userinfo>
  134. <chkcashinfo>
  135. <narclist/>
  136. </chkcashinfo>
  137. <ret/>
  138. </temp>
  139. </root>
  140. </instance>
  141. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  142. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  143. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  144. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  145. <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT30600.js"/>
  146. <script type="javascript" ev:event="xforms-ready">
  147. <![CDATA[
  148. fInit();
  149. ]]>
  150. </script>
  151. <submission id="TRADT30101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
  152. <submission id="TRADT30102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/narclist"/>
  153. <submission id="TRADT30103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntinfo" replace="instance" resultref="/root/main/prntlist"/>
  154. <submission id="TRADT30104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/temp/userinfo"/>
  155. <submission id="TXADT30101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo" replace="instance" resultref="/root/main/narclist"/>
  156. <submission id="TXADT30102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo" replace="instance" resultref="/root/temp/ret"/>
  157. <bind id="bind1" ref="/root/main/narclist/narclist/narcstat" readonly="../pid != ''"/>
  158. <bind id="bind2" ref="/root/main/narclist/narclist/cnclstat" readonly="../pid != ''"/>
  159. <bind id="bind3" ref="/root/main/narclist/narclist/rtnstat" readonly="../pid != ''"/>
  160. <bind id="bind4" ref="/root/main/narclist/narclist/sel" readonly="../narcstat = '1'"/>
  161. </model>
  162. </xhtml:head>
  163. <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  164. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  165. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">마약/향정약 처방관리</caption>
  166. </group>
  167. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  168. <group id="group2" style="left:0px; top:0px; width:1195px; height:260px; ">
  169. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1192px; height:255px; background-color:#fffbf2; border-color:#ffd799; "/>
  170. <input id="input9" ref="/root/temp/srchinfo/barcode" class="font_ab" imemode="alpha" style="left:245px; top:120px; width:615px; height:75px; font-size:36pt; ">
  171. <script type="javascript" ev:event="onkeyup">
  172. <![CDATA[
  173. if(event.keyCode == "13") {
  174. caption1.text="";
  175. input9.disabled=true;
  176. setInputNodeCurText();
  177. fChgBarcode();
  178. input9.disabled=false;
  179. model.setFocus("input9");
  180. }
  181. ]]>
  182. </script>
  183. <script type="javascript" ev:event="DOMFocusIn">
  184. <![CDATA[
  185. ]]>
  186. </script>
  187. </input>
  188. <caption id="caption7" class="font_ab" style="left:10px; top:120px; width:235px; height:75px; ">바코드 :</caption>
  189. <caption id="caption8" class="font_ab" style="left:10px; top:35px; width:235px; height:75px; ">담당자 :</caption>
  190. <output id="output1" ref="/root/temp/userinfo/userinfo/usernm" class="font_ab" style="left:595px; top:34px; width:265px; height:75px; border-width:1; border-style:solid; "/>
  191. <input id="input1" ref="/root/temp/srchinfo/srchid" class="font_ab" autonext="false" maxlength="8" style="left:245px; top:34px; width:340px; height:75px; ">
  192. <script type="javascript" ev:event="onkeyup">
  193. <![CDATA[
  194. if(event.keyCode == "13") {
  195. //setInputNodeCurText();
  196. //fChgUserID();
  197. model.setFocus("input9");
  198. }
  199. ]]>
  200. </script>
  201. <script type="javascript" ev:event="onkeydown">
  202. <![CDATA[
  203. //setInputNodeCurText();
  204. //model.setValue("/root/temp/userinfo/userinfo/usernm", "");
  205. //model.refresh();
  206. ]]>
  207. </script>
  208. <script type="javascript" ev:event="DOMFocusOut">
  209. <![CDATA[
  210. //setInputNodeCurText();
  211. caption1.text="";
  212. if ( model.getValue("/root/temp/srchinfo/srchid") =="") {
  213. if(model.getValue("/root/temp/userinfo/userinfo/userid") == ""){
  214. //messageBox("사용자ID를 입력하십시오.","C999");
  215. caption1.text="사용자ID를 입력하십시오.";
  216. model.removeNodeset("/root/temp/userinfo/userinfo");
  217. model.makeNode("/root/temp/userinfo/userinfo");
  218. model.removeNodeset("/root/temp/userinfo/userinfo/userid");
  219. model.makeValue("/root/temp/userinfo/userinfo/userid", "");
  220. model.removeNodeset("/root/temp/userinfo/userinfo/usernm");
  221. model.makeValue("/root/temp/userinfo/userinfo/usernm", "");
  222. model.setValue("/root/temp/srchinfo/srchid","");
  223. model.setValue("/root/temp/userinfo/userinfo/usernm", "");
  224. model.refresh();
  225. model.setFocus("input1");
  226. } else {
  227. model.setValue("/root/temp/srchinfo/srchid","");
  228. //model.setFocus("input1");
  229. model.refresh();
  230. model.setFocus("input9");
  231. }
  232. } else {
  233. fChgUserID();
  234. }
  235. ]]>
  236. </script>
  237. </input>
  238. <button id="button1" class="btn4_letter4" visibility="hidden" style="left:1085px; top:80px; width:80px; height:22px; ">
  239. <caption>불출확인</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. fNarcActing("Drug");
  243. ]]>
  244. </script>
  245. </button>
  246. <button id="button2" class="btn4_letter4" style="left:1085px; top:135px; width:80px; height:22px; ">
  247. <caption>불출취소</caption>
  248. <script type="javascript" ev:event="DOMActivate">
  249. <![CDATA[
  250. caption1.text="";
  251. fNarcActing("DrugCncl");
  252. ]]>
  253. </script>
  254. </button>
  255. <line id="line13" class="line_4" style="x1:1055px; y1:5px; x2:1055px; y2:245px; border-color:#ffe4bb; border-left-style:solid; "/>
  256. <caption id="caption1" style="left:240px; top:200px; width:620px; height:40px; font-size:16; font-weight:bold; color:#ff0000; ">사용자ID를 입력하십시오.</caption>
  257. </group>
  258. <switch id="switch1" style="left:4px; top:270px; width:1188px; height:450px; ">
  259. <case id="case1" selected="true">
  260. <datagrid id="grd_narclist" nodeset="/root/main/narclist/narclist" class="datagrid2" backcoloralternate="#f0f0f0" caption="^불출상태^반환상태^반납상태^처방일자^투약번호^수행부서^병실^환자번호^환자명^약품코드^약품명^총량^총량^일수량^일수량^일용량^일용량^횟수^잔량^잔량^반환횟수^반환횟수^반환수량^반환수량^조제일시^조제&#xA;약사^투약일시^투약&#xA;약사^수령일시^수령&#xA;담당자^병동수령일시^부서확인&#xA;간호사^반환신청일시^반환신청&#xA;간호사^반환일시^반환&#xA;담당자^반환확인일시^반환확인&#xA;약사^반환사유^잔량반납&#xA;신청일시^잔량반납신청&#xA;간호사^잔량반납&#xA;확인일시^잔량반납확인&#xA;약사^prcpno^prcphistno^drugdd^drugno^ioflag^instcd^narcflag^prntflag^orddd^orddeptcd^prcpgenrflag" colsep="^" colwidth="30, 56, 56, 56, 67, 41, 70, 40, 65, 50, 90, 150, 40, 27, 36, 27, 40, 28, 26, 32, 28, 28, 29, 32, 35, 8, 70, 6, 69, 8, 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" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1177px; height:440px; ">
  261. <col checkvalue="Y,N" ref="sel" type="checkbox" style="left:20px; top:32px; width:30px; height:23px; "/>
  262. <col ref="narcstat" type="combo">
  263. <choices>
  264. <item>
  265. <label>미신청</label>
  266. <value>1</value>
  267. </item>
  268. <item>
  269. <label>불출신청</label>
  270. <value>2</value>
  271. </item>
  272. <item>
  273. <label>출력완료</label>
  274. <value>3</value>
  275. </item>
  276. <item>
  277. <label>조제완료</label>
  278. <value>4</value>
  279. </item>
  280. <item>
  281. <label>불출</label>
  282. <value>5</value>
  283. </item>
  284. <item>
  285. <label>부서확인</label>
  286. <value>6</value>
  287. </item>
  288. </choices>
  289. </col>
  290. <col ref="cnclstat" type="combo" style="text-align:center; ">
  291. <choices>
  292. <item>
  293. <label>-</label>
  294. <value/>
  295. </item>
  296. <item>
  297. <label>반환대상</label>
  298. <value>0</value>
  299. </item>
  300. <item>
  301. <label>반환신청</label>
  302. <value>1</value>
  303. </item>
  304. <item>
  305. <label>반환확인</label>
  306. <value>2</value>
  307. </item>
  308. <item>
  309. <label>반환종료</label>
  310. <value>7</value>
  311. </item>
  312. </choices>
  313. </col>
  314. <col ref="rtnstat" type="combo" style="text-align:center; ">
  315. <choices>
  316. <item>
  317. <label>-</label>
  318. <value/>
  319. </item>
  320. <item>
  321. <label>잔량대상</label>
  322. <value>0</value>
  323. </item>
  324. <item>
  325. <label>잔량신청</label>
  326. <value>1</value>
  327. </item>
  328. <item>
  329. <label>잔량확인</label>
  330. <value>2</value>
  331. </item>
  332. </choices>
  333. </col>
  334. <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
  335. <col ref="drugno" style="text-align:center; "/>
  336. <col ref="issdeptcdnm" style="text-align:center; "/>
  337. <col ref="roomcd" style="text-align:center; "/>
  338. <col ref="pid" style="text-align:center; "/>
  339. <col ref="patnm" style="text-align:center; "/>
  340. <col ref="prcpcd"/>
  341. <col ref="drugnm"/>
  342. <col ref="totdrugqty" style="text-align:right; "/>
  343. <col ref="prcpqtyunit" style="text-align:left; "/>
  344. <col ref="dayprcpqty" style="text-align:right; "/>
  345. <col ref="prcpqtyunit" style="text-align:left; "/>
  346. <col ref="prcpvol" style="text-align:right; "/>
  347. <col ref="prcpvolunit" style="text-align:left; "/>
  348. <col ref="prcptims" style="text-align:center; "/>
  349. <col ref="spreqty" style="text-align:right; "/>
  350. <col ref="prcpvolunit" style="text-align:left; "/>
  351. <col ref="rtnqty" style="text-align:right; "/>
  352. <col ref="rtnunit" style="text-align:left; "/>
  353. <col ref="returnqty" style="text-align:right; "/>
  354. <col ref="prcpqtyunit" style="text-align:left; "/>
  355. <col ref="prcpdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  356. <col ref="prcpidnm" style="text-align:center; "/>
  357. <col ref="drugdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  358. <col ref="drugidnm" visibility="hidden" style="text-align:center; "/>
  359. <col ref="delivedt" visibility="hidden" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  360. <col ref="deliveidnm" style="text-align:center; "/>
  361. <col ref="acptdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  362. <col ref="acptidnm" style="text-align:center; "/>
  363. <col ref="rtnappdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  364. <col ref="rtnappidnm" style="text-align:center; "/>
  365. <col ref="rtndt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  366. <col ref="rtnidnm" style="text-align:center; "/>
  367. <col ref="rtncnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  368. <col ref="rtncnfmidnm" style="text-align:center; "/>
  369. <col ref="rtnresn"/>
  370. <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  371. <col ref="spreidnm" style="text-align:center; "/>
  372. <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  373. <col ref="sprecnfmidnm" style="text-align:center; "/>
  374. <col ref="prcpno" visibility="hidden"/>
  375. <col ref="prcphistno" visibility="hidden"/>
  376. <col ref="drugdd" visibility="hidden"/>
  377. <col ref="drugno" visibility="hidden"/>
  378. <col ref="ioflag" visibility="hidden"/>
  379. <col ref="instcd" visibility="hidden"/>
  380. <col ref="narcflag" visibility="hidden"/>
  381. <col ref="prntflag" visibility="hidden"/>
  382. <col ref="orddd" visibility="hidden"/>
  383. <col ref="orddeptcd" visibility="hidden"/>
  384. <col ref="prcpgenrflag" visibility="hidden"/>
  385. <script type="javascript" ev:event="ondblclick">
  386. <![CDATA[
  387. if(grd_narclist.iscell(event.target) ){
  388. model.setValue("/root/temp/srchinfo/pid",model.getValue("/root/main/narclist/narclist["+grd_narclist.row+"]/pid"));
  389. //model.refresh();
  390. fGetNarcData();
  391. //환자별 조회라면 체크 표시
  392. fChkPatSearch(grd_narclist);
  393. }
  394. ]]>
  395. </script>
  396. </datagrid>
  397. </case>
  398. <case id="case2">
  399. <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:1177px; height:440px; ">
  400. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  401. <col ref="narcstat" type="combo">
  402. <choices>
  403. <item>
  404. <label>미신청</label>
  405. <value>1</value>
  406. </item>
  407. <item>
  408. <label>불출신청</label>
  409. <value>2</value>
  410. </item>
  411. <item>
  412. <label>출력완료</label>
  413. <value>3</value>
  414. </item>
  415. <item>
  416. <label>조제완료</label>
  417. <value>4</value>
  418. </item>
  419. <item>
  420. <label>불출</label>
  421. <value>5</value>
  422. </item>
  423. <item>
  424. <label>부서확인</label>
  425. <value>6</value>
  426. </item>
  427. <item>
  428. <label>반납신청</label>
  429. <value>7</value>
  430. </item>
  431. <item>
  432. <label>반납확인</label>
  433. <value>8</value>
  434. </item>
  435. <item>
  436. <label>반환신청</label>
  437. <value>9</value>
  438. </item>
  439. <item>
  440. <label>반환확인</label>
  441. <value>0</value>
  442. </item>
  443. </choices>
  444. </col>
  445. <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
  446. <col ref="pid" style="text-align:center; "/>
  447. <col ref="patnm" style="text-align:center; "/>
  448. <col ref="prcpcd"/>
  449. <col ref="drugnm"/>
  450. <col ref="totdrugqty" style="text-align:right; "/>
  451. <col ref="prcpqtyunit" style="text-align:left; "/>
  452. <col ref="dayprcpqty" style="text-align:right; "/>
  453. <col ref="prcpqtyunit" style="text-align:left; "/>
  454. <col ref="prcpvol" style="text-align:right; "/>
  455. <col ref="prcpvolunit" style="text-align:left; "/>
  456. <col ref="prcptims" style="text-align:right; "/>
  457. <col ref="spreqty" style="text-align:right; "/>
  458. <col ref="prcpvolunit" style="text-align:left; "/>
  459. <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  460. <col ref="spreidnm" style="text-align:center; "/>
  461. <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  462. <col ref="sprecnfmidnm" style="text-align:center; "/>
  463. <col ref="prcpno" visibility="hidden"/>
  464. <col ref="prcphistno" visibility="hidden"/>
  465. <col ref="drugdd" visibility="hidden"/>
  466. <col ref="drugno" visibility="hidden"/>
  467. <col ref="ioflag" visibility="hidden"/>
  468. <col ref="instcd" visibility="hidden"/>
  469. <col ref="narcflag" visibility="hidden"/>
  470. <col ref="prntflag" visibility="hidden"/>
  471. <col ref="orddd" visibility="hidden"/>
  472. <col ref="orddeptcd" visibility="hidden"/>
  473. <col ref="prcpgenrflag" visibility="hidden"/>
  474. </datagrid>
  475. <object id="CommAX" clsid="{87A84390-EB86-424F-97B9-45E53A5EFE28}" style="left:270px; top:155px; width:45px; height:45px; "/>
  476. </case>
  477. <case id="case3">
  478. <datagrid id="grd_outnarc" nodeset="/root/main/narclist/narclist" class="datagrid2" autoresize="true" backcoloralternate="#f0f0f0" caption="^불출상태^반환상태^반납상태^약품&#xA;구분^투약번호^수행부서^처방일자^환자번호^환자명^약품코드^약품명^총량^총량^일수량^일수량^일용량^일용량^횟수^일수^잔량^잔량^반환횟수^반환횟수^반환용량^반환용량^조제일시^조제약사^투약일시^투약약사^수령일시^수령&#xA;담당자^부서확인&#xA;일시^부서확인&#xA;간호사^반환신청일시^반환신청&#xA;간호사^반환확인일시^반환확인&#xA;약사^반환사유^반납신청&#xA;일시^잔량반납신청&#xA;간호사^반납확인&#xA;일시^잔량반납확인&#xA;약사^prcpno^prcphistno^drugdd^drugno^ioflag^instcd^narcflag^prntflag^orddd^orddeptcd^prcpgenrflag^drugkind" colsep="^" colwidth="27, 65, 70, 70, 53, 50, 70, 80, 65, 61, 90, 150, 40, 35, 40, 35, 40, 35, 30, 30, 40, 35, 55, 35, 40, 35, 6, 70, 9, 69, 6, 70, 7, 70, 10, 70, 10, 70, 100, 6, 85, 7, 85, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1177px; height:440px; ">
  479. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  480. <col ref="narcstat" type="combo">
  481. <choices>
  482. <item>
  483. <label>미신청</label>
  484. <value>1</value>
  485. </item>
  486. <item>
  487. <label>불출신청</label>
  488. <value>2</value>
  489. </item>
  490. <item>
  491. <label>출력완료</label>
  492. <value>3</value>
  493. </item>
  494. <item>
  495. <label>조제완료</label>
  496. <value>4</value>
  497. </item>
  498. <item>
  499. <label>불출</label>
  500. <value>5</value>
  501. </item>
  502. <item>
  503. <label>부서확인</label>
  504. <value>6</value>
  505. </item>
  506. <item>
  507. <label>반납신청</label>
  508. <value>7</value>
  509. </item>
  510. <item>
  511. <label>반납확인</label>
  512. <value>8</value>
  513. </item>
  514. <item>
  515. <label>반환신청</label>
  516. <value>9</value>
  517. </item>
  518. <item>
  519. <label>반환확인</label>
  520. <value>0</value>
  521. </item>
  522. </choices>
  523. </col>
  524. <col ref="cnclstat" type="combo" style="text-align:center; ">
  525. <choices>
  526. <item>
  527. <label>-</label>
  528. <value/>
  529. </item>
  530. <item>
  531. <label>반환대상</label>
  532. <value>0</value>
  533. </item>
  534. <item>
  535. <label>반환신청</label>
  536. <value>1</value>
  537. </item>
  538. <item>
  539. <label>반환확인</label>
  540. <value>2</value>
  541. </item>
  542. <item>
  543. <label>반환종료</label>
  544. <value>7</value>
  545. </item>
  546. </choices>
  547. </col>
  548. <col ref="rtnstat" type="combo" style="text-align:center; ">
  549. <choices>
  550. <item>
  551. <label>-</label>
  552. <value/>
  553. </item>
  554. <item>
  555. <label>반납대상</label>
  556. <value>0</value>
  557. </item>
  558. <item>
  559. <label>반납신청</label>
  560. <value>1</value>
  561. </item>
  562. <item>
  563. <label>반납확인</label>
  564. <value>2</value>
  565. </item>
  566. </choices>
  567. </col>
  568. <col ref="drugkindnm" style="text-align:center; "/>
  569. <col ref="drugno" style="text-align:center; "/>
  570. <col ref="issdeptcdnm" style="text-align:center; "/>
  571. <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
  572. <col ref="pid" style="text-align:center; "/>
  573. <col ref="patnm" style="text-align:center; "/>
  574. <col ref="prcpcd"/>
  575. <col ref="drugnm"/>
  576. <col ref="totdrugqty" style="text-align:right; "/>
  577. <col ref="prcpqtyunit" style="text-align:left; "/>
  578. <col ref="dayprcpqty" style="text-align:right; "/>
  579. <col ref="prcpqtyunit" style="text-align:left; "/>
  580. <col ref="prcpvol" style="text-align:right; "/>
  581. <col ref="prcpvolunit" style="text-align:left; "/>
  582. <col ref="prcptims" style="text-align:right; "/>
  583. <col ref="prcpdayno" style="text-align:right; "/>
  584. <col ref="spreqty" style="text-align:right; "/>
  585. <col ref="prcpvolunit" style="text-align:left; "/>
  586. <col class="gridinput" ref="rtnqty" type="input" style="text-align:right; "/>
  587. <col ref="rtnunit" style="text-align:center; "/>
  588. <col ref="returnqty" style="text-align:right; "/>
  589. <col ref="prcpvolunit" style="text-align:left; "/>
  590. <col ref="prcpdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  591. <col ref="prcpidnm" style="text-align:center; "/>
  592. <col ref="drugdt" visibility="hidden" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  593. <col ref="drugidnm" visibility="hidden" style="text-align:center; "/>
  594. <col ref="delivedt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  595. <col ref="deliveidnm" style="text-align:center; "/>
  596. <col ref="acptdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  597. <col ref="acptidnm" style="text-align:center; "/>
  598. <col ref="rtnappdt" visibility="visible" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  599. <col ref="rtnappidnm" visibility="visible" style="text-align:center; "/>
  600. <col ref="rtncnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  601. <col ref="rtncnfmidnm" style="text-align:center; "/>
  602. <col ref="rtnresn"/>
  603. <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  604. <col ref="spreidnm" style="text-align:center; "/>
  605. <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  606. <col ref="sprecnfmidnm" style="text-align:center; "/>
  607. <col ref="prcpno" visibility="hidden"/>
  608. <col ref="prcphistno" visibility="hidden"/>
  609. <col ref="drugdd" visibility="hidden"/>
  610. <col ref="drugno" visibility="hidden"/>
  611. <col ref="ioflag" visibility="hidden"/>
  612. <col ref="instcd" visibility="hidden"/>
  613. <col ref="narcflag" visibility="hidden"/>
  614. <col ref="prntflag" visibility="hidden"/>
  615. <col ref="orddd" visibility="hidden"/>
  616. <col ref="orddeptcd" visibility="hidden"/>
  617. <col ref="prcpgenrflag" visibility="hidden"/>
  618. <col ref="drugkind" visibility="hidden" style="text-align:center; "/>
  619. <script type="javascript" ev:event="xforms-value-changed">
  620. <![CDATA[
  621. fIptRtnCnts();
  622. ]]>
  623. </script>
  624. <script type="javascript" ev:event="ondblclick">
  625. <![CDATA[
  626. if(grd_outnarc.iscell(event.target) ){
  627. model.setValue("/root/temp/srchinfo/pid",model.getValue("/root/main/narclist/narclist["+grd_outnarc.row+"]/pid"));
  628. //model.refresh();
  629. fGetNarcData();
  630. //환자별 조회라면 체크 표시
  631. fChkPatSearch(grd_outnarc);
  632. }
  633. ]]>
  634. </script>
  635. </datagrid>
  636. </case>
  637. </switch>
  638. </group>
  639. <script type="javascript" ev:event="onkeyup">
  640. <![CDATA[
  641. var keyPressed = event.keyCode ;
  642. if(keyPressed == 27 || keyPressed == 81) // 'ESC' or 'Q' 키가 눌려진 경우
  643. {
  644. var answer = messageBox("마약불출 프로그램 종료를 ", "Q004") ;
  645. if(answer == 6)
  646. {
  647. group4.visible = true;
  648. group2.disabled = true;
  649. }
  650. }
  651. ]]>
  652. </script>
  653. <group id="group4" class="cell_1" visibility="hidden" style="left:450px; top:390px; width:235px; height:70px; border-color:#3366ff; border-style:solid; ">
  654. <caption id="caption6" class="tit_2" style="left:9px; top:13px; width:105px; height:14px; ">약제담당자 ID</caption>
  655. <input id="input3" ref="/root/temp/srchinfo/phamid" style="left:120px; top:9px; width:100px; height:19px; ">
  656. <script type="javascript" ev:event="onkeyup">
  657. <![CDATA[
  658. if(event.keyCode == "13") {
  659. setInputNodeCurText();
  660. fChgUserIDPharm();
  661. }
  662. ]]>
  663. </script>
  664. </input>
  665. <button id="button4" class="btn4_letter2" style="left:164px; top:34px; width:56px; height:22px; ">
  666. <caption>취소</caption>
  667. <script type="javascript" ev:event="DOMActivate">
  668. <![CDATA[
  669. group4.visible = false;
  670. group2.disabled = false;
  671. model.setFocus("input1");
  672. ]]>
  673. </script>
  674. </button>
  675. </group>
  676. <!-- (20091203) -->
  677. <script type="javascript" ev:event="onkeyup">
  678. <![CDATA[
  679. //F10로 화면 초기화
  680. if(event.keyCode == "121") {
  681. model.setValue("/root/temp/srchinfo/srchid",""); //담당자
  682. model.setValue("/root/temp/userinfo/userinfo/usernm", ""); //담자자명
  683. model.setValue("/root/temp/srchinfo/barcode",""); //바코드
  684. model.removeNodeset("/root/main/narclist/narclist"); //내역
  685. model.refresh();
  686. model.setFocus("input9");
  687. }
  688. ]]>
  689. </script>
  690. <!-- (20091119) -->
  691. </xhtml:body>
  692. </xhtml:html>