SMADT30901_내시경실마약관리.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. <?xml version="1.0" encoding="UTF-8"?>
  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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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. <example>내시경실 마약관리</example>
  10. <send>
  11. <srchdata>
  12. <fstdd/>
  13. <lastdd/>
  14. <execdeptcd>2010302030</execdeptcd>
  15. <pid/>
  16. <gubun>A</gubun>
  17. </srchdata>
  18. <savedata>
  19. <bankdd/>
  20. <pid/>
  21. <drugdd/>
  22. <drugno/>
  23. <drugseqno/>
  24. <ioflag/>
  25. <bankid/>
  26. <bankresn/>
  27. <dataflag/>
  28. <bankiodd/>
  29. <prcpcd/>
  30. <drugnm/>
  31. </savedata>
  32. </send>
  33. <temp>
  34. <srchview>
  35. <sel/>
  36. <narcstat/>
  37. <prcpdd/>
  38. <drugno/>
  39. <pid/>
  40. <patnm/>
  41. <prcpcd/>
  42. <drugnm/>
  43. <totdrugqty/>
  44. <prcpqtyunit/>
  45. <dayprcpqty/>
  46. <prcpvol/>
  47. <prcpvolunit/>
  48. <prcptims/>
  49. <prcpqty/>
  50. <prcpdayno/>
  51. <bankinresn/>
  52. <bankoutresn/>
  53. <reqidnm/>
  54. <prcpidnm/>
  55. <drugidnm/>
  56. <deliveidnm/>
  57. <acptidnm/>
  58. <drugdt/>
  59. <delivedt/>
  60. <drugseqno/>
  61. <acptdt/>
  62. <drugflag/>
  63. <prcpno/>
  64. <prcphistno/>
  65. <drugdd/>
  66. <ioflag/>
  67. <narcflag/>
  68. <bankinid/>
  69. <bankindt/>
  70. <bankoutid/>
  71. <bankoutdt/>
  72. <orgprcpdd/>
  73. <engnm/>
  74. <prcpdt/>
  75. </srchview>
  76. <ret>
  77. <retdata/>
  78. </ret>
  79. <srchtong>
  80. <bankdd/>
  81. <drugcd/>
  82. <drugnm/>
  83. <cntall/>
  84. <cntin/>
  85. <cntout/>
  86. </srchtong>
  87. <workid>
  88. <cdnm/>
  89. <cdid/>
  90. </workid>
  91. <codetype>
  92. <code>NWOR</code>
  93. </codetype>
  94. <cmbworkid/>
  95. </temp>
  96. </root>
  97. </instance>
  98. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  102. <submission id="TRADT30991" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/srchview"/>
  103. <submission id="TRADT30992" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/srchtong"/>
  104. <submission id="TRADT30993" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/codetype" resultref="/root/temp/workid"/>
  105. <script type="javascript" ev:event="xforms-ready">
  106. <![CDATA[
  107. //조회날짜 초기화
  108. model.setValue("/root/send/srchdata/fstdd", getCurrentDate());
  109. model.setValue("/root/send/srchdata/lastdd", getCurrentDate());
  110. grd_narclist.fixedcellcheckbox(0,grd_narclist.colRef("sel")) = true;
  111. model.refresh();
  112. submit("TRADT30993");
  113. cmb_workid.select(0) ;
  114. model.refresh();
  115. ]]>
  116. </script>
  117. <submission id="TXADT30991" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp/ret/retdata"/>
  118. </model>
  119. </xhtml:head>
  120. <xhtml:body guideline="1,1194;2,785;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  121. <group id="group2" style="left:5px; top:25px; width:1184px; height:65px; font-weight:bold; ">
  122. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:560px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  123. <input id="input8" ref="/root/send/srchdata/pid" class="input_search" navindex="16" autonext="false" maxlength="10" style="left:105px; top:40px; width:100px; height:19px; ">
  124. <script type="javascript" ev:event="onkeyup">
  125. <![CDATA[
  126. if(event.keyCode == "13") {
  127. setInputNodeCurText();
  128. fGetNarcData();
  129. }
  130. ]]>
  131. </script>
  132. </input>
  133. <line id="line13" class="line_4" style="x1:475px; y1:3px; x2:475px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
  134. <caption id="caption2" class="search_name" style="left:10px; top:40px; width:86px; height:17px; ">환자번호 :</caption>
  135. <button id="button61" class="icon_search" navindex="17" style="left:210px; top:40px; width:16px; height:16px; ">
  136. <caption/>
  137. </button>
  138. <caption id="caption4" style="left:210px; top:8px; width:20px; height:20px; vertical-align:middle; ">~</caption>
  139. <input id="ipt_lastdd" ref="/root/send/srchdata/lastdd" class="input_search" navindex="3" inputtype="date" style="left:230px; top:8px; width:100px; height:19px; "/>
  140. <line id="line5" class="line_2" style="x1:6px; y1:32px; x2:336px; y2:32px; "/>
  141. <caption id="caption9" class="search_name" style="left:10px; top:8px; width:86px; height:17px; ">조회구간 :</caption>
  142. <input id="ipt_fstdd" ref="/root/send/srchdata/fstdd" class="input_search" navindex="2" inputtype="date" appearance="input" style="left:105px; top:8px; width:100px; height:19px; "/>
  143. <button id="btn_sea" class="btn1_letter2" navindex="27" style="left:490px; top:20px; width:56px; height:22px; ">
  144. <caption>조회</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. submit("TRADT30991");
  148. ]]>
  149. </script>
  150. </button>
  151. <button id="button1" class="btn4_letter4" style="left:780px; top:40px; width:80px; height:22px; ">
  152. <caption>입고승인</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. var Sbankdd = getCurrentDate() ;
  156. var Sbankid = cmb_workid.value; /// getUserId();
  157. for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
  158. var sel = model.getValue("/root/temp/srchview["+i+"]/sel");
  159. var Spid = model.getValue("/root/temp/srchview["+i+"]/pid");
  160. var Sdrugdd = model.getValue("/root/temp/srchview["+i+"]/drugdd");
  161. var Sdrugno = model.getValue("/root/temp/srchview["+i+"]/drugno");
  162. var Sioflag = model.getValue("/root/temp/srchview["+i+"]/ioflag");
  163. var Sdrugseqno = model.getValue("/root/temp/srchview["+i+"]/drugseqno");
  164. var Sbankinid = model.getValue("/root/temp/srchview["+i+"]/bankinid");
  165. var Sbankoutid = model.getValue("/root/temp/srchview["+i+"]/bankoutid");
  166. var Sprcpcd = model.getValue("/root/temp/srchview["+i+"]/prcpcd");
  167. var Sdrugnm = model.getValue("/root/temp/srchview["+i+"]/drugnm");
  168. if(sel == 'Y'){
  169. model.setValue("/root/send/savedata/dataflag", "I" );
  170. model.setValue("/root/send/savedata/bankdd", Sbankdd);
  171. model.setValue("/root/send/savedata/pid", Spid );
  172. model.setValue("/root/send/savedata/drugdd", Sdrugdd );
  173. model.setValue("/root/send/savedata/drugno", Sdrugno );
  174. model.setValue("/root/send/savedata/drugseqno", Sdrugseqno );
  175. model.setValue("/root/send/savedata/ioflag", Sioflag );
  176. model.setValue("/root/send/savedata/bankid", Sbankid );
  177. model.setValue("/root/send/savedata/bankiodd", Sbankdd );
  178. model.setValue("/root/send/savedata/prcpcd", Sprcpcd );
  179. model.setValue("/root/send/savedata/drugnm", Sdrugnm );
  180. model.refresh();
  181. submit("TXADT30991");
  182. }
  183. }
  184. btn_sea.dispatch("DOMActivate");
  185. ]]>
  186. </script>
  187. </button>
  188. <button id="button2" class="btn4_letter4" style="left:860px; top:40px; width:80px; height:22px; ">
  189. <caption>입고취소</caption>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. var Sbankdd = getCurrentDate() ;
  193. var Sbankid = cmb_workid.value; /// getUserId();
  194. for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
  195. var sel = model.getValue("/root/temp/srchview["+i+"]/sel");
  196. var Spid = model.getValue("/root/temp/srchview["+i+"]/pid");
  197. var Sdrugdd = model.getValue("/root/temp/srchview["+i+"]/drugdd");
  198. var Sdrugno = model.getValue("/root/temp/srchview["+i+"]/drugno");
  199. var Sioflag = model.getValue("/root/temp/srchview["+i+"]/ioflag");
  200. var Sdrugseqno = model.getValue("/root/temp/srchview["+i+"]/drugseqno");
  201. var Sbankinid = model.getValue("/root/temp/srchview["+i+"]/bankinid");
  202. var Sbankoutid = model.getValue("/root/temp/srchview["+i+"]/bankoutid");
  203. if(sel == 'Y'){
  204. model.setValue("/root/send/savedata/dataflag", "IC" );
  205. model.setValue("/root/send/savedata/bankdd", Sbankdd);
  206. model.setValue("/root/send/savedata/pid", Spid );
  207. model.setValue("/root/send/savedata/drugdd", Sdrugdd );
  208. model.setValue("/root/send/savedata/drugno", Sdrugno );
  209. model.setValue("/root/send/savedata/drugseqno", Sdrugseqno );
  210. model.setValue("/root/send/savedata/ioflag", Sioflag );
  211. model.setValue("/root/send/savedata/bankid", Sbankid );
  212. model.setValue("/root/send/savedata/bankiodd", Sbankdd );
  213. model.refresh();
  214. submit("TXADT30991");
  215. }
  216. }
  217. btn_sea.dispatch("DOMActivate");
  218. ]]>
  219. </script>
  220. </button>
  221. <button id="button3" class="btn4_letter4" style="left:940px; top:40px; width:80px; height:22px; ">
  222. <caption>출고승인</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. var Sbankdd = getCurrentDate() ;
  226. var Sbankid = cmb_workid.value; /// getUserId();
  227. for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
  228. var sel = model.getValue("/root/temp/srchview["+i+"]/sel");
  229. var Spid = model.getValue("/root/temp/srchview["+i+"]/pid");
  230. var Sdrugdd = model.getValue("/root/temp/srchview["+i+"]/drugdd");
  231. var Sdrugno = model.getValue("/root/temp/srchview["+i+"]/drugno");
  232. var Sioflag = model.getValue("/root/temp/srchview["+i+"]/ioflag");
  233. var Sdrugseqno = model.getValue("/root/temp/srchview["+i+"]/drugseqno");
  234. var Sbankinid = model.getValue("/root/temp/srchview["+i+"]/bankinid");
  235. var Sbankoutid = model.getValue("/root/temp/srchview["+i+"]/bankoutid");
  236. var Sprcpcd = model.getValue("/root/temp/srchview["+i+"]/prcpcd");
  237. var Sdrugnm = model.getValue("/root/temp/srchview["+i+"]/drugnm");
  238. if(sel == 'Y'){
  239. model.setValue("/root/send/savedata/dataflag", "O" );
  240. model.setValue("/root/send/savedata/bankdd", Sbankdd);
  241. model.setValue("/root/send/savedata/pid", Spid );
  242. model.setValue("/root/send/savedata/drugdd", Sdrugdd );
  243. model.setValue("/root/send/savedata/drugno", Sdrugno );
  244. model.setValue("/root/send/savedata/drugseqno", Sdrugseqno );
  245. model.setValue("/root/send/savedata/ioflag", Sioflag );
  246. model.setValue("/root/send/savedata/bankid", Sbankid );
  247. model.setValue("/root/send/savedata/bankiodd", Sbankdd );
  248. model.setValue("/root/send/savedata/prcpcd", Sprcpcd );
  249. model.setValue("/root/send/savedata/drugnm", Sdrugnm );
  250. model.refresh();
  251. submit("TXADT30991");
  252. }
  253. }
  254. btn_sea.dispatch("DOMActivate");
  255. ]]>
  256. </script>
  257. </button>
  258. <button id="button4" class="btn4_letter4" style="left:1020px; top:40px; width:80px; height:22px; ">
  259. <caption>출고취소</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. var Sbankdd = getCurrentDate() ;
  263. var Sbankid = cmb_workid.value; /// getUserId();
  264. for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
  265. var sel = model.getValue("/root/temp/srchview["+i+"]/sel");
  266. var Spid = model.getValue("/root/temp/srchview["+i+"]/pid");
  267. var Sdrugdd = model.getValue("/root/temp/srchview["+i+"]/drugdd");
  268. var Sdrugno = model.getValue("/root/temp/srchview["+i+"]/drugno");
  269. var Sioflag = model.getValue("/root/temp/srchview["+i+"]/ioflag");
  270. var Sdrugseqno = model.getValue("/root/temp/srchview["+i+"]/drugseqno");
  271. var Sbankinid = model.getValue("/root/temp/srchview["+i+"]/bankinid");
  272. var Sbankoutid = model.getValue("/root/temp/srchview["+i+"]/bankoutid");
  273. if(sel == 'Y'){
  274. model.setValue("/root/send/savedata/dataflag", "OC" );
  275. model.setValue("/root/send/savedata/bankdd", Sbankdd);
  276. model.setValue("/root/send/savedata/pid", Spid );
  277. model.setValue("/root/send/savedata/drugdd", Sdrugdd );
  278. model.setValue("/root/send/savedata/drugno", Sdrugno );
  279. model.setValue("/root/send/savedata/drugseqno", Sdrugseqno );
  280. model.setValue("/root/send/savedata/ioflag", Sioflag );
  281. model.setValue("/root/send/savedata/bankid", Sbankid );
  282. model.setValue("/root/send/savedata/bankiodd", Sbankdd );
  283. model.refresh();
  284. submit("TXADT30991");
  285. }
  286. }
  287. btn_sea.dispatch("DOMActivate");
  288. ]]>
  289. </script>
  290. </button>
  291. <button id="button5" class="btn1_letter2" navindex="27" style="left:1120px; top:40px; width:56px; height:22px; ">
  292. <caption>통계</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. submit("TRADT30992");
  296. exeReportPreview("RFADT30992", "XMLSTR", "", "", "false","","","","","false");
  297. ]]>
  298. </script>
  299. </button>
  300. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:595px; top:33px; width:170px; height:31px; background-color:#fffbf2; border-color:#ffd799; "/>
  301. <select1 id="cmb_workid" ref="/root/temp/cmbworkid" appearance="minimal" style="left:665px; top:40px; width:91px; height:19px; ">
  302. <choices>
  303. <itemset nodeset="/root/temp/workid">
  304. <label ref="cdnm"/>
  305. <value ref="cdid"/>
  306. </itemset>
  307. </choices>
  308. </select1>
  309. <caption id="caption1" style="left:595px; top:38px; width:61px; height:20px; text-align:right; ">업무자:</caption>
  310. <group id="group1" style="left:345px; top:5px; width:130px; height:56px; background-color:#fffbf2; ">
  311. <select1 id="radio1" ref="/root/send/srchdata/gubun" appearance="full" cellspacing="20" cols="2" rows="4" vcellspacing="11" overflow="visible" style="left:4px; top:1px; width:126px; height:54px; font-size:9pt; background-color:#fffbf2; border-style:none; ">
  312. <choices>
  313. <item>
  314. <label>외래</label>
  315. <value>Y</value>
  316. </item>
  317. <item>
  318. <label>입원</label>
  319. <value>I</value>
  320. </item>
  321. <item>
  322. <label>기타</label>
  323. <value>O</value>
  324. </item>
  325. <item>
  326. <label>전체</label>
  327. <value>A</value>
  328. </item>
  329. </choices>
  330. </select1>
  331. </group>
  332. </group>
  333. <caption id="caption19" class="tit_1" style="left:5px; top:0px; width:211px; height:13px; ">내시경실 마약관리</caption>
  334. <datagrid id="grd_narclist" nodeset="/root/temp/srchview" backcoloralternate="#f0f0f0" caption="^불출상태^처방일자^투약번호^환자번호^환자명^약품코드^약품명^총량^총량^1일수량^1일수량^1회용량^1회용량^횟수^일수^입고자^출고자^불출&#xA;신청자^조제&#xA;약사^투약&#xA;약사^수령&#xA;담당자^부서확인&#xA;간호사^간호투약&#xA;간호사^반환신청일시^반환신청&#xA;간호사^반환일시^반환&#xA;담당자^반환확인일시^반환확인&#xA;약사^반환사유^잔량반납&#xA;신청일시^잔량반납신청&#xA;간호사^잔량반납&#xA;확인일시^잔량반납확인&#xA;약사^prcpno^prcphistno^orddd^orddeptcd^prcpgenrflag^prntdt^caption1^반납반환&#xA;표시여부^투약기록&#xA;완료여부^간호&#xA;실시횟수^간호&#xA;반환횟수^투약x반환불가&#xA;횟수" colsep="^" colwidth="30, 58, 76, 55, 64, 71, 80, 193, 40, 34, 36, 33, 35, 28, 33, 30, 57, 56, 55, 47, 70, 70, 70, 70, 9, 70, 9, 70, 7, 70, 100, 100" explorerbar="sort" extendlastcol="scroll" frozencols="18" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="28" style="left:5px; top:96px; width:1181px; height:666px; ">
  335. <col checkvalue="Y,N" ref="sel" type="checkbox" style="left:20px; top:32px; width:30px; height:23px; "/>
  336. <col ref="narcstat" type="combo">
  337. <choices>
  338. <item>
  339. <label>미신청</label>
  340. <value>1</value>
  341. </item>
  342. <item>
  343. <label>불출신청</label>
  344. <value>2</value>
  345. </item>
  346. <item>
  347. <label>출력완료</label>
  348. <value>3</value>
  349. </item>
  350. <item>
  351. <label>조제완료</label>
  352. <value>4</value>
  353. </item>
  354. <item>
  355. <label>불출</label>
  356. <value>5</value>
  357. </item>
  358. <item>
  359. <label>부서확인</label>
  360. <value>6</value>
  361. </item>
  362. </choices>
  363. </col>
  364. <col ref="prcpdd" format="yyyy/mm/dd" style="text-align:center; "/>
  365. <col ref="drugno" style="text-align:center; "/>
  366. <col ref="pid" style="text-align:center; "/>
  367. <col ref="patnm" style="text-align:center; "/>
  368. <col ref="prcpcd"/>
  369. <col ref="drugnm"/>
  370. <col ref="totdrugqty" style="text-align:right; "/>
  371. <col ref="prcpqtyunit" style="text-align:left; "/>
  372. <col ref="dayprcpqty" style="text-align:right; "/>
  373. <col ref="prcpqtyunit" style="text-align:left; "/>
  374. <col ref="prcpvol" style="text-align:right; "/>
  375. <col ref="prcpvolunit" style="text-align:left; "/>
  376. <col ref="prcptims" style="text-align:right; "/>
  377. <col ref="prcpdayno" style="text-align:right; "/>
  378. <col ref="bankinresn" style="text-align:center; "/>
  379. <col ref="bankoutresn" style="text-align:center; "/>
  380. <col ref="reqidnm" style="text-align:center; "/>
  381. <col ref="prcpidnm" style="text-align:center; "/>
  382. <col ref="drugidnm" style="text-align:center; "/>
  383. <col ref="deliveidnm" style="text-align:center; "/>
  384. <col ref="acptidnm" style="text-align:center; "/>
  385. <col ref="drugdt" visibility="hidden" style="text-align:center; "/>
  386. <col ref="delivedt" style="text-align:center; "/>
  387. <col ref="drugseqno" style="text-align:center; "/>
  388. <col ref="acptdt" format="yyyy/mm/dd hh:nn" style="text-align:center; "/>
  389. <col ref="drugflag" style="text-align:center; "/>
  390. <col ref="prcpno" visibility="hidden" style="text-align:center; "/>
  391. <col ref="prcphistno" style="text-align:center; "/>
  392. <col ref="drugdd" style="text-align:left; "/>
  393. <col ref="prcpqty" style="text-align:right; "/>
  394. </datagrid>
  395. </xhtml:body>
  396. </xhtml:html>