SMAES02700_핵의학체내기간별통계.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <excuroomnm/>
  13. <prcpnm/>
  14. <flag/>
  15. <month1/>
  16. <month2/>
  17. <month3/>
  18. <month4/>
  19. <month5/>
  20. <month6/>
  21. <month7/>
  22. <month8/>
  23. <month9/>
  24. <month10/>
  25. <month11/>
  26. <month12/>
  27. <sumcnt/>
  28. <comparecnt/>
  29. <comparerate/>
  30. </item>
  31. </list>
  32. <curelist>
  33. <item>
  34. <ioflag/>
  35. <roomcd/>
  36. <drugqty/>
  37. <month1/>
  38. <month2/>
  39. <month3/>
  40. <month4/>
  41. <month5/>
  42. <month6/>
  43. <month7/>
  44. <month8/>
  45. <month9/>
  46. <month10/>
  47. <month11/>
  48. <month12/>
  49. <sumcnt/>
  50. <comparecnt/>
  51. <comparerate/>
  52. </item>
  53. </curelist>
  54. <isublist>
  55. <item>
  56. <ioflag/>
  57. <drugqty/>
  58. <cnt/>
  59. <total/>
  60. </item>
  61. </isublist>
  62. <osublist>
  63. <item>
  64. <ioflag/>
  65. <drugqty/>
  66. <cnt/>
  67. <total/>
  68. </item>
  69. </osublist>
  70. <examsum>
  71. <isum/>
  72. <osum/>
  73. <total/>
  74. </examsum>
  75. </main>
  76. <send>
  77. <execfromdd/>
  78. <exectodd/>
  79. <globalinstance>
  80. <instance1/>
  81. </globalinstance>
  82. <excuroomgrpcdid/>
  83. <comparefromdd/>
  84. <comparetodd/>
  85. <suppdeptcd/>
  86. </send>
  87. <init>
  88. <cmb_lrgcd/>
  89. <cmb_mdlcd/>
  90. </init>
  91. <hidden>
  92. <comcd/>
  93. </hidden>
  94. </root>
  95. </instance>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  102. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  103. <script type="javascript">
  104. <![CDATA[
  105. /*** ***/
  106. function setTitle() {
  107. model.removenode("/root/main/list");
  108. model.removenode("/root/main/curelist");
  109. model.removenode("/root/main/isublist");
  110. model.removenode("/root/main/osublist");
  111. model.removenode("/root/main/examsum");
  112. // 치료 Title Setting
  113. var stYearMonth = model.getValue("/root/send/execfromdd") + "01";
  114. var dtYearMonth = stYearMonth.toDate();
  115. var stEndMonth = model.getValue("/root/send/exectodd") + "01";
  116. var dtEndMonth = stEndMonth.toDate();
  117. var stYearHeader = "검사실^검사항목^구분^";
  118. var stMonthHeader = "검사실^검사항목^구분^";
  119. for (var i = 4; i <= 15; i++) {
  120. // 년도
  121. var stYear = dtYearMonth.getDateFormat("YYYY");
  122. // 월
  123. var stMonth = dtYearMonth.getDateFormat("MM");
  124. stYearHeader = stYearHeader + stYear + "년^";
  125. stMonthHeader = stMonthHeader + stMonth + "월^";
  126. if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM")) {
  127. grd_examlist.colHidden(i) = true;
  128. } else {
  129. grd_examlist.colHidden(i) = false;
  130. }
  131. dtYearMonth.getAddDate(1, "M");
  132. }
  133. stYearHeader = stYearHeader + "합계^비교기간내건수^증감율|";
  134. stMonthHeader = stMonthHeader + "합계^비교기간내건수^증감율";
  135. grd_examlist.caption = stYearHeader + stMonthHeader;
  136. model.setValue("/root/send/comparefromdd", stYearMonth.toDate().getAddDate(-12, "M").getDateFormat("YYYYMM"));
  137. model.setValue("/root/send/comparetodd", stEndMonth.toDate().getAddDate(-12, "M").getDateFormat("YYYYMM"));
  138. var comparefromdd = model.getValue("/root/send/comparefromdd");
  139. var comparetodd = model.getValue("/root/send/comparetodd");
  140. // alert("comparefromdd : " + comparefromdd);
  141. // alert("comparetodd : " + comparetodd);
  142. // 치료 Title Setting
  143. stYearMonth = model.getValue("/root/send/execfromdd") + "01";
  144. dtYearMonth = stYearMonth.toDate();
  145. stEndMonth = model.getValue("/root/send/exectodd") + "01";
  146. dtEndMonth = stEndMonth.toDate();
  147. stYearHeader = "구분^병실^처방량^";
  148. stMonthHeader = "구분^병실^처방량^";
  149. for (var i = 4; i <= 15; i++) {
  150. // 년도
  151. var stYear = dtYearMonth.getDateFormat("YYYY");
  152. // 월
  153. var stMonth = dtYearMonth.getDateFormat("MM");
  154. stYearHeader = stYearHeader + stYear + "년^";
  155. stMonthHeader = stMonthHeader + stMonth + "월^";
  156. if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM")) {
  157. grd_curelist.colHidden(1 + i) = true;
  158. } else {
  159. grd_curelist.colHidden(1 + i) = false;
  160. }
  161. dtYearMonth.getAddDate(1, "M");
  162. }
  163. stYearHeader = stYearHeader + "합계^비교기간내건수^증감율|";
  164. stMonthHeader = stMonthHeader + "합계^비교기간내건수^증감율";
  165. grd_curelist.caption = stYearHeader + stMonthHeader;
  166. }
  167. ]]>
  168. </script>
  169. <script type="javascript" ev:event="xforms-ready">
  170. <![CDATA[
  171. aezfSetSuppDeptcd();
  172. var fromdd = getCurrentDate().substr(0,4) + "01";
  173. var todd = getCurrentDate().substr(0,6);
  174. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  175. //2009-07-16 조회기간 기본 Set : 해당년의 01월~12월로 Setting (류형기 샘 요청)
  176. // model.setValue("/root/send/execfromdd", getCurrentDate().toDate().getAddDate(-11, "M").getDateFormat("YYYYMM"));
  177. // model.setValue("/root/send/exectodd", getCurrentDate().substr(0,6));
  178. var fromdd01 = getCurrentDate().substr(0,4) + "0101";
  179. var todd12 = getCurrentDate().substr(0,4) + "1231";
  180. model.setValue("/root/send/execfromdd", fromdd01.toDate().getDateFormat("YYYYMM"));
  181. model.setValue("/root/send/exectodd", todd12.toDate().getDateFormat("YYYYMM"));
  182. submit("TRAES09001", false);
  183. addComboItem("cmb_excuroomgrp","--전체--","","above");
  184. btn_case1.selected = true;
  185. model.toggle("case1");
  186. setTitle();
  187. model.refresh();
  188. ]]>
  189. </script>
  190. <submission id="TRAES09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  191. <submission id="TRAES02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  192. </model>
  193. </xhtml:head>
  194. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  195. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  196. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">기간별 통계</caption>
  197. </group>
  198. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  199. <line id="line1" class="line_1" style="x1:7px; y1:72px; x2:1192px; y2:72px; "/>
  200. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:52px; width:64px; height:19px; ">
  201. <caption>엑셀저장</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  205. if (fileName != "") {
  206. if (btn_case1.selected == true) {
  207. //2009-07-28 검사통계 - Excel저장 오류 수정
  208. // grd_list.saveExcel(fileName);
  209. grd_examlist.saveExcel(fileName);
  210. } else {
  211. grd_curelist.saveExcel(fileName);
  212. }
  213. }
  214. ]]>
  215. </script>
  216. </button>
  217. <group id="group1" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
  218. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  219. <line id="line2" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
  220. <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  221. <caption>조회</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. setTitle();
  225. if (submit("TRAES02701")) {
  226. var cnt = getNodesetCount("/root/main/curelist/item");
  227. if (cnt > 1) {
  228. grd_curelist.colSort(0) = "asc";
  229. grd_curelist.sort(0, 0, grd_examlist.rows, grd_examlist.cols) = "usersort";
  230. for(i=4; i<18; i++) {
  231. /* grd_curelist.subtotal("sum", 1, i, "#,###", "background-color:#FFFFCC; color:#0000ff; font-weight:bold; ", 2, "소계");*/
  232. grd_curelist.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 1, "총계");
  233. }
  234. grd_curelist.mergeByFree(grd_curelist.rows-1, 1 , grd_curelist.rows-1, 3);
  235. //전체 증감율 합계
  236. var sumcnt = grd_curelist.valueMatrix(grd_curelist.rows-1, grd_curelist.colRef("sumcnt"));
  237. var comparecnt = grd_curelist.valueMatrix(grd_curelist.rows-1, grd_curelist.colRef("comparecnt"));
  238. var comparerate = "";
  239. if (parseInt(comparecnt) > 0) {
  240. comparerate = ( ( parseInt(sumcnt) - parseInt(comparecnt) ) / parseInt(comparecnt) ) * 100;
  241. } else {
  242. comparerate = 0;
  243. }
  244. if (comparerate != null) {
  245. grd_curelist.valueMatrix(grd_curelist.rows-1, grd_curelist.colRef("comparerate")) = comparerate.toString().getRound(-1,"HALF_UP");
  246. }
  247. }
  248. var rowCnt = getNodesetCount("/root/main/sublist/item");
  249. if (cnt > 1) {
  250. grd_isublist.attribute("nodeset") = "/root/main/sublist/item[ioflag='I']" ;
  251. grd_osublist.attribute("nodeset") = "/root/main/sublist/item[ioflag='O']" ;
  252. grd_isublist.rebuild();
  253. grd_osublist.rebuild();
  254. var ioflag = "";
  255. var iSum = 0;
  256. var oSum = 0;
  257. var total = 0;
  258. for (i=1; i<=rowCnt; i++) {
  259. ioflag = model.getValue("/root/main/sublist/item[" + i + "]/ioflag");
  260. if (ioflag == "I") {
  261. iSum = iSum + eval(model.getValue("/root/main/sublist/item[" + i + "]/cnt"));
  262. } else if (ioflag == "O") {
  263. oSum = oSum + eval(model.getValue("/root/main/sublist/item[" + i + "]/cnt"));
  264. }
  265. }
  266. total = eval(iSum) + eval(oSum);
  267. model.makeValue("/root/main/examsum/isum", iSum);
  268. model.makeValue("/root/main/examsum/osum", oSum);
  269. model.makeValue("/root/main/examsum/total", total);
  270. }
  271. }
  272. model.refresh();
  273. ]]>
  274. </script>
  275. </button>
  276. <caption id="caption2" class="search_name" style="left:10px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
  277. <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:202px; top:6px; width:80px; height:19px; ">
  278. <script type="javascript" ev:event="xforms-value-changed">
  279. <![CDATA[
  280. var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
  281. var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
  282. if(execfromdd.getAddDate(11, "M") < exectodd)
  283. {
  284. messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  285. exectodd = execfromdd;
  286. }
  287. model.setValue("/root/send/exectodd", exectodd.getDateFormat("YYYYMM"));
  288. exectodd = exectodd.getAddDate(-12, "M");
  289. exectodd = exectodd.getDateFormat("YYYYMM");
  290. setTitle();
  291. model.refresh();
  292. ]]>
  293. </script>
  294. </input>
  295. <caption id="caption5" class="search_no_b" style="left:187px; top:6px; width:12px; height:17px; ">~</caption>
  296. <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:104px; top:6px; width:80px; height:19px; ">
  297. <script type="javascript" ev:event="xforms-value-changed">
  298. <![CDATA[
  299. var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
  300. var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
  301. if(execfromdd < exectodd.getAddDate(-11, "M"))
  302. {
  303. messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  304. execfromdd = exectodd;
  305. }
  306. model.setValue("/root/send/execfromdd", execfromdd.getDateFormat("YYYYMM"));
  307. execfromdd = execfromdd.getAddDate(-12, "M");
  308. execfromdd = execfromdd.getDateFormat("YYYYMM");
  309. setTitle();
  310. model.refresh();
  311. ]]>
  312. </script>
  313. </input>
  314. <select1 id="cmb_excuroomgrp" ref="/root/send/excuroomgrpcdid" class="combo_default" appearance="minimal" style="left:390px; top:6px; width:118px; height:19px; ">
  315. <choices>
  316. <itemset nodeset="/root/init/initexcuroomgrp">
  317. <label ref="nm"/>
  318. <value ref="cd"/>
  319. </itemset>
  320. </choices>
  321. </select1>
  322. <caption id="caption7" class="search_name" style="left:310px; top:7px; width:80px; height:17px; ">검사실 :</caption>
  323. </group>
  324. <switch id="switch1" style="left:7px; top:75px; width:1185px; height:664px; ">
  325. <case id="case1" selected="true" style="left:0px; top:0px; width:1183px; height:662px; ">
  326. <datagrid id="grd_examlist" nodeset="/root/main/list/item" caption="검사실^검사항목^구분^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2007년^2007년^합계^비교기간내건수^증감율^전년도합계^증감(%)|검사실^검사항목^구분^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^합계^비교기간내건수&#xA;건수^증감율^전년도합계^증감(%)" colsep="^" colwidth="100, 240, 40, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 64, 71, 64" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1183px; height:662px; ">
  327. <col ref="excuroomnm" visibility="visible"/>
  328. <col ref="prcpnm"/>
  329. <col ref="flag" style="text-align:center; "/>
  330. <col ref="month1" style="text-align:right; "/>
  331. <col ref="month2" style="text-align:right; "/>
  332. <col ref="month3" style="text-align:right; "/>
  333. <col ref="month4" style="text-align:right; "/>
  334. <col ref="month5" style="text-align:right; "/>
  335. <col ref="month6" style="text-align:right; "/>
  336. <col ref="month7" style="text-align:right; "/>
  337. <col ref="month8" style="text-align:right; "/>
  338. <col ref="month9" style="text-align:right; "/>
  339. <col ref="month10" style="text-align:right; "/>
  340. <col ref="month11" style="text-align:right; "/>
  341. <col ref="month12" style="text-align:right; "/>
  342. <col ref="sumcnt" style="text-align:right; "/>
  343. <col ref="comparecnt" style="text-align:right; "/>
  344. <col ref="comparerate" style="text-align:right; "/>
  345. </datagrid>
  346. </case>
  347. <case id="case2">
  348. <datagrid id="grd_isublist" nodeset="/root/main/isublist/item" caption="구분^처방량^건수" colsep="^" colwidth="75, 90, 90" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:470px; width:258px; height:140px; ">
  349. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  350. <choices>
  351. <item>
  352. <label>입원</label>
  353. <value>I</value>
  354. </item>
  355. <item>
  356. <label>외래</label>
  357. <value>O</value>
  358. </item>
  359. </choices>
  360. </col>
  361. <col ref="drugqty" style="text-align:right; "/>
  362. <col ref="cnt" style="text-align:right; "/>
  363. </datagrid>
  364. <datagrid id="grd_osublist" nodeset="/root/main/osublist/item" caption="구분^처방량^건수" colsep="^" colwidth="75, 90, 90" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:260px; top:470px; width:258px; height:140px; ">
  365. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  366. <choices>
  367. <item>
  368. <label>입원</label>
  369. <value>I</value>
  370. </item>
  371. <item>
  372. <label>외래</label>
  373. <value>O</value>
  374. </item>
  375. </choices>
  376. </col>
  377. <col ref="drugqty" style="text-align:right; "/>
  378. <col ref="cnt" style="text-align:right; "/>
  379. </datagrid>
  380. <caption id="caption1" class="cell_1" style="left:260px; top:613px; width:127px; height:23px; vertical-align:middle; ">외래합계</caption>
  381. <caption id="caption4" class="cell_1" style="left:0px; top:639px; width:127px; height:23px; vertical-align:middle; ">총합계</caption>
  382. <input id="input1" ref="/root/main/examsum/isum" style="left:129px; top:615px; width:129px; height:19px; text-align:right; "/>
  383. <input id="input2" ref="/root/main/examsum/osum" style="left:389px; top:615px; width:129px; height:19px; text-align:right; "/>
  384. <input id="input3" ref="/root/main/examsum/total" style="left:129px; top:641px; width:389px; height:19px; text-align:right; "/>
  385. <caption id="caption8" class="cell_1" style="left:0px; top:613px; width:127px; height:23px; vertical-align:middle; ">병실합계</caption>
  386. <datagrid id="grd_curelist" nodeset="/root/main/curelist/item" caption="구분^병실^처방량^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2007년^2007년^합계^비교기간내건수^증감율|구분^병실^처방량^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^합계^비교기간내건수^증감율" colsep="^" colwidth="66, 67, 67, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 75, 75, 75" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:0px; width:1183px; height:465px; ">
  387. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  388. <choices>
  389. <item>
  390. <label>입원</label>
  391. <value>I</value>
  392. </item>
  393. <item>
  394. <label>외래</label>
  395. <value>O</value>
  396. </item>
  397. </choices>
  398. </col>
  399. <col ref="roomcd" style="text-align:center; "/>
  400. <col ref="drugqty" style="text-align:right; "/>
  401. <col ref="month1" style="text-align:right; "/>
  402. <col ref="month2" style="text-align:right; "/>
  403. <col ref="month3" style="text-align:right; "/>
  404. <col ref="month4" style="text-align:right; "/>
  405. <col ref="month5" style="text-align:right; "/>
  406. <col ref="month6" style="text-align:right; "/>
  407. <col ref="month7" style="text-align:right; "/>
  408. <col ref="month8" style="text-align:right; "/>
  409. <col ref="month9" style="text-align:right; "/>
  410. <col ref="month10" style="text-align:right; "/>
  411. <col ref="month11" style="text-align:right; "/>
  412. <col ref="month12" style="text-align:right; "/>
  413. <col ref="sumcnt" style="text-align:right; "/>
  414. <col ref="comparecnt" style="text-align:right; "/>
  415. <col ref="comparerate" style="text-align:right; "/>
  416. </datagrid>
  417. </case>
  418. </switch>
  419. <button id="btn_case1" class="btn_sw" group="tab2" style="left:7px; top:49px; width:60px; height:22px; ">
  420. <caption>검사</caption>
  421. <toggle case="case1" ev:event="onclick"/>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. model.toggle("case1");
  425. ]]>
  426. </script>
  427. </button>
  428. <button id="button2" class="btn_sw" group="tab2" style="left:67px; top:49px; width:60px; height:22px; ">
  429. <caption>치료</caption>
  430. <toggle case="case1" ev:event="onclick"/>
  431. <script type="javascript" ev:event="DOMActivate">
  432. <![CDATA[
  433. model.toggle("case2");
  434. ]]>
  435. </script>
  436. </button>
  437. </group>
  438. </xhtml:body>
  439. </xhtml:html>