123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <cond>
- <fromdd/>
- <todd/>
- <srchflag>A</srchflag>
- <srchtext/>
- <wardcd/>
- </cond>
- <patinfo>
- <patlist>
- <roomcd/>
- <hngnm/>
- <sexage/>
- <pid/>
- <orddeptnm/>
- <diagnm/>
- <fromdd/>
- <bfroomcd/>
- <todd/>
- <afterroom/>
- <staycnt/>
- <incnt/>
- <wardcd/>
- <orddeptcd/>
- <bfwardcd/>
- </patlist>
- </patinfo>
- <cntlist>
- <totalcnt>0</totalcnt>
- <erpathcnt>0</erpathcnt>
- <erpatper>0</erpatper>
- <erwardcnt/>
- <erwardper/>
- <erwardcntnm/>
- <erwardpernm/>
- </cntlist>
- </main>
- <send/>
- <hidden>
- </hidden>
- <code>
- <codelist/>
- </code>
- </root>
- </instance>
- <submission id="TRMNE07501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patlist"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <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/numericHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //화면 초기화 설정
- function fInit(){
- fGetNursHardCdInfo("'126'", getCurrentDate());
-
- model.removeNodeset("/root/main/trsmlistinfo");
- var sTodt = getCurrentDate();
- var sFrdt = getCurrentDate().substr(0,6) + "01";
- model.setValue("/root/main/cond/fromdd", sFrdt);
- model.setValue("/root/main/cond/todd" , sTodt);
- cmb_wardcd.value = getUserInfo("dutunitcd");
- if(cmb_wardcd.label == "" ){
- cmb_wardcd.select(0);
- }
- fSrchPatList();
- }
-
- //환자 정보 조회
- function fSrchPatList(){
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/patinfo");
- model.makeNode("/root/send");
- model.copyNode("/root/send", "/root/main/cond");
- submit("TRMNE07501");
- fCalcPatInfo();
- }
-
- //조회 환자정보 계산
- function fCalcPatInfo(){
- var TotalCnt = getNodesetCount("/root/main/patinfo/patlist");
- var CntCapNm = " 경유 입원환자수";
- var CntPerNm = " 경유 입원률";
- var CmbValue = cmb_wardcd.value;
- var StsWardCd = "";
- var ErPathCnt = 0;
- var ErWardCnt = 0;
- var Ercd = model.getValue("/root/code/codeinfo/codelist[supcdid = '1']/cdid");
-
- if(getNodesetCount("/root/code/codeinfo/codelist") > 2 ){
- for(var i = 1 ; i <= getNodesetCount("/root/code/codeinfo/codelist") ; i++){
- if(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid") == "2" && model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid") != CmbValue){
- StsWardCd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- CntCapNm = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm") + CntCapNm;
- CntPerNm = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdnm") + CntPerNm;
- i = getNodesetCount("/root/code/codeinfo/codelist");
- }
- }
-
- model.setValue("/root/main/cntlist/erwardcntnm", CntCapNm);
- model.setValue("/root/main/cntlist/erwardpernm", CntPerNm);
-
- }else{
- model.setValue("/root/main/cntlist/erwardcntnm", "");
- model.setValue("/root/main/cntlist/erwardpernm", "");
- model.setValue("/root/main/cntlist/erwardcnt", "");
- model.setValue("/root/main/cntlist/erwardper", "");
- }
-
- if(TotalCnt > 0 ){
- for(var i = 1 ; i <= getNodesetCount("/root/main/patinfo/patlist") ; i++ ){
- BfWardCd = model.getValue("/root/main/patinfo/patlist["+i+"]/bfwardcd");
- if( BfWardCd == Ercd ){
- ErPathCnt ++;
- }else if( BfWardCd == StsWardCd ){
- ErWardCnt ++;
- }
- }
- model.setValue("/root/main/cntlist/totalcnt", TotalCnt);
- if(ErPathCnt >0){
- model.setValue("/root/main/cntlist/erpathcnt", ErPathCnt);
- var ErPathPer = eval(ErPathCnt) / eval(TotalCnt) * 100 ;
- model.setValue("/root/main/cntlist/erpatper", ErPathPer );
- }else{
- model.setValue("/root/main/cntlist/erpathcnt", "0");
- model.setValue("/root/main/cntlist/erpatper", "0" );
- }
-
- if(StsWardCd == "") return;
- if(ErWardCnt >0 ){
- model.setValue("/root/main/cntlist/erwardcnt", ErWardCnt);
- var ErWardPer = eval(ErWardCnt) / eval(TotalCnt) * 100;
- model.setValue("/root/main/cntlist/erwardper", ErWardPer);
- }else{
- model.setValue("/root/main/cntlist/erwardcnt", "0");
- model.setValue("/root/main/cntlist/erwardper", "0");
- }
- }else{
- model.setValue("/root/main/cntlist/totalcnt", "0");
- model.setValue("/root/main/cntlist/erpathcnt", "0");
- model.setValue("/root/main/cntlist/erpatper", "0" );
- if(StsWardCd == "") return;
- model.setValue("/root/main/cntlist/erwardcnt", "0");
- model.setValue("/root/main/cntlist/erwardper", "0");
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1179;1,1224;1,1235;" 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:189px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">응급센터 경유 입원 통계</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:745px; ">
- <caption id="caption12" style="left:0px; top:55px; width:1195px; height:65px; background-color:#ccecff; "/>
- <group id="group6" style="left:0px; top:11px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption15" class="search_name" style="left:295px; top:9px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:384px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption16" style="left:481px; top:12px; width:15px; height:13px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:495px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="ipt_srchtext" ref="/root/main/cond/srchtext" disabled="true" style="left:837px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13) {
- setInputNodeCurText(); // 현재 인풋값 노드 반영
- button2.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="button2" class="btn1_letter2" style="left:990px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSrchPatList();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn1_letter2" style="left:1049px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getNodesetCount("/root/main/patinfo/patlist") < 1 ){
- messageBox("출력할 데이터가 존재하지 않습니다.", "E");
- return;
- }
- model.removeNodeset("/root/send");
- model.makeNode("/root/send");
- model.copyNode("/root/send", "/root/main");
- model.makeValue("/root/send/wardnm", cmb_wardcd.label );
- exeReportPreview("RPMNE07500","XMLSTR","");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn1_letter4" style="left:1108px; top:7px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getNodesetCount("/root/main/patinfo/patlist") < 1){
- messageBox("저장할 데이터가 존재하지 않습니다.", "I");
- }else{
- fileName = window.fileDialog("save", ",", false, "응급센터 경유 입원 통계_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "") {
- datagrid1.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:978px; y1:7px; x2:978px; y2:29px; "/>
- <select1 id="rdo_srchflag" ref="/root/main/cond/srchflag" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:660px; top:10px; width:170px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>성명</label>
- <value>S</value>
- </item>
- <item>
- <label>환자번호</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_srchflag.value == "A"){
- ipt_srchtext.value = "";
- ipt_srchtext.disabled = true;
- }else if(rdo_srchflag.value == "S"){
- ipt_srchtext.disabled = false;
- }else if(rdo_srchflag.value == "N"){
- ipt_srchtext.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption17" class="search_name" style="left:15px; top:9px; width:82px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">병동 :</caption>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" appearance="minimal" style="left:78px; top:8px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/code/codeinfo/codelist[supcdid= '2' ]">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSrchPatList();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line6" class="line_1" style="x1:0px; y1:141px; x2:1195px; y2:141px; "/>
- <caption id="caption18" class="tit_2" style="left:5px; top:125px; width:155px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">
- <![CDATA[환자정보]]>
- </caption>
- <datagrid id="datagrid1" nodeset="/root/main/patinfo/patlist" caption="병실^성명^S/A^등록번호^진료과^진단명^입실일자^입실전 병실^퇴실일자^퇴실후 병실^입원환자수^재원환자수" colsep="^" colwidth="85, 100, 60, 85, 84, 423, 80, 90, 80, 90, 0, 0, 0, 0, 0" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:146px; width:1195px; height:599px; ">
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="diagnm"/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="bfroomcd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="afterroom" style="text-align:center; "/>
- <col ref="incnt" visibility="hidden" style="text-align:right; padding-right:10; "/>
- <col ref="staycnt" visibility="hidden" style="text-align:right; padding-right:10; "/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="bfwardcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" style="left:15px; top:65px; width:100px; height:20px; font-weight:bold; ">전체입원환자수</caption>
- <caption id="caption2" style="left:250px; top:65px; width:163px; height:20px; font-weight:bold; text-align:right; ">응급센터 경유 입원환자수</caption>
- <caption id="caption3" style="left:250px; top:90px; width:163px; height:20px; font-weight:bold; text-align:right; ">응급센터 경유 입원률</caption>
- <caption id="caption4" ref="/root/main/cntlist/erwardcntnm" style="left:495px; top:65px; width:249px; height:20px; font-weight:bold; text-align:right; "/>
- <caption id="caption5" ref="/root/main/cntlist/erwardpernm" style="left:495px; top:90px; width:249px; height:20px; font-weight:bold; text-align:right; "/>
- <caption id="caption7" ref="/root/main/cntlist/totalcnt" style="left:120px; top:65px; width:50px; height:20px; font-weight:bold; text-align:right; ">0</caption>
- <caption id="caption8" ref="/root/main/cntlist/erpathcnt" style="left:415px; top:65px; width:50px; height:20px; font-weight:bold; text-align:right; ">0</caption>
- <caption id="caption9" ref="/root/main/cntlist/erpatper" format="#.#" roundmode="round" roundposition="-3" style="left:415px; top:90px; width:50px; height:20px; font-weight:bold; text-align:right; ">0</caption>
- <caption id="caption10" ref="/root/main/cntlist/erwardcnt" style="left:745px; top:65px; width:50px; height:20px; font-weight:bold; text-align:right; "/>
- <caption id="caption11" ref="/root/main/cntlist/erwardper" format="#.#" roundmode="round" roundposition="-3" style="left:745px; top:90px; width:50px; height:20px; font-weight:bold; text-align:right; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|