123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <pid/>
- <indd/>
- <cretno/>
- <hngnm/>
- <dschschdd/>
- <dschdelayresn/>
- <cnslttxt/>
- <dsrnlist/>
- <dsrnbaseinfo/>
- <sex/>
- <age/>
- <orddeptnm/>
- <insukindnm/>
- <wardnm/>
- <roomcd/>
- <indaycnt/>
- <totamt/>
- <owntotamt/>
- <allowninsubamt/>
- <rcptexptamt/>
- <totpreamt/>
- <instpayamt/>
- <fromdd/>
- <todd/>
- <midamtmsg/>
- </main>
- <send>
- <temp/>
- </send>
- <init/>
- <hidden>
- <rcv/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var vflag = opener.javascript.getParameter("vflag");
-
- if(vflag != "1") {
-
- if ( checkOpener() ) {
-
- model.removeNodeset("/root/main/dsrnlist");
-
- var pid = opener.javascript.getParameter("SPPMI04001_PID");
- var indd = opener.javascript.getParameter("SPPMI04001_INDD");
- var cretno = opener.javascript.getParameter("SPPMI04001_CRETNO");
- var hgnm = opener.javascript.getParameter("SPPMI04001_HNGNM");
- var dschschdd = opener.javascript.getParameter("SPPMI04001_DSCHSCHDD");
- var dscgdelayresn = opener.javascript.getParameter("SPPMI04001_DSCHDELAYRESN");
- var cnslttxt = opener.javascript.getParameter("SPPMI04001_CNSLTTXT");
-
- model.setValue("/root/main/pid", pid);
- model.setValue("/root/main/indd", indd);
- model.setValue("/root/main/cretno", cretno);
- model.setValue("/root/main/hngnm", hgnm);
- model.setValue("/root/main/dschschdd", dschschdd);
- model.setValue("/root/main/dschdelayresn", dscgdelayresn);
- model.setValue("/root/main/cnslttxt", cnslttxt);
-
- // 해당 환자의 퇴원지연사유 리스트 조회
- submit("TRPMI04002");
- submit("TRPMI04003");
-
- // 기본정보 추가
- model.setValue("/root/main/sex", model.getValue("/root/main/dsrnbaseinfo/sex"));
- model.setValue("/root/main/age", model.getValue("/root/main/dsrnbaseinfo/age"));
- model.setValue("/root/main/orddeptnm", model.getValue("/root/main/dsrnbaseinfo/orddeptnm"));
- model.setValue("/root/main/insukindnm", model.getValue("/root/main/dsrnbaseinfo/insukindnm"));
- model.setValue("/root/main/wardnm", model.getValue("/root/main/dsrnbaseinfo/wardnm"));
- model.setValue("/root/main/roomcd", model.getValue("/root/main/dsrnbaseinfo/roomcd"));
- model.setValue("/root/main/indaycnt", model.getValue("/root/main/dsrnbaseinfo/indaycnt"));
-
- // 진료비 정보
- model.setValue("/root/main/totamt", model.getValue("/root/main/dsrnbaseinfo/totamt"));
- model.setValue("/root/main/owntotamt", model.getValue("/root/main/dsrnbaseinfo/owntotamt"));
- model.setValue("/root/main/allowninsubamt", model.getValue("/root/main/dsrnbaseinfo/allowninsubamt"));
- model.setValue("/root/main/rcptexptamt", model.getValue("/root/main/dsrnbaseinfo/rcptexptamt"));
- model.setValue("/root/main/totpreamt", model.getValue("/root/main/dsrnbaseinfo/totpreamt"));
- model.setValue("/root/main/instpayamt", model.getValue("/root/main/dsrnbaseinfo/instpayamt"));
- model.setValue("/root/main/fromdd", model.getValue("/root/main/dsrnbaseinfo/fromdd"));
- model.setValue("/root/main/todd", model.getValue("/root/main/dsrnbaseinfo/todd"));
- model.setValue("/root/main/midamtmsg", model.getValue("/root/main/dsrnbaseinfo/midamtmsg"));
- model.refresh();
-
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- //return false;
- }
- }
- ]]>
- </script>
- <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"/>
- <submission id="TXPMI04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/temp" resultref="/root/hidden/rcv"/>
- <submission id="TRPMI04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" resultref="/root/main/dsrnlist"/>
- <submission id="TRPMI04003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" resultref="/root/main/dsrnbaseinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="600" style="font-size:14px; ">
- <group id="group1" scroll="auto" style="left:0px; top:570px; width:800px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" navindex="3" style="left:681px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/temp");
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData(grd_pmihdsrn);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- } else {
- // var vflag = opener.javascript.getParameter("vflag");
-
- // if(vflag != "1") {
- if ( checkOpener() ) {
- model.setValue("/root/send/temp", update);
- if( submit("TXPMI04002") ){
- messageBox("저장 되었습니다", "I999", "");
- }
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- //return false;
- }
- // } else {
- // if( submit("TXPMI04002") ){
- // messageBox("저장 되었습니다", "I999", "");
- // }
- // }
- // model.setValue("/root/send/temp", update);
- //submit("TXPMI04002");
- }
- }
-
- //grd_picmrulelist.dispatch("onclick");
-
- var rowcnt = grd_pmihdsrn.rows;
- for(var i = 1 ; i < rowcnt ; i++) {
- grd_pmihdsrn.rowStatus(i) = 0;
- }
-
- // 리스트 재조회
- model.removeNodeset("/root/main/dsrnlist");
- submit("TRPMI04002");
- model.refresh();
- /*
- if ( checkOpener() ) {
-
- if( submit("TXPMI04002") ){
- messageBox("저장 되었습니다", "I999", "");
- }
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- //return false;
- }
- */
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" navindex="4" style="left:740px; top:4px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vflag = opener.javascript.getParameter("vflag");
-
- if(vflag != "1") {
-
- if ( checkOpener() ) {
-
- opener.javascript.setParameter("SPPMI04001_DSCHSCHDD", grd_pmihdsrn.valueMatrix(grd_pmihdsrn.rows - 1, grd_pmihdsrn.colRef("dschschdd")));
- opener.javascript.setParameter("SPPMI04001_DSCHDELAYRESN", grd_pmihdsrn.valueMatrix(grd_pmihdsrn.rows - 1, grd_pmihdsrn.colRef("dschdelayresn")));
-
- // opener.javascript.setParameter("SPPMI04001_DSCHSCHDD", model.getValue("/root/main/dschschdd"));
- // opener.javascript.setParameter("SPPMI04001_DSCHDELAYRESN", model.getValue("/root/main/dschdelayresn"));
-
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- //return false;
- }
- }
-
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:800px; y2:0px; "/>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:17px; x2:798px; y2:18px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:120px; height:13px; ">퇴원지연사유</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:21px; width:90px; height:20px; text-align:center; ">등 록 번 호</caption>
- <caption id="caption1" class="cell_1" style="left:215px; top:21px; width:90px; height:20px; text-align:center; ">성 명</caption>
- <line id="line104" class="line_2" style="x1:0px; y1:88px; x2:798px; y2:88px; "/>
- <caption id="caption2" class="cell_1" style="left:430px; top:67px; width:90px; height:20px; text-align:center; ">퇴원예정일</caption>
- <line id="line127" class="line_3" style="x1:0px; y1:315px; x2:800px; y2:315px; "/>
- <input id="ipt_pid" ref="/root/main/pid" disabled="false" appearance="input" style="left:92px; top:21px; width:121px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(ipt_pid.value != "" || ipt_pid.value != null){
- if (event.keyCode == '13') {
- model.setValue("/root/main/pid", ipt_pid.currentText.removeMask('\n'));
- //btn_ref.dispatch("onclick");
- submit("TRPMI04002");
- submit("TRPMI04003");
- model.setValue("/root/main/hngnm", model.getValue("/root/main/dsrnbaseinfo/hngnm"));
- model.setValue("/root/main/indd", model.getValue("/root/main/dsrnbaseinfo/indd"));
- model.setValue("/root/main/cretno", model.getValue("/root/main/dsrnbaseinfo/cretno"));
- model.setValue("/root/main/dschschdd", model.getValue("/root/main/dsrnbaseinfo/dschschdd"));
-
- // 기본정보 추가
- model.setValue("/root/main/sex", model.getValue("/root/main/dsrnbaseinfo/sex"));
- model.setValue("/root/main/age", model.getValue("/root/main/dsrnbaseinfo/age"));
- model.setValue("/root/main/orddeptnm", model.getValue("/root/main/dsrnbaseinfo/orddeptnm"));
- model.setValue("/root/main/insukindnm", model.getValue("/root/main/dsrnbaseinfo/insukindnm"));
- model.setValue("/root/main/wardnm", model.getValue("/root/main/dsrnbaseinfo/wardnm"));
- model.setValue("/root/main/roomcd", model.getValue("/root/main/dsrnbaseinfo/roomcd"));
- model.setValue("/root/main/indaycnt", model.getValue("/root/main/dsrnbaseinfo/indaycnt"));
-
- // 진료비 정보
- model.setValue("/root/main/totamt", model.getValue("/root/main/dsrnbaseinfo/totamt"));
- model.setValue("/root/main/owntotamt", model.getValue("/root/main/dsrnbaseinfo/owntotamt"));
- model.setValue("/root/main/allowninsubamt", model.getValue("/root/main/dsrnbaseinfo/allowninsubamt"));
- model.setValue("/root/main/rcptexptamt", model.getValue("/root/main/dsrnbaseinfo/rcptexptamt"));
- model.setValue("/root/main/totpreamt", model.getValue("/root/main/dsrnbaseinfo/totpreamt"));
- model.setValue("/root/main/instpayamt", model.getValue("/root/main/dsrnbaseinfo/instpayamt"));
- model.setValue("/root/main/fromdd", model.getValue("/root/main/dsrnbaseinfo/fromdd"));
- model.setValue("/root/main/todd", model.getValue("/root/main/dsrnbaseinfo/todd"));
- model.setValue("/root/main/midamtmsg", model.getValue("/root/main/dsrnbaseinfo/midamtmsg"));
- model.refresh();
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/main/hngnm" disabled="false" editable="false" appearance="input" style="left:307px; top:21px; width:121px; height:19px; text-align:center; "/>
- <input id="ipt_dschschdd" ref="/root/main/dschschdd" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:522px; top:67px; width:121px; height:19px; text-align:center; "/>
- <datagrid id="grd_pmihdsrn" nodeset="/root/main/dsrnlist" autoresize="true" caption="입력일자^상담자^관계^전화번호^상담내용^퇴원지연사유^등록자^환자번호^환자명^입원일자^퇴원예정일^생성번호" colsep="^" colwidth="97, 60, 45, 90, 222, 177, 60, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:192px; width:800px; height:376px; ">
- <col disabled="true" editable="false" ref="rgstdt" style="text-align:center; "/>
- <col ref="cnstnm" type="input" style="text-align:center; "/>
- <col ref="cnstrela" type="input" style="text-align:center; "/>
- <col ref="telnum" type="input" style="text-align:center; "/>
- <col ref="dschdelayresn" type="input"/>
- <col ref="cnslttxt" type="input"/>
- <col ref="rgstid" style="text-align:center; "/>
- <col ref="pid" visibility="hidden" style="text-align:center; "/>
- <col ref="hngnm" visibility="hidden" style="text-align:center; "/>
- <col ref="indd" visibility="hidden" style="text-align:center; "/>
- <col ref="dschschdd" visibility="hidden" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- <button id="btn_msg_del" class="btn2_letter3" style="left:744px; top:166px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_pmihdsrn.row;
- grd_pmihdsrn.deleteRow(row);
- ]]>
- </script>
- </button>
- <button id="btn_msg_add" class="btn2_letter3" style="left:688px; top:166px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 제어코드 내용을 복사하여 추가
- grd_pmihdsrn.addRow();
- var rowno = grd_pmihdsrn.row;
- //alert(model.getValue("/root/main/dschschdd"));
- grd_pmihdsrn.valueMatrix(rowno, grd_pmihdsrn.colRef("pid")) = model.getValue("/root/main/pid");
- grd_pmihdsrn.valueMatrix(rowno, grd_pmihdsrn.colRef("hngnm")) = model.getValue("/root/main/hngnm");
- grd_pmihdsrn.valueMatrix(rowno, grd_pmihdsrn.colRef("indd")) = model.getValue("/root/main/indd");
- grd_pmihdsrn.valueMatrix(rowno, grd_pmihdsrn.colRef("cretno")) = model.getValue("/root/main/cretno");
- grd_pmihdsrn.valueMatrix(rowno, grd_pmihdsrn.colRef("dschschdd")) = model.getValue("/root/main/dschschdd");
- grd_pmihdsrn.valueMatrix(rowno, grd_pmihdsrn.colRef("cnstnm")) = model.getValue("/root/main/hngnm");
- grd_pmihdsrn.valueMatrix(rowno, grd_pmihdsrn.colRef("rgstdd")) = getCurrentDate();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:621px; top:166px; 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_pmihdsrn.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/sex" disabled="false" editable="false" appearance="input" style="left:522px; top:21px; width:91px; height:19px; text-align:center; "/>
- <caption id="caption4" class="cell_1" style="left:430px; top:21px; width:90px; height:20px; text-align:center; ">성 별</caption>
- <caption id="caption5" class="cell_1" style="left:615px; top:21px; width:90px; height:20px; text-align:center; ">연 령</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:67px; width:90px; height:20px; text-align:center; ">입 원 일 자</caption>
- <input id="input2" ref="/root/main/wardnm" disabled="false" editable="false" appearance="input" style="left:522px; top:44px; width:91px; height:19px; text-align:center; "/>
- <caption id="caption8" class="cell_1" style="left:430px; top:44px; width:90px; height:20px; text-align:center; ">병 동</caption>
- <caption id="caption9" class="cell_1" style="left:615px; top:44px; width:90px; height:20px; text-align:center; ">병 실</caption>
- <input id="input4" ref="/root/main/orddeptnm" disabled="false" editable="false" appearance="input" style="left:92px; top:44px; width:121px; height:19px; text-align:center; "/>
- <input id="input5" ref="/root/main/indaycnt" disabled="false" editable="false" appearance="input" style="left:307px; top:67px; width:121px; height:19px; text-align:center; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:44px; width:90px; height:20px; text-align:center; ">입 원 과</caption>
- <caption id="caption11" class="cell_1" style="left:215px; top:44px; width:90px; height:20px; text-align:center; ">보 험 유 형</caption>
- <caption id="caption12" class="cell_1" style="left:215px; top:67px; width:90px; height:20px; text-align:center; ">현재입원일수</caption>
- <line id="line2" class="line_2" style="x1:1px; y1:42px; x2:799px; y2:42px; "/>
- <input id="input3" ref="/root/main/age" disabled="false" editable="false" appearance="input" style="left:707px; top:21px; width:91px; height:19px; text-align:center; "/>
- <input id="input6" ref="/root/main/roomcd" disabled="false" editable="false" appearance="input" style="left:707px; top:44px; width:91px; height:19px; text-align:center; "/>
- <line id="line3" class="line_2" style="x1:1px; y1:65px; x2:799px; y2:65px; "/>
- <input id="input7" ref="/root/main/insukindnm" disabled="false" editable="false" appearance="input" style="left:307px; top:44px; width:121px; height:19px; text-align:center; "/>
- <input id="input8" ref="/root/main/indd" editable="false" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:92px; top:68px; width:121px; height:19px; text-align:center; "/>
- <line id="line4" class="line_1" style="x1:0px; y1:112px; x2:798px; y2:113px; "/>
- <caption id="caption13" class="tit_2" style="left:0px; top:95px; width:125px; height:14px; font-family:돋움; vertical-align:middle; ">중간진료비 현황</caption>
- <line id="line5" class="line_2" style="x1:0px; y1:137px; x2:798px; y2:137px; "/>
- <input id="input9" ref="/root/main/totamt" disabled="false" format="#,###" appearance="input" style="left:98px; top:116px; width:100px; height:19px; text-align:right; padding-right:5; "/>
- <caption id="caption14" class="cell_1" style="left:200px; top:116px; width:97px; height:20px; text-align:center; ">본인부담총액</caption>
- <caption id="caption15" class="cell_1" style="left:0px; top:116px; width:97px; height:20px; text-align:center; ">총 진 료 비</caption>
- <caption id="caption16" class="cell_1" style="left:401px; top:116px; width:97px; height:20px; text-align:center; ">기 납 부 액</caption>
- <input id="input10" ref="/root/main/owntotamt" disabled="false" editable="false" format="#,###" appearance="input" style="left:299px; top:116px; width:100px; height:19px; text-align:right; padding-right:5; "/>
- <caption id="caption17" class="cell_1" style="left:602px; top:116px; width:97px; height:20px; text-align:center; ">감 면 액</caption>
- <input id="input11" ref="/root/main/totpreamt" disabled="false" editable="false" format="#,###" appearance="input" style="left:500px; top:116px; width:100px; height:19px; text-align:right; padding-right:5; "/>
- <input id="input12" ref="/root/main/allowninsubamt" disabled="false" editable="false" format="#,###" appearance="input" style="left:700px; top:116px; width:98px; height:19px; text-align:right; padding-right:5; "/>
- <line id="line6" class="line_2" style="x1:1px; y1:160px; x2:799px; y2:160px; "/>
- <input id="input13" ref="/root/main/instpayamt" disabled="false" format="#,###" appearance="input" style="left:98px; top:139px; width:100px; height:19px; text-align:right; padding-right:5; "/>
- <input id="input14" ref="/root/main/rcptexptamt" disabled="false" editable="false" format="#,###" appearance="input" style="left:299px; top:139px; width:100px; height:19px; font-weight:bold; text-align:right; padding-right:5; "/>
- <caption id="caption18" class="cell_1" style="left:200px; top:139px; width:97px; height:20px; text-align:center; ">미 수 총 액</caption>
- <caption id="caption19" class="cell_1" style="left:0px; top:139px; width:97px; height:20px; text-align:center; ">대 불 액</caption>
- <line id="line7" class="line_1" style="x1:1px; y1:188px; x2:799px; y2:189px; "/>
- <caption id="caption20" class="tit_2" style="left:0px; top:170px; width:125px; height:14px; font-family:돋움; vertical-align:middle; ">상담내역</caption>
- <caption id="caption21" class="cell_1" style="left:401px; top:139px; width:97px; height:20px; text-align:center; ">계 산 일 자</caption>
- <input id="input15" ref="/root/main/fromdd" editable="false" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:500px; top:139px; width:121px; height:19px; text-align:center; "/>
- <input id="input16" ref="/root/main/todd" editable="false" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:641px; top:139px; width:121px; height:19px; text-align:center; "/>
- <caption id="caption22" style="left:625px; top:142px; width:15px; height:14px; ">~</caption>
- <output id="opt_midamtmsg" ref="/root/main/midamtmsg" style="left:133px; top:92px; width:305px; height:19px; font-size:10pt; font-weight:bold; color:#ff0000; "/>
- <button id="button2" class="btn2_letter2" style="left:576px; top:166px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/dsrnbaseinfo/usernm", getUserName());
- model.refresh();
- exeReportPreview("RPPMI04001", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|