SMAES01500_영상의학월별진료과별실적.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  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. <basecdnm/>
  13. <month1/>
  14. <month2/>
  15. <month3/>
  16. <month4/>
  17. <month5/>
  18. <month6/>
  19. <month7/>
  20. <month8/>
  21. <month9/>
  22. <month10/>
  23. <month11/>
  24. <month12/>
  25. <sumcnt/>
  26. </item>
  27. </list>
  28. </main>
  29. <send>
  30. <execfromdd/>
  31. <exectodd/>
  32. <globalinstance>
  33. <instance1/>
  34. </globalinstance>
  35. <suppdeptcd/>
  36. <lrgcd/>
  37. <mdlcd/>
  38. <flag/>
  39. <partflag/>
  40. <basecdflag/>
  41. <flag2/>
  42. </send>
  43. <init>
  44. <cmb_lrgcd/>
  45. <cmb_mdlcd/>
  46. </init>
  47. <hidden>
  48. <comcd/>
  49. </hidden>
  50. <temp>
  51. <hints>외부판독제외</hints>
  52. </temp>
  53. </root>
  54. </instance>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  59. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  60. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  61. <script type="javascript">
  62. <![CDATA[
  63. /*** ***/
  64. function setTitle() {
  65. model.removenode("/root/main/list");
  66. var stYearMonth = model.getValue("/root/send/execfromdd") + "01";
  67. var dtYearMonth = stYearMonth.toDate();
  68. var stEndMonth = model.getValue("/root/send/exectodd") + "01";
  69. var dtEndMonth = stEndMonth.toDate();
  70. var stYearHeader = "구분^구분^";
  71. var stMonthHeader = "구분^구분^";
  72. for (var i = 2; i <= 13; i++) {
  73. // 년도
  74. var stYear = dtYearMonth.getDateFormat("YYYY");
  75. // 월
  76. var stMonth = dtYearMonth.getDateFormat("MM");
  77. stYearHeader = stYearHeader + stYear + "년^";
  78. stMonthHeader = stMonthHeader + stMonth + "월^";
  79. if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM")) {
  80. grd_list.colHidden(1 + i) = true;
  81. } else {
  82. grd_list.colHidden(1 + i) = false;
  83. }
  84. dtYearMonth.getAddDate(1, "M");
  85. }
  86. stYearHeader = stYearHeader + "합계|";
  87. stMonthHeader = stMonthHeader + "합계";
  88. grd_list.caption = stYearHeader + stMonthHeader;
  89. }
  90. ]]>
  91. </script>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. aezfSetSuppDeptcd();
  95. var fromdd = getCurrentDate().substr(0,4) + "01";
  96. var todd = getCurrentDate().substr(0,6);
  97. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  98. model.setValue("/root/send/execfromdd", fromdd);
  99. model.setValue("/root/send/exectodd", todd);
  100. model.setValue("/root/send/flag", "E");
  101. model.setValue("/root/send/basecdflag", "R");
  102. submit("TRAES01502", false);
  103. aezfInsertInstance2("/root/hidden/comcd", "lrgcdlist", "전체", "", "/root/init/cmb_lrgcd");
  104. setTitle();
  105. model.refresh();
  106. ]]>
  107. </script>
  108. <submission id="TRAES01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  109. <submission id="TRAES01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_lrgcd"/>
  110. <submission id="TRAES01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_mdlcd"/>
  111. </model>
  112. </xhtml:head>
  113. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  114. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  115. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">진료과별통계</caption>
  116. </group>
  117. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  118. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:14px; ">진료과별통계</caption>
  119. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
  120. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:45px; width:64px; height:19px; ">
  121. <caption>엑셀저장</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. // var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  125. var fileName = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls"); // 2009-07-01 엑셀저장 두번째 저장 실패 오류 확인 두번째 테스트
  126. if (fileName != "") {
  127. grd_list.saveExcel(fileName);
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. <datagrid id="grd_list" nodeset="/root/main/list/item" caption="caption1^구분^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2007년^2007년^합계^전년도합계^증감(%)|caption1^구분^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^합계^전년도합계^증감(%)" colsep="^" colwidth="0, 310, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 82" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:70px; width:1195px; height:670px; ">
  133. <col ref="ord" visibility="hidden"/>
  134. <col ref="basecdnm"/>
  135. <col ref="month1" style="text-align:right; "/>
  136. <col ref="month2" style="text-align:right; "/>
  137. <col ref="month3" style="text-align:right; "/>
  138. <col ref="month4" style="text-align:right; "/>
  139. <col ref="month5" style="text-align:right; "/>
  140. <col ref="month6" style="text-align:right; "/>
  141. <col ref="month7" style="text-align:right; "/>
  142. <col ref="month8" style="text-align:right; "/>
  143. <col ref="month9" style="text-align:right; "/>
  144. <col ref="month10" style="text-align:right; "/>
  145. <col ref="month11" style="text-align:right; "/>
  146. <col ref="month12" style="text-align:right; "/>
  147. <col ref="sumcnt" style="text-align:right; "/>
  148. </datagrid>
  149. <group id="group1" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
  150. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  151. <line id="line2" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
  152. <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  153. <caption>조회</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. setTitle();
  157. openLoadingBar("진료과별통계을 조회 중입니다....") ;
  158. if (submit("TRAES01501")) {
  159. var ord = "";
  160. for ( var i = 1; i <= grd_list.rows; i++ ) {
  161. ord = grd_list.valueMatrix(i, grd_list.colRef("ord"));
  162. if ( ord == "2" ) {
  163. grd_list.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
  164. grd_list.rowstyle( i , "data" , "font-weight" ) = "bold";
  165. } else if ( ord == "3" ) {
  166. grd_list.rowstyle( i , "data" , "background-color" ) = "#FFFFCC";
  167. grd_list.rowstyle( i , "data" , "font-weight" ) = "bold";
  168. }
  169. }
  170. }
  171. model.refresh();
  172. closeLoadingBar() ;//처리중 화면을 close한다.
  173. ]]>
  174. </script>
  175. </button>
  176. <caption id="caption2" class="search_name" style="left:10px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
  177. <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:197px; top:6px; width:80px; height:19px; ">
  178. <script type="javascript" ev:event="xforms-value-changed">
  179. <![CDATA[
  180. var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
  181. var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
  182. if(execfromdd.getAddDate(11, "M") < exectodd)
  183. {
  184. messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  185. exectodd = execfromdd;
  186. }
  187. model.setValue("/root/send/exectodd", exectodd.getDateFormat("YYYYMM"));
  188. exectodd = exectodd.getAddDate(-12, "M");
  189. exectodd = exectodd.getDateFormat("YYYYMM");
  190. setTitle();
  191. model.refresh();
  192. ]]>
  193. </script>
  194. </input>
  195. <caption id="caption5" class="search_no_b" style="left:182px; top:6px; width:12px; height:17px; ">~</caption>
  196. <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:99px; top:6px; width:80px; height:19px; ">
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
  200. var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
  201. if(execfromdd < exectodd.getAddDate(-11, "M"))
  202. {
  203. messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  204. execfromdd = exectodd;
  205. }
  206. model.setValue("/root/send/execfromdd", execfromdd.getDateFormat("YYYYMM"));
  207. execfromdd = execfromdd.getAddDate(-12, "M");
  208. execfromdd = execfromdd.getDateFormat("YYYYMM");
  209. //model.setValue("/root/send/comparefromdd", execfromdd);
  210. model.refresh();
  211. ]]>
  212. </script>
  213. </input>
  214. <caption id="caption7" class="search_name" style="left:295px; top:7px; width:76px; height:17px; ">대분류 :</caption>
  215. <caption id="caption9" class="search_name" style="left:465px; top:7px; width:76px; height:17px; ">중분류 :</caption>
  216. <select1 id="cmb_lrgcd" ref="/root/send/lrgcd" appearance="minimal" editmode="input" style="left:370px; top:6px; width:80px; height:19px; ">
  217. <choices>
  218. <itemset nodeset="/root/init/cmb_lrgcd/lrgcdlist">
  219. <label ref="cdnm"/>
  220. <value ref="cdid"/>
  221. </itemset>
  222. </choices>
  223. <script type="javascript" ev:event="xforms-value-changed">
  224. <![CDATA[
  225. // if ( model.getValue("/root/send/lrgcd") == "GR" ) {
  226. //
  227. // if ( model.getValue("/root/send/flag") == "" ) {
  228. // model.setValue("/root/send/flag" , "E"); // 검사수
  229. // model.refresh();
  230. // }else {
  231. // model.setValue("/root/send/flag2" , "");
  232. // model.refresh();
  233. // }
  234. // checkbox1.visible = true;
  235. // }else {
  236. // model.setValue("/root/send/flag" , "E"); // 검사수
  237. // model.setValue("/root/send/flag2" , ""); // 부위건수
  238. // model.refresh();
  239. // checkbox1.visible = false;
  240. // }
  241. //
  242. // model.removenode("/root/main/list");
  243. model.setValue("/root/send/mdlcd", "");
  244. model.resetInstanceNode("/root/init/cmb_mdlcd/mdlcdlist");
  245. if ( model.getValue("/root/send/lrgcd") == "" ) {
  246. model.resetInstanceNode("/root/init/cmb_lrgcd/lrgcdlist");
  247. submit("TRAES01502");
  248. }else {
  249. submit("TRAES01503");
  250. }
  251. ]]>
  252. </script>
  253. </select1>
  254. <select1 id="cmb_mdlcd" ref="/root/send/mdlcd" appearance="minimal" editmode="input" style="left:540px; top:6px; width:120px; height:19px; ">
  255. <choices>
  256. <itemset nodeset="/root/init/cmb_mdlcd/mdlcdlist">
  257. <label ref="cdnm"/>
  258. <value ref="cdid"/>
  259. </itemset>
  260. </choices>
  261. </select1>
  262. <caption id="caption3" class="search_name" style="left:900px; top:7px; width:60px; height:17px; ">분류 :</caption>
  263. <caption id="caption8" class="search_name" style="left:680px; top:7px; width:66px; height:17px; ">구분 :</caption>
  264. <select1 id="radio1" ref="/root/send/flag" appearance="full" cols="2" overflow="visible" style="left:745px; top:7px; width:140px; height:17px; border-style:none; ">
  265. <choices>
  266. <item>
  267. <label>촬영건수</label>
  268. <value>E</value>
  269. </item>
  270. <item>
  271. <label>부위건수</label>
  272. <value>B</value>
  273. </item>
  274. </choices>
  275. <script type="javascript" ev:event="onclick">
  276. <![CDATA[
  277. model.setValue("/root/send/flag2" , "");
  278. model.refresh();
  279. ]]>
  280. </script>
  281. </select1>
  282. <select1 id="rdo_partflag" ref="/root/send/partflag" appearance="full" cols="3" overflow="visible" style="left:965px; top:7px; width:134px; height:16px; border-style:none; ">
  283. <choices>
  284. <item>
  285. <label>전체</label>
  286. <value/>
  287. </item>
  288. <item>
  289. <label>영상</label>
  290. <value>R</value>
  291. </item>
  292. <item>
  293. <label>건진</label>
  294. <value>S</value>
  295. </item>
  296. </choices>
  297. </select1>
  298. </group>
  299. <caption id="caption4" ref="/root/temp/hints" style="left:116px; top:48px; width:625px; height:20px; color:#0000ff; ">caption3</caption>
  300. </group>
  301. </xhtml:body>
  302. </xhtml:html>