123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" ytype="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>
- <daylist/>
- <dutlist>
- <dutschelist/>
- </dutlist>
- <print>
- <printlist/>
- <daylist/>
- </print>
- </main>
- <send>
- <instcd/>
- <dutym/>
- <deptkind>dpt</deptkind>
- </send>
- <init/>
- <hidden/>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRPD02206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/daylist"/>
- <submission id="TRRPD05201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/resltdata"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var arrDayMax = new Array();
- var arrEveningMax = new Array();
- var arrNightMax = new Array();
-
- var DUTCODE_FLAG = false;
- var ZOOM_FLAG = false;
-
- var MOUSE_DOWN = false;
- var FIRST_CHECK = false;
-
- var iDay1ColIdx = 10;
- var iDay31ColIdx = 42;
-
- var bFirst = true;
- var sCurYM = "";
- var SELECTED_ROW = -1;
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.removeNodeset("/root/main/dutlist/dutschelist");
-
- misfMsterDetailSet(grd_dutschelist, null, "TRRPD05201", "Y");
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- sCurYM = getCurrentDate().substr(0, 6);
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/dutym", getCurrentDate().substr(0, 6));
-
- if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
- {
- cmb_instcd.disabled = false;
- cmb_dutplce.disabled = false;
- }
-
- if(DUTY_PART_YN == "Y")
- {
- cmb_dutplce.disabled = false;
- }
- model.refresh();
- }
-
- // 조회
- function fRetrieve()
- {
- grd_dutschelist.rebuildStyle();
-
- misfMsterDetailRetrieve();
-
- submit("TRRPD02206");
- fSetCalendarScheList(); // 번표에 달력의 일자를 세팅한다.
- }
-
- function fSetCalendarScheList()
- {
- var basedd = new Array();
- var holiflag = new Array();
- var daynm = new Array();
-
- for( var i=1; i<=31; i++)
- {
- basedd[i - 1] = model.getValue("/root/main/daylist["+ i + "]/basedd");
- holiflag[i - 1] = model.getValue("/root/main/daylist["+ i + "]/holiflag");
- daynm[i - 1] = model.getValue("/root/main/daylist["+ i + "]/daynm");
-
- if(basedd[i - 1] == "")
- {
- grd_dutschelist.colHidden(i + iDay1ColIdx) = true;
- }
- else
- {
- grd_dutschelist.colHidden(i + iDay1ColIdx) = false;
- }
-
- if(holiflag[i - 1] == '4')
- {
- grd_dutschelist.colStyle((i + iDay1ColIdx), "all", "color") = "#0000FF";
- }
- else if(holiflag[i - 1] == '0')
- {
- grd_dutschelist.colStyle((i + iDay1ColIdx), "all", "color") = "#FF0000";
- }
- else
- {
- grd_dutschelist.colStyle((i + iDay1ColIdx), "all", "color") = "#000000";
- }
- }
-
- var sche_caption = grd_dutschelist.caption;
- var sche_split = sche_caption.split("^");
-
- sche_caption = "근무년월";
- man_caption = "Duty별 근무자수";
-
- for(var j=1; j<sche_split.length; j++ )
- {
- // alert(sche_split[j] + " " + j);
-
- if(j > 60 && j < 92)
- {
- sche_caption = sche_caption + "^" + daynm[j - 61];
- }
- else
- {
- sche_caption = sche_caption + "^" + sche_split[j];
- }
- }
- grd_dutschelist.caption = sche_caption;
- }
-
- // 근무년월 변경 이벤트
- function fDutYMValueChanged()
- {
- submit("TRRPD02206");
- btn_search.dispatch("DOMActivate");
- }
-
- function fPrint()
- {
- exeReportPreview("RPRPD02201", "XMLSTR");
- model.removeNodeset("/root/main/print/printlist");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">중간관리자근무표</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:1195px; y2:64px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:49px; width:109px; height:13px; ">근무 스케줄</caption>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:32px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:31px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:523px; top:8px; width:86px; height:17px; ">부서구분 :</caption>
- <line id="line3" class="line_4" style="x1:1110px; y1:2px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:298px; top:7px; width:91px; height:17px; ">근무년월 :</caption>
- <input id="ipt_dutym" ref="/root/send/dutym" class="input_search" inputtype="date" format="yyyy-mm" style="left:385px; top:6px; width:110px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_dutym.value) == "6" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- fDutYMValueChanged();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1125px; top:5px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <select1 id="cmb_dutplce" ref="/root/send/deptkind" class="combo_search" disabled="true" visibility="visible" appearance="minimal" style="left:610px; top:6px; width:120px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>전체</label>
- <value>all</value>
- </item>
- <item>
- <label>간호부</label>
- <value>dpt</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" disabled="true" navindex="1" appearance="minimal" style="left:92px; top:6px; width:178px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption29" class="search_name" style="left:4px; top:7px; width:86px; height:17px; ">근무기관 :</caption>
- </group>
- <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1127px; top:44px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sName = cmb_instcd.label + " " + model.getValue("/root/send/dutym").substr(0, 4) + "년 " + model.getValue("/root/send/dutym").substr(4, 2) + "월 " + "중간 관리자 근무표 (" + cmb_dutplce.label + ")";
- misfSaveExcel(grd_dutschelist, sName);
- ]]>
- </script>
- </button>
- <button id="btn_retrsrvp" class="btn2_letter8" visibility="hidden" style="left:1018px; top:44px; width:108px; height:19px; ">
- <caption>복무계획신청내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/winparams/instcd", model.getValue("/root/send/instcd"));
- model.setValue("/root/send/winparams/dutunitcd", model.getValue("/root/send/dutunitcd"));
- model.setValue("/root/send/winparams/dutym", model.getValue("/root/send/dutym"));
-
- modal("SPRPD02610", "", "", "", "", "/root/send/winparams", "/root/target" );
- ]]>
- </script>
- </button>
- <datagrid id="grd_dutschelist" nodeset="/root/main/dutlist/dutschelist" class="text_center" allowuserresize="false" backcoloralternate="transparent" caption="근무년월^근무부서^신청예정
실시구분^기관코드^사원번호^성명^근무지부서코드^근무부서^직책^P^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^Total
휴가수^사용
휴가수^보호
휴가수^Day
합계^Evening
합계^Night
합계^Off
합계^시간제
근무합계^시간제
주휴합계^비고^최종수정일시|근무년월^근무부서^신청예정
실시구분^기관코드^사원번호^성명^근무지부서코드^근무부서^직책^P^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^Total
휴가수^사용
휴가수^보호
휴가수^Day
합계^Evening
합계^Night
합계^Off
합계^시간제
근무합계^시간제
주휴합계^비고^최종수정일시" colsep="^" colwidth="0, 0, 0, 0, 70, 60, 0, 100, 70, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 53, 53, 53, 53, 53, 53, 53, 55, 55, 150" explorerbar="sort" frozencols="6" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:69px; width:1195px; height:646px; ">
- <col ref="dutym" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <col ref="appscheexecflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col ref="dutplcedeptcdtemp" visibility="hidden"/>
- <col ref="dutplcedeptnm"/>
- <col ref="jobrespnm"/>
- <col ref="part" style="text-align:center; "/>
- <col ref="day01" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day02" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day03" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day04" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day05" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day06" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day07" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day08" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day09" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day10" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day11" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day12" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day13" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day14" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day15" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day16" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day17" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day18" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day19" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day20" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day21" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day22" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day23" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day24" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day25" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day26" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day27" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day28" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day29" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day30" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="day31" maxlength="4" _chartype="upper" style="font-family:돋움체; font-size:9pt; "/>
- <col ref="holitotcnt" style="text-align:right; padding-right:2; "/>
- <col ref="useholidayno" style="text-align:right; padding-right:2; "/>
- <col ref="mensholidayno" format="9999" style="text-align:right; padding-right:2; "/>
- <col ref="daysum" format="9999" style="text-align:right; padding-right:2; "/>
- <col ref="eveningsum" format="9999" style="text-align:right; padding-right:2; "/>
- <col ref="nigtsum" format="9999" style="text-align:right; padding-right:2; "/>
- <col ref="offsum" format="9999" style="left:993px; top:0px; width:0px; height:0px; text-align:right; padding-right:2; "/>
- <col ref="surp1_totduttm" format="9999" style="text-align:right; padding-right:2; "/>
- <col ref="surp2_otofftm" format="9999" style="text-align:right; padding-right:2; "/>
- <col ref="cmt" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dutschelist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|