123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../../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>진료과별 의사 당직 관리 (ICU)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grpmasterinfo>
- <grpmasterinfolist>
- <shownm/>
- <grtype/>
- <staffid/>
- <orddeptcd/>
- </grpmasterinfolist>
- </grpmasterinfo>
- <drinfo>
- <drinfolist>
- <drnm/>
- <drid/>
- <deptcd/>
- <phone/>
- <bbtel/>
- </drinfolist>
- </drinfo>
- <workerinfo>
- <workerinfolist/>
- </workerinfo>
- <titleinfo>
- <worktitle/>
- <grpmtitle/>
- <staffnm/>
- <staffid/>
- <fromtm/>
- <totm/>
- </titleinfo>
- <drdetlinfo>
- <drnm/>
- <drid/>
- <deptcd/>
- <phone/>
- <bbtel/>
- </drdetlinfo>
- </main>
- <cond>
- <srchym/>
- <orddeptcd/>
- <gbn>I</gbn>
- <icutype/>
- <icucd/>
- </cond>
- <init>
- <orddeptinfo>
- <orddeptinfolist>
- <orddeptcd/>
- <orddeptnm/>
- </orddeptinfolist>
- </orddeptinfo>
- <menu>
- <item>
- <name>추가</name>
- <func>fAddWorkDr</func>
- </item>
- <item>
- <name>삭제</name>
- <func>fSetWorkDr</func>
- </item>
- <item>
- <name>새로고침</name>
- <func>fRefreshWorkDr</func>
- </item>
- </menu>
- </init>
- <send/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-close">
- <![CDATA[
- //20090629 dhkim
- //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
- var isRefresh = isScheduleRefresh(true);
- if(isRefresh == 'N'){
- grd_grpmaster.row = curRow;
- return;
- }else{
- window.close();
- }
-
- ]]>
- </script>
- <submission id="TRMNE05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddeptinfo/orddeptinfolist"/>
- <submission id="TRMNE05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drinfo/drinfolist"/>
- <submission id="TRMNE05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
- <submission id="TRMNE09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
- <submission id="TRMNE09002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRMNE09003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/icuinfo"/>
- <submission id="TRMNE09004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/dutytime"/>
- <submission id="TRMNE09006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRMNE09007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRMNE09008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXMNE09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
- <submission id="TXMNE09002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deldata" resultref="/root/main/workerinfo/workerinfolist"/>
- <!--submission id="TXMNE05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/-->
- <!--submission id="TXMNE05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deldata" resultref="/root/main/workerinfo/workerinfolist"/-->
- <!--submission id="TRMMO04103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/-->
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../emr/ercareweb/js/SMMNE09000.js"/>
- <script type="javascript">
- <![CDATA[
- //이전 셀의 행,열 인덱스를 저장하는 변수
- var col = 0;
- var row = 0;
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1020" pageheight="950" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:1px; top:103px; width:319px; height:35px; background-color:#ccffff; border-color:#33cccc; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">진료과별 의사 당직 관리</caption>
- <datagrid id="grd_drlist" nodeset="/root/main/drinfo/drinfolist" allowselection="false" caption="사번^이름^nzone^Hp No^" colsep="^" colwidth="70, 80, 50, 100, 0" defaultrows="0" focuscolor="#7fef0f" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:146px; width:319px; height:725px; ">
- <col ref="drid"/>
- <col ref="drnm"/>
- <col ref="nzone"/>
- <col ref="hpno"/>
- <col ref="orddeptcd"/>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- //데이터 셀에 마우스가 올라오면 스타일을 바꾼다
- if(grd_drlist.isCell(event.target) && grd_drlist.mouseRow >= grd_drlist.fixedRows && grd_drlist.mouseCol >= grd_drlist.fixedCols)
- {
- grd_drlist.rebuildStyle(row, col);
- grd_drlist.cellStyle("background-color", grd_drlist.mouseRow, grd_drlist.mouseCol) = "#ece1ec";
-
- row = grd_drlist.mouseRow;
- col = grd_drlist.mouseCol;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- grd_drlist.rebuildStyle(row, col);
- ]]>
- </script>
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- for(var i = 1; i <= grd_drlist.rows; i++){
- if (i > 1) {
- j = i - 1;
- oldposcd = model.getValue("/root/main/drinfo/drinfolist[" + j + "]/jobposcd");
- newposcd = model.getValue("/root/main/drinfo/drinfolist[" + i + "]/jobposcd");
-
- if (oldposcd != newposcd) {
- grd_drlist.cellstyle("border-bottom-color", j, 0, j, 4) = '#ff0000';
- } else {
- grd_drlist.cellstyle("border-bottom-color", j, 0, j, 4) = '#C0C0C0';
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:2px; top:88px; width:288px; height:13px; ">당직 의사 선택</caption>
- <group id="group4" style="left:1px; top:18px; width:995px; height:45px; vertical-align:top; ">
- <select1 id="radio1" ref="/root/cond/icutype" visibility="hidden" appearance="full" cellspacing="10" cols="6" overflow="visible" style="left:350px; top:10px; width:421px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <!--item>
- <label>전체</label>
- <value>X</value>
- </item>
- <item>
- <label>ICU</label>
- <value>O</value>
- </item>
- <item>
- <label>응급실</label>
- <value>R</value>
- </item>
- <item>
- <label>병동</label>
- <value>W</value>
- </item-->
- <item>
- <label>소아관련ICU</label>
- <value>1</value>
- </item>
- <item>
- <label>내과관련ICU</label>
- <value>2</value>
- </item>
- <item>
- <label>SICU</label>
- <value>3</value>
- </item>
- <item>
- <label>NSICU</label>
- <value>4</value>
- </item>
- <item>
- <label>CICU</label>
- <value>5</value>
- </item>
- <item>
- <label>SU</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fInit();
- btn_search.dispatch('DOMActivate');
- ]]>
- </script>
- </select1>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:995px; height:45px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:852px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
- var isRefresh = isScheduleRefresh(false);
-
- if(isRefresh == 'N'){
- grd_grpmaster.row = curRow;
- return;
- }
-
- fGetWorkScheduleList(); //선택된 구분의 당직 스케줄 조회
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:5px; top:13px; width:91px; height:17px; ">당직년월 :</caption>
- <input id="ipt_srchym" ref="/root/cond/srchym" class="input_search" navindex="1" format="yyyy-mm" style="left:126px; top:12px; width:88px; height:19px; text-align:center; "/>
- <button id="btn_bfyear" class="icon_pre_year" style="left:90px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClkBfYear(model.getValue('/root/cond/srchym'));
- ]]>
- </script>
- </button>
- <button id="btn_bfmonth" class="icon_pre_month" style="left:108px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClkBfMonth(model.getValue('/root/cond/srchym'));
- ]]>
- </script>
- </button>
- <button id="btn_afmonth" class="icon_next_month" style="left:217px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClkAfMonth(model.getValue('/root/cond/srchym'));
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:305px; top:13px; width:130px; height:17px; ">중환자실:</caption>
- <button id="btn_afyear" class="icon_next_year" style="left:235px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClkAfYear(model.getValue('/root/cond/srchym'));
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:839px; y1:12px; x2:839px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button1" class="btn1_letter4" navindex="3" style="left:909px; top:12px; width:80px; height:22px; ">
- <caption>변경이력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMNE09002");
- ]]>
- </script>
- </button>
- <select1 id="cmb_icu" ref="/root/cond/icucd" navindex="2" appearance="minimal" style="left:395px; top:12px; width:205px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/icuinfo/iculist">
- <label ref="icunm"/>
- <value ref="icucd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //당직 기준 진료과 가져오기
- var srchym = model.getValue("/root/cond/srchym");
- var gbn = model.getValue("/root/cond/gbn");
- var icucd = model.getValue("/root/cond/icucd").substr(0, 10);
- var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
-
- model.makeValue("/root/send/srchym", srchym);
- model.makeValue("/root/send/gbn", gbn);
- model.makeValue("/root/send/icucd", icucd);
- model.makeValue("/root/send/csflag", csflag);
-
- submit("TRMNE09004"); // 중환자실 별 당직 기준 시간 가져오기
- gDStime = model.getValue("/root/init/dutytime/dstime");
- gDEtime = model.getValue("/root/init/dutytime/detime");
-
- gD2Stime = model.getValue("/root/init/dutytime/d2stime");
- gD2Etime = model.getValue("/root/init/dutytime/d2etime");
-
- gNStime = model.getValue("/root/init/dutytime/nstime");
- gNEtime = model.getValue("/root/init/dutytime/netime");
-
- var sDStime = model.getValue("/root/init/dutytime/dstimenm");
- var sDEtime = model.getValue("/root/init/dutytime/detimenm");
-
- var sD2Stime = model.getValue("/root/init/dutytime/d2stimenm");
- var sD2Etime = model.getValue("/root/init/dutytime/d2etimenm");
-
- var sNStime = model.getValue("/root/init/dutytime/nstimenm");
- var sNEtime = model.getValue("/root/init/dutytime/netimenm");
-
- cap_worktime.text = "※ 근무시간: DAY - " + sDStime + " ~ " + sDEtime + ", DAY2 - " + sD2Stime + " ~ " + sD2Etime + ", NIGHT - " + sNStime + " ~ " + sNEtime;
- cap_worktime.refresh();
-
- submit("TRMNE05401"); // 중환자실 부서 조회
-
- model.removenode("/root/main/drinfo");
-
- btn_search.dispatch('DOMActivate');
-
- //당직표 수정 가능 부서를 제외하고는 저장 기능을 제한한다.
- if (gModifyAuth == 'N') {
- var nodeList = instance1.selectNodes("/root/init/orddeptinfo/orddeptinfolist[deptcd ="+ getUserInfo("dutplcecd") +"]");
- if( nodeList.length > 0) {
- //수정가능
- btn_save.disabled = false;
- } else {
- //수정불가능
- btn_save.disabled = true;
- }
- }
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_save" class="btn4_letter2" style="left:473px; top:65px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveWorkDr();//당직자스케줄을저장한다
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:1px; y1:140px; x2:320px; y2:140px; "/>
- <line id="line3" class="line_1" style="x1:322px; y1:103px; x2:995px; y2:103px; "/>
- <button id="btn_prt" class="btn4_letter5" style="left:530px; top:65px; width:92px; height:22px; ">
- <caption>리스트출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchym = model.getValue("/root/cond/srchym");
- var monthcnt = getDayCountForMonth(srchym.substring(0, 4), srchym.substring(4, 6)); //조회년월의 마지막일
-
- var sdate = srchym + '01';
- var edate = srchym + monthcnt;
- var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
- var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
-
- model.makeValue("/root/send/sdate", sdate);
- model.makeValue("/root/send/edate", edate);
- model.makeValue("/root/send/placecd", placecd);
- model.makeValue("/root/send/csflag", csflag);
-
- submit("TRMNE09006");
- exeReportPreview("RPMNE09000", "XMLSTR","","","");
- ]]>
- </script>
- </button>
- <datagrid id="grd_workerlist" nodeset="/root/main/workerinfo/workerinfolist" caption="일자^요일^구분^위치^의사^의사^의사^비고^drid_d^drid_d2^drid_n^ddeptcd^ddeptnm^d2deptcd^d2deptnm^ndeptcd^ndeptnm^placecd|일자^요일^구분^위치^Day^Day2^Night^비고^drid_d^drid_d2^drid_n^ddeptcd^ddeptnm^d2deptcd^d2deptnm^ndeptcd^ndeptnm^placecd" colsep="^" colwidth="75, 45, 70, 170, 80, 84, 80, 115, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" defaultrows="0" focuscolor="#ece1ec" mergecells="byrestriccol" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" style="left:322px; top:109px; width:673px; height:762px; vertical-align:middle; ">
- <col ref="workdd" format="yyyy-mm-dd"/>
- <col ref="datenm"/>
- <col disabled="true" ref="gbn" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>당직</label>
- <value>T</value>
- </item>
- <item>
- <label>OnCall</label>
- <value>O</value>
- </item>
- <item>
- <label>중환자실</label>
- <value>I</value>
- </item>
- <item>
- <label>응급실</label>
- <value>R</value>
- </item>
- <item>
- <label>병동</label>
- <value>W</value>
- </item>
- </choices>
- </col>
- <col ref="placenm"/>
- <col ref="drnm_d"/>
- <col ref="drnm_d2"/>
- <col ref="drnm_n"/>
- <col ref="bigo" type="input"/>
- <col ref="drid_d" visibility="hidden"/>
- <col ref="drid_d2" visibility="hidden"/>
- <col ref="drid_n" visibility="hidden"/>
- <col ref="ddeptcd" visibility="hidden"/>
- <col ref="ddeptnm" visibility="hidden"/>
- <col ref="d2deptcd" visibility="hidden"/>
- <col ref="d2deptnm" visibility="hidden"/>
- <col ref="ndeptcd" visibility="hidden"/>
- <col ref="ndeptnm" visibility="hidden"/>
- <col ref="placecd" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
-
- var curRow = grd_workerlist.mouseRow - 1;
-
- if (curRow < 1) return;
-
- var sCol = grd_workerlist.mouseCol;
- var sColNm = grd_workerlist.colAttribute(sCol, "ref");
-
-
- var del_workdd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/workdd");
- var del_gbn = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/gbn");
- var del_placecd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/placecd");
-
- var del_deptcd = ""
- var del_drnm = "";
- var del_duty = "";
-
- if (sColNm == "drnm_d") {
- del_deptcd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/ddeptcd");
- del_drnm = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/drnm_d");
- del_duty = "D";
- } else if (sColNm == "drnm_d2") {
- del_deptcd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/d2deptcd");
- del_drnm = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/drnm_d2");
- del_duty = "D2";
- } else if (sColNm == "drnm_n") {
- del_deptcd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/ndeptcd");
- del_drnm = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/drnm_n");
- del_duty = "N";
- } else {
- return;
- }
-
-
- var vbYes = messageBox("[" + del_workdd + "/" + del_duty + "/" + del_drnm + "] 일정을", "Q001");
-
- if (vbYes == 6) {
- fDelWorkDr (del_workdd, del_gbn, del_deptcd, del_placecd, del_duty);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var col = grd_workerlist.mouseCol;
- var clickColNm = grd_workerlist.colAttribute(col, "ref");
-
- if(clickColNm == "drnm_d" || clickColNm == "drnm_d2" || clickColNm == "drnm_n"){
- fSetWorkDr('ADD');//당직리스트에 선택된 당직대상자를 그리드에 세팅
- }
- ]]>
- </script>
- </datagrid>
- <caption id="cpt_worktitle" ref="/root/main/titleinfo/worktitle" class="tit_2" style="left:322px; top:88px; width:393px; height:13px; ">당직 리스트</caption>
- <caption id="caption1" style="left:10px; top:111px; width:91px; height:17px; font-weight:bold; ">진 료 과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/cond/orddeptcd" navindex="2" appearance="minimal" style="left:95px; top:111px; width:205px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/orddeptinfo/orddeptinfolist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- <!--itemset nodeset="/root/init/deptlist/orddept">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset-->
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
- // var isRefresh = isScheduleRefresh(false);
- //
- // if(isRefresh == 'N'){
- // grd_grpmaster.row = curRow;
- // return;
- // }
- // btn_search.dispatch('DOMActivate');
- fGetDrInfo();
- ]]>
- </script>
- </select1>
- <button id="btn_info" class="btn3_letter4" navindex="3" visibility="hidden" style="left:190px; top:65px; width:80px; height:22px; ">
- <caption>유의사항</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMMNE09003");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter4" disabled="true" navindex="3" visibility="hidden" style="left:107px; top:65px; width:80px; height:22px; ">
- <caption>처방현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter7" navindex="3" style="left:356px; top:65px; width:116px; height:22px; ">
- <caption>진료일정(외래)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPMB01900");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter4" navindex="3" style="left:275px; top:65px; width:80px; height:22px; ">
- <caption>휴진일정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPMB00900");
- ]]>
- </script>
- </button>
- <caption id="cap_worktime" style="left:10px; top:875px; width:985px; height:20px; font-size:12pt; font-weight:bold; color:#0000ff; ">※ 근무시간: DAY - 08:00 ~ 14:00, DAY2 - 14:00 ~ 20:00, NIGHT - 20:00 ~ 익일 08:00</caption>
- <caption id="caption7" style="left:10px; top:900px; width:985px; height:20px; font-size:12pt; font-weight:bold; color:#0000ff; ">※ 동일 근무시간 대에 휴진등록이 되어있으면 등록 불가, 동일 근무시간 대에 다른 중환자실/병동/응급실 중복 등록 불가</caption>
- <button id="button5" class="btn4_letter2" style="left:940px; top:65px; width:56px; height:22px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchym = model.getValue("/root/cond/srchym");
- var monthcnt = getDayCountForMonth(srchym.substring(0, 4), srchym.substring(4, 6)); //조회년월의 마지막일
-
- var sdate = srchym + '01';
- var edate = srchym + monthcnt;
- var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
- var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
-
- model.makeValue("/root/send/sdate", sdate);
- model.makeValue("/root/send/edate", edate);
- model.makeValue("/root/send/placecd", placecd);
- model.makeValue("/root/send/csflag", csflag);
-
- submit("TRMNE09006");
-
-
- var SheetName = srchym + " " + cmb_icu.label + "당직표";
- if(isNull(SheetName)) SheetName = "Sheet1";
-
- var fileName = window.fileDialog("save", ",", false, SheetName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- grd_excel.saveExcel(fileName, SheetName, false, false, "", "");
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_excel" nodeset="/root/temp/excelinfo" visibility="hidden" caption="중환자실명^당직일^구분^진료과목^의사형태^전담의^면허번호^사번" colsep="^" colwidth="180, 90, 50, 130, 80, 80, 70, 70" defaultrows="0" focuscolor="#ece1ec" rowsep="|" style="left:165px; top:235px; width:770px; height:246px; vertical-align:middle; ">
- <col ref="wardnm"/>
- <col ref="workdd" format="yyyy-mm-dd"/>
- <col ref="duty" style="text-align:center; "/>
- <col ref="deptnm"/>
- <col ref="jobposcd"/>
- <col ref="drnm"/>
- <col ref="licnsno"/>
- <col ref="drid"/>
- </datagrid>
- <button id="btn_prt2" class="btn4_letter6" style="left:625px; top:65px; width:104px; height:22px; ">
- <caption>근무표출력1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchym = model.getValue("/root/cond/srchym");
- var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
- var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
-
- if(isNull(placecd)) {
- messageBox("중환자실이 선택되지 않았습니다.", "E999");
- return;
- }
-
- model.makeValue("/root/send/gubun", "D"); // 프린트구분 표시근무(D:[D,D2] A:[D,D2,N])
- model.makeValue("/root/send/srchym", srchym);
- model.makeValue("/root/send/placecd", placecd);
- model.makeValue("/root/send/csflag", csflag);
-
- submit("TRMNE09008");
- var desNode = "/root/temp/printinfo";
- exeReportPreview("RPMNE09001", "XMLSTR", desNode);
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter6" style="left:730px; top:65px; width:104px; height:22px; ">
- <caption>근무표출력2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchym = model.getValue("/root/cond/srchym");
- var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
- var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
-
- if(isNull(placecd)) {
- messageBox("중환자실이 선택되지 않았습니다.", "E999");
- return;
- }
-
- model.makeValue("/root/send/gubun", "A"); // 프린트구분 표시근무(D:[D,D2] A:[D,D2,N])
- model.makeValue("/root/send/srchym", srchym);
- model.makeValue("/root/send/placecd", placecd);
- model.makeValue("/root/send/csflag", csflag);
-
- submit("TRMNE09008");
- var desNode = "/root/temp/printinfo";
- exeReportPreview("RPMNE09002", "XMLSTR", desNode);
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter6" style="left:835px; top:65px; width:104px; height:22px; ">
- <caption>근무표출력3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchym = model.getValue("/root/cond/srchym");
- var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
- var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
-
- if(isNull(placecd)) {
- messageBox("중환자실이 선택되지 않았습니다.", "E999");
- return;
- }
-
- model.makeValue("/root/send/gubun", "C"); // 프린트구분 표시근무(D:[D,D2] A:[D,D2,N])
- model.makeValue("/root/send/srchym", srchym);
- model.makeValue("/root/send/placecd", placecd);
- model.makeValue("/root/send/csflag", csflag);
-
- submit("TRMNE09008");
- var desNode = "/root/temp/printinfo";
- exeReportPreview("RPMNE09003", "XMLSTR", desNode);
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|