123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443 |
- <?xml version="1.0" encoding="UTF-16"?>
- <?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>
- <spherepathamtlist>
- <spherepathamtstats>
- <discunconm/>
- <cont/>
- <allamt/>
- <insubamt/>
- <ownbamt/>
- <rjtreduamt/>
- <ordreduamt/>
- <enuriamt/>
- <uncoamt/>
- <realamt/>
- <restamt/>
- <suppamt/>
- </spherepathamtstats>
- </spherepathamtlist>
- <search>
- <fromdata/>
- <todata/>
- <datagubun>ALL</datagubun>
- </search>
- <spherepathsumlist>
- <spherepathsumstats>
- <discunconm>총계</discunconm>
- <cont/>
- <allamt/>
- <insubamt/>
- <ownbamt/>
- <rjtreduamt/>
- <ordreduamt/>
- <enuriamt/>
- <uncoamt/>
- <realamt/>
- <restamt/>
- <suppamt/>
- </spherepathsumstats>
- </spherepathsumlist>
- <spherepathamtlistfull>
- <spherepathamtstatsfull>
- <discunconm>총계</discunconm>
- <rcptexecdd/>
- <pid/>
- <orddeptcd/>
- <insukind/>
- <hngnm/>
- <emplname/>
- <dutdeptnm/>
- <jobrespnm/>
- <totamt/>
- <insubamt/>
- <ownbamt/>
- <rjtreduamt/>
- <restamt/>
- <discamt/>
- <uncoamt/>
- <rcptamt/>
- <suppamt/>
- </spherepathamtstatsfull>
- </spherepathamtlistfull>
- <spherepathsumamtlistfull>
- <spherepathsumamtstatsfull>
- <discunconm>총계</discunconm>
- <rcptexecdd/>
- <pid/>
- <orddeptcd/>
- <insukind/>
- <hngnm/>
- <emplname/>
- <dutdeptnm/>
- <jobrespnm/>
- <totamt/>
- <insubamt/>
- <ownbamt/>
- <rjtreduamt/>
- <restamt/>
- <discamt/>
- <uncoamt/>
- <rcptamt/>
- <suppamt/>
- </spherepathsumamtstatsfull>
- </spherepathsumamtlistfull>
- </main>
- <send>
- <fromdata/>
- <todata/>
- <datagubun/>
- <erdata/>
- <dcgubun/>
- <discunconm/>
- </send>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- 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-1);
- model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
- input7.refresh();
- input1.refresh();
-
- datagrid1.explorerbar ="sort";
- ]]>
- </script>
- <submission id="TRPAS00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
- <submission id="TRPAS00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
- <submission id="TRPAS00133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
- <bind id="bind1" ref="/root/main/spherepathamtlist/spherepathamtstats" calculate="now() + ."/>
- <bind id="bind2" ref="/root/main/spherepathsumlist/spherepathsumstats/cont" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/cont);"/>
- <bind id="bind3" ref="/root/main/spherepathsumlist/spherepathsumstats/allamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/allamt);"/>
- <bind id="bind4" ref="/root/main/spherepathsumlist/spherepathsumstats/insubamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/insubamt);"/>
- <bind id="bind5" ref="/root/main/spherepathsumlist/spherepathsumstats/ownbamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/ownbamt);"/>
- <bind id="bind6" ref="/root/main/spherepathsumlist/spherepathsumstats/ordreduamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/ordreduamt);"/>
- <bind id="bind7" ref="/root/main/spherepathsumlist/spherepathsumstats/enuriamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/enuriamt);"/>
- <bind id="bind8" ref="/root/main/spherepathsumlist/spherepathsumstats/realamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/realamt);"/>
- <bind id="bind9" ref="/root/main/spherepathsumlist/spherepathsumstats/rjtreduamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/rjtreduamt);"/>
- <bind id="bind10" ref="/root/main/spherepathsumlist/spherepathsumstats/uncoamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/uncoamt);"/>
- <bind id="bind11" ref="/root/main/spherepathsumlist/spherepathsumstats/restamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/restamt);"/>
- <bind id="bind12" ref="/root/main/spherepathsumlist/spherepathsumstats/suppamt" calculate="sum(/root/main/spherepathamtlist/spherepathamtstats/suppamt);"/>
- <bind id="bind13" ref="/root/main/spherepathamtlistfull/spherepathamtstatsfull" calculate="now() + ."/>
- <bind id="bind14" ref="/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull/totamt" calculate="sum(/root/main/spherepathamtlistfull/spherepathamtstatsfull/totamt);"/>
- <bind id="bind15" ref="/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull/insubamt" calculate="sum(/root/main/spherepathamtlistfull/spherepathamtstatsfull/insubamt);"/>
- <bind id="bind16" ref="/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull/ownbamt" calculate="sum(/root/main/spherepathamtlistfull/spherepathamtstatsfull/ownbamt);"/>
- <bind id="bind17" ref="/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull/rjtreduamt" calculate="sum(/root/main/spherepathamtlistfull/spherepathamtstatsfull/rjtreduamt);"/>
- <bind id="bind18" ref="/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull/restamt" calculate="sum(/root/main/spherepathamtlistfull/spherepathamtstatsfull/restamt);"/>
- <bind id="bind19" ref="/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull/discamt" calculate="sum(/root/main/spherepathamtlistfull/spherepathamtstatsfull/discamt);"/>
- <bind id="bind20" ref="/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull/uncoamt" calculate="sum(/root/main/spherepathamtlistfull/spherepathamtstatsfull/uncoamt);"/>
- <bind id="bind21" ref="/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull/rcptamt" calculate="sum(/root/main/spherepathamtlistfull/spherepathamtstatsfull/rcptamt);"/>
- <bind id="bind22" ref="/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull/suppamt" calculate="sum(/root/main/spherepathamtlistfull/spherepathamtstatsfull/suppamt);"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRPAMCOM01");
- caption3.visible = false;
- cmb_discunconm.visible = false;
- ]]>
- </script>
- <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- <submission id="TRPAS00134" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/spherepathamtlistfull"/>
- </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">
- <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="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[
- 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.removeNodeset("/root/main/spherepathamtlist");
-
- if(swt_dispat.selectedIndex == "0") {
- var searchGubun = model.getValue("/root/send/datagubun");
- if(searchGubun=="ALL"){
- submit("TRPAS00131");
- }else if(searchGubun=="IN"){
- submit("TRPAS00132");
- }else if(searchGubun=="OUT"){
- submit("TRPAS00133");
- }
-
- //로드값이 있을때 엑셀저장여부 버튼 생성여부
- var nodelist = bind1.nodeset;
- if(nodelist.length>0){
- line1.visible =true;
- button95.visible = true;
- }else{
- line1.visible =false;
- button95.visible = false;
- }
-
- copyNodesetType("/root/main/spherepathamtlist/spherepathamtstats","/root/main/spherepathsumlist/spherepathsumstats","after");
- datagrid1.rebuild();
- }
- if(swt_dispat.selectedIndex == "1") {
- submit("TRPAS00134");
- //로드값이 있을때 엑셀저장여부 버튼 생성여부
- var nodelist = bind12.nodeset;
-
- copyNodesetType("/root/main/spherepathamtlistfull/spherepathamtstatsfull","/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull","after");
- datagrid3.rebuild();
- }
- }
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="7" inputtype="date" style="left:70px; 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="7" inputtype="date" style="left:215px; 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:435px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>ALL</value>
- </item>
- <item>
- <label>입원</label>
- <value>IN</value>
- </item>
- <item>
- <label>외래</label>
- <value>OUT</value>
- </item>
- </choices>
- </select1>
- <button id="button95" class="btn6_letter4" visibility="hidden" 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();
- if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
- if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
-
- //엑셀저장 여부()
- 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: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("RPPAS00131", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- <select1 id="cmb_discunconm" ref="/root/send/discunconm" appearance="minimal" style="left:641px; top:9px; width:270px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/disccd">
- <label ref="nm"/>
- <value ref="nm"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:545px; top:10px; width:95px; height:17px; ">할인계정 :</caption>
- <caption id="caption1" class="search_name" style="left:345px; top:10px; width:90px; height:17px; ">진료구분 :</caption>
- </group>
- <button id="button6" class="btn_sw" group="tab" selected="true" style="left:5px; top:65px; width:126px; height:22px; ">
- <caption>전체</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- caption3.visible = false;
- cmb_discunconm.visible = false;
- ]]>
- </script>
- </button>
- <button id="button7" class="btn_sw" group="tab" selected="false" style="left:130px; top:65px; width:126px; height:22px; ">
- <caption>개인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- caption3.visible = true;
- cmb_discunconm.visible = true;
-
- ]]>
- </script>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <switch id="swt_dispat" style="left:5px; top:85px; width:1195px; height:655px; ">
- <case id="case1" selected="true">
- <datagrid id="datagrid1" nodeset="/root/main/spherepathamtlist/spherepathamtstats" caption="계정명칭^건수^진료비총액^조합부담금^본인부담액^절사금액^자선금액^미수금^수납액^희귀/장애/수혈/건유비" colsep="^" colwidth="200, 100, 105, 105, 105, 100, 105, 105, 105, 140" rowheader="seq" rowsep="|" selected="true" style="left:0px; top:0px; width:1190px; height:645px; ">
- <col ref="discunconm" style="text-align:left; "/>
- <col ref="cont" format="(-)#,###" style="text-align:center; "/>
- <col ref="allamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="insubamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="ownbamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="restamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="enuriamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="realamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="suppamt" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- //더블클릭시, 개인별 조회
-
- var srow = datagrid1.row;
- if (srow <= 0 ) {
- srow = 1;
- }
- if (model.getValue("/root/main/spherepathamtlist/spherepathamtstats[" + srow + "]/discunconm") == "총계") {
- return;
- }
-
- model.setValue("/root/send/discunconm",model.getValue("/root/main/spherepathamtlist/spherepathamtstats[" + srow + "]/discunconm"));
-
- swt_dispat.selectedIndex = 1;
- button7.dispatch("onclick");
- model.refresh();
-
- submit("TRPAS00134");
-
- //로드값이 있을때 엑셀저장여부 버튼 생성여부
- var nodelist = bind12.nodeset;
- copyNodesetType("/root/main/spherepathamtlistfull/spherepathamtstatsfull","/root/main/spherepathsumamtlistfull/spherepathsumamtstatsfull","after");
- datagrid3.rebuild();
-
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="datagrid3" nodeset="/root/main/spherepathamtlistfull/spherepathamtstatsfull" caption="계정^수납일자^등록번호^진료과^보험유형^성명^직원성명^직원부서^직급^진료비총액^조합부담금^본인부담금^절사금액^자선금액^미수금액^수납액^희귀/장애/수혈/건유비" colsep="^" colwidth="211, 89, 87, 100, 89, 69, 76, 73, 71, 84, 87, 100, 100, 100, 100, 100, 140" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:1190px; height:630px; ">
- <col ref="discunconm"/>
- <col ref="rcptexecdd" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="orddeptcd"/>
- <col ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <col ref="hngnm"/>
- <col ref="emplname" visibility="hidden"/>
- <col ref="dutdeptnm" visibility="hidden"/>
- <col ref="jobrespnm" visibility="hidden"/>
- <col ref="totamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="insubamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="ownbamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="restamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
- <col ref="discamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="suppamt" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid2.rebuildStyle();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- </xhtml:body>
- </xhtml:html>
|