123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670 |
- <?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">
- <script type="javascript">
- <![CDATA[
- // 화면 전체 초기화
- function fInitialize()
- {
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/drnt");
- model.removeNodeset("/root/main/list1");
- model.makeNode("/root/main/list1");
- model.removeNodeset("/root/main/list3");
- model.makeNode("/root/main/list3");
-
- btn_discnt.disabled = false;
- //btn_nondiscnt.disabled = false;
-
- model.refresh();
- }
-
- // 산모 정보 조회
- function fPatInfoRef()
- {
-
- if ( model.getValue("/root/main/popupendflag") == "ok" ) {
- model.setValue("/root/send/data1/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- } else if ( model.getValue("/root/main/popupendflag") == "pass" ) {
- model.setValue("/root/send/data1/pid", model.getValue("/root/main/drnt/drnt_pid"));
- } else {
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/drnt");
- model.refresh();
- return false;
- }
-
- if (submit("TRPIZ01202")) {
-
- model.resetInstanceNode("/root/main/drnt");
- model.refresh();
-
- var pidcnt = getNodesetCount("/root/hidden/rcv/drnt/drnt_pid");
- var listcnt = getNodesetCount("/root/hidden/rcv/list2/inddlist");
-
- if (pidcnt > 0) {
- copyNodeType("/root/main/drnt","/root/hidden/rcv/drnt","replace");
- }
-
- if (listcnt == 1) {
- copyNodeType("/root/main/list2/inddlist","/root/hidden/rcv/list2/inddlist","replace");
-
- model.setValue("/root/send/data1/indd",model.getValue("/root/main/list2/inddlist/value"));
- cmb_drnt_indd.value = model.getValue("/root/send/data1/indd");
-
- // 산모정보, 신생아정보 조회
- fPartrtnInfoRef();
-
- } else if (listcnt > 1) {
-
- copyNodeType("/root/main/list2/inddlist","/root/hidden/rcv/list2/inddlist","replace");
- cmb_drnt_indd.value = model.getValue("/root/main/list2/inddlist/value");
-
- cmb_drnt_indd.disabled = false;
- }
-
- model.refresh();
- }
-
- }
-
- // 산모정보, 신생아정보 조회
- function fPartrtnInfoRef() {
-
- model.resetInstanceNode("/root/main/drnt");
-
- model.removeNodeset("/root/main/list1");
- model.makeNode("/root/main/list1");
- model.removeNodeset("/root/main/list3");
- model.makeNode("/root/main/list3");
-
- if(submit("TRPIZ01201")) {
-
- // 산모 정보
- copyNodeType("/root/main/drnt","/root/hidden/rcv/drnt","replace");
- model.setValue("/root/main/list2/inddlist/label", model.getValue("/root/main/drnt/drnt_inddlabel"));
- model.setValue("/root/main/list2/inddlist/value", model.getValue("/root/main/drnt/drnt_indd"));
-
- // 2008.02.12 박지욱 추가 (재원일이 3일 이내면 적용기간을 입원일부터로 하고 3일 넘는경우는 분만일 부터 적용일이 되도록 함)
- var maxdd = getCurrentDate().toDate().getAddDate(-3,"D").getDateFormat("YYYYMMDD");
- var indd = model.getValue("/root/main/drnt/drnt_indd");
- if (indd > maxdd) {
- model.setValue("/root/main/drnt/drnt_fromdd", model.getValue("/root/main/drnt/drnt_indd"));
- }
-
- // 분만전처치 정보
- var listcnt = getNodesetCount("/root/hidden/rcv/list3/iscllist");
- if (listcnt > 0) {
- copyNodeType("/root/main/list3","/root/hidden/rcv/list3","replace");
- }
-
- // 신생아 정보
- var listcnt = getNodesetCount("/root/hidden/rcv/list1/drntlist");
- if (listcnt > 0) {
- copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
- }
- model.refresh();
-
- for(var i = 0; i <= datagrid1.rows; i++){
- var edicode = model.getValue("/root/main/list3/iscllist["+ i + "]/insuedicd");
-
- //제왕절개인경우는 적용요율을 타지 않도록 한다.
- if( edicode == "R4517"
- ||edicode == "R4518"
- ||edicode == "R4514"
- ||edicode == "R4519"
- ||edicode == "R4520"
- ||edicode == "R4516"
- ||edicode == "R4507"
- ||edicode == "R4508"
- ||edicode == "R4509"
- ||edicode == "R4510"
- ||edicode == "R5001"
- ||edicode == "R5002" ){
- model.setValue("/root/main/drnt/drnt_ownbexmptn", "N");
-
- }
- }
-
- ownbexmptn = model.getValue("/root/main/drnt/drnt_ownbexmptn");
-
- if (ownbexmptn == "N") {
- cmb_drnt_ownbexmptn.disabled = true;
- } else {
- cmb_drnt_ownbexmptn.disabled = false;
- }
- model.refresh();
- }
- }
-
- //유형적용 완료후 소급처리 한다.
- function fReCalc() {
- // 입원일 부터 현재까지 계산한다(일일단위로 loop)
- var fromdd = model.getValue("/root/main/drnt/drnt_indd");
- var curdd = getCurrentDate();
- var period = getDateInterval(fromdd, curdd);
-
- // model.setValue("/root/hidden/sppiz01200/cond/calcbasedd");
- // fromdd부터 currentdate까지 loop
- for (i=1; i<= period + 1; i++) {
-
- model.setValue("/root/hidden/sppiz01200/cond/calcbasedd" , fromdd);
-
- var rslt = submit("TXPIJ00205");
-
- // fromdd를 증가시킨다(하루씩)
- fromdd = fromdd.toDate("YYYYMMDD");
- fromdd = fromdd.getAddDate(1);
- fromdd = fromdd.getDateFormat();
- }
- }
- ]]>
- </script>
- <xhtml:head>
- <xhtml:title>분만신생아정보관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data1>
- <pid/>
- <indd/>
- <cretno/>
- <seqno/>
- <insukind/>
- <suppkind/>
- <saveyn/>
- <dschnotidt/>
- <dschnotiyn/>
- </data1>
- <data2>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <autoflag/>
- </data2>
- <data3>
- <list>
- <pid/>
- <indd/>
- <hngnm/>
- <cretno/>
- <wardcd/>
- <roomcd/>
- <indschacptstat/>
- </list>
- </data3>
- </send>
- <main>
- <popupendflag/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <drnt>
- <drnt_pid/>
- <drnt_hngnm/>
- <drnt_age/>
- <drnt_indd/>
- <drnt_inddlabel/>
- <drnt_cretno/>
- <drnt_instcd/>
- <drnt_dlivdd/>
- <drnt_dlivdt/>
- <drnt_prgweekcnt/>
- <drnt_atdoctid/>
- <drnt_atdoctnm/>
- <drnt_entrid/>
- <drnt_entrnm/>
- <drnt_avulsionspec/>
- <drnt_dlivkindcd/>
- <drnt_dlivkindetcspec/>
- <drnt_babycnt/>
- <drnt_ownbexmptn/>
- <drnt_fromdd/>
- <drnt_todd/>
- <drnt_seqno/>
- <drnt_mskind/>
- <drnt_insukind/>
- <drnt_dschnotidt/>
- <drnt_wardcd/>
- <drnt_roomcd/>
- <drnt_indschacptstat/>
- </drnt>
- <list1>
- <drntlist/>
- </list1>
- <list2>
- <inddlist>
- <label/>
- <value/>
- </inddlist>
- </list2>
- <list3>
- <iscllist/>
- </list3>
- </main>
- <hidden>
- <rcv>
- </rcv>
- <currentDate/>
- <popup>
- <pid/>
- <srchcond/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </popup>
- <sppiz01200>
- <cond>
- <pid/>
- <indd/>
- <cretno/>
- <mskind/>
- <calcbasedd/>
- <seqno/>
- <saveyn/>
- <dschnotidt/>
- <dschnotiyn/>
- <cfe/>
- </cond>
- </sppiz01200>
- <item2>
- <insuchange>
- <iphs_status/>
- <iphs_pid/>
- <iphs_indd/>
- <iphs_cretno/>
- <iphs_mskind/>
- <iphs_fromdd/>
- <iphs_seqno/>
- <iphs_todd/>
- <iphs_instcd/>
- <iphs_insukind/>
- <iphs_suppkind/>
- </insuchange>
- <rslt/>
- </item2>
- </hidden>
- </root>
- </instance>
- <submission id="TRPIZ01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
- <submission id="TRPIZ01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
- <submission id="TXPIJ00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/item2/insuchange" resultref="/root/hidden/item2/rslt"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize(); // 기본데이터 초기화
- var pid = model.getValue("/root/hidden/sppiz01200/cond/pid");
-
- if (pid != "") {
- copyNodeType("/root/send/data1","/root/hidden/sppiz01200/cond","replace");
- // 산모정보, 신생아정보 조회
- fPartrtnInfoRef();
- }
-
- // 이미 면제기간 적용된 경우, 버튼을 비활성화 시키고, 적용된 fromdd, todd 를 넣어준다. (2008.01.29 박지욱 추가)
- var disyn = model.getValue("/root/send/data1/disyn");
- if (disyn == "Y") {
- // 면제기간적용된 환자
- model.setValue("/root/main/drnt/drnt_fromdd", model.getValue("/root/send/data1/fromdd"));
- model.setValue("/root/main/drnt/drnt_todd", model.getValue("/root/send/data1/todd"));
- btn_discnt.disabled = true;
- btn_nondiscnt.disabled = false;
- } else if (disyn == "N") {
- // 면제기간적용안된 환자
- btn_discnt.disabled = false;
- btn_nondiscnt.disabled = true;
- }
- // 심사마감이나 퇴원이 되었을때는 면제기간적용해제를 할 수 없게 한다. - 20080924 박창원
- var saveyn = model.getValue("/root/hidden/sppiz01200/cond/saveyn");
-
- if (saveyn == "Y") {
- messageBox("마감이나 퇴원한 환자입니다. 조작은 할 수","E001");
- btn_discnt.disabled = true;
- btn_nondiscnt.disabled = true;
- }
- model.refresh();
-
- ]]>
- </script>
- <submission id="TXPIJ01903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/list4" resultref="/root/hidden/list4/rslt"/>
- <submission id="TXPIJ00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/sppiz01200/cond"/>
- <submission id="TXPIJ01904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/item2/insuchange" resultref="/root/hidden/list2/rslt"/>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMO001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="810" pageheight="575" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:790px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:13px; ">분만신생아정보관리</caption>
- </group>
- <group id="group5" style="left:0px; top:526px; width:790px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" navindex="32" style="left:662px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize(); // 기본데이터 초기화
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" navindex="32" style="left:733px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close(); // F5 실행시 IE를 종료시킨다.
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:785px; y2:0px; "/>
- </group>
- <group id="group2" style="left:0px; top:15px; width:790px; height:510px; ">
- <line id="line2" class="line_2" style="x1:0px; y1:75px; x2:788px; y2:75px; "/>
- <caption id="caption31" class="tit_2" style="left:5px; top:245px; width:88px; height:13px; font-family:돋움; vertical-align:middle; ">신생아정보</caption>
- <output id="output15" ref="/root/main/drnt/drnt_age" class="output_fix" appearance="output" style="left:231px; top:55px; width:45px; height:19px; text-align:right; "/>
- <caption id="caption32" class="cell_1" style="left:128px; top:30px; width:100px; height:23px; text-align:center; vertical-align:middle; ">환자성명</caption>
- <caption id="caption33" class="tit_2" style="left:5px; top:10px; width:170px; height:14px; font-family:돋움; vertical-align:middle; ">산모정보</caption>
- <input id="input2" ref="/root/main/drnt/drnt_pid" class="input_s_essential" navindex="1" maxlength="10" appearance="input" style="left:0px; top:55px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13') {
-
- // popup open 없이 조회로 변경
- model.setFocus("btn_drntpid");
-
- model.makeNode("/root/main/popupendflag");
- model.setValue("/root/main/popupendflag","pass");
-
- fPatInfoRef();
-
- }
- ]]>
- </script>
- </input>
- <caption id="caption34" class="cell_1" style="left:0px; top:30px; width:125px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
- <caption id="caption46" class="cell_1" style="left:231px; top:30px; width:45px; height:23px; text-align:center; vertical-align:middle; ">나이</caption>
- <line id="line23" class="line_1" style="x1:0px; y1:25px; x2:788px; y2:25px; "/>
- <line id="line24" class="line_1" style="x1:0px; y1:260px; x2:788px; y2:260px; "/>
- <line id="line28" class="line_3" style="x1:0px; y1:123px; x2:788px; y2:123px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:130px; width:88px; height:13px; font-family:돋움; vertical-align:middle; ">처방정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:144px; x2:788px; y2:144px; "/>
- <button id="btn_drntpid" class="icon_search" style="left:110px; top:55px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* */
- var drnt_pid = model.getValue("/root/main/drnt/drnt_pid");
-
- if (drnt_pid == null || drnt_pid ==" " || drnt_pid == "") {
- model.resetInstanceNode("/root/send/data2");
- } else {
- model.setValue("/root/send/data2/pid",drnt_pid);
- model.setValue("/root/send/data2/srchcond","1");
- }
-
- modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data2", "/root/send", "", "");
- model.resetInstanceNode("/root/send/data2");
-
- fPatInfoRef();
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/list3/iscllist" caption="분만코드^EDI코드^처방명^처방일시^처방일시" colsep="^" colwidth="100, 100, 330, 100, 100" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:149px; width:788px; height:91px; ">
- <col ref="snglcalcscorcd" style="text-align:left; "/>
- <col ref="insuedicd" style="text-align:left; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgsttm" format="hh:nn:ss" style="text-align:center; "/>
- </datagrid>
- <button id="button7" class="btn2_letter6" style="left:525px; top:5px; width:86px; height:19px; ">
- <caption>분만간호기록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var drnt_pid = model.getValue("/root/main/drnt/drnt_pid");
-
- if (drnt_pid == null || drnt_pid == " " || drnt_pid == "" ) {
- model.resetInstanceNode("/root/send/data3");
- } else {
- model.setValue("/root/send/data3/list/pid",drnt_pid);
- model.setValue("/root/send/data3/list/hngnm",model.getValue("/root/main/drnt/drnt_hngnm"));
- model.setValue("/root/send/data3/list/indd",model.getValue("/root/main/drnt/drnt_indd"));
- model.setValue("/root/send/data3/list/cretno",model.getValue("/root/main/drnt/drnt_cretno"));
- model.setValue("/root/send/data3/list/wardcd",model.getValue("/root/main/drnt/drnt_wardcd"));
- model.setValue("/root/send/data3/list/roomcd",model.getValue("/root/main/drnt/drnt_roomcd"));
- model.setValue("/root/send/data3/list/indschacptstat",model.getValue("/root/main/drnt/drnt_indschacptstat"));
- var reqnode = instance1.selectNodes("/root/send/data3/list");
- var csv = getNodeListCSV(reqnode);
- setGlobalVariable("paminfo",csv);
- }
-
- //modal("../../../emr/partrtnnbabyweb/xrw/SMMNN00700", "1","100", "100", "SMMNN00700", "/root/send/data3", "/root/init/paminfo");
- modal("../../../emr/partrtnnbabyweb/xrw/SMMNN00700", "1","100", "100", "SMMNN00700", "", "", "", "");
- ]]>
- </script>
- </button>
- <caption id="caption63" class="cell_1" style="left:279px; top:30px; width:89px; height:23px; text-align:center; vertical-align:middle; ">입원일자</caption>
- <caption id="caption65" class="cell_1" style="left:371px; top:30px; width:85px; height:23px; text-align:center; vertical-align:middle; ">분만일자</caption>
- <caption id="caption66" class="cell_1" style="left:459px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">분만일시</caption>
- <caption id="caption67" class="cell_1" style="left:542px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">임신주수</caption>
- <caption id="caption68" class="cell_1" style="left:625px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">전문의</caption>
- <caption id="caption69" class="cell_1" style="left:708px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">분만의</caption>
- <caption id="caption70" class="cell_1" style="left:279px; top:78px; width:89px; height:23px; text-align:center; vertical-align:middle; ">아기수</caption>
- <caption id="caption71" class="cell_1" style="left:128px; top:78px; width:148px; height:23px; text-align:center; vertical-align:middle; ">분만형태</caption>
- <caption id="caption72" class="cell_1" style="left:459px; top:78px; width:163px; height:23px; text-align:center; vertical-align:middle; ">From</caption>
- <caption id="caption73" class="cell_1" style="left:625px; top:78px; width:163px; height:23px; text-align:center; vertical-align:middle; ">To</caption>
- <caption id="caption74" class="cell_1" style="left:0px; top:78px; width:125px; height:23px; text-align:center; vertical-align:middle; ">산과력</caption>
- <caption id="caption75" class="cell_1" style="left:371px; top:78px; width:85px; height:23px; text-align:center; vertical-align:middle; ">본인부담면제</caption>
- <output id="output18" ref="/root/main/drnt/drnt_dlivdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:371px; top:55px; width:85px; height:19px; text-align:center; "/>
- <output id="output19" ref="/root/main/drnt/drnt_dlivdt" class="output_fix" format="hh:nn" appearance="output" style="left:459px; top:55px; width:80px; height:19px; text-align:center; "/>
- <output id="output20" ref="/root/main/drnt/drnt_prgweekcnt" class="output_fix" appearance="output" style="left:542px; top:55px; width:80px; height:19px; text-align:center; "/>
- <output id="output21" ref="/root/main/drnt/drnt_atdoctnm" class="output_fix" appearance="output" style="left:625px; top:55px; width:80px; height:19px; text-align:center; "/>
- <output id="output22" ref="/root/main/drnt/drnt_entrnm" class="output_fix" appearance="output" style="left:708px; top:55px; width:80px; height:19px; text-align:center; "/>
- <output id="output23" ref="/root/main/drnt/drnt_avulsionspec" class="output_fix" appearance="output" style="left:0px; top:103px; width:125px; height:19px; "/>
- <output id="output24" ref="/root/main/drnt/drnt_dlivkindetcspec" class="output_fix" appearance="output" style="left:128px; top:103px; width:100px; height:19px; text-align:left; "/>
- <output id="output25" ref="/root/main/drnt/drnt_dlivkindcd" class="output_fix" appearance="output" style="left:231px; top:103px; width:45px; height:19px; text-align:center; "/>
- <output id="output26" ref="/root/main/drnt/drnt_babycnt" class="output_fix" appearance="output" style="left:279px; top:103px; width:89px; height:19px; text-align:center; "/>
- <input id="ipt_drnt_from" ref="/root/main/drnt/drnt_fromdd" class="input_default" inputtype="date" appearance="input" style="left:459px; top:103px; width:163px; height:19px; text-align:center; "/>
- <input id="ipt_drnt_to" ref="/root/main/drnt/drnt_todd" class="input_default" inputtype="date" appearance="input" style="left:625px; top:103px; width:163px; height:19px; text-align:center; "/>
- <button id="btn_discnt" class="btn2_letter6" style="left:614px; top:5px; width:86px; height:19px; ">
- <caption>면제기간적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ownbexmptn = model.getValue("/root/main/drnt/drnt_ownbexmptn");
-
- if (ownbexmptn == "Y") {
-
- // 2008.02.12 박지욱 추가 (메세지 확인 후 적용 처리하도록 함)
- var fromdd = model.getValue("/root/main/drnt/drnt_fromdd");
- var todd = model.getValue("/root/main/drnt/drnt_todd");
- var dschnotidt = model.getValue("/root/send/data1/dschnotidt");
- var dschnotiyn = model.getValue("/root/send/data1/dschnotiyn");
- var curdd = getCurrentDate();
-
- // 퇴원확정시 퇴원확정일 이후로 todd를 지정하면 block - 20090114 박창원
- dschnotidt = dschnotidt.substr(0, 8);
- if ((todd > dschnotidt) && dschnotiyn == "Y") {
- messageBox("퇴원확정일 이후로 종료일자를 적용","E001");
- return;
- }
-
- if (todd == "99991231") {
- model.setValue("/root/main/drnt/drnt_todd",curdd);
- todd = model.getValue("/root/main/drnt/drnt_todd");
- }
- fromdd = fromdd.toDate().getDateFormat("YYYY년 MM월 DD일");
- todd = todd.toDate().getDateFormat("YYYY년 MM월 DD일");
- var ret = messageBox(fromdd + " 부터 " + todd + " 까지 본인부담 면제기간 적용을", "Q004");
- if(ret == 6){
- var pid = model.getValue("root/main/drnt/drnt_pid");
- var indd = model.getValue("root/main/drnt/drnt_indd");
- var cretno = model.getValue("root/main/drnt/drnt_cretno");
- var mskind = model.getValue("/root/hidden/sppiz01200/cond/mskind");
- var fromdd = model.getValue("/root/main/drnt/drnt_fromdd");
- var seqno = model.getValue("root/main/drnt/drnt_seqno");
- var todd = model.getValue("/root/main/drnt/drnt_todd");
- var insukind = model.getValue("/root/main/drnt/drnt_insukind");
- var suppkind = model.getValue("root/main/drnt/drnt_suppkind");
- var instcd = model.getValue("root/main/drnt/drnt_instcd");
- var cfe = model.getValue("/root/hidden/sppiz01200/cond/cfe");
-
- model.setValue("/root/hidden/item2/insuchange/iphs_status","B");
- model.setValue("/root/hidden/item2/insuchange/iphs_pid",pid);
- model.setValue("/root/hidden/item2/insuchange/iphs_indd",indd);
- model.setValue("/root/hidden/item2/insuchange/iphs_cretno",cretno);
- model.setValue("/root/hidden/item2/insuchange/iphs_mskind",mskind);
- model.setValue("/root/hidden/item2/insuchange/iphs_fromdd",fromdd);
- model.setValue("/root/hidden/item2/insuchange/iphs_seqno",seqno);
- model.setValue("/root/hidden/item2/insuchange/iphs_todd",todd);
- model.setValue("/root/hidden/item2/insuchange/iphs_insukind",insukind);
- // 20090325 차상위 2종적용 - 박창원
- if (cfe == "E" | cfe == "F") {
- model.setValue("/root/hidden/item2/insuchange/iphs_suppkind","42"); //자연분만으로 셋팅
- } else {
- model.setValue("/root/hidden/item2/insuchange/iphs_suppkind","09"); //자연분만으로 셋팅
- }
-
-
- model.setValue("/root/hidden/item2/insuchange/iphs_instcd",instcd);
- model.removenode("/root/hidden/insuchange/rslt");
-
- if(submit("TXPIJ00305")){
- var ret = messageBox("유형변경이 완료 되었습니다. 변경된 내역의 소급처리를", "Q004");
- if(ret == 6){
- var sWindowMsg = "수가계산중입니다...";
- callLoadingWindow(sWindowMsg);
- fReCalc() ;
- removeLoadingWindow();
- }
- opener.javascript.fGetItemInfo();
- opener.model.refresh();
- activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
- window.close(); // F5 실행시 IE를 종료시킨다.
-
- }
- }else{
- return;
- }
- }else{
- messageBox("면제기간 적용 대상이 아니므로 적용","E001");
- }
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_drnt_indd" ref="/root/main/drnt/drnt_indd" disabled="true" appearance="minimal" style="left:279px; top:55px; width:89px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/list2/inddlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- model.setValue("/root/send/data1/pid",model.getValue("/root/main/drnt/drnt_pid"));
- model.setValue("/root/send/data1/indd",model.getValue("root/main/drnt/drnt_indd"));
- // 산모정보, 신생아정보 조회
- fPartrtnInfoRef();
- ]]>
- </script>
- </select1>
- <output id="opt_drnt_hngnm" ref="/root/main/drnt/drnt_hngnm" class="output_fix" appearance="output" style="left:128px; top:55px; width:100px; height:19px; "/>
- <select1 id="cmb_drnt_ownbexmptn" ref="/root/main/drnt/drnt_ownbexmptn" appearance="minimal" style="left:371px; top:103px; width:85px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <datagrid id="grd_drntlist" nodeset="/root/main/list1/drntlist" caption="등록번호^아기성명^성별^출생시체중(g)^생사여부^A/S^병실" colsep="^" colwidth="100, 100, 110, 110, 110, 100, 100" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:265px; width:788px; height:243px; ">
- <col ref="babyno"/>
- <col ref="babynm" style="text-align:left; "/>
- <col ref="gndr" style="text-align:center; "/>
- <col ref="weig" style="text-align:right; "/>
- <col ref="deathyn" style="text-align:center; "/>
- <col ref="apgarscore" style="text-align:center; "/>
- <col ref="dlivplcecd" style="text-align:center; "/>
- </datagrid>
- <button id="btn_nondiscnt" class="btn2_letter6" style="left:702px; top:5px; width:86px; height:19px; ">
- <caption>면제기간해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/drnt/drnt_pid");
- var indd = model.getValue("/root/main/drnt/drnt_indd");
- var cretno = model.getValue("/root/main/drnt/drnt_cretno");
- var mskind = model.getValue("/root/main/drnt/drnt_mskind");
- var fromdd = model.getValue("/root/main/drnt/drnt_fromdd");
- var seqno = model.getValue("/root/hidden/sppiz01200/cond/seqno");
- if (seqno == "") {
- seqno = "1"
- }
- var todd = model.getValue("/root/main/drnt/drnt_todd");
- var insukind = model.getValue("/root/main/drnt/drnt_insukind");
- var instcd = model.getValue("/root/main/drnt/drnt_instcd");
-
- model.setValue("/root/hidden/item2/insuchange/iphs_status","B");
- model.setValue("/root/hidden/item2/insuchange/iphs_pid",pid);
- model.setValue("/root/hidden/item2/insuchange/iphs_indd",indd);
- model.setValue("/root/hidden/item2/insuchange/iphs_cretno",cretno);
- model.setValue("/root/hidden/item2/insuchange/iphs_mskind",mskind);
- model.setValue("/root/hidden/item2/insuchange/iphs_fromdd",fromdd);
- model.setValue("/root/hidden/item2/insuchange/iphs_seqno",seqno);
- model.setValue("/root/hidden/item2/insuchange/iphs_todd",todd);
- model.setValue("/root/hidden/item2/insuchange/iphs_insukind",insukind);
-
- var cfe = model.getValue("/root/hidden/sppiz01200/cond/cfe");
-
- if (cfe == "E" || cfe == "F") {
- model.setValue("/root/hidden/item2/insuchange/iphs_suppkind","33"); //차상위2종정상으로 셋팅
- } else {
- model.setValue("/root/hidden/item2/insuchange/iphs_suppkind","00"); //정상으로 셋팅
- }
-
- model.setValue("/root/hidden/item2/insuchange/iphs_instcd",instcd);
-
- model.removenode("/root/hidden/insuchange/rslt");
- if(submit("TXPIJ00305")){
- var fromdd = model.getValue("/root/main/drnt/drnt_indd");
- var todd = 99991231;
- model.setValue("/root/hidden/item2/insuchange/iphs_fromdd",fromdd);
- model.setValue("/root/hidden/item2/insuchange/iphs_todd",todd);
- if (submit("TXPIJ01904")) {
- if(messageBox("면제기간이 해제되었습니다. 변경된 내역의 소급처리를", "Q004") == 6){
- var sWindowMsg = "수가계산중입니다...";
- callLoadingWindow(sWindowMsg);
- fReCalc() ;
- removeLoadingWindow();
- messageBox("소급계산이","I001");
- }
- }
- }
-
- opener.model.refresh();
- opener.javascript.fGetItemInfo();
- activateOpener(); // (common.js)에서 제공하는 함수로 opener를 activate한다.
- window.close(); // F5 실행시 IE를 종료시킨다.
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|