SMADT50100_고가고주의고위험재고관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  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. <srchcond>
  11. <druglist>
  12. <drugcd/>
  13. <hngnm/>
  14. <cntsunit/>
  15. <bftotstocqty/>
  16. <bfinstocqty/>
  17. <bfoutstocqty/>
  18. <totwinqty/>
  19. <inwinqty/>
  20. <outwinqty/>
  21. <totsumqty/>
  22. <insumqty/>
  23. <outsumqty/>
  24. <totrtnqty/>
  25. <inrtnqty/>
  26. <outrtnqty/>
  27. <totstocqty/>
  28. <instocqty/>
  29. <outstocqty/>
  30. <realtotstocqty/>
  31. <realinstocqty/>
  32. <realoutstocqty/>
  33. <loanqty/>
  34. <corrqty/>
  35. <cmt/>
  36. <lastupdtrid/>
  37. <lastupdtdt/>
  38. </druglist>
  39. </srchcond>
  40. <prcplist>
  41. <item>
  42. <sel/>
  43. <prcpdd/>
  44. <pid/>
  45. <hngnm/>
  46. <sex/>
  47. <age/>
  48. <addr/>
  49. <diagcd/>
  50. <sympnm/>
  51. <ordqty/>
  52. <deliveqty/>
  53. <etccau/>
  54. <stocqty/>
  55. <seqno/>
  56. <narccd/>
  57. <narcnm/>
  58. <goodspec/>
  59. <specunit/>
  60. <custnm/>
  61. <brngfwrdqty/>
  62. <winqty/>
  63. </item>
  64. </prcplist>
  65. <printlist>
  66. <item>
  67. <narccd/>
  68. <narcnm/>
  69. <deliveqty/>
  70. <returnqty/>
  71. <bfstocqty/>
  72. <winqty/>
  73. </item>
  74. </printlist>
  75. <patinfo>
  76. <patinfolist/>
  77. </patinfo>
  78. </main>
  79. <send>
  80. <srchdata>
  81. <enddd/>
  82. <viewopt/>
  83. <ynall/>
  84. <initstocdd/>
  85. <initstocqty/>
  86. <expnyn/>
  87. <warnyn/>
  88. <dngryn/>
  89. <drugcd/>
  90. </srchdata>
  91. <data>
  92. <stocdata/>
  93. </data>
  94. </send>
  95. <init>
  96. <deptlist>
  97. <ward>
  98. <wardcd/>
  99. <wardnm/>
  100. </ward>
  101. </deptlist>
  102. </init>
  103. <hidden>
  104. <ret/>
  105. <popup>
  106. <prcp>
  107. <item>
  108. <name>시작재고 입력</name>
  109. <param>IS</param>
  110. </item>
  111. </prcp>
  112. </popup>
  113. </hidden>
  114. </root>
  115. </instance>
  116. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  120. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  121. <script type="javascript" src="../../../ast/pharmacystocweb/js/SMADT50100.js"/>
  122. <script type="javascript" ev:event="xforms-ready">
  123. <![CDATA[
  124. model.setValue("/root/send/srchdata/enddd", getCurrentDate());
  125. model.refresh();
  126. //submit("TRADT30701");
  127. ]]>
  128. </script>
  129. <submission id="TRADT50101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/srchcond"/>
  130. <submission id="TRADT50102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
  131. <submission id="TXADT30701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/ret"/>
  132. <!--마감시간구분 설정-->
  133. <submission id="TRADT10206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/init/sumtmflaglist"/>
  134. <script type="javascript">
  135. <![CDATA[
  136. function fStocChk(param) {
  137. if( param == "IS") {
  138. group4.visible = true;
  139. }
  140. }
  141. ]]>
  142. </script>
  143. <submission id="TXADT50101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  144. </model>
  145. </xhtml:head>
  146. <xhtml:body pagewidth="1200" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  147. <script type="javascript" ev:event="onmenu">
  148. <![CDATA[
  149. var popupParam = event.description;
  150. fStocChk(popupParam);
  151. ]]>
  152. </script>
  153. <group id="group1" style="left:0px; top:0px; width:240px; height:13px; ">
  154. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">고가/고주의/고위험 약품관리</caption>
  155. </group>
  156. <group id="group3" scroll="auto" style="left:0px; top:20px; width:1183px; height:744px; ">
  157. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:100px; top:390px; width:200px; height:23px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  158. <caption id="caption39" class="color_7" style="left:158px; top:395px; width:15px; height:15px; "/>
  159. <caption id="caption47" class="cell_2" style="left:105px; top:393px; width:45px; height:18px; vertical-align:middle; ">범 례</caption>
  160. <caption id="caption4" class="tit_2" style="left:0px; top:400px; width:100px; height:13px; ">처방내역</caption>
  161. <caption id="caption55" style="left:175px; top:395px; width:69px; height:14px; vertical-align:middle; ">반환의뢰</caption>
  162. <caption id="caption10" style="left:255px; top:395px; width:69px; height:14px; vertical-align:middle; ">교환약</caption>
  163. <caption id="caption30" class="color_9" style="left:235px; top:395px; width:15px; height:15px; vertical-align:middle; "/>
  164. <button id="button4" class="btn2_letter4" style="left:1110px; top:393px; width:64px; height:19px; ">
  165. <caption>엑셀저장</caption>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. if (grd_prcplist.rows>0) {
  169. var fileName = window.fileDialog("save", ",", false, "고가_고주의_고위험_약품재고_처방내역_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  170. if (fileName != "")
  171. {
  172. grd_prcplist.saveExcel(fileName);
  173. }
  174. }
  175. ]]>
  176. </script>
  177. </button>
  178. <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/item" class="datagrid2" autoresize="true" backcoloralternate="#f0f0f0" caption="I/O^등록번호^환자명^진료과^병실^투약번호^수량^횟수^일수^불출량^단위^조제보류^반환확인일시^집계부서^시행부서^발행부서^마감일시^출력일시^실시일자" colsep="^" colwidth="24, 56, 50, 81, 53, 56, 33, 34, 34, 44, 30, 32, 100, 90, 90, 90, 80, 80, 70" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" ref="/root/main/prcplist/item" style="left:0px; top:415px; width:1175px; height:325px; ">
  179. <col ref="ioflag" style="text-align:center; "/>
  180. <col ref="pid"/>
  181. <col ref="hngnm"/>
  182. <col ref="orddeptcdnm"/>
  183. <col ref="roomcd"/>
  184. <col ref="drugno"/>
  185. <col ref="prcpqty" style="text-align:right; "/>
  186. <col ref="prcptims" style="text-align:right; "/>
  187. <col ref="prcpdayno" style="text-align:right; "/>
  188. <col ref="sumqty" style="text-align:right; "/>
  189. <col ref="cntsunit"/>
  190. <col disabled="true" ref="nodrug" type="checkbox"/>
  191. <col ref="rtndt" format="yyyy-mm-dd hh:nn:ss"/>
  192. <col ref="sumdeptcdnm"/>
  193. <col ref="execdeptcdnm"/>
  194. <col ref="issdeptcdnm"/>
  195. <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
  196. <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss"/>
  197. <col ref="execdd" format="yyyy-mm-dd"/>
  198. </datagrid>
  199. <group id="group2" style="left:0px; top:0px; width:1180px; height:40px; ">
  200. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1175px; height:32px; background-color:#fffbf2; border-color:#ffd799; "/>
  201. <caption id="caption2" class="search_name" style="left:5px; top:10px; width:96px; height:17px; ">재고일자 :</caption>
  202. <button id="btn_sea" class="btn1_letter2" style="left:1110px; top:10px; width:56px; height:22px; ">
  203. <caption>조회</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. if(chk_expn.value == "" && chk_warn.value == "" && chk_dngr.value == "") {
  207. messageBox("구분을 하나이상 선택하세요" , "Z001");
  208. return;
  209. }
  210. model.removeNodeset("/root/main/srchcond/druglist");
  211. model.removeNodeset("/root/main/prcplist/item");
  212. submit("TRADT50101");
  213. fCalcQty();
  214. combo1.dispatch("xforms-value-changed");
  215. grd_druglist.colStyle(grd_druglist.colRef("realtotstocqty"), "data", "background-color") = "#fcd2c1";
  216. grd_druglist.colStyle(grd_druglist.colRef("realinstocqty"), "data", "background-color") = "#fcd2c1";
  217. grd_druglist.colStyle(grd_druglist.colRef("realoutstocqty"), "data", "background-color") = "#fcd2c1";
  218. grd_druglist.colStyle(grd_druglist.colRef("loanqty"), "data", "background-color") = "#fcd2c1";
  219. grd_druglist.colStyle(grd_druglist.colRef("corrqty"), "data", "background-color") = "#fcd2c1";
  220. grd_druglist.colStyle(grd_druglist.colRef("cmt"), "data", "background-color") = "#fcd2c1";
  221. ]]>
  222. </script>
  223. </button>
  224. <input id="input3" ref="/root/send/srchdata/enddd" class="input_search" inputtype="date" style="left:100px; top:10px; width:100px; height:19px; "/>
  225. <caption id="caption3" class="search_name" style="left:210px; top:11px; width:86px; height:17px; ">구분 :</caption>
  226. <select id="chk_warn" ref="/root/send/srchdata/warnyn" overflow="visible" appearance="full" cols="2" style="left:380px; top:10px; width:65px; height:20px; border-style:none; ">
  227. <choices>
  228. <item>
  229. <label>고주의</label>
  230. <value>Y</value>
  231. </item>
  232. </choices>
  233. <script type="javascript" ev:event="xforms-value-changed">
  234. <![CDATA[
  235. if(chk_warn.value == "" ) {
  236. model.setValue("/root/send/srchdata/ynall", "");
  237. }
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </select>
  242. <select id="chk_expn" ref="/root/send/srchdata/expnyn" overflow="visible" appearance="full" cols="2" style="left:325px; top:10px; width:50px; height:20px; border-style:none; ">
  243. <choices>
  244. <item>
  245. <label>고가</label>
  246. <value>Y</value>
  247. </item>
  248. </choices>
  249. <script type="javascript" ev:event="xforms-value-changed">
  250. <![CDATA[
  251. if(chk_expn.value == "" ) {
  252. model.setValue("/root/send/srchdata/ynall", "");
  253. }
  254. model.refresh();
  255. ]]>
  256. </script>
  257. </select>
  258. <select1 id="combo1" ref="/root/send/srchdata/viewopt" appearance="minimal" style="left:655px; top:10px; width:100px; height:19px; ">
  259. <choices>
  260. <item>
  261. <label/>
  262. <value/>
  263. </item>
  264. <item>
  265. <label>외래</label>
  266. <value>O</value>
  267. </item>
  268. <item>
  269. <label>병동</label>
  270. <value>I</value>
  271. </item>
  272. <item>
  273. <label>병동+외래</label>
  274. <value>A</value>
  275. </item>
  276. </choices>
  277. <script type="javascript" ev:event="xforms-value-changed">
  278. <![CDATA[
  279. var opt = model.getValue("/root/send/srchdata/viewopt");
  280. if(opt == "I") {
  281. grd_druglist.colhidden(grd_druglist.colRef("inbrngfwrdqty")) = false;
  282. grd_druglist.colhidden(grd_druglist.colRef("inwinqty")) = false;
  283. grd_druglist.colhidden(grd_druglist.colRef("insumqty")) = false;
  284. grd_druglist.colhidden(grd_druglist.colRef("instocqty")) = false;
  285. grd_druglist.colhidden(grd_druglist.colRef("inrtnqty")) = false;
  286. grd_druglist.colhidden(grd_druglist.colRef("realinstocqty")) = false;
  287. grd_druglist.colhidden(grd_druglist.colRef("outbrngfwrdqty")) = true;
  288. grd_druglist.colhidden(grd_druglist.colRef("outwinqty")) = true;
  289. grd_druglist.colhidden(grd_druglist.colRef("outsumqty")) = true;
  290. grd_druglist.colhidden(grd_druglist.colRef("outstocqty")) = true;
  291. grd_druglist.colhidden(grd_druglist.colRef("outrtnqty")) = true;
  292. grd_druglist.colhidden(grd_druglist.colRef("realoutstocqty")) = true;
  293. } else if (opt == "O") {
  294. grd_druglist.colhidden(grd_druglist.colRef("inbrngfwrdqty")) = true;
  295. grd_druglist.colhidden(grd_druglist.colRef("inwinqty")) = true;
  296. grd_druglist.colhidden(grd_druglist.colRef("insumqty")) = true;
  297. grd_druglist.colhidden(grd_druglist.colRef("instocqty")) = true;
  298. grd_druglist.colhidden(grd_druglist.colRef("inrtnqty")) = true;
  299. grd_druglist.colhidden(grd_druglist.colRef("realinstocqty")) = true;
  300. grd_druglist.colhidden(grd_druglist.colRef("outbrngfwrdqty")) = false;
  301. grd_druglist.colhidden(grd_druglist.colRef("outwinqty")) = false;
  302. grd_druglist.colhidden(grd_druglist.colRef("outsumqty")) = false;
  303. grd_druglist.colhidden(grd_druglist.colRef("outstocqty")) = false;
  304. grd_druglist.colhidden(grd_druglist.colRef("outrtnqty")) = false;
  305. grd_druglist.colhidden(grd_druglist.colRef("realoutstocqty")) = false;
  306. } else if (opt == "A") {
  307. grd_druglist.colhidden(grd_druglist.colRef("inbrngfwrdqty")) = false;
  308. grd_druglist.colhidden(grd_druglist.colRef("inwinqty")) = false;
  309. grd_druglist.colhidden(grd_druglist.colRef("insumqty")) = false;
  310. grd_druglist.colhidden(grd_druglist.colRef("instocqty")) = false;
  311. grd_druglist.colhidden(grd_druglist.colRef("inrtnqty")) = false;
  312. grd_druglist.colhidden(grd_druglist.colRef("realinstocqty")) = false;
  313. grd_druglist.colhidden(grd_druglist.colRef("outbrngfwrdqty")) = false;
  314. grd_druglist.colhidden(grd_druglist.colRef("outwinqty")) = false;
  315. grd_druglist.colhidden(grd_druglist.colRef("outsumqty")) = false;
  316. grd_druglist.colhidden(grd_druglist.colRef("outstocqty")) = false;
  317. grd_druglist.colhidden(grd_druglist.colRef("outrtnqty")) = false;
  318. grd_druglist.colhidden(grd_druglist.colRef("realoutstocqty")) = false;
  319. } else {
  320. grd_druglist.colhidden(grd_druglist.colRef("inbrngfwrdqty")) = true;
  321. grd_druglist.colhidden(grd_druglist.colRef("inwinqty")) = true;
  322. grd_druglist.colhidden(grd_druglist.colRef("insumqty")) = true;
  323. grd_druglist.colhidden(grd_druglist.colRef("instocqty")) = true;
  324. grd_druglist.colhidden(grd_druglist.colRef("inrtnqty")) = true;
  325. grd_druglist.colhidden(grd_druglist.colRef("realinstocqty")) = true;
  326. grd_druglist.colhidden(grd_druglist.colRef("outbrngfwrdqty")) = true;
  327. grd_druglist.colhidden(grd_druglist.colRef("outwinqty")) = true;
  328. grd_druglist.colhidden(grd_druglist.colRef("outsumqty")) = true;
  329. grd_druglist.colhidden(grd_druglist.colRef("outstocqty")) = true;
  330. grd_druglist.colhidden(grd_druglist.colRef("outrtnqty")) = true;
  331. grd_druglist.colhidden(grd_druglist.colRef("realoutstocqty")) = true;
  332. }
  333. ]]>
  334. </script>
  335. </select1>
  336. <caption id="caption5" class="search_name" style="left:565px; top:10px; width:86px; height:17px; ">추가옵션 :</caption>
  337. <select id="checkbox5" ref="/root/send/srchdata/ynall" overflow="visible" appearance="full" cols="2" style="left:270px; top:10px; width:50px; height:20px; border-style:none; ">
  338. <choices>
  339. <item>
  340. <label>전체</label>
  341. <value>Y</value>
  342. </item>
  343. </choices>
  344. <script type="javascript" ev:event="xforms-value-changed">
  345. <![CDATA[
  346. if(checkbox5.value == "") {
  347. model.setValue("/root/send/srchdata/expnyn", "");
  348. model.setValue("/root/send/srchdata/warnyn", "");
  349. model.setValue("/root/send/srchdata/dngryn", "");
  350. }else {
  351. model.setValue("/root/send/srchdata/expnyn", "Y");
  352. model.setValue("/root/send/srchdata/warnyn", "Y");
  353. model.setValue("/root/send/srchdata/dngryn", "Y");
  354. }
  355. model.refresh();
  356. ]]>
  357. </script>
  358. </select>
  359. <select id="chk_dngr" ref="/root/send/srchdata/dngryn" overflow="visible" appearance="full" cols="2" rows="1" style="left:450px; top:10px; width:65px; height:20px; border-style:none; ">
  360. <choices>
  361. <item>
  362. <label>고위험</label>
  363. <value>Y</value>
  364. </item>
  365. </choices>
  366. <script type="javascript" ev:event="xforms-value-changed">
  367. <![CDATA[
  368. if(chk_dngr.value == "" ) {
  369. model.setValue("/root/send/srchdata/ynall", "");
  370. }
  371. model.refresh();
  372. ]]>
  373. </script>
  374. </select>
  375. </group>
  376. <datagrid id="grd_druglist" nodeset="/root/main/srchcond/druglist" backcoloralternate="#f0f0f0" caption="약품코드^약품명^단위^전일재고^전일재고^전일재고^입고량^입고량^입고량^불출량^불출량^불출량^반환확인량^반환확인량^반환확인량^전산재고^전산재고^전산재고^실재고^실재고^실재고^고가내일^교환내일^차용^보정량^비고^최종수정자^최종수정일시|약품코드^약품명^단위^총재고^병동^외래^총입고^병동^외래^총불출^병동^외래^총반환^병동^외래^총전산재고^병동^외래^총실재고^병동^외래^고가내일^교환내일^차용^보정량^비고^최종수정자^최종수정일시" colsep="^" colwidth="92, 175, 34, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 73, 70, 70, 70, 70, 70, 70, 100, 68, 130" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="listbox" style="left:0px; top:65px; width:1175px; height:320px; ">
  377. <col ref="drugcd"/>
  378. <col ref="hngnm"/>
  379. <col ref="cntsunit"/>
  380. <col ref="bftotstocqty" format="####.99" maxlength="11" style="text-align:right; "/>
  381. <col ref="bfinstocqty" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  382. <col ref="bfoutstocqty" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  383. <col ref="totwinqty" format="####.99" maxlength="11" style="text-align:right; "/>
  384. <col ref="inwinqty" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  385. <col ref="outwinqty" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  386. <col ref="totsumqty" format="####.99" maxlength="11" style="text-align:right; "/>
  387. <col ref="insumqty" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  388. <col ref="outsumqty" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  389. <col ref="totrtnqty" format="####.99" style="text-align:right; "/>
  390. <col ref="inrtnqty" visibility="hidden" format="####.99" style="text-align:right; "/>
  391. <col ref="outrtnqty" visibility="hidden" format="####.99" style="text-align:right; "/>
  392. <col ref="totstocqty" format="####.99" maxlength="11" style="text-align:right; "/>
  393. <col ref="instocqty" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  394. <col ref="outstocqty" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  395. <col ref="realtotstocqty" type="input" format="####.99" style="text-align:right; "/>
  396. <col ref="realinstocqty" type="input" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  397. <col ref="realoutstocqty" type="input" visibility="hidden" format="####.99" maxlength="11" style="text-align:right; "/>
  398. <col ref="nextsumqty" format="####.99" maxlength="11" style="text-align:right; "/>
  399. <col format="####.99" style="text-align:right; "/>
  400. <col ref="loanqty" type="input" format="####.99" style="text-align:right; "/>
  401. <col ref="corrqty" type="input" format="(-1)####.99" style="text-align:right; "/>
  402. <col ref="cmt" type="input" style="text-align:right; "/>
  403. <col ref="lastupdtrid" style="text-align:right; "/>
  404. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:right; "/>
  405. <script type="javascript" ev:event="onendedit">
  406. <![CDATA[
  407. ]]>
  408. </script>
  409. <script type="javascript" ev:event="onmousedown">
  410. <![CDATA[
  411. //setPopupMenu("grd_druglist", true, "/root/hidden/popup/prcp/item", "name", "param");
  412. ]]>
  413. </script>
  414. <script type="javascript" ev:event="DOMFocusOut">
  415. <![CDATA[
  416. initPopupMenu();
  417. ]]>
  418. </script>
  419. <script type="javascript" ev:event="onclick">
  420. <![CDATA[
  421. if(isDataCell() && grd_druglist.col != grd_druglist.colRef("realtotstocqty") && grd_druglist.col != grd_druglist.colRef("realinstocqty")
  422. && grd_druglist.col != grd_druglist.colRef("realoutstocqty") && grd_druglist.col != grd_druglist.colRef("loanqty")
  423. && grd_druglist.col != grd_druglist.colRef("corrqty") && grd_druglist.col != grd_druglist.colRef("cmt") ) {
  424. var rowid = grd_druglist.row -1;
  425. model.setValue("/root/send/srchdata/drugcd", model.getValue("/root/main/srchcond/druglist[" + rowid + "]/drugcd"));
  426. submit("TRADT50102");
  427. }
  428. ]]>
  429. </script>
  430. </datagrid>
  431. <button id="btn_save" class="btn4_letter5" style="left:1080px; top:40px; width:92px; height:22px; ">
  432. <caption>일재고마감</caption>
  433. <script type="javascript" ev:event="DOMActivate">
  434. <![CDATA[
  435. var nodelist = instance1.selectNodes("/root/main/srchcond/druglist");
  436. var data = getNodeListCSV(nodelist);
  437. model.setValue("/root/send/data/stocdata", data);
  438. if(submit("TXADT50101")) {
  439. btn_sea.dispatch("DOMActivate");
  440. }
  441. ]]>
  442. </script>
  443. </button>
  444. <button id="btn_excel" class="btn2_letter4" style="left:1015px; top:42px; width:64px; height:19px; ">
  445. <caption>엑셀저장</caption>
  446. <script type="javascript" ev:event="DOMActivate">
  447. <![CDATA[
  448. if (grd_druglist.rows>0) {
  449. var fileName = window.fileDialog("save", ",", false, "고가_고주의_고위험_약품재고_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  450. if (fileName != "")
  451. {
  452. grd_druglist.saveExcel(fileName);
  453. }
  454. }
  455. ]]>
  456. </script>
  457. </button>
  458. <button id="btn_print" class="btn6_letter2" style="left:110px; top:40px; width:56px; height:22px; ">
  459. <caption>출력</caption>
  460. <script type="javascript" ev:event="DOMActivate">
  461. <![CDATA[
  462. if( grd_druglist.rows != 0){
  463. //exeReportPreview("RPADT30700", "XMLSTR", "", "", "false","","","","","false");
  464. }
  465. ]]>
  466. </script>
  467. </button>
  468. <button id="button3" class="btn3_letter6" navindex="18" visibility="visible" style="left:5px; top:40px; width:104px; height:22px; ">
  469. <caption>재고시간관리</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. //fSetEndTime();
  473. modal("SPADT64100");
  474. if(getParameter("SPADT64100_param") == "Y") {
  475. //model.makeValue("/root/send/sumlistinfo/prcpflag", "A");
  476. if(submit("TRADT10206")) {
  477. var idx = cmb_sumtmflag.value;
  478. var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/fromddflag");
  479. var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/fromtm");
  480. var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/toddflag");
  481. var totm = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/totm");
  482. model.setValue("/root/hidden/srchinfo/fromddflag", fromddflag);
  483. model.setValue("/root/hidden/srchinfo/fromtm", fromtm);
  484. model.setValue("/root/hidden/srchinfo/toddflag", toddflag);
  485. model.setValue("/root/hidden/srchinfo/totm", totm);
  486. model.refresh();
  487. }
  488. }
  489. ]]>
  490. </script>
  491. </button>
  492. <caption id="caption1" style="left:170px; top:45px; width:705px; height:20px; font-weight:bold; color:#ff0000; ">* 불출량 (마감, 집계, 교환약 불출수량/약국미불출과 특수조제 조제보류는 제외/마감이후 의사반환도 포함)</caption>
  493. <group id="group4" class="cell_1" visibility="hidden" style="left:465px; top:205px; width:235px; height:135px; border-color:#3366ff; border-style:solid; ">
  494. <input id="input1" ref="/root/send/srchdata/initstocdd" class="input_search" inputtype="date" style="left:121px; top:10px; width:100px; height:19px; ">
  495. <script type="javascript" ev:event="xforms-value-changed">
  496. <![CDATA[
  497. ]]>
  498. </script>
  499. </input>
  500. <caption id="caption6" class="tit_2" style="left:9px; top:13px; width:105px; height:13px; ">시작재고일자 :</caption>
  501. <caption id="caption7" class="tit_2" style="left:9px; top:37px; width:108px; height:13px; ">총재고량 :</caption>
  502. <input id="input2" ref="/root/send/srchdata/initstocqty" format="(-1)#,###" style="left:120px; top:34px; width:100px; height:19px; "/>
  503. <button id="button1" class="btn4_letter2" style="left:104px; top:109px; width:56px; height:22px; ">
  504. <caption>저장</caption>
  505. <script type="javascript" ev:event="DOMActivate">
  506. <![CDATA[
  507. ]]>
  508. </script>
  509. </button>
  510. <button id="button2" class="btn4_letter2" style="left:164px; top:109px; width:56px; height:22px; ">
  511. <caption>닫기</caption>
  512. <script type="javascript" ev:event="DOMActivate">
  513. <![CDATA[
  514. group4.visible = false;
  515. ]]>
  516. </script>
  517. </button>
  518. <input id="input4" ref="/root/send/srchdata/initstocqty" format="(-1)#,###" style="left:120px; top:59px; width:100px; height:19px; "/>
  519. <caption id="caption8" class="tit_2" style="left:9px; top:62px; width:100px; height:13px; ">병동재고량 :</caption>
  520. <caption id="caption9" class="tit_2" style="left:9px; top:89px; width:100px; height:13px; ">외래재고량 :</caption>
  521. <input id="input5" ref="/root/send/srchdata/initstocqty" format="(-1)#,###" style="left:120px; top:84px; width:100px; height:19px; "/>
  522. </group>
  523. <button id="button5" class="icon_top" style="left:958px; top:43px; width:26px; height:19px; ">
  524. <caption/>
  525. <script type="javascript" ev:event="DOMActivate">
  526. <![CDATA[
  527. grd_druglist.attribute("height") = 320;
  528. ]]>
  529. </script>
  530. </button>
  531. <button id="button6" class="icon_bottom" style="left:983px; top:43px; width:26px; height:19px; ">
  532. <caption/>
  533. <script type="javascript" ev:event="DOMActivate">
  534. <![CDATA[
  535. grd_druglist.attribute("height") = 670;
  536. ]]>
  537. </script>
  538. </button>
  539. </group>
  540. </xhtml:body>
  541. </xhtml:html>