123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506 |
- <?xml version="1.0" encoding="UTF-16"?>
- <?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>
- <tmpinfo>
- <info>
- <user/>
- </info>
- </tmpinfo>
- <tmp>
- <print/>
- </tmp>
- <patinfotel>
- <patinfotel>
- <etctel1/>
- <mpphontel/>
- <hometel/>
- </patinfotel>
- </patinfotel>
- <dschpatinfo>
- <dschlist/>
- </dschpatinfo>
- </main>
- <send>
- <srchtel>
- <pid/>
- <instcd/>
- </srchtel>
- <srch>
- <all/>
- <dsch/>
- <predsch/>
- <e70/>
- <disamt/>
- <unco/>
- <fromdd/>
- <todd/>
- <sort/>
- <srchflag/>
- </srch>
- </send>
- <hidden>
- <init/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
-
-
- var vToday = new Date();
- var tmpYear = vToday.getYear();
- var tmpMonth = vToday.getMonth()+1;
- var tmpDate = vToday.getDate();
-
- if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
- if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
- model.setValue("/root/send/srch/fromdd", tmpYear+""+tmpMonth+""+tmpDate);
- model.setValue("/root/send/srch/todd", tmpYear+""+tmpMonth+""+tmpDate);
-
- //Rexport에 출력날자를 보여주기위한 데이터 저장
- model.makeNode("/root/main/tmp/print/date");
- model.copyNode("/root/main/tmp/print/date", "/root/send/srch/fromdd");
- model.setValue("/root/main/tmp/print/date", model.getValue("/root/send/srch/todd"));
-
- input7.refresh();
- input1.refresh();
-
- submit("TRPMI00106");
-
- model.setValue("/root/send/srch/all","ALL");
- model.setValue("/root/send/srch/dsch","N");
- model.setValue("/root/send/srch/predsch","N");
- model.setValue("/root/send/srch/e70","N");
- model.setValue("/root/send/srch/disamt","N");
- model.setValue("/root/send/srch/unco","N");
- model.setValue("/root/send/srch/sort", "D");
-
- //grd_dschpat.explorerbar = "sort";
-
- model.refresh();
-
- ]]>
- </script>
- <bind id="bind1" ref="/root/main/sunsuamtlist/sunsuamtstats" calculate="now() + ."/>
- <bind id="bind2" ref="/root/main/sunsusumamtlist/sunsusumamtstats/cont" calculate="sum(/root/main/sunsuamtlist/sunsuamtstats/cont);"/>
- <bind id="bind3" ref="/root/main/sunsusumamtlist/sunsusumamtstats/acumteamt" calculate="sum(/root/main/sunsuamtlist/sunsuamtstats/acumteamt);"/>
- <bind id="bind4" ref="/root/main/sunsusumamtlist/sunsusumamtstats/todysunsu" calculate="sum(/root/main/sunsuamtlist/sunsuamtstats/todysunsu);"/>
- <bind id="bind5" ref="/root/main/sunsusumamtlist/sunsusumamtstats/retrnamt" calculate="sum(/root/main/sunsuamtlist/sunsuamtstats/retrnamt);"/>
- <bind id="bind6" ref="/root/main/sunsusumamtlist/sunsusumamtstats/restamt" calculate="sum(/root/main/sunsuamtlist/sunsuamtstats/restamt);"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
- <submission id="TRPAS00211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/main/dschpatinfo"/>
- <submission id="TRPAS00212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchtel" replace="instance" resultref="/root/main/patinfotel"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784">
- <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">퇴원환자현황</caption>
- </group>
- <group id="group2" style="left:4px; top:23px; width:1203px; height:47px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:45px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:11px; top:12px; width:224px; height:17px; ">기간 ~</caption>
- <line id="line2" class="line_4" style="x1:1130px; y1:12px; x2:1130px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1139px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdata = model.getValue("/root/send/srch/fromdd");
- var todata = model.getValue("/root/send/srch/todd");
- if(fromdata==""||fromdata==null){
- messageBox("시작일을 입력","E007");
- model.setFocus("input7");
- return false;
- }
- if(todata==""|| todata==null){
- messageBox("끝일을 입력","E007");
- model.setFocus("input1");
- return false;
- }
- if(fromdata > todata){
- messageBox("시작일이 끝일자보다 클수 ", "C001")
- return false;
- }else{
- if (model.getValue("/root/send/srch/all") == "ALL" || model.getValue("/root/send/srch/e70") == "E70") {
- model.setValue("/root/send/srch/srchflag", "ALL");
- }
- else {
- model.setValue("/root/send/srch/srchflag","N");
- }
-
- submit("TRPAS00211");
-
- var rsrvFlag = radio1.value;
- if( rsrvFlag == "D"){
-
- // grd_dschpat.colsort(4) = "asc";
- // grd_dschpat.sort(2,1,grd_dschpat.row,grd_dschpat.col)= "usersort";
- //
- // //grd_dschpat.backcoloralternate = "transparent";
- grd_dschpat.subtotalposition= "below";
- for(i=7; i<21; i++){
- grd_dschpat.subtotal("sum", 4, i, "format:#,###; roundmode:round; roundpostion:2", "background-color:#00FF00; font-weight:bold; ", 1, "합계");
- }
- //
- }else if( rsrvFlag == "I"){
- // // btn_search.dispatch("DOMActivate");
- // grd_dschpat.colsort(1) = "asc";
- // grd_dschpat.sort(2,1,grd_dschpat.row,grd_dschpat.col)= "usersort";
- // // grd_dschpat.backcoloralternate = "transparent";
- grd_dschpat.subtotalposition= "below";
- for(i=7; i<21; i++){
- grd_dschpat.subtotal("sum", 1, i, "format:#,###; roundmode:round; roundpostion:2", "background-color:#00FF00; font-weight:bold; ", 1, "합계");
- }
- }
- //
- model.refresh();
- //
-
- }
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/send/srch/fromdd" class="input_default" navindex="1" inputtype="date" style="left:66px; top:11px; width:89px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }
- else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/send/srch/todd" class="input_default" navindex="2" inputtype="date" style="left:186px; top:11px; width:89px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }
- else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <button id="button95" class="btn6_letter4" visibility="hidden" style="left:1041px; top:12px; width:80px; height:22px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vToday = new Date();
- var tmpYear = vToday.getYear();
- var tmpMonth = vToday.getMonth()+1;
- var tmpDate = vToday.getDate();
-
- model.setValue("/root/documenttitle/title",document.title);
- model.refresh();
- var subjectTitle = model.getValue("/root/documenttitle/title");
-
- var fileName = window.fileDialog("save", ",", false, "퇴원환자현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName,"퇴원환자현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/send/srch/sort" overflow="visible" appearance="full" cols="2" style="left:805px; top:13px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>진료과별</label>
- <value>D</value>
- </item>
- <item>
- <label>보험유형별</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //
- var rsrvFlag = radio1.value;
-
- model.removenode("/root/main/dschpatinfo");
- submit("TRPAS00211");
-
- if( rsrvFlag == "D"){
- grd_dschpat.subtotalposition= "below";
- for(i=7; i<21; i++){
- grd_dschpat.subtotal("sum", 4, i, "format:#,###; roundmode:round; roundpostion:2", "background-color:#00FF00; font-weight:bold; ", 1, "합계",false);
- }
-
-
- }else if( rsrvFlag == "I"){
- grd_dschpat.subtotalposition= "below";
- for(i=7; i<21; i++){
- grd_dschpat.subtotal("sum", 1, i, "format:#,###; roundmode:round; roundpostion:2", "background-color:#00FF00; font-weight:bold; ", 1, "합계",false);
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </select1>
- </group>
- <datagrid id="grd_dschpat" nodeset="/root/main/dschpatinfo/dschlist" caption="유형^등록번호^환자명^진료과^입원일자^퇴원일자^총진료비^조합부담금^본인부담금^중간금^환불액^기타환불^감면^자선^수혈
대체액^외부기관미수^본인미수^당일입금액^당일입금액^당일입금액^퇴원상태^비교|유형^등록번호^환자명^진료과^입원일자^퇴원일자^총진료비^조합부담금^본인부담금^중간금^환불액^기타환불^감면^자선^수혈
대체액^외부기관미수^본인미수^현금^카드^온라인^퇴원상태^비교" colsep="^" colwidth="79, 68, 49, 95, 78, 79, 81, 75, 75, 75, 75, 75, 75, 75, 65, 79, 75, 75, 75, 75, 58" mergecellsfixedrows="bycolrec" multitotal="true" rowheader="seq" rowsep="|" selected="true" style="left:4px; top:75px; width:1202px; height:670px; ">
- <col disabled="true" ref="insukind" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="orddeptcd"/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="totalamt" format="#,###" style="text-align:right; "/>
- <col ref="insubamt" format="#,###" style="text-align:right; "/>
- <col ref="ownbamt" format="#,###" style="text-align:right; "/>
- <col ref="preamt" format="#,###" style="text-align:right; "/>
- <col ref="rtnamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="etcrtnamt" format="#,###" style="text-align:right; "/>
- <col ref="reduamt" format="#,###" style="text-align:right; "/>
- <col ref="charithreduamt" format="#,###" style="text-align:right; "/>
- <col ref="bloddiscamt" format="#,###" style="text-align:right; "/>
- <col ref="uncoamtbs" format="#,###" style="text-align:right; "/>
- <col ref="uncoamtps" format="#,###" style="text-align:right; "/>
- <col ref="cashamt" format="#,###" style="text-align:right; "/>
- <col ref="cardamt" format="#,###" style="text-align:right; "/>
- <col ref="onlineamt" format="#,###" style="text-align:right; "/>
- <col ref="indschacptstat"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- var srow = grd_dschpat.row;
- if (srow == 0 || model.getValue("/root/main/dschpatinfo/dschlist[" + srow + "]/pid") == "") {
- return;
- }
-
- var sPid = model.getValue("/root/main/dschpatinfo/dschlist[" + srow + "]/pid");
-
- model.setValue("/root/send/srchtel/pid", sPid);
- model.setValue("/root/send/srchtel/instcd", model.getValue("/root/main/dschpatinfo/dschlist[" + srow + "]/instcd"));
-
- model.removenode("/root/main/patinfotel");
-
- if (grp_dschpat.visible == true) {
- grp_dschpat.visible = false;
- } else {
- submit("TRPAS00212");
- model.refresh();
- grp_dschpat.visible = true;
-
- }
-
- }
-
-
-
- ]]>
- </script>
- </datagrid>
- <select id="checkbox1" ref="/root/send/srch/all" overflow="visible" appearance="full" style="left:298px; top:36px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>ALL</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tntchk = model.getValue("/root/send/srch/all");
- if(tntchk =="ALL"){
- model.setValue("/root/send/srch/all","N");
- }else{
- model.setValue("/root/send/srch/all","ALL");
- model.setValue("/root/send/srch/dsch","N");
- model.setValue("/root/send/srch/predsch","N");
- model.setValue("/root/send/srch/e70","N");
- model.setValue("/root/send/srch/disamt","N");
- model.setValue("/root/send/srch/unco","N");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/send/srch/dsch" overflow="visible" appearance="full" cols="3" style="left:344px; top:36px; width:60px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>퇴원</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tntchk = model.getValue("/root/send/srch/dsch");
- if(tntchk =="D"){
- model.setValue("/root/send/srch/dsch","N");
- }else{
- model.setValue("/root/send/srch/all","N");
- model.setValue("/root/send/srch/dsch","D");
- model.setValue("/root/send/srch/predsch","N");
- model.setValue("/root/send/srch/e70","N");
- model.setValue("/root/send/srch/disamt","N");
- model.setValue("/root/send/srch/unco","N");
- }
-
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox3" ref="/root/send/srch/predsch" overflow="visible" appearance="full" cols="3" style="left:385px; top:36px; width:65px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>가퇴원</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tntchk = model.getValue("/root/send/srch/predsch");
- if(tntchk =="T"){
- model.setValue("/root/send/srch/predsch","N");
- }else{
- model.setValue("/root/send/srch/all","N");
- model.setValue("/root/send/srch/dsch","N");
- model.setValue("/root/send/srch/predsch","T");
- model.setValue("/root/send/srch/e70","N");
- model.setValue("/root/send/srch/disamt","N");
- model.setValue("/root/send/srch/unco","N");
- }
-
- model.refresh();
-
- ]]>
- </script>
- </select>
- <select id="checkbox4" ref="/root/send/srch/e70" overflow="visible" appearance="full" cols="3" style="left:442px; top:36px; width:230px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>미수납(퇴원 청구만 되고 수납대기 상태)</label>
- <value>E70</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tntchk = model.getValue("/root/send/srch/e70");
- if(tntchk =="E70"){
- model.setValue("/root/send/srch/e70","N");
- }else{
- model.setValue("/root/send/srch/all","N");
- model.setValue("/root/send/srch/dsch","N");
- model.setValue("/root/send/srch/predsch","N");
- model.setValue("/root/send/srch/e70","E70");
- model.setValue("/root/send/srch/disamt","N");
- model.setValue("/root/send/srch/unco","N");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox5" ref="/root/send/srch/disamt" overflow="visible" appearance="full" cols="3" style="left:680px; top:36px; width:65px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>감면</label>
- <value>DC</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tntchk = model.getValue("/root/send/srch/disamt");
- if(tntchk =="DC"){
- model.setValue("/root/send/srch/disamt","N");
- }else{
- model.setValue("/root/send/srch/all","N");
- model.setValue("/root/send/srch/dsch","N");
- model.setValue("/root/send/srch/predsch","N");
- model.setValue("/root/send/srch/e70","N");
- model.setValue("/root/send/srch/disamt","DC");
- model.setValue("/root/send/srch/unco","N");
- }
-
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="checkbox6" ref="/root/send/srch/unco" overflow="visible" appearance="full" cols="3" style="left:723px; top:36px; width:65px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>미수</label>
- <value>UNCO</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tntchk = model.getValue("/root/send/srch/unco");
- if(tntchk =="UNCO"){
- model.setValue("/root/send/srch/unco","N");
- }else{
- model.setValue("/root/send/srch/all","N");
- model.setValue("/root/send/srch/dsch","N");
- model.setValue("/root/send/srch/predsch","N");
- model.setValue("/root/send/srch/e70","N");
- model.setValue("/root/send/srch/disamt","N");
- model.setValue("/root/send/srch/unco","UNCO");
- }
-
- model.refresh();
- ]]>
- </script>
- </select>
- <group id="grp_dschpat" visibility="hidden" style="left:275px; top:220px; width:255px; height:120px; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:2px; width:255px; height:113px; "/>
- <caption id="caption62" class="tit_2" style="left:5px; top:7px; width:133px; height:13px; font-family:돋움; vertical-align:middle; ">환자 Tel</caption>
- <caption id="caption22" class="cell_1" style="left:8px; top:28px; width:100px; height:23px; ">전화[자택]</caption>
- <caption id="caption34" class="cell_1" style="left:8px; top:52px; width:100px; height:23px; ">전화[휴대]</caption>
- <output id="ipt_hometel" ref="/root/main/patinfotel/patinfotel/hometel" class="output_fix" appearance="output" style="left:111px; top:29px; width:137px; height:19px; "/>
- <caption id="caption36" class="cell_1" style="left:8px; top:77px; width:100px; height:23px; ">전화[기타]</caption>
- <output id="ipt_mpphontel" ref="/root/main/patinfotel/patinfotel/mpphontel" class="output_fix" appearance="output" style="left:111px; top:53px; width:137px; height:19px; "/>
- <output id="ipt_etctel1" ref="/root/main/patinfotel/patinfotel/etctel1" class="output_fix" appearance="output" style="left:111px; top:79px; width:137px; height:19px; "/>
- <line id="line17" class="line_1" style="x1:9px; y1:24px; x2:246px; y2:25px; "/>
- <line id="line22" class="line_3" style="x1:10px; y1:100px; x2:247px; y2:100px; "/>
- <line id="line14" class="line_2" style="x1:8px; y1:75px; x2:245px; y2:75px; "/>
- <line id="line3" class="line_2" style="x1:9px; y1:50px; x2:246px; y2:50px; "/>
- <button id="button17" style="left:234px; top:3px; width:15px; height:15px; font-size:10pt; font-weight:bold; ">
- <caption>X</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/patinfotel");
- grp_dschpat.visible = false;
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|