123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776 |
- <?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>
- <outreceivamtlist>
- <receivamtstats>
- <uncocd/>
- <discunconm/>
- <uncocnt/>
- <uncoamt/>
- </receivamtstats>
- </outreceivamtlist>
- <inreceivamtlist>
- <receivamtstats>
- <uncocd/>
- <discunconm/>
- <uncocnt/>
- <uncoamt/>
- </receivamtstats>
- </inreceivamtlist>
- <outsearch>
- <fromdd/>
- <todd/>
- <ordtype>O</ordtype>
- <creatflag>C</creatflag>
- <clinicgubun>A</clinicgubun>
- <uncocd/>
- <restyn>Y</restyn>
- <mainrestyn>Y</mainrestyn>
- </outsearch>
- <insearch>
- <fromdd/>
- <todd/>
- <ordtype>%</ordtype>
- <creatflag>C</creatflag>
- <uncocd/>
- <restyn>Y</restyn>
- <mainrestyn>Y</mainrestyn>
- </insearch>
- <outreceivamtsumlist>
- <receivamtsumstats>
- <uncocd>합계</uncocd>
- <discunconm/>
- <uncocnt/>
- <uncoamt/>
- </receivamtsumstats>
- </outreceivamtsumlist>
- <inreceivamtsumlist>
- <receivamtsumstats>
- <uncocd>합계</uncocd>
- <discunconm/>
- <uncocnt/>
- <uncoamt/>
- </receivamtsumstats>
- </inreceivamtsumlist>
- <tmpinfo>
- <info>
- <user/>
- </info>
- </tmpinfo>
- <outpsnuncoinfo>
- <psnuncolist>
- <uncocd/>
- <pid/>
- <hngnm/>
- <deptnm/>
- <orddd/>
- <rcptdd/>
- <uncoamt/>
- <restamt/>
- <rcptamt/>
- <discunconm/>
- <orddrnm/>
- <churchnm/>
- <clincstdyno/>
- <rcptexecdd/>
- <usernm/>
- </psnuncolist>
- </outpsnuncoinfo>
- <inpsnuncoinfo>
- <psnuncolist>
- <pid/>
- <hngnm/>
- <deptnm/>
- <rcptdd/>
- <uncoamt/>
- <rcptamt/>
- <rcptexecdd/>
- <restamt/>
- <usernm/>
- <uncocd/>
- <discunconm/>
- <orddrnm/>
- </psnuncolist>
- </inpsnuncoinfo>
- <sprcpuncospec>
- <sprcpunco/>
- </sprcpuncospec>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <datagubun/>
- <erdata/>
- <dcgubun/>
- <uncocd/>
- <newElement/>
- <data>
- <sorddd/>
- <stodd/>
- <suncocd/>
- </data>
- </send>
- </root>
- </instance>
- <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/outsearch/fromdd" , tmpYear+""+tmpMonth+""+tmpDate);
- model.setValue("/root/main/outsearch/todd" , tmpYear+""+tmpMonth+""+tmpDate);
-
- model.setValue("/root/main/insearch/fromdd" , tmpYear+""+tmpMonth+""+tmpDate);
- model.setValue("/root/main/insearch/todd" , tmpYear+""+tmpMonth+""+tmpDate);
-
- //Rexport에 출력날자를 보여주기위한 데이터 저장
- model.makeNode("/root/main/tmp/print/date");
- model.copyNode("/root/main/tmp/print/date", "/root/main/outsearch/fromdd");
- model.setValue("/root/main/tmp/print/date", model.getValue("/root/main/outsearch/fromdd"));
- model.setValue("/root/send/data/sorddd", getCurrentDate());
- model.setValue("/root/send/data/stodd", getCurrentDate());
-
- input7.refresh();
- input1.refresh();
- input4.refresh();
- input5.refresh();
- input2.refresh();
- input3.refresh();
- grd_outunco.explorerbar = "sort";
- grd_outuncolist.explorerbar = "sort";
- grd_inunco.explorerbar = "sort";
- grd_inuncolist.explorerbar = "sort";
- ]]>
- </script>
- <bind id="bind1" ref="/root/main/outreceivamtlist/receivamtstats" calculate="now() + ."/>
- <bind id="bind2" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncocnt);"/>
- <bind id="bind3" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncoamt);"/>
- <bind id="bind4" ref="/root/main/inreceivamtlist/receivamtstats" calculate="now() + ."/>
- <bind id="bind5" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncocnt);"/>
- <bind id="bind6" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncoamt);"/>
- <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/tmpinfo/info/user"/>
- <submission id="TRPAS00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/outsearch" replace="instance" resultref="/root/main/data1"/>
- <submission id="TRPAS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/insearch" replace="instance" resultref="/root/main/data1"/>
- <submission id="TRPAS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/outsearch" replace="instance" resultref="/root/main/data1"/>
- <submission id="TRPAS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/insearch" replace="instance" resultref="/root/main/data1"/>
- <submission id="TRPAS00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/sprcpuncospec"/>
- </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="group2" style="left:0px; top:23px; width:1205px; height:37px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:590px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:605px; top:0px; width:595px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:125px; top:10px; width:200px; height:17px; ">기간</caption>
- <button id="btn_search" class="btn1_letter2" style="left:535px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/main/outsearch/fromdd");
- var todd = model.getValue("/root/main/outsearch/todd");
-
- if ( fromdd > todd ) {
- messageBox("시작일이 종료일 보다 클수 ", "C001")
- return;
- } else {
- model.removeNodeset("/root/main/outreceivamtlist/receivamtstats");
-
- model.resetInstanceNode("/root/main/outpsnuncoinfo/psnuncolist");
-
- submit("TRPAS00100");
-
- copyNodesetType("/root/main/outreceivamtlist/receivamtstats","/root/main/outreceivamtsumlist/receivamtsumstats","after");
- grd_outunco.rebuild();
-
- var sumtotal = instance1.selectNodes("/root/main/outreceivamtlist/receivamtstats").length + grd_outunco.fixedRows - 1;
-
- if ( sumtotal =="" ||sumtotal == null || sumtotal == "1" ) {
-
- } else {
- grd_outunco.mergeByFree(sumtotal,1,sumtotal,2);
- }
-
- }
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/main/outsearch/fromdd" class="input_default" navindex="7" inputtype="date" style="left:180px; top:9px; width:90px; 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/outsearch/todd" class="input_default" navindex="7" inputtype="date" style="left:275px; top:9px; width:90px; 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/insearch/ordtype" appearance="minimal" style="left:1065px; top:9px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>%</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>DSC</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <line id="line1" class="line_4" visibility="hidden" style="x1:530px; y1:5px; x2:530px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:980px; top:10px; width:95px; height:17px; ">진료구분</caption>
- <select1 id="combo3" ref="/root/main/outsearch/creatflag" appearance="minimal" style="left:60px; top:9px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>발생</label>
- <value>C</value>
- </item>
- <item>
- <label>입금</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( combo3.value == "4" ) {
- combo2.value = "6";
- } else if ( combo3.value == "5" ) {
- combo2.value = "2";
- }
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:7px; top:10px; width:50px; height:17px; ">기준</caption>
- <caption id="caption7" class="search_name" style="left:370px; top:10px; width:115px; height:17px; ">진료완료</caption>
- <select1 id="combo4" ref="/root/main/outsearch/clinicgubun" appearance="minimal" style="left:447px; top:9px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>진료</label>
- <value>Y</value>
- </item>
- <item>
- <label>미진료</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/main/insearch/creatflag" appearance="minimal" style="left:665px; top:9px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>발생</label>
- <value>C</value>
- </item>
- <item>
- <label>입금</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( combo3.value == "4" ) {
- combo2.value = "6";
- } else if ( combo3.value == "5" ) {
- combo2.value = "2";
- }
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:610px; top:10px; width:50px; height:17px; ">기준</caption>
- <input id="input2" ref="/root/main/insearch/fromdd" class="input_default" navindex="7" inputtype="date" style="left:785px; top:9px; width:90px; 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>
- <caption id="caption10" class="search_name" style="left:733px; top:10px; width:55px; height:17px; ">기간</caption>
- <input id="input3" ref="/root/main/insearch/todd" class="input_default" navindex="7" inputtype="date" style="left:880px; top:9px; width:90px; 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>
- <line id="line2" class="line_4" visibility="hidden" style="x1:1135px; y1:7px; x2:1135px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button5" class="btn1_letter2" style="left:1140px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/main/insearch/fromdd");
- var todd = model.getValue("/root/main/insearch/todd");
-
- if ( fromdd > todd ) {
- messageBox("시작일이 종료일 보다 클수 ", "C001")
- return;
- } else {
- model.removeNodeset("/root/main/inreceivamtlist/receivamtstats");
-
- model.resetInstanceNode("/root/main/inpsnuncoinfo/psnuncolist");
-
- submit("TRPAS00101");
-
- copyNodesetType("/root/main/inreceivamtlist/receivamtstats","/root/main/inreceivamtsumlist/receivamtsumstats","after");
- grd_inunco.rebuild();
-
- var sumtotal = instance1.selectNodes("/root/main/inreceivamtlist/receivamtstats").length + grd_inunco.fixedRows - 1;
-
- if ( sumtotal =="" ||sumtotal == null || sumtotal == "1" ) {
-
- } else {
- grd_inunco.mergeByFree(sumtotal,1,sumtotal,2);
- }
-
- }
- ]]>
- </script>
- </button>
- </group>
- <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>
- <datagrid id="grd_outunco" nodeset="/root/main/outreceivamtlist/receivamtstats" caption="계정^계정명^건수^금액" colsep="^" colwidth="99, 218, 91, 132" rowheader="seq" rowsep="|" style="left:5px; top:85px; width:590px; height:320px; ">
- <col ref="uncocd" style="text-align:center; "/>
- <col ref="discunconm"/>
- <col ref="uncocnt" format="(-)#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var rowIndex = 0;
-
- rowIndex = grd_outunco.mouseRow;
- model.setValue("/root/main/outsearch/uncocd", grd_outunco.valueMatrix(rowIndex, 1) ) ;
-
- model.removeNodeset("/root/main/outpsnuncoinfo/psnuncolist");
-
- submit("TRPAS00102");
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_outuncolist" nodeset="/root/main/outpsnuncoinfo/psnuncolist" caption="계정^등록번호^환자명^진료과^진료의^진료일^발생일자^발생금액^잔액^입금금액^계정명^본당명^임상시험번호^센터명" colsep="^" colwidth="31, 55, 48, 78, 46, 67, 67, 70, 70, 70, 164, 70, 100, 127" explorerbar="sort" rowheader="seq" rowsep="|" style="left:5px; top:440px; width:590px; height:310px; ">
- <col ref="uncocd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="deptnm" style="text-align:left; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="restamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="discunconm" style="text-align:left; "/>
- <col ref="churchnm"/>
- <col ref="clincstdyno"/>
- <col ref="centcd"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:5px; y1:80px; x2:595px; y2:80px; "/>
- <line id="line4" class="line_1" style="x1:5px; y1:435px; x2:595px; y2:435px; "/>
- <caption id="caption6" class="tit_2" style="left:10px; top:65px; width:160px; height:14px; ">외래미수금 현황</caption>
- <caption id="caption5" class="tit_2" style="left:5px; top:420px; width:160px; height:14px; ">외래 개인별 미수 현황</caption>
- <button id="button1" class="btn4_letter4" style="left:515px; top:750px; 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 uncocd = model.getValue("/root/main/outsearch/uncocd");
- if(uncocd=="ALL"){
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, " 외래 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- }else{
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, uncocd + " 외래 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- }
-
- if (fileName != "")
- {
- if(uncocd=="ALL"){
- grd_outuncolist.saveExcel(fileName, "외래 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }else{
- grd_outuncolist.saveExcel(fileName, uncocd + " 외래 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_inunco" nodeset="/root/main/inreceivamtlist/receivamtstats" caption="계정^계정명^건수^금액" colsep="^" colwidth="99, 218, 91, 132" rowheader="seq" rowsep="|" style="left:605px; top:85px; width:590px; height:320px; ">
- <col ref="uncocd" style="text-align:center; "/>
- <col ref="discunconm"/>
- <col ref="uncocnt" format="(-)#,###" style="text-align:right; "/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var rowIndex = 0;
-
- rowIndex = grd_inunco.mouseRow;
- model.setValue("/root/main/insearch/uncocd", grd_inunco.valueMatrix(rowIndex, 1) ) ;
-
- model.removeNodeset("/root/main/inpsnuncoinfo/psnuncolist");
-
- submit("TRPAS00103");
-
- // model.makeNode("/root/main/search/uncocdflag");
- // model.setValue("/root/main/search/uncocdflag", datagrid2.valueMatrix(rowIndex, 1) ) ;
- // modal("SMPAS00550", "1","","", "SMPAS00550", "/root/main/search", "/root/main/search");
- ]]>
- </script>
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:610px; top:65px; width:160px; height:14px; ">입원미수금 현황</caption>
- <line id="line5" class="line_1" style="x1:605px; y1:80px; x2:1195px; y2:80px; "/>
- <button id="button2" class="btn4_letter4" style="left:515px; top:405px; 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 != "")
- {
- grd_outunco.saveExcel(fileName, "외래 미수금현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter4" style="left:1115px; top:405px; 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 != "")
- {
- grd_inunco.saveExcel(fileName, "입원 미수금현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter4" style="left:1115px; top:750px; 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 uncocd = model.getValue("/root/main/insearch/uncocd");
- if(uncocd=="ALL"){
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, " 입원 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- }else{
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, uncocd + " 입원 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- }
-
-
- if (fileName != "")
- {
- if(uncocd=="ALL"){
- grd_inuncolist.saveExcel(fileName, " 입원 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }else{
- grd_inuncolist.saveExcel(fileName, uncocd + " 입원 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:605px; top:420px; width:160px; height:14px; ">입원 개인별 미수 현황</caption>
- <line id="line6" class="line_1" style="x1:605px; y1:435px; x2:1195px; y2:435px; "/>
- <datagrid id="grd_inuncolist" nodeset="/root/main/inpsnuncoinfo/psnuncolist" caption="계정^등록번호^환자명^진료과^진료의^발생일자^발생금액^입금금액^잔액^계정명" colsep="^" colwidth="35, 58, 55, 95, 49, 67, 70, 70, 70, 164" explorerbar="sort" rowheader="seq" rowsep="|" style="left:605px; top:440px; width:590px; height:310px; ">
- <col ref="uncocd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="deptnm" style="text-align:left; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="restamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="discunconm" style="text-align:left; "/>
- </datagrid>
- <select id="checkbox1" ref="/root/main/outsearch/restyn" overflow="visible" appearance="full" style="left:175px; top:420px; width:65px; height:15px; color:#ff0000; border-style:none; ">
- <choices>
- <item>
- <label>잔액만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/main/insearch/restyn" overflow="visible" appearance="full" style="left:775px; top:420px; width:65px; height:20px; color:#ff0000; border-style:none; ">
- <choices>
- <item>
- <label>잔액만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/main/outsearch/mainrestyn" overflow="visible" appearance="full" style="left:160px; top:65px; width:65px; height:20px; color:#ff0000; border-style:none; ">
- <choices>
- <item>
- <label>잔액만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox4" ref="/root/main/insearch/mainrestyn" overflow="visible" appearance="full" style="left:765px; top:65px; width:65px; height:20px; color:#ff0000; border-style:none; ">
- <choices>
- <item>
- <label>잔액만</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button27" class="btn3_letter9" style="left:5px; top:750px; width:140px; height:22px; ">
- <caption>외래 처방내역 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // messageBox("외래 선처치 처방 리스트 입니다. 미수는 처방으로 생성하지 않으므로 미수금액은 차이가 있습니다.", "I999");
- //미수 조회 기간 및 미수 유형 가져 옴
- model.setValue("/root/send/data/sorddd", model.getValue("/root/main/outsearch/fromdd")) ;
- model.setValue("/root/send/data/stodd", model.getValue("/root/main/outsearch/todd")) ;
- var rowIndex = 0;
- rowIndex = grd_outunco.row;
- model.setValue("/root/send/data/suncocd", grd_outunco.valueMatrix(rowIndex, 1) ) ;
- submit("TRPAS00104");
- datagrid1.visible = "true";
- ]]>
- </script>
- </button>
- <input id="input4" ref="/root/send/data/sorddd" class="input_default" navindex="7" visibility="hidden" inputtype="date" style="left:305px; top:750px; width:90px; 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>
- <button id="button6" class="btn1_letter10" style="left:361px; top:405px; width:152px; height:22px; ">
- <caption>계정전체 개인별 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowIndex = 0;
-
- rowIndex = grd_outunco.mouseRow;
- model.setValue("/root/main/outsearch/uncocd", "ALL") ;
-
- model.removeNodeset("/root/main/outpsnuncoinfo/psnuncolist");
-
- submit("TRPAS00102");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn1_letter10" style="left:950px; top:405px; width:152px; height:22px; ">
- <caption>계정전체 개인별 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowIndex = 0;
-
- rowIndex = grd_inunco.mouseRow;
- model.setValue("/root/main/insearch/uncocd", "ALL") ;
-
- model.removeNodeset("/root/main/inpsnuncoinfo/psnuncolist");
-
- submit("TRPAS00103");
- ]]>
- </script>
- </button>
- <input id="input5" ref="/root/send/data/stodd" class="input_default" navindex="7" visibility="hidden" inputtype="date" style="left:396px; top:750px; width:90px; 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>
- <button id="button7" class="btn3_letter4" style="left:145px; top:750px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowIndex = 0;
- rowIndex = grd_outunco.row;
- var unconm = grd_outunco.valueMatrix(rowIndex, 2) ;
- if (getNodesetCount("/root/main/sprcpuncospec/sprcpunco") > 1) {
- var fileName = window.fileDialog("save", "", false, unconm+"처방내역"+ model.getValue("/root/send/data/sorddd"), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- datagrid1.saveExcel(fileName, unconm+"처방내역"+ model.getValue("/root/send/data/sorddd"), true, true, "", "", true);
- }
- } else {
- messageBox("처방 조회내역이 없습니다.", "I999");
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="btn3_letter4" style="left:225px; top:750px; width:80px; height:22px; ">
- <caption>창 닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/sprcpuncospec/sprcpunco");
- datagrid1.visible = "false";
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/sprcpuncospec/sprcpunco" visibility="hidden" caption="등록번호^성명^처방일자^발생일자^실시일자^처방코드^처방명^진료과^진료의^최초등록^최초등록과^처방입력구분^처방분류^선처치등록^미수액" colsep="^" colwidth="56, 56, 70, 70, 70, 74, 197, 74, 55, 56, 72, 84, 61, 70, 100" rowsep="|" style="left:5px; top:240px; width:1190px; height:510px; background-color:#dddddd; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpcd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="khngnm" style="text-align:center; "/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="orddrid" style="text-align:center; "/>
- <col ref="rgstrid" style="text-align:center; "/>
- <col ref="rgstdeptcd" style="text-align:center; "/>
- <col ref="prcpinptflag" style="text-align:center; "/>
- <col ref="prcpclscd" style="text-align:center; "/>
- <col ref="baseflag" style="text-align:center; "/>
- <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|