123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPIS01100_청구이력조회.xrw
- ************************************************
- * [ Maps ]
- * TRZBC00102 : 공통코드(청구 구분)
- * 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="">
- <send>
- <insukind>A</insukind>
- <pid/>
- <patnm/>
- </send>
- <main>
- <grdlist>
- <clamhist>
- <chk/>
- <pid/>
- <pidsn/>
- <patnm/>
- <rrgstno/>
- <clamym/>
- <clamflagcd/>
- <clamdg/>
- <ioflag/>
- <insukind/>
- <suppkind/>
- <clamdeptnm/>
- <orddeptabbr/>
- <orddeptcd/>
- <orddrnm/>
- <judgendyn/>
- <judgmemo/>
- <clamendyn/>
- <acptno/>
- <docuseqno/>
- <indd/>
- <dschdd/>
- <ordfromdd/>
- <ordtodd/>
- <fromdd/>
- <todd/>
- <judgyn/>
- <delreason/>
- <rtnrsncd1/>
- <rtnrsncd2/>
- <edimedcaretotamt/>
- <ediownbamt/>
- <ediinsuclamamt/>
- <ediownbmaxexamt/>
- <edisuppamt/>
- <edisubtamt/>
- <edihandcaprfund/>
- <judgrid/>
- <judgenddd/>
- <insuno/>
- <ordfromdd/>
- <ordtodd/>
- <cretfromdd/>
- <crettodd/>
- <ordfildcd/>
- <lockyn/>
- </clamhist>
- </grdlist>
- </main>
- <init>
- <!-- 청구구분 -->
- <P0155list>
- <P0155>
- <cdnm/>
- <cdid/>
- <cdengabbrnm/>
- </P0155>
- </P0155list>
- <!-- 청구과 -->
- <P0437list>
- <P0437>
- <cdnm/>
- <cdid/>
- <cdengabbrnm/>
- </P0437>
- </P0437list>
- <!-- 심사상태 -->
- <P0151list>
- <P0151>
- <cdnm/>
- <cdid/>
- <cdengabbrnm/>
- </P0151>
- </P0151list>
- <!-- 명세서서상태 -->
- <P0430list>
- <P0430>
- <cdnm/>
- <cdid/>
- <cdengabbrnm/>
- </P0430>
- </P0430list>
- <!-- 삭제사유 -->
- <P0465list>
- <P0465>
- <cdnm/>
- <cdid/>
- <cdengabbrnm/>
- </P0465>
- </P0465list>
- <clamdeptlist>
- <cdid/>
- <cdnm/>
- </clamdeptlist>
- </init>
- <!-- 환자 조회 -->
- <hidden>
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- <hngnm/>
- </cond>
- </sppmc02500>
- <clbs>
- <judgmemo/>
- </clbs>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면 초기화
- model.removeNodeset("/root/main/grdlist/clamhist"); // 그리드 초기화
- zbcfGetCodeList(new Array("P0155","P0437","P0151","P0430","P0465")
- ,new Array("/root/init/P0155list","/root/init/P0437list","/root/init/P0151list","/root/init/P0430list","/root/init/P0465list")
- ,false); // 청구구분
-
- // 초기화 할 때 PID가 존재하면 조회를 실행 한다 (팝업으로 호출된 경우 PID를 가지고 있다)
- if ( model.getValue("/root/send/pid") != "" || model.getValue("/root/send/patnm") != "")
- {
- fSearch();
- }
-
- // 청구과 콤보 조회시 내원유형이 조건에 포함되므로 팝업의 경우를 고려해서 여기서 뿌려준다.
- //fGetClamDept(); // 청구과 콤보 리스트
- ]]>
- </script>
- <!-- submission -->
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
- <submission id="TRPIS01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/clamhist"/>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <!-- 뽕숑 -->
- <script type="javascript">
- <![CDATA[
-
- // 청구과 리스트 가져오기
- function fGetClamDept()
- {
- submit("TRPID20201");
- }
-
- // 환자단위 조회
- function fPatSrch()
- {
- var ipt_pid = model.getValue("/root/send/patunitsrch");
- if (ipt_pid) {
- if ( !isNaN(ipt_pid) )
- {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- }
- else
- {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
- model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
- }
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
- modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
- model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
- model.setValue("/root/send/patunitsrch", srch_pid);
- }
- model.refresh();
- }
-
- // 조회
- function fSearch()
- {
- var chk_pid = model.getValue("/root/send/pid");
- var chk_hngnm = model.getValue("/root/send/patnm");
- if (chk_pid == "" && chk_hngnm == "")
- {
- messageBox("환자조회 조건은 ", "I003");
- }
- else
- {
- model.removeNodeset("/root/main/grdlist/clamhist");
- submit("TRPIS01100");
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="740" pageheight="450" guideline="1,1212;2,783;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <!-- TITLE -->
- <group id="group1" style="left:0px; top:0px; width:715px; 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:715px; height:382px; ">
- <!-- 조회조건 -->
- <group id="group3" style="left:0px; top:10px; width:713px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:713px; height:35px; "/>
- <line id="line1" class="line_4" style="x1:640px; y1:5px; x2:640px; y2:27px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:650px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption26" class="search_name" style="left:309px; top:9px; width:80px; height:17px; ">환자번호</caption>
- <caption id="caption3" class="search_name" style="left:7px; top:9px; width:76px; height:17px; ">보험유형</caption>
- <select1 id="rdo_insukind" ref="/root/send/insukind" class="radio_search" appearance="full" cols="5" overflow="visible" style="left:87px; top:9px; width:218px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>보험</label>
- <value>11</value>
- </item>
- <item>
- <label>보호</label>
- <value>21</value>
- </item>
- <item>
- <label>자보</label>
- <value>31</value>
- </item>
- <item>
- <label>산재</label>
- <value>41</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetClamDept();
- ]]>
- </script>
- </select1>
- <input id="ipt_patunitsrch" ref="/root/send/pid" class="input_search" navindex="3" maxlength="10" style="left:392px; top:7px; width:100px; height:19px; ">
- <hint>
- <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
- </hint>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- if( isNaN(model.getValue("/root/send/patunitsrch")) ) // PID로 검색시 조회
- {
- fPatSrch();
- }
- else
- {
- fSearch();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fPatSrch();
- ]]>
- </script>
- </input>
- <input id="ipt_acptno" ref="/root/send/patnm" class="input_search" navindex="3" imemode="hangul" maxlength="15" style="left:560px; top:8px; width:70px; height:19px; ">
- <hint>
- <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
- </hint>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- fSearch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:494px; top:10px; width:80px; height:17px; ">환자명</caption>
- </group>
- <caption id="caption8" class="tit_2" style="left:0px; top:60px; width:100px; height:13px; ">환자 리스트</caption>
- <datagrid id="grd_outjudg" nodeset="/root/main/grdlist/clamhist" class="datagrid2" caption="청구월^차수^등록번호^순번^성명^주민번호^구분^내원유형^기관기호^기관명^유형^보조^진료과^진료의^심사상태^청구상태^접수번호^명일련^입원일^퇴원일^진료개시일^진료종료일^심사결정^삭제사유^반송사유^반송사유^심사자^심사시간" colsep="^" colwidth="76, 44, 62, 19, 49, 103, 39, 37, 62, 176, 20, 23, 103, 55, 66, 72, 66, 54, 78, 78, 78, 78, 37, 170, 29, 29, 59, 83" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:715px; height:300px; ">
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="clamdg" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="pidsn" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-9999999" 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 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="insuno" style="text-align:center; "/>
- <col ref="insunm" style="text-align:left; "/>
- <col ref="insukind" style="text-align:center; "/>
- <col ref="suppkind" style="text-align:center; "/>
- <col ref="orddeptabbr" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col disabled="true" ref="judgendyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0151list/P0151">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="clamendyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0430list/P0430">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="docuseqno" style="text-align:right; "/>
- <col ref="indd" format="yyyy-mm-dd" style="left:1050px; top:32px; width:78px; height:23px; text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="judgyn" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="delreason" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0465list/P0465">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rtnrsncd1"/>
- <col ref="rtnrsncd2"/>
- <col ref="judgrid" style="text-align:center; "/>
- <col ref="judgenddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var icol = grd_outjudg.col;
- var irow = grd_outjudg.row;
-
- if (icol == grd_outjudg.colRef("chk")) {
- if (model.getValue("/root/main/grdlist/clamhist[ " + irow + "]/chk") == "Y") {
- // 잠금설정이 되어 있으면 생성삭제를 할 수 없다.
- if (model.getValue("/root/main/grdlist/clamhist[ " + irow + "]/lockyn") == "Y") {
- messageBox("잠금설정되어서 선택할 수", "I004"); // I004=없습니다.
- model.setValue("/root/main/grdlist/clamhist[ " + irow + "]/chk", "N");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var icol = grd_outjudg.col;
- var irow = grd_outjudg.row;
- if (icol == grd_outjudg.colRef("chk") && irow == 0) {
- var nodeList = instance1.selectNodes("/root/main/grdlist/clamhist");
- var i = 1;
- for ( i = 1; i <= nodeList.length; i++) {
- if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y") {
- model.setValue("/root/main/grdlist/clamhist[" + i + "]/chk", "N");
- } else {
- if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "N") {
- model.setValue("/root/main/grdlist/clamhist[" + i + "]/chk", "Y");
- }
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- // Grid 상에 inputButton 은 표시하지만, input으로 직접 입력하는 것은 막기 위해
- // <script type="javascript" ev:event="onbuttonclick"> 대신 ev:event="onmousedown" 으로 처리함.
- if (grd_outjudg.isCell(event.target) && grd_outjudg.row >= grd_outjudg.fixedRows) {
- var col = grd_outjudg.mouseCol;
- if (col == grd_outjudg.colRef("judgmemo")) { // 메모
- if (grp_judgmemo.visible) {
- grp_judgmemo.visible = false;
- } else {
- grd_outjudg.toprow = grd_outjudg.mouseRow;
- model.setValue("/root/hidden/clbs/judgmemo", model.getValue("/root/main/grdlist/clamhist[" + grd_outjudg.mouseRow + "]/judgmemo"));
- model.refresh();
- grp_judgmemo.visible = true;
- model.setFocus("tar_judgmemo");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // Grid 상에 inputButton 은 표시하지만, input으로 직접 입력하는 것은 막기 위해
- // <script type="javascript" ev:event="onbuttonclick"> 대신 ev:event="onmousedown" 으로 처리함.
- // if (grd_outjudg.isCell(event.target) && grd_outjudg.row >= grd_outjudg.fixedRows) {
- var col = grd_outjudg.mouseCol;
- if (col == grd_outjudg.colRef("judgmemo")) { // 메모
- if (grp_judgmemo.visible) {
- grp_judgmemo.visible = false;
- } else {
- grd_outjudg.toprow = grd_outjudg.mouseRow;
- model.setValue("/root/hidden/clbs/judgmemo", model.getValue("/root/main/grdlist/clamhist[" + grd_outjudg.mouseRow + "]/judgmemo"));
- model.refresh();
- grp_judgmemo.visible = true;
- model.setFocus("tar_judgmemo");
- }
- }
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- grid_oncopy();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:395px; width:715px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:590px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( checkOpener() ) {
- row = grd_outjudg.row;
-
- if( row > 0 ){
- if( getNodesetCount("/root/main/grdlist/clamhist") > 0 ){
-
- opener.model.copyNode("/root/main/patinfo/patinfolist", grd_outjudg.getNode( row ));
- }
-
- }else {
- messageBox("행이 정확히 선택되지", "E007");
- }
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
-
- opener.model.refresh();
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:649px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.model.makeNode("/root/main/popupendflag");
- opener.model.setValue("/root/main/popupendflag", "cancel");
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:618px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|