123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <healexamincm>
- <item>
- <rcptexecdd/>
- <cmpyflag/>
- <totcnt/>
- <mcnt/>
- <fcnt/>
- <totamt/>
- <discamt/>
- <cmpyamt/>
- <payinsubamt/>
- <ownuncoamt/>
- <cashamt/>
- <cardamt/>
- <mdlrcptamt/>
- <onlineamt/>
- </item>
- </healexamincm>
- <export/>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchinstcd/>
- <srchyear/>
- <srchmonth/>
- <srchhealexamflag/>
- <srchsuppdeptcd/>
- </send>
- <hidden>
- </hidden>
- <init>
- <baseinfo>
- <yearlst/>
- <monthlst/>
- <srchhealexamflag/>
- </baseinfo>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //건진구분 조회
- zbcfGetCodeList( new Array("A0068" ), new Array("/root/init/baseinfo/srchhealexamflag") );
-
- addComboItem("cmb_healexamflag","전체","%","above");
- cmb_healexamflag.select(0);
- // 기관코드 초기화
- model.setValue("/root/send/srchinstcd" , getUserInfo("posinstcd"));
-
- // 공통코드 조회
- zbcfGetCodeList( new Array("P0167","R0009"),
- new Array("/root/init/baseinfo/yearlst" ,"/root/init/baseinfo/monthlst" ) );
-
- // 일자초기화
- model.setValue("/root/send/srchyear" , getCurrentDate().substr(0,4));
- model.setValue("/root/send/srchmonth" , getCurrentDate().substr(4,2));
- cmb_year.dispatch("xforms-select");
-
- //부서코드 초기화
- model.setValue("/root/send/srchsuppdeptcd" , getUserInfo("dutplcecd"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <script type="javascript">
- <![CDATA[
- /*
- * 건진종류 소계 및 총계를 생성한다.
- */
- function fSetRcptSum1() {
- // 그리드 merge 및 합계 초기화
- grd_healexamincm.autoMerge = false;
- grd_healexamincm.mergeCells = "bycolrec";
-
- grd_healexamincm.subtotalPosition = "below";
- grd_healexamincm.multiTotals = true;
-
- grd_healexamincm.subtotal("clear", 0, 0);
- for(var i =0; i < grd_healexamincm.cols ; i++) {
- // 소계
- if(i >= grd_healexamincm.colRef("totamt") && i <= grd_healexamincm.colRef("mdlrcptamt")) {
- grd_healexamincm.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_healexamincm.colRef("rcptexecdd") , "월총계" );
- }
- // 화면 merge
- if( i == grd_healexamincm.colRef("rcptexecdd")) {
- grd_healexamincm.mergeCol(i) = true;
- }else{
- grd_healexamincm.mergeCol(i) = false;
- }
- }
- grd_healexamincm.merge();
- }
-
- /*
- * 일자 초기화 (srchfromdd , srchtodd)
- */
- function fDate(vYear , vMon) {
- var dd = new Date(vYear, vMon ,0);
- model.setValue("/root/send/srchfromdd" , vYear + vMon + "01");
- model.setValue("/root/send/srchtodd" , vYear + vMon + dd.getDate());
- }
-
- //총합계 항목 구분표시_2011.09.02 By 김금련
- function fSetRcptSum() {
- var idx = grd_healexamincm.rows;
- grd_healexamincm.rebuildStyle();
- for( var i=1 ; i < grd_healexamincm.rows; i++){
- var rcptexecdd =model.getValue("/root/main/healexamincm/item["+i +"]/rcptexecdd")
- if(rcptexecdd == "") {
- grd_healexamincm.rowstyle( i , "data", "background-color") = "#99ccff";
- grd_healexamincm.rowstyle( i , "data", "font-weight") = "bold";
- }
- }
- }
- ]]>
- </script>
- <submission id="TRAHS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/healexamincm"/>
- </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"/>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
- <group id="group3" style="left:0px; top:0px; width:1211px; 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="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="caption7" class="search_name" style="left:25px; top:9px; width:87px; height:17px; ">건진구분 :</caption>
- <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" navindex="1" appearance="minimal" style="left:115px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/srchhealexamflag/A0068">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:228px; top:9px; width:73px; height:17px; ">기간 :</caption>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="2" inputtype="date" style="left:295px; top:8px; width:105px; height:19px; "/>
- <caption id="caption93" class="search_n_b" style="left:406px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="input1" ref="/root/send/srchtodd" class="input_search" navindex="3" inputtype="date" style="left:423px; top:8px; width:105px; height:19px; "/>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:600px; top:11px; width:73px; height:17px; ">연도 :</caption>
- <select1 id="cmb_year" ref="/root/send/srchyear" visibility="hidden" appearance="minimal" style="left:665px; top:11px; width:60px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/yearlst/P0167">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fDate(cmb_year.value , cmb_month.value);
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:730px; top:10px; width:73px; height:17px; ">월 :</caption>
- <select1 id="cmb_month" ref="/root/send/srchmonth" visibility="hidden" appearance="minimal" style="left:780px; top:9px; width:55px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/monthlst/R0009">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fDate(cmb_year.value , cmb_month.value);
- ]]>
- </script>
- </select1>
- <button id="btn_dutyprnt" class="btn6_letter6" visibility="hidden" style="left:877px; top:7px; width:104px; height:22px; ">
- <caption>업무일지출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2011.01.13 c y w 건진센터 업무일지 출력기능, 서식 추가.
- if( grd_healexamincm.row != "" ) {
- //일계
- var totcnt = 0;
- var mcnt = 0;
- var fcnt = 0;
- var totamt = 0;
- var discamt = 0;
- var cmpyamt = 0;
- var ownuncoamt = 0;
- var cashamt = 0;
- var cardamt = 0;
- var mdlrcptamt = 0;
- var onlineamt = 0;
- // 월계
- var mtotcnt = 0;
- var mmcnt = 0;
- var mfcnt = 0;
- var mtotamt = 0;
- var mdiscamt = 0;
- var mcmpyamt = 0;
- var mownuncoamt = 0;
- var mcashamt = 0;
- var mcardamt = 0;
- var mmdlrcptamt = 0;
- var monlineamt = 0;
- var rcptexecdd = model.getValue("/root/main/healexamincm/item["+ grd_healexamincm.row +"]/rcptexecdd");
- for( var i = 1; i <= grd_healexamincm.rows-2; i++ ){
- if( rcptexecdd == model.getValue("/root/main/healexamincm/item["+ i +"]/rcptexecdd") ){
- //일계 Sum
- totcnt = totcnt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/totcnt"));
- mcnt = mcnt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/mcnt"));
- fcnt = fcnt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/fcnt"));
- totamt = totamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/totamt"));
- discamt = discamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/discamt"));
- cmpyamt = cmpyamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/cmpyamt"));
- ownuncoamt = ownuncoamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/ownuncoamt"));
- cashamt = cashamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/cashamt"));
- cardamt = cardamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/cardamt"));
- mdlrcptamt = mdlrcptamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/mdlrcptamt"));
- onlineamt = onlineamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/onlineamt"));
- }
- //월계 Sum
- if( "" != model.getValue("/root/main/healexamincm/item["+ i +"]/rcptexecdd") ){
- mtotcnt = mtotcnt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/totcnt"));
- mmcnt = mmcnt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/mcnt"));
- mfcnt = mfcnt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/fcnt"));
- mtotamt = mtotamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/totamt"));
- mdiscamt = mdiscamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/discamt"));
- mcmpyamt = mcmpyamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/cmpyamt"));
- mownuncoamt = mownuncoamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/ownuncoamt"));
- mcashamt = mcashamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/cashamt"));
- mcardamt = mcardamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/cardamt"));
- mmdlrcptamt = mmdlrcptamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/mdlrcptamt"));
- monlineamt = monlineamt + parseInt(model.getValue("/root/main/healexamincm/item["+ i +"]/onlineamt"));
- }
- }
- model.makeValue("/root/main/rexduty/rcptexecdd" , rcptexecdd );
- model.makeValue("/root/main/rexduty/totcnt" , totcnt );
- model.makeValue("/root/main/rexduty/mcnt" , mcnt );
- model.makeValue("/root/main/rexduty/fcnt" , fcnt );
- model.makeValue("/root/main/rexduty/totamt" , totamt );
- model.makeValue("/root/main/rexduty/discamt" , discamt );
- model.makeValue("/root/main/rexduty/cmpyamt" , cmpyamt );
- model.makeValue("/root/main/rexduty/ownuncoamt" , ownuncoamt );
- model.makeValue("/root/main/rexduty/cashamt" , cashamt );
- model.makeValue("/root/main/rexduty/cardamt" , cardamt );
- model.makeValue("/root/main/rexduty/mdlrcptamt" , mdlrcptamt );
- model.makeValue("/root/main/rexduty/onlineamt" , onlineamt );
-
- model.makeValue("/root/main/rexduty/mtotcnt" , mtotcnt );
- model.makeValue("/root/main/rexduty/mmcnt" , mmcnt );
- model.makeValue("/root/main/rexduty/mfcnt" , mfcnt );
- model.makeValue("/root/main/rexduty/mtotamt" , mtotamt );
- model.makeValue("/root/main/rexduty/mdiscamt" , mdiscamt );
- model.makeValue("/root/main/rexduty/mcmpyamt" , mcmpyamt );
- model.makeValue("/root/main/rexduty/mownuncoamt" , mownuncoamt );
- model.makeValue("/root/main/rexduty/mcashamt" , mcashamt );
- model.makeValue("/root/main/rexduty/mcardamt" , mcardamt );
- model.makeValue("/root/main/rexduty/mmdlrcptamt" , mmdlrcptamt );
- model.makeValue("/root/main/rexduty/monlineamt" , monlineamt );
- exeReportPreview("RPAHS00702", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- } else {
- messageBox("출력할 일자의 건진수입 정보를 선택 후","C003");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:986px; top:7px; width:80px; height:22px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_healexamincm.saveExcel(fileName, "SheetName", true, true, "", "", false);
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 매개변수
- model.makeValue("/root/main/export/srchfromdd", model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
- model.makeValue("/root/main/export/srchtodd", model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
- exeReportPreview("RPAHS00701", "XMLSTR", "/root/main/export","", "false","","","","","false");
- ]]>
- </script>
- </button>
- <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" navindex="4" style="left:1139px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ret = submit("TRAHS00701");
- if(ret) {
- fSetRcptSum();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_healexamincm" nodeset="/root/main/healexamincm/item" caption="일자^구분^총인원^남자인원^여자인원^총진료비^할인액^단체미수^공단미수^개인미수^현금수납^통장수납^카드수납^절사액^선수대체" colsep="^" colwidth="100, 50, 60, 60, 60, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:4px; top:65px; width:1203px; height:707px; text-align:center; ">
- <col ref="rcptexecdd" format="yyyy-mm-dd" style="font-weight:bold; text-align:center; "/>
- <col ref="cmpyflag"/>
- <col ref="totcnt"/>
- <col ref="mcnt"/>
- <col ref="fcnt"/>
- <col ref="totamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="discamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="cmpyamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="payinsubamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="ownuncoamt" visibility="hidden" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="cashamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="onlineamt" visibility="hidden" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="cardamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="restamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="mdlrcptamt" format="(-,+)#,###" style="text-align:right; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|