123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPPAO01800_현금영수증기준관리.xrw
- * 설 명 : 현금영수증기준을 관리한다.
- * 기 타 :
- -->
- <?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>
- <otpt>
- <otpt_pid/>
- <otpt_orddd/>
- <otpt_cretno/>
- <otpt_acptseqno/>
- <otpt_instcd/>
- <otpt_histstat/>
- <otpt_orgorddd/>
- <otpt_orgcretno/>
- <otpt_calcbaseflag/>
- <otpt_calcyn/>
- <otpt_ordtm/>
- <otpt_orddeptcd/>
- <otpt_orddeptabbr/>
- <otpt_orddrid/>
- <otpt_orddeptdrabbr/>
- <otpt_dutdeptcd/>
- <otpt_centcd/>
- <otpt_supdeptcd/>
- <otpt_mskind/>
- <otpt_insukind/>
- <otpt_suppkind/>
- <otpt_insucd/>
- <otpt_suppkindresn/>
- <otpt_specordyn/>
- <otpt_holiflag/>
- <otpt_fsexamflag/>
- <otpt_fsexammanlyn/>
- <otpt_ordtype/>
- <otpt_brateflag/>
- <otpt_medamtestmyn/>
- <otpt_medamtpostyn/>
- <otpt_medamtfreeresn/>
- <otpt_rsrvflag/>
- <otpt_etcordflag/>
- <otpt_disccd/>
- <otpt_hosoutexptresncd/>
- <otpt_clincstdyacptflag/>
- <otpt_clincstdyno/>
- <otpt_chrtlendyn/>
- <otpt_specorddescyn/>
- <otpt_ordreqdescyn/>
- <otpt_ordreqhospgrde/>
- <otpt_insuchrgyn/>
- <otpt_nursacptyn/>
- <otpt_nursacptdt/>
- <otpt_dracptyn/>
- <otpt_dracptdt/>
- <otpt_prcpgenryn/>
- <otpt_prcpnotoccrresn/>
- <otpt_estmspclappyn/>
- <otpt_elbulbodstat/>
- <otpt_elbulbodstatdt/>
- <otpt_calcflag/>
- <otpt_calcmthdflag/>
- <otpt_dnoracptyn/>
- <otpt_rqstflag/>
- <otpt_rqsthospcd/>
- <otpt_rqstdrid/>
- <otpt_lastrcptendyn/>
- <otpt_tdayinflag/>
- <otpt_tranindd/>
- <otpt_rcptdd/>
- <otpt_rcptno/>
- <otpt_rcptseqno/>
- <otpt_telrsrvrem/>
- <otpt_updtcnclresn/>
- <otpt_fstacptid/>
- <otpt_fstacptdt/>
- <otpt_fstrgstrid/>
- <otpt_fstrgstdt/>
- <otpt_lastupdtrid/>
- <otpt_lastupdtdt/>
- <otpt_ordreqformflag/>
- <otpt_prcplockid/>
- <otpt_dschjudgprcsstat/>
- <otpt_judgmdlid/>
- <otpt_lastjudgdt/>
- <otpt_mainjudgid/>
- <otpt_probjudgflag/>
- <otpt_spcljudgflag/>
- <otpt_handicaprbookpossnyn/>
- <otpt_outercdrgstyn/>
- <otpt_undersixageyn/>
- <otpt_remfact/>
- <otpt_spclcd/>
- <otpt_onestop/>
- <otpt_ownbflag/>
- <otpt_ordstat/>
- <otpt_ordpatyn/>
- <otpt_uncocd/>
- <otpt_pmflag/>
- <otpt_emplno/>
- <otpt_emplnm/>
- <otpt_suppkindsubyn/>
- <otpt_earnendyn/>
- <otpt_rareobstflag/>
- <otpt_tranflag/>
- <otpt_onlnno/>
- <otpt_inetproxyrrgstno/>
- <otpt_holdflag/>
- <otpt_subdeptcd/>
- <otpt_rcptvipresncd/>
- <otpt_rcptvipetcresn/>
- <otpt_prcptdayaftrcptyn/>
- <otpt_coopteamcd/>
- <otpt_rcptamt/>
- <otpt_rcptrnm/>
- <otpt_rcptdt/>
- <otpt_tablename/>
- <otpt_acptdd/>
- <otpt_acptno/>
- <otpt_orddeptnm/>
- <otpt_orddrnm/>
- <otpt_hngnm/>
- </otpt>
- </main>
- <send>
- <otpt_pid/>
- <otpt_orddd/>
- <otpt_cretno/>
- </send>
- <hidden>
- <session/>
- </hidden>
- <init>
- <P0477list>
- <P0477>
- <cdid/>
- <cdnm/>
- </P0477>
- </P0477list>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //센터 선 적용 여부 체크
- CENTERYN = fCheckCenterYN();
-
- zbcfGetCodeList(new Array("P0477"), new Array("/root/init/P0477list"),false);
-
- if (checkOpener())
- {
- opener.javascript.setParameter("SPPMO01700_RTN",'N');
-
- var SPPMO01700_pid = opener.javascript.getParameter("SPPMO01700_pid");
- if(SPPMO01700_pid == null || SPPMO01700_pid == ' ' || SPPMO01700_pid.length == ' '){
-
- }else{
- fSearch();
- }
- }
- ]]>
- </script>
- <submission id="TRPMO01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXPMO01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/otpt"/>
- <submission id="TRPMO00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/pamcomcd/send" resultref="/root/hidden/pamcomcd/rcv"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.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="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- var CENTERYN = 'N';
-
- //환자별 현금영수증 기준 내역 조회
- function fSearch() {
- //환자번호 세팅
- model.setValue("/root/send/otpt_pid", opener.javascript.getParameter("SPPMO01700_pid") );
- model.setValue("/root/send/otpt_orddd", opener.javascript.getParameter("SPPMO01700_orddd") );
- model.setValue("/root/send/otpt_cretno", opener.javascript.getParameter("SPPMO01700_cretno") );
-
- submit("TRPMO01701");
- if( getNodesetCount("/root/main/otpt/otpt_pid") < 1 ){
- messageBox("환자 접수정보를 가져오지 못했습니다. 창을 닫으신 후 잠시후에 다시 시도해 주세요.", "E999", "");
- return false;
- }
- model.resetInstanceNode("/root/send");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="480" pageheight="200" guideline="1,653;1,653;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:155px; width:428px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:372px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener()){
-
- //2009-03-09 이동식 추가
- //선후불여부
- var otpt_medamtpostyn = model.getValue("/root/main/otpt/otpt_medamtpostyn");
- var rcptvipresncd = model.getValue("/root/main/otpt/otpt_rcptvipresncd");
-
- if( rcptvipresncd == '' || rcptvipresncd == '-' || rcptvipresncd == ' ' ){
- rcptvipresncd = '-';
- }
- if( otpt_medamtpostyn == 'V' && rcptvipresncd == '-' ){
- messageBox("수납VIP로 접수하실려면 VIP구분코드를 입력하셔야 합니다.", "E999", "");
- return false;
- }else if( otpt_medamtpostyn != 'V' && rcptvipresncd != '-' ){
- messageBox("수납VIP로 접수하지 않을 땐 VIP구분코드를 입력하시면 안됩니다.", "E999", "");
- return false;
- }
-
- if(submit("TXPMO01702")){
- //영수증 발행 데이터 세팅.
- model.removeNodeset("/root/temp/receipt");
- model.makeNode("/root/temp/receipt/pid");
- model.makeNode("/root/temp/receipt/cretno");
- model.makeNode("/root/temp/receipt/acptseqno");
- model.makeNode("/root/temp/receipt/rcptdd");
- model.makeNode("/root/temp/receipt/rcptno");
- model.makeNode("/root/temp/receipt/rcptseqno");
- model.makeNode("/root/temp/receipt/orddd");
- model.makeNode("/root/temp/receipt/ordtype");
- model.makeNode("/root/temp/receipt/instcd");
- model.makeNode("/root/temp/receipt/engYN");
- model.makeNode("/root/temp/receipt/reprintYN");
-
- //2008-01-10 조영상 요청사항
- model.makeValue("/root/temp/receipt/m_cnt", "1");
- //END..
-
- //2007-09-17 이동식 추가 - 조영상 요청사항
- model.makeNode("/root/temp/receipt/ordrcptflag");
- model.makeNode("/root/temp/receipt/orddeptcd");
- model.makeNode("/root/temp/receipt/orddrid");
- //END..
- model.makeNode("/root/temp/receipt/rcptsite");
- model.setValue("/root/temp/receipt/rcptsite", 'J');
-
- model.setValue("/root/temp/receipt/engYN", 'N');
- model.setValue("/root/temp/receipt/reprintYN", 'N'); //재발행
-
- // if( model.getValue("") == 'T' ){
- model.setValue("/root/temp/receipt/ordtype", "외래예약증");
- model.setValue("/root/temp/receipt/pid", model.getValue("/root/main/otpt/otpt_pid") );
- model.setValue("/root/temp/receipt/cretno", model.getValue("/root/main/otpt/otpt_cretno") );
- model.setValue("/root/temp/receipt/acptseqno", model.getValue("/root/main/otpt/otpt_acptseqno") );
- model.setValue("/root/temp/receipt/orddd", model.getValue("/root/main/otpt/otpt_orddd"));
- model.setValue("/root/temp/receipt/instcd", model.getValue("/root/main/otpt/otpt_instcd") );
- model.setValue("/root/temp/receipt/ordrcptflag", 'multi');
- model.setValue("/root/temp/receipt/orddeptcd", model.getValue("/root/main/otpt/otpt_orddeptcd") );
- model.setValue("/root/temp/receipt/orddrid", model.getValue("/root/main/otpt/otpt_orddrid") );
- model.makeNode("/root/temp/receipt/rcptdd");
- model.setValue("/root/temp/receipt/rcptdd", getCurrentDate());
- model.makeNode("/root/temp/receipt/rcptno");
- model.setValue("/root/temp/receipt/rcptno", '0');
- model.makeNode("/root/temp/receipt/rcptseqno");
- model.setValue("/root/temp/receipt/rcptseqno", '0');
- // }else{
- //
- // model.setValue("/root/temp/receipt/ordtype", "외래정산영수증");
- // model.setValue("/root/temp/receipt/pid", model.getValue("/root/main/otpt/otpt_pid") );
- // model.setValue("/root/temp/receipt/cretno", model.getValue("/root/main/otpt/otpt_cretno") );
- // model.setValue("/root/temp/receipt/acptseqno", model.getValue("/root/main/otpt/otpt_acptseqno") );
- // model.setValue("/root/temp/receipt/rcptdd", model.getValue("/root/main/otpt/otpt_rcptdd") );
- // model.setValue("/root/temp/receipt/rcptno", model.getValue("/root/main/otpt/otpt_rcptno") );
- // model.setValue("/root/temp/receipt/rcptseqno", model.getValue("/root/main/otpt/otpt_rcptseqno") );
- // model.setValue("/root/temp/receipt/orddd", model.getValue("/root/main/otpt/otpt_orddd") );
- // model.setValue("/root/temp/receipt/instcd", model.getValue("/root/main/otpt/otpt_instcd") );
- // model.setValue("/root/temp/receipt/ordrcptflag", 'multi');
- // model.setValue("/root/temp/receipt/orddeptcd", model.getValue("/root/main/otpt/otpt_orddeptcd") );
- // model.setValue("/root/temp/receipt/orddrid", model.getValue("/root/main/otpt/otpt_orddrid") );
- // }
- //영수증 팝업화면 호출
- modal("SPPAO01900");
-
- opener.javascript.setParameter("SPPMO01700_RTN", 'Y');
- window.close();
- }else{
- messageBox("정상적으로 처리되지 않았습니다!!", "E999", "");
- opener.javascript.setParameter("SPPMO01700_RTN", 'N');
- window.close();
- }
- }
- ]]>
- </script>
- </button>
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:428px; y2:0px; "/>
- <button id="btn_cncl" class="btn4_letter2" style="left:314px; top:4px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener())
- {
- opener.javascript.setParameter("SPPMO01700_RTN", 'N');
- window.close();
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:428px; height:154px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:139px; height:14px; ">선후불변경</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:26px; x2:427px; y2:26px; "/>
- <caption id="caption102" class="cell_1" style="left:0px; top:127px; width:140px; height:23px; vertical-align:middle; ">수납VIP적용사유</caption>
- <select1 id="rdo_medamtpostyn" ref="/root/main/otpt/otpt_medamtpostyn" navindex="19" appearance="full" cellspacing="6" cols="3" overflow="visible" style="left:143px; top:80px; width:178px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>선불</label>
- <value>N</value>
- </item>
- <item>
- <label>후불</label>
- <value>Y</value>
- </item>
- <item>
- <label>수납 VIP</label>
- <value>V</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var otpt_medamtpostyn = model.getValue("/root/main/otpt/otpt_medamtpostyn");
-
- if( CENTERYN != 'Y' ){
- if(otpt_medamtpostyn == 'V'){
- messageBox("현재 수납VIP로 접수하실 수 없습니다.", "E999", "");
- model.setValue("/root/main/otpt/otpt_medamtpostyn", 'N');
- model.setValue("/root/main/otpt/otpt_rcptvipresncd", '-');
- model.refresh();
- return;
- }
- }
-
- //2009-03-09 이동식 추가
- if( otpt_medamtpostyn != 'V' ){
- model.setValue("/root/main/otpt/otpt_rcptvipresncd", '-');
- combo2.refresh();
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption105" class="cell_1" style="left:0px; top:103px; width:140px; height:23px; vertical-align:middle; ">직원성명</caption>
- <select1 id="combo2" ref="/root/main/otpt/otpt_rcptvipresncd" class="combo_default" navindex="23" appearance="minimal" itemcount="20" style="left:325px; top:80px; width:102px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0477list/P0477">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // fDiscCDSelect();
-
- //2007-12-07 이동식 추가
- if(model.getValue("/root/main/otpt/otpt_rcptvipresncd") == '-'){
- model.setValue("/root/main/otpt/otpt_medamtpostyn", 'N');
- rdo_medamtpostyn.dispatch("xforms-select");
- }else{
- model.setValue("/root/main/otpt/otpt_medamtpostyn", 'V');
- rdo_medamtpostyn.dispatch("xforms-select");
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_emplnm" ref="/root/main/otpt/otpt_emplnm" class="input_default" appearance="input" style="left:246px; top:104px; width:181px; height:19px; "/>
- <input id="ipt_emplno" ref="/root/main/otpt/otpt_emplno" class="input_default" maxlength="10" appearance="input" style="left:143px; top:104px; width:80px; height:19px; "/>
- <line id="line82" class="line_2" style="x1:0px; y1:125px; x2:427px; y2:125px; "/>
- <line id="line93" class="line_2" style="x1:0px; y1:101px; x2:427px; y2:101px; "/>
- <button id="btn_emp_search2" class="icon_search" style="left:227px; top:105px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SPPMC03800_emplid", model.getValue("/root/main/otpt/otpt_emplno"));
- setParameter("SPPMC03800_emplnm", model.getValue("/root/main/otpt/otpt_emplnm"));
- setParameter("SPPMC03800_rrgstno1", '');
- setParameter("SPPMC03800_rrgstno2", '');
-
- modal("SPPMC03800", "1","150", "150", "SPPMC03800", "", "");
- var emplID = getParameter("SPPMC03800_emplid");
- var emplNM = getParameter("SPPMC03800_emplnm");
-
- clearParameter("SPPMC03800_emplid");
- clearParameter("SPPMC03800_emplnm");
- clearParameter("SPPMC03800_discuncoflag");
- clearParameter("SPPMC03800_discuncocd");
- clearParameter("SPPMC03800_aftrcptyn");
-
- if( emplID != '' && emplID != ' ' ){
- model.setValue("/root/main/otpt/otpt_emplno", emplID);
- model.setValue("/root/main/otpt/otpt_emplnm", emplNM);
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption100" class="cell_1" style="left:0px; top:79px; width:140px; height:23px; vertical-align:middle; ">진찰료 선후불/VIP구분</caption>
- <line id="line2" class="line_3" style="x1:0px; y1:150px; x2:427px; y2:150px; "/>
- <caption id="caption82" class="cell_1" style="left:0px; top:31px; width:140px; height:23px; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/main/otpt/otpt_pid" class="input_default" disabled="true" navindex="1" maxlength="10" appearance="input" style="left:143px; top:32px; width:105px; height:19px; "/>
- <input id="ipt_hngnm" ref="/root/main/otpt/otpt_hngnm" class="input_default" disabled="true" navindex="2" imemode="hangul" style="left:310px; top:31px; width:117px; height:19px; "/>
- <caption id="caption79" class="cell_1" style="left:253px; top:30px; width:54px; height:23px; vertical-align:middle; ">성명</caption>
- <line id="line103" class="line_2" style="x1:0px; y1:53px; x2:428px; y2:53px; "/>
- <input id="input3" ref="/root/main/otpt/otpt_rcptvipetcresn" class="input_default" maxlength="50" style="left:143px; top:128px; width:284px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:55px; width:140px; height:23px; vertical-align:middle; ">진료일자</caption>
- <input id="input1" ref="/root/main/otpt/otpt_orddd" class="input_default" disabled="true" format="yyyy-mm-dd" appearance="input" style="left:143px; top:56px; width:105px; height:19px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:77px; x2:428px; y2:77px; "/>
- <input id="input2" ref="/root/main/otpt/otpt_orddeptnm" class="input_default" disabled="true" navindex="2" imemode="hangul" style="left:310px; top:56px; width:117px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:253px; top:55px; width:54px; height:23px; vertical-align:middle; ">진료과</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|