123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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="">
- <send>
- <fromdd/>
- <todd/>
- <ioflag>I O S</ioflag>
- </send>
- <main>
- <rcptlist>
- <state/>
- <pid/>
- <hngnm/>
- <orddd/>
- <dschdd/>
- <rcptdd/>
- <orddeptnm/>
- <totalamt/>
- <payment/>
- <markpay/>
- <insukind/>
- <suppkind/>
- <diagcd/>
- <diagnm/>
- </rcptlist>
- </main>
- <hidden>
- </hidden>
- <temp>
- </temp>
- <list>
- </list>
- </root>
- </instance>
- <submission id="TRPMI06200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXPMI06201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetUserInfosSampling();//세션정보
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- // 외국인 수납파일 생성
- function fMakeForeRcptFile() {
-
- //조회조건 체크
- var vcheck_fromdd = (model.getValue("/root/send/fromdd")).getTrim();
- var vcheck_todd = (model.getValue("/root/send/todd")).getTrim();
-
- //환자번호 존재시 기간 상관없이 조회
- if (vcheck_fromdd == "" || vcheck_fromdd == " " || vcheck_fromdd == "-" || vcheck_fromdd == null ) {
- messageBox("시작일자가 입력되지","E007");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- if (vcheck_todd == "" || vcheck_todd == " " || vcheck_todd == "-" || vcheck_todd == null ) {
- messageBox("종료일자가 입력되지","E007");
- model.setFocus("ipt_todd");
- return;
- }
-
- if (isValidDateTime(vcheck_fromdd, "YYYYMMDD") != true) {
- messageBox("시작일자 형식 오류입니다!","E999","");
- return false;
- }
-
- if (isValidDateTime(vcheck_todd, "YYYYMMDD") != true) {
- messageBox("종료일자 형식 오류입니다!","E999","");
- return false;
- }
-
- if (eval(vcheck_fromdd) > eval(vcheck_todd)) {
- messageBox("종료일자는 시작일자보다 같거나 커야 합니다!","E999","");
- return false;
- }
-
- if (submit("TXPMI06201")) {
- messageBox("외국인수납파일생성 배치가 실행되었습니다.", "I000");
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:125px; height:13px; ">외국인 수납 내역</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1193px; height:720px; ">
- <group id="group5" style="left:0px; top:5px; width:1172px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1172px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1100px; y1:7px; x2:1100px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption39" class="search_name" style="left:8px; top:9px; width:112px; height:17px; ">수납기간조회 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1111px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/ioflag").length < 1) {
- messageBox("진료구분은 적어도 1개 이상 선택해야 합니다.", "E999");
- return;
- }
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
-
- if (isNull(fromdd) || isNull(todd)) {
- messageBox("시작일자 및 종료일자는 반드시 입력해야 합니다.", "E999");
- return;
- }
-
- var minusrslt = getDateInterval(fromdd,todd);
- if (minusrslt > 93) {
- messageBox("최대 3개월까지 조회가능합니다.\r\n장기간 데이터는 파일생성 기능을 통해 처리하십시오.", "E999");
- return;
- }
-
- submit("TRPMI06200");
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/fromdd" navindex="1" inputtype="date" style="left:130px; top:8px; width:85px; height:19px; "/>
- <input id="input2" ref="/root/send/todd" navindex="2" inputtype="date" style="left:232px; top:8px; width:85px; height:19px; "/>
- <caption id="caption1" style="left:216px; top:11px; width:15px; height:15px; text-align:center; ">~</caption>
- <caption id="caption3" class="search_name" style="left:345px; top:10px; width:86px; height:17px; ">진료구분 :</caption>
- <select id="radio1" ref="/root/send/ioflag" navindex="4" overflow="visible" appearance="full" cols="4" style="left:435px; top:10px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- </select>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:50px; width:126px; height:13px; ">일자별 수납리스트</caption>
- <line id="line1" class="line_1" style="x1:6px; y1:70px; x2:1165px; y2:69px; "/>
- <datagrid id="grd_rcptlist" nodeset="/root/main/rcptlist" caption="국가^환자번호^성명^생년^월일^주민번호^성별^구분^진료일자^퇴원일자^수납일^진료과^진료의^진료의^진료비총액^본인부담금^조합부담금^보험유형^보조유형^상병코드^상병명^대표 EDI코드^대표 EDI처방명" colsep="^" colwidth="100, 76, 90, 45, 45, 70, 40, 40, 85, 85, 85, 110, 60, 50, 74, 74, 74, 76, 110, 100, 180, 100, 180" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:75px; width:1165px; height:640px; text-align:center; ">
- <col ref="state" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="brthyy"/>
- <col ref="brthmd"/>
- <col ref="rrgstno2"/>
- <col disabled="true" ref="sex" type="combo">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ordflag" type="combo">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="rcptdd" format="yyyy-mm-dd"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="orddrid" style="text-align:center; "/>
- <col ref="totalamt" format="#,###"/>
- <col ref="payment" format="#,###"/>
- <col ref="markpay" format="#,###"/>
- <col ref="insukind"/>
- <col ref="suppkind"/>
- <col ref="diagcd"/>
- <col ref="diagnm"/>
- <col ref="edicd"/>
- <col ref="edinm"/>
- </datagrid>
- <button id="button1" class="btn2_letter2" style="left:1060px; top:45px; width:45px; height:20px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPMI06200", "XMLSTR" , "" , "" , "false" , "", "", "", "", "", "", "");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" style="left:1105px; top:45px; 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_rcptlist.saveExcel(fileName, "SheetName;col_6:label;col_7:label;", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter4" style="left:898px; top:45px; width:64px; height:19px; ">
- <caption>파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMakeForeRcptFile();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter6" style="left:965px; top:45px; width:86px; height:19px; ">
- <caption>파일생성로그</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(1, 'D');
- zsbfOpenBatchLogPopup("ipatmngtmgr.ForeRcptFileBatch", getCurrentDate(), todd.getDateFormat());
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|