123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <?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>
- <inptordstatistic>
- <inptordstatisticlist/>
- </inptordstatistic>
- <otptordstatistic>
- <otptordstatisticlist/>
- </otptordstatistic>
- <result/>
- <popupendflag/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <statisticgooboon/>
- <fromdata/>
- <todata/>
- </send>
- <init>
- <comncdlist>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P0021list>
- <P0021>
- <cdnm/>
- <cdid/>
- </P0021>
- </P0021list>
- <P0341list>
- <P0341>
- <cdnm/>
- <cdid/>
- </P0341>
- </P0341list>
- <P0022list>
- <P0022>
- <cdnm/>
- <cdid/>
- </P0022>
- </P0022list>
- <P0020list>
- <P0020>
- <cdnm/>
- <cdid/>
- </P0020>
- </P0020list>
- <P0029list>
- <P0029>
- <cdnm/>
- <cdid/>
- </P0029>
- </P0029list>
- <P0344list>
- <P0344>
- <cdnm/>
- <cdid/>
- </P0344>
- </P0344list>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- </comncdlist>
- <orddeptcd>
- <orddeptcdlist>
- <nm/>
- <cd/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- </init>
- <hidden>
- </hidden>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </source>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0008","P0021","P0341","P0022","P0020","P0029","P0344", "P0010"),
- new Array("/root/init/comncdlist/P0008list","/root/init/comncdlist/P0021list","/root/init/comncdlist/P0341list","/root/init/comncdlist/P0022list","/root/init/comncdlist/P0020list"
- ,"/root/init/comncdlist/P0029list","/root/init/comncdlist/P0344list", "/root/init/comncdlist/P0010list"));
-
- //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
- //초기화 및 날자 입력 항목에 오늘 날자 세팅
- fInitialize();
-
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMS01131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/otptordstatistic"/>
- </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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
-
-
-
- function fInitialize() {
-
-
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
-
- curDate = curDate.toDate().getAddDate(-1,"D");
- var nextDate = curDate.getFullYear();
- nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
- nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
-
- model.setValue("/root/send/todd", nextDate);
-
- var prviousDate = getCurrentDate();
- prviousDate = prviousDate.toDate().getAddDate(-7,"D");
- var previousDay = prviousDate.getFullYear();
- previousDay = previousDay.toString() + (( prviousDate.getMonth() + 1 > 9 ) ? prviousDate.getMonth() + 1 : "0" + (prviousDate.getMonth() + 1));
- previousDay = previousDay.toString() + (( prviousDate.getDate() > 9 ) ? prviousDate.getDate() : "0" + prviousDate.getDate()) ;
-
- model.setValue("/root/send/fromdd", previousDay);
-
- // 비교 대상 기간의 from 과 to의 날자를 세팅한다..
- model.setValue("/root/send/todata", previousDay);
-
- var tmpDate = getCurrentDate();
- tmpDate = tmpDate.toDate().getAddDate(-14,"D");
- var tmpToDate = tmpDate.getFullYear();
- tmpToDate = tmpToDate.toString() + (( tmpDate.getMonth() + 1 > 9 ) ? tmpDate.getMonth() + 1 : "0" + (tmpDate.getMonth() + 1));
- tmpToDate = tmpToDate.toString() + (( tmpDate.getDate() > 9 ) ? tmpDate.getDate() : "0" + tmpDate.getDate()) ;
-
- model.setValue("/root/send/fromdata", tmpToDate);
-
-
-
- statistic_gooboon.select(0);
- model.toggle("case_otpt");
-
- model.refresh();
- }
- function fSearch(){
-
- if( model.getValue("/root/main/popupendflag") == "ok" ){
- //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
- model.makeNode("/root/hidden/tmpnode");
- model.copyNode("/root/hidden/tmpnode", "/root/main/patinfo");
-
- //보험/감면/진료기록/신생하*산모내역 조회
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- submit("TRPMC01401");
- //model.makeNode("/root/main/popupendflag");
- }
- }
- function searchdepart(){
-
-
- for(var i=1; i<grd_reservationstatistic.rows ; i++){
- var tmpdepart = grd_reservationstatistic.valueMatrix(i , 1) ;
- var index =0;
- while(tmpdepart != (model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/cd") ) ){
- index++;
- if(index > 300) break;
- }
- if(model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") ==""){
- messageBox("부서명과 " +model.getValue("/root/main/reservationstatistic/reservationstatisticlist["+i+"]/orddeptcd") +"이", "E004")
- }else if(model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") !="") {
- model.setValue("/root/main/reservationstatistic/reservationstatisticlist[" +i+"]/orddeptcd",
- model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") );
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">외래환자현황</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- <group id="group4" scroll="auto" style="left:0px; top:732px; width:1190px; height:33px; ">
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:1160px; y2:0px; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1090px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <group id="group6" style="left:0px; top:70px; width:1180px; height:660px; ">
- <switch id="swt_outpatient" style="left:0px; top:5px; width:1160px; height:635px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_otpt" style="left:0px; top:5px; width:1210px; height:648px; ">
- <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:1155px; y2:25px; "/>
- <button id="btn_cnclexcel" class="btn2_letter4" style="left:1088px; top:3px; width:64px; 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_change.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <datagrid id="grd_change" nodeset="/root/main/otptordstatistic/otptordstatisticlist" class="datagrid2" visibility="visible" caption="임상과^비교대상기간^비교대상기간^비교대상기간^비교대상기간^비교대상기간^조회기간^조회기간^조회기간^조회기간^조회기간^증 감^증 감^증 감^증 감^증 감|임상과^초 진^재 진^합계^일평균^진료 Unit수^초 진^재 진^합계^일평균^진료 Unit수^초 진^재 진^합계^일평균^진료Unit수" colsep="^" colwidth="90, 70, 70, 100, 80, 100, 70, 70, 100, 80, 80, 70, 70, 100, 100, 100" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:30px; width:1150px; height:585px; ">
- <col ref="depthngnm" style="text-align:left; "/>
- <col ref="bffstord" style="text-align:right; "/>
- <col ref="bfreord" style="text-align:right; "/>
- <col ref="bfgnrnsum" style="text-align:right; "/>
- <col ref="bfdayavg" style="text-align:right; "/>
- <col ref="bfunitcnt" visibility="visible" style="text-align:right; "/>
- <col ref="fstord" style="text-align:right; "/>
- <col ref="reord" style="text-align:right; "/>
- <col ref="gnrnsum" style="text-align:right; "/>
- <col ref="dayavg" style="text-align:right; "/>
- <col ref="unitcnt" style="text-align:right; "/>
- <col ref="calfstord" style="text-align:right; "/>
- <col ref="calreord" style="text-align:right; "/>
- <col ref="calgnrnsum" style="text-align:right; "/>
- <col ref="caldayavg" style="text-align:right; "/>
- <col ref="calunitcnt" style="text-align:right; "/>
- </datagrid>
- <button id="button4" class="btn2_letter2" style="left:1038px; top:3px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPAS02231", "XMLSTR", "","", "true","","","","","true");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- </group>
- <group id="group5" style="left:0px; top:15px; width:1180px; height:50px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1160px; height:47px; "/>
- <button id="button1" class="btn1_letter2" navindex="6" style="left:1089px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (statistic_gooboon.value == 1 ) {
- //statistic_gooboon.select(0);
- model.toggle("case_otpt");
- submit("TRPMS01131");
-
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1085px; y1:7px; x2:1085px; y2:40px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:305px; top:14px; width:95px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:215px; top:14px; width:125px; height:17px; ">조회기간 :</caption>
- <select1 id="statistic_gooboon" ref="/root/send/statisticgooboon" navindex="1" appearance="full" cols="6" overflow="visible" style="left:107px; top:14px; width:98px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>1</value>
- </item>
- <item>
- <label>입원</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //button1.dispatch("DOMActivate");
- model.setValue("/root/send/statisticgooboon", statistic_gooboon.value );
-
- switch(model.getValue("/root/send/statisticgooboon")){
- case 1 : model.toggle("case_otpt");
- case 2 : model.totggle("case_ inpt");
- }
- ]]>
- </script>
- </select1>
- <caption id="radio_goobun" class="search_name" style="left:17px; top:14px; width:93px; height:17px; ">진료 구분 :</caption>
- <caption id="caption1" style="left:402px; top:15px; width:15px; height:15px; ">~</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" navindex="3" inputtype="date" style="left:415px; top:14px; width:95px; height:19px; "/>
- <caption id="caption2" style="left:787px; top:15px; width:15px; height:15px; ">~</caption>
- <input id="input1" ref="/root/send/todata" class="input_s_essential" navindex="5" inputtype="date" style="left:800px; top:14px; width:95px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:575px; top:14px; width:112px; height:17px; ">비교대상기간 :</caption>
- <input id="input2" ref="/root/send/fromdata" class="input_s_essential" navindex="4" inputtype="date" style="left:690px; top:14px; width:95px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|