123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <schedule>
- <dutschesumlist/>
- </schedule>
- <holiday>
- <daylist/>
- </holiday>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <dutym/>
- <dutplcedeptcd/>
- <dutplcedeptnm/>
- <teamcd/>
- <teamnm/>
- <emplno/>
- <emplnm/>
- </retrparams>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <submission id="TRRPD11401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TRRPD02005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/holiday/daylist"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var DAY_1_COLIDX = 3;
- var DAY_31_COLIDX = 34;
- var basedd = new Array();
- var holiflag = new Array();
- var daynm = new Array();
- var baseday = new Array();
-
- function fInit()
- {
- model.removenode("/root/main/schedule/dutschesumlist");
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparams/dutym", getCurrentDate().substr(0, 6));
-
- if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
- {
- cmb_instcd.disabled = false;
- }
- else
- {
- cmb_instcd.disabled = true;
- }
-
- submit("TRRPD02005");
- fSetGridDayforMonth();
-
- grd_dutschesumlist.rowHeight(0) = 25;
- grd_dutschesumlist.rowHeight(1) = 25;
-
- model.refresh();
- }
-
- function fSetGridDayforMonth()
- {
- fSetHolidayColor();
- var sche_caption = grd_dutschesumlist.caption;
- var sche_split = sche_caption.split("^");
-
- sche_caption = "부서";
- for(var j=1; j < sche_split.length; j ++ )
- {
- if(j > 36 && j < 68){
- sche_caption = sche_caption + "^" + daynm[j - 37];
- }else if(j > 2 && j < 34){
- sche_caption = sche_caption + "^" + baseday[j - 3];
- }else{
- sche_caption = sche_caption + "^" + sche_split[j];
- }
- }
- grd_dutschesumlist.caption = sche_caption;
- }
-
- function fSetHolidayColor()
- {
- for (var i=1; i<=31; i++)
- {
- basedd[i - 1] = model.getValue("/root/main/holiday/daylist["+ i + "]/basedd");
- holiflag[i - 1] = model.getValue("/root/main/holiday/daylist["+ i + "]/holiflag");
- daynm[i - 1] = model.getValue("/root/main/holiday/daylist["+ i + "]/daynm");
- baseday[i - 1] = model.getValue("/root/main/holiday/daylist["+ i + "]/basedd").substr(6, 2);
-
- if(basedd[i-1] == "")
- {
- grd_dutschesumlist.colHidden(i + DAY_1_COLIDX) = true;
- }
- else
- {
- grd_dutschesumlist.colHidden(i + DAY_1_COLIDX) = false;
- }
-
- if(holiflag[i - 1] == '4')
- {
- grd_dutschesumlist.colStyle((i + DAY_1_COLIDX), "all", "color") = "#0000FF";
- }
- else if(holiflag[i - 1] == '0')
- {
- grd_dutschesumlist.colStyle((i + DAY_1_COLIDX), "all", "color") = "#FF0000";
- }
- else
- {
- grd_dutschesumlist.colStyle((i + DAY_1_COLIDX), "all", "color") = "#000000";
- }
- }
- }
- ]]>
- </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: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:89px; x2:1195px; y2:89px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:74px; width:139px; height:13px; ">근무 스케줄</caption>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:56px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:56px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:342px; top:8px; width:86px; height:17px; ">근무년월 :</caption>
- <caption id="caption1" class="search_name" style="left:16px; top:32px; width:86px; height:17px; ">소속부서 :</caption>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:666px; top:32px; width:86px; height:17px; ">사원번호 :</caption>
- <line id="line5" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="search_name" style="left:341px; top:32px; width:87px; height:17px; ">팀 :</caption>
- <input id="ipt_dutym" ref="/root/send/retrparams/dutym" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm" style="left:430px; top:7px; 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/retrparams/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- submit("TRRPD02005");
- fSetGridDayforMonth();
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_dutplcedeptcd" ref="/root/send/retrparams/dutplcedeptcd" class="input_search" navindex="2" maxlength="10" style="left:104px; top:31px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfDeptValidCheck("dutplcedeptcd,dutplcedeptnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfDeptValidCheck("dutplcedeptcd,dutplcedeptnm");
- ]]>
- </script>
- </input>
- <input id="ipt_dutplcedeptnm" ref="/root/send/retrparams/dutplcedeptnm" class="input_search" navindex="3" style="left:208px; top:31px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfDeptValidCheck("dutplcedeptcd,dutplcedeptnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfDeptValidCheck("dutplcedeptcd,dutplcedeptnm");
- ]]>
- </script>
- </input>
- <button id="btn_dutplcedepthelp" class="icon_search" style="left:188px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenDeptCdHelp(ipt_dutplcedeptcd, "dutplcedeptcd,dutplcedeptnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_teamcd" ref="/root/send/retrparams/teamcd" class="input_search" navindex="4" maxlength="10" style="left:430px; top:31px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfDeptValidCheck("teamcd,teamnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfDeptValidCheck("teamcd,teamnm");
- ]]>
- </script>
- </input>
- <input id="ipt_teamnm" ref="/root/send/retrparams/teamnm" class="input_search" navindex="5" style="left:535px; top:31px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfDeptValidCheck("teamcd,teamnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfDeptValidCheck("teamcd,teamnm");
- ]]>
- </script>
- </input>
- <button id="btn_teamhelp" class="icon_search" style="left:514px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenDeptCdHelp(ipt_dutplcedeptcd, "teamcd,teamnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplno" ref="/root/send/retrparams/emplno" class="input_search" navindex="6" visibility="hidden" style="left:754px; top:31px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- fDutCdRetreive();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- fDutCdRetreive();
- ]]>
- </script>
- </input>
- <input id="ipt_emplnm" ref="/root/send/retrparams/emplnm" class="input_search" navindex="7" visibility="hidden" style="left:845px; top:31px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplnm.value == ipt_emplnm.currentText) return;
- ipt_emplnm.value = ipt_emplnm.currentText;
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- fDutCdRetreive();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- fDutCdRetreive();
- ]]>
- </script>
- </input>
- <button id="btn_emplhelp" class="icon_search" visibility="hidden" style="left:824px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutplcedeptcd,dutplcedeptnm", "", "N");
- fDutCdRetreive();
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" navindex="8" selected="true" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRPD11401");
- fSetHolidayColor();
-
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:105px; top:7px; width:218px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">소속기관 :</caption>
- </group>
- <datagrid id="grd_dutschesumlist" nodeset="/root/main/list/dutschesumlist" caption="부서^직원구분^Duty^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^caption1|부서^직원구분^Duty^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^caption1" colsep="^" colwidth="111, 70, 35, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 32, 28" frozencols="3" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:94px; width:1195px; height:640px; ">
- <col ref="dutplcedeptnm"/>
- <col ref="jobposnm" style="text-align:center; "/>
- <col ref="duty" style="text-align:center; "/>
- <col ref="day01" style="text-align:center; "/>
- <col ref="day02" style="text-align:center; "/>
- <col ref="day03" style="text-align:center; "/>
- <col ref="day04" style="text-align:center; "/>
- <col ref="day05" style="text-align:center; "/>
- <col ref="day06" style="text-align:center; "/>
- <col ref="day07" style="text-align:center; "/>
- <col ref="day08" style="text-align:center; "/>
- <col ref="day09" style="text-align:center; "/>
- <col ref="day10" style="text-align:center; "/>
- <col ref="day11" style="text-align:center; "/>
- <col ref="day12" style="text-align:center; "/>
- <col ref="day13" style="text-align:center; "/>
- <col ref="day14" style="text-align:center; "/>
- <col ref="day15" style="text-align:center; "/>
- <col ref="day16" style="text-align:center; "/>
- <col ref="day17" style="text-align:center; "/>
- <col ref="day18" style="text-align:center; "/>
- <col ref="day19" style="text-align:center; "/>
- <col ref="day20" style="text-align:center; "/>
- <col ref="day21" style="text-align:center; "/>
- <col ref="day22" style="text-align:center; "/>
- <col ref="day23" style="text-align:center; "/>
- <col ref="day24" style="text-align:center; "/>
- <col ref="day25" style="text-align:center; "/>
- <col ref="day26" style="text-align:center; "/>
- <col ref="day27" style="text-align:center; "/>
- <col ref="day28" style="text-align:center; "/>
- <col ref="day29" style="text-align:center; "/>
- <col ref="day30" style="text-align:center; "/>
- <col ref="day31" style="text-align:center; "/>
- <col visibility="hidden"/>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter4" style="left:1125px; top:68px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_dutschesumlist);
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="button89" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|