123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPIS00100_청구및자료수집이력조회.xrw
- * 수정이력
- * - 2008.09.24 / 최초작성 / 강종태
- ************************************************
- * [ Maps ]
- * TRZBC00102 : 공통코드(청구 구분)
- * TRPID20201 : 청구과 콤보 리스트
- -->
- <?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="">
- <main>
- <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <grdlist>
- <clamhist>
- <chk/>
- <pid/>
- <pidsn/>
- <hngnm/>
- <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>
- <send>
- <ioflag/>
- <clamdeptcd/>
- <patunitsrch/>
- <acptno/>
- <docuseqno/>
- <item6>
- <clbs>
- <clamym/>
- <clamdg>0</clamdg>
- <clamfromdd/>
- <clamtodd/>
- <insutype/>
- <ordfildcd/>
- <clamflag/>
- <predata/>
- <ownb100/>
- <datacretflag/>
- <pid/>
- <name/>
- <orddeptcd/>
- <weekflag>S</weekflag>
- <chk/>
- <ioflag/>
- </clbs>
- </item6>
- <forcedel>
- <clbs>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- </clbs>
- </forcedel>
- </send>
- <!-- 환자 조회 -->
- <hidden>
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- <hngnm/>
- </cond>
- </sppmc02500>
- <clbs>
- <judgmemo/>
- </clbs>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면 초기화
- fInitialize();
- ]]>
- </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="TRPIS00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/clamhist"/>
- <!-- 생성삭제 -->
- <submission id="TXPID10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item6/clbs" replace="instance" resultref="/root/hidden/item1/result"/>
- <!-- 강제삭제 -->
- <submission id="TXPIS00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/forcedel/clbs"/>
- </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 fInitialize()
- {
- 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/patunitsrch") != "" )
- {
- fSearch();
- }
- else
- {
- rdo_ioflag.value = "A"; // 내원유형:전체
- }
-
- // 청구과 콤보 조회시 내원유형이 조건에 포함되므로 팝업의 경우를 고려해서 여기서 뿌려준다.
- fGetClamDept(); // 청구과 콤보 리스트
- }
-
- // 청구과 리스트 가져오기
- 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_userid = model.getValue("/root/send/patunitsrch");
- if (chk_userid == "")
- {
- messageBox("환자단위조회 조건은 ", "I003");
- }
- else
- {
- model.removeNodeset("/root/main/grdlist/clamhist");
- submit("TRPIS00100");
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" 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:1180px; 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:1185px; height:732px; ">
- <!-- 조회조건 -->
- <group id="group3" style="left:0px; top:10px; width:1175px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1175px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:272px; top:10px; width:81px; height:17px; ">청구과</caption>
- <select1 id="base_date" ref="/root/send/clamdeptcd" class="combo_search" appearance="minimal" style="left:343px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmp/clamdept/clamdeptlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_4" style="x1:1077px; y1:7px; x2:1077px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1098px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption26" class="search_name" style="left:465px; top:10px; width:80px; height:17px; ">환자조회</caption>
- <caption id="caption3" class="search_name" style="left:22px; top:9px; width:76px; height:17px; ">내원유형</caption>
- <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" overflow="visible" appearance="full" cols="3" style="left:112px; top:9px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetClamDept();
- ]]>
- </script>
- </select1>
- <input id="ipt_patunitsrch" ref="/root/send/patunitsrch" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:548px; top:8px; 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/acptno" class="input_search" navindex="3" maxlength="15" style="left:750px; top:8px; width:100px; 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:667px; top:10px; width:80px; height:17px; ">접수번호</caption>
- <caption id="caption6" class="search_name" style="left:872px; top:10px; width:89px; height:17px; ">명일련</caption>
- <input id="ipt_docuseqno" ref="/root/send/docuseqno" class="input_search" navindex="3" maxlength="10" style="left:955px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반
- fSearch();
- }
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption8" class="tit_2" style="left:0px; top:60px; width:100px; height:13px; ">환자 리스트</caption>
- <button id="btn_excelsave" class="btn2_letter4" style="left:1109px; top:53px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_outjudg.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "청구 및 자료수집 이력조회_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
- grd_outjudg.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_outjudg" nodeset="/root/main/grdlist/clamhist" class="datagrid2" caption="C^등록번호^순번^성명^주민번호^청구월^구분^차수^내원유형^유형^보조^청구과^진료과^진료의^심사상태^심사메모^청구상태^접수번호^명일련^입원일^퇴원일^진료개시일^진료종료일^유형시작일^종료일^심사결정^삭제사유^반송사유^반송사유^총진료비^본인부담액^청구액^상한액^지원금^대불금^장애인^심사자^심사시간^조합기호^진료과코드" colsep="^" colwidth="34, 62, 19, 49, 103, 56, 39, 41, 37, 20, 23, 92, 61, 55, 66, 100, 72, 66, 54, 78, 78, 78, 78, 80, 70, 37, 170, 29, 29, 75, 75, 75, 75, 75, 75, 75, 59, 83, 80, 80" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:1175px; height:655px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="pidsn" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="clamym" format="yyyy-mm" 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 ref="clamdg" style="text-align:center; "/>
- <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 ref="suppkind" style="text-align:center; "/>
- <col disabled="true" ref="clamdeptnm" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0437list/P0437">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <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 ref="judgmemo" type="inputbutton"/>
- <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="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" 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="edimedcaretotamt" format="#,###" style="text-align:right; "/>
- <col ref="ediownbamt" format="#,###" style="text-align:right; "/>
- <col ref="ediinsuclamamt" format="#,###" style="text-align:right; "/>
- <col ref="ediownbmaxexamt" format="#,###" style="text-align:right; "/>
- <col ref="edisuppamt" format="#,###" style="text-align:right; "/>
- <col ref="edisubtamt" format="#,###" style="text-align:right; "/>
- <col ref="edihandcaprfund" format="#,###" style="text-align:right; "/>
- <col ref="judgrid" style="text-align:center; "/>
- <col ref="judgenddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="insuno"/>
- <col ref="orddeptcd" 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 id="grp_judgmemo" visibility="hidden" style="left:90px; top:180px; width:970px; height:455px; ">
- <line id="line4" class="line_1" style="x1:0px; y1:20px; x2:950px; y2:20px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:5px; width:113px; height:14px; ">심사대상자 메모</caption>
- <textarea id="tar_judgmemo" ref="/root/hidden/clbs/judgmemo" editable="false" style="left:5px; top:40px; width:955px; height:384px; "/>
- <button id="btn_memocancel" class="btn4_letter2" style="left:900px; top:430px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_judgmemo.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="button1" class="btn2_letter3" style="left:759px; top:53px; width:53px; height:19px; ">
- <caption>셀카피</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_outjudg.attribute("selectionmode") = "free";
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:815px; top:53px; width:53px; height:19px; ">
- <caption>열카피</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_outjudg.attribute("selectionmode") = "bycol";
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:872px; top:53px; width:53px; height:19px; ">
- <caption>행카피</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_outjudg.attribute("selectionmode") = "byrow";
- ]]>
- </script>
- </button>
- <button id="btn_cretdel" class="btn2_letter4" _auth="X" style="left:929px; top:53px; width:64px; height:19px; ">
- <caption>생성삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodeList = instance1.selectNodes("/root/main/grdlist/clamhist");
- var delcnt=0;
- var i=1;
-
- for ( i = 1; i <= nodeList.length; i++) {
- if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y" && model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "N") {
- var pid = model.getValue("/root/main/grdlist/clamhist[" + i + "]/pid");
- var patnm = model.getValue("/root/main/grdlist/clamhist[" + i + "]/hngnm");
- var deptcd = model.getValue("/root/main/grdlist/clamhist[" + i + "]/orddeptcd");
-
- var message = "2. 전 체 진료과를 모두 삭제|3. 취 소";
- var ans = messageBox("[ 환자명:" + patnm + ", 등록번호:" + pid + ", 진료과:" + deptcd + " ]\n\n" + "1. 선택한 진료과만 삭제", "S006", message); ///하시려면 예(Yes)\n아니면 아니오(No)
- if (ans == 6 || ans == 7) { // 6: yes, 7:no, 2:cancel
-
- model.setValue("/root/send/item6/clbs/clamym", model.getValue("/root/main/grdlist/clamhist[" + i + "]/clamym")); // 1.청구년월
- model.setValue("/root/send/item6/clbs/clamdg", model.getValue("/root/main/grdlist/clamhist[" + i + "]/clamdg")); // 2.청구차수
- model.setValue("/root/send/item6/clbs/clamfromdd", model.getValue("/root/main/grdlist/clamhist[" + i + "]/cretfromdd")); // 3.생성시작일
- model.setValue("/root/send/item6/clbs/clamtodd", model.getValue("/root/main/grdlist/clamhist[" + i + "]/crettodd")); // 4.생성종료일
-
- // 전체보험유형,진료분야,진료과 삭제이면( 7:no )
- if (ans == 7) {
- // 5.보험유형 : -.전체
- model.setValue("/root/send/item6/clbs/insutype", "-");
- // 6.진료분야 : -.전체
- model.setValue("/root/send/item6/clbs/ordfildcd", "-");
- // 7.진료과
- model.setValue("/root/send/item6/clbs/orddeptcd", "");
- } else {
- // 5.보험유형
- var insukind = model.getValue("/root/main/grdlist/clamhist[" + i + "]/insukind");
- if (insukind == "11") {
- model.setValue("/root/send/item6/clbs/insutype", "2"); // 보험
- } else if (insukind == "21") {
- model.setValue("/root/send/item6/clbs/insutype", "4"); // 급여1종
- } else if (insukind == "22") {
- model.setValue("/root/send/item6/clbs/insutype", "5"); // 급여2종
- } else if (insukind == "41") {
- model.setValue("/root/send/item6/clbs/insutype", "6"); // 산재
- } else if (insukind == "31") {
- model.setValue("/root/send/item6/clbs/insutype", "7"); // 자보
- }
- // 6.진료분야
- model.setValue("/root/send/item6/clbs/ordfildcd", model.getValue("/root/main/grdlist/clamhist[" + i + "]/ordfildcd"));
- // 7.진료과
- model.setValue("/root/send/item6/clbs/orddeptcd", model.getValue("/root/main/grdlist/clamhist[" + i + "]/orddeptcd"));
- }
-
- model.setValue("/root/send/item6/clbs/clamflag", '-'); // 8.청구구분 : -.퇴원+중간, 1.퇴원청구, 2.중간청구
- model.setValue("/root/send/item6/clbs/predata", "4"); // 9.이전자료 : 4.삭제
- model.setValue("/root/send/item6/clbs/ownb100", "N"); // 10.전액본인 : N.생성안함
- model.setValue("/root/send/item6/clbs/datacretflag", "-"); // 11.생성여부 : -.전체
- model.setValue("/root/send/item6/clbs/pid", model.getValue("/root/main/grdlist/clamhist[" + i + "]/pid")); // 12.등록번호
- model.setValue("/root/send/item6/clbs/name", model.getValue("/root/main/grdlist/clamhist[" + i + "]/hngnm")); // 13.환자명
- model.setValue("/root/send/item6/clbs/chk", "true"); // 14.선택여부
-
- // 15.집계구분
- if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/ioflag") == "I") {
- model.setValue("/root/send/item6/clbs/weekflag", "T");
- model.setValue("/root/send/item6/clbs/ioflag", "I");
- } else {
- model.setValue("/root/send/item6/clbs/weekflag", "S"); // S:집계 월단위 청구
- model.setValue("/root/send/item6/clbs/ioflag", "O");
- }
-
- // 16. 생성삭제
- if (submit("TXPID10102")) {
- delcnt++;
- }
-
- // 17. 생성삭제로그 자동호출
- btn_logview.dispatch("DOMActivate");
- messageBox("생성삭제되었는지 반드시 로그를 확인하시기 바랍니다. 생성삭제 호출", "I001"); //I001=처리되었습니다.
- }
- }
- else if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y" && model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "Y") {
- messageBox("잠금설정상태입니다. 삭제", "E001"); ///할 수 없습니다.
- }
- }
- ]]>
- </script>
- <hint>
- <![CDATA[청구생성 자료삭제]]>
- </hint>
- </button>
- <button id="btn_logview" class="btn2_letter8" style="left:997px; top:53px; width:108px; height:19px; ">
- <caption>생성삭제로그확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
-
- todd = todd.toDate().getAddDate(+1, 'D');
-
- zsbfOpenBatchLogPopup("clamcretmngtmgr.ClamDataCretMain",getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- <button id="btn_forceDel" class="btn5_letter8" _auth="X" style="left:615px; top:53px; width:108px; height:19px; ">
- <caption>입원강제생성삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodeList = instance1.selectNodes("/root/main/grdlist/clamhist");
- var delcnt=0;
- var i=1;
-
- for ( i = 1; i <= nodeList.length; i++) {
- if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y" && model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "N") {
-
- if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/ioflag") != "I") {
- messageBox("외래는 선택", "E001"); ///할 수 없습니다.
- return;
- }
-
- var pid = model.getValue("/root/main/grdlist/clamhist[" + i + "]/pid");
- var pidsn = model.getValue("/root/main/grdlist/clamhist[" + i + "]/pidsn");
- var patnm = model.getValue("/root/main/grdlist/clamhist[" + i + "]/hngnm");
- var clamym = model.getValue("/root/main/grdlist/clamhist[" + i + "]/clamym");
- var clamdg = model.getValue("/root/main/grdlist/clamhist[" + i + "]/clamdg");
-
- var ans = messageBox("[ 환자명:" + patnm + ", 등록번호:" + pid + ", 청구월:" + clamym + "] 강제로 청구서를 삭제 하시겠습니까.\n", "S001", "\n반드시 확인하고 실행하십시오."); ///하시려면 예(Yes)\n아니면 아니오(No)
-
- if (ans == 6 ) { // 6: yes, 7:no, 2:cancel
-
- model.setValue("/root/send/forcedel/clbs/clamym", clamym); // 1.청구년월
- model.setValue("/root/send/forcedel/clbs/clamdg", clamdg); // 2.청구차수
- model.setValue("/root/send/forcedel/clbs/pid", pid); // 3.등록번호
- model.setValue("/root/send/forcedel/clbs/pidsn", pidsn); // 4.등록번호순번
-
- // 강제생성삭제
- if ( submit("TXPIS00100") ) {
- fSearch();
- }
- }
- }
- else if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y" && model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "Y") {
- messageBox("잠금설정상태입니다. 삭제", "E001"); ///할 수 없습니다.
- }
- }
- ]]>
- </script>
- <hint>
- <![CDATA[청구생성 자료삭제]]>
- </hint>
- </button>
- </group>
- <button id="button2" class="btn3_letter5" style="left:5px; top:750px; width:92px; height:22px; ">
- <caption>접수증조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_outjudg.row;
- var acptno = model.getValue("/root/main/grdlist/clamhist[" + row + "]/acptno");
-
- model.makeValue("/root/hidden/smpie01000/cond/numflag", "2"); // 2:접수번호
- model.makeValue("/root/hidden/smpie01000/cond/srchnum", acptno);
-
- modal("SMPIE00800", 1, 1, 1, "SMPIE00800", "/root/hidden/smpie01000/cond", "/root/send/summary");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter7" style="left:105px; top:750px; width:116px; height:22px; ">
- <caption>심결보기(F020)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_outjudg.row;
- var acptno = model.getValue("/root/main/grdlist/clamhist[" + row + "]/acptno");
-
- model.makeValue("/root/hidden/smpie01000/cond/numflag", "2"); // 2:접수번호
- model.makeValue("/root/hidden/smpie01000/cond/termflag", "");
- model.makeValue("/root/hidden/smpie01000/cond/fromterm", "");
- model.makeValue("/root/hidden/smpie01000/cond/toterm", "");
- model.makeValue("/root/hidden/smpie01000/cond/srchnum", acptno);
- model.makeValue("/root/hidden/smpie01000/cond/clamno", "");
-
- modal("SMPIE01000", 1, 1, 1, "SMPIE01000", "/root/hidden/smpie01000/cond", "/root/send/summary");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter7" style="left:230px; top:750px; width:116px; height:22px; ">
- <caption>심결보기(F060)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_outjudg.row;
- var acptno = model.getValue("/root/main/grdlist/clamhist[" + row + "]/acptno");
-
- model.makeValue("/root/hidden/smpie01100/cond/numflag", "2"); // 2:접수번호
- model.makeValue("/root/hidden/smpie01100/cond/termflag", "");
- model.makeValue("/root/hidden/smpie01100/cond/fromterm", "");
- model.makeValue("/root/hidden/smpie01100/cond/toterm", "");
- model.makeValue("/root/hidden/smpie01100/cond/srchnum", acptno);
- model.makeValue("/root/hidden/smpie01100/cond/clamno", "");
-
- modal("SMPIE01100", 1, 1, 1, "SMPIE01100", "/root/hidden/smpie01100/cond", "/root/send/summary");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn3_letter8" style="left:355px; top:750px; width:128px; height:22px; ">
- <caption>이의신청내역조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_outjudg.row;
- modal("SMPIR30200", 1, 1, 1, "SMPIR30200", "/root/main/grdlist/clamhist[" + row + "]/acptno", "/root/send/acptno");
- ]]>
- </script>
- </button>
- <caption id="caption7" style="left:725px; top:750px; width:434px; height:20px; color:#ff6600; ">※ 접수번호, 명일련은 해당 환자에게 발생한 특정 번호를 바로 찾는 기능입니다.</caption>
- </xhtml:body>
- </xhtml:html>
|