SMPMS03510_의료원산하병원그래프통계.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <?xml version="1.0" encoding="UTF-16"?>
  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>의료원 산하병원 그래프 통계 [최근 1년간]</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <search>
  11. <todd/>
  12. <fromdd/>
  13. <flag>A</flag>
  14. </search>
  15. </send>
  16. <main>
  17. <hospamt>
  18. <hospamtlist>
  19. <cdnm/>
  20. <m0/>
  21. <m1/>
  22. <m2/>
  23. <m3/>
  24. <m4/>
  25. <m5/>
  26. <m6/>
  27. <m7/>
  28. <m8/>
  29. <m9/>
  30. <m10/>
  31. <m11/>
  32. <m12/>
  33. </hospamtlist>
  34. </hospamt>
  35. </main>
  36. <hidden>
  37. <tmp/>
  38. <parsing>
  39. <month/>
  40. <서울병원/>
  41. <부천병원/>
  42. <천안병원/>
  43. <구미병원/>
  44. </parsing>
  45. </hidden>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. var cur_Date = getCurrentDate();
  51. var fromdd = cur_Date.toDate("YYYYMMDD").getAddDate(-1, "Y").getDateFormat("YYYYMMDD");//오늘날짜에서 1년을 뺀다
  52. var todd = cur_Date
  53. model.setValue("/root/send/search/fromdd" , fromdd);
  54. model.setValue("/root/send/search/todd", todd);
  55. fmonth();
  56. model.refresh();
  57. ]]>
  58. </script>
  59. <submission id="TRPMS03510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/hospamt"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  69. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  70. <script type="javascript">
  71. <![CDATA[
  72. function fmonth(){
  73. var todd= model.getValue("/root/send/search/todd");
  74. var fromdd= model.getValue("/root/send/search/fromdd");
  75. var month1, month2, month3, month4, month5, month6, month7, month8, month9, month10, month11, month12, month13;
  76. var month1 = todd.toDate().getAddDate(-12, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-12, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  77. var month2 = todd.toDate().getAddDate(-11, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-11, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  78. var month3 = todd.toDate().getAddDate(-10, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-10, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  79. var month4 = todd.toDate().getAddDate(-9, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-9, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  80. var month5 = todd.toDate().getAddDate(-8, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-8, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  81. var month6 = todd.toDate().getAddDate(-7, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-7, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  82. var month7 = todd.toDate().getAddDate(-6, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-6, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  83. var month8 = todd.toDate().getAddDate(-5, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-5, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  84. var month9 = todd.toDate().getAddDate(-4, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-4, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  85. var month10 = todd.toDate().getAddDate(-3, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-3, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  86. var month11 = todd.toDate().getAddDate(-2, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-2, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  87. var month12 = todd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  88. var month13 = todd.toDate().getAddDate(-0, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-0, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  89. //alert(month1+"/"+month2+"/"+month3+"/"+month4+"/"+month5+"/"+month6+"/"+month7+"/"+month8+"/"+month9+"/"+month10+"/");
  90. model.makeValue("/root/hidden/tmp/month1", month1);
  91. model.makeValue("/root/hidden/tmp/month2", month2);
  92. model.makeValue("/root/hidden/tmp/month3", month3);
  93. model.makeValue("/root/hidden/tmp/month4", month4);
  94. model.makeValue("/root/hidden/tmp/month5", month5);
  95. model.makeValue("/root/hidden/tmp/month6", month6);
  96. model.makeValue("/root/hidden/tmp/month7", month7);
  97. model.makeValue("/root/hidden/tmp/month8", month8);
  98. model.makeValue("/root/hidden/tmp/month9", month9);
  99. model.makeValue("/root/hidden/tmp/month10", month10);
  100. model.makeValue("/root/hidden/tmp/month11", month11);
  101. model.makeValue("/root/hidden/tmp/month12", month12);
  102. model.makeValue("/root/hidden/tmp/month13", month13);
  103. datagrid1.rebuildStyle();
  104. datagrid1.caption = "구분^"+month1+"^"+month2+"^"+month3+"^"+month4+"^"+month5+"^"+month6+"^"+month7+"^"+month8+"^"+month9+"^"+month10+"^"+month11+"^"+month12+"^"+month13
  105. model.refresh();
  106. datagrid1.refresh();
  107. }
  108. function parsing()
  109. {
  110. for( var i = 1; i < 14; i++){
  111. model.makeValue("/root/hidden/parsing["+i+"]/서울병원",model.getValue("/root/main/hospamt/hospamtlist[1]/m"+(i-1)));
  112. model.makeValue("/root/hidden/parsing["+i+"]/부천병원",model.getValue("/root/main/hospamt/hospamtlist[2]/m"+(i-1)));
  113. model.makeValue("/root/hidden/parsing["+i+"]/천안병원",model.getValue("/root/main/hospamt/hospamtlist[3]/m"+(i-1)));
  114. model.makeValue("/root/hidden/parsing["+i+"]/구미병원",model.getValue("/root/main/hospamt/hospamtlist[4]/m"+(i-1)));
  115. model.makeValue("/root/hidden/parsing["+i+"]/month", model.getValue("/root/hidden/tmp/month"+i));
  116. }
  117. }
  118. ]]>
  119. </script>
  120. <script type="javascript">
  121. <![CDATA[
  122. function viewchart(){
  123. TeeChart1.ClearChart();
  124. //TeeChart1.RemoveAllSeries();
  125. //TeeChart1.Axis.RemoveAllCustom();
  126. var todd= model.getValue("/root/send/search/todd");
  127. TeeChart1.Environment.MouseWheelScroll = false;
  128. //TeeChart1.Header.text = "외 래 환 자";
  129. TeeChart1.Aspect.View3D = 0;
  130. TeeChart1.Legend.Alignment = 4;
  131. TeeChart1.AddSeries(19);
  132. TeeChart1.AddSeries(19);
  133. TeeChart1.AddSeries(19);
  134. TeeChart1.AddSeries(19);
  135. for (i=1 ; i<14 ; i++){
  136. var xx1 = todd.toDate().getAddDate((-13+i), "M").getDateFormat("YYYYMMDD").substr(0,4) + "년" +todd.toDate().getAddDate((-13+i), "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
  137. var x1 = xx1;
  138. var x2 = xx1;
  139. var x3 = xx1;
  140. var x4 = xx1;
  141. //alert(x1);
  142. var y1 = model.getvalue("/root/main/hospamt/hospamtlist[1]/m"+(i-1));
  143. var y2 = model.getValue("/root/main/hospamt/hospamtlist[2]/m"+(i-1));
  144. var y3 = model.getValue("/root/main/hospamt/hospamtlist[3]/m"+(i-1));
  145. var y4 = model.getValue("/root/main/hospamt/hospamtlist[4]/m"+(i-1));
  146. //alert(model.getValue("/root/main/hospamt/hospamtlist[1]/m"+i));
  147. TeeChart1.Series(1).Color = window.rgb(i+10, i+50, 255)
  148. TeeChart1.Series(1).Title = "부천병원";
  149. TeeChart1.Series(1).Marks.visible = false;
  150. TeeChart1.Series(1).asPoint3D.pointer.Style=1
  151. TeeChart1.Series(0).Color = window.rgb(255, i+50, i+33)
  152. TeeChart1.Series(0).Title = "서울병원";
  153. TeeChart1.Series(0).Marks.visible = false;
  154. TeeChart1.Series(0).asPoint3D.pointer.Style=0
  155. TeeChart1.Series(2).Color = window.rgb(i+10, 100, 155)
  156. TeeChart1.Series(2).Title = "천안병원";
  157. TeeChart1.Series(2).Marks.visible = false;
  158. TeeChart1.Series(2).asPoint3D.pointer.Style=2
  159. TeeChart1.Series(3).Color = window.rgb(i+10, 255, 55)
  160. TeeChart1.Series(3).Title = "구미병원";
  161. TeeChart1.Series(3).Marks.visible = false;
  162. TeeChart1.Series(3).asPoint3D.pointer.Style=3
  163. TeeChart1.Series(3).Add ( y4, x1, TeeChart1.Series(3).Color);
  164. TeeChart1.Series(2).Add ( y3, x1, TeeChart1.Series(2).Color);
  165. TeeChart1.Series(1).Add ( y2, x1, TeeChart1.Series(1).Color);
  166. TeeChart1.Series(0).Add ( y1, x1, TeeChart1.Series(0).Color);
  167. TeeChart1.Axis.Bottom.SetMinMax (0, 12); //일년동안 좌표를 표현
  168. TeeChart1.Axis.Bottom.Increment = 1;
  169. TeeChart1.Axis.Bottom.MinorTickCount = 0;
  170. TeeChart1.Axis.Bottom.Labels.add(i-1,xx1);
  171. }
  172. }
  173. ]]>
  174. </script>
  175. </xhtml:head>
  176. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  177. <group id="group3" style="left:0px; top:0px; width:1185px; height:13px; ">
  178. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:269px; height:14px; font-family:돋움; vertical-align:middle; ">의료원 산하병원 그래프 통계 [최근 1년간]</caption>
  179. </group>
  180. <group id="group5" style="left:0px; top:25px; width:1195px; height:37px; ">
  181. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  182. <caption id="caption10" class="search_name" style="left:10px; top:10px; width:100px; height:17px; ">조회일자 :</caption>
  183. <button id="button5" class="btn1_letter2" style="left:1118px; top:7px; width:56px; height:22px; ">
  184. <caption>조회</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. submit("TRPMS03510");
  188. viewchart();
  189. parsing();
  190. ]]>
  191. </script>
  192. </button>
  193. <input id="input8" ref="/root/send/search/fromdd" class="input_default" navindex="7" inputtype="date" style="left:103px; top:9px; width:90px; height:19px; ">
  194. <script type="javascript" ev:event="onkeydown">
  195. <![CDATA[
  196. if( event.keyCode == 13 ) {
  197. var pCurTargetObj = event.ptarget.parent;
  198. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  199. event.keyCode = 9;
  200. pCurTargetObj.dispatch("onkeydown");
  201. }
  202. else {
  203. event.keyCode = 9;
  204. }
  205. }
  206. event.stopPropagation();
  207. ]]>
  208. </script>
  209. <script type="javascript" ev:event="xforms-value-changed">
  210. <![CDATA[
  211. var fromdd = model.getValue("/root/send/search/fromdd");//시작일자
  212. var newtodd = fromdd.toDate().getAddDate(+1, "Y").getDateFormat("YYYYMMDD");//새로운종료일자
  213. model.setValue("/root/send/search/todd",newtodd);
  214. fmonth();
  215. model.refresh();
  216. ]]>
  217. </script>
  218. </input>
  219. <input id="input9" ref="/root/send/search/todd" class="input_default" navindex="7" inputtype="date" style="left:218px; top:9px; width:90px; height:19px; ">
  220. <script type="javascript" ev:event="onkeydown">
  221. <![CDATA[
  222. if( event.keyCode == 13 ) {
  223. var pCurTargetObj = event.ptarget.parent;
  224. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  225. event.keyCode = 9;
  226. pCurTargetObj.dispatch("onkeydown");
  227. }
  228. else {
  229. event.keyCode = 9;
  230. }
  231. }
  232. event.stopPropagation();
  233. ]]>
  234. </script>
  235. <script type="javascript" ev:event="xforms-value-changed">
  236. <![CDATA[
  237. var todd = model.getValue("/root/send/search/todd");//종료일자
  238. var newfromdd = todd.toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD");//새로운시작일자
  239. model.setValue("/root/send/search/fromdd",newfromdd);
  240. fmonth();
  241. model.refresh();
  242. ]]>
  243. </script>
  244. </input>
  245. <caption id="caption1" style="left:200px; top:11px; width:15px; height:20px; ">~</caption>
  246. <caption id="caption2" class="search_name" style="left:350px; top:10px; width:100px; height:17px; ">구분 :</caption>
  247. <select1 id="radio1" ref="/root/send/search/flag" overflow="visible" appearance="full" cellspacing="6" cols="6" style="left:420px; top:10px; width:600px; height:20px; border-style:none; ">
  248. <choices>
  249. <item>
  250. <label>외래환자</label>
  251. <value>A</value>
  252. </item>
  253. <item>
  254. <label>입원환자</label>
  255. <value>B</value>
  256. </item>
  257. <item>
  258. <label>외래수입[검진포함]</label>
  259. <value>C</value>
  260. </item>
  261. <item>
  262. <label>입원수입</label>
  263. <value>D</value>
  264. </item>
  265. <item>
  266. <label>총수입[검진포함]</label>
  267. <value>E</value>
  268. </item>
  269. <item>
  270. <label>총수입[검진제외]</label>
  271. <value>F</value>
  272. </item>
  273. </choices>
  274. </select1>
  275. </group>
  276. <line id="line8" class="line_1" style="x1:0px; y1:90px; x2:1195px; y2:90px; "/>
  277. <datagrid id="datagrid1" nodeset="/root/main/hospamt/hospamtlist" caption="구분^^^^^^^^^^^^^" colsep="^" colwidth="114, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83" dataheight="25" defaultrows="2" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:95px; width:1195px; height:200; ">
  278. <col ref="cdnm" style="text-align:center; "/>
  279. <col ref="m0" format="#,###" style="text-align:right; "/>
  280. <col ref="m1" format="#,###" style="text-align:right; "/>
  281. <col ref="m2" format="#,###" style="text-align:right; "/>
  282. <col ref="m3" format="#,###" style="text-align:right; "/>
  283. <col ref="m4" format="#,###" style="text-align:right; "/>
  284. <col ref="m5" format="#,###" style="text-align:right; "/>
  285. <col ref="m6" format="#,###" style="text-align:right; "/>
  286. <col ref="m7" format="#,###" style="text-align:right; "/>
  287. <col ref="m8" format="#,###" style="text-align:right; "/>
  288. <col ref="m9" format="#,###" style="text-align:right; "/>
  289. <col ref="m10" format="#,###" style="text-align:right; "/>
  290. <col ref="m11" format="#,###" style="text-align:right; "/>
  291. <col ref="m12" format="#,###" style="text-align:right; "/>
  292. </datagrid>
  293. <object id="TeeChart1" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" style="left:0px; top:320px; width:1195; height:500; "/>
  294. <button id="button2" class="btn2_letter2" style="left:1153px; top:66px; width:42px; height:19px; ">
  295. <caption>출력</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. exeReportPreview("RPPMS14015", "XMLSTR" , "" , "" , "false" , "", "", "", "", "", "", "");
  299. ]]>
  300. </script>
  301. </button>
  302. <caption id="caption7" class="tit_2" style="left:10px; top:71px; width:271px; height:14px; ">의료원 산하병원 그래프 통계 [최근 1년간]</caption>
  303. </xhtml:body>
  304. </xhtml:html>