123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMPCT00500_외래진료예약대기.xrw
- * 설 명 : 외래진료예약대기
- * 설 계 자 : 유정란
- * 작 성 자 : 유정란
- * 작 성 일 : 2009.08.25
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/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>
- <gridlist>
- <grid>
- <col1/>
- <col2/>
- <col3/>
- <col4/>
- <col5/>
- <col6/>
- <col7/>
- <col8/>
- <col9/>
- <col10/>
- <col11/>
- <col12/>
- <col13/>
- <col14/>
- <col15/>
- <col16/>
- <col17/>
- <col18/>
- <col19/>
- <col20/>
- <col21/>
- </grid>
- </gridlist>
- </main>
- <send>
- <data1/>
- </send>
- <init>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- </orddrid>
- <centcd>
- <cd/>
- <nm/>
- </centcd>
- </init>
- <hidden>
- <condition1/>
- <condition2/>
- <condition3/>
- <svrnm/>
- <centcd/>
- <orddeptcd/>
- <orddrid/>
- <opt2/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRPCTCOM02");
-
- fInitialize();
-
- model.resetInstanceNode("/root/hidden/opt2");
- fOutComboSet();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.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/stringHelper.js"/>
- <script type="javascript" src="../../../pam/pamctlweb/js/PCTCOM.js"/>
- <script type="javascript">
- <![CDATA[
- function fGridColorChange(){
- var temp = "";
- var amfrsrv = "", amfcapa = "", amrrsrv = "", amrcapa = "", amtrsrv = "", amtcapa = "";
- var pmfrsrv = "", pmfcapa = "", pmrrsrv = "", pmrcapa = "", pmtrsrv = "", pmtcapa = "";
-
- for (irow = 3; irow <= datagrid1.rows; irow++){
-
- // if (irow == 20) break;
-
- temp = model.getValue("/root/main/gridlist/grid["+ irow +"]/col21").getCarrigeReturnRemove();
-
- amfrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col8");
- amfcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col9");
- amrrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col10");
- amrcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col11");
- amtrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col12");
- amtcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col13");
- pmfrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col14");
- pmfcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col15");
- pmrrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col16");
- pmrcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col17");
- pmtrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col18");
- pmtcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col19");
-
- if (eval(amfrsrv) > eval(amfcapa)){
- datagrid1.cellStyle("color",irow+2,7,irow+2,7) = "#ff0000";
- }
-
- if (eval(amrrsrv) > eval(amrcapa)){
- datagrid1.cellStyle("color",irow+2,9,irow+2,9) = "#ff0000";
- }
-
- if (eval(amtrsrv) > eval(amtcapa)){
- datagrid1.cellStyle("color",irow+2,11,irow+2,11) = "#ff0000";
- }
-
- if (eval(pmfrsrv) > eval(pmfcapa)){
- datagrid1.cellStyle("color",irow+2,13,irow+2,13) = "#ff0000";
- }
-
- if (eval(pmrrsrv) > eval(pmrcapa)){
- datagrid1.cellStyle("color",irow+2,15,irow+2,15) = "#ff0000";
- }
-
- if (eval(pmtrsrv) > eval(pmtcapa)){
- datagrid1.cellStyle("color",irow+2,17,irow+2,17) = "#ff0000";
- }
-
- if (temp == "" || temp == null || temp == " "){
- datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#fffffe";
- continue;
- }
-
- // temp = eval(temp) * 7;
- temp = eval(temp);
-
- if (temp <= 0){
- datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#fffffe";
- }
- else if (temp < 15){
- datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#ffff00";
- }
- else if (temp >= 15 && temp < 30){
- datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#ffcc00";
- }
- else if (temp >= 30){
- datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#ff0000";
- }
- }
- }
- ]]>
- </script>
- <submission id="TRPCTCOM01" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main"/>
- <submission id="TRPCTCOM02" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init"/>
- </model>
- </xhtml:head>
- <xhtml:body>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:16px; width:1193px; height:60px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:215px; height:14px; ">외래진료예약대기</caption>
- <datagrid id="datagrid1" nodeset="/root/main/gridlist/grid" caption="위치^센터^임상과^세부과^진료의^직급^요일^오전정원^오전정원^오전정원^오전정원^오전정원^오전정원^오후정원^오후정원^오후정원^오후정원^오후정원^오후정원^초진예약환자수(차주~2달후)^초진예약대기 예상기간(일)|위치^센터^임상과^세부과^진료의^직급^요일^초진^초진^재진^재진^총정원^총정원^초진^초진^재진^재진^총정원^총정원^초진예약환자수(차주~2달후)^초진예약대기 예상기간(일)|위치^센터^임상과^세부과^진료의^직급^요일^예약^capa^예약^capa^예약^capa^예약^capa^예약^capa^예약^capa^초진예약환자수(차주~2달후)^초진예약대기 예상기간(일)" colwidth="59, 109, 112, 84, 74, 64, 34, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 87, 61" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:83px; width:1193px; height:692px; ">
- <col ref="col1"/>
- <col ref="col2"/>
- <col ref="col3"/>
- <col ref="col4"/>
- <col ref="col5"/>
- <col ref="col6"/>
- <col ref="col7"/>
- <col ref="col8"/>
- <col ref="col9"/>
- <col ref="col10"/>
- <col ref="col11"/>
- <col ref="col12"/>
- <col ref="col13"/>
- <col ref="col14"/>
- <col ref="col15"/>
- <col ref="col16"/>
- <col ref="col17"/>
- <col ref="col18"/>
- <col ref="col19"/>
- <col ref="col20"/>
- <col ref="col21"/>
- </datagrid>
- <button id="button1" class="btn1_letter2" style="left:709px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch("getOutOrdRsrvWait");
-
- //datagrid1.mergecells = "byrestriccol";
- //model.refresh();
-
- fGridColorChange();
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:25px; top:23px; width:55px; height:20px; ">기준일자</caption>
- <input id="input1" ref="/root/hidden/condition1" inputtype="date" style="left:79px; top:22px; width:100px; height:19px; "/>
- <caption id="caption2" style="left:790px; top:23px; width:160px; height:20px; ">* 기준일자 포함하는 주 조회</caption>
- <button id="button2" class="btn2_letter4" style="left:1125px; top:52px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (getNodesetCount("/root/main/gridlist/grid") < 1 && datagrid1.rows < 1){
- messageBox("저장할 데이터가 없습니다!", "E999");
- return;
- }
-
- var fileName = window.fileDialog("save", "", false, "외래진료예약대기", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != ""){
- datagrid1.saveExcel(fileName, "외래진료예약대기", true, false, "", "", true);
- }
- ]]>
- </script>
- </button>
- <output id="output4" style="left:931px; top:52px; width:25px; height:19px; background-color:#ffcc99; "/>
- <output id="output5" style="left:1021px; top:52px; width:25px; height:19px; background-color:#ff0000; "/>
- <caption id="caption3" style="left:791px; top:52px; width:55px; height:20px; ">15일이내</caption>
- <caption id="caption4" style="left:876px; top:52px; width:60px; height:20px; ">15 ~ 30일</caption>
- <caption id="caption5" style="left:966px; top:52px; width:55px; height:20px; ">30일 이상</caption>
- <output id="output3" style="left:841px; top:52px; width:25px; height:19px; background-color:#ffff00; "/>
- <line id="line12" class="line_1" style="x1:0px; y1:78px; x2:1194px; y2:78px; "/>
- <select1 id="cmb_orddrid" ref="/root/hidden/orddrid" appearance="minimal" style="left:582px; top:22px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fOutOrddridVrf();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_centcd" ref="/root/hidden/centcd" appearance="minimal" style="left:410px; top:22px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/centcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/hidden/orddeptcd" appearance="minimal" style="left:410px; top:22px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fOutOrddridFilter("1");
- ]]>
- </script>
- </select1>
- <select1 id="radio2" ref="/root/hidden/opt2" overflow="visible" appearance="full" cols="4" style="left:185px; top:23px; width:220px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>센터</label>
- <value>1</value>
- </item>
- <item>
- <label>진료과</label>
- <value>2</value>
- </item>
- <item>
- <label>진료의사</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fOutComboSet();
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|