123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPMB01900_요일별진료일정조회.xrw
- * 수정이력
- * - 2007. 10. 02 / 수정(휴진표시추가) / 박재형
- * - 2008. 01.23 / 수정 / 박재형
- : 요일별진료일정내역 중 휴일 빨간색 표시 컬럼(진료의사, 특진여부)이 추가가 되어 j=3에서 j=5로 변경.
- -->
- <?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>
- <weekordsche>
- <weekordschelist>
- <orddeptcd/>
- <orddrid/>
- <mon/>
- <monholi/>
- <tue/>
- <tueholi/>
- <wed/>
- <wedholi/>
- <thu/>
- <thuholi/>
- <fri/>
- <friholi/>
- <sat/>
- <satholi/>
- </weekordschelist>
- </weekordsche>
- </main>
- <send>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <fromdd/>
- <todd/>
- </send>
- <init>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- <P0037list>
- <P0037>
- <cdnm/>
- <cdid/>
- </P0037>
- </P0037list>
- </init>
- <hidden>
- <tmp/>
- <session/>
- </hidden>
- </root>
- </instance>
- <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"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (checkOpener()){ //팝업화면으로 사용될 때
- btn_cancel.visible = true;
- }
-
- zbcfGetCodeList(new Array("P0037", "P0316"), new Array("/root/init/P0037list", "/root/init/P0316list"));
- pamGetDeptCDDrIDList();
-
- //사용자 세션정보
- fGetUserInfosSampling();
-
- 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");
- model.makeNode("/root/init/temp/orddrid/orddridlist/dp");
- model.makeNode("/root/init/temp/orddrid/orddridlist/sp");
- model.setValue("/root/init/temp/orddrid/orddridlist/dp", "-");
-
- copyNodesetType("/root/init/orddrid/orddridlist", "/root/init/temp/orddrid/orddridlist", "before");
-
- model.removeNodeset("/root/init/temp");
- //fInitControl();
- fInitialize();
- model.refresh();
- ]]>
- </script>
- <submission id="TRPMB01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/weekordsche"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- model.removeNodeset("/root/main/drtodayend/drtodayendlist");
-
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
- model.setValue("/root/send/orddd", curDate);
- //model.setValue("/root/send/todd", curDate);
- //model.refresh();
-
- var orddeptcd = model.getValue("/root/hidden/session/sess_dutplcecd");
- if( orddeptcd != '' ){
-
- orddeptcd = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = " + orddeptcd + " ]/cd");
- model.setValue("/root/send/orddeptcd", orddeptcd );
- cmb_orddeptcd.refresh();
- cmb_orddeptcd.dispatch("xforms-value-changed");
- }
- }
- /*
- function fInitControl()
- {
-
- //서버 일자로 처리
- today = new Date();
- var isYear, isMonth, ls_day;
-
- isYear = (today.getYear()).toString();
- isMonth = (today.getMonth() + 1).toString();
- isDay = (today.getDate()).toString();
-
- //1~9월까지 숫자 앞에 0을 붙여준다. ex) 1 -> 01
- if ((isMonth.toString()).length == 1) isMonth = ("0".concat(isMonth.toString()));
- if ((isDay.toString()).length == 1) isDay = ("0".concat(isDay.toString()));
-
- model.setValue("root/send/orddd", isYear.concat(isMonth, isDay) );
- //model.refresh();
- }
- */
- function fHoliBlack() {
- var rows = grd_holische.rows;
- var fixedrow = grd_holische.fixedrows;
- var allrow = rows - fixedrow;
-
- for(var i=allrow; i>0; i--) {
- grd_holische.rowStyle(i, "data", "color") = "#000000";
- }
- }
- function fHoliRedChk() {
- var rows = grd_holische.rows;
- var fixedrow = grd_holische.fixedrows;
- var allrow = rows - fixedrow;
-
- var cols = grd_holische.cols;
- var fixedcol = grd_holische.fixedCols;
- var allcol = cols - fixedcol;
- for( var i = allrow; i >0; i--){
- // 수정 : 2008.01.23 박재형
- // 기존그리드가 진료과, 월화수목금토에서 -> 진료과,진료의사, 특진여부,월화~ 로 변경되어. col(j)값을 j=3에서j= 4로 변경하여 월요일부터 빨강표시 되게함
- for(j=4; j<= allcol; j=j+2){
- var holivalue = grd_holische.valueMatrix(i, j);
- if(holivalue != '0' && holivalue != '00' && holivalue != null){
- grd_holische.cellStyle("color", i, j-1, i,j ) = "#ff0000";
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1075px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">요일별 진료일정 조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1075px; height:662px; ">
- <group id="group4" style="left:0px; top:10px; width:1073px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1072px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1002px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //if( ipt_orddd.value != "" && cmb_orddeptcd.value != ""){
- if( ipt_orddd.value != ""){
- var orddd = model.getValue("/root/send/orddd").toDate();
- var fromdd = "";
- var todd = "";
-
- var weekNum = parseInt(orddd.getDayOfWeek("N"));
-
- fromdd = orddd.getAddDate(0 - weekNum , "D" ).getDateFormat();
- todd = orddd.getAddDate(6 , "D").getDateFormat();
-
- model.setValue("/root/send/fromdd", fromdd);
- model.setValue("/root/send/todd", todd);
- submit("TRPMB01901");
- fHoliBlack();
- fHoliRedChk();
- }else{
- messageBox("진료과 또는 진료일자를", "C002");
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:986px; y1:7px; x2:986px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:91px; top:8px; width:235px; 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[
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "' or dp = '-' ]";
- model.setValue("/root/send/orddrid", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:15px; top:9px; width:75px; height:17px; ">진료과 :</caption>
- <caption id="caption2" class="search_name" style="left:650px; top:9px; width:88px; height:17px; ">진료일자 :</caption>
- <input id="ipt_orddd" ref="/root/send/orddd" class="input_search" inputtype="date" style="left:737px; top:8px; width:100px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:385px; top:9px; width:88px; height:17px; ">진료의사 :</caption>
- <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_s_essential" appearance="minimal" style="left:475px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <col type="checkbox"/>
- <caption id="caption4" class="tit_2" style="left:6px; top:55px; width:139px; height:14px; ">요일별진료일정내역</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1072px; y2:70px; "/>
- <!-- 수 정 : 2007. 10. 01 박재형
- 각 요일마다 휴진일정 표시 휴진일이 없으면 휴진표시 하지 않음
- -->
- <datagrid id="grd_holische" nodeset="/root/main/weekordsche/weekordschelist" class="datagrid2" caption="진료과^진료의사^특진
여부^월^월^화^화^수^수^목^목^금^금^토^토" colsep="^" colwidth="115, 66, 30, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:1072px; height:581px; ">
- <col disabled="true" ref="orddeptcd" type="combo" style="border-right-width:2px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo" style="border-right-width:2px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo" style="border-right-width:2px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="sp"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="mon" type="combo" style="font-size:8pt; ">
- <choices>
- <item>
- <label>오전</label>
- <value>1</value>
- </item>
- <item>
- <label>오후</label>
- <value>10</value>
- </item>
- <item>
- <label>야간</label>
- <value>100</value>
- </item>
- <item>
- <label>전일</label>
- <value>11</value>
- </item>
- <item>
- <label>전일</label>
- <value>101</value>
- </item>
- <item>
- <label>전일</label>
- <value>110</value>
- </item>
- <item>
- <label>전일</label>
- <value>111</value>
- </item>
- <item>
- <label>임시오전</label>
- <value>2</value>
- </item>
- <item>
- <label>임시오후</label>
- <value>20</value>
- </item>
- <item>
- <label>임시야간</label>
- <value>200</value>
- </item>
- </choices>
- </col>
- <!-- 수정 : 2007.10.02 박재형 - 윌요일 휴진을 표시하기 위한 공통코드 콤보박스추가 -->
- <col disabled="true" ref="monholi" type="combo" style="font-size:8pt; border-right-width:2px; ">
- <choices>
- <itemset nodeset="/root/init/P0037list/P0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="tue" type="combo" style="font-size:8pt; ">
- <choices>
- <item>
- <label>오전</label>
- <value>1</value>
- </item>
- <item>
- <label>오후</label>
- <value>10</value>
- </item>
- <item>
- <label>야간</label>
- <value>100</value>
- </item>
- <item>
- <label>전일</label>
- <value>11</value>
- </item>
- <item>
- <label>전일</label>
- <value>101</value>
- </item>
- <item>
- <label>전일</label>
- <value>110</value>
- </item>
- <item>
- <label>전일</label>
- <value>111</value>
- </item>
- <item>
- <label>임시오전</label>
- <value>2</value>
- </item>
- <item>
- <label>임시오후</label>
- <value>20</value>
- </item>
- <item>
- <label>임시야간</label>
- <value>200</value>
- </item>
- </choices>
- </col>
- <!-- 수정 : 2007.10.02 박재형 - 화요일 휴진을 표시하기 위한 공통코드 콤보박스추가 -->
- <col disabled="true" ref="tueholi" type="combo" style="font-size:8pt; border-right-width:2px; ">
- <choices>
- <itemset nodeset="/root/init/P0037list/P0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="wed" type="combo" style="font-size:8pt; ">
- <choices>
- <item>
- <label>오전</label>
- <value>1</value>
- </item>
- <item>
- <label>오후</label>
- <value>10</value>
- </item>
- <item>
- <label>야간</label>
- <value>100</value>
- </item>
- <item>
- <label>전일</label>
- <value>11</value>
- </item>
- <item>
- <label>전일</label>
- <value>101</value>
- </item>
- <item>
- <label>전일</label>
- <value>110</value>
- </item>
- <item>
- <label>전일</label>
- <value>111</value>
- </item>
- <item>
- <label>임시오전</label>
- <value>2</value>
- </item>
- <item>
- <label>임시오후</label>
- <value>20</value>
- </item>
- <item>
- <label>임시야간</label>
- <value>200</value>
- </item>
- </choices>
- </col>
- <!-- 수정 : 2007.10.02 박재형 - 수요일 휴진을 표시하기 위한 공통코드 콤보박스추가 -->
- <col disabled="true" ref="wedholi" type="combo" style="font-size:8pt; border-right-width:2px; ">
- <choices>
- <itemset nodeset="/root/init/P0037list/P0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="thu" type="combo" style="font-size:8pt; ">
- <choices>
- <item>
- <label>오전</label>
- <value>1</value>
- </item>
- <item>
- <label>오후</label>
- <value>10</value>
- </item>
- <item>
- <label>야간</label>
- <value>100</value>
- </item>
- <item>
- <label>전일</label>
- <value>11</value>
- </item>
- <item>
- <label>전일</label>
- <value>101</value>
- </item>
- <item>
- <label>전일</label>
- <value>110</value>
- </item>
- <item>
- <label>전일</label>
- <value>111</value>
- </item>
- <item>
- <label>임시오전</label>
- <value>2</value>
- </item>
- <item>
- <label>임시오후</label>
- <value>20</value>
- </item>
- <item>
- <label>임시야간</label>
- <value>200</value>
- </item>
- </choices>
- </col>
- <!-- 수정 : 2007.10.02 박재형 - 목요일 휴진을 표시하기 위한 공통코드 콤보박스추가 -->
- <col disabled="true" ref="thuholi" type="combo" style="font-size:8pt; border-right-width:2px; ">
- <choices>
- <itemset nodeset="/root/init/P0037list/P0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fri" type="combo" style="font-size:8pt; ">
- <choices>
- <item>
- <label>오전</label>
- <value>1</value>
- </item>
- <item>
- <label>오후</label>
- <value>10</value>
- </item>
- <item>
- <label>야간</label>
- <value>100</value>
- </item>
- <item>
- <label>전일</label>
- <value>11</value>
- </item>
- <item>
- <label>전일</label>
- <value>101</value>
- </item>
- <item>
- <label>전일</label>
- <value>110</value>
- </item>
- <item>
- <label>전일</label>
- <value>111</value>
- </item>
- <item>
- <label>임시오전</label>
- <value>2</value>
- </item>
- <item>
- <label>임시오후</label>
- <value>20</value>
- </item>
- <item>
- <label>임시야간</label>
- <value>200</value>
- </item>
- </choices>
- </col>
- <!-- 수정 : 2007.10.02 박재형 - 금요일 휴진을 표시하기 위한 공통코드 콤보박스추가 -->
- <col disabled="true" ref="friholi" type="combo" style="font-size:8pt; border-right-width:2px; ">
- <choices>
- <itemset nodeset="/root/init/P0037list/P0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="sat" type="combo" style="font-size:8pt; ">
- <choices>
- <item>
- <label>오전</label>
- <value>1</value>
- </item>
- <item>
- <label>오후</label>
- <value>10</value>
- </item>
- <item>
- <label>야간</label>
- <value>100</value>
- </item>
- <item>
- <label>전일</label>
- <value>11</value>
- </item>
- <item>
- <label>전일</label>
- <value>101</value>
- </item>
- <item>
- <label>전일</label>
- <value>110</value>
- </item>
- <item>
- <label>전일</label>
- <value>111</value>
- </item>
- <item>
- <label>임시오전</label>
- <value>2</value>
- </item>
- <item>
- <label>임시오후</label>
- <value>20</value>
- </item>
- <item>
- <label>임시야간</label>
- <value>200</value>
- </item>
- </choices>
- </col>
- <!-- 수정 : 2007.10.02 박재형 - 토요일 휴진을 표시하기 위한 공통코드 콤보박스추가 -->
- <col disabled="true" ref="satholi" type="combo" style="font-size:8pt; ">
- <choices>
- <itemset nodeset="/root/init/P0037list/P0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- <button id="button1" class="btn2_letter4" style="left:1008px; top:48px; 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_holische.saveExcel(fileName, "SheetName", true, true, "", "", "true");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:675px; width:1075px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1072px; y2:0px; "/>
- <button id="btn_cancel" class="btn4_letter2" visibility="hidden" style="left:1014px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" style="x1:210px; y1:89px; x2:210px; y2:119px; border-color:#c0c0c0; border-width:2px; "/>
- <line id="line4" style="x1:490px; y1:89px; x2:490px; y2:119px; border-color:#c0c0c0; border-width:2px; "/>
- <line id="line5" style="x1:630px; y1:89px; x2:630px; y2:119px; border-color:#c0c0c0; border-width:2px; "/>
- <line id="line6" style="x1:770px; y1:89px; x2:770px; y2:119px; border-color:#c0c0c0; border-width:2px; "/>
- <line id="line7" style="x1:910px; y1:89px; x2:910px; y2:119px; border-color:#c0c0c0; border-width:2px; "/>
- <line id="line8" style="x1:1050px; y1:89px; x2:1050px; y2:119px; border-color:#c0c0c0; border-width:2px; "/>
- <line id="line9" style="x1:180px; y1:89px; x2:180px; y2:119px; border-color:#c0c0c0; border-width:2px; "/>
- <line id="line10" style="x1:114px; y1:90px; x2:114px; y2:120px; border-color:#c0c0c0; border-width:2px; "/>
- <line id="line11" style="x1:350px; y1:89px; x2:350px; y2:119px; border-color:#c0c0c0; border-width:2px; "/>
- </xhtml:body>
- </xhtml:html>
|