SMADT30400_간호마약향정처방관리.xrw 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>간호 마약/향정약 처방관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <narclist>
  11. <narclist>
  12. <sel/>
  13. <prnyn/>
  14. <roomcd/>
  15. <patnm/>
  16. <pid/>
  17. <narcstat/>
  18. <cnclstat/>
  19. <rtnstat/>
  20. <returnflag/>
  21. <returnqty/>
  22. <returnvol/>
  23. <drugrec/>
  24. <prcpdd/>
  25. <prcpcd/>
  26. <drugnm/>
  27. <prcpvol/>
  28. <dayprcpqty/>
  29. <pain/>
  30. <orddrnm/>
  31. <rtnprcpdt/>
  32. <rtnorddrnm/>
  33. <sumdt/>
  34. <reqdt/>
  35. <reqidnm/>
  36. <drugdt/>
  37. <drugidnm/>
  38. <delivedt/>
  39. <deliveidnm/>
  40. <acptdt/>
  41. <acptidnm/>
  42. <rtnappdt/>
  43. <rtnappidnm/>
  44. <rtncnfmdt/>
  45. <rtncnfmidnm/>
  46. <spreqty/>
  47. <sprevol/>
  48. <spredt/>
  49. <spreidnm/>
  50. <sprecnfmdt/>
  51. <sprecnfmidnm/>
  52. <drugdd/>
  53. <drugno/>
  54. <ioflag/>
  55. <prcpno/>
  56. <prcphistno/>
  57. <instcd/>
  58. <narcflag/>
  59. <orddd/>
  60. <ward/>
  61. <prcpgenrflag/>
  62. <prcpkindcd/>
  63. <issdeptcdnm/>
  64. <fstrgstdt/>
  65. </narclist>
  66. </narclist>
  67. </main>
  68. <send>
  69. <srchinfo/>
  70. <srchcond>
  71. <deptflag/>
  72. <wardcd/>
  73. </srchcond>
  74. <narcinfo>
  75. <srchinfo/>
  76. <narclist/>
  77. <userinfo/>
  78. </narcinfo>
  79. <userinfo>
  80. <userid/>
  81. </userinfo>
  82. <dutdeptinfo>
  83. <deptcd/>
  84. </dutdeptinfo>
  85. </send>
  86. <init>
  87. <execdeptlist>
  88. <dept>
  89. <deptcd/>
  90. <deptnm/>
  91. </dept>
  92. </execdeptlist>
  93. </init>
  94. <hidden>
  95. <narc_dept/>
  96. </hidden>
  97. <temp>
  98. <srchinfo>
  99. <narcflag>T</narcflag>
  100. <timeflag>2</timeflag>
  101. <fst_dd/>
  102. <last_dd/>
  103. <srchpid/>
  104. <srchward/>
  105. <srchroomcd/>
  106. <barcode/>
  107. <drugkind/>
  108. <srchioflag/>
  109. <mypat/>
  110. <narcstat>T</narcstat>
  111. <rtnflag/>
  112. <rtnendflag/>
  113. <rtnstat/>
  114. <cnclflag/>
  115. <cnclstat/>
  116. <srchroot/>
  117. <srchid/>
  118. <drugdeptcd/>
  119. <srchdrugdeptflag/>
  120. <srchpatnm/>
  121. <srchdutplcecd/>
  122. <srchdutplcenm/>
  123. <chkdutdept/>
  124. <chkprcpno/>
  125. <drugdeptnm/>
  126. <prtab/>
  127. <nodeliveflag/>
  128. <dschdrugyn/>
  129. <injectflag/>
  130. </srchinfo>
  131. <srchcond>
  132. <dept>
  133. <deptcd/>
  134. <deptnm/>
  135. </dept>
  136. </srchcond>
  137. <room>
  138. <room>
  139. <wardroomcdid/>
  140. <wardroomcdnm/>
  141. </room>
  142. </room>
  143. <userinfo>
  144. <userinfo>
  145. <userid/>
  146. <usernm/>
  147. <userdeptcd/>
  148. <userdeptnm/>
  149. </userinfo>
  150. </userinfo>
  151. <patinfo>
  152. <pid/>
  153. <hngnm/>
  154. </patinfo>
  155. <dutdeptinfo>
  156. <dept>
  157. <deptcd/>
  158. <deptnm/>
  159. </dept>
  160. </dutdeptinfo>
  161. <topinfo/>
  162. <chkcashinfo>
  163. <narclist/>
  164. </chkcashinfo>
  165. <drugdeptinfo>
  166. <dept>
  167. <deptcd/>
  168. <deptnm/>
  169. </dept>
  170. <checkdept>
  171. <deptnm/>
  172. <srchdrugdeptflag/>
  173. </checkdept>
  174. </drugdeptinfo>
  175. </temp>
  176. </root>
  177. </instance>
  178. <bind id="bind1" ref="/root/main/narclist/narclist/narcstat" readonly="../pid != ''"/>
  179. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  180. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  181. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  182. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  183. <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT30400.js"/>
  184. <script type="javascript" ev:event="xforms-ready">
  185. <![CDATA[
  186. fInit();
  187. ]]>
  188. </script>
  189. <submission id="TRADT30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/srchcond"/>
  190. <submission id="TRADT30402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/narclist"/>
  191. <submission id="TRADT30403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/temp/userinfo"/>
  192. <submission id="TRADT30404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchcond" replace="instance" resultref="/root/temp/room"/>
  193. <submission id="TRADT30405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutdeptinfo" replace="instance" resultref="/root/temp/dutdeptinfo"/>
  194. <submission id="TXADT30401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/narcinfo" replace="instance" resultref="/root/main/narclist"/>
  195. <submission id="TRADT30105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo"/>
  196. <bind id="bind2" ref="/root/main/narclist/narclist/cnclstat" readonly="../pid != ''"/>
  197. <bind id="bind3" ref="/root/main/narclist/narclist/rtnstat" readonly="../pid != ''"/>
  198. <submission id="TRADT30407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/init/execdeptlist"/>
  199. <submission id="TRADT30108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/rtnprntlist"/>
  200. </model>
  201. <script type="javascript">
  202. <![CDATA[
  203. /* @group : 간호마약향정처방관리 엑셀다운
  204. * @ver : 2008.10.09
  205. * @by :
  206. * @-----------------------------------
  207. * @type : function
  208. * @access : public
  209. * @desc : 엑셀 저장
  210. */
  211. function fExeSaveToExcel(){
  212. var fileName = window.fileDialog("save", ",", false, "간호마약향정처방관리"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  213. if (fileName != "")
  214. {
  215. grd_narclist.saveExcel(fileName);
  216. }
  217. }
  218. ]]>
  219. </script>
  220. </xhtml:head>
  221. <xhtml:body guideline="1,1194;" style="border-width:0; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  222. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  223. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">간호 마약/향정약 처방관리</caption>
  224. </group>
  225. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  226. <group id="group2" style="left:0px; top:0px; width:1195px; height:125px; ">
  227. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:120px; background-color:#fffbf2; border-color:#ffd799; "/>
  228. <input id="input8" ref="/root/temp/srchinfo/srchpid" class="input_search" autonext="false" maxlength="10" style="left:770px; top:96px; width:100px; height:19px; ">
  229. <script type="javascript" ev:event="xforms-value-changed">
  230. <![CDATA[
  231. if(model.getValue("/root/temp/srchinfo/srchpid") == ""){
  232. model.setValue("/root/temp/srchinfo/srchpatnm", "");
  233. model.refresh();
  234. }
  235. ]]>
  236. </script>
  237. <script type="javascript" ev:event="onkeyup">
  238. <![CDATA[
  239. if(event.keyCode == "13") {
  240. setInputNodeCurText();
  241. model.setValue("/root/temp/srchinfo/srchward", ""); //환자번호로 조회시 부서정보 null처리_20090509_SMY
  242. model.setValue("/root/temp/srchinfo/srchroomcd", ""); //환자번호로 조회시 병실정보 null처리_20090509_SMY
  243. fGetNarcData();
  244. }
  245. ]]>
  246. </script>
  247. </input>
  248. <input id="input9" ref="/root/temp/srchinfo/barcode" class="input_search" imemode="alpha" style="left:770px; top:36px; width:130px; height:19px; ">
  249. <script type="javascript" ev:event="onkeyup">
  250. <![CDATA[
  251. if(event.keyCode == "13") {
  252. input9.disabled=true;
  253. setInputNodeCurText();
  254. fChgBarcode();
  255. input9.disabled=false;
  256. model.setFocus("input9");
  257. }
  258. ]]>
  259. </script>
  260. </input>
  261. <line id="line13" class="line_4" style="x1:1120px; y1:5px; x2:1120px; y2:85px; border-color:#ffe4bb; border-left-style:solid; "/>
  262. <select1 id="combo2" ref="/root/temp/srchinfo/timeflag" class="combo_s_essential" appearance="minimal" style="left:110px; top:8px; width:100px; height:19px; ">
  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. </choices>
  285. <script type="javascript" ev:event="xforms-value-changed">
  286. <![CDATA[
  287. if(combo2.value == "5") {
  288. checkbox1.value = "Y";
  289. checkbox1.dispatch("xforms-value-changed");
  290. }
  291. ]]>
  292. </script>
  293. </select1>
  294. <button id="button61" class="icon_search" visibility="hidden" style="left:1070px; top:95px; width:16px; height:16px; ">
  295. <caption/>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/temp/patinfo", "/root/send");
  299. model.setValue("/root/temp/srchinfo/pid" ,model.getValue("/root/temp/patinfo/pid"));
  300. model.setValue("/root/temp/srchinfo/patnm",model.getValue("/root/temp/patinfo/hngnm"));
  301. ]]>
  302. </script>
  303. </button>
  304. <caption id="caption4" style="left:335px; top:8px; width:20px; height:20px; vertical-align:middle; ">~</caption>
  305. <select1 id="rdo_narcflag" ref="/root/temp/srchinfo/narcflag" class="radio_search" visibility="visible" appearance="full" cols="3" rows="1" overflow="visible" style="left:965px; top:40px; width:135px; height:20px; border-style:none; ">
  306. <choices>
  307. <item>
  308. <label>전체</label>
  309. <value>T</value>
  310. </item>
  311. <item>
  312. <label>마약</label>
  313. <value>M</value>
  314. </item>
  315. <item>
  316. <label>향정</label>
  317. <value>H</value>
  318. </item>
  319. </choices>
  320. <script type="javascript" ev:event="xforms-value-changed">
  321. <![CDATA[
  322. //fBtnDisable();
  323. if(model.getValue("/root/temp/srchinfo/narcflag") == "H") {
  324. chk_nodelive.visible = true;
  325. chk_rtnendflag.visible = false;
  326. if(model.getValue("/root/temp/srchinfo/srchioflag") == "O") {
  327. combo2.select(2);//향정외래일때 실시일자
  328. } else {
  329. combo2.select(1); //그외 적용일자
  330. }
  331. }else {
  332. chk_nodelive.visible = false;
  333. chk_rtnendflag.visible = true;
  334. combo2.select(1); //그외 적용일자
  335. }
  336. ]]>
  337. </script>
  338. </select1>
  339. <caption id="caption7" class="search_name" style="left:671px; top:37px; width:88px; height:17px; ">바 코 드 :</caption>
  340. <input id="input3" ref="/root/temp/srchinfo/last_dd" class="input_search" inputtype="date" style="left:350px; top:8px; width:100px; height:19px; "/>
  341. <line id="line4" class="line_2" style="x1:10px; y1:60px; x2:1115px; y2:60px; "/>
  342. <line id="line5" class="line_2" style="x1:10px; y1:30px; x2:1115px; y2:30px; "/>
  343. <caption id="caption9" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회구간 :</caption>
  344. <input id="input5" ref="/root/temp/srchinfo/fst_dd" class="input_search" inputtype="date" appearance="input" style="left:230px; top:8px; width:100px; height:19px; "/>
  345. <output id="output2" ref="/root/temp/srchinfo/srchpatnm" class="output_search" visibility="visible" style="left:875px; top:95px; width:75px; height:19px; "/>
  346. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:35px; width:56px; height:22px; ">
  347. <caption>조회</caption>
  348. <script type="javascript" ev:event="DOMActivate">
  349. <![CDATA[
  350. fGetNarcData();
  351. ]]>
  352. </script>
  353. </button>
  354. <caption id="caption8" class="search_name" style="left:15px; top:37px; width:90px; height:17px; ">상 태 :</caption>
  355. <caption id="caption2" class="search_name" style="left:671px; top:96px; width:86px; height:17px; ">등록번호 :</caption>
  356. <caption id="caption10" class="search_name" style="left:671px; top:66px; width:88px; height:17px; ">간 호 사 :</caption>
  357. <output id="output1" ref="/root/temp/userinfo/userinfo/usernm" class="output_search" style="left:875px; top:65px; width:75px; height:19px; "/>
  358. <output id="input1" ref="/root/temp/srchinfo/srchid" class="output_search" autonext="false" appearance="output" maxlength="10" style="left:770px; top:65px; width:100px; height:19px; ">
  359. <script type="javascript" ev:event="onkeyup">
  360. <![CDATA[
  361. if(event.keyCode == "13") {
  362. setInputNodeCurText();
  363. fChgUserID();
  364. }
  365. ]]>
  366. </script>
  367. </output>
  368. <script type="javascript" ev:event="onkeyup">
  369. <![CDATA[
  370. if (event.keyCode==123){
  371. radio4.visible=true;
  372. }
  373. ]]>
  374. </script>
  375. <select1 id="radio4" ref="/root/temp/srchinfo/srchioflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:770px; top:7px; width:110px; height:20px; border-style:none; ">
  376. <choices>
  377. <item>
  378. <label>외래</label>
  379. <value>O</value>
  380. </item>
  381. <item>
  382. <label>입원</label>
  383. <value>I</value>
  384. </item>
  385. </choices>
  386. <script type="javascript" ev:event="xforms-value-changed">
  387. <![CDATA[
  388. fChgIOFlag();
  389. fGetNarcData();
  390. ]]>
  391. </script>
  392. </select1>
  393. <switch id="switch2" style="left:15px; top:89px; width:640px; height:26px; border-color:#fffbf2; border-width:0; border-style:none; ">
  394. <case id="case3" selected="true" style="background-color:#fffbf2; border-color:#fffbf2; border-width:0; border-style:none; ">
  395. <select1 id="combo1" ref="/root/temp/srchinfo/srchward" appearance="minimal" cols="2" editmode="inputsearch" style="left:95px; top:5px; width:190px; height:19px; ">
  396. <choices>
  397. <itemset nodeset="/root/temp/srchcond/dept">
  398. <label ref="deptnm"/>
  399. <value ref="deptcd"/>
  400. </itemset>
  401. </choices>
  402. <script type="javascript" ev:event="xforms-value-changed">
  403. <![CDATA[
  404. fSrchRoomCD();
  405. ]]>
  406. </script>
  407. </select1>
  408. <select1 id="combo3" ref="/root/temp/srchinfo/srchroomcd" appearance="minimal" style="left:355px; top:5px; width:100px; height:19px; ">
  409. <choices>
  410. <itemset nodeset="/root/temp/room/room">
  411. <label ref="wardroomcdnm"/>
  412. <value ref="wardroomcdid"/>
  413. </itemset>
  414. </choices>
  415. <script type="javascript" ev:event="xforms-value-changed">
  416. <![CDATA[
  417. model.setValue("/root/temp/srchinfo/srchpid", "");
  418. model.setValue("/root/temp/srchinfo/srchpatnm", "");
  419. model.setValue("/root/temp/srchinfo/barcode", "");
  420. model.refresh();
  421. ]]>
  422. </script>
  423. </select1>
  424. <caption id="caption3" class="search_name" style="left:293px; top:7px; width:70px; height:17px; ">병실 :</caption>
  425. <caption id="caption6" class="search_name" style="left:0px; top:7px; width:90px; height:17px; ">부 서 :</caption>
  426. <caption id="cap_n003" ref="/root/temp/drugdeptinfo/checkdept/deptnm" style="left:478px; top:5px; width:160px; height:18px; ">소화기센터내시경실</caption>
  427. <select id="checkbox3" ref="/root/temp/srchinfo/srchdrugdeptflag" overflow="visible" appearance="full" style="left:460px; top:6px; width:135px; height:15px; border-style:none; ">
  428. <choices>
  429. <item>
  430. <label/>
  431. <value>Y</value>
  432. </item>
  433. </choices>
  434. </select>
  435. </case>
  436. <case id="case4" style="background-color:#fffbf2; border-color:#fffbf2; border-width:0; border-style:none; ">
  437. <caption id="caption1" class="search_name" style="left:0px; top:7px; width:90px; height:17px; ">부 서 :</caption>
  438. <select1 id="combo4" ref="/root/temp/srchinfo/srchdutplcecd" appearance="minimal" cols="2" editmode="inputsearch" showvalue="true" style="left:100px; top:5px; width:265px; height:19px; ">
  439. <choices>
  440. <itemset nodeset="/root/temp/dutdeptinfo/dept">
  441. <label ref="deptnm"/>
  442. <value ref="deptcd"/>
  443. </itemset>
  444. </choices>
  445. </select1>
  446. </case>
  447. </switch>
  448. <select1 id="rdo_drugkind" ref="/root/temp/srchinfo/drugkind" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:886px; top:8px; width:135px; height:20px; border-style:none; ">
  449. <choices>
  450. <item>
  451. <label>전체</label>
  452. <value>T</value>
  453. </item>
  454. <item>
  455. <label>약</label>
  456. <value>D</value>
  457. </item>
  458. <item>
  459. <label>주사</label>
  460. <value>I</value>
  461. </item>
  462. </choices>
  463. </select1>
  464. <caption id="caps_drugkind" class="search_name" style="left:671px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  465. <line id="line1" class="line_2" style="x1:10px; y1:90px; x2:1115px; y2:90px; "/>
  466. <select id="checkbox1" ref="/root/temp/srchinfo/cnclflag" overflow="visible" appearance="full" style="left:402px; top:37px; width:80px; height:20px; border-style:none; ">
  467. <choices>
  468. <item>
  469. <label>반환대상만</label>
  470. <value>Y</value>
  471. </item>
  472. </choices>
  473. <script type="javascript" ev:event="xforms-value-changed">
  474. <![CDATA[
  475. if(model.getValue("/root/temp/srchinfo/cnclflag") == "Y"){
  476. rdo_cncl.disabled = false;
  477. model.setValue("/root/temp/srchinfo/cnclstat", "T");
  478. // rdo_rtn.disabled = true;
  479. // model.setValue("/root/temp/srchinfo/rtnflag", "");
  480. // model.setValue("/root/temp/srchinfo/rtnstat", "");
  481. model.setValue("/root/temp/srchinfo/narcstat", "");
  482. } else {
  483. rdo_cncl.disabled =true;
  484. model.setValue("/root/temp/srchinfo/cnclstat", "");
  485. if(model.getValue("/root/temp/srchinfo/rtnflag") != "Y") {
  486. model.setValue("/root/temp/srchinfo/narcstat", "T");
  487. }
  488. }
  489. model.refresh();
  490. ]]>
  491. </script>
  492. </select>
  493. <select id="checkbox2" ref="/root/temp/srchinfo/rtnflag" overflow="visible" appearance="full" style="left:487px; top:37px; width:80px; height:20px; border-style:none; ">
  494. <choices>
  495. <item>
  496. <label>반납대상만</label>
  497. <value>Y</value>
  498. </item>
  499. </choices>
  500. <script type="javascript" ev:event="xforms-value-changed">
  501. <![CDATA[
  502. if(model.getValue("/root/temp/srchinfo/rtnflag") == "Y"){
  503. rdo_rtn.disabled = false;
  504. model.setValue("/root/temp/srchinfo/rtnstat", "T");
  505. // rdo_cncl.disabled = true;
  506. // model.setValue("/root/temp/srchinfo/cnclflag", "");
  507. // model.setValue("/root/temp/srchinfo/cnclstat", "");
  508. model.setValue("/root/temp/srchinfo/narcstat", "");
  509. } else {
  510. rdo_rtn.disabled =true;
  511. model.setValue("/root/temp/srchinfo/rtnstat", "");
  512. if(model.getValue("/root/temp/srchinfo/cnclflag") != "Y") {
  513. model.setValue("/root/temp/srchinfo/narcstat", "T");
  514. }
  515. }
  516. model.refresh();
  517. ]]>
  518. </script>
  519. </select>
  520. <select1 id="rdo_cncl" ref="/root/temp/srchinfo/cnclstat" appearance="full" cols="4" overflow="visible" style="left:110px; top:65px; width:260px; height:20px; border-style:none; ">
  521. <choices>
  522. <item>
  523. <label>전체</label>
  524. <value>T</value>
  525. </item>
  526. <item>
  527. <label>반환대상</label>
  528. <value>0</value>
  529. </item>
  530. <item>
  531. <label>반환신청</label>
  532. <value>1</value>
  533. </item>
  534. <item>
  535. <label>반환확인</label>
  536. <value>2</value>
  537. </item>
  538. </choices>
  539. </select1>
  540. <select1 id="rdo_rtn" ref="/root/temp/srchinfo/rtnstat" appearance="full" cols="4" overflow="visible" style="left:380px; top:65px; width:260px; height:20px; border-style:none; ">
  541. <choices>
  542. <item>
  543. <label>전체</label>
  544. <value>T</value>
  545. </item>
  546. <item>
  547. <label>반납대상</label>
  548. <value>0</value>
  549. </item>
  550. <item>
  551. <label>반납신청</label>
  552. <value>1</value>
  553. </item>
  554. <item>
  555. <label>반납확인</label>
  556. <value>2</value>
  557. </item>
  558. </choices>
  559. </select1>
  560. <select1 id="rdo_narc" ref="/root/temp/srchinfo/narcstat" appearance="full" cols="6" rows="1" overflow="visible" style="left:110px; top:37px; width:280px; height:20px; border-style:none; ">
  561. <choices>
  562. <item>
  563. <label>전체</label>
  564. <value>T</value>
  565. </item>
  566. <item>
  567. <label>미신청</label>
  568. <value>1</value>
  569. </item>
  570. <item>
  571. <label>불출신청</label>
  572. <value>2</value>
  573. </item>
  574. <item>
  575. <label>불출</label>
  576. <value>5</value>
  577. </item>
  578. <item>
  579. <label>부서확인</label>
  580. <value>6</value>
  581. </item>
  582. </choices>
  583. <script type="javascript" ev:event="xforms-value-changed">
  584. <![CDATA[
  585. model.setValue("/root/temp/srchinfo/cnclflag","");
  586. model.setValue("/root/temp/srchinfo/cnclstat","");
  587. model.setValue("/root/temp/srchinfo/rtnflag","");
  588. model.setValue("/root/temp/srchinfo/rtnstat","");
  589. rdo_cncl.disabled = true;
  590. rdo_rtn.disabled = true;
  591. if(model.getValue("/root/temp/srchinfo/narcstat") == "T"){
  592. chk_rtnendflag.disabled = false;
  593. }else{
  594. chk_rtnendflag.disabled = true;
  595. model.setValue("/root/temp/srchinfo/rtnendflag","");
  596. }
  597. model.refresh();
  598. ]]>
  599. </script>
  600. </select1>
  601. <output id="output3" ref="/root/temp/srchinfo/drugdeptnm" class="output_search" style="left:955px; top:65px; width:155px; height:19px; "/>
  602. <select id="chk_rtnendflag" ref="/root/temp/srchinfo/rtnendflag" visibility="hidden" overflow="visible" appearance="full" style="left:572px; top:37px; width:95px; height:20px; border-style:none; ">
  603. <choices>
  604. <item>
  605. <label>반환종료포함</label>
  606. <value>Y</value>
  607. </item>
  608. </choices>
  609. </select>
  610. <select id="chk_injectflag" ref="/root/temp/srchinfo/injectflag" visibility="hidden" overflow="visible" appearance="full" style="left:886px; top:8px; width:95px; height:20px; border-style:none; ">
  611. <choices>
  612. <item>
  613. <label>미투약</label>
  614. <value>Y</value>
  615. </item>
  616. </choices>
  617. </select>
  618. <select id="chk_nodelive" ref="/root/temp/srchinfo/nodeliveflag" visibility="hidden" overflow="visible" appearance="full" style="left:572px; top:37px; width:80px; height:20px; border-style:none; ">
  619. <choices>
  620. <item>
  621. <label>미불출만</label>
  622. <value>Y</value>
  623. </item>
  624. </choices>
  625. </select>
  626. <select id="chk_dschdrugyn" ref="/root/temp/srchinfo/dschdrugyn" overflow="visible" appearance="full" style="left:1090px; top:95px; width:100px; height:20px; border-style:none; ">
  627. <choices>
  628. <item>
  629. <label>퇴원마약포함</label>
  630. <value>Y</value>
  631. </item>
  632. </choices>
  633. </select>
  634. <select id="checkbox4" ref="/root/temp/srchinfo/mypat" overflow="visible" appearance="full" style="left:1000px; top:98px; width:60px; height:15px; border-style:none; ">
  635. <choices>
  636. <item>
  637. <label>내환자</label>
  638. <value>M</value>
  639. </item>
  640. </choices>
  641. </select>
  642. </group>
  643. <button id="btn_drug" class="btn5_letter4" style="left:882px; top:128px; width:64px; height:19px; ">
  644. <caption>불출신청</caption>
  645. <script type="javascript" ev:event="DOMActivate">
  646. <![CDATA[
  647. fNarcActing("drug");
  648. ]]>
  649. </script>
  650. </button>
  651. <button id="button1" class="btn5_letter4" style="left:1038px; top:128px; width:64px; height:19px; ">
  652. <caption>부서확인</caption>
  653. <script type="javascript" ev:event="DOMActivate">
  654. <![CDATA[
  655. fNarcActing("acpt");
  656. ]]>
  657. </script>
  658. </button>
  659. <button id="btn_drugcncl" class="btn5_letter6" style="left:949px; top:128px; width:86px; height:19px; ">
  660. <caption>불출신청취소</caption>
  661. <script type="javascript" ev:event="DOMActivate">
  662. <![CDATA[
  663. fNarcActing("drugcncl");
  664. ]]>
  665. </script>
  666. </button>
  667. <button id="button3" class="btn5_letter6" style="left:1105px; top:128px; width:86px; height:19px; ">
  668. <caption>반납/반환신청</caption>
  669. <script type="javascript" ev:event="DOMActivate">
  670. <![CDATA[
  671. fNarcActing("rtn");
  672. ]]>
  673. </script>
  674. </button>
  675. <button id="button4" class="btn5_letter4" visibility="hidden" style="left:740px; top:128px; width:64px; height:19px; ">
  676. <caption>반환신청</caption>
  677. <script type="javascript" ev:event="DOMActivate">
  678. <![CDATA[
  679. fNarcActing("rtn");
  680. ]]>
  681. </script>
  682. </button>
  683. <switch id="switch1" style="left:0px; top:150px; width:1193px; height:592px; ">
  684. <case id="case1" selected="true">
  685. <datagrid id="grd_narclist" nodeset="/root/main/narclist/narclist" class="datagrid2" backcoloralternate="#f0f0f0" caption="^PRN^D/C^병실^환자명^등록번호^불출상태^반환상태^잔량반납&#xA;상태^투약기록^적용일자^투약번호^수행부서^처방코드^처방명^1회 용량^1회 용량^1회 수량^1회 수량^횟수^일수^간호수행^간호수행^간호수행^간호수행^약제반환/반납^약제반환/반납^약제반환/반납^약제반환/반납^주증상^처방일시^처방의^투약일시^투약자^반환처방일시^반환의^불출신청일시^불출신청자^조제완료일시^조제약사^수령일시^수령담당자^부서확인일시^부서확인자^반환신청일시^반환신청자^반환확인일시^반환확인&#xA;약사^반납신청일시^반납신청자^반납확인일시^반납확인&#xA;약사^drugdd^drugno^ioflag^prcpno^prcphistno^instcd^narcflag^orddd^ward^prcpgenrflag^prcpkindcd^issdeptcdnm^fstrgstdt^drugseqno^erprcpflag^prcpdt^hospnm1^hospnm2^inclprcpcd^issdeptcd^rcissdeptcd^rcprcpexecdeptcd^rcwardcd^rcroomcd^hprntdt^deptchgyn^prcpgenrflag^prcpkindcd|^PRN^D/C^병실^환자명^등록번호^불출상태^반환상태^잔량반납&#xA;상태^투약기록^적용일자^투약번호^수행부서^처방코드^처방명^1회 용량^1회 용량^1회 수량^1회 수량^횟수^일수^잔량^잔량^반환량^반환량^잔량^잔량^반환량^반환량^주증상^처방일시^처방의^투약일시^투약자^반환처방일시^반환의^불출신청일시^불출신청자^조제완료일시^조제약사^수령일시^수령담당자^부서확인일시^부서확인자^반환신청일시^반환신청자^반환확인일시^반환확인&#xA;약사^반납신청일시^반납신청자^반납확인일시^반납확인&#xA;약사^drugdd^drugno^ioflag^prcpno^prcphistno^instcd^narcflag^orddd^ward^prcpgenrflag^prcpkindcd^issdeptcdnm^fstrgstdt^drugseqno^erprcpflag^prcpdt^hospnm1^hospnm2^inclprcpcd^issdeptcd^rcissdeptcd^rcprcpexecdeptcd^rcwardcd^rcroomcd^hprntdt^deptchgyn^prcpgenrflag^prcpkindcd" colsep="^" colwidth="26, 34, 30, 40, 47, 64, 60, 65, 65, 33, 70, 41, 70, 72, 139, 40, 30, 40, 30, 24, 24, 34, 28, 34, 27, 34, 30, 34, 30, 40, 100, 65, 100, 65, 100, 65, 100, 65, 100, 65, 100, 62, 100, 65, 100, 66, 100, 65, 100, 65, 100, 65, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sort" frozencols="13" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1190px; height:588px; ">
  686. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  687. <col ref="prnyn" style="text-align:center; "/>
  688. <col ref="dcyn" style="text-align:center; "/>
  689. <col ref="roomcd" style="text-align:center; "/>
  690. <col ref="patnm" style="text-align:center; "/>
  691. <col ref="pid" style="text-align:center; "/>
  692. <col ref="narcstat" type="combo" style="text-align:center; ">
  693. <choices>
  694. <item>
  695. <label>미신청</label>
  696. <value>1</value>
  697. </item>
  698. <item>
  699. <label>불출신청</label>
  700. <value>2</value>
  701. </item>
  702. <item>
  703. <label>출력완료</label>
  704. <value>3</value>
  705. </item>
  706. <item>
  707. <label>조제완료</label>
  708. <value>4</value>
  709. </item>
  710. <item>
  711. <label>불출</label>
  712. <value>5</value>
  713. </item>
  714. <item>
  715. <label>부서확인</label>
  716. <value>6</value>
  717. </item>
  718. </choices>
  719. </col>
  720. <col ref="cnclstat" type="combo" style="text-align:center; ">
  721. <choices>
  722. <item>
  723. <label>-</label>
  724. <value/>
  725. </item>
  726. <item>
  727. <label>반환대상</label>
  728. <value>0</value>
  729. </item>
  730. <item>
  731. <label>반환신청</label>
  732. <value>1</value>
  733. </item>
  734. <item>
  735. <label>반환확인</label>
  736. <value>2</value>
  737. </item>
  738. <item>
  739. <label>반환종료</label>
  740. <value>7</value>
  741. </item>
  742. <item>
  743. <label>미불출</label>
  744. <value>10</value>
  745. </item>
  746. </choices>
  747. </col>
  748. <col ref="rtnstat" type="combo" style="text-align:center; ">
  749. <choices>
  750. <item>
  751. <label>-</label>
  752. <value/>
  753. </item>
  754. <item>
  755. <label>잔량대상</label>
  756. <value>0</value>
  757. </item>
  758. <item>
  759. <label>잔량신청</label>
  760. <value>1</value>
  761. </item>
  762. <item>
  763. <label>잔량확인</label>
  764. <value>2</value>
  765. </item>
  766. <item>
  767. <label>미불출</label>
  768. <value>10</value>
  769. </item>
  770. </choices>
  771. </col>
  772. <col ref="drugrec" style="text-align:center; "/>
  773. <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
  774. <col ref="drugno" style="text-align:center; "/>
  775. <col ref="issdeptcdnm" style="text-align:center; "/>
  776. <col ref="prcpcd"/>
  777. <col ref="drugnm"/>
  778. <col ref="prcpvol" style="text-align:right; "/>
  779. <col ref="prcpvolunit" style="text-align:left; "/>
  780. <col ref="dayprcpqty" style="text-align:right; "/>
  781. <col ref="prcpqtyunit" style="text-align:left; "/>
  782. <col ref="prcptims" style="text-align:center; "/>
  783. <col ref="prcpdayno" style="text-align:center; "/>
  784. <col ref="sprevol" style="text-align:right; "/>
  785. <col ref="prcpvolunit" style="text-align:left; "/>
  786. <col ref="returnvol" style="text-align:right; "/>
  787. <col ref="prcpvolunit" style="text-align:left; "/>
  788. <col ref="spreqty" style="text-align:right; "/>
  789. <col ref="prcpvolunit" style="text-align:left; "/>
  790. <col ref="returnqty" style="text-align:right; "/>
  791. <col ref="prcpqtyunit" style="text-align:left; "/>
  792. <col ref="pain" style="text-align:center; "/>
  793. <col ref="fstrgstdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  794. <col ref="orddrnm" style="text-align:center; "/>
  795. <col ref="execdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  796. <col ref="execrnm" style="text-align:center; "/>
  797. <col ref="rtnprcpdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  798. <col ref="rtnorddrnm" style="text-align:center; "/>
  799. <col ref="reqdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  800. <col ref="reqidnm" style="text-align:center; "/>
  801. <col ref="drugdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  802. <col ref="drugidnm" style="text-align:center; "/>
  803. <col ref="delivedt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  804. <col ref="deliveidnm" style="text-align:center; "/>
  805. <col ref="acptdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  806. <col ref="acptidnm" style="text-align:center; "/>
  807. <col ref="rtnappdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  808. <col ref="rtnappidnm" style="text-align:center; "/>
  809. <col ref="rtncnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  810. <col ref="rtncnfmidnm" style="text-align:center; "/>
  811. <col ref="spredt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  812. <col ref="spreidnm" style="text-align:center; "/>
  813. <col ref="sprecnfmdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  814. <col ref="sprecnfmidnm" style="text-align:center; "/>
  815. <col ref="drugdd" visibility="hidden"/>
  816. <col ref="drugno" visibility="hidden"/>
  817. <col ref="ioflag" visibility="hidden"/>
  818. <col ref="prcpno" type="input" visibility="hidden"/>
  819. <col ref="prcphistno" visibility="hidden"/>
  820. <col ref="instcd" visibility="hidden"/>
  821. <col ref="narcflag" visibility="hidden"/>
  822. <col ref="orddd" visibility="hidden"/>
  823. <col ref="ward" visibility="hidden"/>
  824. <col ref="prcpgenrflag" visibility="hidden"/>
  825. <col ref="prcpkindcd" visibility="hidden"/>
  826. <col ref="issdeptcdnm" visibility="hidden"/>
  827. <col ref="fstrgstdt" visibility="hidden"/>
  828. <col ref="drugseqno" visibility="hidden"/>
  829. <col ref="erprcpflag" visibility="hidden"/>
  830. <col ref="prcpdt" visibility="hidden"/>
  831. <col ref="hospnm1" visibility="hidden"/>
  832. <col ref="hospnm2" visibility="hidden"/>
  833. <col ref="inclprcpcd" visibility="hidden"/>
  834. <col ref="issdeptcd" visibility="hidden"/>
  835. <col ref="rcissdeptcd" visibility="hidden"/>
  836. <col ref="rcprcpexecdeptcd" visibility="hidden"/>
  837. <col ref="rcwardcd" visibility="hidden"/>
  838. <col ref="rcroomcd" visibility="hidden"/>
  839. <col ref="hprntdt" visibility="hidden"/>
  840. <col ref="deptchgyn" visibility="hidden"/>
  841. <script type="javascript" ev:event="ondblclick">
  842. <![CDATA[
  843. // 더블클릭시 해당 환자의 정보만을 조회토록
  844. if(grd_narclist.iscell(event.target) ){
  845. model.setValue("/root/temp/srchinfo/srchpid",model.getValue("/root/main/narclist/narclist["+(grd_narclist.row-1)+"]/pid"));
  846. model.setValue("/root/temp/srchinfo/srchpatnm",model.getValue("/root/main/narclist/narclist["+(grd_narclist.row-1)+"]/patnm"));
  847. model.setValue("/root/temp/srchinfo/chkprcpno",model.getValue("/root/main/narclist/narclist["+(grd_narclist.row-1)+"]/prcpno"));
  848. //model.refresh();
  849. fGetNarcData();
  850. //환자별 조회라면 체크 표시
  851. fChkPatSearch();
  852. }
  853. ]]>
  854. </script>
  855. <script type="javascript" ev:event="onclick">
  856. <![CDATA[
  857. if ( grd_narclist.row ==0 ){
  858. for(var i=grd_narclist.fixedRows; i < grd_narclist.rows; i++){
  859. if ( grd_narclist.isReadOnly( i, grd_narclist.colRef("sel") )==true ) {
  860. model.setValue("/root/main/narclist/narclist["+(i-1)+"]/sel","N");
  861. }
  862. }
  863. model.refresh();
  864. }
  865. ]]>
  866. </script>
  867. <script type="javascript" ev:event="onaftersort">
  868. <![CDATA[
  869. grd_narclist.gridToInstance();
  870. ]]>
  871. </script>
  872. </datagrid>
  873. </case>
  874. </switch>
  875. <caption id="caption5" style="left:30px; top:130px; width:100px; height:20px; ">수술중 처방</caption>
  876. </group>
  877. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  878. <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:5px; width:64px; height:19px; ">
  879. <caption>엑셀저장</caption>
  880. <script type="javascript" ev:event="DOMActivate">
  881. <![CDATA[
  882. if (grd_narclist.rows>2) {
  883. fExeSaveToExcel();
  884. }
  885. ]]>
  886. </script>
  887. </button>
  888. <button id="btn_print" class="btn6_letter4" style="left:1042px; top:3px; width:80px; height:22px; ">
  889. <caption>출 력</caption>
  890. <script type="javascript" ev:event="DOMActivate">
  891. <![CDATA[
  892. if( grd_narclist.rows != 0){
  893. exeReportPreview("RPADT30400", "XMLSTR", "", "", "false","","","","","false");
  894. }
  895. ]]>
  896. </script>
  897. </button>
  898. <button id="button5" class="btn6_letter6" style="left:819px; top:3px; width:104px; height:22px; ">
  899. <caption>잔여마약관리</caption>
  900. <script type="javascript" ev:event="onclick">
  901. <![CDATA[
  902. modal("SMADT30200");
  903. ]]>
  904. </script>
  905. </button>
  906. <button id="button6" class="btn6_letter7" style="left:689px; top:3px; width:115px; height:22px; ">
  907. <caption>내시경마약관리</caption>
  908. <script type="javascript" ev:event="onclick">
  909. <![CDATA[
  910. open("SMADT30901");
  911. ]]>
  912. </script>
  913. </button>
  914. </group>
  915. <caption id="caption42" class="color_9" style="left:10px; top:145px; width:15px; height:15px; "/>
  916. <button id="button8" class="btn6_letter6" style="left:934px; top:760px; width:104px; height:22px; ">
  917. <caption>반환반납장부</caption>
  918. <script type="javascript" ev:event="DOMActivate">
  919. <![CDATA[
  920. model.makeValue("/root/send/srchcond/narcflag", model.getValue("/root/temp/srchinfo/narcflag"));
  921. model.makeValue("/root/temp/srchinfo/srchdeptcd", model.getValue("/root/temp/srchinfo/drugdeptcd"));
  922. model.makeValue("/root/temp/srchinfo/nodeliveflag", "");
  923. model.copyNode("/root/send/srchinfo","/root/temp/srchinfo");
  924. model.setValue("/root/send/srchinfo/cnclflag","Y");
  925. model.setValue("/root/send/srchinfo/cnclstat","T");
  926. model.setValue("/root/send/srchinfo/rtnflag","Y");
  927. model.setValue("/root/send/srchinfo/rtnstat","T");
  928. // model.setValue("/root/send/srchinfo/pid", "");
  929. // model.setValue("/root/send/srchinfo/srchdrugno", "");
  930. model.setValue("/root/send/srchinfo/narcstat", "");
  931. model.makeValue("/root/send/srchinfo/usernm", getUserName());
  932. //submit("TRADT30402");
  933. submit("TRADT30108");
  934. if(model.getValue("root/main/rtnprntlist/prntlist/pid") != "") {
  935. if ( model.getValue("/root/temp/srchinfo/narcflag") =="H"){
  936. exeReportPreview("RFADT30103", "XMLSTR", "", "", "true","","","","","true");
  937. } else {
  938. exeReportPreview("RFADT30101", "XMLSTR", "", "", "true","","","","","true");
  939. }
  940. }
  941. ]]>
  942. </script>
  943. </button>
  944. </xhtml:body>
  945. </xhtml:html>