SMADT10310_약국집계.xrw 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142
  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. <sumlist>
  11. <suminfo>
  12. <groupcd/>
  13. <prcpcd/>
  14. <prcpnm/>
  15. <sumqty/>
  16. </suminfo>
  17. </sumlist>
  18. <prcplist>
  19. <prcpinfo>
  20. <flag1/>
  21. <flag2/>
  22. <flag3/>
  23. <pid/>
  24. <hngnm/>
  25. <orddeptcd/>
  26. <wardcd/>
  27. <groupcd/>
  28. <prcpcd/>
  29. <prcpnm/>
  30. <prcpqty/>
  31. <prcptims/>
  32. <prcpdayno/>
  33. <totqty/>
  34. <drugno/>
  35. <execdt/>
  36. <drugsumdt/>
  37. <prcpno/>
  38. <prcpdd/>
  39. <rtndd/>
  40. </prcpinfo>
  41. </prcplist>
  42. <sumterm>
  43. <suminfo>
  44. <sumflag/>
  45. <sumdt/>
  46. <sumfromdd/>
  47. <sumfromtm/>
  48. <sumtodd/>
  49. <sumtotm/>
  50. <sumdeptnm/>
  51. <sumnm/>
  52. </suminfo>
  53. </sumterm>
  54. <detlprcplist>
  55. <detlprcpinfo>
  56. <ioflagnm/>
  57. <ioflag/>
  58. <prcpno/>
  59. <drugno/>
  60. <execdd/>
  61. <exectm/>
  62. <drugsumdt/>
  63. <execdeptnm/>
  64. <execdeptcd/>
  65. <issdeptcd/>
  66. <issdeptcdnm/>
  67. </detlprcpinfo>
  68. </detlprcplist>
  69. <barlist>
  70. <prcpinfo>
  71. <flag1/>
  72. <flag2/>
  73. <flag3/>
  74. <pid/>
  75. <hngnm/>
  76. <orddeptcd/>
  77. <wardcd/>
  78. <groupcd/>
  79. <prcpcd/>
  80. <prcpnm/>
  81. <prcpqty/>
  82. <prcptims/>
  83. <prcpdayno/>
  84. <totqty/>
  85. <drugno/>
  86. <execdt/>
  87. <drugsumdt/>
  88. <prcpno/>
  89. <prcpdd/>
  90. <rtndd/>
  91. </prcpinfo>
  92. </barlist>
  93. </main>
  94. <send>
  95. <srchdata>
  96. <deptflag/>
  97. <drugflag>1 2</drugflag>
  98. <prcpflag>1 2 3</prcpflag>
  99. <srchfromdd/>
  100. <srchfromtm>0000</srchfromtm>
  101. <srchtodd/>
  102. <srchtotm>2400</srchtotm>
  103. <srchprcpcd/>
  104. <udsflag>N</udsflag>
  105. <prcpkindcd>A</prcpkindcd>
  106. <sumdt/>
  107. <srchorddeptcd/>
  108. <srchorddeptflag/>
  109. <userid/>
  110. <instcd/>
  111. <srchdeptnm/>
  112. <stocdeptcd>3242107000</stocdeptcd>
  113. <pid/>
  114. <drugcd/>
  115. <sumflag/>
  116. <prcpno/>
  117. </srchdata>
  118. <deptdata>
  119. <deptinfo>
  120. <sumorddeptcd/>
  121. <sumorddeptflag/>
  122. </deptinfo>
  123. </deptdata>
  124. <srchdetlinfo>
  125. <srchpid/>
  126. <prcpno/>
  127. <prcpdd/>
  128. <orddeptflag/>
  129. </srchdetlinfo>
  130. <srchbcinfo>
  131. <srchdrugdd/>
  132. <srchdrugno/>
  133. <srchioflag/>
  134. <srchbcno1/>
  135. </srchbcinfo>
  136. </send>
  137. <init>
  138. <orddept>
  139. <dept>
  140. <chk/>
  141. <deptcd/>
  142. <depthngnm/>
  143. <orddeptflag/>
  144. </dept>
  145. </orddept>
  146. <sumorddept>
  147. <dept>
  148. <chk/>
  149. <deptcd/>
  150. <depthngnm/>
  151. <orddeptflag/>
  152. <sumkind/>
  153. </dept>
  154. </sumorddept>
  155. </init>
  156. <hidden>
  157. <popupmenu>
  158. <menu>
  159. <label>개별집계</label>
  160. <func>fIndCaseEnd</func>
  161. </menu>
  162. </popupmenu>
  163. <stocdeptlist>
  164. <deptlist>
  165. <stocdeptcd/>
  166. <stocdeptnm/>
  167. </deptlist>
  168. </stocdeptlist>
  169. </hidden>
  170. <temp>
  171. <ret/>
  172. <sumrslt>
  173. <sumdt/>
  174. </sumrslt>
  175. <prntinfo>
  176. <sumflagnm>주사</sumflagnm>
  177. <wardnm>외래주사실</wardnm>
  178. <sumfromdd>20070901</sumfromdd>
  179. <sumfromtm>0000</sumfromtm>
  180. <sumtodd>20070930</sumtodd>
  181. <sumtotm>2400</sumtotm>
  182. <sumflag/>
  183. <usetype/>
  184. <sumdt/>
  185. </prntinfo>
  186. <prntprcpinfo>
  187. <suminfo>
  188. <wardnm/>
  189. <prcpcd/>
  190. <prcpnm/>
  191. <prcpflag/>
  192. <sumqty/>
  193. <spcldurg/>
  194. <expninjyn/>
  195. <expnyn/>
  196. <keepmthdyn/>
  197. <keepmthd/>
  198. <divflag/>
  199. </suminfo>
  200. <sumtitle>
  201. <drugtype/>
  202. <drugcd/>
  203. <hngnm/>
  204. <sumqty/>
  205. <spcltype/>
  206. </sumtitle>
  207. <expnlist>
  208. <prcpdd/>
  209. <drugcd/>
  210. <drugnm/>
  211. <drugno/>
  212. <roomcd/>
  213. <orddeptnm/>
  214. <pid/>
  215. <hngnm/>
  216. <prcpqty/>
  217. <prcpdayno/>
  218. <sumqty/>
  219. </expnlist>
  220. </prntprcpinfo>
  221. <prntudsinfo>
  222. <injinfo>
  223. <roomcd/>
  224. <hngnm/>
  225. <pid/>
  226. <drugno/>
  227. <drugcd/>
  228. <prcpqty/>
  229. <prcptims/>
  230. <drugtype/>
  231. <prcpcd/>
  232. <sumqty/>
  233. </injinfo>
  234. <exuinfo>
  235. <roomcd/>
  236. <hngnm/>
  237. <pid/>
  238. <drugno/>
  239. <drugcd/>
  240. <prcpqty/>
  241. <prcptims/>
  242. <drugtype/>
  243. <prcpcd/>
  244. <sumqty/>
  245. </exuinfo>
  246. <ptpinfo>
  247. <roomcd/>
  248. <hngnm/>
  249. <pid/>
  250. <drugno/>
  251. <drugcd/>
  252. <prcpqty/>
  253. <prcptims/>
  254. <drugtype/>
  255. <prcpcd/>
  256. <sumqty/>
  257. </ptpinfo>
  258. </prntudsinfo>
  259. <prntpatprcp>
  260. <prcpdrug>
  261. <roomcd/>
  262. <hngnm/>
  263. <pid/>
  264. <rrgstno/>
  265. <sna/>
  266. <drugno/>
  267. <drugcd/>
  268. <prcpvol/>
  269. <prcpqty/>
  270. <prcptims/>
  271. <prcpkindcd/>
  272. <drughngnm/>
  273. <prcpdayno/>
  274. <mthdcnts/>
  275. </prcpdrug>
  276. </prntpatprcp>
  277. <srchdata>
  278. <deptflag/>
  279. <drugflag>1 2</drugflag>
  280. <prcpflag>1 2 3</prcpflag>
  281. <srchfromdd/>
  282. <srchfromtm>0000</srchfromtm>
  283. <srchtodd/>
  284. <srchtotm>2400</srchtotm>
  285. <srchprcpcd/>
  286. <udsflag>N</udsflag>
  287. <prcpkindcd>A</prcpkindcd>
  288. <sumdt/>
  289. <srchorddeptcd/>
  290. <srchorddeptflag/>
  291. <userid/>
  292. <instcd/>
  293. <srchdeptnm/>
  294. <stocdeptcd>3242107000</stocdeptcd>
  295. <pid/>
  296. <drugcd/>
  297. <sumflag/>
  298. </srchdata>
  299. </temp>
  300. </root>
  301. </instance>
  302. <script type="javascript" ev:event="xforms-ready">
  303. <![CDATA[
  304. grd_deptlist.fixedcellcheckbox(0,0) = true;
  305. model.setValue("/root/send/srchdata/srchfromdd", getCurrentDate());
  306. model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
  307. model.setValue("/root/temp/srchdata/srchfromdd", getCurrentDate());
  308. model.setValue("/root/temp/srchdata/srchtodd", getCurrentDate());
  309. model.refresh();
  310. submit("TRADT10304");
  311. // 20100203_laboru_불출부서 visibility 막기
  312. submit("TRADT00704");
  313. if(model.getValue("/root/hidden/stocdeptlist/deptlist/stocdeptcd") == "Y") {
  314. cmb_stocdeptcd.visible = false;
  315. caption21.visible = false;
  316. }
  317. ]]>
  318. </script>
  319. <script type="javascript">
  320. <![CDATA[
  321. //=========================================================================================================
  322. // 부서코드의 선택 여부를 판별
  323. // 선택사항이 없을때 : false, 선택사항이 있을때 : true
  324. //=========================================================================================================
  325. function fSelDeptchk(){
  326. for(var i =grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
  327. if(model.getValue("/root/init/orddept/dept["+i+"]/chk") == "Y") return true;
  328. }
  329. return false;
  330. }
  331. //=========================================================================================================
  332. // 선택환자 개별마감
  333. //=========================================================================================================
  334. function fIndCaseEnd(){
  335. for(var i =grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
  336. model.setValue("/root/init/orddept/dept["+i+"]/chk", "N");
  337. }
  338. var deptrow = grd_deptlist.selectedRow(0);
  339. model.setValue("/root/init/orddept/dept["+deptrow+"]/chk", "Y");
  340. var row = grd_prcplist.selectedRow(0);
  341. model.setValue("/root/send/srchdata/pid", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/pid"));
  342. model.setValue("/root/send/srchdata/prcpno", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpno"));
  343. model.refresh();
  344. btn_sum.dispatch("DOMActivate");
  345. }
  346. function fSelSum(){
  347. model.setValue("/root/temp/prntinfo/sumflag", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumflag"));
  348. model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
  349. model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
  350. model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
  351. model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
  352. model.setValue("/root/temp/prntinfo/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
  353. model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
  354. submit("TRADT10310");
  355. }
  356. ]]>
  357. </script>
  358. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  359. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  360. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  361. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  362. <submission id="TRADT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
  363. <submission id="TRADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
  364. <submission id="TRADT10303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
  365. <submission id="TRADT10304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/srchdata" replace="instance" resultref="/root/main/sumterm"/>
  366. <submission id="TRADT10310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/sumorddept"/>
  367. <submission id="TRADT10309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
  368. <submission id="TRADT10311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdetlinfo" replace="instance" resultref="/root/main/detlprcplist"/>
  369. <submission id="TRADT10312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntudsinfo"/>
  370. <submission id="TRADT10313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntpatprcp"/>
  371. <submission id="TRADT10314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
  372. <submission id="TXADT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/ret"/>
  373. <submission id="TXADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  374. <submission id="TXADT10313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  375. <submission id="TXADT10303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/sumrslt"/>
  376. <submission id="TRADT10316" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/barlist"/>
  377. <submission id="TRADT10317" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntpat"/>
  378. <submission id="TRADT00704" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/stocdeptlist"/>
  379. </model>
  380. </xhtml:head>
  381. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  382. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  383. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">
  384. <![CDATA[약국 집계]]>
  385. </caption>
  386. </group>
  387. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  388. <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/prcpinfo" allowselection="false" caption="구분^구분^구분^투약번호^병실^등록번호^환자명^진료과^병동^Group코드^처방코드^처방명^1일수량^횟수^일수^불출수량^실시일시^집계시간^처방번호^처방일자^반환일시^마감일시^출력일시" colsep="^" colwidth="45, 48, 46, 56, 53, 73, 45, 60, 41, 73, 90, 196, 49, 36, 33, 59, 130, 130, 100, 100, 100, 127, 137" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:215px; top:305px; width:979px; height:435px; ">
  389. <col ref="flag1"/>
  390. <col ref="flag2"/>
  391. <col ref="flag3"/>
  392. <col ref="drugno" style="text-align:center; "/>
  393. <col ref="roomcd" style="text-align:center; "/>
  394. <col ref="pid"/>
  395. <col ref="hngnm"/>
  396. <col ref="orddeptcd"/>
  397. <col ref="wardcd"/>
  398. <col ref="groupcd"/>
  399. <col ref="prcpcd"/>
  400. <col ref="prcpnm" style="left:650px; top:23px; width:196px; height:23px; "/>
  401. <col ref="prcpqty" style="left:725px; top:23px; width:49px; height:23px; text-align:right; "/>
  402. <col ref="prcptims"/>
  403. <col ref="prcpdayno" style="text-align:right; "/>
  404. <col ref="totqty" style="left:843px; top:23px; width:59px; height:23px; text-align:right; "/>
  405. <col ref="execdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  406. <col ref="drugsumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  407. <col ref="prcpno" visibility="hidden"/>
  408. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  409. <col ref="rtndd"/>
  410. <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  411. <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  412. <script type="javascript" ev:event="ondblclick">
  413. <![CDATA[
  414. if ( ! isDataCell() ) return;
  415. var row = grd_prcplist.selectedRow(0);
  416. model.setValue("/root/send/srchdetlinfo/srchpid", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/pid"));
  417. model.setValue("/root/send/srchdetlinfo/prcpno", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpno"));
  418. model.setValue("/root/send/srchdetlinfo/prcpdd", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpdd"));
  419. model.setValue("/root/send/srchdetlinfo/orddeptflag", model.getValue("/root/send/srchdata/srchorddeptflag"));
  420. submit("TRADT10311");
  421. group5.visible = true;
  422. model.refresh();
  423. ]]>
  424. </script>
  425. <script type="javascript" ev:event="onmousedown">
  426. <![CDATA[
  427. setPopupMenu("grd_prcplist", false, "/root/hidden/popupmenu/menu", "label", "func");
  428. ]]>
  429. </script>
  430. <script type="javascript" ev:event="DOMFocusOut">
  431. <![CDATA[
  432. initPopupMenu();
  433. ]]>
  434. </script>
  435. <script type="javascript" ev:event="onaftersort">
  436. <![CDATA[
  437. grd_prcplist.gridToInstance();
  438. ]]>
  439. </script>
  440. </datagrid>
  441. <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:1194px; y2:72px; "/>
  442. <datagrid id="grd_deptlist" nodeset="/root/init/orddept/dept" allowselection="false" caption="^코드^부서^구분" colsep="^" colwidth="25, 37, 144, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:105px; width:210px; height:635px; ">
  443. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  444. <col ref="deptcd" visibility="hidden"/>
  445. <col ref="depthngnm"/>
  446. <col ref="orddeptflag" visibility="hidden"/>
  447. <script type="javascript" ev:event="onclick">
  448. <![CDATA[
  449. if ( ! isDataCell() ) return;
  450. group5.visible = false;
  451. if ( grd_deptlist.col != grd_deptlist.colRef("chk")){
  452. model.removeNodeset("/root/main/prcplist/prcpinfo");
  453. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
  454. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
  455. submit("TRADT10302");
  456. }
  457. model.refresh();
  458. ]]>
  459. </script>
  460. <script type="javascript" ev:event="onaftersort">
  461. <![CDATA[
  462. // 소트 후 인스턴스 정리
  463. grd_deptlist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  464. ]]>
  465. </script>
  466. </datagrid>
  467. <datagrid id="grd_sumlist" nodeset="/root/main/sumlist/suminfo" caption="Group코드^처방코드^처방명^총불출수량" colsep="^" colwidth="87, 101, 210, 72" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:684px; top:80px; width:510px; height:220px; ">
  468. <col ref="groupcd"/>
  469. <col ref="prcpcd"/>
  470. <col ref="prcpnm"/>
  471. <col ref="sumqty" style="text-align:right; "/>
  472. <script type="javascript" ev:event="onclick">
  473. <![CDATA[
  474. if ( ! isDataCell() ) return;
  475. group5.visible = false;
  476. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
  477. submit("TRADT10303");
  478. model.refresh();
  479. ]]>
  480. </script>
  481. </datagrid>
  482. <datagrid id="grd_drugsum" nodeset="/root/main/sumterm/suminfo" autoresize="true" caption="집계구분^집계일시^집계구간^집계구간^집계구간^집계구간^집계부서^집계자" colsep="^" colwidth="121, 116, 68, 34, 68, 34, 400, 58" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:215px; top:105px; width:465px; height:195px; ">
  483. <col ref="sumflag"/>
  484. <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
  485. <col ref="sumfromdd" format="yyyy-mm-dd"/>
  486. <col ref="sumfromtm" format="hh:nn"/>
  487. <col ref="sumtodd" format="yyyy-mm-dd" style="left:339px; top:23px; width:68px; height:23px; "/>
  488. <col ref="sumtotm" format="hh:nn"/>
  489. <col ref="sumdeptnm"/>
  490. <col ref="sumnm"/>
  491. <script type="javascript" ev:event="onclick">
  492. <![CDATA[
  493. if ( ! isDataCell() ) return;
  494. fSelSum();
  495. /*
  496. function fSelSum(){
  497. model.setValue("/root/temp/prntinfo/sumflag", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumflag"));
  498. model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
  499. model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
  500. model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
  501. model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
  502. model.setValue("/root/temp/prntinfo/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
  503. model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
  504. submit("TRADT10310");
  505. }
  506. */
  507. /*
  508. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept[1]/deptcd"));
  509. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept[1]/orddeptflag"));
  510. submit("TRADT10305");
  511. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
  512. submit("TRADT10307");
  513. */
  514. ]]>
  515. </script>
  516. <script type="javascript" ev:event="onaftersort">
  517. <![CDATA[
  518. grd_drugsum.gridToInstance();
  519. ]]>
  520. </script>
  521. </datagrid>
  522. <caption id="caption3" class="search_name" style="left:5px; top:81px; width:63px; height:17px; ">부서명</caption>
  523. <input id="input3" ref="/root/send/srchdata/srchdeptnm" class="input_default" style="left:73px; top:81px; width:137px; height:19px; ">
  524. <script type="javascript" ev:event="onkeyup">
  525. <![CDATA[
  526. if(event.keyCode == "13") {
  527. setInputNodeCurText();
  528. btn_sea.dispatch("DOMActivate");
  529. submit("TRADT10301");
  530. }
  531. ]]>
  532. </script>
  533. </input>
  534. <group id="group6" visibility="hidden" style="left:230px; top:355px; width:935px; height:245px; ">
  535. <button id="button2" class="btn4_letter2" style="left:875px; top:220px; width:56px; height:22px; ">
  536. <caption>닫기</caption>
  537. <script type="javascript" ev:event="DOMActivate">
  538. <![CDATA[
  539. group6.visible = false;
  540. ]]>
  541. </script>
  542. </button>
  543. <datagrid id="datagrid2" nodeset="/root/main/barlist/prcpinfo" allowselection="false" caption="구분^구분^구분^투약번호^병실^등록번호^환자명^진료과^Group코드^처방코드^처방명^1일수량^횟수^일수^불출수량^실시일시^집계시간^처방번호^처방일자^반환일시^마감일시^출력일시" colsep="^" colwidth="42, 48, 46, 58, 43, 73, 45, 60, 73, 90, 196, 49, 36, 33, 59, 130, 130, 100, 100, 100, 129, 131" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:925px; height:210px; ">
  544. <col ref="flag1"/>
  545. <col ref="flag2"/>
  546. <col ref="flag3"/>
  547. <col ref="drugno"/>
  548. <col ref="roomcd"/>
  549. <col ref="pid"/>
  550. <col ref="hngnm"/>
  551. <col ref="orddeptcd"/>
  552. <col ref="groupcd"/>
  553. <col ref="prcpcd"/>
  554. <col ref="prcpnm"/>
  555. <col ref="prcpqty" style="left:725px; top:23px; width:49px; height:23px; text-align:right; "/>
  556. <col ref="prcptims"/>
  557. <col ref="prcpdayno" style="text-align:right; "/>
  558. <col ref="totqty" style="left:843px; top:23px; width:59px; height:23px; text-align:right; "/>
  559. <col ref="execdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  560. <col ref="drugsumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  561. <col ref="prcpno" visibility="hidden"/>
  562. <col ref="prcpdd" format="yyyy-mm-dd"/>
  563. <col ref="rtndd"/>
  564. <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
  565. <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss"/>
  566. <script type="javascript" ev:event="ondblclick">
  567. <![CDATA[
  568. if ( ! isDataCell() ) return;
  569. var row = grd_prcplist.selectedRow(0);
  570. model.setValue("/root/send/srchdetlinfo/srchpid", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/pid"));
  571. model.setValue("/root/send/srchdetlinfo/prcpno", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpno"));
  572. model.setValue("/root/send/srchdetlinfo/prcpdd", model.getValue("/root/main/prcplist/prcpinfo["+row+"]/prcpdd"));
  573. model.setValue("/root/send/srchdetlinfo/orddeptflag", model.getValue("/root/send/srchdata/srchorddeptflag"));
  574. submit("TRADT10311");
  575. group5.visible = true;
  576. model.refresh();
  577. ]]>
  578. </script>
  579. <script type="javascript" ev:event="onmousedown">
  580. <![CDATA[
  581. setPopupMenu("grd_prcplist", false, "/root/hidden/popupmenu/menu", "label", "func");
  582. ]]>
  583. </script>
  584. <script type="javascript" ev:event="DOMFocusOut">
  585. <![CDATA[
  586. initPopupMenu();
  587. ]]>
  588. </script>
  589. </datagrid>
  590. </group>
  591. <input id="input6" ref="/root/temp/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:487px; top:81px; width:90px; height:19px; ">
  592. <script type="javascript" ev:event="xforms-value-changed">
  593. <![CDATA[
  594. submit("TRADT10304");
  595. ]]>
  596. </script>
  597. </input>
  598. <input id="input7" ref="/root/temp/srchdata/srchtodd" class="input_default" inputtype="date" style="left:590px; top:81px; width:90px; height:19px; ">
  599. <script type="javascript" ev:event="xforms-value-changed">
  600. <![CDATA[
  601. submit("TRADT10304");
  602. ]]>
  603. </script>
  604. </input>
  605. <caption id="caption10" style="left:577px; top:82px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  606. <caption id="caption11" class="search_name" style="left:394px; top:81px; width:101px; height:17px; ">집계일자 :</caption>
  607. <group id="group5" visibility="hidden" style="left:290px; top:430px; width:790px; height:220px; ">
  608. <datagrid id="datagrid1" nodeset="/root/main/detlprcplist/detlprcpinfo" visibility="visible" scroll="auto" caption="구분^ioflag^처방번호^투약번호^병실^실시일자^실시시간^집계일시^집계부서^시행부서^발행부서^마감일시^출력일시" colsep="^" colwidth="40, 5, 3, 57, 51, 81, 71, 123, 121, 121, 121, 120, 138" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:790px; height:190px; ">
  609. <col ref="ioflagnm" style="text-align:center; "/>
  610. <col ref="ioflag" visibility="hidden"/>
  611. <col ref="prcpno" visibility="hidden" style="text-align:center; ">
  612. <![CDATA[/>]]>
  613. </col>
  614. <col ref="drugno" style="text-align:center; "/>
  615. <col ref="roomcd" style="text-align:center; "/>
  616. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  617. <col ref="exectm" format="hh:nn" style="text-align:center; "/>
  618. <col ref="drugsumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  619. <col ref="sumdeptnm" style="text-align:center; "/>
  620. <col ref="execdeptnm" style="text-align:center; "/>
  621. <col ref="issdeptcdnm" style="text-align:center; "/>
  622. <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  623. <col ref="prntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  624. </datagrid>
  625. <button id="button10" class="btn4_letter2" style="left:730px; top:195px; width:56px; height:22px; ">
  626. <caption>닫기</caption>
  627. <script type="javascript" ev:event="DOMActivate">
  628. <![CDATA[
  629. group5.visible = false;
  630. ]]>
  631. </script>
  632. </button>
  633. </group>
  634. </group>
  635. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  636. <button id="btn_prntsum" class="btn6_letter5" style="left:215px; top:5px; width:92px; height:22px; ">
  637. <caption>집계표출력</caption>
  638. <script type="javascript" ev:event="DOMActivate">
  639. <![CDATA[
  640. //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
  641. model.makeNode("/root/temp/prntprcpinfo/sumtitle");
  642. submit("TRADT10314"); // 집계구간내 향정,영양수액,고가 품목/집계량 조회
  643. if(model.getValue("/root/temp/prntprcpinfo/sumtitle/drugcd") != ""){
  644. for(var i = 0; i < 2; i++){
  645. if(i == 0){
  646. model.setValue("/root/temp/prntinfo/usetype", "<약제팀용>");
  647. }else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
  648. model.refresh();
  649. exeReportPreview("RPADT10306", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (향정신성 및 고가의약품 총집계량)
  650. if(getNodesetCount("/root/temp/prntprcpinfo/expnlist") > 0){
  651. exeReportPreview("RPADT10307", "XMLSTR", "", "", "true","","","","","true"); // 집계표 맨 앞장 (고가리스트)
  652. }
  653. }
  654. }
  655. for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
  656. if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk") == "Y"){
  657. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
  658. if(submit("TRADT10309")){ // 병동별 집계
  659. var item_cnt = getNodesetCount("/root/temp/prntprcpinfo/suminfo");
  660. model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/temp/prntprcpinfo/suminfo["+item_cnt+"]/wardnm"));
  661. //alert(item_cnt+". 전송병실 : " + model.getValue("/root/temp/prntinfo/wardnm")+ "\n집계된부서 : "+model.getValue("/root/temp/prntprcpinfo/suminfo["+(item_cnt)+"]/wardnm"));
  662. var div_cnt = 1;
  663. for(var j = 1; j <= item_cnt; j++){
  664. if((j-1) % 10 == 0){
  665. div_cnt ++;
  666. }
  667. if(model.getValue("/root/temp/prntprcpinfo/suminfo["+j+"]/keepmthdyn") == "Y"){
  668. model.setValue("/root/temp/prntprcpinfo/suminfo["+j+"]/divflag", div_cnt);
  669. }
  670. }
  671. for(var cnt = 0; cnt < 2; cnt++){
  672. if(cnt == 0){
  673. model.setValue("/root/temp/prntinfo/usetype", "<약제팀용>");
  674. }else model.setValue("/root/temp/prntinfo/usetype", "<병동용>");
  675. exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
  676. }
  677. }
  678. }
  679. }
  680. ]]>
  681. </script>
  682. </button>
  683. <button id="btn_sum" class="btn4_letter2" style="left:1055px; top:5px; width:56px; height:22px; ">
  684. <caption>집계</caption>
  685. <script type="javascript" ev:event="DOMActivate">
  686. <![CDATA[
  687. btn_sum.disabled =true;
  688. model.setValue("/root/send/srchbcinfo/srchdrugdd" ,"-");
  689. model.setValue("/root/send/srchbcinfo/srchdrugno" ,"0");
  690. model.setValue("/root/send/srchbcinfo/srchioflag" ,"");
  691. if ( messageBox("집계를 ","Q004")==6 ) {
  692. if(fSelDeptchk()){ // 집계할 부서 선택 여부를 판별
  693. model.setValue("/root/send/srchdata/sumdt",getCurrentDate()+ getCurrentTime());
  694. model.setValue("/root/send/srchdata/userid",getUserId());
  695. model.setValue("/root/send/srchdata/instcd","");
  696. model.setValue("/root/send/srchdata/srchprcpcd","");
  697. if(submit("TXADT10303")){ // 약품집계 마스터에 집계사항 저장
  698. for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
  699. if(model.getValue("/root/init/orddept/dept["+i+"]/chk") == "Y"){
  700. model.removeNodeset("/root/send/deptdata/deptinfo");
  701. //var irow = parseInt(getNodesetCount("/root/send/deptdata/deptinfo"))+1;
  702. model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptcd");
  703. model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptflag");
  704. model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptcd",model.getValue("/root/init/orddept/dept["+i+"]/deptcd"));
  705. model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptflag",model.getValue("/root/init/orddept/dept["+i+"]/orddeptflag"));
  706. model.refresh();
  707. submit("TXADT10301"); // 약품집계 처방상세 저장
  708. }
  709. }
  710. submit("TRADT10304");
  711. // 집계표 출력 대상 선택 start
  712. var sumdt = model.getValue("/root/temp/sumrslt/sumdt");
  713. var rowno = "";
  714. if(sumdt != ""){
  715. for(var i = grd_drugsum.fixedRows; i < grd_drugsum.rows; i++){
  716. if(model.getValue("/root/main/sumterm/suminfo["+i+"]/sumdt") == sumdt){
  717. break;
  718. }
  719. }
  720. }
  721. grd_drugsum.row = parseInt(i);
  722. // 집계표 출력 대상 선택 end
  723. var tmp = model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt");
  724. fSelSum(); // 집계표 출력값 설정
  725. btn_prntsum.dispatch("DOMActivate"); // [집계표 출력]
  726. }
  727. }else{
  728. messageBox("집계할 부서를","C002");
  729. }
  730. }
  731. model.setValue("/root/send/srchdata/pid","");
  732. model.setValue("/root/send/srchdata/drugcd","");
  733. model.refresh();
  734. btn_sum.disabled =false;
  735. ]]>
  736. </script>
  737. </button>
  738. <button id="button3" class="btn6_letter6" style="left:310px; top:5px; width:104px; height:22px; ">
  739. <caption>Fill List출력</caption>
  740. <script type="javascript" ev:event="DOMActivate">
  741. <![CDATA[
  742. for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
  743. if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
  744. //UDS로 집계된 사항만 Fill List로 출력 가능
  745. if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
  746. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
  747. model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
  748. submit("TRADT10312");
  749. if(model.getValue("/root/temp/prntudsinfo/injinfo/pid") != ""){
  750. exeReportPreview("RPADT10302", "XMLSTR", "", "", "false","","","","","false");
  751. }
  752. if(model.getValue("/root/temp/prntudsinfo/exuinfo/pid") != ""){
  753. exeReportPreview("RPADT10303", "XMLSTR", "", "", "false","","","","","false");
  754. }
  755. if(model.getValue("/root/temp/prntudsinfo/ptpinfo/pid") != ""){
  756. exeReportPreview("RPADT10304", "XMLSTR", "", "", "false","","","","","false");
  757. }
  758. }else{
  759. messageBox("UDS 집계항목을", "C002");
  760. break;
  761. }
  762. }
  763. }
  764. ]]>
  765. </script>
  766. </button>
  767. <button id="button4" class="btn3_letter6" style="left:105px; top:5px; width:104px; height:22px; ">
  768. <caption>집계현황조회</caption>
  769. <script type="javascript" ev:event="DOMActivate">
  770. <![CDATA[
  771. open("SMADT10300",0,20,150,"SMADT10300","","");
  772. ]]>
  773. </script>
  774. </button>
  775. <button id="button5" class="btn4_letter4" style="left:1115px; top:5px; width:80px; height:22px; ">
  776. <caption>집계취소</caption>
  777. <script type="javascript" ev:event="DOMActivate">
  778. <![CDATA[
  779. if ( model.getValue("/root/send/srchdata/sumdt") ==""){
  780. messageBox("취소할 집계 자료를 목록에서 ","C002");
  781. return;
  782. }
  783. if ( messageBox("집계취소를 ","Q004")==6 ) {
  784. submit("TXADT10302");
  785. submit("TRADT10304");
  786. }
  787. ]]>
  788. </script>
  789. </button>
  790. <button id="button6" class="btn6_letter6" style="left:417px; top:5px; width:104px; height:22px; ">
  791. <caption>환자별검수지</caption>
  792. <script type="javascript" ev:event="DOMActivate">
  793. <![CDATA[
  794. for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
  795. if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
  796. //UDS로 집계된 사항만 환자별검수지 출력 가능
  797. //if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
  798. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
  799. model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
  800. submit("TRADT10313");
  801. if(model.getValue("/root/temp/prntpatprcp/prcpdrug/pid") != ""){
  802. exeReportPreview("RPADT10305", "XMLSTR", "", "", "true","","","","","true");
  803. }
  804. /*
  805. }else{
  806. messageBox("UDS 집계항목을", "C002");
  807. break;
  808. }
  809. */
  810. }
  811. }
  812. ]]>
  813. </script>
  814. </button>
  815. <button id="button7" class="btn6_letter4" style="left:525px; top:5px; width:80px; height:22px; ">
  816. <caption>네임카드</caption>
  817. <script type="javascript" ev:event="DOMActivate">
  818. <![CDATA[
  819. for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
  820. if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
  821. //UDS로 집계된 사항만 네임카드 출력 가능
  822. //if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
  823. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
  824. model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+i+"]/depthngnm"));
  825. submit("TRADT10317");
  826. if(model.getValue("/root/temp/prntpatprcp/prcpdrug/pid") != ""){
  827. exeReportPreview("RPADT10305", "XMLSTR", "", "", "true","","","","","true");
  828. }
  829. /*
  830. }else{
  831. messageBox("UDS 집계항목을", "C002");
  832. break;
  833. }
  834. */
  835. }
  836. }
  837. ]]>
  838. </script>
  839. </button>
  840. <button id="button8" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
  841. <caption>수액집계조회</caption>
  842. <script type="javascript" ev:event="DOMActivate">
  843. <![CDATA[
  844. open("SMADT11000",0,20,150,"SMADT11000","","");
  845. ]]>
  846. </script>
  847. </button>
  848. <button id="button9" class="btn4_letter2" visibility="hidden" style="left:985px; top:5px; width:56px; height:22px; ">
  849. <caption>발주</caption>
  850. <script type="javascript" ev:event="DOMActivate">
  851. <![CDATA[
  852. model.setValue("/root/send/srchdata/sumdt",model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
  853. submit("TXADT10313");
  854. ]]>
  855. </script>
  856. </button>
  857. <select1 id="cmb_stocdeptcd" ref="/root/send/srchdata/stocdeptcd" class="combo_search" appearance="minimal" style="left:855px; top:5px; width:115px; height:19px; ">
  858. <choices>
  859. <item>
  860. <label>외래약국Unit</label>
  861. <value>3242106000</value>
  862. </item>
  863. <item>
  864. <label>병동약국Unit</label>
  865. <value>3242107000</value>
  866. </item>
  867. <item>
  868. <label>특수조제Unit</label>
  869. <value>3242104000</value>
  870. </item>
  871. </choices>
  872. </select1>
  873. <caption id="caption21" class="cell_1" style="left:785px; top:3px; width:67px; height:23px; vertical-align:middle; ">불출부서</caption>
  874. </group>
  875. <group id="group2" style="left:0px; top:40px; width:1195px; height:70px; ">
  876. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  877. <select id="chk_deptflag" ref="/root/send/srchdata/deptflag" class="checkbox_search" overflow="visible" appearance="full" cols="8" style="left:60px; top:11px; width:480px; height:20px; border-style:none; ">
  878. <choices>
  879. <item>
  880. <label>병동</label>
  881. <value>W</value>
  882. </item>
  883. <item>
  884. <label>응급실</label>
  885. <value>E</value>
  886. </item>
  887. <item>
  888. <label>수술실</label>
  889. <value>O</value>
  890. </item>
  891. <item>
  892. <label>주사실</label>
  893. <value>J</value>
  894. </item>
  895. <item>
  896. <label>집계부서</label>
  897. <value>X</value>
  898. </item>
  899. <item>
  900. <label>진료부서</label>
  901. <value>D</value>
  902. </item>
  903. <item>
  904. <label>복막투석실</label>
  905. <value>A</value>
  906. </item>
  907. <item>
  908. <label>건진</label>
  909. <value>S</value>
  910. </item>
  911. </choices>
  912. <script type="javascript" ev:event="xforms-value-changed">
  913. <![CDATA[
  914. // 진료과
  915. if(model.getValue("/root/send/srchdata/deptflag") != ""){
  916. if (model.getValue("/root/send/srchdata/deptflag").indexOf("W") >-1 ){
  917. rdo_prcp.visible=true;
  918. } else {
  919. rdo_prcp.visible=false;
  920. }
  921. var drugcd = model.getValue("/root/send/srchdata/drugcd");
  922. model.setValue("/root/send/srchdata/drugcd", drugcd.toUpperCase());
  923. submit("TRADT10301");
  924. }else{
  925. model.removeNodeset("/root/init/orddept");
  926. }
  927. model.refresh();
  928. ]]>
  929. </script>
  930. </select>
  931. <caption id="caption2" class="search_name" style="left:5px; top:11px; width:60px; height:17px; ">대상:</caption>
  932. <caption id="caption1" class="search_name" style="left:5px; top:36px; width:150px; height:17px; ">적용일자(실시일자) :</caption>
  933. <caption id="caption4" class="search_name" style="left:535px; top:10px; width:70px; height:17px; ">구분1:</caption>
  934. <caption id="caption5" class="search_name" style="left:795px; top:10px; width:70px; height:17px; ">구분2 :</caption>
  935. <input id="input1" ref="/root/send/srchdata/srchfromtm" class="input_search" visibility="hidden" format="hh:nn" style="left:590px; top:45px; width:45px; height:19px; "/>
  936. <input id="input2" ref="/root/send/srchdata/srchtotm" class="input_search" visibility="hidden" format="hh:nn" style="left:590px; top:25px; width:45px; height:19px; "/>
  937. <line id="line13" class="line_4" style="x1:1132px; y1:11px; x2:1132px; y2:59px; border-color:#ffe4bb; border-left-style:solid; "/>
  938. <button id="btn_sea" class="btn1_letter2" style="left:1135px; top:26px; width:56px; height:22px; ">
  939. <caption>조회</caption>
  940. <script type="javascript" ev:event="DOMActivate">
  941. <![CDATA[
  942. chk_deptflag.dispatch("xforms-value-changed");
  943. //submit("TRADT10304");
  944. ]]>
  945. </script>
  946. </button>
  947. <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:158px; top:36px; width:90px; height:19px; "/>
  948. <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:261px; top:36px; width:90px; height:19px; "/>
  949. <caption id="caption32" style="left:248px; top:36px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  950. <select1 id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" visibility="hidden" appearance="full" cellspacing="5" cols="6" overflow="visible" style="left:865px; top:10px; width:225px; height:20px; border-style:none; ">
  951. <choices>
  952. <item>
  953. <label>정규</label>
  954. <value>R</value>
  955. </item>
  956. <item>
  957. <label>추가</label>
  958. <value>A</value>
  959. </item>
  960. <item>
  961. <label>응급</label>
  962. <value>E</value>
  963. </item>
  964. <item>
  965. <label>Admission</label>
  966. <value>M</value>
  967. </item>
  968. </choices>
  969. <script type="javascript" ev:event="xforms-select">
  970. <![CDATA[
  971. submit("TRADT10302");
  972. ]]>
  973. </script>
  974. </select1>
  975. <select1 id="radio1" ref="/root/send/srchdata/udsflag" appearance="full" cols="1" rows="2" vcellspacing="8" overflow="visible" style="left:595px; top:7px; width:50px; height:50px; border-style:none; ">
  976. <choices>
  977. <item>
  978. <label>일반</label>
  979. <value>N</value>
  980. </item>
  981. <item>
  982. <label>UDS</label>
  983. <value>U</value>
  984. </item>
  985. </choices>
  986. <script type="javascript" ev:event="xforms-value-changed">
  987. <![CDATA[
  988. if(radio1.value == 'N'){
  989. chk_drugflag2.value = "";
  990. chk_drugflag1.value = "1 2";
  991. }else if(radio1.value == 'U'){
  992. chk_drugflag1.value = "";
  993. chk_drugflag2.value = "3 4 5";
  994. }
  995. submit("TRADT10302");
  996. model.refresh();
  997. ]]>
  998. </script>
  999. </select1>
  1000. <caption id="caption7" class="search_name" style="left:795px; top:36px; width:90px; height:17px; ">등록번호 :</caption>
  1001. <input id="input4" ref="/root/send/srchdata/pid" autonext="false" maxlength="10" format="9999999999" style="left:880px; top:36px; width:81px; height:19px; ">
  1002. <script type="javascript" ev:event="onkeydown">
  1003. <![CDATA[
  1004. inputEnterKey("chk_deptflag","xforms-value-changed");
  1005. ]]>
  1006. </script>
  1007. </input>
  1008. <caption id="caption8" class="search_name" style="left:965px; top:36px; width:90px; height:17px; ">약품코드 :</caption>
  1009. <input id="input5" ref="/root/send/srchdata/drugcd" style="left:1050px; top:36px; width:80px; height:19px; ">
  1010. <script type="javascript" ev:event="onkeydown">
  1011. <![CDATA[
  1012. inputEnterKey("chk_deptflag","xforms-value-changed");
  1013. ]]>
  1014. </script>
  1015. </input>
  1016. <select id="chk_drugflag1" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:638px; top:10px; width:135px; height:20px; border-style:none; ">
  1017. <choices>
  1018. <item>
  1019. <label>약</label>
  1020. <value>1</value>
  1021. </item>
  1022. <item>
  1023. <label>주사</label>
  1024. <value>2</value>
  1025. </item>
  1026. </choices>
  1027. </select>
  1028. <select id="chk_drugflag2" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:638px; top:35px; width:160px; height:20px; border-style:none; ">
  1029. <choices>
  1030. <item>
  1031. <label>PTP</label>
  1032. <value>3</value>
  1033. </item>
  1034. <item>
  1035. <label>주사</label>
  1036. <value>4</value>
  1037. </item>
  1038. <item>
  1039. <label>외용,수제</label>
  1040. <value>5</value>
  1041. </item>
  1042. </choices>
  1043. </select>
  1044. <input id="ipt_bcno1" ref="/root/send/srchbcinfo/srchbcno1" class="input_search" imemode="alpha" style="left:485px; top:36px; width:100px; height:19px; ">
  1045. <script type="javascript" ev:event="onkeyup">
  1046. <![CDATA[
  1047. var barcode = "";
  1048. var drugdd = "";
  1049. var drugno = "";
  1050. var ioflag = "";
  1051. if(event.keyCode == "13") {
  1052. // 바코드
  1053. setInputNodeCurText();
  1054. barcode = model.getValue("/root/send/srchbcinfo/srchbcno1");
  1055. if (barcode.length > 9) {
  1056. ioflag = barcode.substr(0,1);
  1057. drugdd = barcode.substr(1,8);
  1058. drugno = barcode.substr(9,barcode.length-9);
  1059. model.setValue("/root/send/srchbcinfo/srchbcno1","");
  1060. if (ioflag.toUpperCase() != "I") {
  1061. messageBox("입원처방이 아니므로 처리","E001");
  1062. model.refresh();
  1063. return;
  1064. }
  1065. } else {
  1066. return;
  1067. }
  1068. // 조회
  1069. model.setValue("/root/send/srchbcinfo/srchdrugdd" ,drugdd);
  1070. model.setValue("/root/send/srchbcinfo/srchdrugno" ,drugno);
  1071. model.setValue("/root/send/srchbcinfo/srchioflag" ,"I");
  1072. model.setValue("/root/send/srchdata/sumdt",getCurrentDate()+ getCurrentTime());
  1073. model.setValue("/root/send/srchdata/userid",getUserId());
  1074. model.setValue("/root/send/srchdata/instcd","");
  1075. model.setValue("/root/send/srchdata/srchprcpcd","");
  1076. model.removeNodeset("/root/send/deptdata/deptinfo");
  1077. //var irow = parseInt(getNodesetCount("/root/send/deptdata/deptinfo"))+1;
  1078. model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptcd");
  1079. model.makeNode ( "/root/send/deptdata/deptinfo[1]/sumorddeptflag");
  1080. model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptcd","-");
  1081. model.setValue("/root/send/deptdata/deptinfo[1]/sumorddeptflag","W");
  1082. model.refresh();
  1083. submit("TXADT10301");
  1084. submit("TRADT10316");
  1085. group6.visible=true;
  1086. model.setValue("/root/send/srchbcinfo/srchdrugdd" ,"-");
  1087. model.setValue("/root/send/srchbcinfo/srchdrugno" ,"0");
  1088. model.setValue("/root/send/srchbcinfo/srchioflag" ,"");
  1089. model.refresh();
  1090. if ( datagrid2.rows == 1 ){
  1091. messageBox("선불출할 데이터가 없습니다. ", "C999");
  1092. }
  1093. }
  1094. ]]>
  1095. </script>
  1096. </input>
  1097. <caption id="caption9" class="search_name" style="left:360px; top:36px; width:124px; height:17px; ">바코드(선불출) :</caption>
  1098. </group>
  1099. <datagrid id="grd_sumdeptlist" nodeset="/root/init/sumorddept/dept" visibility="hidden" caption="^코드^부서" colsep="^" colwidth="25, 93, 234" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:500px; top:245px; width:375px; height:85px; ">
  1100. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  1101. <col ref="deptcd"/>
  1102. <col ref="depthngnm"/>
  1103. <script type="javascript" ev:event="onclick">
  1104. <![CDATA[
  1105. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
  1106. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
  1107. submit("TRADT10305");
  1108. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
  1109. submit("TRADT10307");
  1110. ]]>
  1111. </script>
  1112. </datagrid>
  1113. </xhtml:body>
  1114. </xhtml:html>