123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <?xml version="1.0" encoding="UTF-16"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>의료원 산하병원 그래프 통계 [최근 1년간]</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <search>
- <todd/>
- <fromdd/>
- <flag>A</flag>
- </search>
- </send>
- <main>
- <hospamt>
- <hospamtlist>
- <cdnm/>
- <m0/>
- <m1/>
- <m2/>
- <m3/>
- <m4/>
- <m5/>
- <m6/>
- <m7/>
- <m8/>
- <m9/>
- <m10/>
- <m11/>
- <m12/>
- </hospamtlist>
- </hospamt>
- </main>
- <hidden>
- <tmp/>
- <parsing>
- <month/>
- <서울병원/>
- <부천병원/>
- <천안병원/>
- <구미병원/>
- </parsing>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var cur_Date = getCurrentDate();
- var fromdd = cur_Date.toDate("YYYYMMDD").getAddDate(-1, "Y").getDateFormat("YYYYMMDD");//오늘날짜에서 1년을 뺀다
- var todd = cur_Date
- model.setValue("/root/send/search/fromdd" , fromdd);
- model.setValue("/root/send/search/todd", todd);
- fmonth();
- model.refresh();
- ]]>
- </script>
- <submission id="TRPMS03510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/hospamt"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- function fmonth(){
- var todd= model.getValue("/root/send/search/todd");
- var fromdd= model.getValue("/root/send/search/fromdd");
-
- var month1, month2, month3, month4, month5, month6, month7, month8, month9, month10, month11, month12, month13;
-
- var month1 = todd.toDate().getAddDate(-12, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-12, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month2 = todd.toDate().getAddDate(-11, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-11, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month3 = todd.toDate().getAddDate(-10, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-10, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month4 = todd.toDate().getAddDate(-9, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-9, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month5 = todd.toDate().getAddDate(-8, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-8, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month6 = todd.toDate().getAddDate(-7, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-7, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month7 = todd.toDate().getAddDate(-6, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-6, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month8 = todd.toDate().getAddDate(-5, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-5, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month9 = todd.toDate().getAddDate(-4, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-4, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month10 = todd.toDate().getAddDate(-3, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-3, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month11 = todd.toDate().getAddDate(-2, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-2, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month12 = todd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- var month13 = todd.toDate().getAddDate(-0, "M").getDateFormat("YYYYMMDD").substr(0,4) + "년 " +todd.toDate().getAddDate(-0, "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
- //alert(month1+"/"+month2+"/"+month3+"/"+month4+"/"+month5+"/"+month6+"/"+month7+"/"+month8+"/"+month9+"/"+month10+"/");
- model.makeValue("/root/hidden/tmp/month1", month1);
- model.makeValue("/root/hidden/tmp/month2", month2);
- model.makeValue("/root/hidden/tmp/month3", month3);
- model.makeValue("/root/hidden/tmp/month4", month4);
- model.makeValue("/root/hidden/tmp/month5", month5);
- model.makeValue("/root/hidden/tmp/month6", month6);
- model.makeValue("/root/hidden/tmp/month7", month7);
- model.makeValue("/root/hidden/tmp/month8", month8);
- model.makeValue("/root/hidden/tmp/month9", month9);
- model.makeValue("/root/hidden/tmp/month10", month10);
- model.makeValue("/root/hidden/tmp/month11", month11);
- model.makeValue("/root/hidden/tmp/month12", month12);
- model.makeValue("/root/hidden/tmp/month13", month13);
-
-
- datagrid1.rebuildStyle();
- datagrid1.caption = "구분^"+month1+"^"+month2+"^"+month3+"^"+month4+"^"+month5+"^"+month6+"^"+month7+"^"+month8+"^"+month9+"^"+month10+"^"+month11+"^"+month12+"^"+month13
- model.refresh();
- datagrid1.refresh();
- }
- function parsing()
- {
- for( var i = 1; i < 14; i++){
- model.makeValue("/root/hidden/parsing["+i+"]/서울병원",model.getValue("/root/main/hospamt/hospamtlist[1]/m"+(i-1)));
- model.makeValue("/root/hidden/parsing["+i+"]/부천병원",model.getValue("/root/main/hospamt/hospamtlist[2]/m"+(i-1)));
- model.makeValue("/root/hidden/parsing["+i+"]/천안병원",model.getValue("/root/main/hospamt/hospamtlist[3]/m"+(i-1)));
- model.makeValue("/root/hidden/parsing["+i+"]/구미병원",model.getValue("/root/main/hospamt/hospamtlist[4]/m"+(i-1)));
- model.makeValue("/root/hidden/parsing["+i+"]/month", model.getValue("/root/hidden/tmp/month"+i));
- }
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function viewchart(){
- TeeChart1.ClearChart();
- //TeeChart1.RemoveAllSeries();
- //TeeChart1.Axis.RemoveAllCustom();
- var todd= model.getValue("/root/send/search/todd");
- TeeChart1.Environment.MouseWheelScroll = false;
- //TeeChart1.Header.text = "외 래 환 자";
-
- TeeChart1.Aspect.View3D = 0;
- TeeChart1.Legend.Alignment = 4;
- TeeChart1.AddSeries(19);
- TeeChart1.AddSeries(19);
- TeeChart1.AddSeries(19);
- TeeChart1.AddSeries(19);
-
- for (i=1 ; i<14 ; i++){
- var xx1 = todd.toDate().getAddDate((-13+i), "M").getDateFormat("YYYYMMDD").substr(0,4) + "년" +todd.toDate().getAddDate((-13+i), "M").getDateFormat("YYYYMMDD").substr(4,2) + "월";//작년일자
-
- var x1 = xx1;
- var x2 = xx1;
- var x3 = xx1;
- var x4 = xx1;
- //alert(x1);
-
- var y1 = model.getvalue("/root/main/hospamt/hospamtlist[1]/m"+(i-1));
- var y2 = model.getValue("/root/main/hospamt/hospamtlist[2]/m"+(i-1));
- var y3 = model.getValue("/root/main/hospamt/hospamtlist[3]/m"+(i-1));
- var y4 = model.getValue("/root/main/hospamt/hospamtlist[4]/m"+(i-1));
- //alert(model.getValue("/root/main/hospamt/hospamtlist[1]/m"+i));
-
-
- TeeChart1.Series(1).Color = window.rgb(i+10, i+50, 255)
- TeeChart1.Series(1).Title = "부천병원";
- TeeChart1.Series(1).Marks.visible = false;
- TeeChart1.Series(1).asPoint3D.pointer.Style=1
-
- TeeChart1.Series(0).Color = window.rgb(255, i+50, i+33)
- TeeChart1.Series(0).Title = "서울병원";
- TeeChart1.Series(0).Marks.visible = false;
- TeeChart1.Series(0).asPoint3D.pointer.Style=0
-
- TeeChart1.Series(2).Color = window.rgb(i+10, 100, 155)
- TeeChart1.Series(2).Title = "천안병원";
- TeeChart1.Series(2).Marks.visible = false;
- TeeChart1.Series(2).asPoint3D.pointer.Style=2
-
- TeeChart1.Series(3).Color = window.rgb(i+10, 255, 55)
- TeeChart1.Series(3).Title = "구미병원";
- TeeChart1.Series(3).Marks.visible = false;
- TeeChart1.Series(3).asPoint3D.pointer.Style=3
- TeeChart1.Series(3).Add ( y4, x1, TeeChart1.Series(3).Color);
- TeeChart1.Series(2).Add ( y3, x1, TeeChart1.Series(2).Color);
- TeeChart1.Series(1).Add ( y2, x1, TeeChart1.Series(1).Color);
- TeeChart1.Series(0).Add ( y1, x1, TeeChart1.Series(0).Color);
-
- TeeChart1.Axis.Bottom.SetMinMax (0, 12); //일년동안 좌표를 표현
- TeeChart1.Axis.Bottom.Increment = 1;
- TeeChart1.Axis.Bottom.MinorTickCount = 0;
-
- TeeChart1.Axis.Bottom.Labels.add(i-1,xx1);
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" style="left:0px; top:0px; width:1185px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:269px; height:14px; font-family:돋움; vertical-align:middle; ">의료원 산하병원 그래프 통계 [최근 1년간]</caption>
- </group>
- <group id="group5" style="left:0px; top:25px; width:1195px; height:37px; ">
- <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; "/>
- <caption id="caption10" class="search_name" style="left:10px; top:10px; width:100px; height:17px; ">조회일자 :</caption>
- <button id="button5" class="btn1_letter2" style="left:1118px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPMS03510");
- viewchart();
- parsing();
- ]]>
- </script>
- </button>
- <input id="input8" ref="/root/send/search/fromdd" class="input_default" navindex="7" inputtype="date" style="left:103px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
-
- var pCurTargetObj = event.ptarget.parent;
-
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }
- else {
-
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var fromdd = model.getValue("/root/send/search/fromdd");//시작일자
- var newtodd = fromdd.toDate().getAddDate(+1, "Y").getDateFormat("YYYYMMDD");//새로운종료일자
- model.setValue("/root/send/search/todd",newtodd);
- fmonth();
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input9" ref="/root/send/search/todd" class="input_default" navindex="7" inputtype="date" style="left:218px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
-
- var pCurTargetObj = event.ptarget.parent;
-
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }
- else {
-
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var todd = model.getValue("/root/send/search/todd");//종료일자
- var newfromdd = todd.toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD");//새로운시작일자
- model.setValue("/root/send/search/fromdd",newfromdd);
- fmonth();
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption1" style="left:200px; top:11px; width:15px; height:20px; ">~</caption>
- <caption id="caption2" class="search_name" style="left:350px; top:10px; width:100px; height:17px; ">구분 :</caption>
- <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; ">
- <choices>
- <item>
- <label>외래환자</label>
- <value>A</value>
- </item>
- <item>
- <label>입원환자</label>
- <value>B</value>
- </item>
- <item>
- <label>외래수입[검진포함]</label>
- <value>C</value>
- </item>
- <item>
- <label>입원수입</label>
- <value>D</value>
- </item>
- <item>
- <label>총수입[검진포함]</label>
- <value>E</value>
- </item>
- <item>
- <label>총수입[검진제외]</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- </group>
- <line id="line8" class="line_1" style="x1:0px; y1:90px; x2:1195px; y2:90px; "/>
- <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; ">
- <col ref="cdnm" style="text-align:center; "/>
- <col ref="m0" format="#,###" style="text-align:right; "/>
- <col ref="m1" format="#,###" style="text-align:right; "/>
- <col ref="m2" format="#,###" style="text-align:right; "/>
- <col ref="m3" format="#,###" style="text-align:right; "/>
- <col ref="m4" format="#,###" style="text-align:right; "/>
- <col ref="m5" format="#,###" style="text-align:right; "/>
- <col ref="m6" format="#,###" style="text-align:right; "/>
- <col ref="m7" format="#,###" style="text-align:right; "/>
- <col ref="m8" format="#,###" style="text-align:right; "/>
- <col ref="m9" format="#,###" style="text-align:right; "/>
- <col ref="m10" format="#,###" style="text-align:right; "/>
- <col ref="m11" format="#,###" style="text-align:right; "/>
- <col ref="m12" format="#,###" style="text-align:right; "/>
- </datagrid>
- <object id="TeeChart1" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" style="left:0px; top:320px; width:1195; height:500; "/>
- <button id="button2" class="btn2_letter2" style="left:1153px; top:66px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPMS14015", "XMLSTR" , "" , "" , "false" , "", "", "", "", "", "", "");
- ]]>
- </script>
- </button>
- <caption id="caption7" class="tit_2" style="left:10px; top:71px; width:271px; height:14px; ">의료원 산하병원 그래프 통계 [최근 1년간]</caption>
- </xhtml:body>
- </xhtml:html>
|