123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SMMCT00108_전일퇴원예고부도율.xrw
- * 설 명 : 전일퇴원예고부도율
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2009.09.12
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <condition>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <medispclid/>
- <wardcd/>
- <opt_ward>Y</opt_ward>
- <opt_orddept>Y</opt_orddept>
- <opt_orddr>Y</opt_orddr>
- <opt_all>Y</opt_all>
- </condition>
- <dschdclrtinfo>
- <dschdclrtlist>
- <orddeptcd/>
- <subdeptcd/>
- <orddrnm/>
- <dschpatcnt/>
- <nopaycnt/>
- <nopayrate/>
- </dschdclrtlist>
- </dschdclrtinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <orddept>
- <dept/>
- </orddept>
- <info/>
- <userlist>
- <usercombo>
- <userid/>
- <usernm/>
- </usercombo>
- </userlist>
- <subdeptinfo>
- <subdeptlist/>
- </subdeptinfo>
- <orddept2>
- <dept/>
- </orddept2>
- </init>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/emrctlweb/js/MCT001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit_SMMCT00108();
- ]]>
- </script>
- <submission id="TRMMB04101" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMMB04102" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMMB04103" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMMB04106" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMCT00108" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/dschdclrtinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /*
- * @desc : 초기화
- */
- function fInit_SMMCT00108(){
- //병동
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept2", "W"); //병동코드 콤보
- addComboInstance("/root/init/orddept2" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
-
- //진료과
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서코드 콤보
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
- //addComboInstance("/root/init/subdeptinfo" , "subdeptcd^subdeptnm", "-^전체", "subdeptlist"); //부서콤보 Item '전체'추가
-
- //전문의
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , getUserInfo("dutplcecd"), "0330", "", "M");
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
-
-
- //초기값 셋팅
- model.setValue("/root/main/condition/fromdd" , getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat() );
- model.setValue("/root/main/condition/todd" , getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat() );
- model.setValue("/root/main/condition/orddeptcd" , "-");
- model.setValue("/root/main/condition/wardcd" , "-");
- model.setValue("/root/main/condition/medispclid" , "-");
- model.removeNodeset(grd_dschdclrtlst.nodeset );
-
- cap_total.value = "총 0 건";
-
- //fSetCtrlStat();
-
- model.refresh();
- }
-
-
-
- /**
- * @desc : 전일퇴원예고부도율 조회
- */
- function fGetDschDclrNopayRate(){
- var cnt = 0 ;
- cap_total.value = "총 " + cnt + " 건";
- model.removeNodeset(grd_dschdclrtlst.nodeset);
- model.resetInstanceNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
- if( model.getValue("/root/send/reqdata/orddeptcd") == "-" ) model.setValue("/root/send/reqdata/orddeptcd", "");
- if( model.getValue("/root/send/reqdata/medispclid") == "-" ) model.setValue("/root/send/reqdata/medispclid", "");
- if( model.getValue("/root/send/reqdata/wardcd") == "-" ) model.setValue("/root/send/reqdata/wardcd", "");
-
- if( chk_ward.value != "Y" ) model.setValue("/root/send/reqdata/wardcd", "");
- if( chk_dept.value != "Y" ) model.setValue("/root/send/reqdata/orddeptcd", "");
- if( chk_dr.value != "Y" ) model.setValue("/root/send/reqdata/medispclid", "");
-
- submit("TRMCT00108");
- var nodelst = instance1.selectNodes(grd_dschdclrtlst.nodeset );
-
- /*
- var tmpCnt = 0 ;
- var sCnt = "";
- if( nodelst.length > 0 ) {
- var sCnt = "";
- for( var i = 1 ; i <= nodelst.length ; i++ ) {
- sCnt = model.getValue(grd_dschdclrtlst.nodeset + "[" + i + "]/total" );
- if( !isNull(sCnt ) ) {
- tmpCnt = parseInt(sCnt) ;
- if( !isNaN(tmpCnt) ) cnt = cnt + tmpCnt ;
- }
- }
- }
- */
- cap_total.value = "총 " + cnt + " 건";
- var vGrupCol = -1;
-
- if( model.getValue("/root/main/condition/opt_ward") == "Y" ) {
- if( model.getValue("/root/main/condition/opt_orddept") == "Y" || model.getValue("/root/main/condition/opt_orddr") == "Y" ) vGrupCol = 2;
- } else if ( model.getValue("/root/main/condition/opt_orddept") == "Y" ) {
- if ( model.getValue("/root/main/condition/opt_orddr") == "Y" ) vGrupCol = 3;
- } else if ( model.getValue("/root/main/condition/opt_orddr") == "Y" ) {
- vGrupCol = 3;
- }
-
- /*
- grd_dschdclrtlst.subtotalPosition = "below";
-
- if( model.getValue("/root/main/condition/opt_ward") == "Y" || model.getValue("/root/main/condition/opt_orddept") == "Y" || model.getValue("/root/main/condition/opt_orddr") == "Y" ) {
- grd_dschdclrtlst.subTotal("sum" , 1, 5 , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- grd_dschdclrtlst.subTotal("sum" , 1, 6 , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- grd_dschdclrtlst.subTotal("sum" , 1, 7 , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- grd_dschdclrtlst.subTotal("average" , 1, 8 , "format:#,###%; ", "background-color:#fafad2; font-weight:bold;" );
- }
-
- if( vGrupCol > 0 ) {
- grd_dschdclrtlst.subTotal("sum" , vGrupCol, 5 , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- grd_dschdclrtlst.subTotal("sum" , vGrupCol, 6 , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- grd_dschdclrtlst.subTotal("sum" , vGrupCol, 7 , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- grd_dschdclrtlst.subTotal("average" , vGrupCol, 8 , "format:#,###%; ", "background-color:#fafad2; font-weight:bold;" );
- }
-
- */
- grd_dschdclrtlst.rebuildStyle();
- for( var i = 1 ; i <= grd_dschdclrtlst.rows; i++ ) {
- if(! isNull( grd_dschdclrtlst.valueMatrix(i, grd_dschdclrtlst.colref("grup"))) ){
- grd_dschdclrtlst.rowStyle(i ,"data", "background-color" ) = "#fafad2" ;
- grd_dschdclrtlst.rowStyle( i , "data", "font-weight" ) = "bold" ;
- }
- }
-
-
- cap_total.value = "총 " + cnt + " 건";
- model.refresh();
- }
-
- /**
- * @desc : 조회옵션에 따른 control 설정
- * @param : flag ( W:병동, D:진료과, M:주치의, NULL: 전체 )
- */
- function fSetCtrlStat( flag ){
- cmb_ward.disabled = true ;
- cmb_orddept.disabled = true ;
- cmb_medispclid.disabled = true ;
-
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("wardnm") ) = true ;
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("orddeptnm") ) = true ;
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("orddrnm") ) = true ;
-
- var opt_ward = chk_ward.value ;
- var opt_dept = chk_dept.value ;
- var opt_dr = chk_dr.value ;
- var opt_all = chk_all.value ;
-
- if( isNull(flag) ){
- if( opt_all == "Y" ) {
- cmb_ward.disabled = false ;
- cmb_orddept.disabled = false ;
- cmb_medispclid.disabled = false ;
-
- chk_ward.value = "Y";
- chk_dept.value = "Y";
- chk_dr.value = "Y";
-
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("wardnm") ) = false ;
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("orddeptnm") ) = false ;
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("orddrnm") ) = false ;
- } else {
- chk_ward.value = "";
- chk_dept.value = "";
- chk_dr.value = "";
- }
- } else {
- if ( opt_ward == "Y" ) {
- cmb_ward.disabled = false ;
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("wardnm") ) = false ;
- }
-
- if ( opt_dept == "Y" ) {
- cmb_orddept.disabled = false ;
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("orddeptnm") ) = false ;
- }
-
- if ( opt_dr == "Y" ) {
- chk_dept.value = "Y";
- cmb_orddept.disabled = false ;
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("orddeptnm") ) = false ;
- cmb_medispclid.disabled = false ;
- grd_dschdclrtlst.colHidden(grd_dschdclrtlst.colRef("orddrnm") ) = false ;
- }
- }
-
- btn_req.dispatch("DOMActivate");
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body accesskey="f2" guideline="2,763;2,765;2,763;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:300px; height:14px; ">전일퇴원예고 부도율</caption>
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:65px; "/>
- <button id="btn_req" class="btn1_letter2" style="left:1125px; top:40px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDschDclrNopayRate();
- ]]>
- </script>
- </button>
- <line id="line5" style="x1:1110px; y1:30px; x2:1110px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:92px; width:270px; height:13px; ">전일퇴원예고 부도율 조회</caption>
- <input id="ipt_srchfromdd" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:180px; top:32px; width:90px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:75px; top:32px; width:90px; height:19px; "/>
- <caption id="caption8" style="left:164px; top:34px; width:15px; height:15px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">기간 :</caption>
- <datagrid id="grd_dschdclrtlst" nodeset="/root/main/dschdclrtinfo/dschdclrtlist" caption="g^병동^진료과^전문의^퇴원예고건수^사망환자수^부도건수^부도율" colwidth="0, 200, 200, 200, 94, 109, 124, 109" ellipsis="true" explorerbar="sortshow" extendlastcol="noscroll" mergecells="never" mergecellsfixedrows="bycolrec" rowheader="seq" subtotalposition="below" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:113px; width:1187px; height:650px; ">
- <col ref="grup"/>
- <col ref="wardnm" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="dschdclrcnt" style="text-align:center; "/>
- <col ref="deathpatcnt" format="( #,### )" style="text-align:center; "/>
- <col ref="nopaycnt" style="text-align:center; "/>
- <col ref="nopayrate" format="#,###%" style="text-align:center; "/>
- </datagrid>
- <select1 id="cmb_medispclid" ref="/root/main/condition/medispclid" class="combo_search" appearance="minimal" itemwidth="100" itemcount="30" style="left:740px; top:58px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="search_name" visibility="hidden" style="left:861px; top:90px; width:76px; height:17px; ">세 부 과</caption>
- <select1 id="cmb_subdept" ref="/root/main/condition/subdeptcd" class="combo" visibility="hidden" appearance="minimal" itemwidth="100" style="left:945px; top:90px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptinfo/subdeptlist">
- <label ref="subdeptnm"/>
- <value ref="subdeptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:460px; top:58px; width:76px; height:17px; ">진 료 과</caption>
- <caption id="caption1" class="search_name" style="left:661px; top:58px; width:76px; height:17px; ">주 치 의</caption>
- <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" itemwidth="100" editmode="search" style="left:545px; top:58px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetMedDr("", cmb_orddept.value ) ;
- ]]>
- </script>
- </select1>
- <caption id="cap_total" class="search_name" visibility="hidden" style="left:961px; top:42px; width:125px; height:17px; ">총 0 건</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:111px; x2:1187px; y2:111px; "/>
- <caption id="caption2" class="search_name" style="left:280px; top:58px; width:76px; height:17px; ">병 동</caption>
- <select1 id="cmb_ward" ref="/root/main/condition/wardcd" class="combo_search" appearance="minimal" itemwidth="100" itemcount="30" style="left:345px; top:58px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept2/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:280px; top:32px; width:91px; height:17px; ">조 회 옵 션</caption>
- <select id="chk_ward" ref="/root/main/condition/opt_ward" class="checkbox_search" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:395px; top:32px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병 동</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetCtrlStat( "W");
- ]]>
- </script>
- </select>
- <select id="chk_dept" ref="/root/main/condition/opt_orddept" class="checkbox_search" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:465px; top:32px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>진 료 과</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetCtrlStat( "D");
- ]]>
- </script>
- </select>
- <select id="chk_dr" ref="/root/main/condition/opt_orddr" class="checkbox_search" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:555px; top:32px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>주 치 의</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetCtrlStat( "M");
- ]]>
- </script>
- </select>
- <select id="chk_all" ref="/root/main/condition/opt_all" class="checkbox_search" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:645px; top:32px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전 체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetCtrlStat( "");
- ]]>
- </script>
- </select>
- <button id="button1" class="btn2_letter2" style="left:1145px; top:90px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var title = "전일퇴원예고부도율 (" + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) + " ) " ;
- //fsaveGridToExcel(grd_inpatinfolst, title);
-
- var fileName = window.fileDialog("save", ",", false, "전일퇴원예고부도율", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_dschdclrtlst.saveExcel(fileName, "전일퇴원예고부도율", true, true, "", "", false);
- var s = fileName.lastIndexOf("\\");
- var fileName=fileName.substring(s+1);
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 ){
- window.exec("excel.exe", fileName);
- }
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|