123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474 |
- <?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>
- <unprepdrbase>
- <dschflag>D</dschflag>
- <unprepstat>1 3</unprepstat>
- <unprepdrnm/>
- <unprepdrid/>
- <doctkindflag>St</doctkindflag>
- <srchflag>dschdd</srchflag>
- <fromdd/>
- <todd/>
- <deptflag>unprep</deptflag>
- <orddeptcd>-</orddeptcd>
- <unprepstatlist/>
- <unprepsign/>
- <dayflag>N</dayflag>
- <orderby/>
- <scrnflag/>
- <alldoctkindflag>-</alldoctkindflag>
- <staff>Y</staff>
- <resident/>
- <intern/>
- <total/>
- </unprepdrbase>
- </cond>
- <unprepdrstatistics>
- <unprepdrstatistics>
- <depthngnm/>
- <doctkindflag/>
- <orddrnm/>
- <t1/>
- <t2/>
- </unprepdrstatistics>
- </unprepdrstatistics>
- <unprepdrinfo>
- <unprepdrlist/>
- </unprepdrinfo>
- <prntcond>
- <prnttitl/>
- <grdtitl1/>
- <grdtitl2/>
- <condtitl/>
- <fromdd/>
- <todd/>
- <tot1/>
- <tot2/>
- <tot3/>
- <datacnt/>
- <insttitl/>
- </prntcond>
- <unpreplist/>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <orddept/>
- <userlist/>
- </init>
- <temp>
- <userinfo/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMRI00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unpreplist"/>
- <submission id="TRMRI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/userinfo"/>
- </model>
- <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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/unprepmngtweb/js/SMMRI00301.js"/>
- <script type="javascript">
- <![CDATA[
- /**
- * @desc 미비의사 조회
- */
- function fReqGetUnPrepDrSmplList(srchflag, srchdata){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/srchflag", srchflag);
- model.makeValue("/root/send/reqdata/srchdata", srchdata);
- if(submit("TRMRI02901")){
- }
- }
-
- /**
- * @desc 서식명 조회
- */
- function fReqGetFormList(){
- if(submit("TRMRI01804")){ //서식명콤보 조회
- addComboItem("cmb_formcd","전체","-");
- }
- }
- /**
- * @desc 미비항목코드 조회
- */
- function fReqGetFormItemList(formcd){
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/formcd", formcd);
- if(submit("TRMRI01805")){
- addComboItem("cmb_itemcd","전체","-");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,784;" 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:189px; height:14px; ">의사별통계</caption>
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:80px; "/>
- <button id="btn_req" class="btn1_letter2" style="left:1130px; top:50px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line5" style="x1:1120px; y1:30px; x2:1120px; y2:91px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption20" class="tit_2" style="left:3px; top:111px; width:108px; height:13px; ">의사별통계</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:126px; x2:1194px; y2:126px; "/>
- <datagrid id="grd_unpreplist" nodeset="/root/main/unpreplist" caption="미비과^의사명^미비건수^Staff미비건수^인덱스" colsep="^" colwidth="100, 100, 130, 130" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:131px; width:1194px; height:648px; ">
- <col ref="depthngnm"/>
- <col ref="orddrnm"/>
- <col ref="t1" style="text-align:center; "/>
- <col ref="t2" style="text-align:center; vertical-align:top; "/>
- </datagrid>
- <button id="btn_ex" class="btn2_letter2" visibility="hidden" style="left:1145px; top:104px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_unpreplist.saveExcel(fileName, "colhiddenextend:false;col_0:label;col_1:label;col_2:label;col_3:label;");
- }
- ]]>
- </script>
- </button>
- <select id="chk_unprepflagA" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:96px; top:67px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagB.disabled = true;
- chk_unprepflagB.deselect(0);
- chk_unprepflagC.disabled = true;
- chk_unprepflagC.deselect(0);
- chk_unprepflagD.disabled = true;
- chk_unprepflagD.deselect(0);
- chk_unprepflagR.disabled = true;
- chk_unprepflagR.deselect(0);
- chk_unprepflagS.disabled = true;
- chk_unprepflagS.deselect(0);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- chk_unprepflagB.disabled = false;
- chk_unprepflagC.disabled = false;
- chk_unprepflagD.disabled = false;
- chk_unprepflagR.disabled = false;
- chk_unprepflagS.disabled = false;
- ]]>
- </script>
- </select>
- <select id="chk_unprepflagR" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:339px; top:67px; width:56px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>재미비</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <select id="chk_unprepflagB" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:142px; top:67px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>배치미비</label>
- <value>0</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <select id="chk_unprepflagS" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:396px; top:67px; width:46px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>완료</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <select id="chk_unprepflagC" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:207px; top:67px; width:66px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미비확인</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <select id="chk_unprepflagD" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:273px; top:67px; width:65px; height:20px; color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>의사확인</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- chk_unprepflagA.deselect(0);
- ]]>
- </script>
- </select>
- <select1 id="cmb_inoutddflag" ref="/root/main/cond/unprepdrbase/srchflag" disabled="true" appearance="minimal" style="left:611px; top:68px; width:78px; height:19px; ">
- <choices>
- <item>
- <label>퇴원일자</label>
- <value>dschdd</value>
- </item>
- <item>
- <label>입원일자</label>
- <value>indd</value>
- </item>
- <item>
- <label>진료일자</label>
- <value>orddd</value>
- </item>
- </choices>
- </select1>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/unprepdrbase/dayflag" style="left:531px; top:67px; width:30px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(bool1.value == "Y"){
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- }else{
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- </bool>
- <caption id="caption1" style="left:781px; top:68px; width:15px; height:15px; ">~</caption>
- <select1 id="rdo_inoutflag" ref="/root/main/cond/unprepdrbase/dschflag" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:97px; top:45px; width:199px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>퇴원</label>
- <value>D</value>
- </item>
- <item>
- <label>재원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급실</label>
- <value>E</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //재원구분 퇴원
- if(rdo_inoutflag.value == "D"){
- model.setValue("/root/main/cond/unprepdrbase/srchflag", "dsch");
-
- }else if(rdo_inoutflag.value == "I"){
- model.setValue("/root/main/cond/unprepdrbase/srchflag", "indd");
-
- }else if(rdo_inoutflag.value == "O"){
- model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
-
- }else if(rdo_inoutflag.value == "E"){
- model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
-
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:10px; top:45px; width:86px; height:17px; ">재원구분 :</caption>
- <caption id="caption4" class="search_name" style="left:10px; top:67px; width:86px; height:17px; ">미비구분 :</caption>
- <caption id="cap_reqflag" class="search_name" style="left:450px; top:68px; width:86px; height:17px; ">조회구분 :</caption>
- <input id="ipt_todd" ref="/root/main/cond/unprepdrbase/todd" disabled="true" inputtype="date" style="left:795px; top:68px; width:90px; height:19px; "/>
- <caption id="caption15" style="left:556px; top:68px; width:50px; height:20px; ">날짜조회</caption>
- <caption id="caption6" class="search_name" style="left:10px; top:25px; width:99px; height:17px; ">부서구분 :</caption>
- <caption id="caption8" class="search_name" style="left:365px; top:26px; width:89px; height:17px; ">미비의사 :</caption>
- <select1 id="rdo_deptflag" ref="/root/main/cond/unprepdrbase/deptflag" appearance="full" cols="4" rows="1" overflow="visible" style="left:97px; top:25px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미비과</label>
- <value>unprep</value>
- </item>
- <item>
- <label>퇴원과</label>
- <value>dsch</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_orddept" ref="/root/main/cond/unprepdrbase/orddeptcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:214px; top:25px; width:137px; 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[
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- var sOrdDd = getCurrentDate();
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330", "", "", sOrdDd);
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- cmb_orddrid.select(1);
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <input id="ipt_fromdd" ref="/root/main/cond/unprepdrbase/fromdd" disabled="true" inputtype="date" style="left:691px; top:68px; width:90px; height:19px; "/>
- <button id="button1" class="btn2_letter2" visibility="hidden" style="left:1100px; top:104px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rexid = "";
- //출력물 메인타이틀 설정
- if(model.getValue("/root/main/cond/unprepdrbase/doctkindflag") == "St"){
- model.setValue("/root/main/prntcond/prnttitl", "◈과별 의사별 미정리 현황(Staff)◈");
- rexid = "RPMRI00300";
-
- }else{
- if(model.getValue("/root/main/cond/unprepdrbase/resident") == "Y" && model.getValue("/root/main/cond/unprepdrbase/intern") == "Y"){
- model.setValue("/root/main/prntcond/prnttitl", "◈과별 의사별 미정리 현황(Resident,Intern)◈");
- }else{
-
- if(model.getValue("/root/main/cond/unprepdrbase/resident") == "Y"){
- model.setValue("/root/main/prntcond/prnttitl", "◈과별 의사별 미정리 현황(Resident)◈");
- }
-
- if(model.getValue("/root/main/cond/unprepdrbase/intern") == "Y"){
- model.setValue("/root/main/prntcond/prnttitl", "◈과별 의사별 미정리 현황(Intern)◈");
- }
-
- }
- rexid = "RPMRI00500";
- //rexid = "RPMRI00700";
- }
-
- //날짜조회가 Y인 경우
- if(model.getValue("/root/main/cond/unprepdrbase/dayflag")=="Y"){
- model.setValue("/root/main/prntcond/condtitl", cmb_inoutddflag.label);
- model.setValue("/root/main/prntcond/fromdd", model.getValue("/root/main/cond/unprepdrbase/fromdd"));
- model.setValue("/root/main/prntcond/todd", model.getValue("/root/main/cond/unprepdrbase/todd"));
-
- }else{
- model.setValue("/root/main/prntcond/condtitl", "전체");
-
- }
- model.setValue("/root/main/prntcond/grdtitl1", grd_unpreplist.valueMatrix(0, 5));
- model.setValue("/root/main/prntcond/grdtitl2", grd_unpreplist.valueMatrix(0, 6));
-
- model.setValue("/root/main/prntcond/tot1", model.getValue("/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']/t1"));
- model.setValue("/root/main/prntcond/tot2", model.getValue("/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']/t2"));
- model.setValue("/root/main/prntcond/tot3", model.getValue("/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']/t3"));
-
- var SubTotalList = findNodeset(model, "/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']");
-
- if(SubTotalList.length == 0)
- {
- model.makeValue("/root/main/prntcond/subtotal", "0"); // 합계 숨기기
- }
- else
- {
- model.makeValue("/root/main/prntcond/subtotal", "1"); // 합계 보이기
- }
-
- // 2009-08-20 이경희
- // Resident 미비 조회시 출력물에 수련의 전체 총계 의사명수 count 누락 수정
- if(bool3.value == "Y" || bool4.value == "Y")
- {
- var SubSumList = findNodeset(model, "/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']");
- var cnt = 0;
- var sum = 0;
- var finalsum = 0;
-
- if(SubSumList.length > 0)
- {
- for( i = 0; i < SubSumList.length; i++) {
-
- var SubNode = SubSumList.item(i);
-
- cnt = SubNode.selectSingleNode("orddrnm").text;
-
- // "명" 글자 제거
- cnt = cnt.setReplaceWord("명", "");
-
- // SUM
- sum += parseInt(cnt);
- }
- }
- model.makeValue("/root/main/prntcond/tot3", sum);
-
- var FinalSumList = findNodeset(model, "/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='총계']");
-
- if(FinalSumList.length > 0)
- {
- var node = FinalSumList.item(0);
-
- finalsum = node.selectSingleNode("orddrnm").text;
-
- model.makeValue("/root/main/prntcond/finalsum", finalsum);
- }
- }
-
- model.setValue("/root/main/prntcond/datacnt", grd_unpreplist.rows - 2);
-
- //model.setValue("/root/main/prntcond/insttitl", getUserInfo("dutplceinstnm") + " " + getUserInfo("dutplcenm"));
-
- exeReportPreview(rexid, "XMLSTR"); //미리보기만 가능
- ]]>
- </script>
- </button>
- <select1 id="cmb_orddrid" ref="/root/main/cond/unprepdrbase/unprepdrid" appearance="minimal" itemcount="30" style="left:450px; top:25px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|