123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- [개발이력]
- 2007.05.30 / 최초작성 / 이종찬
- -->
- <?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>
- <list01>
- <griduncoinfo>
- <chkbox/>
- <pid/>
- <clamdd/>
- <indd/>
- <cretfromdd/>
- <insukind/>
- <insuno/>
- <acptno/>
- <judgdg/>
- <docuseqno/>
- <medcaretotamt/>
- <ownbamt/>
- <insuclamamt/>
- <uncoyn/>
- </griduncoinfo>
- </list01>
- <rCSV/>
- <list02>
- <comboclamym>
- <clamymval/>
- <clamymlab/>
- </comboclamym>
- </list02>
- <result/>
- </main>
- <send>
- <cpnode/>
- <acptno/>
- <clamym/>
- <clamym2/>
- <tmp>
- <list>
- <chkbox/>
- <pid/>
- <clamdd/>
- <indd/>
- <cretfromdd/>
- <insukind/>
- <insuno/>
- <acptno/>
- <judgdg/>
- <docuseqno/>
- <medcaretotamt/>
- <ownbamt/>
- <insuclamamt/>
- <uncoyn/>
- </list>
- </tmp>
- <offset/>
- <pagesize>500</pagesize>
- </send>
- <init>
- <P0008list>
- <P0008>
- <cdid/>
- <cdnm/>
- </P0008>
- </P0008list>
- <comboclamym>
- <clamymval/>
- <clamymlab/>
- </comboclamym>
- <P0010list>
- <P0010>
- <cdid/>
- <cdnm/>
- </P0010>
- </P0010list>
- <P0370list>
- <P0370>
- <cdnm/>
- <cdid/>
- </P0370>
- </P0370list>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 그리드 헤더에 체크박스를 생성한다.
- grd_uncoinfo.fixedcellcheckbox(0,1) = true;
-
- // 공통코드를 로드한다.
- CommCode_Load();
-
- // 화면 실행 시 그리드 행이 하나도 안보이도록 한다.
- model.removeNodeset("/root/main/list01/griduncoinfo");
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
- <submission id="TRPIF10100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/list01"/>
- <submission id="TRPIF10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list02"/>
- <submission id="TXPIF10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <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[
- // 공통코드 Load작업
- function CommCode_Load() {
- // 관련 Control 초기화
- zbcfGetCodeList(new Array("P0010"), new Array("/root/init/P0010list")); // 보조유형
- zbcfGetCodeList(new Array("P0370"), new Array("/root/init/P0370list")); // 미수처리구분
-
- model.refresh();
- }
-
- // 2007.09.07 초기화 함수
- function fInitialize(){
- // 조회 조건 입력값 초기화
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/offset","0");
- model.setValue("/root/send/pagesize","500");
- // 그리드 공라인 없애기
- model.removeNodeset("/root/main/list01/griduncoinfo");
- model.refresh();
-
- // 포커스 이동
- model.setFocus("ipt_acptno");
- }
-
- // 2007.08.07 페이지 단위 조회
- function fSubmitOnScroll() {
- // 2007.10.08 그리드에 vertical scroll이 생성되지 않은 경우는 아래의 루틴을 태우지 않는다.
- if (grd_uncoinfo.vscroll.attribute("max") != 0 && grd_uncoinfo.vscroll.attribute("pos") != 0) {
- // end of scroll
- if (grd_uncoinfo.vscroll.attribute("max") == grd_uncoinfo.vscroll.attribute("pos")) {
- model.setValue("/root/send/offset",grd_uncoinfo.rows-1); // grid의 header row는 제외
- submit("TRPIF10100");
- grd_uncoinfo.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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:254px; height:14px; ">접수정보생성조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:6px; top:59px; width:121px; height:14px; ">접수정보생성내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:74px; "/>
- <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_acptno" ref="/root/send/acptno" class="input_s_essential" navindex="0" inputtype="button" maxlength="15" required="true" style="left:110px; top:8px; width:195px; height:19px; ">
- <!-- - 2007.05.30 / 화면수정 / 접수번호를 입력받는다. -->
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 청구년월을 콤보에 담는다.
- inputEnterKey("btn_getclamym", "DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- model.makeNode("/root/send/send01/termflag");
- model.makeNode("/root/send/send01/fromdd");
- model.makeNode("/root/send/send01/todd");
- model.makeNode("/root/send/send01/insukind");
- model.makeNode("/root/send/send01/acptno");
- model.setValue("/root/send/send01/insukind","11");
- setParameter("SPPIF30302_RTNTYPE", "P");
-
- modal("SPPIF30302", 1, 1, 1, "SPPIF30302", "/root/send/send01", "/root/send");
-
- model.setValue("/root/send/acptno", getParameter("SPPIF30302_acptno"));
-
- model.removeNodeset("/root/send/send01");
- clearParameter("SPPIF30302_RTNTYPE");
- clearParameter("SPPIF30302_acptno");
-
- ipt_acptno.refresh();
- if( model.getValue("/root/send/acptno") != '' ){
- //ipt_srchcond01.dispatch("DOMFocusOut");
- btn_getclamym.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_clamym" ref="/root/send/clamym" class="combo_search" navindex="1" appearance="minimal" style="left:470px; top:8px; width:195px; height:19px; ">
- <!-- - 2007.05.30 / 화면수정 / 청구년월을 획득한다. -->
- <choices>
- <itemset nodeset="/root/main/list02/comboclamym">
- <label ref="clamymlab"/>
- <value ref="clamymval"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_srch" class="btn1_letter2" navindex="2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <!--
- 2007.05.30 / 화면수정 / 미수대상을 조회한다.
- '장애인수첩','처리구분' 추후 결정
- -->
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2007.10.20 청구년월을 포맷 한다
- // 포맷 시작
- var str = model.getValue("root/send/clamym");
- var ss = "";
- var i = 0;
-
- if (str.length == 7) {
- // js에서는 0부터 인덱싱한다.
- for (i = 0; i < str.length; i++) {
- // 건건히 돌리면서 '-'를 제거한다.
- if (str.substr(i,1) != "-") {
- ss = ss + str.substr(i,1)
- }
- }
- //alert(ss);
- model.setValue("root/send/clamym",ss);
- }
- // 포맷 끝
-
- if (isRequiredControls("ipt_acptno")) {
- // 2008.02.12 결과 누적 현상 방지
- model.removeNodeset("/root/main/list01/griduncoinfo");
- model.setValue("/root/send/offset","0");
- // 미수대상 조회 요청
- submit("TRPIF10100");
- // submit("TRPIF10100");
- }
- ]]>
- </script>
- </button>
- <caption id="cap_02" class="search_name" style="left:379px; top:9px; width:86px; height:17px; ">청구년월 :</caption>
- <caption id="cap_acptno" class="search_name" style="left:21px; top:9px; width:86px; height:17px; ">접수번호 :</caption>
- </group>
- <col type="checkbox"/>
- <button id="button3" class="btn2_letter4" style="left:1130px; top:53px; 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_uncoinfo.saveExcel(fileName, "SheetName", true, true, "", "", "");
- }
- ]]>
- </script>
- </button>
- <!-- - 2007.05.30 / 화면수정 / 이종찬: 의료기획 윤영옥 선생님과 협의 후 '삭제' Button 삭제하였음('일괄접수정보생성' 화면에서만 필요한 기능임) -->
- <datagrid id="grd_uncoinfo" nodeset="/root/main/list01/griduncoinfo" visibility="visible" caption="^생성^등록번호^수진자^청구일자^입원일자^적용일자^보험유형^장애수첩^접수번호^심사차수^명번호^미수처리^요양급여총액^본인부담금^청구액^본인부담상한금^지원금^장애인의료비^대불금^비고^조합기호^생성여부" colsep="^" colwidth="25, 35, 68, 73, 71, 72, 72, 73, 62, 69, 73, 60, 73, 93, 93, 93, 93, 93, 93, 93, 150, 100" dataheight="25" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:79px; width:1194px; height:663px; ">
- <col ref="chkbox" type="checkbox" visibility="hidden"/>
- <col ref="uncoyn" visibility="visible" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="clamdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cretfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="insukind" style="text-align:center; "/>
- <col disabled="true" ref="prockindflag" visibility="hidden" style="text-align:center; "/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="judgdg" style="text-align:center; "/>
- <col ref="docuseqno" style="text-align:center; "/>
- <col disabled="true" ref="decotretflag" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0370list/P0370">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="medcaretotamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="ownbamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="insuclamamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="ownbmaxexamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
- <col ref="suppamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
- <col ref="handcaprfund" visibility="visible" format="(-)#,###" style="text-align:right; "/>
- <col ref="subtamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
- <col visibility="hidden" style="text-align:center; "/>
- <col ref="insuno" style="text-align:center; "/>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- fSubmitOnScroll();
- ]]>
- </script>
- </datagrid>
- <button id="btn_getclamym" class="btn2_letter13" visibility="hidden" style="left:25px; top:150px; width:163px; height:19px; ">
- <caption>[콤보박스]청구년월 내려받기</caption>
- <!-- - 2007.05.30 / 화면수정 / 청구년월을 획득하기위한 [Enter] 이벤트 핸들러 -->
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 가비지 데이터를 삭제한다.
- model.setValue("/root/send/clamym","");
-
- submit("TRPIF10101");
- // 조회된 청구년월 콤보의 맨 앞자리에 공백 아이템을 넣어준다.
- copyNodeType("/root/main/list02/comboclamym","/root/init/comboclamym","before");
- // 청구년월콤보박스에 삽입한 공백 아이템을 보여주기 위해 화면을 갱신한다.
- model.refresh();
- //return true;
- // 청구년월콤보박스로 포커스를 준다.
- model.setFocus("cmb_clamym");
-
- // 2007.10.16 청구년월 실제 조회된 건이 1개인 경우 바로 submit 전송한다.
- if (cmb_clamym.length == 2) {
- cmb_clamym.value = model.getValue("/root/main/list02/comboclamym/clamymlab[2]");
-
- // 2007.10.20 청구년월을 포맷 한다
- // 포맷 시작
- var str = model.getValue("root/send/clamym2");
- var ss = "";
- var i = 0;
- if (str.length == 7) {
- // js에서는 0부터 인덱싱한다.
- for (i = 0; i <str.length; i++) {
- // 건건히 돌리면서 '-'를 제거한다.
- if (str.substr(i,1) != "-") {
- ss = ss + str.substr(i,1)
- }
- }
- //alert(ss);
- model.setValue("root/send/clamym",ss);
- }
- // 포맷 끝
- submit("TRPIF10100");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1069px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <!-- - 2007.05.30 / 화면수정 / 미수생성을 요청한다. -->
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택 항목이 아무것도 없을 경우 예외 처리한다.
- var chkflag;
- var cnt=0;
- int = 0;
-
- for (i = 1; i < grd_uncoinfo.rows; i++) {
- chkflag = model.getValue("/root/main/list01/griduncoinfo["+ i +"]/chkbox");
-
- if (chkflag == "true") {
- cnt++;
- }
- }
- if (cnt == 0) {
- messageBox("선택된 항목이", "I004");
- }
- else {
- if (messageBox("저장","S001") == 6) {
- // 체크된 행만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/list01/griduncoinfo[chkbox='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/rCSV", rCSV);
-
- // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- var CSV = model.getValue("/root/main/rCSV");
-
- // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- model.destroy("/root/send/tmp");
- model.makeNode("/root/send/tmp");
-
- setCSVToNode("/root/send/tmp", CSV);
-
- // 미수 생성을 요청한다.
- submit("TXPIF10102");
-
- // 현재 조건으로 미수대상 조회(미수 생성 후 변경을 반영한다.)
- submit("TRPIF10100");
- //
- // 여기에서 체크를 해제한다.
- }
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter3" visibility="visible" style="left:1127px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <!-- - 2007.05.30 / 화면수정 / 미수생성을 요청한다. -->
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|