123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPPAO01901_연말정산.xrw
- * 설 명 : 연말정산영수증
- * 설 계 자 : 조영상
- * 작 성 자 : 조영상.
- * 작 성 일 : 2008.03.10
- * 수정이력 :
- * 기 타 : test
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <?xml-stylesheet href="../../../../../../CMCProject/application/webapps/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>
- <h_rcpt>
- <rcpt>
- <rcpt_orddd/>
- <rcpt_outhospdd/>
- <rcpt_rcptexecdd/>
- <rcpt_ordtype/>
- <rcpt_totamt/>
- <rcpt_insuamt/>
- <rcpt_owntotamt/>
- <rcpt_cardamt/>
- <rcpt_cashamt_cash/>
- <rcpt_cashamt/>
- <rcpt_allamt/>
- <rcpt_discamt/>
- <rcpt_reduamt/>
- <rcpt_uncoamt/>
- </rcpt>
- </h_rcpt>
- <ptbs/>
- <incomeamt/>
- <protectyn>Y</protectyn>
- </main>
- <send>
- <data1>
- <pid/>
- <instcd/>
- <gijun/>
- <fromdd/>
- <todd/>
- <sum_flag/>
- </data1>
- </send>
- <init>
- <Z0007list>
- <Z0007/>
- </Z0007list>
- <PAM>
- <P1000list>
- <P1000/>
- </P1000list>
- </PAM>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAO02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/h_rcpt"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.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/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //makeReportPreview(0,500,1195,1000);
- makeReportPreview(0,0,0,0);
-
- fGetUserInfo2();
- fBaseCode();
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- model.setValue("/root/send/data1/instcd" , model.getValue("/root/hidden/session/posinstcd"));
- model.setValue("/root/send/data1/gijun" , "rcptdd");
-
- var openDate = model.getValue("/root/init/PAM/P1000list/P1000/cdnm");
-
- //6월이전은 과거일자, 6월부터는 현재일자 설정 되도록 수정 - 20140219
- if(getCurrentDate().substr(4, 2) >= "06"){
- var lastDate = getCurrentDate();
- }else{
- var lastDate = getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat();
- }
-
- if((lastDate.substr(0, 4) + "0101") < openDate){
- model.setValue("/root/send/data1/fromdd" , openDate);
- }else{
- model.setValue("/root/send/data1/fromdd" , lastDate.substr(0,4) + "0101");
- }
- model.setValue("/root/send/data1/todd" , lastDate.substr(0,4) + "1231");
- model.setValue("/root/send/data1/sum_flag" , "day");
-
- model.resetinstancenode("/root/main/patinfo/patinfolist");
- model.removeNodeset("/root/main/h_rcpt/rcpt");
- exeReportPreview("RPPAO02000", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "75");
-
- model.refresh();
- }
-
- //쓰지마세요
- function fSearch(){
- model.copynode("/root/main/ptbs" , "/root/main/patinfo/patinfolist");
- model.removeNodeset("/root/main/h_rcpt/rcpt");
- fSearch2();
- }
-
- function fSearch2(){
- // 특이환자 체크 (실사용)
- // if (!fCheckPatient(model.getvalue("/root/main/patinfo/patinfolist/pid"), "A")) {
- // return;
- // }
-
- model.setValue("/root/send/data1/pid", model.getvalue("/root/main/patinfo/patinfolist/pid"));
-
- //2011년도 이전데이터 제한추가 by 조중래 20130527
- if(model.getValue("/root/send/data1/fromdd") < "20110101"){
- messageBox("2011년 이전 데이터는 OCS프로그램에서 조회하시기 바랍니다. ", "E000");
- return;
- }
-
- submit("TRPAO02001");
- fCostSum();
-
- exeReportPreview("RPPAO02000", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "75");
-
- datagrid1.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 6, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 7, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 8, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 9, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 10, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 11, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- datagrid1.subtotal("sum", -1, 12, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
- }
-
- function fBaseCode(){
- //병원 오픈일자 가져오는 원무공통코드조회
- pamfGetCodeList(new Array("P1000"), new Array("/root/init/PAM/P1000list"));
- zbcfGetCodeList(new Array("Z0007"), new Array("/root/init/Z0007list"));
- }
-
- //로그인한 사용자 정보조회
- function fGetUserInfo2(){
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- model.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.setValue("/root/hidden/session/userid",userid);
- model.setValue("/root/hidden/session/usernm",usernm);
- model.setValue("/root/hidden/session/posinstcd",posinstcd);
- model.setValue("/root/hidden/session/posinstnm",posinstnm);
- }
-
-
- //총소득공제대상액
- function fCostSum(){
- var sum_incomeamt = 0;
- for(var a=1; a<=getNodesetCount("/root/main/h_rcpt/rcpt"); a++){
- sum_incomeamt = parseInt(model.getvalue("/root/main/h_rcpt/rcpt[" + a + "]/rcpt_allamt")) + sum_incomeamt;
- }
- model.makevalue("/root/main/incomeamt", sum_incomeamt);
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:375px; height:14px; ">연말정산영수증 출력(최종수정일 11/10 23:00)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <import id="import1" src="../../../pam/patinfomngtweb/xrw/SSPMC00100_인적사항.xrw" style="left:0px; top:0px; width:1195px; height:205px; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:209px; width:1194px; height:32px; "/>
- <caption id="caption7" class="search_name" style="left:10px; top:216px; width:65px; height:17px; ">병원</caption>
- <caption id="caption5" class="search_name" style="left:235px; top:216px; width:83px; height:17px; ">조회기준</caption>
- <select1 id="combo1" ref="/root/send/data1/instcd" class="combo_default" appearance="minimal" itemcount="30" style="left:70px; top:216px; width:150px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/Z0007list/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/send/data1/gijun" class="combo_default" appearance="minimal" itemcount="30" style="left:320px; top:216px; width:85px; height:19px; text-align:left; ">
- <choices>
- <item>
- <label>수납일자</label>
- <value>rcptdd</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:422px; top:216px; width:83px; height:17px; ">기준일자</caption>
- <input id="input5" ref="/root/send/data1/fromdd" class="input_default" autonext="false" inputtype="date" maxlength="12" style="left:510px; top:216px; width:85px; height:19px; text-align:left; "/>
- <input id="input3" ref="/root/send/data1/todd" class="input_default" autonext="false" inputtype="date" maxlength="12" style="left:620px; top:216px; width:85px; height:19px; text-align:left; "/>
- <line id="line12" class="line_1" style="x1:0px; y1:249px; x2:1194px; y2:249px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/h_rcpt/rcpt" caption="진료,조제일자^구분
(입원,외래)^진료비(약제비)내역^진료비(약제비)내역^진료비(약제비)내역^진료비(약제비)내역^진료비(약제비)내역^소득공제대상액^소득공제대상액^소득공제대상액^계정감면^임의감면^미수액|진료,조제일자^구분
(입원,외래)^총액^급여^급여^비급여^환자부담총액^카드^현금영수증^현금^계정감면^임의감면^미수액|진료,조제일자^구분
(입원,외래)^총액^보험자부담액^환자부담액^환자부담(급여)^환자부담총액^카드^현금영수증^현금^계정감면^임의감면^미수액" colsep="^" colwidth="140, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:0px; top:255px; width:1195px; height:485px; ">
- <col ref="rcpt_orddd"/>
- <col ref="rcpt_ordtype" style="text-align:center; "/>
- <col ref="rcpt_totamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_insuamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_ownpayamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_ownnopayamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_owntotamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_cardamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_cashamt_cash" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_cashamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_discamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_reduamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_uncoamt" format="(-)#,###" style="text-align:right; "/>
- </datagrid>
- <button id="btn_search2" class="btn1_letter2" style="left:1127px; top:214px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch2();
- ]]>
- </script>
- </button>
- <caption id="caption2" style="left:595px; top:219px; width:25px; height:15px; text-align:center; ">~</caption>
- <button id="btn_print" class="btn6_letter2" disable.background-image="../../../com/commonweb/images/dis_btn6_letter2.gif" style="left:1066px; top:214px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPAO02000", "XMLSTR", "", "", "true", "", "", "", "", "","", "", "", "", "", "1", "");
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/send/data1/sum_flag" appearance="full" cols="3" overflow="visible" style="left:775px; top:216px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일자별</label>
- <value>day</value>
- </item>
- <item>
- <label>월별</label>
- <value>month</value>
- </item>
- <item>
- <label>총합</label>
- <value>total</value>
- </item>
- </choices>
- </select1>
- <select id="checkbox1" ref="/root/main/protectyn" overflow="visible" appearance="full" style="left:950px; top:218px; width:90px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>주민번호보호</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line23" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_init" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1126px; top:5px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:122px; top:7px; width:724px; height:15px; color:#ff0000; ">* 연말정산 시 감면금액 포함여부는 원무공통코드(PK079)로 관리되며, 현금금액에 표시되나 현금영수증 발행의 대상은 되지않습니다.</caption>
- <button id="button1" class="btn3_letter6" style="left:10px; top:3px; width:104px; height:22px; ">
- <caption>감면내역조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var instcd = model.getValue("/root/send/data1/instcd");
- var pid = model.getValue("/root/send/data1/pid");
- var fromdd = model.getValue("/root/send/data1/fromdd");
- var todd = model.getValue("/root/send/data1/todd");
-
- if (pid == null || pid == "") {
- alert("조회대상이 선택되지 않았습니다.");
- return;
- } else if (fromdd == null || fromdd == "" || todd == null || todd == "") {
- alert("시작일자 및 종료일자는 반드시 입력해야합니다.");
- return;
- }
-
- setParameter("SPPAO02001_INSTCD", instcd);
- setParameter("SPPAO02001_PID", pid);
- setParameter("SPPAO02001_FROMDD", fromdd);
- setParameter("SPPAO02001_TODD", todd);
-
- open("SPPAO02001");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption3" class="search_name" style="left:720px; top:229px; width:60px; height:17px; ">구분</caption>
- </xhtml:body>
- </xhtml:html>
|