123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <?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/>
- <condd/>
- <fromst/>
- <tost/>
- <srchtype>R</srchtype>
- </send>
- <main>
- <patinfo>
- <patinfolist>
- <pid/>
- </patinfolist>
- </patinfo>
- </main>
- <source>
- </source>
- <result/>
- <temp>
- </temp>
- <list>
- <uncolist/>
- </list>
- <init>
- <uncocd/>
- </init>
- <listcount>
- <listcnt/>
- </listcount>
- <hidden>
- <seq/>
- </hidden>
- </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="TRPAS00812" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/listcount"/>
- <submission id="TRPAS00811" 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());
- model.setValue("/root/send/condd", 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:67px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:885px; height:65px; 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("TRPAS00811");
- 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:13px; top:35px; width:91px; height:17px; ">미수구분 :</caption>
- <select1 id="cmd_uncocd" ref="/root/send/uncocd" appearance="minimal" style="left:103px; top:35px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="root/init/uncocd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/send/endyn" visibility="visible" appearance="full" cols="2" overflow="visible" style="left:203px; top:37px; 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>
- <caption id="caption5" class="search_name" style="left:368px; top:35px; width:90px; height:17px; ">조회범위 :</caption>
- <select1 id="combo1" ref="/root/hidden/seq" appearance="minimal" style="left:460px; top:35px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/listcount/listcnt">
- <label ref="rowcount"/>
- <value ref="seq"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var seqv = model.getValue("/root/hidden/seq");
- var fromst = model.getValue("/root/listcount/listcnt[" + seqv + "]/fromst ");
- var tost = model.getValue("/root/listcount/listcnt[" + seqv + "]/tost ");
-
- model.setValue("/root/send/fromst", fromst);
- model.setValue("/root/send/tost", tost);
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:600px; top:10px; width:80px; height:17px; ">기준일 :</caption>
- <input id="input3" ref="/root/send/condd" inputtype="date" style="left:675px; top:10px; width:90px; height:19px; "/>
- <button id="button1" class="btn2_letter4" style="left:570px; top:35px; width:64px; height:19px; ">
- <caption>범위조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (submit("TRPAS00812") ) {
- messageBox("범위조회가 완료되었습니다. 조회범위를 선택하십시오.","I");
- }
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:368px; top:10px; width:87px; height:17px; ">조회구분 :</caption>
- <select1 id="combo2" ref="/root/send/srchtype" appearance="minimal" style="left:460px; top:10px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>수납일자</label>
- <value>R</value>
- </item>
- <item>
- <label>진료일자</label>
- <value>O</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:96px; width:140px; height:13px; ">미수조회</caption>
- <datagrid id="grd_uncolist" nodeset="/root/list/uncolist" caption="미수번호^미수구분^진료일자^수납일자^발생일자^등록번호^주민번호^성명^성별^미수금^미수입금^미납금^비고^rcptdd^rcptno^rcptseqno^seqno" colsep="^" colwidth="80, 100, 85, 100, 85, 80, 100, 70, 38, 80, 80, 80, 100, 45, 43, 37, 30" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:0px; top:115px; width:895px; height:645px; text-align:center; ">
- <col ref="uncono"/>
- <col disabled="true" ref="unconm"/>
- <col disabled="true" ref="orddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="rcptdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="orgrcptdd" 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:93px; 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; "/>
- <input id="input4" ref="/root/send/fromst" visibility="hidden" style="left:135px; top:90px; width:20px; height:19px; "/>
- <input id="input5" ref="/root/send/tost" visibility="hidden" style="left:160px; top:90px; width:25px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|