123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <?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>
- <tacptlist>
- <tacptstats>
- <rsrvflag/>
- <etcflag/>
- <rsrvcnt/>
- <rsrvflagcd/>
- <etcflagcd/>
- </tacptstats>
- </tacptlist>
- <tacppatinfo>
- <patinfolist>
- <rsrvflag/>
- <etcflag/>
- <pid/>
- <hngnm/>
- <deptnm/>
- <orddrnm/>
- <orddd/>
- <fstacptnm/>
- <rsrv/>
- </patinfolist>
- </tacppatinfo>
- </main>
- <send>
- <search>
- <pid/>
- <fromdd/>
- <todd/>
- <sflag>A</sflag>
- <rsrvflag/>
- <etcflag/>
- <medamtestmyn/>
- </search>
- </send>
- <init>
- <pid/>
- <fromdd/>
- <todd/>
- <sflag>A</sflag>
- <medamtestmyn/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- var date = getCurrentDate();
- model.setValue("/root/init/fromdd", date);
- model.setValue("/root/init/todd" , date);
-
- input2.refresh();
- input3.refresh();
- grd_tacpt.explorerbar = "sort";
- grd_patinfo.explorerbar = "sort";
- ]]>
- </script>
- <bind id="bind1" ref="/root/main/tacptlist/tacptstats" calculate="now() + ."/>
- <bind id="bind2" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/tacptlist/tacptstats/uncocnt);"/>
- <bind id="bind3" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/tacptlist/tacptstats/uncoamt);"/>
- <bind id="bind4" ref="/root/main/inreceivamtlist/tacptstats" calculate="now() + ."/>
- <bind id="bind5" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/inreceivamtlist/tacptstats/uncocnt);"/>
- <bind id="bind6" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/inreceivamtlist/tacptstats/uncoamt);"/>
- <submission id="TRPMO02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/tacptlist"/>
- <submission id="TRPMO02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/tacppatinfo"/>
- </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="group1" 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:1200px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:245px; top:10px; width:200px; height:17px; ">기간</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1102px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/init/fromdd");
- var todd = model.getValue("/root/init/todd");
-
- if ( fromdd > todd ) {
- messageBox("시작일이 종료일 보다 클수 없습니다", "E999")
- return;
- } else {
- model.removeNodeset("/root/main/tacptlist/tacptstats");
- model.resetInstanceNode("/root/main/tacppatinfo/patinfolist");
- model.setValue("/root/send/search/pid",model.getValue("/root/init/pid"));
- model.setValue("/root/send/search/fromdd",model.getValue("/root/init/fromdd"));
- model.setValue("/root/send/search/todd",model.getValue("/root/init/todd"));
- model.setValue("/root/send/search/sflag",model.getValue("/root/init/sflag"));
- model.setValue("/root/send/search/medamtestmyn",model.getValue("/root/init/medamtestmyn"));
- submit("TRPMO02001");
- grd_tacpt.subtotalPosition = "below";
- grd_tacpt.subtotal("sum",-1,3,"#,###","background-color:#ffff99; color:#000000; ",1,"합계",false);
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" visibility="hidden" style="x1:1085px; y1:5px; x2:1085px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption4" class="search_name" style="left:42px; top:10px; width:50px; height:17px; ">기준</caption>
- <select1 id="combo1" ref="/root/init/sflag" appearance="minimal" style="left:100px; top:9px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>P</value>
- </item>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( combo1.value == "P" ) {
- caption1.value = '환자번호';
- input5.visible = true;
- input2.visible = false;
- input3.visible = false;
-
- } else if ( combo1.value == "A" ) {
- caption1.value = '기간';
- input5.visible = false;
- input2.visible = true;
- input3.visible = true;
- }
- ]]>
- </script>
- </select1>
- <input id="input2" ref="/root/init/fromdd" class="input_default" navindex="7" inputtype="date" style="left:365px; top:9px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
-
- var pCurTargetObj = event.ptarget.parent;
-
- if( pCurTargetObj.elementName == "xforms:btn_search" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }
- else {
-
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/init/todd" class="input_default" navindex="7" inputtype="date" style="left:475px; top:9px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( event.keyCode == 13 ) {
-
- var pCurTargetObj = event.ptarget.parent;
-
- if( pCurTargetObj.elementName == "xforms:btn_search" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }
- else {
-
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- ]]>
- </script>
- </input>
- <input id="input5" ref="/root/init/pid" visibility="hidden" style="left:365px; top:9px; width:135px; height:19px; "/>
- <select id="checkbox1" ref="/root/init/medamtestmyn" overflow="visible" appearance="full" style="left:885px; top:10px; width:120px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>진찰료산정제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </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_tacpt" nodeset="/root/main/tacptlist/tacptstats" caption="예약구분^기타구분^건수^예약코드^기타코드" colsep="^" colwidth="250, 560, 250, 50, 55" rowheader="seq" rowsep="|" style="left:5px; top:85px; width:1195px; height:320px; ">
- <col ref="rsrvflag"/>
- <col ref="etcflag"/>
- <col ref="rsrvcnt"/>
- <col ref="rsrvflagcd" visibility="hidden"/>
- <col ref="etcflagcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var rowIndex = 0;
-
- rowIndex = grd_tacpt.mouseRow;
-
- if((grd_tacpt.rows>1)&&(rowIndex>=1) && (rowIndex+1 !=grd_tacpt.rows)){
- var tacptcnt = grd_tacpt.valueMatrix(rowIndex, 3) ;
- var rsrvflag = grd_tacpt.valueMatrix(rowIndex, 4) ;
- var etcflag = grd_tacpt.valueMatrix(rowIndex, 5) ;
- if(tacptcnt >10000){
- messageBox("10000건 이상은 조회 할 수 없습니다. ", "E999")
- }
- else{
- model.setValue("/root/send/search/rsrvflag",rsrvflag) ;
- model.setValue("/root/send/search/etcflag",etcflag) ;
-
- model.removeNodeset("/root/main/tacppatinfo/patinfolist");
-
- submit("TRPMO02002");
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_patinfo" nodeset="/root/main/tacppatinfo/patinfolist" caption="예약구분^기타구분^등록번호^환자명^진료과^진료의^진료일^최초접수자^창구" colsep="^" colwidth="190, 170, 110, 120, 150, 120, 110, 120, 46" explorerbar="sort" rowheader="seq" rowsep="|" style="left:5px; top:440px; width:1195px; height:310px; ">
- <col ref="rsrvflag"/>
- <col ref="etcflag"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="deptnm"/>
- <col ref="orddrnm"/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fstacptnm"/>
- <col ref="rsrv"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:5px; y1:80px; x2:1200px; y2:80px; "/>
- <line id="line4" class="line_1" style="x1:5px; y1:435px; x2:1200px; y2:435px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:420px; width:160px; height:14px; ">개인별 가접수 현황</caption>
- <button id="button1" class="btn4_letter4" style="left:1120px; top:750px; width:70px; height:22px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //엑셀저장
- var fileName = window.fileDialog("save", "", false, "개인별가접수현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_patinfo.saveExcel(fileName, "개인별가접수현황", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter4" style="left:1120px; top:405px; width:80px; height:22px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //엑셀저장
- var fileName = window.fileDialog("save", "", false, "가접수현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_tacpt.saveExcel(fileName, "가접수현황", true, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <caption id="caption6" class="tit_2" style="left:5px; top:65px; width:160px; height:14px; ">가접수 현황</caption>
- </xhtml:body>
- </xhtml:html>
|