123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMPCT00100_외래진료실현황판.xrw
- * 설 명 : 외래진료실현황판
- * 설 계 자 : 유정란
- * 작 성 자 : 유정란
- * 작 성 일 : 2009.08.18
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?xml-stylesheet href="C:/CMCProject/application/webapps/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>
- <gridlist>
- <grid>
- <txt2/>
- <txt3/>
- <txt4/>
- <txt5/>
- <col1/>
- <col2/>
- <col3/>
- <col4/>
- <col5/>
- <col6/>
- <col7/>
- <col8/>
- <col9/>
- <col10/>
- <col11/>
- <col12/>
- <col13/>
- <col14/>
- <col15/>
- <col16/>
- <col17/>
- <col18/>
- <col19/>
- <col20/>
- <col21/>
- <col22/>
- <col23/>
- <col24/>
- <col25/>
- <col26/>
- <col27/>
- <col28/>
- <col29/>
- <col30/>
- <col31/>
- <col32/>
- <col33/>
- <col34/>
- <col35/>
- <col36/>
- <col37/>
- <col38/>
- <col39/>
- <col40/>
- <col41/>
- <col42/>
- <col43/>
- <col44/>
- <col45/>
- <col46/>
- <col47/>
- <col48/>
- <col49/>
- <col50/>
- <col51/>
- <col52/>
- <col53/>
- <col54/>
- <col55/>
- <col56/>
- <col57/>
- <col58/>
- <col59/>
- <col60/>
- <col61/>
- <col62/>
- <col63/>
- <col64/>
- <col65/>
- <col66/>
- <col67/>
- <col68/>
- <col69/>
- <col70/>
- </grid>
- </gridlist>
- <gridlist2>
- <grid>
- <col1/>
- </grid>
- </gridlist2>
- </main>
- <send>
- <data1/>
- </send>
- <init/>
- <hidden>
- <condition1/>
- <condition2/>
- <condition3/>
- <svrnm/>
- </hidden>
- <temp>
- <systime/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- datagrid1.frozencols = 4;
-
- fSysTime();
- fSearch("getOutOrdList");
- if (datagrid1.rows > 0) {
- datagrid1.mergecells = "byrestriccol";
- model.refresh();
- fGridColorChange();
- }
-
- gintval = window.setInterval("fCall();",30000); //30초
-
- ]]>
- </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[
- var gintval
-
- function fCall(){
- fSysTime();
- fSearch("getOutOrdList");
- if (datagrid1.rows > 0) {
- datagrid1.mergecells = "byrestriccol";
- model.refresh();
- fGridColorChange();
- }
- }
-
- function fSysTime(){
- var sdate = getCurrentDate();
- var stime = getCurrentTime();
- var sweek = getCurrentWeek("K");
-
- var sampmflag = "";
- var ssystime = "";
-
- if (eval(stime.substring(0,4)) < 1330){
- sampmflag = " (오전진료)";
- }
- else{
- sampmflag = " (오후진료)";
- }
-
- ssystime = sdate.substring(0,4) + "년 " + sdate.substring(4,6) + "월 " + sdate.substring(6,8) + "일(" + sweek + ") " + stime.substring(0,2) + ":" + stime.substring(2,4) + ":" + stime.substring(4,6) + sampmflag;
- model.setValue("/root/temp/systime",ssystime);
- output2.refresh();
- }
-
- function fGridColorChange(){
- var temp = "";
- var temp2 = "";
- var ampm = "";
- for (col = 1; col <= 50; col++){
-
- // if (col == 2) break;
-
- for (row = 1; row <= datagrid1.rows; row++){
-
- ampm = model.getValue("/root/main/gridlist/grid["+ row +"]/txt5");
-
- if (ampm == "오전"){
- datagrid1.cellStyle("background-color",row,col,row,col) = "#fffffe";
- }
- else{
- datagrid1.cellStyle("background-color",row,col,row,col) = "#dddddd";
- }
- }
- }
-
- for (col = 1; col <= 50; col++){
-
- // if (col == 2) break;
-
- for (row = 1; row <= datagrid1.rows; row++){
-
- temp = model.getValue("/root/main/gridlist/grid["+ row +"]/col"+col).getCarrigeReturnRemove();
- temp2 = model.getValue("/root/main/gridlist/grid["+ row +"]/col"+col);
-
- if (temp == "" || temp == null || temp == " "){
- // datagrid1.cellStyle("background-color",row,col+4,row,col+4) = "#fffffe";
- continue;
- }
-
- temp = temp.substring(temp.indexOf("*")+1,temp.length);
- //alert(temp);
- if (temp == null || temp == "" || temp == " ") continue;
-
- temp = eval(temp);
-
- model.setValue("/root/main/gridlist/grid["+ row +"]/col"+col, temp2.setReplaceWord(temp2.substring(temp2.indexOf("*"),temp2.length),""));
-
- if (temp <= 0){
- // datagrid1.cellStyle("background-color",row,col+4,row,col+4) = "#fffffe";
- }
- else if (temp < 10){
- datagrid1.cellStyle("background-color",row,col+4,row,col+4) = "#ffff00";
- }
- else if (temp >= 10 && temp < 30){
- datagrid1.cellStyle("background-color",row,col+4,row,col+4) = "#ffcc00";
- }
- else if (temp >= 30){
- datagrid1.cellStyle("background-color",row,col+4,row,col+4) = "#ff0000";
- }
- }
- }
- }
-
- ]]>
- </script>
- <submission id="TRPCTCOM01" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main"/>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- window.clearinterval(gintval);
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:13px; ">외래진료실현황판(실시간)</caption>
- <datagrid id="datagrid1" nodeset="/root/main/gridlist/grid" autoresize="true" caption="위치^센터^임상과^구분^진료실수^진료실1^진료실2^진료실3^진료실4^진료실5^진료실6^진료실7^진료실8^진료실9^진료실10^진료실11^진료실12^진료실13^진료실14^진료실15^진료실16^진료실17^진료실18^진료실19^진료실20^진료실21^진료실22^진료실23^진료실24^진료실25^진료실26^진료실27^진료실28^진료실29^진료실30^진료실31^진료실32^진료실33^진료실34^진료실35^진료실36^진료실37^진료실38^진료실39^진료실40^col45^col46^col47^col48^col49^col50^col51^col52^col53^col54^col55^col56^col57^col58^col59^col60^col61^col62^col63^col64^col65^col66^col67^col68^col69^col70^col71^col72" colwidth="68, 131, 102, 48, 58, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:30px; width:1190px; height:751px; ">
- <col ref="txt2"/>
- <col ref="txt3"/>
- <col ref="txt4"/>
- <col ref="txt5"/>
- <col ref="txt6" style="text-align:center; "/>
- <col ref="col1" style="font-weight:bold; "/>
- <col ref="col2" style="font-weight:bold; "/>
- <col ref="col3" style="font-weight:bold; "/>
- <col ref="col4" style="font-weight:bold; "/>
- <col ref="col5" style="font-weight:bold; "/>
- <col ref="col6" style="font-weight:bold; "/>
- <col ref="col7" style="font-weight:bold; "/>
- <col ref="col8" style="font-weight:bold; "/>
- <col ref="col9" style="font-weight:bold; "/>
- <col ref="col10" style="font-weight:bold; "/>
- <col ref="col11" style="font-weight:bold; "/>
- <col ref="col12" style="font-weight:bold; "/>
- <col ref="col13" style="font-weight:bold; "/>
- <col ref="col14" style="font-weight:bold; "/>
- <col ref="col15" style="font-weight:bold; "/>
- <col ref="col16" style="font-weight:bold; "/>
- <col ref="col17" style="font-weight:bold; "/>
- <col ref="col18" style="font-weight:bold; "/>
- <col ref="col19" style="font-weight:bold; "/>
- <col ref="col20" style="font-weight:bold; "/>
- <col ref="col21" style="font-weight:bold; "/>
- <col ref="col22" style="font-weight:bold; "/>
- <col ref="col23" style="font-weight:bold; "/>
- <col ref="col24" style="font-weight:bold; "/>
- <col ref="col25" style="font-weight:bold; "/>
- <col ref="col26" style="font-weight:bold; "/>
- <col ref="col27" style="font-weight:bold; "/>
- <col ref="col28" style="font-weight:bold; "/>
- <col ref="col29" style="font-weight:bold; "/>
- <col ref="col30" style="font-weight:bold; "/>
- <col ref="col31" style="font-weight:bold; "/>
- <col ref="col32" style="font-weight:bold; "/>
- <col ref="col33" style="font-weight:bold; "/>
- <col ref="col34" style="font-weight:bold; "/>
- <col ref="col35" style="font-weight:bold; "/>
- <col ref="col36" style="font-weight:bold; "/>
- <col ref="col37" style="font-weight:bold; "/>
- <col ref="col38" style="font-weight:bold; "/>
- <col ref="col39" style="font-weight:bold; "/>
- <col ref="col40" style="font-weight:bold; "/>
- <col ref="col41" style="font-weight:bold; "/>
- <col ref="col42" style="font-weight:bold; "/>
- <col ref="col43" style="font-weight:bold; "/>
- <col ref="col44" style="font-weight:bold; "/>
- <col ref="col45" style="font-weight:bold; "/>
- <col ref="col46" style="font-weight:bold; "/>
- <col ref="col47" style="font-weight:bold; "/>
- <col ref="col48" style="font-weight:bold; "/>
- <col ref="col49" style="font-weight:bold; "/>
- <col ref="col50" style="font-weight:bold; "/>
- <col ref="col51" style="font-weight:bold; "/>
- <col ref="col52" style="font-weight:bold; "/>
- <col ref="col53" style="font-weight:bold; "/>
- <col ref="col54" style="font-weight:bold; "/>
- <col ref="col55" style="font-weight:bold; "/>
- <col ref="col56" style="font-weight:bold; "/>
- <col ref="col57" style="font-weight:bold; "/>
- <col ref="col58" style="font-weight:bold; "/>
- <col ref="col59" style="font-weight:bold; "/>
- <col ref="col60" style="font-weight:bold; "/>
- <col ref="col61" style="font-weight:bold; "/>
- <col ref="col62" style="font-weight:bold; "/>
- <col ref="col63" style="font-weight:bold; "/>
- <col ref="col64" style="font-weight:bold; "/>
- <col ref="col65" style="font-weight:bold; "/>
- <col ref="col66" style="font-weight:bold; "/>
- <col ref="col67" style="font-weight:bold; "/>
- <col ref="col68" style="font-weight:bold; "/>
- </datagrid>
- <output id="output1" ref="/root/main/gridlist2/grid/col1" style="left:885px; top:2px; width:235px; height:19px; font-size:14pt; font-weight:bold; text-align:right; "/>
- <output id="output2" ref="/root/temp/systime" style="left:185px; top:2px; width:440px; height:19px; font-size:14pt; font-weight:bold; "/>
- <button id="button1" class="btn2_letter4" style="left:1125px; top:2px; 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>
- <caption id="caption1" style="left:626px; top:2px; width:110px; height:20px; ">대기시간 10분이내</caption>
- <output id="output3" style="left:731px; top:2px; width:25px; height:19px; background-color:#ffff00; "/>
- <caption id="caption2" style="left:771px; top:2px; width:70px; height:20px; ">10분 ~ 30분</caption>
- <output id="output4" style="left:841px; top:2px; width:25px; height:19px; background-color:#ffcc99; "/>
- <output id="output5" style="left:941px; top:2px; width:25px; height:19px; background-color:#ff0000; "/>
- <caption id="caption3" style="left:886px; top:2px; width:55px; height:20px; ">30분 이상</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:25px; x2:1190px; y2:25px; "/>
- </xhtml:body>
- </xhtml:html>
|