123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?xml version="1.0" encoding="UTF-16"?>
- <!--
- * 화면 : SMPAS00169_입원수입통계.xrw
- * 설명 : 입원수입통계.
- * 작성자 : 조영상
- * 작성일 : 2007/11/26
- -->
- <?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>
- <h_rcpt>
- <rcpt>
- <rcpt_rcptid/>
- <rcpt_rcptnm/>
- <rcpt_outamt_cash/>
- <rcpt_outamt_card/>
- <rcpt_mid/>
- <rcpt_unco/>
- <rcpt_uncr/>
- <rcpt_keep/>
- <rcpt_total/>
- <rcpt_cnt/>
- </rcpt>
- </h_rcpt>
- <h_rcpt2>
- <rcpt2>
- <col1/>
- <col2/>
- <col3/>
- </rcpt2>
- </h_rcpt2>
- <h_rcptnm>
- <rcptnm>
- <rcptnm/>
- </rcptnm>
- </h_rcptnm>
- </main>
- <send>
- <data1>
- <fromdd/>
- <tm_from/>
- <tm_to/>
- <rcpt_id/>
- <ordtype/>
- <rcpt_flag/>
- </data1>
- </send>
- <hidden>
- <session>
- <userid/>
- <usernm/>
- <posinstcd/>
- <posinstnm/>
- <dutplcecd/>
- <dutplcenm/>
- <dutinstnm/>
- </session>
- </hidden>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/receivamtlist/receivamtstats" calculate="now() + ."/>
- <bind id="bind2" ref="/root/main/receivamtsumlist/receivamtsumstats/uncnt" calculate="sum(/root/main/receivamtlist/receivamtstats/uncnt);"/>
- <bind id="bind3" ref="/root/main/receivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/receivamtlist/receivamtstats/uncoamt);"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- makeReportPreview(300,0,893,648,"case2");
-
- fInitialize();
-
- fGetUserInfo2();
-
- btn_all.selected = "true"; //입원전체수익통계로 기본세팅
- model.toggle("case1");
-
- //exeReportPreview("RPPAS01722", "XMLSTR", "", "", "false", "", "", "", "", "","", "case2", "", "", "", "1", "75");
-
- ]]>
- </script>
- <submission id="TRPAS00541" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/h_rcpt"/>
- <submission id="TRPAS00542" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/h_rcpt2"/>
- <submission id="TRPAS00543" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/h_rcptnm"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript">
- <![CDATA[
-
- //로그인한 사용자 정보조회
- function fGetUserInfo2(){
-
- var sUserInfosS = getUserInfos();
-
- sUserInfosS = sUserInfosS + "|";
- //alert("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.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.makeNode("/root/hidden/session/" + "dutplcecd");
- model.makeNode("/root/hidden/session/" + "dutplcenm");
- model.makeNode("/root/hidden/session/" + "dutinstnm");
- */
-
- 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 fInitialize() {
-
- model.removenodeset("/root/main/h_rcpt/rcpt");
- model.removenodeset("/root/main/h_rcpt2/rcpt2");
-
- model.setValue("/root/send/data1/fromdd", getCurrentDate()); // common.js에서 제공하는 함수를 사용하여 오늘 날짜를 구한다.
- model.setValue("/root/send/data1/tm_from", "0000");
- model.setValue("/root/send/data1/tm_to", "2400");
- model.setValue("/root/send/data1/rcpt_id", "");
- model.setValue("/root/send/data1/ordtype", "%");
- model.setValue("/root/send/data1/rcpt_flag", "");
-
- exeReportPreview("RPPAS00542", "XMLSTR", "", "", "false", "", "", "", "", "","", "case2", "", "", "", "1", "75");
- model.refresh();
- }
-
-
- function fSearch() {
-
- //입원전체수입통계
- if(switch1.selectedIndex == "0") {
- submit("TRPAS00541");
- exeReportPreview("RPPAS00541", "XMLSTR", "", "", "false", "", "", "", "", "","", "case1", "", "", "", "1", "75");
-
- grd_rcpt.subtotalPosition = "below";
-
- grd_rcpt.subtotal("sum", -1, 1, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- grd_rcpt.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- grd_rcpt.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- grd_rcpt.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- grd_rcpt.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- grd_rcpt.subtotal("sum", -1, 6, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- grd_rcpt.subtotal("sum", -1, 7, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- }
-
- //수납자별입원수입통계
- if(switch1.selectedIndex == "1") {
- submit("TRPAS00542");
- submit("TRPAS00543");
-
- grd_rcpt1.rebuildStyle();
- setRowStyle("grd_rcpt1" , "0" , "총계" , "col1", "equal" ); //총계 색깔 표시
-
- exeReportPreview("RPPAS00542", "XMLSTR", "", "", "false", "", "", "", "", "","", "case2", "", "", "", "0", "75");
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784">
- <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:215px; height:14px; font-family:돋움; vertical-align:middle; ">입원수입통계</caption>
- </group>
- <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:198px; height:17px; ">일자:</caption>
- <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSearch();
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/send/data1/fromdd" class="input_default" navindex="7" autonext="false" inputtype="date" style="left:75px; top:8px; width:85; height:19px; text-align:center; "/>
- <button id="button95" class="btn6_letter4" style="left:976px; top:7px; width:80px; height:22px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vToday = new Date();
- var tmpYear = vToday.getYear();
- var tmpMonth = vToday.getMonth()+1;
- var tmpDate = vToday.getDate();
-
- //
- // model.setValue("/root/documenttitle/title",document.title);
- // model.refresh();
- // var subjectTitle = model.getValue("/root/documenttitle/title");
-
- if(switch1.selectedIndex == "0") {
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, "입원전체수입통계"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rcpt2.saveExcel(fileName, "입원전체수입통계"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- }
-
- if(switch1.selectedIndex == "1") {
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, "수납자별입원수입통계"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rcpt1.saveExcel(fileName, "수납자별입원수입통계"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- }
-
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_print" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(switch1.selectedIndex == "0") {
- exeReportPreview("RPPAS00541", "XMLSTR", "", "", "true", "", "", "", "", "","", "case2", "", "", "", "1", "75");
-
- }
-
- if(switch1.selectedIndex == "1") {
- exeReportPreview("RPPAS00542", "XMLSTR", "", "", "true", "", "", "", "", "","", "case2", "", "", "", "1", "75");
- }
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/data1/tm_from" autonext="false" format="hh:nn" style="left:170px; top:8px; width:54px; height:19px; text-align:center; "/>
- <input id="input15" ref="/root/send/data1/tm_to" autonext="false" format="hh:nn" style="left:245px; top:8px; width:54px; height:19px; text-align:center; "/>
- <caption id="caption25" style="left:222px; top:10px; width:25px; height:14px; text-align:center; ">~</caption>
- <input id="input2" ref="/root/send/data1/rcpt_id" visibility="hidden" autonext="false" style="left:384px; top:8px; width:86px; height:19px; "/>
- <caption id="caption1" visibility="hidden" style="left:311px; top:9; width:64px; height:20px; font-weight:bold; ">수납자ID :</caption>
- <select1 id="radio1" ref="/root/send/data1/ordtype" appearance="full" cols="4" rows="1" overflow="visible" style="left:480px; top:10px; width:235px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>%</value>
- </item>
- <item>
- <label>입원</label>
- <value>I%</value>
- </item>
- <item>
- <label>응급</label>
- <value>E%</value>
- </item>
- <item>
- <label>DSC/CHEMO</label>
- <value>D%</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:19px; top:757px; width:1180px; height:27px; "/>
- <button id="btn_init" class="btn4_letter3" style="left:1129px; top:760px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:5px; top:87px; width:1200px; height:655px; ">
- <case id="case1">
- <datagrid id="grd_rcpt" nodeset="/root/main/h_rcpt/rcpt" caption="수납자^퇴원금^퇴원금^중간금^미수금^미수입금^보관금^합계^처리건수|수납자^현금^신용카드^중간금^미수금^미수입금^보관금^합계^처리건수" colsep="^" colwidth="100, 150, 150, 130, 130, 133, 130, 140, 95" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:5px; width:1185px; height:635px; ">
- <col ref="rcpt_rcptnm"/>
- <col ref="rcpt_outamt_cash" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_outamt_card" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_mid" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_unco" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_uncr" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_keep" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_total" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcpt_cnt" format="#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
-
- var temp = grd_rcpt.row -1;
- model.setvalue("/root/send/data1/rcpt_id", model.getvalue("/root/main/h_rcpt/rcpt["+temp+"]/rcpt_rcptid") );
- input2.refresh();
- btn_rcptid.dispatch("onclick");
- fSearch();
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2" selected="true">
- <datagrid id="grd_rcpt1" nodeset="/root/main/h_rcpt2/rcpt2" caption="항목^건수^금액" colsep="^" colwidth="109, 60, 117" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:7px; width:290px; height:641px; ">
- <col ref="col1" style="text-align:center; "/>
- <col ref="col2" type="input" style="text-align:center; "/>
- <col ref="col3" type="input" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //if(grd_rcpt1.col=="1" && grd_rcpt1.row=="4" ){
-
- var temp = 0;
-
- for(var a=1; a < 7 ; a++) {
- if(a!=7) {
- temp = parseInt(model.getvalue("/root/main/h_rcpt2/rcpt2["+a+"]/col2")) + temp;
- }
- }
- model.setvalue("/root/main/h_rcpt2/rcpt2[7]/col2" , temp);
- //}
-
-
- //if(grd_rcpt1.col=="2" && grd_rcpt1.row=="4" ){
-
- var temp = 0;
-
- for(var a=1; a < 7 ; a++) {
- if(a!=7) {
- temp = parseInt(model.getvalue("/root/main/h_rcpt2/rcpt2["+a+"]/col3")) + temp;
- }
- }
- model.setvalue("/root/main/h_rcpt2/rcpt2[7]/col3" , temp);
- //}
-
- exeReportPreview("RPPAS00542", "XMLSTR", "", "", "false", "", "", "", "", "","", "case2", "", "", "", "1", "75");
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
-
- if(grd_rcpt1.col=="0" ) {
- if(grd_rcpt1.row != "5" && grd_rcpt1.row != "9" && grd_rcpt1.row != "10" ){
-
- model.setvalue("/root/send/data1/rcpt_flag", model.getvalue("/root/main/h_rcpt2/rcpt2["+grd_rcpt1.row+"]/col1"));
- open("SMPAO00500" , "", "" , "" , "" , "/root/send/data1" , "/root/temp/rcpt/data1");
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case3"/>
- </switch>
- <button id="btn_rcptid" class="btn_sw" group="tab" style="left:165px; top:65px; width:160px; height:22px; ">
- <caption>2.수납자별 입원 수입통계</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- caption1.visible = true;
- input2.visible = true;
- exeReportPreview("RPPAS00542", "XMLSTR", "", "", "false", "", "", "", "", "","", "case2", "", "", "", "1", "75");
-
- ]]>
- </script>
- </button>
- <button id="btn_all" class="btn_sw" group="tab" style="left:5px; top:65px; width:160px; height:22px; ">
- <caption>1.전체 입원 수입통계</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- caption1.visible = false;
- input2.visible = false;
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|