SMAES02200_핵의학체내방사선동위원소치료현황.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. <list>
  11. <item>
  12. <ioflag/>
  13. <roomcd/>
  14. <day01/>
  15. <day02/>
  16. <day03/>
  17. <day04/>
  18. <day05/>
  19. <day06/>
  20. <day07/>
  21. <day08/>
  22. <day09/>
  23. <day10/>
  24. <day11/>
  25. <day12/>
  26. <day13/>
  27. <day14/>
  28. <day15/>
  29. <day16/>
  30. <day17/>
  31. <day18/>
  32. <day19/>
  33. <day20/>
  34. <day21/>
  35. <day22/>
  36. <day23/>
  37. <day24/>
  38. <day25/>
  39. <day26/>
  40. <day27/>
  41. <day28/>
  42. <day29/>
  43. <day30/>
  44. <day31/>
  45. </item>
  46. </list>
  47. <isublist>
  48. <item>
  49. <ioflag/>
  50. <drugqty/>
  51. <cnt/>
  52. <total/>
  53. </item>
  54. </isublist>
  55. <osublist>
  56. <item>
  57. <ioflag/>
  58. <drugqty/>
  59. <cnt/>
  60. <total/>
  61. </item>
  62. </osublist>
  63. <examsum>
  64. <isum/>
  65. <osum/>
  66. <total/>
  67. </examsum>
  68. </main>
  69. <send>
  70. <srchdate/>
  71. <globalinstance>
  72. <instance1/>
  73. </globalinstance>
  74. <suppdeptcd/>
  75. <flag/>
  76. <srchyy/>
  77. <srchmm/>
  78. </send>
  79. <inti>
  80. <cmb_info/>
  81. </inti>
  82. <hidden/>
  83. <inti_com>
  84. <srchdate/>
  85. </inti_com>
  86. </root>
  87. </instance>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  92. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  93. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  94. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. aezfSetSuppDeptcd();
  98. // 진료과/진료의 조회
  99. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  100. model.removenode("/root/main/list");
  101. model.removenode("/root/main/isublist");
  102. model.removenode("/root/main/osublist");
  103. model.setValue("/root/send/srchdate",getCurrentDate().substr(0,6));
  104. model.refresh();
  105. ]]>
  106. </script>
  107. <submission id="TRAES09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  108. <submission id="TRAES02200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  109. <submission id="TRAES02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list2"/>
  110. </model>
  111. <script type="javascript">
  112. <![CDATA[
  113. function mkDate(){
  114. // var startyy = "";
  115. //
  116. // for(i=8; 0<=i; i--) {
  117. // startyy = getCurrentDate().toDate().getAddDate(-i,"Y").getDateFormat().substr(0,4);
  118. // addComboItem("cmb_srchdd",startyy +"년",startyy,"above");
  119. // }
  120. // cmb_srchdd.value = getCurrentDate().substr(0,4);
  121. // cmb_srchmm.value = getCurrentDate().substr(4,2);
  122. }
  123. ]]>
  124. </script>
  125. </xhtml:head>
  126. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  127. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  128. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:335px; height:13px; ">핵의학체내 방사선 동위원소 치료현황(일별)</caption>
  129. </group>
  130. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  131. <caption id="caption1" class="tit_2" style="left:5px; top:58px; width:278px; height:14px; ">핵의학체내 방사선 동위원소 치료현황(일별)</caption>
  132. <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1130px; top:53px; width:64px; height:19px; ">
  133. <caption>엑셀저장</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  137. if (fileName != "")
  138. {
  139. grd_list.saveExcel(fileName);
  140. }
  141. ]]>
  142. </script>
  143. </button>
  144. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:40px; vertical-align:top; ">
  145. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:37px; background-color:#fffbf2; border-color:#ffd799; "/>
  146. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:31px; "/>
  147. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:8px; width:56px; height:22px; ">
  148. <caption>조회</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. model.removenode("/root/main/sublist");
  152. model.removenode("/root/main/isublist");
  153. model.removenode("/root/main/osublist");
  154. if (submit("TRAES02200",false)) {
  155. grd_isublist.attribute("nodeset") = "/root/main/sublist/item[ioflag='입원']" ;
  156. grd_osublist.attribute("nodeset") = "/root/main/sublist/item[ioflag='외래']" ;
  157. grd_isublist.rebuild();
  158. grd_osublist.rebuild();
  159. var rowCnt = getNodesetCount("/root/main/sublist/item");
  160. var ioflag = "";
  161. var iSum = 0;
  162. var oSum = 0;
  163. var total = 0;
  164. for (i=1; i<=rowCnt; i++) {
  165. ioflag = model.getValue("/root/main/sublist/item[" + i + "]/ioflag");
  166. if (ioflag == "입원") {
  167. iSum = iSum + eval(model.getValue("/root/main/sublist/item[" + i + "]/cnt"));
  168. } else if (ioflag == "외래") {
  169. oSum = oSum + eval(model.getValue("/root/main/sublist/item[" + i + "]/cnt"));
  170. }
  171. }
  172. total = eval(iSum) + eval(oSum);
  173. model.makeValue("/root/main/examsum/isum", iSum);
  174. model.makeValue("/root/main/examsum/osum", oSum);
  175. model.makeValue("/root/main/examsum/total", total);
  176. model.refresh();
  177. }
  178. // datagrid1.subtotal("sum", -1, 1, "#,###", "background-color:#99ff99", 0, "합계");
  179. // for(i=2; i<11; i++) {
  180. // datagrid1.subtotal("sum", -1, i, "#,###");
  181. // }
  182. ]]>
  183. </script>
  184. </button>
  185. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">일자 :</caption>
  186. <input id="input4" ref="/root/send/srchdate" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:80px; top:10px; width:100px; height:19px; "/>
  187. </group>
  188. <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:1195px; y2:73px; "/>
  189. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="^^처방량^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^합계" colsep="^" colwidth="91, 74, 92, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40" frozencols="3" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:75px; width:1195px; height:390px; ">
  190. <col ref="ioflag" style="text-align:center; "/>
  191. <col ref="roomcd" style="text-align:center; "/>
  192. <col ref="drugqty" style="text-align:right; "/>
  193. <col ref="day01" format="#,###" style="text-align:right; "/>
  194. <col ref="day02" format="#,###" style="text-align:right; "/>
  195. <col ref="day03" format="#,###" style="text-align:right; "/>
  196. <col ref="day04" format="#,###" style="text-align:right; "/>
  197. <col ref="day05" format="#,###" style="text-align:right; "/>
  198. <col ref="day06" format="#,###" style="text-align:right; "/>
  199. <col ref="day07" format="#,###" style="text-align:right; "/>
  200. <col ref="day08" format="#,###" style="text-align:right; "/>
  201. <col ref="day09" format="#,###" style="text-align:right; "/>
  202. <col ref="day10" format="#,###" style="text-align:right; "/>
  203. <col ref="day11" format="#,###" style="text-align:right; "/>
  204. <col ref="day12" format="#,###" style="text-align:right; "/>
  205. <col ref="day13" format="#,###" style="text-align:right; "/>
  206. <col ref="day14" format="#,###" style="text-align:right; "/>
  207. <col ref="day15" format="#,###" style="text-align:right; "/>
  208. <col ref="day16" format="#,###" style="text-align:right; "/>
  209. <col ref="day17" format="#,###" style="text-align:right; "/>
  210. <col ref="day18" format="#,###" style="text-align:right; "/>
  211. <col ref="day19" format="#,###" style="text-align:right; "/>
  212. <col ref="day20" format="#,###" style="text-align:right; "/>
  213. <col ref="day21" format="#,###" style="text-align:right; "/>
  214. <col ref="day22" format="#,###" style="text-align:right; "/>
  215. <col ref="day23" format="#,###" style="text-align:right; "/>
  216. <col ref="day24" format="#,###" style="text-align:right; "/>
  217. <col ref="day25" format="#,###" style="text-align:right; "/>
  218. <col ref="day26" format="#,###" style="text-align:right; "/>
  219. <col ref="day27" format="#,###" style="text-align:right; "/>
  220. <col ref="day28" format="#,###" style="text-align:right; "/>
  221. <col ref="day29" format="#,###" style="text-align:right; "/>
  222. <col ref="day30" format="#,###" style="text-align:right; "/>
  223. <col ref="day31" format="#,###" style="text-align:right; "/>
  224. <col ref="total" format="#,###" style="text-align:right; "/>
  225. </datagrid>
  226. <datagrid id="grd_isublist" nodeset="/root/main/isublist/item" caption="구분^처방량^건수" colsep="^" colwidth="75, 80, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:470px; width:258px; height:140px; ">
  227. <col ref="ioflag" style="text-align:center; "/>
  228. <col ref="drugqty" style="text-align:right; "/>
  229. <col ref="cnt" style="text-align:right; "/>
  230. </datagrid>
  231. <datagrid id="grd_osublist" nodeset="/root/main/osublist/item" caption="구분^처방량^건수" colsep="^" colwidth="75, 90, 90" mergecellsfixedrows="bycolrec" rowsep="|" style="left:265px; top:470px; width:258px; height:140px; ">
  232. <col ref="ioflag" style="text-align:center; "/>
  233. <col ref="drugqty" style="text-align:right; "/>
  234. <col ref="cnt" style="text-align:right; "/>
  235. </datagrid>
  236. <caption id="caption8" class="cell_1" style="left:5px; top:613px; width:127px; height:23px; vertical-align:middle; ">병실합계</caption>
  237. <caption id="caption2" class="cell_1" style="left:265px; top:613px; width:127px; height:23px; vertical-align:middle; ">외래합계</caption>
  238. <caption id="caption4" class="cell_1" style="left:5px; top:639px; width:127px; height:23px; vertical-align:middle; ">총합계</caption>
  239. <input id="input1" ref="/root/main/examsum/isum" style="left:134px; top:615px; width:129px; height:19px; text-align:right; "/>
  240. <input id="input2" ref="/root/main/examsum/osum" style="left:394px; top:615px; width:129px; height:19px; text-align:right; "/>
  241. <input id="input3" ref="/root/main/examsum/total" style="left:134px; top:641px; width:389px; height:19px; text-align:right; "/>
  242. </group>
  243. </xhtml:body>
  244. </xhtml:html>