123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <?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="">
- <main>
- <outhist>
- <outhistlist/>
- </outhist>
- </main>
- <send>
- <histstat/>
- <fromdd/>
- <todd/>
- <rsrvflag/>
- <orddeptcd/>
- <orddrid/>
- </send>
- <init>
- <orddeptcd/>
- <orddrid/>
- </init>
- <hidden/>
- <tmp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- // 기간 초기화
- 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/send/fromdd", tmpYear+""+tmpMonth+""+tmpDate);
- model.setValue("/root/send/todd", tmpYear+""+tmpMonth+""+tmpDate);
-
- // 선택 초기화
- model.setValue("/root/send/histstat", "R");
- model.refresh();
-
- // 그리드 초기화
- grd_sel1.visible = true;
- grd_sel2.visible = false;
-
- // 진료과, 의사 코드 초기화
- submit("TRPAM00101");
- model.copyNode("root/init/orddeptcd", "root/tmp/orddeptcd");
- model.copyNode("root/init/orddrid", "root/tmp/orddrid");
- model.removeNodeset("root/tmp");
- cmb_orddrid.disabled = true;
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/tmp"/>
- <submission id="TRPAS00164" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </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="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- // 출력
- function fPrintView() {
- var sel = model.getValue("/root/send/histstat");
- switch (sel) {
- case "1" :
- exeReportPreview("RPPID20701", "XML", "/root/send/prntinfo","", "false","","","","","false"); // 예약통계
- break;
- case "2" :
- exeReportPreview("RPPID20701", "XML", "/root/send/prntinfo","", "false","","","","","false"); // 변경통계
- break;
- case "3" :
- exeReportPreview("RPPID20700", "XML", "/root/send/prntinfo","", "false","","","","","false"); // 취소통계
- break;
- case "4" :
- exeReportPreview("RPPID20700", "XML", "/root/send/prntinfo","", "false","","","","","false"); // 부도자통계
- break;
- default :
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="2,770;">
- <datagrid id="grd_sel2" nodeset="/root/main/outhist/outhistlist" caption="진료과^초진부도자^초진부도율^재진부도자^재진부도율^합계^부도율" colsep="^" colwidth="300, 150, 140, 150, 140, 150, 140" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:75px; width:1200px; height:695px; ">
- <col ref="orddeptnm"/>
- <col ref="fstexamcnt"/>
- <col ref="fstexamrate"/>
- <col ref="reexamcnt"/>
- <col ref="reexamrate"/>
- <col ref="sumcnt"/>
- <col ref="sumrate"/>
- </datagrid>
- <datagrid id="grd_sel1" nodeset="/root/main/outhist/outhistlist" caption="진료과^초진^재진^합계" colsep="^" colwidth="300, 290, 290, 290" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:120px; width:1200px; height:695px; ">
- <col ref="orddeptnm"/>
- <col ref="fstexamcnt"/>
- <col ref="reexamcnt"/>
- <col ref="sumcnt"/>
- </datagrid>
- <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; font-family:돋움; vertical-align:middle; ">예약통계</caption>
- </group>
- <group id="group2" style="left:4px; top:22px; 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:295px; top:9px; width:210px; height:17px; ">기간 ~</caption>
- <line id="line2" class="line_4" style="x1:1130px; y1:7px; x2:1130px; 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 fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
- if (fromdd == "" || fromdd == null){
- messageBox("시작일을 입력","E007");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (todd == "" || todd == null){
- messageBox("종료일을 입력","E007");
- model.setFocus("ipt_todd");
- return false;
- }
- if(fromdd > todd){
- messageBox("시작일이 종료일보다 클수 ", "C001")
- return false;
- }else{
- model.removeNodeset("/root/main/outhist/outhistlist");
- submit("TRPAS00164");
- var sel = model.getValue("/root/send/histstat");
- if (sel == "T") {
- // 부도자
- grd_sel1.visible = false;
- grd_sel2.visible = true;
- } else {
- grd_sel1.visible = true;
- grd_sel2.visible = false;
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" navindex="7" inputtype="date" style="left:350px; top:9px; width:90px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_default" navindex="7" inputtype="date" style="left:460px; top:9px; width:90px; height:19px; "/>
- <select1 id="cmb_rsrvflag" ref="/root/send/rsrvflag" class="combo_search" navindex="14" appearance="minimal" style="left:632px; top:9px; width:95px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>0</value>
- </item>
- <item>
- <label>전화예약</label>
- <value>1</value>
- </item>
- <item>
- <label>인터넷예약</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:577px; top:9px; width:65px; height:17px; font-weight:bold; ">예약</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" navindex="14" appearance="minimal" style="left:820px; top:9px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var orddeptcd = model.getValue("/root/send/orddeptcd");
- if (orddeptcd) {
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp='" + orddeptcd + "']";
- cmb_orddrid.disabled = false;
- } else {
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist";
- cmb_orddrid.disabled = true;
- }
- model.resetInstanceNode("/root/send/orddrid"); // 주치의 선택을 초기화한다.
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:751px; top:9px; width:65px; height:17px; font-weight:bold; ">진료과</caption>
- <caption id="caption3" class="search_name" style="left:937px; top:9px; width:80px; height:17px; font-weight:bold; ">의사</caption>
- <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" navindex="14" appearance="minimal" style="left:993px; top:9px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:10px; top:9px; width:65px; height:17px; font-weight:bold; ">선택</caption>
- </group>
- <select1 id="rdo_histstat" ref="/root/send/histstat" class="radio_search" navindex="11" appearance="full" cols="4" overflow="visible" style="left:73px; top:32px; width:202px; height:19px; ">
- <choices>
- <item>
- <label>예약</label>
- <value>R</value>
- </item>
- <item>
- <label>변경</label>
- <value>C</value>
- </item>
- <item>
- <label>취소</label>
- <value>X</value>
- </item>
- <item>
- <label>부도자</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sel = model.getValue("/root/send/histstat");
- if (sel == "T") {
- // 부도자
- grd_sel1.visible = false;
- grd_sel2.visible = true;
- } else {
- grd_sel1.visible = true;
- grd_sel2.visible = false;
- }
- ]]>
- </script>
- </select1>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:762px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrintView();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|