123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPIS00200_월별환자조회.xrw
- * 수정이력
- * - 2008.09.29 / 최초작성 / 강종태
- ************************************************
- * [ Maps ]
- * TRZBC00102 : 공통코드(청구 구분)
- * TRPID20309 : 진료과
- * TRPID20407 : 청구차수
- * TRPID20201 : 청구과
- -->
- <?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>
- <grdlist>
- <monpatlist>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <clamym/>
- <clamprcsstat/>
- <clamdg/>
- <ioflag/>
- <insukind/>
- <suppkind/>
- <clamdeptnm/>
- <orddeptcd/>
- <orddrnm/>
- <judgendyn/>
- <clamendyn/>
- <acptno/>
- <docuseqno/>
- <ordfromdd/>
- <fromdd/>
- <todd/>
- <judgyn/>
- <delreason1/>
- <delreason2/>
- <rtnrsncd1/>
- <rtnrsncd2/>
- <edimedcaretotamt/>
- <ediownbamt/>
- <ediinsuclamamt/>
- <edilimitamt/>
- <edisuppamt/>
- <edisubtamt/>
- <edihandcaprfund/>
- <judgrid/>
- <judgenddd/>
- <preacptno/>
- <predocuno/>
- <preresncd/>
- <insuno/>
- </monpatlist>
- </grdlist>
- </main>
- <init>
- <!-- 청구구분 -->
- <P0155list>
- <P0155>
- <cdnm/>
- <cdid/>
- <cdengabbrnm/>
- </P0155>
- </P0155list>
- <!-- 청구분야 -->
- <P0291list>
- <P0291>
- <cdnm/>
- <cdid/>
- </P0291>
- </P0291list>
- <!-- 청구년월 -->
- <clamdg/>
- <clamdgfrom>
- <clamdglist>
- <clamdgnm/>
- <clamdgcd/>
- </clamdglist>
- </clamdgfrom>
- <clamdgto>
- <clamdglist>
- <clamdgnm/>
- <clamdgcd/>
- </clamdglist>
- </clamdgto>
- <!-- 진료과 -->
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- <tmp>
- <grdlist>
- <monpatlist>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <clamym/>
- <clamflagcd/>
- <clamdg/>
- <ioflag/>
- <insukind/>
- <suppkind/>
- <clamdeptnm/>
- <orddeptcd/>
- <orddrnm/>
- <judgendyn/>
- <clamendyn/>
- <acptno/>
- <docuseqno/>
- <ordfromdd/>
- <fromdd/>
- <todd/>
- <judgyn/>
- <delreason/>
- <rtnrsncd1/>
- <rtnrsncd2/>
- <edimedcaretotamt/>
- <ediownbamt/>
- <ediinsuclamamt/>
- <ediownbmaxexamt/>
- <edisuppamt/>
- <edisubtamt/>
- <edihandcaprfund/>
- <judgrid/>
- <judgenddd/>
- <insuno/>
- </monpatlist>
- </grdlist>
- </tmp>
- </init>
- <send>
- <clamflag/>
- <clamym/>
- <clamymfrom/>
- <clamdgfrom/>
- <clamymto/>
- <clamdgto/>
- <ioflag/>
- <ordfildcd/>
- <clamdeptcd/>
- <orddeptcd/>
- <nonclam/>
- <minrnum/>
- <maxrnum/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면 초기화
- fInitialize();
- ]]>
- </script>
- <!-- submission -->
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPIS00200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
- <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
- <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/clamdg"/>
- </model>
- <!-- js import -->
- <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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <!-- 뽕숑 -->
- <script type="javascript">
- <![CDATA[
-
- // 화면 초기화
- function fInitialize()
- {
- rdo_ioflag.value = "A"; // 내원유형:전체
- model.removeNodeset("/root/main/grdlist/monpatlist"); // 그리드 초기화
- fGetOrdDept(); // 진료과 콤보 리스트
- zbcfGetCodeList(new Array("P0155","P0291")
- ,new Array("/root/init/P0155list","/root/init/P0291list")
- ,false); // 청구구분,청구분야
- cmb_clamflag.refresh();
-
- // 청구년월, 차수 셋팅 시작
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var basemonth = today.getDateFormat("MM");
- var currentym = baseyear + basemonth;
- model.setValue("/root/send/clamymfrom",currentym);
- // model.setValue("/root/send/clamymto",currentym);
- ipt_clamymfrom.refresh();
- // ipt_clamymto.refresh();
- pidfGetClamdg();
- // 청구년월 셋팅 끝
-
- fGetClamDept(); // 청구과 콤보 리스트
-
- cmb_clamdgfrom.select(0);
- cmb_clamdgfrom.refresh();
- // cmb_clamdgto.select(0);
- // cmb_clamdgto.refresh();
- }
-
- // 진료과 리스트 가져오기
- function fGetOrdDept()
- {
- submit("TRPID20309");
- }
-
- // 청구년월 함수
- function pidfGetClamdg() {
- model.removeNodeset("/root/init/clamdg");
- model.makeNode("/root/init/clamdg");
- model.setValue("/root/send/clamym",model.getValue("/root/send/clamymfrom"));
- submit("TRPID20407");
- model.copyNode("/root/init/clamdgfrom","/root/init/clamdg");
-
- // model.setValue("/root/send/clamym",model.getValue("/root/send/clamymto"));
- // submit("TRPID20407");
- // model.copyNode("/root/init/clamdgto","/root/init/clamdg");
- }
-
- // 청구과 함수
- function fGetClamDept()
- {
- submit("TRPID20201");
- }
-
- function fSearch()
- {
- grd_outjudg.visible = "hidden";
- var chk_clamym = model.getValue("/root/send/clamymfrom");
- if ( chk_clamym == "")
- {
- messageBox("청구년월은 ", "I003");
- }
- else
- {
- var minrnum = 1;
- var maxrnum = 5000;
-
- model.setValue("/root/send/minrnum",minrnum);
- model.setValue("/root/send/maxrnum",maxrnum);
-
- submit("TRPIS00200");
-
- // 원래는 한번에 다 가져 오는 것이었던 것이다.
- // var minrnum = 1;
- // var maxrnum = 5000;
- //
- // model.setValue("/root/send/minrnum",minrnum);
- // model.setValue("/root/send/maxrnum",maxrnum);
- //
- // while(1==1)
- // {
- // submit("TRPIS00200");
- // if (model.getValue("/root/init/tmp/grdlist[1]/monpatlist[1]/pid") == "")
- // break;
- // model.duplicate("/root/main","/root/init/tmp/grdlist");
- // model.removeNodeset("/root/init/tmp/grdlist");
- // minrnum = minrnum + 5000;
- // maxrnum = maxrnum + 5000;
- // model.setValue("/root/send/minrnum",minrnum);
- // model.setValue("/root/send/maxrnum",maxrnum);
- // }
- }
-
- grd_outjudg.refresh();
- }
-
- function fNextpage()
- {
- if (model.getValue("/root/main/grdlist/monpatlist[1]/pid") != "")
- {
- model.removeNodeset("/root/main/grdlist/monpatlist");
- var minrnum = model.getValue("/root/send/minrnum");
- var maxrnum = model.getValue("/root/send/maxrnum");
-
- minrnum = parseInt(minrnum) + 5000;
- maxrnum = parseInt(maxrnum) + 5000;
-
- model.setValue("/root/send/minrnum",minrnum);
- model.setValue("/root/send/maxrnum",maxrnum);
-
- submit("TRPIS00200");
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1212;2,785;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <!-- TITLE -->
- <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">월별환자조회</caption>
- </group>
- <!-- 전체 그룹 -->
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1211px; height:732px; ">
- <!-- 조회조건 -->
- <group id="group3" style="left:0px; top:10px; width:1210px; height:55px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1210px; height:55px; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:6px; width:81px; height:17px; ">청구 구분</caption>
- <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" appearance="minimal" style="left:100px; top:5px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:47px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1134px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption26" class="search_name" style="left:250px; top:6px; width:76px; height:17px; ">청구년월</caption>
- <input id="ipt_clamymfrom" ref="/root/send/clamymfrom" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:340px; top:5px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- pidfGetClamdg();
- cmb_clamdgfrom.refresh();
- cmb_clamdgfrom.select(0);
- ]]>
- </script>
- </input>
- <select1 id="cmb_clamdgfrom" ref="/root/send/clamdgfrom" class="combo_search" appearance="minimal" style="left:425px; top:5px; width:55px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdgfrom/clamdglist">
- <label ref="clamdgnm"/>
- <value ref="clamdgcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:665px; top:6px; width:76px; height:17px; ">내원유형</caption>
- <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:755px; top:6px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetOrdDept(); // 진료과 콤보 리스트
- fGetClamDept(); // 청구과 콤보 리스트
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:10px; top:30px; width:81px; height:17px; ">청구 분야</caption>
- <select1 id="cmb_ordfildcd" ref="/root/send/ordfildcd" class="combo_search" appearance="minimal" style="left:100px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0291list/P0291">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/clamdeptcd", "");
-
- var ordfildcd = model.getValue("/root/send/ordfildcd");
- if (ordfildcd) {
- cmb_clamdeptcd.choices.itemset.attribute("nodeset") = "/root/init/tmp/clamdept/clamdeptlist[cdval='" + ordfildcd + "']";
- } else {
- cmb_clamdeptcd.choices.itemset.attribute("nodeset") = "/root/init/tmp/clamdept/clamdeptlist";
- }
-
- cmb_clamdeptcd.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:250px; top:30px; width:81px; height:17px; ">청구과</caption>
- <select1 id="cmb_clamdeptcd" ref="/root/send/clamdeptcd" class="combo_search" appearance="minimal" style="left:340px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmp/clamdept/clamdeptlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:665px; top:30px; width:81px; height:17px; ">진료과</caption>
- <select1 id="input3" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:755px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmp/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select id="checkbox1" ref="/root/send/nonclam" overflow="visible" appearance="full" style="left:970px; top:20px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미청구건보기</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- <button id="btn_excelsave" class="btn2_letter4" style="left:1137px; top:68px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_outjudg.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "월별환자조회_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
- grd_outjudg.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- <caption id="caption8" class="tit_2" style="left:0px; top:75px; width:100px; height:14px; ">환자 리스트</caption>
- <datagrid id="grd_outjudg" nodeset="/root/main/grdlist/monpatlist" class="datagrid2" caption="등록번호^성명^주민번호^청구월^구분^차수^내원유형^유형^보조^청구과^진료과^진료의^심사상태^명세서 상태^접수번호^명일련^진료개시일^유형시작일^종료일^심사결정^삭제사유^반송사유^반송사유^총진료비^본인부담액^청구액^상한액^지원금^대불금^장애인^심사자^심사시간^이전
접수번호^이전
명일련^이전
사유코드^조합기호" colsep="^" colwidth="62, 49, 103, 56, 39, 51, 37, 20, 23, 100, 61, 55, 66, 72, 66, 54, 78, 80, 80, 37, 151, 29, 29, 75, 75, 75, 75, 75, 75, 75, 59, 83, 72, 60, 62, 80" extendlastcol="scroll" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:90px; width:1210px; height:640px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdengabbrnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="clamdg" style="text-align:right; "/>
- <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="insukind" style="text-align:center; "/>
- <col ref="suppkind" style="text-align:center; "/>
- <col ref="clamdeptnm"/>
- <col ref="orddeptcd"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="judgendyn"/>
- <col ref="clamendyn"/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="docuseqno" style="text-align:right; "/>
- <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="judgyn" style="text-align:center; "/>
- <col ref="delreason"/>
- <col ref="rtnrsncd1"/>
- <col ref="rtnrsncd2"/>
- <col ref="edimedcaretotamt" format="#,###" style="text-align:right; "/>
- <col ref="ediownbamt" format="#,###" style="text-align:right; "/>
- <col ref="ediinsuclamamt" format="#,###" style="text-align:right; "/>
- <col ref="ediownbmaxexamt" format="#,###" style="text-align:right; "/>
- <col ref="edisuppamt" format="#,###" style="text-align:right; "/>
- <col ref="edisubtamt" format="#,###" style="text-align:right; "/>
- <col ref="edihandcaprfund" format="#,###" style="text-align:right; "/>
- <col ref="judgrid" style="text-align:center; "/>
- <col ref="judgenddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="preacptno" style="text-align:center; "/>
- <col ref="predocuno" style="text-align:center; "/>
- <col ref="preresncd" style="text-align:center; "/>
- <col ref="insuno"/>
- </datagrid>
- </group>
- <button id="button1" class="btn3_letter5" style="left:5px; top:750px; width:92px; height:22px; ">
- <caption>접수증조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SMPIE00800", 1, 1, 1, "SMPIE00800", "", "");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter7" style="left:105px; top:750px; width:116px; height:22px; ">
- <caption>심결보기(F020)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SMPIE01000", 1, 1, 1, "SMPIE01000", "", "");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter7" style="left:230px; top:750px; width:116px; height:22px; ">
- <caption>심결보기(F060)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SMPIE01100", 1, 1, 1, "SMPIE01100", "", "");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter8" style="left:355px; top:750px; width:128px; height:22px; ">
- <caption>이의신청내역조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SMPIR30200", 1, 1, 1, "SMPIR30200", "", "");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter5" style="left:1105px; top:750px; width:92px; height:22px; ">
- <caption>다음페이지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_outjudg.rows == 5001 )
- {
- fNextpage();
- }
- else
- {
- messageBox("마지막 페이지 ","E008");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|