123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 |
- <?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">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <statinfo>
- <ret>
- <endflag/>
- <insukind/>
- <yesacccnt/>
- <yesaccamt/>
- <todaddcnt/>
- <todaddamt/>
- <todsubcnt/>
- <todsubamt/>
- <todacccnt/>
- <todaccamt/>
- </ret>
- </statinfo>
- <h_year>
- <year>
- <endflag/>
- <insukind/>
- <cnt_3/>
- <totamt_3/>
- <cnt_2/>
- <totamt_2/>
- <cnt_1/>
- <totamt_1/>
- <cnt_org/>
- <totamt_org/>
- <cnt_all/>
- <totamt_all/>
- </year>
- </h_year>
- </main>
- <send>
- <enddd/>
- <lastmondd/>
- <thismondd/>
- <year/>
- <year_org/>
- <year_1/>
- <year_2/>
- <year_3/>
- <gijun/>
- </send>
- <init/>
- <temp>
- <monthdd/>
- <insukind/>
- <ordtype/>
- <monthgubun/>
- </temp>
- <hidden>
- <session>
- <userid/>
- <usernm/>
- <posinstcd/>
- <posinstnm/>
- <dutplcecd/>
- <dutplcenm/>
- <dutinstnm/>
- </session>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 현재월을 Default로 넣어주기
- var currentMonth = getCurrentDate();
- model.setValue("/root/send/enddd", currentMonth);
- model.setValue("/root/send/year" , currentMonth);
- ipt_enddd.attribute("format") = "yyyy-mm";
-
- fGetUserInfo2();
-
- // 전월 말일, 당월 초일 세팅
- var temp = currentMonth.toDate("YYYYMMDD");
-
-
- temp.getAddDate(-1, "M");
- var lastmontemp = temp.getDateFormat();
-
-
- var lastmondd = lastmontemp.substr(0,6) + "10"; // DB에서 마지막날짜로 변환시켜줌
- var thismondd = currentMonth.substr(0,6) + "00";
-
-
-
- model.setValue("/root/send/lastmondd", lastmondd);
- model.setValue("/root/send/thismondd", thismondd);
- model.setValue("/root/send/gijun", "orddd");
-
- btn_insukind.dispatch("onclick");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRPAS01442" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statinfo"/>
- <submission id="TRPAS01443" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_year"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- //로그인한 사용자 정보조회
- 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]; //소속기관명
- var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
- var dutplcenm = UserInfosS_Array[5]; //근무지부서명
- var dutinstnm = UserInfosS_Array[7]; //근무지기관명
-
- 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);
- model.setValue("/root/hidden/session/dutplcecd",dutplcecd);
- model.setValue("/root/hidden/session/dutplcenm",dutplcenm);
- model.setValue("/root/hidden/session/dutinstnm",dutinstnm);
-
- }
-
- function fSearchPopup( i, j)
- {
- var col1=i;
- var row1=j;
- var ordtype="";
- var insukind="";
- var monthdd="";
- var strmonthgubun="";
-
- model.resetInstanceNode("/root/temp");
- //전월말
- if ((col1==2) || (col1==3) ){
- monthdd=model.getValue("/root/send/lastmondd");
- strmonthgubun="P";
- }
- //당월증가
- if ((col1==4) || (col1==5) ){
- monthdd=model.getValue("/root/send/thismondd");
- strmonthgubun="T";
- }
- //당월감소
- if ((col1==6) || (col1==7) ){
- monthdd=model.getValue("/root/send/thismondd");
- strmonthgubun="T";
- }
- //당월말
- if ((col1==8) || (col1==9) ){
- monthdd=model.getValue("/root/send/thismondd");
- strmonthgubun="K";
- }
-
- //보험
- if ((row1==2) || (row1==8) || (row1==14) ){
- insukind="11";
- }
- //급여
- if ((row1==3) || (row1==9) || (row1==15) ){
- insukind="2%";
- }
- //산재
- if ((row1==4) || (row1==10) || (row1==16) ){
- insukind="41";
- }
- //자보
- if ((row1==5) || (row1==11) || (row1==17) ){
- insukind="31";
- }
- //일반
- if ((row1==6) || (row1==12) || (row1==18) ){
- insukind="-";
- }
- //계
- if ((row1==7) || (row1==13) || (row1==19) ){
- insukind="%";
- }
-
- //입원
- if ((row1==2) || (row1==3) || (row1==4) || (row1==5) || (row1==6) || (row1==7) ){
- ordtype="I";
- }
- //외래
- if ((row1==8) || (row1==9) || (row1==10) || (row1==11) || (row1==12) || (row1==13) ){
- ordtype="O";
- }
- //합계
- if ((row1==14) || (row1==15) || (row1==16) || (row1==17) || (row1==18) || (row1==19) ){
- ordtype="%";
- }
- //alert(col1+","+row1);
- //alert("monthdd:"+ monthdd+" insukind: "+ insukind + "ordtype:"+ ordtype);
- model.setValue("/root/temp/monthdd",monthdd);
- model.setValue("/root/temp/insukind",insukind);
- model.setValue("/root/temp/ordtype",ordtype);
- model.setValue("/root/temp/monthgubun",strmonthgubun);
-
- if((monthdd!="") &&(insukind!="") && (ordtype!=""))
- {
- modal("SPPAS01441", "1", "100", "100" ,"SPPAS01441", "/root/temp", "/root/source");
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group3" style="left:0px; top:0px; width:1206px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">본인부담 의료미수금현황.</caption>
- </group>
- <group id="group4" style="left:0px; top:18px; width:1203px; height:40px; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1203px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:988px; top:10px; width:56px; height:22px; color:transparent; background-image:../../../com/commonweb/images/btn1_letter2.gif; border-color:transparent; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(switch1.selectedIndex == "0") {
-
- grd_statlist.rebuildStyle();
-
- // 전월 말일, 당월 초일 세팅
- var currentMonth = ipt_enddd.value;
- var temp = currentMonth.toDate("YYYYMM");
- temp.getAddDate(-1, "M");
- var lastmontemp = temp.getDateFormat();
- var lastmondd = lastmontemp.substr(0,6) + "10"; // DB에서 마지막날짜로 세팅해줌
- var thismondd = currentMonth.substr(0,6) + "00";
- model.setValue("/root/send/lastmondd", lastmondd);
- model.setValue("/root/send/thismondd", thismondd);
-
- submit("TRPAS01442");
-
- // 구분 셀병합
- for(var i = 1 ; i<10 ; i++){
- grd_statlist.mergecol(i) = false;
- }
- grd_statlist.mergecells = "bycol";
-
- grd_statlist.refresh();
-
- }
-
- if(switch1.selectedIndex == "1") {
-
- var grd_year_cap = model.getValue("/root/send/year").substr(0,4);
- var grd_year_1_cap = grd_year_cap - 1;
- var grd_year_2_cap = grd_year_cap - 2;
- var grd_year_3_cap = grd_year_cap - 3;
- var caption = "구분^급종^" + grd_year_3_cap + "^" + grd_year_3_cap + "^" + grd_year_2_cap + "^" + grd_year_2_cap + "^" + grd_year_1_cap + "^" + grd_year_1_cap + "^" + grd_year_cap + "^" + grd_year_cap + "^계^계|구분^급종^건^금액^건^금액^건^금액^건^금액^건^금액";
-
- grd_year.attribute("caption") = caption;
- grd_year.rebuild();
-
- //model.setValue("/root/send/year_org" , grd_year_cap);
- //model.setValue("/root/send/year_1" , grd_year_1_cap);
- //model.setValue("/root/send/year_2" , grd_year_2_cap);
- //model.setValue("/root/send/year_3" , grd_year_3_cap);
- //model.setValue("/root/send/gijun" , model.getValue("/root/send/gijun" ));
-
- submit("TRPAS01443");
-
- // 구분 셀병합
- for(var i = 1 ; i<12 ; i++){
- grd_year.mergecol(i) = false;
- }
- grd_year.mergecells = "bycol";
-
- grd_year.refresh();
-
- }
-
-
- ]]>
- </script>
- </button>
- <input id="ipt_enddd" ref="/root/send/enddd" class="input_default" navindex="7" visibility="visible" inputtype="date" style="left:90px; top:10px; width:90px; height:19px; "/>
- <button id="btn_excel" class="btn1_letter4" visibility="visible" disable.background-image="../../../com/commonweb/images/dis_btn6_letter4.gif" style="left:1049px; top:10px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter4.gif; ">
- <caption>EXCEL</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var enddd = model.getValue("/root/send/enddd");
- var year = model.getValue("/root/send/year_org");
-
- if(switch1.selectedIndex == "0") {
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", ",", false, "본인부담 의료미수금 현황("+enddd+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_statlist.saveExcel(fileName, "본인부담 의료미수금 현황("+enddd+")", false, false, "", "", false);
- }
-
- if(switch1.selectedIndex == "1") {
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", ",", false, "본인부담 의료미수금 현황_발생년도별("+year+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_year.saveExcel(fileName, "본인부담 의료미수금 현황_발생년도별("+year+")", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:10px; top:10px; width:98px; height:17px; ">조회기준</caption>
- <line id="line2" class="line_4" style="top:5px; x1:1046px; y1:9px; x2:1046px; y2:33px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button1" class="btn1_letter2" style="left:1131px; top:10px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(switch1.selectedIndex == "0") {
- // 본인부담 의료미수금 현황 출력
- exeReportPreview("RPPAO03100", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- }
-
- if(switch1.selectedIndex == "1") {
- // 본인부담 의료미수금 현황 출력(발생년도)
- exeReportPreview("RPPAO03101", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- }
-
-
- ]]>
- </script>
- </button>
- <input id="ipt_year" ref="/root/send/year" inputtype="date" format="yyyy" style="left:205px; top:10px; width:50; height:20px; "/>
- <select1 id="cmb_gijun" ref="/root/send/gijun" overflow="visible" appearance="full" cols="2" style="left:840px; top:12px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>진료일자</label>
- <value>orddd</value>
- </item>
- <item>
- <label>수납일자</label>
- <value>rcptexecdd</value>
- </item>
- </choices>
- </select1>
- </group>
- <switch id="switch1" style="left:0px; top:88px; width:1203px; height:662px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_statlist" nodeset="/root/main/statinfo/ret" class="datagrid2" caption="구분^급종^전월말^전월말^당월증가^당월증가^당월감소^당월감소^당월말^당월말|구분^급종^건^금액^건^금액^건^금액^건^금액" colsep="^" colwidth="98, 100, 75, 175, 75, 175, 75, 175, 75, 175" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:10px; width:1201px; height:650px; ">
- <col ref="endflag" style="text-align:center; vertical-align:middle; "/>
- <col ref="insukind" style="text-align:center; "/>
- <col ref="yesacccnt" style="text-align:right; padding-right:5; "/>
- <col ref="yesaccamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <col ref="todaddcnt" style="text-align:right; padding-right:5; "/>
- <col ref="todaddamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <col ref="todsubcnt" style="text-align:right; padding-right:5; "/>
- <col ref="todsubamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <col ref="todacccnt" style="text-align:right; padding-right:5; "/>
- <col ref="todaccamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //전월말(입원-보험)
- var i=grd_statlist.col;
- var j=grd_statlist.row;
-
- fSearchPopup(i,j);
-
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:0px; x2:1201; y2:0px; "/>
- </case>
- <case id="case2">
- <line id="line3" class="line_1" style="x1:0px; y1:0px; x2:1201; y2:0px; "/>
- <datagrid id="grd_year" nodeset="/root/main/h_year/year" class="datagrid2" caption="구분^급종^-^-^-^-^-^-^-^-^계^계|구분^급종^건^금액^건^금액^건^금액^건^금액^건^금액" colsep="^" colwidth="60, 60, 75, 125, 75, 125, 75, 125, 75, 125, 75, 125" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:1201px; height:650px; ">
- <col ref="endflag" style="text-align:center; vertical-align:middle; "/>
- <col ref="insukind" style="text-align:center; "/>
- <col ref="cnt_3" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="totamt_3" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <col ref="cnt_2" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="totamt_2" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <col ref="cnt_1" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="totamt_1" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <col ref="cnt_org" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="totamt_org" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- <col ref="cnt_all" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="totamt_all" format="(-)#,###" style="text-align:right; padding-right:5; "/>
- </datagrid>
- </case>
- </switch>
- <caption id="caption4" style="left:1101px; top:67px; width:100px; height:20px; font-weight:bold; text-align:right; ">(단위 : 원)</caption>
- <caption id="caption5" style="left:0px; top:752px; width:263px; height:20px; ">주) 응급실 : 6시간 이상(입원), 6시간 미만(외래)</caption>
- <button id="btn_insukind" class="btn_sw" group="tab" selected="true" style="left:0px; top:66px; width:80px; height:22px; ">
- <caption>급종별</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_enddd.visible = true;
- ipt_year.visible = false;
- cmb_gijun.visible = false;
-
- ipt_enddd.refresh();
- ipt_year.refresh();
- cmb_gijun.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_year" class="btn_sw" group="tab" selected="true" style="left:81px; top:66px; width:80px; height:22px; ">
- <caption>발생년도별</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ipt_year.attribute("left") = 90;
- ipt_enddd.visible = false;
- ipt_year.visible = true;
- cmb_gijun.visible = true;
-
- ipt_enddd.refresh();
- ipt_year.refresh();
- cmb_gijun.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|