123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- <?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>
- <inpt>
- <inptlist/>
- </inpt>
- <cond>
- <fromdd/>
- <todd/>
- <deptcd/>
- <srchflag/>
- <flag>Y</flag>
- </cond>
- <dept>
- <deptlist>
- <seq/>
- <deptengabbr/>
- </deptlist>
- </dept>
- <dsch>
- <dschlist/>
- </dsch>
- </main>
- <send>
- </send>
- <init/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var curdd = getCurrentDate();
- var fromdd = curdd.substr(0,4) + "0101";
- var todd = curdd.substr(0,4) + "1231";
-
- model.setValue(ipt_fromdd.attribute("ref"), fromdd);
- model.setValue(ipt_todd.attribute("ref") , todd);
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- //submit("TRMNW10802");
-
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'W';
- var rslt_ref = "/root/init/dept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- var dt = getCurrentDate();
-
- /////zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method); //부서코드 콤보조회
- /////zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
- // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref , sort_field, sort_method, dt);
-
-
-
- addComboItem("cmb_orddept", "전 체", "", "above");
-
- cmb_orddept.value = getUserInfo("dutplcecd");
-
- fSearch();
-
-
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- <submission id="TRMNW10802" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/dept"/>
- <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRSNW00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/inpt"/>
- <submission id="TRSNW00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dsch"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var flag="1";
-
- function getAddDay(inputday,addend){
- var backDate ="";
- var rt = 0;
- var yyyy = inputday.substring(0,4) +"";
- var mm = inputday.substring(4,6) +"";
- var dd = inputday.substring(6,8) +"";
- var startDate = new Date(yyyy,(eval(mm)-1),dd);
- startDate.setTime(startDate.getTime()+(86400000*addend));
- NowYear = startDate.getYear();// 년
- NowMonth = startDate.getMonth()+1;// 월
- NowDay = startDate.getDate(); // 일
- backDate += NowYear ; //년도
- if (NowMonth < 10 ) backDate += "0" + NowMonth ;
- else backDate += (startDate.getMonth() + 1);
- if (NowDay < 10 ) backDate += "0" + NowDay ;
- else backDate += (startDate.getDate());
- return backDate ;
- }
- function fSearch() {
-
- var deptcd = model.getValue(cmb_orddept.attribute("ref"));
-
- if(deptcd== null || deptcd == "") {
- messageBox("병동을 선택하십시오.", "I");
- return;
- }
-
-
- model.makeValue("/root/send/reqdata/fromdd", model.getValue(ipt_fromdd.attribute("ref")));
- model.makeValue("/root/send/reqdata/todd" , model.getValue(ipt_todd.attribute("ref")));
-
- model.makeValue("/root/send/reqdata/deptcd", model.getValue(cmb_orddept.attribute("ref")));
-
- if(flag == "1") {
- submit("TRSNW00701");
-
- var deptnm="";
- for(var i = grd_inptlist.fixedRows; i < grd_inptlist.rows; i++) {
- deptnm = grd_inptlist.valueMatrix(i, grd_inptlist.colRef("deptnm"));
-
- if(deptnm == "계" || deptnm == "평균재원일수(일)") {
- grd_inptlist.rowStyle(i, "data", "background-color") = "#eeffee";
- }
-
- }
-
- } else if(flag =="2") {
- submit("TRSNW00702");
- grd_dschlist.subtotalPosition="below";
- for(var i = grd_dschlist.colRef("inptmcnt"); i <= grd_dschlist.colRef("totoutrmcnt"); i++) {
-
- grd_dschlist.subtotal("sum", -1, i, "#,###.##", "background-color:#eeffee; font-weight:bold", grd_dschlist.colRef("deptnm"), "합계");
- }
- }
-
-
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,822;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:158px; height:15px; ">연보통계</caption>
- </group>
- <group id="group2" style="left:0px; top:13px; width:1194px; height:719px; vertical-align:top; ">
- <group id="group3" style="left:0px; top:10px; width:1190px; height:37px; font-family:돋움체; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:37px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_default" navindex="1" inputtype="date" style="left:100px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">업무일자 :</caption>
- <button id="btn_srch" class="btn1_letter2" navindex="5" style="left:1065px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <button id="button24" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(flag == "1") {
- fileName = window.fileDialog("save", ",", false, "과별입실현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_inptlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- } else {
- fileName = window.fileDialog("save", ",", false, "과별퇴실현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_dschlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1055px; y1:7px; x2:1055px; y2:29px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_default" navindex="1" inputtype="date" style="left:220px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:205px; top:9px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/deptcd" appearance="minimal" style="left:565px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:475px; top:10px; width:86px; height:17px; ">부서코드 :</caption>
- <select1 id="rdo_flag" ref="/root/main/cond/flag" appearance="full" cols="3" overflow="visible" style="left:325px; top:12px; width:140px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>연간</label>
- <value>Y</value>
- </item>
- <item>
- <label>월간</label>
- <value>M</value>
- </item>
- <item>
- <label>일간</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var curdd = getCurrentDate();
- var fromdd;
- var todd;
- var dd;
- var flag = isLeapYear(curdd.substr(4,2));
-
- if(flag) {
- dd ="29";
- } else {
- dd = "28";
- }
-
-
- if(rdo_flag.value == "Y") {
- fromdd = curdd.substr(0,4) + "0101";
- todd = curdd.substr(0,4) + "1231";
- } else if(rdo_flag.value =="M") {
- switch(curdd.substr(4,2)) {
- case "01":
- case "03":
- case "05":
- case "07":
- case "08":
- case "10":
- case "12":
- dd = "31";
- break;
- case "04":
- case "06":
- case "09":
- case "11":
- dd = "30";
- break;
- case "02":
-
- break;
- default :
- dd = "30";
- }
- fromdd = curdd.substr(0,6) + "01";
- todd = curdd.substr(0,6) + dd;
- } else if(rdo_flag.value =="D") {
- fromdd = getCurrentDate();
- todd = getCurrentDate();
- }
-
- model.setValue(ipt_fromdd.attribute("ref"), fromdd );
- model.setValue(ipt_todd.attribute("ref"), todd );
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_case1" class="btn_sw" group="tab1" selected="true" style="left:0px; top:65px; width:100px; height:22px; ">
- <caption>과별입실현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- flag = "1";
- model.toggle("case1");
- fSearch();
- ]]>
- </script>
- </button>
- <button id="btn_case2" class="btn_sw" group="tab1" style="left:100px; top:65px; width:100px; height:22px; ">
- <caption>과별퇴실현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- flag="2";
- model.toggle("case2");
- fSearch();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:85px; width:1191px; height:630px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_inptlist" nodeset="/root/main/inpt/inptlist" caption="월별^1^1^2^2^3^3^4^4^5^5^6^6^7^7^8^8^9^9^10^10^11^11^12^12^전체^전체|과별^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원" colsep="^" colwidth="110, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 48, 51" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1180px; height:595px; font-family:굴림체; vertical-align:middle; ">
- <col ref="deptnm"/>
- <col ref="inptcnt1" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt1" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt2" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt2" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt3" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt3" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt4" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt4" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt5" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt5" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt6" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt6" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt7" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt7" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt8" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt8" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt9" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt9" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt10" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt10" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt11" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt11" format="#,###.##" style="text-align:right; "/>
- <col ref="inptcnt12" format="#,###.##" style="text-align:right; "/>
- <col ref="totingcnt12" format="#,###.##" style="text-align:right; "/>
- <col ref="suminptcnt" style="text-align:right; "/>
- <col ref="sumtotingcnt" style="text-align:right; "/>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:0px; top:10px; width:100px; height:13px; font-family:굴림체; ">과별입실현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1180px; y2:25px; font-family:굴림체; "/>
- </case>
- <case id="case2">
- <datagrid id="grd_dschlist" nodeset="/root/main/dsch/dschlist" caption="과별/구분^입실^입실^퇴실^퇴실^퇴실^퇴실^퇴실^퇴실^퇴실|과별/구분^남^여^전실^사망^임종퇴원^자의퇴원^전원^퇴원^계" colsep="^" colwidth="110, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1180px; height:595px; font-family:굴림체; vertical-align:middle; ">
- <col ref="deptnm"/>
- <col ref="inptmcnt"/>
- <col ref="inptfcnt"/>
- <col ref="trnsoutcnt"/>
- <col ref="dethdschcnt"/>
- <col ref="diedschcnt"/>
- <col ref="hopedschcnt"/>
- <col ref="trnshosdschcnt"/>
- <col ref="nodethdschcnt"/>
- <col ref="totoutrmcnt" style="background-color:#eeffee; "/>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:0px; top:10px; width:100px; height:14px; font-family:굴림체; ">과별퇴실현황</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:1180px; y2:25px; font-family:굴림체; "/>
- </case>
- </switch>
- </group>
- </xhtml:body>
- </xhtml:html>
|