123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SMMCT00105_과별의사별입원장발급건수.xrw
- * 설 명 : 과별의사별입원장발급건수
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2009.09.12
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <condition>
- <fromdd/>
- <todd/>
- <termflag>0</termflag>
- <orddeptcd/>
- <subdeptcd/>
- <medispclid/>
- <opt_orddept>Y</opt_orddept>
- <opt_orddr>Y</opt_orddr>
- </condition>
- <inpatissueinfo>
- <inpatissuecntlist/>
- </inpatissueinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <orddept>
- <dept/>
- </orddept>
- <info/>
- <userlist>
- <usercombo>
- <userid/>
- <usernm/>
- </usercombo>
- </userlist>
- <subdeptinfo>
- <subdeptlist/>
- </subdeptinfo>
- </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_SMMCT00105();
- ]]>
- </script>
- <submission id="TRMCT00105" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/inpatissueinfo"/>
- <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"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /*
- * @desc : 초기화
- */
- function fInit_SMMCT00105(){
- //진료과
- 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());
- model.setValue("/root/main/condition/todd" , getCurrentDate());
- model.setValue("/root/main/condition/termflag", "0");
- model.setValue("/root/main/condition/orddeptcd" , "-");
- model.setValue("/root/main/condition/subdeptcd" , "-");
- model.setValue("/root/main/condition/medispclid" , "-");
- model.removeNodeset(grd_inpatcntlst.nodeset );
-
- cap_total.value = "총 0 건";
-
- model.refresh();
- }
-
-
-
- /**
- * @desc : 입원장발급건수 조회
- */
- function fGetInPatCntList(){
- var cnt = 0 ;
- cap_total.value = "총 " + cnt + " 건";
- model.removeNodeset(grd_inpatcntlst.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/subdeptcd") == "-" ) model.setValue("/root/send/reqdata/subdeptcd", "");
- if( model.getValue("/root/send/reqdata/medispclid") == "-" ) model.setValue("/root/send/reqdata/medispclid", "");
- submit("TRMCT00105");
- var nodelst = instance1.selectNodes(grd_inpatcntlst.nodeset );
- var tmpCnt = 0 ;
- if( nodelst.length > 0 ) {
- var sCnt = "";
- for( var i = 1 ; i <= nodelst.length ; i++ ) {
- sCnt = model.getValue(grd_inpatcntlst.nodeset + "[" + i + "]/issuecnt" );
- if( !isNull(sCnt ) ) {
- tmpCnt = parseInt(sCnt) ;
- if( !isNaN(tmpCnt) ) cnt = cnt + tmpCnt ;
- }
- }
- }
- //grd_inpatcntlst.subTotal("sum", 0, 3,"#,###", "#ffff00", "#0000ff", "bold", 0, "Total" );
- if( model.getValue("/root/main/condition/opt_orddept") == "Y" && model.getValue("/root/main/condition/opt_orddr") == "Y" ) {
- grd_inpatcntlst.subTotal("sum", 1, 6, "format:#,###; ", "background-color:#fafad2; font-weight:bold;"); //ffff00
- }
- cap_total.value = "총 " + cnt + " 건";
- model.refresh();
- }
-
- function fSetCtrlStat(){
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddeptcd") ) = true ;
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("subdeptcd") ) = true ;
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrnm") ) = true ;
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrpos") ) = true ;
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrspec") ) = true ;
-
-
- if( model.getValue("/root/main/condition/opt_orddept" ) == "Y" ){
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddeptcd") ) = false ;
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("subdeptcd") ) = false ;
- }
-
- if( model.getValue("/root/main/condition/opt_orddr" ) == "Y" ){
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrnm") ) = false ;
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrpos") ) = false ;
- grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrspec") ) = false ;
- }
-
- fGetInPatCntList();
- }
- ]]>
- </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:13px; ">과별 의사별 입원장발급건수</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; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetInPatCntList();
- ]]>
- </script>
- </button>
- <line id="line5" style="x1:1110px; y1:30px; x2:1110px; y2:72px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:92px; width:139px; height:13px; ">입원장발급건수 조회</caption>
- <line id="line1" class="line_1" style="x1:4px; y1:110px; x2:1191px; y2:111px; "/>
- <input id="input1" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:280px; top:32px; width:90px; height:19px; "/>
- <input id="input2" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:180px; top:32px; width:90px; height:19px; "/>
- <caption id="caption8" style="left:269px; 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_inpatcntlst" nodeset="/root/main/inpatissueinfo/inpatissuecntlist" caption="진료과^세부분과^전문의^직위^선택진료^입원장발급건수" colwidth="100, 128, 122, 142, 72, 108" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" subtotalposition="below" rowsep="|" colsep="^" tooltip="true" style="left:3px; top:115px; width:702px; height:665px; ">
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="subdeptcd" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="orddrpos" style="text-align:center; "/>
- <col ref="orddrspec" checkvalue="Y,N" disabled="false" style="text-align:center; "/>
- <col ref="issuecnt" format="#,###" style="text-align:center; "/>
- </datagrid>
- <select1 id="cmb_termflag" ref="/root/main/condition/termflag" class="combo_default" disabled="false" appearance="minimal" style="left:77px; top:32px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>입원지시일</label>
- <value>0</value>
- </item>
- <item>
- <label>입원희망일</label>
- <value>1</value>
- </item>
- <item>
- <label>환자입원희망일</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_medispclid" ref="/root/main/condition/medispclid" class="combo_search" appearance="minimal" itemcount="30" style="left:860px; top:58px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="search_name" style="left:591px; top:58px; width:76px; height:17px; ">세 부 과</caption>
- <select1 id="cmb_subdept" ref="/root/main/condition/subdeptcd" class="combo" appearance="minimal" style="left:670px; top:58px; 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:381px; top:58px; width:76px; height:17px; ">진 료 과</caption>
- <caption id="caption1" class="search_name" style="left:781px; top:58px; width:76px; height:17px; ">주 치 의</caption>
- <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:480px; 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" style="left:980px; top:43px; width:125px; height:17px; ">총 0 건</caption>
- <select id="chk_dept" ref="/root/main/condition/opt_orddept" class="checkbox_search" visibility="visible" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:480px; top:31px; 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" visibility="visible" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:590px; top:31px; 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>
- <caption id="caption5" class="search_name" visibility="visible" style="left:381px; top:32px; width:91px; height:17px; ">조 회 옵 션</caption>
- <button id="button1" class="btn2_letter2" style="left:1150px; top:89px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var title = "과별 의사별 입원장 발급건수 (" + cmb_termflag.label + " : " + 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_inpatcntlst.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>
|