SMAES04600_기능검사실통계(분기별).xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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. <prcpcd/>
  13. <prcpnm/>
  14. <month01/>
  15. <month02/>
  16. <month03/>
  17. <month04/>
  18. <month05/>
  19. <month06/>
  20. <month07/>
  21. <month08/>
  22. <month09/>
  23. <month10/>
  24. <month11/>
  25. <month12/>
  26. <monthsum/>
  27. <compare/>
  28. <variation/>
  29. <comparerate/>
  30. </item>
  31. </list>
  32. </main>
  33. <send>
  34. <execfromdd/>
  35. <exectodd/>
  36. <comparefromdd/>
  37. <comparetodd/>
  38. <excuroomcd/>
  39. <globalinstance>
  40. <instance1/>
  41. </globalinstance>
  42. <ioflag>A</ioflag>
  43. <srchyyyy/>
  44. <srchqurt>1</srchqurt>
  45. </send>
  46. <init>
  47. <cmb_info/>
  48. </init>
  49. <hidden/>
  50. </root>
  51. </instance>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  58. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. aezfSetSuppDeptcd();
  62. submit("TRAEA01115",false);
  63. model.setValue("/root/send/srchyyyy", getCurrentDate().substr(0,4) );
  64. addComboItem("cmb_excuroomcd","--전체--","","above");
  65. model.removenode("/root/main/list/item");
  66. model.refresh();
  67. ]]>
  68. </script>
  69. <submission id="TRAES04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  70. <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  71. </model>
  72. <script type="javascript">
  73. <![CDATA[
  74. function fSetDate(id, gb) {
  75. var cYear = eval(id).value;
  76. if(gb == "up") {
  77. eval(id).value = eval(cYear)+1;
  78. }else {
  79. eval(id).value = eval(cYear)-1;
  80. }
  81. }
  82. /* @group : 통합 통계
  83. * @ver :
  84. * @by :
  85. * @-----------------------------------
  86. * @type : function
  87. * @access : public
  88. * @desc : 증감율을 구하는 함수
  89. */
  90. function setCompareRate(total, comparecnt) {
  91. var comparerate = 0;
  92. if (parseInt(comparecnt) > 0) {
  93. comparerate = ( ( parseInt(total) - parseInt(comparecnt) ) / parseInt(comparecnt) ) * 100;
  94. if (comparerate != null) {
  95. comparerate = comparerate.toString().getRound(-1,"HALF_UP");
  96. } else {
  97. comparerate = 0;
  98. }
  99. } else {
  100. comparerate = 0;
  101. }
  102. return comparerate;
  103. }
  104. /* @group : 통합 통계
  105. * @ver :
  106. * @by :
  107. * @-----------------------------------
  108. * @type : function
  109. * @access : public
  110. * @desc : 통계 구분별 그리드 header를 정의하는 함수
  111. */
  112. function setTitle() {
  113. var baseQurt = model.getValue("/root/send/srchqurt");
  114. model.removenode("/root/main/list");
  115. var stCaption = "";
  116. if ( baseQurt == "1" ) {
  117. stCaption = "검사코드^검사명^3월^3월^3월^4월^4월^4월^5월^5월^5월^1/4분기^1/4분기^1/4분기^전분기대비^전분기대비^전년동분기대비^전년동분기대비|검사코드^검사명^입원^외래^계^입원^외래^계^입원^외래^계^입원^외래^계^합계^증감^합계^증감";
  118. } else if ( baseQurt == "2" ) {
  119. stCaption = "검사코드^검사명^6월^6월^6월^7월^7월^7월^8월^8월^8월^2/4분기^2/4분기^2/4분기^전분기대비^전분기대비^전년동분기대비^전년동분기대비|검사코드^검사명^입원^외래^계^입원^외래^계^입원^외래^계^입원^외래^계^합계^증감^합계^증감";
  120. } else if ( baseQurt == "3" ) {
  121. stCaption = "검사코드^검사명^9월^9월^9월^10월^10월^10월^11월^11월^11월^3/4분기^3/4분기^3/4분기^전분기대비^전분기대비^전년동분기대비^전년동분기대비|검사코드^검사명^입원^외래^계^입원^외래^계^입원^외래^계^입원^외래^계^합계^증감^합계^증감";
  122. } else if ( baseQurt == "4" ) {
  123. stCaption = "검사코드^검사명^12월^12월^12월^1월^1월^1월^2월^2월^2월^4/4분기^4/4분기^4/4분기^전분기대비^전분기대비^전년동분기대비^전년동분기대비|검사코드^검사명^입원^외래^계^입원^외래^계^입원^외래^계^입원^외래^계^합계^증감^합계^증감";
  124. }
  125. grd_list.caption = stCaption;
  126. grd_list.rebuild();
  127. }
  128. ]]>
  129. </script>
  130. </xhtml:head>
  131. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  132. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  133. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">기능검사실 통계(분기별)</caption>
  134. </group>
  135. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  136. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:14px; ">기능검사실 통계(분기별)</caption>
  137. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
  138. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
  139. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  140. <line id="line13" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:26px; "/>
  141. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  142. <caption>조회</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. submit("TRAES04601");
  146. // grd_list.subtotal("sum", -1, 3, "#,###", "background-color:#99ff99", 2, "합계");
  147. // for(i=4; i<grd_list.cols-1; i++) {
  148. // grd_list.subtotal("sum", -1, i, "(-)#,###");
  149. // }
  150. grd_list.colSort(0) = "asc";
  151. grd_list.sort(0, 0, grd_list.rows, grd_list.cols) = "usersort";
  152. for(i=3; i<grd_list.cols; i++) {
  153. grd_list.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 1, "총계");
  154. }
  155. grd_list.mergeByFree(grd_list.rows-1, 1 , grd_list.rows-1, 2);
  156. var total = 0;
  157. var comparecnt = 0;
  158. var comparerate = "";
  159. //전분기대비 증감율 합계
  160. total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("squrt01"));
  161. comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("prequrtsum"));
  162. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("prequrtrate")) = setCompareRate(total, comparecnt) ;
  163. grd_list.cellformat(grd_list.rows-1, grd_list.colRef("prequrtrate")) = "(-)###.#0 %";
  164. //전년동분기대비 증감율 합계
  165. total = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("squrt01"));
  166. comparecnt = grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("preyearqurtsum"));
  167. grd_list.valueMatrix(grd_list.rows-1, grd_list.colRef("preyearqurtrate")) = setCompareRate(total, comparecnt) ;
  168. grd_list.cellformat(grd_list.rows-1, grd_list.colRef("preyearqurtrate")) = "(-)###.#0 %";
  169. ]]>
  170. </script>
  171. </button>
  172. <caption id="caption9" class="search_name" visibility="visible" style="left:440px; top:7px; width:75px; height:17px; ">검사실 :</caption>
  173. <select1 id="cmb_excuroomcd" ref="/root/send/excuroomcd" visibility="visible" appearance="minimal" itemcount="10" style="left:520px; top:6px; width:140px; height:19px; ">
  174. <choices>
  175. <itemset nodeset="/root/init/cmb_info/initexecroom">
  176. <label ref="excuroomcdnm"/>
  177. <value ref="excuroomcdid"/>
  178. </itemset>
  179. </choices>
  180. </select1>
  181. <caption id="caption8" class="search_name" visibility="hidden" style="left:845px; top:7px; width:70px; height:17px; ">구분 :</caption>
  182. <select1 id="radio1" ref="/root/send/ioflag" visibility="hidden" appearance="full" cols="3" overflow="visible" style="left:915px; top:7px; width:145px; height:15px; border-style:none; ">
  183. <choices>
  184. <item>
  185. <label>전체</label>
  186. <value>A</value>
  187. </item>
  188. <item>
  189. <label>입원</label>
  190. <value>I</value>
  191. </item>
  192. <item>
  193. <label>외래</label>
  194. <value>O</value>
  195. </item>
  196. </choices>
  197. </select1>
  198. <group id="group2" style="left:184px; top:3px; width:14px; height:26px; ">
  199. <button id="button3" style="left:0px; top:11px; width:13px; height:13px; background-image:../../../com/commonweb/images/grid_scroll_v_s_down.gif; ">
  200. <caption/>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. fSetDate("ipt_eYear", "down");
  204. ]]>
  205. </script>
  206. </button>
  207. <button id="button4" style="left:0px; top:0px; width:13px; height:13px; background-image:../../../com/commonweb/images/grid_scroll_v_s_up.gif; ">
  208. <caption/>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fSetDate("ipt_eYear", "up");
  212. ]]>
  213. </script>
  214. </button>
  215. </group>
  216. <caption id="caption2" class="search_name" style="left:25px; top:7px; width:90px; height:17px; ">조회년도 :</caption>
  217. <input id="ipt_eYear" ref="/root/send/srchyyyy" class="input_s_essential" style="left:120px; top:6px; width:65px; height:19px; "/>
  218. <select1 id="combo1" ref="/root/send/srchqurt" appearance="minimal" style="left:320px; top:6px; width:85px; height:19px; ">
  219. <choices>
  220. <item>
  221. <label>1분기</label>
  222. <value>1</value>
  223. </item>
  224. <item>
  225. <label>2분기</label>
  226. <value>2</value>
  227. </item>
  228. <item>
  229. <label>3분기</label>
  230. <value>3</value>
  231. </item>
  232. <item>
  233. <label>4분기</label>
  234. <value>4</value>
  235. </item>
  236. </choices>
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. setTitle();
  240. ]]>
  241. </script>
  242. </select1>
  243. <caption id="caption3" class="search_name" style="left:225px; top:7px; width:90px; height:17px; ">조회분기 :</caption>
  244. </group>
  245. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:45px; width:64px; height:19px; ">
  246. <caption>엑셀저장</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  250. if (fileName != "") {
  251. grd_list.saveExcel(fileName);
  252. }
  253. ]]>
  254. </script>
  255. </button>
  256. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="검사코드^검사명^3월^3월^3월^4월^4월^4월^5월^5월^5월^1/4분기^1/4분기^1/4분기^전분기대비^전분기대비^전년동분기대비^전년동분기대비|검사코드^검사명^입원^외래^계^입원^외래^계^입원^외래^계^입원^외래^계^합계^증감^합계^증감" colsep="^" colwidth="87, 314, 42, 42, 42, 42, 42, 42, 42, 42, 42, 54, 54, 54, 54, 54, 54, 54" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:70px; width:1195px; height:670px; text-align:center; ">
  257. <col ref="prcpcd" style="text-align:left; "/>
  258. <col ref="prcpnm" style="text-align:left; "/>
  259. <col ref="imonth01" style="text-align:right; "/>
  260. <col ref="omonth01" style="text-align:right; "/>
  261. <col ref="smonth01" style="text-align:right; "/>
  262. <col ref="imonth02" style="text-align:right; "/>
  263. <col ref="omonth02" style="text-align:right; "/>
  264. <col ref="smonth02" style="text-align:right; "/>
  265. <col ref="imonth03" style="text-align:right; "/>
  266. <col ref="omonth03" style="text-align:right; "/>
  267. <col ref="smonth03" style="text-align:right; "/>
  268. <col ref="iqurt01" style="text-align:right; "/>
  269. <col ref="oqurt01" style="text-align:right; "/>
  270. <col ref="squrt01" style="text-align:right; "/>
  271. <col ref="prequrtsum" format="#,###" style="text-align:right; "/>
  272. <col ref="prequrtrate" format="(-)###.#0 %" roundmode="round" roundposition="-2" validateformat="true" style="text-align:right; "/>
  273. <col ref="preyearqurtsum" format="(-)#,###" style="text-align:right; "/>
  274. <col ref="preyearqurtrate" format="(-)###.#0 %" style="text-align:right; "/>
  275. </datagrid>
  276. </group>
  277. </xhtml:body>
  278. </xhtml:html>