123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>재활의학팀치료건수</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <item>
- <curerm/>
- <intestexeccnt/>
- <outtestexeccnt/>
- <sumcnt/>
- <totexeccnt/>
- <totrsrvcnt/>
- <comparerate/>
- </item>
- </list>
- </main>
- <send>
- <srchdate/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- <execfromdd/>
- <exectodd/>
- <comparefromdd/>
- <comparetodd/>
- <orddeptcd/>
- <fstpatyn/>
- <curerm/>
- <curedr/>
- <prcpcd/>
- <execdrid/>
- <srchflag>T</srchflag>
- <srchtab/>
- </send>
- <inti/>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- // 진료과/진료의 조회
- // submit("TRPMOCOM01", false);
- submit("TRAES09000", false);
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
-
- var fromdd = getCurrentDate().substr(0,4) + "0101"
- var todd = getCurrentDate().substr(0,6) + fromdd.toDate().getMonthDay();
- var comparefromdd = getCurrentDate().substr(0,6).toDate().getAddDate(0,"Y").getDateFormat("YYYY") + "0101";
- var comparetodd = comparefromdd.substr(0,4) + todd.substr(4,4);
-
- addComboItem("cmb_orddept","--전체--","","above");
- addComboItem("cmb_curerm","--전체--","","above");
- addComboItem("cmb_execdrid","--전체--","","above");
-
- model.removenode("/root/main/list");
-
- model.setValue("/root/send/fstpatyn","");
- model.setValue("/root/send/srchflag","P");
- model.setValue("/root/send/execfromdd", fromdd);
- model.setValue("/root/send/exectodd", todd);
- model.setValue("/root/send/comparefromdd",comparefromdd);
- model.setValue("/root/send/comparetodd",comparetodd);
- model.refresh();
- ]]>
- </script>
- <submission id="TRAES01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <submission id="TRAES09000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/inti"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">재활의학팀치료건수</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:200px; height:13px; ">재활의학팀치료 환자수</caption>
- <button id="btn_excsave" class="btn2_letter4" visibility="hidden" style="left:1130px; top:45px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_list.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
- <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:52px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removenode("/root/main/list");
- //"/root/send/srchtab" R:치료실,C:치료코드,D:처방과,E:치료사
- model.setValue("/root/send/srchtab","R");
- if (submit("TRAES01101")) {
-
- var cnt = getNodesetCount("/root/main/list/item");
- if (cnt > 1) {
- datagrid1.subtotal("sum", -1, 1, "#,###", "background-color:#99ff99", 0, "합계");
- for(i=2; i<=9; i++) {
- datagrid1.subtotal("sum", -1, i, "(-)#,###");
- }
-
- var intestexeccnt = datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("intestexeccnt"));
- var outtestexeccnt = datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("outtestexeccnt"));
- var sumprcp = datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("sumcnt"));
-
- var intotexeccnt = datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("intotexeccnt"));
- var outtotexeccnt = datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("outtotexeccnt"));
- var totexeccnt = datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("totexeccnt"));
-
- var incomparerate = ( ( parseInt(intestexeccnt) - parseInt(intotexeccnt) ) / parseInt(intotexeccnt) ) * 100;
- var outcomparerate = ( ( parseInt(outtestexeccnt) - parseInt(outtotexeccnt) ) / parseInt(outtotexeccnt) ) * 100;
- var comparerate = ( ( parseInt(sumprcp) - parseInt(totexeccnt) ) / parseInt(totexeccnt) ) * 100;
- if ((incomparerate != "Infinity")) {
- datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("incomparerate")) = incomparerate.toString().getRound(-1,"HALF_UP");
- } else {
- datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("incomparerate")) = 0;
- }
- datagrid1.cellformat (datagrid1.rows-1, datagrid1.colRef("incomparerate")) = "(-)#,###.#%";
-
- if ((outcomparerate != "Infinity")) {
- datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("outcomparerate")) = outcomparerate.toString().getRound(-1,"HALF_UP");
- } else {
- datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("outcomparerate")) = 0;
- }
- datagrid1.cellformat (datagrid1.rows-1, datagrid1.colRef("outcomparerate")) = "(-)#,###.#%";
-
- if ((comparerate != "Infinity")) {
- datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("comparerate")) = comparerate.toString().getRound(-1,"HALF_UP");
- } else {
- datagrid1.valueMatrix(datagrid1.rows-1, datagrid1.colRef("comparerate")) = 0;
- }
- datagrid1.cellformat (datagrid1.rows-1, datagrid1.colRef("comparerate")) = "(-)#,###.#%";
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" style="left:227px; top:9px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var exectodd = model.getValue("/root/send/exectodd");
- var execfromdd = model.getValue("/root/send/execfromdd");
- if (execfromdd > exectodd) {
- messageBox("조회기간 종료일자가 조회기간 시작일자 이전 일자입니다.", "I");
- model.setValue("/root/send/exectodd",execfromdd);
- exectodd = execfromdd;
- }
-
- // var comparetodd = exectodd.toDate().getAddDate(-1,"Y").getDateFormat("YYYYMMDD");
- // model.setValue("/root/send/comparetodd",comparetodd);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_no_b" style="left:212px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" style="left:109px; top:9px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var execfromdd = model.getValue("/root/send/execfromdd");
- var exectodd = model.getValue("/root/send/exectodd");
- if (execfromdd > exectodd) {
- messageBox("조회기간 시작일자가 조회기간 종료일자 이후 일자입니다.", "I");
- model.setValue("/root/send/execfromdd",exectodd);
- execfromdd = exectodd;
- }
-
- // var comparefromdd = execfromdd.toDate().getAddDate(-1,"Y").getDateFormat("YYYYMMDD");
- // model.setValue("/root/send/comparefromdd",comparefromdd);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">비교기간 :</caption>
- <input id="input1" ref="/root/send/comparetodd" class="input_default" navindex="2" inputtype="date" style="left:227px; top:33px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var comparefromdd = model.getValue("/root/send/comparefromdd");
- var comparetodd = model.getValue("/root/send/comparetodd");
- if (comparefromdd > comparetodd) {
- messageBox("비교조회기간 종료일자가 비교조회기간 시작일자 이전 일자입니다.", "I");
- model.setValue("/root/send/comparetodd",comparefromdd);
- comparetodd = comparefromdd;
- }
-
- // var exectodd = comparetodd.toDate().getAddDate(1,"Y").getDateFormat("YYYYMMDD");
- // model.setValue("/root/send/exectodd",exectodd);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_no_b" style="left:212px; top:33px; width:12px; height:17px; ">~</caption>
- <input id="input2" ref="/root/send/comparefromdd" class="input_default" navindex="1" inputtype="date" style="left:109px; top:33px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var comparefromdd = model.getValue("/root/send/comparefromdd");
- var comparetodd = model.getValue("/root/send/comparetodd");
- if (comparefromdd > comparetodd) {
- messageBox("비교조회기간 시작일자가 비교조회기간 종료일자 이후 일자입니다.", "I");
- model.setValue("/root/send/comparefromdd",comparetodd);
- comparefromdd = comparetodd;
- }
-
- // var execfromdd = comparefromdd.toDate().getAddDate(1,"Y").getDateFormat("YYYYMMDD");
- // model.setValue("/root/send/execfromdd",execfromdd);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:340px; top:10px; width:86px; height:17px; ">처방과 :</caption>
- <caption id="caption8" class="search_name" style="left:550px; top:10px; width:86px; height:17px; ">치료실 :</caption>
- <caption id="caption9" class="search_name" style="left:340px; top:33px; width:86px; height:17px; ">치료사 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/orddeptcd" appearance="minimal" itemcount="10" style="left:420px; top:9px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '"+ cmb_orddept.value +"']";
- // cmb_orddr.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_execdrid" ref="/root/send/execdrid" appearance="minimal" itemcount="10" style="left:420px; top:33px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/execdrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_curerm" ref="/root/send/curerm" appearance="minimal" itemcount="10" style="left:630px; top:9px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/curerm">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="search_name" style="left:885px; top:10px; width:86px; height:17px; ">구분 :</caption>
- <select1 id="radio1" ref="/root/send/fstpatyn" appearance="full" cols="3" overflow="visible" style="left:950px; top:11px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>초환</label>
- <value>F</value>
- </item>
- <item>
- <label>재환</label>
- <value>R</value>
- </item>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/list/item" caption="치료실^치료건수^치료건수^치료건수^비교기간건수^비교기간건수^비교기간건수^증감^증감^증감^caption1^증감율^증감율^증감율|치료실^입원^외래^합계^입원^외래^합계^입원^외래^합계^caption1^입원^외래^합계" colsep="^" colwidth="166, 84, 84, 84, 84, 84, 84, 84, 84, 84, 0, 84, 84, 84" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:0px; top:100px; width:1195px; height:640px; ">
- <col ref="curerm"/>
- <col ref="intestexeccnt" format="#,###" style="text-align:right; "/>
- <col ref="outtestexeccnt" format="#,###" style="text-align:right; "/>
- <col ref="sumcnt" format="#,###" style="text-align:right; "/>
- <col ref="intotexeccnt" format="#,###" style="text-align:right; "/>
- <col ref="outtotexeccnt" format="#,###" style="text-align:right; "/>
- <col ref="totexeccnt" format="#,###" style="text-align:right; "/>
- <col ref="intotrsrvcnt" format="(-)#,###" style="text-align:right; "/>
- <col ref="outtotrsrvcnt" format="(-)#,###" style="text-align:right; "/>
- <col ref="totrsrvcnt" format="(-)#,###" style="text-align:right; "/>
- <col ref="sumtest" visibility="hidden"/>
- <col ref="incomparerate" format="(-)#,###.#%" style="text-align:right; "/>
- <col ref="outcomparerate" format="(-)#,###.#%" style="text-align:right; "/>
- <col ref="comparerate" format="(-)#,###.#%" style="text-align:right; "/>
- </datagrid>
- <button id="button1" class="btn2_letter4" style="left:1131px; top:75px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- datagrid1.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|