123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <?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>
- <list>
- <deptprvaliuselist/>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <dutyy/>
- <dutunitcd/>
- <dutunitnm/>
- <emplno/>
- <emplnm/>
- <prfshipflag/>
- <preststatcd/>
- <deptgb/>
- </retrparams>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRRPD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- </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/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- model.removenode("/root/main/list/deptprvaliuselist");
- misfMsterDetailSet(grd_dutsumlist, null, "TRRPD00201", "Y");
-
- misfComboComCdListMulti("R0058,R0146","cmb_prfshipflag,cmb_preststatcd");
- model.setValue("/root/send/retrparams/dutyy", getCurrentDate().substr(0, 4));
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate().substr(0, 8),"","Y");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- rpdfSetControlAuth();
- rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
-
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparams/dutunitcd", DUT_UNIT_CD);
- model.setValue("/root/send/retrparams/dutunitnm", DUT_UNIT_NM);
- addGridComboItem("cmb_prfshipflag", "전체", "","above");
- addGridComboItem("cmb_preststatcd", "전체", "","above");
- model.setValue("/root/send/retrparams/deptgb", "1");
-
- model.refresh();
-
- if (cmb_dutplce.value == "") {
- cmb_dutplce.select(0);
- }
- grd_dutsumlist.rowHeight(0) = 35;
-
- if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y") {
- cmb_instcd.disabled = false;
- }
-
- if(DUTY_PART_YN != "Y") {
- ipt_dutdeptcd.disabled = true;
- ipt_dutdeptnm.disabled = true;
- btn_dutdept.disabled = true;
- }
- }
-
- function fRetrieve() {
- if(model.getValue("/root/send/retrparams/dutunitcd") == "" && DUTY_PART_YN != "Y") {
- messageBox("근무부서를", "C001");
- return "dutunitval";
- }
-
- submit("TRRPD00701");
- var fNum = 0;
-
- for(var i=1; i<grd_dutsumlist.rows; i++) {
- for(var j=grd_dutsumlist.colRef("jan") - 1; j<=grd_dutsumlist.colRef("userate"); j++) {
- fNum = 0;
- fNum = parseFloat(grd_dutsumlist.valueMatrix(i, j));
-
- if(fNum == 0) {
- grd_dutsumlist.valueMatrix(i, j) = "0";
- }
- else {
- if( (fNum % parseInt(fNum)) == 0) {
- grd_dutsumlist.valueMatrix(i, j) = parseInt(fNum);
- }
- }
- }
-
- if(grd_dutsumlist.valueMatrix(i, grd_dutsumlist.colRef("deptnm")) == " 계") {
- grd_dutsumlist.rowStyle(i, "all", "background-color") = "#ffff99";
- }
- else {
- grd_dutsumlist.rowStyle(i, "all", "background-color") = "transparent";
- }
- }
- }
-
- function fPrint() {
- exeReportPreview("RPRPD00701", "XMLSTR");
- model.refresh();
- }
-
- function fSet1YearNurse() {
- var sEntcoDD = "";
- var iEnterDayCnt = 0;
- var iCurntDayCnt = 0;
-
- for(var i=2; i<grd_dutsumlist.rows-1; i++) {
- sEntcoDD = grd_dutsumlist.valueMatrix(i, grd_dutsumlist.colRef("entcodd"));
- iEnterDayCnt = parseInt( Math.floor( Date.parse( misfConvertChar2Date(sEntcoDD, "/")) / 8.64e7));
- iCurntDayCnt = parseInt( Math.floor( Date.parse( misfConvertChar2Date(getCurrentDate(), "/")) / 8.64e7));
-
- if(iCurntDayCnt - iEnterDayCnt <= 365) {
- grd_dutsumlist.cellStyle("background-image", i, grd_dutsumlist.colRef("emplnm")) = "../../../com/commonweb/images/input_s_essential.gif";
- grd_dutsumlist.cellStyle("background-position", i, grd_dutsumlist.colRef("emplnm")) = "center left";
- }
- else {
- grd_dutsumlist.rebuildStyle(i,grd_dutsumlist.colRef("emplnm"));
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부서별휴가사용현황</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <select1 id="cmb_preststatcd" ref="/root/send/retrparams/preststatcd" class="combo_search" navindex="7" visibility="hidden" appearance="minimal" style="left:1000px; top:18px; width:90px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" visibility="hidden" style="left:940px; top:19px; width:58px; height:17px; ">상태 :</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1110px; y1:17px; x2:1110px; y2:39px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:162px; height:14px; ">부서별휴가사용</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
- <datagrid id="grd_dutsumlist" nodeset="/root/main/list/deptprvaliuselist" backcoloralternate="transparent" caption="기관코드^기관명^부서코드^부 서^직위^사원번호^성명^연차^보휴^발생계^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^년차
사용계^보휴
사용계^잔여일수^사용율^입사일자^퇴사일자" colsep="^" colwidth="0, 0, 0, 134, 76, 70, 58, 43, 43, 43, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 45, 45, 55, 50, 74, 76" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1195px; height:661px; ">
- <col ref="instcd" visibility="visible"/>
- <col ref="instnm" visibility="visible"/>
- <col ref="dutplcedeptcd" visibility="visible"/>
- <col ref="deptnm" style="text-align:left; "/>
- <col ref="jobposnm" style="text-align:left; "/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col ref="yearno" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="healholi" visibility="hidden" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="genrsum" visibility="hidden" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="jan" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="feb" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="mar" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="apr" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="may" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="jun" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="jul" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="aug" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="sep" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="oct" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="nov" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="dec" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="usesum" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="usecaresum" visibility="hidden" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="spresum" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="userate" format="###.0 %" savetype="digit" style="text-align:right; padding-right:1; "/>
- <col ref="entcodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="retiredd" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dutsumlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
- <caption id="caption1" class="search_name" style="left:260px; top:19px; width:112px; height:17px; ">기준년도 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" disabled="true" navindex="1" appearance="minimal" style="left:98px; top:18px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_dutdept" class="icon_search" style="left:601px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + ipt_dutym.value+"31", "instcd,basedd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:437px; top:19px; width:88px; height:17px; ">소속부서 :</caption>
- <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="4" style="left:619px; top:18px; width:99px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- if(ipt_dutdeptnm.value == ipt_dutdeptnm.currentText) return;
-
- ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" navindex="3" maxlength="10" style="left:523px; top:18px; width:75px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- if(ipt_dutdeptcd.value == ipt_dutdeptcd.currentText) return;
-
- ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- fSet1YearNurse() ;
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:1128px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_dutsumlist.saveExcel(fileName, "sheetname:savetype", true, true, "", "");
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_prfshipflag" ref="/root/send/retrparams/prfshipflag" class="combo_search" navindex="7" appearance="minimal" style="left:942px; top:18px; width:98px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:855px; top:19px; width:88px; height:17px; ">급여분류 :</caption>
- <input id="ipt_dutym" ref="/root/send/retrparams/dutyy" maxlength="4" style="left:350px; top:18px; width:60px; height:19px; text-align:center; "/>
- <select1 id="combo1" ref="/root/send/retrparams/deptgb" appearance="minimal" style="left:725px; top:18px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>근무지</label>
- <value>1</value>
- </item>
- <item>
- <label>소속부서</label>
- <value>2</value>
- </item>
- <item>
- <label>소속과(팀)</label>
- <value>3</value>
- </item>
- <item>
- <label>소속부(실)</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_dutplce" ref="/root/send/retrparams/dutunitcd" class="combo_search" visibility="visible" appearance="minimal" style="left:523px; top:18px; width:195px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; 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>
|