123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- <?xml version="1.0" encoding="UTF-16"?>
- <?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="">
- <send>
- <fromdd/>
- <todd/>
- <uncocd/>
- <endyn>all</endyn>
- <save/>
- </send>
- <main>
- <patinfo>
- <patinfolist>
- <pid/>
- </patinfolist>
- </patinfo>
- </main>
- <source>
- </source>
- <result/>
- <temp>
- </temp>
- <list>
- <uncolist/>
- </list>
- <init>
- <uncocd/>
- </init>
- </root>
- </instance>
- <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/init"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPAS00810" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list"/>
- <submission id="TXPAS00810" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
- </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/outordamtmngtweb/js/SMPAO00100.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/fromdd" , getCurrentDate());
- model.setValue("/root/send/todd" , getCurrentDate());
- zbcfGetCodeList( new Array("P0072","P0001","P0311"),
- new Array("/root/init_com/comncdlist/P0072list" //미수분류(개인,계약처)
- ,"/root/init_com/comncdlist/P0001list" //진료형태(입원,외래,응급)
- ,"/root/init_com/comncdlist/P0311list" //납부자정보
- ) );
-
- if (instance1.selectSingleNode("/root/init_com/comncdlist/P0072list") != null)
- {
- model.setValue("/root/init_com/comncdlist/P0072list/P0072/cdnm","-");
- model.setValue("/root/init_com/comncdlist/P0072list/P0072/cdid","-");
- }
-
- if (instance1.selectSingleNode("/root/init_com/comncdlist/P0001list") != null)
- {
- model.setValue("/root/init_com/comncdlist/P0001list/P0001/cdnm","전체");
- model.setValue("/root/init_com/comncdlist/P0001list/P0001/cdid","-");
- }
- submit("TRPAMCOM01");
- addComboItem( "cmd_uncocd" , "", "", "above" );
- model.refresh();
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="900" pageheight="784">
- <group id="group2" style="left:0px; top:23px; width:895px; height:37px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:885px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:825px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var Day = getDateInterval(model.getValue("/root/send/fromdd") , model.getValue("/root/send/todd") , "dd");
- // 조회기간이 1년 이상일시 미수구분을 필히 선택하게 함
- if(Day >= 365) {
- if(model.getValue("/root/send/uncocd") == ""){
- messageBox("미수구분을", "C002");
- return;
- }
- }
- submit("TRPAS00810");
- grd_uncolist.subtotal("sum", 1, 8, "#,###", "background-color:#99ff99", 6, "소계");
- grd_uncolist.subtotal("sum", 1, 9, "#,###", "background-color:#99ff99", 6, "소계");
- grd_uncolist.subtotal("sum", 1, 10, "#,###", "background-color:#99ff99", 6, "소계");
-
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" visibility="visible" style="x1:815px; y1:7px; x2:815px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption4" class="search_name" style="left:10px; top:10px; width:91px; height:17px; ">미수기간 :</caption>
- <input id="input1" ref="/root/send/fromdd" inputtype="date" style="left:102px; top:9px; width:105px; height:19px; "/>
- <caption id="caption1" style="left:210px; top:11px; width:20px; height:15px; text-align:center; ">~</caption>
- <input id="input2" ref="/root/send/todd" inputtype="date" style="left:230px; top:9px; width:105px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:350px; top:10px; width:91px; height:17px; ">미수구분 :</caption>
- <select1 id="cmd_uncocd" ref="/root/send/uncocd" appearance="minimal" style="left:440px; top:9px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="root/init/uncocd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="radio1" ref="/root/send/endyn" appearance="full" cols="2" overflow="visible" style="left:557px; top:11px; width:135px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>N</value>
- </item>
- <item>
- <label>0이 아닌것</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="group3" style="left:0px; top:0px; width:895px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">미수 조회및 출력</caption>
- </group>
- <caption id="caption2" class="tit_2" style="left:10px; top:66px; width:140px; height:14px; ">미수조회</caption>
- <button id="button1" class="btn2_letter2" style="left:774px; top:63px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPAS00760", "XMLSTR" , "" , "" , "false" , "", "", "", "", "", "", "");
- ]]>
- </script>
- </button>
- <datagrid id="grd_uncolist" nodeset="/root/list/uncolist" caption="미수번호^미수구분^진료일자^발생일자^등록번호^주민번호^성명^성별^총금액^수납금^미납금^비고^rcptdd^rcptno^rcptseqno^seqno" colsep="^" colwidth="80, 100, 85, 85, 80, 100, 70, 38, 80, 80, 80, 100, 45, 43, 37, 30" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:0px; top:85px; width:895px; height:675px; text-align:center; ">
- <col ref="uncono" type="input"/>
- <col disabled="true" ref="unconm"/>
- <col disabled="true" ref="orddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="rcptexecdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="pid"/>
- <col disabled="true" ref="rrgstno"/>
- <col disabled="true" ref="hngnm"/>
- <col disabled="true" ref="sex" visibility="hidden"/>
- <col disabled="true" ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col disabled="true" ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
- <col disabled="true" ref="uncorem" format="(-)#,###" style="text-align:right; "/>
- <col disabled="true" ref="remfact"/>
- <col ref="rcptdd" visibility="hidden"/>
- <col ref="rcptno" visibility="hidden"/>
- <col ref="rcptseqno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_uncolist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()) {
- var row = grd_uncolist.row;
-
- opener.javascript.setParameter("SMPAS00700_PID", model.getValue("/root/list/uncolist["+ row +"]/pid"));
-
- model.close();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter4" style="left:819px; top:63px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_uncolist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <group id="group1" style="left:0px; top:765px; width:895px; height:15px; "/>
- <button id="button3" class="btn5_letter6" style="left:683px; top:63px; width:86px; height:19px; ">
- <caption>미수번호저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_uncolist.row;
- model.copyNode("/root/send/save", "/root/list/uncolist["+row+"]");
- model.setValue("/root/send/save/uncono" , model.getValue("/root/list/uncolist["+row+"]/uncono"));
- model.refresh();
- if(submit("TXPAS00810")){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|