123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- <?xml version="1.0" encoding="UTF-16"?>
- <!--
- * 화면 : SMPAS00530_카드집계현황.xrw
- * 설명 : 카드집계현황.
- * 작성자 : 조영상
- * 작성일 : 2007/12/03
- -->
- <?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>
- <h_card>
- <card>
- <card_title/>
- <card_cardcmpycd/>
- <card_cnt_y/>
- <card_cardamt_y/>
- <card_cnt_c/>
- <card_cardamt_c/>
- </card>
- </h_card>
- </main>
- <send>
- <data1>
- <fromdd/>
- <tm_from/>
- <tm_to/>
- <rcpt_id/>
- <ordtype/>
- </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(0,0,0,0,"");
-
- fInitialize();
-
- fGetUserInfo2();
-
- ]]>
- </script>
- <submission id="TRPAS00531" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/h_card"/>
- </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_card/card");
-
- 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.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[
- submit("TRPAS00531");
-
- grd_card.subtotalPosition = "below";
-
- grd_card.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
- grd_card.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
- grd_card.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
- grd_card.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", false);
-
- model.refresh();
- ]]>
- </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");
-
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, "카드집계현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_card.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[
-
- exeReportPreview("RPPAS00531", "XMLSTR", "", "", "true", "", "", "", "", "","", "", "", "", "", "1", "");
-
- //exeReportPreview("RPPAS01711", "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" autonext="false" style="left:384px; top:8px; width:86px; height:19px; "/>
- <caption id="caption1" 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="3" rows="1" overflow="visible" style="left:480px; top:10px; width:140px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>%</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</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>
- <datagrid id="grd_card" nodeset="/root/main/h_card/card" caption="구분^카드종류^수납건수^수납금액^취소건수^취소금액" colsep="^" colwidth="134, 150, 140, 200, 139, 200" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:65px; width:1197px; height:686px; ">
- <col ref="card_title"/>
- <col ref="card_cardcmpycd"/>
- <col ref="card_cnt_y" format="#,###" style="text-align:right; "/>
- <col ref="card_cardamt_y" format="#,###" style="text-align:right; "/>
- <col ref="card_cnt_c" format="#,###" style="text-align:right; "/>
- <col ref="card_cardamt_c" format="#,###" style="text-align:right; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|