123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <reservationstatistic>
- <reservationstatisticlist/>
- </reservationstatistic>
- <changestatistic>
- <changestatisticlist/>
- </changestatistic>
- <cancelstatistic>
- <cancelstatisticlist/>
- </cancelstatistic>
- <telstatisticnum>
- <telstatisticnumlist/>
- </telstatisticnum>
- <breakstatistic>
- <breakstatisticlist/>
- </breakstatistic>
- <result/>
- <popupendflag/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <orddept/>
- <orddr/>
- <statisticgooboon/>
- <department/>
- <teldept/>
- <coopdept/>
- </send>
- <init>
- <comncdlist>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P0021list>
- <P0021>
- <cdnm/>
- <cdid/>
- </P0021>
- </P0021list>
- <P0341list>
- <P0341>
- <cdnm/>
- <cdid/>
- </P0341>
- </P0341list>
- <P0022list>
- <P0022>
- <cdnm/>
- <cdid/>
- </P0022>
- </P0022list>
- <P0020list>
- <P0020>
- <cdnm/>
- <cdid/>
- </P0020>
- </P0020list>
- <P0029list>
- <P0029>
- <cdnm/>
- <cdid/>
- </P0029>
- </P0029list>
- <P0344list>
- <P0344>
- <cdnm/>
- <cdid/>
- </P0344>
- </P0344list>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- </comncdlist>
- <orddeptcd>
- <orddeptcdlist>
- <nm/>
- <cd/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- <rsrvdeptcd>
- <rsrvdeptcdlist>
- <cdid/>
- <cdnm/>
- </rsrvdeptcdlist>
- </rsrvdeptcd>
- </init>
- <hidden>
- </hidden>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </source>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
-
- zbcfGetCodeList(new Array("P0008","P0021","P0341","P0022","P0020","P0029","P0344", "P0010"),
- new Array("/root/init/comncdlist/P0008list","/root/init/comncdlist/P0021list","/root/init/comncdlist/P0341list","/root/init/comncdlist/P0022list","/root/init/comncdlist/P0020list"
- ,"/root/init/comncdlist/P0029list","/root/init/comncdlist/P0344list", "/root/init/comncdlist/P0010list"));
-
- //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
- //초기화 및 날자 입력 항목에 오늘 날자 세팅
- fInitialize();
-
- model.makeNode("/root/init/temp/orddeptcd/orddeptcdlist/cd");
- model.makeNode("/root/init/temp/orddeptcd/orddeptcdlist/nm");
- copyNodesetType("/root/init/orddeptcd/orddeptcdlist", "/root/init/temp/orddeptcd/orddeptcdlist", "before");
-
- model.makeNode("/root/init/temp/orddrid/orddridlist/cd");
- model.makeNode("/root/init/temp/orddrid/orddridlist/nm");
- copyNodesetType("/root/init/orddrid/orddridlist", "/root/init/temp/orddrid/orddridlist", "before");
- model.refresh();
-
- if (checkOpener()){ //팝업화면으로 사용될 때
-
- model.setValue("/root/send/pid", opener.javascript.getParameter("pid"));
- model.setValue("/root/send/hngnm", opener.javascript.getParameter("hngnm"));
- model.setValue("/root/send/rrgstno1", opener.javascript.getParameter("rrgstno1"));
- model.setValue("/root/send/rrgstno2", opener.javascript.getParameter("rrgstno2"));
- model.setValue("/root/send/fromdd", opener.javascript.getParameter("orddd"));
- model.setValue("/root/send/todd", opener.javascript.getParameter("orddd"));
- model.setValue("/root/send/orddept", opener.javascript.getParameter("orddeptcd"));
- model.setValue("/root/send/orddr", opener.javascript.getParameter("orddrid"));
- model.setValue("/root/send/specordyn", opener.javascript.getParameter("specordyn"));
- model.setValue("/root/send/rsrvflag", opener.javascript.getParameter("rsrvflag"));
- model.setValue("/root/send/insukind", opener.javascript.getParameter("insukind"));
- model.setValue("/root/send/acptdd", opener.javascript.getParameter("acptdd"));
- model.setValue("/root/send/acptno", opener.javascript.getParameter("acptno"));
- model.setValue("/root/send/tablename", opener.javascript.getParameter("tablename"));
- //var array_parm = SMPMO00200_PARM.split("▦");
-
- swt_outpatient.selectedIndex = 2;
- button1.dispatch("DOMActivate");
- }
- //예약 통계 관련 부서코드 조회
- GetGetRsrvDeptCD();
-
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMO01500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reservationstatistic"/>
- <submission id="TRPMO01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/telstatisticnum"/>
- <submission id="TRPMO01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/breakstatistic"/>
- <submission id="TRPMO01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rsrvdeptcd"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fCheckSearchValues(){
-
- if( model.getValue("/root/send/pid") != '' || model.getValue("/root/send/hngnm") != '' || model.getValue("/root/send/rrgstno1") != '' ||
- model.getValue("/root/send/rrgstno2") != '' || model.getValue("/root/send/fromdd") != '' || model.getValue("/root/send/todd") != '' ||
- model.getValue("/root/send/orddept") != '' || model.getValue("/root/send/orddr") != '' || model.getValue("/root/send/statisticgooboon") != '' ||
- model.getValue("/root/send/department") != '' ){
-
- return true;
-
- }else{
-
- return false;
- }
- }
-
- function fInitialize() {
-
- model.resetInstanceNode("/root/send");
-
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
-
- curDate = curDate.toDate().getAddDate(-1,"D");
- var nextDate = curDate.getFullYear();
- nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
- nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
-
- model.setValue("/root/send/fromdd", nextDate);
- model.setValue("/root/send/todd", nextDate);
-
- cmb_department.select(0);
- //statistic_gooboon.select(0);
-
- model.setValue("/root/send/statisticgooboon", '1');
- cmb_department.disabled = false;
-
- model.refresh();
- }
- function fSearch(){
-
- if( model.getValue("/root/main/popupendflag") == "ok" ){
- //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
- model.makeNode("/root/hidden/tmpnode");
- model.copyNode("/root/hidden/tmpnode", "/root/main/patinfo");
-
- //보험/감면/진료기록/신생하*산모내역 조회
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- submit("TRPMC01401");
- //model.makeNode("/root/main/popupendflag");
- }
- }
- function searchdepart(){
-
-
- for(var i=1; i<grd_reservationstatistic.rows ; i++){
- var tmpdepart = grd_reservationstatistic.valueMatrix(i , 1) ;
- var index =0;
- while(tmpdepart != (model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/cd") ) ){
- index++;
- if(index > 300) break;
- }
- if(model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") ==""){
- messageBox("부서명과 " +model.getValue("/root/main/reservationstatistic/reservationstatisticlist["+i+"]/orddeptcd") +"이", "E004")
- }else if(model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") !="") {
- model.setValue("/root/main/reservationstatistic/reservationstatisticlist[" +i+"]/orddeptcd",
- model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") );
- }
- }
- }
-
- function GetGetRsrvDeptCD(){
- submit("TRPMO01504");
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">전화예약통계</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // model.resetInstanceNode("/root/send");
- // model.resetInstanceNode("/root/main/patinforgst/patinforgstlist");
- //
- // var curDate = getCurrentDate();
- // model.setValue("/root/send/fromdd", curDate);
- // model.setValue("/root/send/todd", curDate);
- //
- // model.refresh();
-
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group6" style="left:0px; top:85px; width:1195px; height:655px; ">
- <switch id="swt_outpatient" style="left:0px; top:25px; width:1194px; height:625px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case2"/>
- <case id="case_reservation">
- <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
- <button id="btn_updtexcel" class="btn2_letter4" style="left:1123px; top:3px; 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_reservationstatistic.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <datagrid id="grd_reservationstatistic" nodeset="/root/main/reservationstatistic/reservationstatisticlist" class="datagrid1" caption="진료과^초진^재진^합계^caption1^최종수정일시" colsep="^" colwidth="260, 300, 300, 300, 100" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:30px; width:1182px; height:577px; text-align:center; ">
- <col ref="orddeptcd"/>
- <col ref="fstord"/>
- <col ref="reord"/>
- <col ref="sum"/>
- <col ref="subtotal" visibility="hidden"/>
- </datagrid>
- </case>
- <case id="case_change">
- <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
- <button id="btn_cnclexcel" class="btn2_letter4" style="left:1123px; top:3px; 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_change.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <datagrid id="grd_change" nodeset="/root/main/reservationstatistic/reservationstatisticlist" class="datagrid2" visibility="visible" caption="진료과^초진^재진^합계^caption1" colsep="^" colwidth="260, 300, 300, 300, 100" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:30px; width:1182px; height:577px; ">
- <col ref="orddeptcd"/>
- <col ref="fstord"/>
- <col ref="reord"/>
- <col ref="sum"/>
- <col ref="subtotal" visibility="hidden"/>
- </datagrid>
- </case>
- <case id="case_cancel">
- <button id="button2" class="btn2_letter4" style="left:1123px; top:3px; 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_cancel.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <datagrid id="grd_cancel" nodeset="/root/main/reservationstatistic/reservationstatisticlist" class="datagrid1" caption="진료과^초진^재진^합계^caption1^최종수정일시" colsep="^" colwidth="260, 300, 300, 300, 100" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:30px; width:1182px; height:577px; text-align:center; ">
- <col ref="orddeptcd"/>
- <col ref="fstord"/>
- <col ref="reord"/>
- <col ref="sum"/>
- <col ref="subtotal" visibility="hidden"/>
- </datagrid>
- </case>
- <case id="case_break">
- <line id="line10" class="line_1" style="x1:0px; y1:25px; x2:1183px; y2:25px; "/>
- <button id="btn_rgstexcel" class="btn2_letter4" style="left:1118px; top:3px; 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_break.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <datagrid id="grd_break" nodeset="/root/main/breakstatistic/breakstatisticlist" class="datagrid2" caption="진료과^초진예약^초진부도자^초진부도율(%)^재진예약^재진부도자^재진부도율(%)^예약합계^부도자합계^부도율(%)^caption1" colsep="^" colwidth="165, 100, 100, 130, 100, 100, 130, 100, 150, 180, 100" dataheight="23" defaultrows="2" ellipsis="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1182px; height:577px; text-align:center; ">
- <col ref="orddeptcd"/>
- <col disabled="true" ref="freserve" style="text-align:center; "/>
- <col disabled="true" ref="fstord" style="text-align:center; "/>
- <col disabled="true" ref="fstordrate" style="text-align:center; "/>
- <col disabled="true" ref="rereserve" style="text-align:center; "/>
- <col disabled="true" ref="reord" style="text-align:center; "/>
- <col disabled="true" ref="reordrate" style="text-align:center; "/>
- <col disabled="true" ref="tmpsumreserve" visibility="hidden"/>
- <col disabled="true" ref="sum" style="text-align:center; "/>
- <col disabled="true" ref="sumrate" style="text-align:center; "/>
- <col disabled="true" ref="subtotal" visibility="hidden"/>
- </datagrid>
- </case>
- <case id="case_tel" selected="true">
- <datagrid id="datagrid1" nodeset="/root/main/telstatisticnum/telstatisticnumlist" class="datagrid2" caption="사용자^합계^초진예약^재진예약^초진변경^재진변경^초진취소^재진취소^subtotal" colsep="^" colwidth="159, 160, 140, 140, 140, 140, 140, 140, 100" dataheight="23" defaultrows="2" ellipsis="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1182px; height:577px; text-align:center; ">
- <col ref="lastupdtrid"/>
- <col ref="sum"/>
- <col disabled="true" ref="fstord"/>
- <col disabled="true" ref="reord"/>
- <col disabled="true" ref="fstchanage"/>
- <col ref="rechange"/>
- <col ref="fstcancel"/>
- <col ref="recancel"/>
- <col ref="subtotal" visibility="hidden"/>
- </datagrid>
- <button id="button3" class="btn2_letter4" style="left:1123px; top:3px; 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 != "")
- {
- datagrid1.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
-
- ]]>
- </script>
- </button>
- </case>
- </switch>
- </group>
- <group id="group5" style="left:0px; top:10px; width:1195px; height:75px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:75px; "/>
- <button id="button1" class="btn1_letter2" style="left:1122px; top:25px; 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");
- var orddept = model.getValue("/root/send/orddept");
- var orddr = model.getValue("/root/send/orddr");
-
- var cnt = getNodesetCount("/root/init/rsrvdeptcd/rsrvdeptcdlist");
-
- //1은 전화예약 2은 의료협력
- for( var i = 1; i <= cnt; i++){
- if(model.getValue("/root/init/rsrvdeptcd/rsrvdeptcdlist["+ i +"]/cdid") == "1"){
- model.setValue("/root/send/teldept", model.getValue("/root/init/rsrvdeptcd/rsrvdeptcdlist["+ i +"]/cdnm"));
- }
-
- if(model.getValue("/root/init/rsrvdeptcd/rsrvdeptcdlist["+ i +"]/cdid") == "2"){
- model.setValue("/root/send/coopdept", model.getValue("/root/init/rsrvdeptcd/rsrvdeptcdlist["+ i +"]/cdnm"));
- }
- }
-
- //model.alert(model.getValue("/root/send/teldept"));
- //model.alert(model.getValue("/root/send/coopdept"));
-
- if( getDateInterval(fromdd, todd) < 0 ){
-
- messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return false;
-
- }
- if( getDateInterval(fromdd, todd) > 183 ){
-
- if(messageBox("반년 이상의 데이터를 조회 하시면 시스템에 과부하가 발생 할 수도 있습니다. 계속 진행 하시겠습니까", "Q999", "") != 6){
- return false;
- }
- }
-
- if( fCheckSearchValues()){
-
- if (statistic_gooboon.value == 1 ) {
-
- model.toggle("case_reservation");
- submit("TRPMO01500");
-
- grd_reservationstatistic.subtotalposition= "below";
-
- // 합계를 구한다
- for(var i=2 ; i<5 ; i++){
- grd_reservationstatistic.subtotal("sum",5, i, "#,###", "background-color:#99ff99", 1, "합계");
- }
-
-
-
-
- }else if (statistic_gooboon.value == 2 ) {
-
- model.toggle("case_change");
- submit("TRPMO01500");
-
-
- grd_change.subtotalposition= "below";
-
- // 합계를 구한다
- for(var i=2 ; i<5 ; i++){
- grd_change.subtotal("sum",5, i, "#,###", "background-color:#99ff99", 1, "합계");
- }
-
-
-
- }else if (statistic_gooboon.value == 3 ) {
- model.toggle("case_cancel");
- submit("TRPMO01500");
-
- grd_cancel.subtotalposition= "below";
-
- // 합계를 구한다
- for(var i=2 ; i<5 ; i++){
- grd_cancel.subtotal("sum",5, i, "#,###", "background-color:#99ff99", 1, "합계");
- }
-
- model.refresh();
- }else if (statistic_gooboon.value == 4 ) {
- model.toggle("case_break");
- submit("TRPMO01503");
-
- grd_break.colstyle(4, "data", "background-color") = "#DFDFDF"
- grd_break.colstyle(7, "data", "background-color") = "#DFDFDF"
- grd_break.colstyle(10, "data", "background-color") = "#DFDFDF"
-
- /*
- var startRow = grd_break.fixedRows;
- var endRow = grd_break.rows;
- //var sum = 0;
-
- for( var i = startRow; i < endRow; i++){
- var cnt = model.getValue("/root/main/breakstatistic/breakstatisticlist["+ i +"]/freserve");
- ccnt = parseInt(cnt);
- model.alert(ccnt);
- sum = sum+cnt;
- model.alert(sum);
- }
- */
- grd_break.subtotalposition= "below";
- var sum = 0;
- // 합계를 구한다
- for(var i=2 ; i<11 ; i++){
- if (i ==4 || i==7 || i==10) {
- //grd_break.subtotalposition= "above";
- //grd_break.subtotal("average",11, i, "#,###", "background-color:#99ff99", 1, "평균(부도율)");
- }else{
- grd_break.subtotal("sum",11, i, "#,###", "background-color:#99ff99", 1, "합계(부도자)") ;
- }
-
- }
-
- //var startRow = grd_break.fixedRows;
- var endRow = grd_break.rows;
-
- //alert(endRow);
-
- // model.alert(model.getValue("/root/main/breakstatistic[12]/breakstatisticlist/freserve"));
- var row2 = parseInt(grd_break.valuematrix(endRow-1, 2));
- var row3 = parseInt(grd_break.valuematrix(endRow-1, 3));
- var row5 = parseInt(grd_break.valuematrix(endRow-1, 5));
- var row6 = parseInt(grd_break.valuematrix(endRow-1, 6));
- var row8 = parseInt(grd_break.valuematrix(endRow-1, 8));
- var row9 = parseInt(grd_break.valuematrix(endRow-1, 9));
-
-
- var freserverate;
-
- if(row2 == '0' || row3 == "0"){
- grd_break.valueMatrix(endRow-1, 4) = "0";
- }else{
- freserverate = Math.round(row3/row2*100);
- grd_break.valueMatrix(endRow-1, 4) = freserverate;
- }
-
- var rereserverate;
-
- if(row5 == '0' || row6 == "0"){
- grd_break.valueMatrix(endRow-1, 7) = "0";
- }else{
- rereserverate = Math.round(row6/row5*100);
- grd_break.valueMatrix(endRow-1, 7) = rereserverate;
- }
-
- var totalrate;
-
- if(row8 == '0' || row9 == "0"){
- grd_break.valueMatrix(endRow-1, 10) = "0";
- }else{
- totalrate = Math.round(row9/row8*100);
- grd_break.valueMatrix(endRow-1, 10) = totalrate;
- }
-
-
- //var freserve_sum = parseInt(grd_break.valueMatrix(endRow, grd_break.colRef("freserve")));
- //model.alert(isNaN(freserve_sum)); --ture인경우 숫자로 변환불가 false 인 경우 숫자로 변환가능
- //model.alert(model.getValue("/root/main/breakstatistic/breakstatisticlist["+row+"]/freserve"));
-
-
- model.refresh();
- }else if (statistic_gooboon.value == 5 ) {
- model.toggle("case_tel");
- submit("TRPMO01501");
-
- datagrid1.subtotalposition= "below";
-
- // 합계를 구한다
- for(var i=2 ; i<9 ; i++){
- datagrid1.subtotal("sum", 9, i, "#,###", "background-color:#99ff99", 1, "합계");
- }
-
- }
-
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption83" style="left:207px; top:45px; width:15px; height:17px; font-weight:bold; ">~</caption>
- <caption id="caption1" class="search_name" style="left:390px; top:10px; width:86px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/orddept" class="combo_search" appearance="minimal" style="left:475px; top:10px; width:142px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // model.removeNodeset("/root/hidden/source/orddr");
- // model.refresh();
- // model.makeNode("/root/hidden/source/orddr");
- // fOrddridSet(model.getValue("/root/hidden/source/orddept"));
- cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddept.value + "']";
- model.setValue("/root/send/orddr", "");
- cmb_orddr.refresh();
- //
- // ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:390px; top:45px; width:86px; height:17px; ">진료의 :</caption>
- <select1 id="cmb_orddr" ref="/root/send/orddr" class="combo_search" appearance="minimal" style="left:475px; top:45px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:112px; top:45px; width:95px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:218px; top:45px; width:95px; height:19px; "/>
- <caption id="caption7" class="search_name" style="left:17px; top:10px; width:86px; height:17px; ">부서 :</caption>
- <caption id="caption9" class="search_name" style="left:17px; top:45px; width:86px; height:17px; ">조회날자 :</caption>
- <caption id="caption2" class="search_name" style="left:680px; top:10px; width:93px; height:17px; ">통계 구분 :</caption>
- <select1 id="statistic_gooboon" ref="/root/send/statisticgooboon" overflow="visible" appearance="full" cols="6" style="left:780px; top:10px; width:260px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>예약</label>
- <value>1</value>
- </item>
- <item>
- <label>변경</label>
- <value>2</value>
- </item>
- <item>
- <label>취소</label>
- <value>3</value>
- </item>
- <item>
- <label>부도자</label>
- <value>4</value>
- </item>
- <item>
- <label>통화건수</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //button1.dispatch("DOMActivate");
- model.setValue("/root/send/statisticgooboon", statistic_gooboon.value );
-
- switch(model.getValue("/root/send/statisticgooboon")){
- case 1 : model.toggle("case_reservation");
- }
-
- if(model.getvalue("/root/send/statisticgooboon") == "5"){
- model.setValue("/root/send/department", "2");
- cmb_department.disabled = true;
- }else{
- cmb_department.disabled = false;
- }
-
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_department" ref="/root/send/department" class="combo_search" appearance="minimal" style="left:112px; top:10px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>전화예약</label>
- <value>2</value>
- </item>
- <item>
- <label>인터넷</label>
- <value>5</value>
- </item>
- <item>
- <label>의뢰</label>
- <value>C</value>
- </item>
- <item>
- <label>협력</label>
- <value>1</value>
- </item>
- <item>
- <label>병동</label>
- <value>K</value>
- </item>
- </choices>
- </select1>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|