123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- <?xml version="1.0" encoding="UTF-16"?>
- <!-- 화면 SMPAS00550_계정별미수금현황
- Remark : 입원, 외래 미수금 현황에서 계정별 미수현황으로 사용되며 메인으로도 사용이 된다.
- 개발자 : 이형재
- -->
- <?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>
- <receivamtlist>
- <receivamtstats>
- <uncocd/>
- <discunconm/>
- <uncnt/>
- <uncoamt/>
- </receivamtstats>
- </receivamtlist>
- <search>
- <fromdata/>
- <todata/>
- <ordergubun>ALL</ordergubun>
- <amtgubun>ALL</amtgubun>
- <daygubun>ALL</daygubun>
- <uncocdflag>ALL</uncocdflag>
- </search>
- <receivamtsumlist>
- <receivamtsumstats>
- <uncocd>총계</uncocd>
- <discunconm/>
- <uncnt/>
- <uncoamt/>
- </receivamtsumstats>
- </receivamtsumlist>
- <tmpinfo>
- <info>
- <user/>
- </info>
- </tmpinfo>
- <rcv>
- <uncocd/>
- </rcv>
- </main>
- <init>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- </init>
- <hidden>
- <tmp/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
-
- 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; }
-
- if(model.getValue("/root/main/search/fromdata") == ''){
- model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate-1);
- 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();
- datagrid2.explorerbar = "sort";
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function rcvSearchCond()
- {
-
-
- }
-
- ]]>
- </script>
- <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);"/>
- <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/tmpinfo/info/user"/>
- <submission id="TRPAS00550" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/search" replace="instance" resultref="/root/main/data1"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- </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" src="../../../pam/pamcomnweb/js/PAM.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:205px; 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.removeNodeset("/root/main/receivamtlist/receivamtstats");
-
- rcvSearchCond();
-
- var day = model.getValue("/root/main/search/daygubun");
-
- if(day == 4){
- datagrid2.colHidden(7) = true;
- datagrid2.colHidden(8) = true;
- datagrid2.colHidden(4) = false;
- datagrid2.colHidden(6) = false;
- }else if (day == 5){
- datagrid2.colHidden(4) = true;
- datagrid2.colHidden(6) = true;
- datagrid2.colHidden(7) = false;
- datagrid2.colHidden(8) = false;
- }else{
- datagrid2.colHidden(4) = false;
- datagrid2.colHidden(6) = false;
- datagrid2.colHidden(7) = false;
- datagrid2.colHidden(8) = false;
- }
-
-
-
- submit("TRPAS00550");
-
- //로드값이 있을때 엑셀저장여부 버튼 생성여부
- var nodelist = bind1.nodeset;
- if(nodelist.length>0){
- line1.visible =true;
- button95.visible = true;
- }else{
- line1.visible =false;
- button95.visible = false;
- }
- copyNodesetType("/root/main/receivamtlist/receivamtstats","/root/main/receivamtsumlist/receivamtsumstats","after");
- datagrid2.rebuild();
-
- var sumtotal = instance1.selectNodes("/root/main/receivamtlist/receivamtstats").length + datagrid2.fixedRows - 1;
-
- if(sumtotal ==""||sumtotal==null || sumtotal=="1"){
-
- }else{
- datagrid2.mergeByFree(sumtotal,1,sumtotal,2);
- }
-
- }
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="7" inputtype="date" style="left:75px; 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/ordergubun" appearance="minimal" style="left:435px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>ALL</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</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();
-
- //
- // 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: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("RPPAS00101", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:350px; top:9px; width:105px; height:17px; ">진료구분 :</caption>
- <caption id="caption3" class="search_name" style="left:550px; top:9px; width:105px; height:17px; ">금액구분 :</caption>
- <select1 id="combo2" ref="/root/main/search/amtgubun" appearance="minimal" style="left:635px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>ALL</value>
- </item>
- <item>
- <label>미수만</label>
- <value>6</value>
- </item>
- <item>
- <label>입금만</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:750px; top:9px; width:105px; height:17px; ">일자구분 :</caption>
- <select1 id="combo3" ref="/root/main/search/daygubun" appearance="minimal" style="left:835px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>ALL</value>
- </item>
- <item>
- <label>발생일자</label>
- <value>4</value>
- </item>
- <item>
- <label>수납일자</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="datagrid2" nodeset="/root/main/receivamtlist/receivamtstats" caption="등록번호^환자명^진료과^발생일자^본인부담액^미수발생액^입금액^입금일자^미수잔액^담당자^계정^계정명^" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 150" rowheader="seq" rowsep="|" style="left:0px; top:70px; width:1201px; height:705px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:right; "/>
- <col ref="totownbamt" format="#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="#,###" style="text-align:right; "/>
- <col ref="rcptamt" style="text-align:right; "/>
- <col ref="rcptexecdd" format="yyyy-mm-dd" style="text-align:right; "/>
- <col ref="restamt" format="#,###" style="text-align:right; "/>
- <col ref="usernm"/>
- <col ref="uncocd" style="text-align:center; "/>
- <col ref="discunconm" style="text-align:left; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|