123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPIE03600_심사보류관리.xrw
- * 수정이력
- * - 2008.10.08 / 최초작성 / 강종태
- ************************************************
- * [ Maps ]
- * TRZBC00101 : 공통코드(보험유형)
- * TRPID20407 : 청구차수
- -->
- <?xml-stylesheet ype="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>
- <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로 끝-->
- <grdlist>
- <judghold>
- <pid/>
- <pidsn/>
- <decoseq/>
- <seq/>
- <patnm/>
- <clamym/>
- <clamdg/>
- <flag/>
- <ioflag/>
- <insukind/>
- <ordfildcd/>
- <orddeptcd/>
- <reteno/>
- <reteresn/>
- <judgrretecd/>
- <judgrretespec/>
- <reclamyn/>
- <lossyn/>
- <depoyn/>
- <abdresncd/>
- <rem/>
- <judgrid/>
- </judghold>
- </grdlist>
- </main>
- <init>
- <clamdg/>
- <!-- 보험유형 -->
- <P0421list>
- <P0421>
- <cdnm/>
- <cdid/>
- </P0421>
- </P0421list>
- <!-- 보류사유 -->
- <P0283list>
- <P0283>
- <cdnm/>
- <cdid/>
- </P0283>
- </P0283list>
- <!-- 부제기사유 -->
- <P0466list>
- <P0466>
- <cdnm/>
- <cdid/>
- </P0466>
- </P0466list>
- <!-- 분야 -->
- <P0425list>
- <P0425>
- <cdnm/>
- <cdid/>
- </P0425>
- </P0425list>
- <!-- 심사자 -->
- <U0001list/>
- </init>
- <memo>
- <onmove/>
- <contents/>
- <pre_x/>
- <pre_y/>
- <typeflag/>
- </memo>
- <hidden>
- <!-- 환자조회 팝업용도-->
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- <hngnm/>
- </cond>
- </sppmc02500>
- <flag>
- <item>
- <cd/>
- <nm/>
- </item>
- <item>
- <cd>주민보류</cd>
- <nm>01</nm>
- </item>
- <item>
- <cd>자격보류</cd>
- <nm>02</nm>
- </item>
- <item>
- <cd>반송</cd>
- <nm>03</nm>
- </item>
- <item>
- <cd>자격반송</cd>
- <nm>04</nm>
- </item>
- <item>
- <cd>심사보류</cd>
- <nm>05</nm>
- </item>
- </flag>
- </hidden>
- <send>
- <search>
- <clamym/>
- <clamdg/>
- <insukind/>
- <ioflag>A</ioflag>
- <pid/>
- <judgrid/>
- <flag/>
- </search>
- <judghold/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면 초기화
- fInitialize();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/clamdg"/>
- <submission id="TRPIE03600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main"/>
- <submission id="TXPIE00800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPIB00603" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 초기화
- function fInitialize()
- {
- model.removeNodeset("/root/main/grdlist/judghold"); // 그리드 초기화
- submit("TRPIB00603"); // 심사자 콤보리스트
-
- zbcfGetCodeList(
- new Array("P0421" // 보험유형
- ,"P0466" // 부제기사유
- ,"P0283" // 보류사유
- ,"P0425" // 보류사유
- ),
- new Array("/root/init/P0421list"
- ,"/root/init/P0466list"
- ,"/root/init/P0283list"
- ,"/root/init/P0425list"
- )
- );
- cmb_insukind.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/search/clamym",currentym);
- ipt_clamym.refresh();
- pidfGetClamdg();
- cmb_clamdg.select(0);
- cmb_clamdg.refresh();
- // 청구년월 셋팅 끝
- }
-
- // 환자단위 조회
- function fPatSrch()
- {
- var ipt_pid = model.getValue("/root/send/search/pid");
- 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/search/pid", srch_pid);
- }
- model.refresh();
- }
-
- // 청구년월 함수
- function pidfGetClamdg() {
- model.removeNodeset("/root/init/clamdg");
- model.makeNode("/root/init/clamdg"); submit("TRPID20407");
- addComboItem("cmb_clamdg"," ","","above"); // 데이터가 별로 없으므로 차수는 전체 가능하게 변신
- }
-
- // 상세내역 Byte 체크
- function fChkBytes()
- {
- var iLen = 0; // 상세내역 길이가 500 byte가 되었는지 계산
- var eng_size = 0;
- var hng_size = 0;
-
- for (var i=0; i < ipt_memo.value.length; i++) {
- var sBit = ipt_memo.value.charAt(i);
- if (escape(sBit).length > 4) {
- iLen = iLen + 3; // 한글
- } else {
- iLen = iLen + 1; // 영문,기호
- }
- }
-
- if (iLen > 500) { // 영문(500자), 한글(250자)
- eng_size = iLen - 500;
- hng_size = Math.round((iLen - 500)/3);
- err_msg = "한글 " + hng_size + "자, 영문 " + eng_size + "자 를";
- messageBox(err_msg, "E003");
- return "N";
- }
-
- }
-
- // 조회
- function fSearch()
- {
- submit("TRPIE03600");
- }
-
- // 저장
- function fSaveData()
- {
- if(!grd_judghold.getUpdateDataXml("update"))
- {
- messageBox("저장할 자료가","I004");
- return;
- }
- model.setValue("/root/send/judghold",grd_judghold.getUpdateData());
- if (submit("TXPIE00800"))
- {
- fSearch();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" 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:800px; height:14px; ">심사보류 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">청구년월 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_clamym" ref="/root/send/search/clamym" class="input_search" inputtype="date" format="yyyy-mm" style="left:104px; top:8px; width:71px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- pidfGetClamdg();
- cmb_clamdg.refresh();
- cmb_clamdg.select(0);
- ]]>
- </script>
- </input>
- <select1 id="cmb_clamdg" ref="/root/send/search/clamdg" class="combo_search" appearance="minimal" style="left:180px; top:8px; width:60px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdg/clamdglist">
- <label ref="clamdgnm"/>
- <value ref="clamdgcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cp_patnm" class="search_name" style="left:513px; top:8px; width:76px; height:17px; ">환자조회</caption>
- <input id="ipt_patunitsrch" ref="/root/send/search/pid" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:595px; top:8px; width:90px; 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/search/pid")) ) // PID로 검색시 조회
- {
- fPatSrch();
- }
- else
- {
- fSearch();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fPatSrch();
- ]]>
- </script>
- </input>
- <output id="opt_insukind" ref="/root/send/search/insukind" class="output_search" style="left:465px; top:8px; width:20px; height:19px; "/>
- <select1 id="cmb_insukind" ref="/root/send/search/insukind" class="combo_search" appearance="minimal" style="left:360px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0421list/P0421">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption13" class="search_name" style="left:275px; top:8px; width:76px; height:17px; ">보험유형</caption>
- <caption id="caption3" class="search_name" style="left:710px; top:8px; width:73px; height:17px; ">심사자</caption>
- <select1 id="cmb_judgrid" ref="/root/send/search/judgrid" navindex="1" appearance="minimal" style="left:785px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/U0001list/U0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:900px; top:8px; width:76px; height:17px; ">보류구분</caption>
- <select1 id="combo1" ref="/root/send/search/flag" navindex="1" appearance="minimal" style="left:980px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/flag/item">
- <label ref="cd"/>
- <value ref="nm"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption5" class="tit_2" style="left:5px; top:56px; width:193px; height:14px; ">심사보류 리스트</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <datagrid id="grd_judghold" nodeset="/root/main/grdlist/judghold" class="datagrid2" caption="등록번호^pidsn^decoseq^seq^수신자명^청구년월^차수^구분^내원
유형^유
형^분야^진료과^보류번호^보류사유^코드^상세내역^재청구
여부^결손
처리^입금
여부^부제기사유^참고사항^심사자" colsep="^" colwidth="66, 33, 53, 25, 56, 61, 50, 58, 35, 21, 63, 52, 76, 234, 51, 267, 44, 35, 33, 150, 88, 50" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:76px; width:1194px; height:663px; ">
- <col ref="pid" style="text-align:right; "/>
- <col ref="pidsn" visibility="hidden" style="background-color:#c0c0c0; "/>
- <col ref="decoseq" visibility="hidden" style="background-color:#c0c0c0; "/>
- <col ref="seq" visibility="hidden" style="background-color:#c0c0c0; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="clamdg" style="text-align:right; "/>
- <col disabled="true" ref="flag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/flag/item">
- <label ref="cd"/>
- <value ref="nm"/>
- </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="insukind" style="text-align:center; "/>
- <col disabled="true" ref="ordfildcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0425list/P0425">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="reteno" style="text-align:right; "/>
- <col disabled="true" ref="reteresn" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0283list/P0283">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="judgrretecd"/>
- <col ref="judgrretespec" type="inputbutton"/>
- <col ref="reclamyn" style="text-align:center; "/>
- <col ref="lossyn" style="text-align:center; "/>
- <col ref="depoyn" style="text-align:center; "/>
- <col disabled="true" ref="abdresncd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0466list/P0466">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rem"/>
- <col ref="judgrid" style="text-align:center; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var row = grd_judghold.row;
-
- // 해당행의 상세내역값을 메모창에 보여줄 값으로 복사
- model.setValue("/root/memo/contents",model.getValue("/root/main/grdlist/judghold[" + row + "]/judgrretespec"));
- ipt_memo.refresh();
- // 메모창 출현
- grp_memo.visible= true;
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_judghold.row;
- var col = grd_judghold.col;
-
- // 상세내역을 클릭했을 경우 메모창의 텍스트박스 값 변경
- if ( col == grd_judghold.colRef("judgrretespec"))
- {
- model.setValue("/root/memo/contents",model.getValue("/root/main/grdlist/judghold[" + row + "]/judgrretespec"));
- ipt_memo.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_judghold.row;
- var col = grd_judghold.col;
-
- // 상세내역을 클릭했을 경우 메모창의 텍스트박스 값 변경
- if ( col == grd_judghold.colRef("judgrretespec"))
- {
- ipt_memo.value = model.getValue("/root/main/grdlist/judghold[" + row + "]/judgrretespec");
- ipt_memo.refresh();
- if ( fChkBytes() == "N" )
- {
- grp_memo.visible= true;
- }
- }
- ]]>
- </script>
- </datagrid>
- <!-- 메모창 그룹 시작-->
- <group id="grp_memo" visibility="hidden" style="left:385px; top:170px; width:480px; height:305px; ">
- <shape id="rr_memo" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:480px; height:305px; "/>
- <textarea id="ipt_memo" ref="/root/memo/contents" style="left:6px; top:24px; width:469px; height:246px; "/>
- <caption id="cp_navi" class="search_name" style="left:6px; top:5px; width:154px; height:17px; ">
- <![CDATA[상세내역 입력/조회]]>
- </caption>
- <button id="btn_confirm" class="btn4_letter2" style="left:351px; top:275px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 500Byte 이상은 체크
- err_chk = fChkBytes();
-
- if (err_chk != "N")
- {
- var row = grd_judghold.row;
- var value = model.getValue("/root/main/grdlist/judghold[" + row + "]/judgrretespec");
- if(value != ipt_memo.value){
- model.setValue("/root/main/grdlist/judghold[" + row + "]/judgrretespec",ipt_memo.currentText);
- grd_judghold.addstatus(grd_judghold.row, "update");
- }
- ipt_memo.value= "";
- ipt_memo.refresh();
- grp_memo.visible = false;
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:415px; top:275px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_memo.value= "";
- grp_memo.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="button90" class="btn5_letter2" style="left:1149px; top:50px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grp_memo.visible == true )
- {
- messageBox("상세내역 입력/조회 창이 닫히지 ","E007");
- }
- else
- {
- fSaveData();
- }
- ]]>
- </script>
- </button>
- </group>
- <!-- 메모창 그룹 끝-->
- <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line33" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|