123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453 |
- <?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>SMRPD02500_근태자료출력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <dutcdlist/>
- <dutcdlist/>
- </list>
- <resn>
- <reqresn/>
- <dutresn/>
- </resn>
- <daylist/>
- <resltdata>
- <dutschelist/>
- </resltdata>
- <resnlist/>
- <stndduttableitem>
- <day/>
- <evening/>
- <night/>
- <total/>
- </stndduttableitem>
- <authcheck>
- <check/>
- </authcheck>
- <close>
- <closeyn>
- <cnt/>
- <closeyn/>
- </closeyn>
- </close>
- <print>
- <printlist/>
- <daylist/>
- </print>
- </main>
- <send>
- <instcd/>
- <dutym/>
- <dutunitcd/>
- <dutunitnm/>
- <appscheexecflag/>
- <jobkind/>
- <emplno/>
- <dutdd/>
- <dutschelist/>
- <anualcalcyy/>
- <resnlist/>
- <apryn/>
- <deptpryn>Y</deptpryn>
- <params>
- <instcd/>
- <dutym/>
- <dutunitcd/>
- <appscheexecflag/>
- <flag/>
- </params>
- <dutcdparams>
- <instcd/>
- <dutunitcd/>
- </dutcdparams>
- <winparams>
- <instcd/>
- <dutunitcd/>
- <dutym/>
- </winparams>
- </send>
- <init/>
- <hidden/>
- <temp>
- </temp>
- <codedata>
- <popupmenu>
- <dutschelist>
- </dutschelist>
- </popupmenu>
- <popuptemp>
- <dutschelist>
- <item>
- <name>사유 및 helper 등록</name>
- <func>fOpenPopup</func>
- </item>
- <item>
- <name>개인근무변경신청</name>
- <func>fOpenPopupChngApp</func>
- </item>
- <item>
- <name>지우기</name>
- <func>fGridCellClear</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- </dutschelist>
- </popuptemp>
- </codedata>
- </root>
- </instance>
- <submission id="TRRPD02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutcdparams" resultref="/root/main/list"/>
- <submission id="TRRPD02204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/authcheck"/>
- <submission id="TRRPD02206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/daylist"/>
- <submission id="TRRPD02208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/close"/>
- <submission id="TRRPD05501" 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 iDay1ColIdx = 6;
- var iDay31ColIdx = 38;
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.removeNodeset("/root/main/resltdata/dutschelist");
- model.removeNodeset("/root/main/resltdata/dutmancntlist");
- model.removeNodeset("/root/main/resnlist");
- model.removeNodeset("/root/main/list/dutcdlist");
- model.resetInstanceNode("/root/main/yearnoinfoitem");
- model.resetInstanceNode("/root/main/resn");
-
- misfMsterDetailSet(grd_dutschelist, null, "TRRPD05501", "Y");
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate().substr(0, 8),"","N");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- model.setValue("/root/send/appscheexecflag", "2");
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/dutym", getCurrentDate().substr(0, 6));
- model.setValue("/root/send/dutcdparams/instcd", getUserInfo("dutplceinstcd"));
-
- if ( getUserInfo("dutplceinstcd") == "001" ) {
- cmb_instcd.disabled = false;
- }
-
- ipt_dutym.dispatch("xforms-value-changed");
- model.refresh();
- }
-
- // 일자별 근무 세팅
- function fSetScheDutCd(sDutCd)
- {
- var iPreRowIdx = 0;
-
- for(var i=0; i<grd_dutschelist.selectedCells.length; i++) {
- var iColIdx = grd_dutschelist.selectedCells.item(i).col;
- var iRowIdx = grd_dutschelist.selectedCells.item(i).row;
-
- if(iColIdx <= iDay1ColIdx || iColIdx >= iDay31ColIdx) {
- continue;
- }
-
- if(grd_dutschelist.valueMatrix(iRowIdx, grd_dutschelist.colRef("suppflag")) == "1") {
- continue;
- }
-
- if(grd_dutschelist.colRef("brngfwrdoffqty") <= iColIdx) continue;
- if(grd_dutschelist.rowStyle(iRowIdx, "data", "background-color") == "#E5EFFC") continue;
-
- grd_dutschelist.valueMatrix(iRowIdx, iColIdx) = sDutCd;
- if(iPreRowIdx != iRowIdx) {
- fStatusCheck(iRowIdx);
- iPreRowIdx = iRowIdx;
- }
-
- var iRet = fScheValidCheck_Under1Year(iRowIdx, iColIdx);
- if(iRet != 6 && iRet != 100) {
- grd_dutschelist.valueMatrix(iRowIdx, iColIdx) = "";
- grd_dutschelist.row = iRowIdx;
- grd_dutschelist.col = iColIdx;
- return;
- }
- else if(iRet != 100 && iRet == 6) {
- grd_dutschelist.valueMatrix(iRowIdx, iColIdx) = "V1";
- }
-
- // 신청 OFF, 실시 밤근무 체크
- if(fScheValidCheck_DutSet(iRowIdx, iColIdx) != 6) {
- grd_dutschelist.valueMatrix(iRowIdx, iColIdx) = "";
- grd_dutschelist.row = iRowIdx;
- grd_dutschelist.col = iColIdx;
- return;
- }
-
- // 5일연속 근무 체크
- if(fScheValidCheck_5DayDut(iRowIdx, iColIdx) != 6) {
- grd_dutschelist.valueMatrix(iRowIdx, iColIdx) = "";
- grd_dutschelist.row = iRowIdx;
- grd_dutschelist.col = iColIdx;
- return;
- }
-
- if(fScheValidCheck_OffCnt(iRowIdx, iColIdx) != 6) {
- grd_dutschelist.valueMatrix(iRowIdx, iColIdx) = "";
- grd_dutschelist.row = iRowIdx;
- grd_dutschelist.col = iColIdx;
- return;
- }
-
- // 신청 OFF, 실시 밤근무 체크
- fScheValidCheck_NightVacation(iRowIdx, iColIdx);
- if(fSetYearHoliOffCntByDutCd(iRowIdx, iColIdx)) {
- grd_dutschelist.valueMatrix(iRowIdx, iColIdx) = "";
- grd_dutschelist.row = iRowIdx;
- grd_dutschelist.col = iColIdx;
- }
- }
- if(grd_dutschelist.col + 1 != iDay31ColIdx - 2) {
- grd_dutschelist.col = grd_dutschelist.col + 1;
- }
- fSetYearHoliOffCnt();
- }
-
- // 조회
- function fRetrieve()
- {
- grd_dutschelist.rebuildStyle();
-
- if(model.getValue("/root/send/dutym") == "") {
- messageBox("적용년월을", "C002");
- return;
- }
-
- model.setValue("/root/send/emplno", "");
- model.setValue("/root/send/anualcalcyy", ipt_dutym.value.substr(0, 4));
- misfMsterDetailRetrieve();
-
- fSetScheFlagRowStyle(); // 실시일때와, 확정일때 로우스타일을 바꾼다.
- fSetCalendarScheList(); // 번표에 달력의 일자를 세팅한다.
- }
-
- function fSetScheFlagRowStyle()
- {
- for(var i=2 ; i<grd_dutschelist.rows; i++) {
- if(model.getValue("/root/send/appscheexecflag") == "3") {
- misfSetReadOnlyCol(grd_dutschelist, "part", true, i);
- }
- else {
- misfSetReadOnlyCol(grd_dutschelist, "part", false, i);
- grd_dutschelist.rowStyle(i, "data", "background-color") = "#FFFFFF";
- }
-
- var sJobKindCd = model.getValue("/root/main/resltdata/dutschelist[" + (i - 1) +"]/jobkindcd");
- if(sJobKindCd == "2820") {
- grd_dutschelist.rowStyle(i, "data", "background-color") = "#FEF2FE";
- }
- }
- }
-
- 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;
- }
- }
-
- var sche_caption = grd_dutschelist.caption;
- var sche_split = sche_caption.split("^");
-
- sche_caption = "기관코드";
- for(var j=1; j<sche_split.length; j++ ) {
- if(j > 44 && j < 76) {
- sche_caption = sche_caption + "^" + daynm[j - 45];
- }
- else {
- sche_caption = sche_caption + "^" + sche_split[j];
- }
- }
- grd_dutschelist.caption = sche_caption;
- }
-
- // 근무년월 변경 이벤트
- function fDutYMValueChanged()
- {
- model.removenode("/root/main/close");
- submit("TRRPD02208");
-
- submit("TRRPD02206");
- }
- ]]>
- </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:74px; x2:1195px; y2:74px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:59px; width:109px; height:13px; ">근무 스케줄</caption>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:40px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line3" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:393px; top:9px; width:91px; height:17px; ">근무년월 :</caption>
- <caption id="caption2" class="search_name" style="left:870px; top:9px; width:68px; height:17px; ">구분 :</caption>
- <input id="ipt_dutym" ref="/root/send/dutym" class="input_search" inputtype="date" format="yyyy-mm" style="left:480px; top:9px; 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" ) {
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- fDutYMValueChanged();
- fRetrieve() ;
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_dutym.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- <select1 id="rdo_appscheexecflag" ref="/root/send/appscheexecflag" appearance="full" cellspacing="10" cols="2" overflow="hidden" style="left:935px; top:10px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>실시</label>
- <value>2</value>
- </item>
- <item>
- <label>확정</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:638px; top:9px; width:90px; height:17px; ">직 종 :</caption>
- <select1 id="cmb_jobkind" ref="/root/send/jobkind" class="combo_search" visibility="visible" appearance="minimal" style="left:725px; top:9px; width:110px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>간호직</label>
- <value>1</value>
- </item>
- <item>
- <label>병원지원직</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" disabled="true" navindex="1" appearance="minimal" style="left:102px; top:9px; width:243px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/dutcdparams/instcd", cmb_instcd.value)
- ]]>
- </script>
- </select1>
- <caption id="caption29" class="search_name" style="left:14px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
- </group>
- <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:54px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_dutschelist);
- ]]>
- </script>
- </button>
- <datagrid id="grd_dutschelist" nodeset="/root/main/resltdata/dutschelist" class="text_center" allowuserresize="false" backcoloralternate="transparent" 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^월
사용
휴가^발생
휴가^1년
미만
휴가|기관코드^기관^사원번호^성명^근무지^직종^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^월
사용
휴가^발생
휴가^1년
미만
휴가" colsep="^" colwidth="100, 70, 60, 60, 100, 70, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 40, 40, 40" explorerbar="sort" frozencols="4" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:1px; top:79px; width:1193px; height:641px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="instnm" visibility="hidden"/>
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col ref="dutplcedeptnm"/>
- <col ref="jobkindnm"/>
- <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="monthv"/>
- <col ref="yearv"/>
- <col ref="oneyearunderv"/>
- <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; "/>
- <input id="ipt_cnt" ref="/root/main/close/closeyn/cnt" visibility="hidden" inputtype="input" style="left:875px; top:5px; width:24px; height:19px; "/>
- <input id="ipt_closeyn" ref="/root/main/close/closeyn/closeyn" visibility="hidden" inputtype="input" style="left:900px; top:5px; width:24px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|