123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <list>
- <createlist/>
- </list>
- </main>
- <send>
- <search>
- <reference/>
- <fromdd/>
- <todd/>
- <pid/>
- <clammode/>
- <instcd/>
- <clamym/>
- </search>
- <insertdata>
- <addCreate/>
- </insertdata>
- <search2>
- <clamym/>
- <instcd/>
- <fstrgstrid/>
- <fromdd/>
- <todd/>
- </search2>
- </send>
- <init>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- </init>
- <hidden>
- <insertchk/>
- </hidden>
- <temp>
- <reference>2</reference>
- <fromdd/>
- <todd/>
- <pid/>
- <clammode/>
- <instcd/>
- <clamym/>
- </temp>
- <init_pam>
- <init>
- <orddeptcd>
- <cd/>
- <nm/>
- <deptengabbr/>
- <reqdeptno/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- </init>
- </init_pam>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0008", "P0010"),
- new Array("/root/init/P0008list", "/root/init/P0010list"));
- fInitialize();
- ]]>
- </script>
- <submission id="TRPID23401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
- <submission id="TRPID23402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search2" resultref="/root/main/list"/>
- <submission id="TXPID23401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/createlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/calcscormngtweb/js/PIC001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- model.removeNodeset("/root/main/list/cretlist"); //그리드 초기화
- model.setValue("/root/temp/todd", ""); // 종료일자 초기화
- model.setValue("/root/temp/pid", ""); // 등록번호 초기화
- // 날짜 초기화 (시작일은 오늘 날짜)
- var now = new Date();
- var year= now.getFullYear();
- var mon = (now.getMonth()+1)>9 ? ''+(now.getMonth()+1) : '0'+(now.getMonth()+1);
- var day = now.getDate()>9 ? ''+now.getDate() : '0'+now.getDate();
- var fromdd = year+mon+day;
- model.setValue("/root/temp/fromdd", fromdd);
- ipt_fromdd.refresh();
- model.setValue("/root/temp/todd", "");
- model.setFocus("ipt_todd");
-
- model.removeNode("/root/main/list");
- model.refresh();
- }
- function fSearchchk(refNo)
- {
- // 조회 조건 데이터 체크
- // 시작 일자, 종료일자 -- 시작일자는 디폴트로 오늘 날짜로 세팅함
- // 종료일자는 시작일자 입력하면 시작일자의 월의 마지막 날자로 세팅
- // 조회기간은 31일을 넘지 않게 함 (ex : 20120101 ~ 20120131)
- // 청구월 단위로 ex) 201201 조회
-
- var sFromdd = model.getValue("/root/temp/fromdd");
- var sTodd = model.getValue("/root/temp/todd");
- //var sDd = sTodd - sFromdd;
- var sFromym = model.getValue("/root/temp/fromdd").substr(0,6);
- var sToym = model.getValue("/root/temp/todd").substr(0,6);
- var sFy = sFromdd.substr(0, 4);
- var sFm = sFromdd.substr(4, 2);
- var sFd = sFromdd.substr(6, 2);
- var sTy = sTodd.substr(0, 4);
- var sTm = sTodd.substr(4, 2);
- var sTd = sTodd.substr(6, 2);
-
- var sSd = new Date(sFy, sFm-1, sFd);
- var sEd = new Date(sTy,sTm-1,sTd);
- var rstFrom = sSd.getTime();
- var rstEnd = sEd.getTime();
-
- var sDd = Math.ceil((rstEnd - rstFrom) / (24 * 60 * 60 * 1000));
-
- if (refNo == '1' || refNo == '2'){
-
- if (sFromdd == null || sFromdd == "" || sFromdd == " "){
- messageBox("시작일자가 없습니다!","E999","");
- model.setValue("/root/temp/fromdd","");
- model.refresh();
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (sTodd == null || sTodd == "" || sTodd == " " || sTodd == "-"){
- messageBox("종료일자가 없습니다!","E999","");
- model.setValue("/root/temp/todd","");
- model.refresh();
- model.setFocus("ipt_todd");
- return false;
- }else if (sFromym != sToym){
- messageBox("시작연월과 종료년월은 같아야 합니다!","E999","");
- //model.setValue("/root/temp/todd","");
- model.refresh();
- model.setFocus("ipt_todd");
- return false;
- }
- if (sDd > '31'){
- messageBox("조회기간은 31일을 넘길수 없습니다!","E999","");
- model.setValue("/root/temp/todd","");
- model.refresh();
- model.setFocus("ipt_todd");
- return false;
- }else if (sDd < '0'){
- messageBox("시작일자가 종료일자보다 클수는 없습니다!","E999","");
- model.setValue("/root/temp/todd","");
- model.refresh();
- model.setFocus("ipt_todd");
- return false;
- }
- }else{
- messageBox("조회조건이 없습니다!","E999","");
- model.setValue("/root/temp/reference", "");
- model.setFocus("cmb_reference");
- return false;
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1210" pageheight="752" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1160px; height:700px; ">
- <caption id="caption10" class="tit_2" style="left:5px; top:5px; width:170px; height:13px; ">외래추가청구생성</caption>
- <group id="group2" style="left:5px; top:23px; width:1150px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrerct_search" appearance="roundrect" style="left:5px; top:2px; width:1145px; height:35px; "/>
- <button id="btn_srch" class="btn1_letter2" navindex="4" style="left:1005px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //@@@
- var refNo = model.getValue("/root/temp/reference");
- if (fSearchchk(refNo) == true){
- model.setValue("/root/send/search/reference", model.getValue("/root/temp/reference"));
- model.setValue("/root/send/search/fromdd", model.getValue("/root/temp/fromdd"));
- model.setValue("/root/send/search/todd", model.getValue("/root/temp/todd"));
- model.setValue("/root/send/search/pid", model.getValue("/root/temp/pid"));
- model.setValue("/root/send/search/clammode", model.getValue("/root/temp/clammode"));
- submit("TRPID23401"); //추가, 누락 청구 대상자 조회
- model.setValue("/root/hidden/insertchk", "0"); //생성 후 다시 생성을 막기위해 조회를 하면 플레그 값 바꿔줌
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == '13') {
- setInputNodeCurText();
- btn_srch.dispatch("onclick");
- }
- ]]>
- </script>
- </button>
- <caption id="caption6" style="left:206px; top:11px; width:11px; height:18px; ">~</caption>
- <!-- rdo_mchrgcode : 세부계산내역 조회용이 아닌 "코드조회" 에 사용될 수가코드 검색용 Radio 구분임 -->
- <line id="line1" class="line_4" style="x1:990px; y1:4px; x2:990px; y2:31px; "/>
- <select1 id="cmb_reference" ref="/root/temp/reference" navindex="1" visibility="hidden" appearance="minimal" style="left:325px; top:5px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>실시일자</label>
- <value>1</value>
- </item>
- <item>
- <label>정산일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_todd" ref="/root/temp/todd" class="input_search" navindex="3" inputtype="date" style="left:226px; top:11px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == '13') {
- var sLenchk = model.getValue("/root/temp/todd");
- if (sLenchk.length == 8){
- btn_srch.dispatch("onclick");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:15px; top:11px; width:90px; height:17px; ">정산일자 :</caption>
- <input id="ipt_fromdd" ref="/root/temp/fromdd" class="input_search" navindex="2" inputtype="date" style="left:114px; top:11px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sLenchk = model.getValue("/root/temp/fromdd");
- if (sLenchk.length == 8){
- var lastdate=new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); //각 달의 마지막 날짜
- var sFromyy = model.getValue("/root/temp/fromdd").substr(0, 4);
- var sFrommm = model.getValue("/root/temp/fromdd").substr(4, 2);
- if((0==sFromyy%4 && 0!=sFromyy%100) || 0==sFromyy%400){ //year를 가지고 윤년인지 검사.
- lastdate[1]=29; /*윤년인 경우 2월의 마지막 날짜를 29로 입력*/
- }
- var sFromdd = lastdate[sFrommm-1];
- var sTodd = sFromyy+sFrommm+sFromdd;
- model.setValue("/root/temp/todd", sTodd);
- ipt_todd.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_pid" ref="/root/temp/pid" class="input_s_essential" _chartype="upper" style="left:535px; top:8px; width:155px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == '13') {
- setInputNodeCurText();
- btn_srch.dispatch("onclick");
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:435px; top:10px; width:86px; height:17px; ">등록번호 :</caption>
- <select1 id="opt_clammode" ref="/root/temp/clammode" visibility="hidden" appearance="full" cols="5" rows="1" overflow="visible" style="left:825px; top:9px; width:100px; height:15px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>누락</label>
- <value>B</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" visibility="hidden" style="left:725px; top:9px; width:95px; height:17px; ">추가/누락 :</caption>
- <button id="btn_create" class="btn4_letter2" style="left:1075px; top:7px; width:56px; height:22px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //model.copyNode("/root/send/insertdata/addCreate", "/root/main/list/createlist");
- var sInsertchk = model.getValue("/root/hidden/insertchk");
- if (sInsertchk == 0){ // 생성 후 조회를 안하고 다시 생성하는 것을 막기 위해서 추가
- submit("TXPID23401");
- model.resetInstanceNode("/root/main/list/createlist");
- model.setValue("/root/send/search2/clamym", model.getValue("/root/temp/fromdd").substr(0,6));
- model.makeNode("/root/send/search2/fromdd");
- model.makeNode("/root/send/search2/todd");
-
- model.setValue("/root/send/search2/fromdd", model.getValue("/root/temp/fromdd"));
- model.setValue("/root/send/search2/todd", model.getValue("/root/temp/todd"));
- submit("TRPID23402");
- model.setValue("/root/hidden/insertchk", "1"); // 생성 후 플리그 값 넣어줌 ( 생성 후 같은 데이터 생성 막기 위해)
- model.refresh();
- }else if (sInsertchk == 1){
- messageBox("조회를 하시고 생성을 눌러주세요!","E999","");
- }
- ]]>
- </script>
- </button>
- </group>
- <switch id="swt_add" style="left:10px; top:75px; width:1150px; height:580px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_summary" selected="true" style="left:0px; top:0px; width:1148px; height:600px; ">
- <line id="line17" class="line_1" style="x1:7px; y1:25px; x2:1142px; y2:25px; "/>
- <button id="btn_cnclexcel" class="btn2_letter4" style="left:1065px; top:5px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_summary.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_cretlist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_cretlist" nodeset="/root/main/list/createlist" caption="선택^IO^청구구분^청구년월^청구차수^환자번호^외래등록일자^외래생성번호^영수증처리일자^영수증번호^수가코드^시행일^이력상태^입원외래구분^진료과코드^진료의ID^보험유형^보조유형^전급비구분^후보험유형^후보조유형^후급비구분^정산일^수집일^등록번호순번^청구세부과^심사자^청구삭제여부^최초접수일시^최초접수자^최종접수일시^최종접수자^데이터발생구분^청구키^진료분야" colsep="^" colwidth="40, 0, 66, 65, 70, 90, 100, 80, 100, 105, 80, 100, 105, 100, 78, 90, 90, 110, 70, 100, 100, 100, 83, 81, 72, 70, 80, 80, 60, 80, 80, 100, 120, 140, 100" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:9px; top:30px; width:1130px; height:525px; ">
- <col ref="chk" type="checkbox"/>
- <col style="text-align:center; "/>
- <col disabled="true" ref="clammode" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>추가</label>
- <value>A</value>
- </item>
- <item>
- <label>누락</label>
- <value>B</value>
- </item>
- <item>
- <label>-</label>
- <value/>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="clamym" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="clamdg" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="pid" style="text-align:center; "/>
- <col disabled="true" ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="cretno" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="prcpno" style="text-align:center; "/>
- <col disabled="true" ref="snglcalcscorcd" style="text-align:center; "/>
- <col disabled="true" ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="histstat" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <item>
- <label>Trigger</label>
- <value>T</value>
- </item>
- <item>
- <label>자료수집대상</label>
- <value>N</value>
- </item>
- <item>
- <label>자료수집대상제외</label>
- <value>C</value>
- </item>
- <item>
- <label>자료수집완료</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="ioflag" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" style="text-align:center; "/>
- <col disabled="true" ref="orddrid" style="text-align:center; "/>
- <col disabled="true" ref="preinsukind" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="presuppkind" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcppayflag" visibility="hidden" style="text-align:center; "/>
- <col ref="aftinsukind" visibility="hidden" style="text-align:center; "/>
- <col ref="aftsuppkind" visibility="hidden" style="text-align:center; "/>
- <col ref="aftprcppayflag" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="acntdd" visibility="visible" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pidsn" visibility="hidden" style="text-align:center; "/>
- <col ref="clamdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="judgrid" visibility="hidden" style="text-align:center; "/>
- <col ref="delyn" visibility="hidden" style="text-align:center; "/>
- <col ref="fstrgstdt" visibility="hidden" style="text-align:center; "/>
- <col ref="fstrgstrid" visibility="hidden" style="text-align:center; "/>
- <col ref="lastupdtdt" visibility="hidden" style="text-align:center; "/>
- <col ref="lastupdtrid" visibility="hidden" style="text-align:center; "/>
- <col ref="dataflag" visibility="hidden" style="text-align:center; "/>
- <col ref="clamkey" visibility="hidden" style="text-align:center; "/>
- <col ref="ordfildcd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //var row = grd_summary.row;
- //if( isDataCell() && row > 0 ){
- // model.setValue("/root/send/fromdd",model.getValue("/root/temp/fromdd").removeMask('\n'));
- // model.setValue("/root/send/todd",model.getValue("/root/temp/todd").removeMask('\n'));
- // model.setValue("/root/send/pid",model.getValue("/root/temp/pid"));
- // model.setValue("/root/send/aftacntyn",model.getValue("/root/temp/aftacntyn"));
- // model.setValue("/root/send/preinsukind",model.getValue("/root/temp/preinsukind"));
- // model.setValue("/root/send/presuppkind",model.getValue("/root/temp/presuppkind"));
- // model.setValue("/root/send/aftinsukind",model.getValue("/root/temp/aftinsukind"));
- // model.setValue("/root/send/aftsuppkind",model.getValue("/root/temp/aftsuppkind"));
- // model.setValue("/root/send/orddeptcd",model.getValue("/root/temp/orddeptcd"));
- // model.setValue("/root/send/orddrid",model.getValue("/root/temp/orddrid"));
- // model.setValue("/root/send/histstat",model.getValue("/root/temp/histstat"));
- // model.setValue("/root/send/clamym",model.getValue("/root/main/list2/summary[" + row + "]/clamym_1"));//
- // model.setValue("/root/send/clamdg",model.getValue("/root/main/list2/summary[" + row + "]/clamdg_1"));//
- // model.setValue("/root/send/reqfild",model.getValue("/root/main/list2/summary[" + row + "]/reqfild_1"));//
- // model.setValue("/root/send/clammode",model.getValue("/root/main/list2/summary[" + row + "]/clammode_1")); //
- // model.setValue("/root/send/judgrid",model.getValue("/root/temp/judgrid"));
- // model.setValue("/root/send/acting",model.getValue("/root/temp/acting"));
-
- // submit("TRPID23100");
- // swt_add.selectedIndex = 1;
- // btn_summary.selected = false;
- // btn_pat.selected = true;
- // btn_code.selected = false;
-
- // button3.visible = true;
- // button4.visible = true;
-
- // btn_choi.disabled = false;
- // btn_del.disabled = false;
-
- // btn_srch.disabled = true;
- //}
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- </group>
- <group id="group1" scroll="auto" style="left:10px; top:680px; width:1150px; height:35px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1099px; y2:0px; "/>
- <button id="btn_close" class="btn4_letter2" style="left:1085px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close(); // F5 실행시 IE를 종료시킨다.
- ]]>
- </script>
- </button>
- <button id="btn_reset" class="btn4_letter3" style="left:1010px; top:5px; width:100px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_chuga" class="btn3_letter12" style="left:15px; top:5px; width:104px; height:22px; ">
- <caption>외래추가청구대상자조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPID23100", "3", "", "", "", "", "", "");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|