123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <workerinfo>
- <workerinfolist/>
- </workerinfo>
- </main>
- <cond>
- <sdate/>
- <edate/>
- <gbn>E</gbn>
- <drid/>
- <srchym/>
- </cond>
- <init/>
- <send/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRMNE05901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
- </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="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInit() {
- var curym = getCurrentDate().substring(0, 6);
- model.makeValue("/root/cond/srchym", curym);
-
- model.refresh();
- }
-
- function fGetDrList() {
-
- var srchym = model.getValue("/root/cond/srchym");
- var sSdate = srchym + "01";
- var sEdate = srchym + getDayCountForMonth(srchym.substring(0, 4), srchym.substring(4, 6));
- model.setValue("/root/cond/sdate", sSdate);
- model.setValue("/root/cond/edate", sEdate);
-
- var sGbn = model.getValue("/root/cond/gbn");
-
- model.removeNodeset("/root/send/info");
- model.makeValue("/root/send/info/sdate", sSdate);
- model.makeValue("/root/send/info/edate", sEdate);
- model.makeValue("/root/send/info/gbn", sGbn);
-
- submit("TRMNE05901");
-
- var j = 1;
- for (var i = 1; i <= 23; i++) {
- grd_workerlist.ValueMatrix(0, j) = model.getValue("/root/main/workerinfo/workerinfolist[1]/dept" + i);
- j = j + 2;
- }
- }
-
- /**
- * @desc : 이전 년버튼 클릭시 - 전년도+월로 세팅
- * @
- * @param :
- * @return :
- * @author : dhkim 20090610
- * @---------------------------------------------------
- */
- function fClkBfYear(srchym){
-
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
-
- yyear--;
-
- srchym = yyear + mmont;
-
- model.setValue('/root/cond/srchym', srchym);
- model.refresh();
- }
- /**
- * @desc : 다음 년버튼 클릭시 - 다음년도+월로 세팅
- * @
- * @param :
- * @return :
- * @author : dhkim 20090610
- * @---------------------------------------------------
- */
- function fClkAfYear(srchym){
-
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
-
- yyear++;
-
- srchym = yyear + mmont;
-
- model.setValue('/root/cond/srchym', srchym);
- model.refresh();
- }
- /**
- * @desc : 이전 달버튼 클릭시 - 년도+전월 세팅
- * @
- * @param :
- * @return :
- * @author : dhkim 20090610
- * @---------------------------------------------------
- */
- function fClkBfMonth(srchym){
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
-
- mmont = mmont.toDate('MM').getAddDate(-1, "M").getDateFormat('MM');
- if(mmont == '12'){
- yyear--;
- }
- srchym = yyear + mmont;
-
- model.setValue('/root/cond/srchym', srchym);
- model.refresh();
- }
- /**
- * @desc : 다음 달버튼 클릭시 - 년도+다음월 세팅
- * @
- * @param :
- * @return :
- * @author : dhkim 20090610
- * @---------------------------------------------------
- */
- function fClkAfMonth(srchym){
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
- mmont = mmont.toDate('MM').getAddDate(+1, "M").getDateFormat('MM');
- if(mmont == '01'){
- yyear++;
- }
- srchym = yyear + mmont;
-
- model.setValue('/root/cond/srchym', srchym);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1100" pageheight="890" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:72px; width:1080px; height:790px; text-align:center; ">
- <line id="line3" class="line_1" style="x1:0px; y1:0px; x2:1080px; y2:0px; "/>
- <datagrid id="grd_workerlist" nodeset="/root/main/workerinfo/workerinfolist" caption="일자^진료과1^진료과1^진료과2^진료과2^진료과3^진료과3^진료과4^진료과4^진료과5^진료과5^진료과6^진료과6^진료과7^진료과7^진료과8^진료과8^진료과9^진료과9^진료과10^진료과10^진료과11^진료과11^진료과12^진료과12^진료과13^진료과13^진료과14^진료과14^진료과15^진료과15^진료과16^진료과16^진료과17^진료과17^진료과18^진료과18^진료과19^진료과19^진료과20^진료과20^진료과21^진료과21^진료과22^진료과22^진료과23^진료과23|일자^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처" colsep="^" colwidth="90, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100" frozencols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:1080px; height:785px; ">
- <col ref="workdd" format="yyyy-mm-dd"/>
- <col ref="dr1"/>
- <col ref="no1"/>
- <col ref="dr2"/>
- <col ref="no2"/>
- <col ref="dr3"/>
- <col ref="no3"/>
- <col ref="dr4"/>
- <col ref="no4"/>
- <col ref="dr5"/>
- <col ref="no5"/>
- <col ref="dr6"/>
- <col ref="no6"/>
- <col ref="dr7"/>
- <col ref="no7"/>
- <col ref="dr8"/>
- <col ref="no8"/>
- <col ref="dr9"/>
- <col ref="no9"/>
- <col ref="dr10"/>
- <col ref="no10"/>
- <col ref="dr11"/>
- <col ref="no11"/>
- <col ref="dr12"/>
- <col ref="no12"/>
- <col ref="dr13"/>
- <col ref="no13"/>
- <col ref="dr14"/>
- <col ref="no14"/>
- <col ref="dr15"/>
- <col ref="no15"/>
- <col ref="dr16"/>
- <col ref="no16"/>
- <col ref="dr17"/>
- <col ref="no17"/>
- <col ref="dr18"/>
- <col ref="no18"/>
- <col ref="dr19"/>
- <col ref="no19"/>
- <col ref="dr20"/>
- <col ref="no20"/>
- <col ref="dr21"/>
- <col ref="no21"/>
- <col ref="dr22"/>
- <col ref="no22"/>
- <col ref="dr23"/>
- <col ref="no23"/>
- </datagrid>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:720px; height:13px; ">기간별 응급실 당직 전문의 조회</caption>
- <group id="group4" style="left:1px; top:20px; width:1080px; height:50px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1080px; height:50px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:935px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDrList();
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <line id="line1" style="x1:923px; y1:9px; x2:923px; y2:38px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button3" class="btn1_letter3" navindex="3" style="left:995px; top:15px; width:68px; height:22px; ">
- <caption>EXCEL</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "기간별응급당직전문의", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(fileName != ""){
- grd_workerlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_bfyear" class="icon_pre_year" style="left:90px; top:17px; 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:17px; 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:17px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClkAfMonth(model.getValue('/root/cond/srchym'));
- ]]>
- </script>
- </button>
- <button id="btn_afyear" class="icon_next_year" style="left:235px; top:17px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClkAfYear(model.getValue('/root/cond/srchym'));
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:5px; top:14px; 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:15px; width:88px; height:19px; text-align:center; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|