123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <openflag/>
- <rsrvflag/>
- <uncoflag/>
- <cutflag/>
- </send>
- <main>
- <openflag/>
- <list/>
- </main>
- <init/>
- <hidden>
- </hidden>
- </root>
- </instance>
- <submission id="TXPIE00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
- <submission id="TXPIE00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
- <submission id="TXPIE00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
- <submission id="TXPIE00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
- <submission id="TXPIE00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
- <submission id="TXPIE00806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
- <submission id="TXPIE00807" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
- <submission id="TXPIE00808" ref="/root/main/list" resultref="/root/temp"/>
- <submission id="TXPIE00809" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
- <submission id="TXPIE05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 0. 권한체크 (보험팀 팀장의 경우에만 삭제가능함)
-
- // 1. 오픈화면에 따라 체크박스를 보여준다.
- var openflag = model.getValue("/root/main/list/data/openflag");
-
- // 접수반송증(F010)
- if (openflag == "f010") {
- model.setValue("/root/send/openflag", "f010");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "Y");
- model.setValue("/root/send/cutflag", "");
- chk_cutflag.disabled = true;
-
- // 요양급여심결통보서(F020)
- } else if (openflag == "f020") {
- model.setValue("/root/send/openflag", "f020");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "Y");
- model.setValue("/root/send/cutflag", "Y");
-
- // 의료급여심결통보서(F060)
- } else if (openflag == "f060") {
- model.setValue("/root/send/openflag", "f060");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "Y");
- model.setValue("/root/send/cutflag", "Y");
-
- // 원외처방심결통보서(F090)
- } else if (openflag == "f090") {
- model.setValue("/root/send/openflag", "f090");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "");
- model.setValue("/root/send/cutflag", "Y");
- chk_uncoflag.disabled = true;
-
- // 원외처방추가심결통보서(F080)
- } else if (openflag == "f080") {
- model.setValue("/root/send/openflag", "f080");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "");
- model.setValue("/root/send/cutflag", "Y");
- chk_uncoflag.disabled = true;
-
- // 요양급여정산내역서(F040)
- } else if (openflag == "f040") {
- model.setValue("/root/send/openflag", "f040");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "");
- model.setValue("/root/send/cutflag", "Y");
- chk_uncoflag.disabled = true;
-
- // 의료급여정산내역서(F050)
- } else if (openflag == "f050") {
- model.setValue("/root/send/openflag", "f050");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "");
- model.setValue("/root/send/cutflag", "Y");
- chk_uncoflag.disabled = true;
-
- // 원외처방정산내역서(F070)
- } else if (openflag == "f070") {
- model.setValue("/root/send/openflag", "f070");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "");
- model.setValue("/root/send/cutflag", "Y");
- chk_uncoflag.disabled = true;
-
- // 보완자료요청내역서(F110)
- } else if (openflag == "f110") {
- model.setValue("/root/send/openflag", "f110");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "");
- model.setValue("/root/send/cutflag", "");
- chk_uncoflag.disabled = true;
- chk_cutflag.disabled = true;
- // 자보접수반송증
- } else if (openflag == "n010") {
- model.setValue("/root/send/openflag", "n010");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "Y");
- model.setValue("/root/send/cutflag", "Y");
- chk_cutflag.disabled = true;
- // 자보심결통보서(N020)
- } else if (openflag == "n020") {
- model.setValue("/root/send/openflag", "n020");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "Y");
- model.setValue("/root/send/cutflag", "Y");
- // 자보보완자료요청내역서(N110)
- } else if (openflag == "n110") {
- model.setValue("/root/send/openflag", "n110");
- model.setValue("/root/send/rsrvflag", "Y");
- model.setValue("/root/send/uncoflag", "");
- model.setValue("/root/send/cutflag", "");
- chk_uncoflag.disabled = true;
- chk_cutflag.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- // 수신정보 삭제
- function fDeleteData() {
-
- // 1. 체크값 확인 (하나라도 체크해야 함)
- var openflag = model.getValue("/root/send/openflag");
- var rsrvflag = model.getValue("/root/send/rsrvflag");
- var uncoflag = model.getValue("/root/send/uncoflag");
- var cutflag = model.getValue("/root/send/cutflag");
-
- if (rsrvflag == "" && uncoflag == "" && cutflag == "") {
- messageBox("삭제영역이 선택되지", "E007");
- return;
- }
-
- // 2. 삭제할 데이터 확인
- var nodelist = instance1.selectNodes("/root/main/list/data");
- var length = nodelist.length;
- if (parseInt(length) == 0) {
- messageBox("삭제할 수신정보가", "E016");
- return;
- }
-
- // 3. 기본 메세지
- if (messageBox("삭제", "S001") != 6) return;
-
- for(var i = 1; i <= length; i++){
- if (rsrvflag == "") model.setValue("/root/main/list/data["+ i +"]/rsrvflag", "N");
- else model.setValue("/root/main/list/data["+ i +"]/rsrvflag", rsrvflag);
-
- if (uncoflag == "") model.setValue("/root/main/list/data["+ i +"]/uncoflag", "N");
- else model.setValue("/root/main/list/data["+ i +"]/uncoflag", uncoflag);
-
- if (cutflag == "") model.setValue("/root/main/list/data["+ i +"]/cutflag", "N");
- else model.setValue("/root/main/list/data["+ i +"]/cutflag", cutflag);
- }
- // 4. 삭제 후 종료
- switch (openflag) {
-
- // 접수반송증(F010)
- case "f010" :
- submit("TXPIE00801");
- break;
-
- // 요양급여심결통보서(F020)
- case "f020" :
- submit("TXPIE00802");
- break;
-
- // 의료급여심결통보서(F060)
- case "f060" :
- submit("TXPIE00803");
- break;
-
- // 원외처방심결통보서(F090)
- case "f090" :
- submit("TXPIE00804");
- break;
-
- // 원외처방추가심결통보서(F080)
- case "f080" :
- submit("TXPIE00805");
- break;
-
- // 요양급여정산내역서(F040)
- case "f040" :
- submit("TXPIE00806");
- break;
-
- // 의료급여정산내역서(F050)
- case "f050" :
- submit("TXPIE00807");
- break;
-
- // 원외처방정산내역서(F070)
- case "f070" :
- submit("TXPIE00808");
- break;
-
- // 보완자료요청내역서(F110)
- case "f110" :
- submit("TXPIE00809");
- break;
- // 자보접수반송증(N010)
- case "n010" :
- submit("TXPIE05101");
- break;
- // 자보심결(N020)
- case "n020" :
- submit("TXPIE05102");
- break;
- case "n110" :
- submit("TXPIE05103");
- break;
- default :
- return;
- }
-
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="370" pageheight="130" tracing-position="center" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:325px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:325px; height:14px; ">수신,미수,이의신청 정보 삭제</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:340px; height:67px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:28px; x2:340px; y2:28px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:13px; width:121px; height:14px; ">삭제영역 선택</caption>
- <select id="chk_rsrvflag" ref="/root/send/rsrvflag" class="checkbox_search" overflow="visible" appearance="full" style="left:5px; top:39px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>수신정보</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_uncoflag" ref="/root/send/uncoflag" class="checkbox_search" overflow="visible" appearance="full" style="left:95px; top:39px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미수정보</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_cutflag" ref="/root/send/cutflag" class="checkbox_search" overflow="visible" appearance="full" style="left:185px; top:39px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>이의신청정보</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:82px; width:340px; height:25px; ">
- <button id="btn_close" class="btn4_letter2" style="left:280px; top:0px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 윈도우 닫기
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" style="left:220px; top:0px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDeleteData();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|