123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPPAO01800_현금영수증기준관리.xrw
- * 설 명 : 현금영수증기준을 관리한다.
- * 기 타 :
- -->
- <?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>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- </patinfolist>
- </patinfo>
- <cashbaseinfo>
- <cashbase>
- <qualcnfmflag/>
- <qualcnfmno/>
- <remfact/>
- </cashbase>
- </cashbaseinfo>
- </main>
- <send>
- <qualcnfmflag/>
- <qualcnfmno/>
- <remfact/>
- <pid/>
- </send>
- <hidden>
- <session/>
- </hidden>
- <source>
- <srchcond/>
- <pid/>
- </source>
- <init_pam>
- <init>
- <P0032list>
- <P0032>
- <cdid/>
- <cdnm/>
- </P0032>
- </P0032list>
- </init>
- </init_pam>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 원무공통코드 조회
- pamfGetCodeList(new Array("P0032"), new Array("/root/init_pam/init/P0032list"));
-
- if (checkOpener())
- {
- setParameter("SPPAO01800_RTN","");
-
- var SPPAO01800_PID = opener.javascript.getParameter("SPPAO01800_PID");
- model.setValue("/root/main/patinfo/patinfolist/pid" , SPPAO01800_PID);
- model.refresh();
-
- event.keyCode = "13";
- ipt_pid.dispatch("onkeypress");
-
- setParameter("SPPAO01800_PID","");
- }
-
- if(isNull(rdo_qualcnfmflag.value)){
- rdo_qualcnfmflag.value = 1;
- rdo_qualcnfmflag.refresh();
- }
- ]]>
- </script>
- <submission id="TRPAO01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cashbaseinfo"/>
- <submission id="TXPAO01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/patinfo"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </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/PAM001.js"/>
- <script type="javascript">
- <![CDATA[
- //환자별 현금영수증 기준 내역 조회
- function fSearch() {
- //환자번호 세팅
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid") );
-
- submit("TRPAO01801");
- model.resetInstanceNode("/root/send");
- model.copyNode("/root/send","/root/main/cashbaseinfo/cashbase");
-
- model.makeNode("/root/send/qualcnfmflag");
- model.makeNode("/root/send/qualcnfmno");
- model.makeNode("/root/send/remfact");
- model.makeNode("/root/send/pid");
-
- model.setFocus("ipt_qualcnfmno");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="500" pageheight="180" 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:130px; width:474px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:414px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // ICPos 단말기의 경우 저장된 카드번호 사용불가(카드인식으로만 사용)
- if (model.getValue("/root/send/qualcnfmflag") == "3"
- && model.getValue("/root/init_pam/init/P0032list/P0032[cdid = '200']/cdnm") == "KOCES_IC") {
- messageBox("IC단말기의 경우 저장된 카드번호는 사용불가입니다.\r\nIC단말기에서 카드리딩/번호입력하세요!!", "E000");
- return false;
- }
-
- if(isNull(rdo_qualcnfmflag.value)){
- messageBox("신분확인구분이 선택되어 있지 않습니다.", "E000");
- return
- }
-
- if(isNull(ipt_qualcnfmno.value)){
- messageBox("신분확인번호가 입력되지 않았습니다.", "E000");
- return
- }
-
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid") );
- if(submit("TXPAO01801")){
- messageBox("저장완료", "I");
- }
- ]]>
- </script>
- </button>
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:470px; y2:0px; "/>
- <button id="button1" class="btn4_letter2" style="left:355px; top:4px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener())
- {
-
- if ( model.getValue("/root/send/qualcnfmno").getTrim() == "" ) {
- opener.javascript.setParameter("SPPAO01800_RTN","N");
-
- // ICPos의 경우 카드번호는 단말기에서 입력하도록 처리
- } else if (model.getValue("/root/send/qualcnfmflag") == "3"
- && model.getValue("/root/init_pam/init/P0032list/P0032[cdid = '200']/cdnm") == "KOCES_IC") {
-
- messageBox("IC단말기의 경우 저장된 카드번호는 사용불가입니다.\r\nIC단말기에서 카드리딩/번호입력하세요!!", "E000");
- opener.javascript.setParameter("SPPAO01800_RTN","Y");
- opener.javascript.setParameter("SPPAO01800_qualcnfmflag", model.getValue("/root/send/qualcnfmflag") );
- opener.javascript.setParameter("SPPAO01800_qualcnfmno", "" );
-
- } else {
- opener.javascript.setParameter("SPPAO01800_RTN","Y");
- opener.javascript.setParameter("SPPAO01800_qualcnfmflag", model.getValue("/root/send/qualcnfmflag") );
- opener.javascript.setParameter("SPPAO01800_qualcnfmno", model.getValue("/root/send/qualcnfmno") );
- }
-
- window.close();
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:474px; height:130px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:139px; height:13px; ">현금영수증 기준관리</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:78px; x2:465px; y2:78px; "/>
- <line id="line12" class="line_1" style="x1:0px; y1:26px; x2:465px; y2:26px; "/>
- <caption id="caption6" class="cell_1" style="left:0px; top:80px; width:113px; height:23px; vertical-align:middle; ">신분확인번호</caption>
- <line id="line1" class="line_2" style="x1:0px; y1:102px; x2:465px; y2:102px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:55px; width:113px; height:23px; vertical-align:middle; ">신분확인구분</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:104px; width:113px; height:23px; vertical-align:middle; ">참고사항</caption>
- <input id="ipt_qualcnfmno" ref="/root/send/qualcnfmno" class="input_default" style="left:115px; top:81px; width:210px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- //현금영수증 선택시
- model.setValue("/root/send/qualcnfmno", ipt_qualcnfmno.currentText);
-
- if ((ipt_qualcnfmno.currentText).length >18) {
- //16자리보다 크면,
- // "="이 있으면, swipe
- if ( (ipt_qualcnfmno.currentText).indexOf("=") >0 ) {
- var vSwipeData = "";
- var vCardno_array = "";
- var vCardno = "";
-
- //vSwipeData = model.getValue("/root/hidden/com/card_cardno");
- vSwipeData = ipt_qualcnfmno.currentText;
-
- // swipe 시 첫글자에 ?
- if ( vSwipeData.indexOf("?") >= 0 ) {
- vSwipeData = (vSwipeData).substr(1,37);
- }
-
- if ( vSwipeData.indexOf("/") >= 0 ) {
- vSwipeData = (vSwipeData).substr(1,37);
- }
-
- vSwipeData = vSwipeData.getRightPad(40, " ");
-
- // model.setValue("/root/hidden/com/swipedata", vSwipeData );
- vCardno_array = vSwipeData.split("=");
- vCardno = vCardno_array[0];
-
- // swipe 시 첫글자에 ?
- if ( vCardno.indexOf("?") >= 0 ) {
- vCardno = (vCardno).substr(1,16);
- }
-
- //유효일자
- var vValiterm = (vCardno_array[1]).substr(0,4);
-
- model.setValue("/root/send/qualcnfmno", vCardno);
- // model.setValue("/root/hidden/com/keyinptflag","S");
-
- //현금영수증확인구분(1.주민,2.전화,3.카드,4.사업자)
- model.setValue("/root/send/qualcnfmflag","3");
-
- //현금영수증일때는 할부개월에 법인/개인구분(개인:00 사업자:01)
- // model.setValue("/root/hidden/com/card_allotmm",model.getValue("/root/hidden/com/cash_indinstflag") );
-
- model.refresh();
- // model.setFocus("ipt_cashamt");
- }
- }
- else if ((ipt_qualcnfmno.currentText).length ==16 || (ipt_qualcnfmno.currentText).length ==15 || (ipt_qualcnfmno.currentText).length ==18) {
- var vSwipeData = "";
- vSwipeData = model.getValue("/root/send/qualcnfmno")+"=";
- vSwipeData = vSwipeData.getRightPad(40, " ");
-
- // model.setValue("/root/hidden/com/swipedata",vSwipeData);
- // model.setValue("/root/hidden/com/keyinptflag","S");
-
- //현금영수증확인구분(1.주민,2.전화,3.카드,4.사업자)
- model.setValue("/root/send/qualcnfmflag","3");
-
- model.refresh();
- // model.setFocus("ipt_cashamt");
-
- }
- else {
- //16자리보다 작으면, 주민번호 혹은 전화번호 사업장번호
- var vSwipeData = "";
- vSwipeData = model.getValue("/root/send/qualcnfmno")+"=";
- vSwipeData = vSwipeData.getRightPad(40, " ");
-
- // model.setValue("/root/hidden/com/swipedata",vSwipeData);
- // model.setValue("/root/hidden/com/keyinptflag","K");
-
- //현금영수증확인구분(1.주민,2.전화,3.카드,4.사업자)
- //길이가 13자리이면,주민번호
- if ( (model.getValue("/root/send/qualcnfmno")).length==13 ) {
- model.setValue("/root/send/qualcnfmflag","1");
- }
- else {
-
- //앞 3자리 010,011,016,017,018,019 이면 전화
- if ( (model.getValue("/root/send/qualcnfmno")).substr(0,3) == "010" ||
- (model.getValue("/root/send/qualcnfmno")).substr(0,3) == "011" ||
- (model.getValue("/root/send/qualcnfmno")).substr(0,3) == "016" ||
- (model.getValue("/root/send/qualcnfmno")).substr(0,3) == "017" ||
- (model.getValue("/root/send/qualcnfmno")).substr(0,4) == "0130" ||
- (model.getValue("/root/send/qualcnfmno")).substr(0,3) == "018" ||
- (model.getValue("/root/send/qualcnfmno")).substr(0,3) == "019"
- ) {
- model.setValue("/root/send/qualcnfmflag","2");
- }
- else {
- //16자리 길이 미만일 때 13자리 주민번호 제외 후 핸드폰 앞자리 체크 나머지는 사업장
- model.setValue("/root/send/qualcnfmflag","4");
- // model.setValue("/root/hidden/com/cash_indinstflag","01"); //지출증빙
-
- }
-
- } //length ==13
-
- model.refresh();
- model.setFocus("ipt_cashamt");
-
- }//lenth ==16
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_qualcnfmflag" ref="/root/send/qualcnfmflag" appearance="full" cols="4" rows="1" vcellspacing="5" overflow="visible" style="left:115px; top:55px; width:346px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>주민번호</label>
- <value>1</value>
- </item>
- <item>
- <label>전화번호</label>
- <value>2</value>
- </item>
- <item>
- <label>카드번호</label>
- <value>3</value>
- </item>
- <item>
- <label>사업자번호</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/send/qualcnfmflag") == "1" ) {
- //주민번호 선택시, 환자의 주민번호 기본세팅
- model.setValue("/root/send/qualcnfmno", model.getValue("/root/main/patinfo/patinfolist/rrgstno1") +
- model.getValue("/root/main/patinfo/patinfolist/rrgstno2")
- );
- }
- else {
- model.setValue("/root/send/qualcnfmno","");
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/send/remfact" class="input_default" style="left:115px; top:105px; width:345px; height:19px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:126px; x2:465px; y2:126px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:52px; x2:465px; y2:52px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:31px; width:113px; height:23px; vertical-align:middle; ">등록번호/이름</caption>
- <output id="opt_emplnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:231px; top:31px; width:84px; height:19px; text-align:center; "/>
- <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" class="input_s_essential" navindex="1" maxlength="10" appearance="input" style="left:115px; top:32px; width:92px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "8") {
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- model.resetInstanceNode("/root/send");
- model.makeNode("/root/send/qualcnfmflag");
- model.makeNode("/root/send/qualcnfmno");
- model.makeNode("/root/send/remfact");
- model.makeNode("/root/send/pid");
-
- model.resetInstanceNode("/root/main/cashbaseinfo/cashbase");
- model.refresh();
- }
- if(event.keyCode == "13") {
- vcheck_pid = ipt_pid.currentText;
- //환자번호 null체크
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- messageBox("환자등록번호가 입력되지","E007");
- return;
- }
- //환자번호 조건으로 인적정보 조회
- model.setValue("/root/source/srchcond", "1");
- model.setValue("/root/source/pid", ipt_pid.currentText);
- //환자기본정보 node clear
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- model.resetInstanceNode("/root/main/cashbaseinfo/cashbase");
- model.resetInstanceNode("/root/send");
- model.makeNode("/root/send/qualcnfmflag");
- model.makeNode("/root/send/qualcnfmno");
- model.makeNode("/root/send/remfact");
- model.makeNode("/root/send/pid");
-
- //환자등록번호 체크
- if(submit("TRPMC02500")){
- var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- //조회내역 체크
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
-
- return;
- }
-
- //조회되는 항목들 clear
-
- fSearch(); //조회(현금영수증기준)
- }
- else {
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
-
- model.setFocus("ipt_pid");
- model.refresh();
- return;
- }
- }//End if(event.keyCode == "13") {
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" navindex="-1" style="left:211px; top:33px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|