감면할인현황
O 1 총계 총계 할인 소계 감면 소계
</documenttitle> </root> </instance> <submission id="TRPAS02111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/> <script type="javascript" ev:event="xforms-model-construct-done"> <![CDATA[ submit("TRPAS00001"); var vToday = new Date(); var tmpYear = vToday.getYear(); var tmpMonth = vToday.getMonth()+1; var tmpDate = vToday.getDate(); if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; } if (tmpDate < 10) {tmpDate = "0"+tmpDate; } model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate); model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate); //Rexport에 출력날자를 보여주기위한 데이터 저장 model.makeNode("/root/main/tmp/print/date"); model.copyNode("/root/main/tmp/print/date", "/root/main/search/fromdata"); model.setValue("/root/main/tmp/print/date", model.getValue("/root/main/search/fromdata")); input7.refresh(); input1.refresh(); //datagrid1.explorerbar = "sort"; //데이터 그리드 방합 datagrid1.mergeCells = "bycol"; datagrid1.mergeCol(0) = true; datagrid1.mergeCol(1) = false; datagrid1.mergeCol(2) = false; datagrid1.mergeCol(3) = false; datagrid1.mergeCol(4) = false; datagrid1.mergeCol(5) = false; datagrid1.mergeCol(6) = false; datagrid1.mergeCells = "byrowrec"; datagrid1.mergeCol(datagrid1.row) = false; datagrid1.merge(); ]]> </script> <bind id="bind1" ref="/root/main/dsumlist/dsumstats/cont" calculate="sum(/root/main/pamstatlist/pamstats/cont);"/> <bind id="bind2" ref="/root/main/dsumlist/dsumstats/allordamt" calculate="sum(/root/main/pamstatlist/pamstats/allordamt);"/> <bind id="bind3" ref="/root/main/dsumlist/dsumstats/discreduamt" calculate="sum(/root/main/pamstatlist/pamstats/discreduamt);"/> <bind id="bind4" ref="/root/main/pamstatlist/pamstats/discreducd" calculate="round(../discreduamt div ../allordamt * 100)"/> <bind id="bind5" ref="/root/main/pamstatlist/pamstats" calculate="now() + ."/> <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/tmpinfo/info/user"/> </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,1205;"> <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:22px; 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:221px; 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" navindex="3" style="left:1139px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; "> <caption>조회</caption> <script type="javascript" ev:event="DOMActivate"> <![CDATA[ var fromdata = model.getValue("/root/main/search/fromdata"); var todata = model.getValue("/root/main/search/todata"); if(fromdata==""||fromdata==null){ messageBox("시작일을 입력","E007"); model.setFocus("input7"); return false; } if(todata==""|| todata==null){ messageBox("끝일을 입력","E007"); model.setFocus("input1"); return false; } if(fromdata > todata){ messageBox("시작일이 끝일자보다 클수 ", "C001") return false; }else{ model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata")); model.setValue("/root/send/todata",model.getValue("/root/main/search/todata")); model.setValue("/root/send/datagubun",model.getValue("/root/main/search/datagubun")); model.setValue("/root/send/erdata",model.getValue("/root/main/search/erdata")); model.removeNodeset("/root/main/pamstatlist"); submit("TRPAS02111"); //로드값이 있을때 엑셀저장여부 버튼 생성여부 var nodelist = bind1.nodeset; if(nodelist.length>0){ line1.visible =true; button95.visible = true; }else{ line1.visible =false; button95.visible = false; } copyNodesetType("/root/main/pamstatlist/pamstats","/root/main/dsumlist/dsumstats","after"); datagrid1.rebuild(); var sumtotal = instance1.selectNodes("/root/main/pamstatlist/pamstats").length + datagrid1.fixedRows - 1; datagrid1.mergeByFree(sumtotal,0,sumtotal,1); } ]]> </script> <toggle case="case1" ev:event="onclick"/> </button> <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="1" inputtype="date" maxlength="8" style="left:98px; top:8px; width:120px; height:19px; "> <script type="javascript" ev:event="onkeydown"> <![CDATA[ if( event.keyCode == 13 ) { var pCurTargetObj = event.ptarget.parent; if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") { event.keyCode = 9; pCurTargetObj.dispatch("onkeydown"); } else { event.keyCode = 9; } } event.stopPropagation(); ]]> </script> </input> <input id="input1" ref="/root/main/search/todata" class="input_default" navindex="2" inputtype="date" maxlength="8" style="left:243px; top:8px; width:120px; height:19px; "> <script type="javascript" ev:event="onkeydown"> <![CDATA[ if( event.keyCode == 13 ) { var pCurTargetObj = event.ptarget.parent; if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") { event.keyCode = 9; pCurTargetObj.dispatch("onkeydown"); } else { event.keyCode = 9; } } event.stopPropagation(); ]]> </script> </input> <select1 id="combo1" ref="/root/main/search/datagubun" appearance="minimal" style="left:385px; top:8px; width:100px; height:19px; "> <choices> <item> <label>외래</label> <value>O</value> </item> <item> <label>입원</label> <value>I</value> </item> <item> <label>응급</label> <value>E</value> </item> </choices> </select1> <select1 id="radio1" ref="/root/main/search/erdata" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:505px; top:10px; width:130px; height:15px; font-weight:bold; border-style:none; "> <choices> <item> <label>마감</label> <value>1</value> </item> <item> <label>실Data</label> <value>2</value> </item> </choices> </select1> <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("RPPAS02111", "XMLSTR", "","", "false","","","","","false"); ]]> </script> </button> <button id="button95" class="btn6_letter4" visibility="hidden" style="left:971px; 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 != "") { datagrid1.saveExcel(fileName, "감면할인현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true); } ]]> </script> </button> <line id="line1" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/> </group> <datagrid id="datagrid1" nodeset="/root/main/pamstatlist/pamstats" allowuserresize="false" autoresize="false" caption="구분^구분^환자수^총진료비^할인감면금액^감면율^caption1^ |구분^구분^환자수^총진료비^할인감면금액^감면율^caption1" colsep="^" colwidth="197, 225, 190, 190, 190, 190" ellipsis="true" extendlastcol="false" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowsep="|" tooltip="true" style="left:4px; top:70px; width:1201px; height:704px; "> <col ref="discreduflag" style="text-align:center; "/> <col ref="discunconm" style="text-align:left; "/> <col ref="cont" format="(-)#,###" style="text-align:center; "/> <col ref="allordamt" format="(-)#,###" style="text-align:right; "/> <col ref="discreduamt" format="(-)#,###" style="text-align:right; "/> <col ref="discreducd" format="(-)#.### %" style="text-align:right; "/> </datagrid> </xhtml:body> </xhtml:html>