123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- <?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>SMRPS04700_부서교육등록관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <educlist/>
- </main>
- <send>
- <search>
- <appfromyy/>
- <educflag/>
- <dutinstcd/>
- <dutdeptnm/>
- <dutdeptcd/>
- <dutteamnm/>
- <dutteamcd/>
- <dutunitnm/>
- <dutunitcd/>
- <apptoyy/>
- <emplno/>
- <grdunitcd/>
- <posinstcd/>
- <instcd/>
- </search>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_educlist);
- grd_educlist.rowHeight(0) = 40;
- misfMsterDetailSet(grd_educlist,null, "TRRPS04001" ,"Y");
-
- misfComboComCdListMulti("Z0007,Z0007", "cmb_dutinstcd,grd_educlist.instcd", null, "Y");
- rpsEducSetComboList("M01-007,M01-007", "cmb_educflag,grd_educlist.educflag", "Y");
-
- misfGetUserAuth();
-
- // user정보조회
- model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
- submit("TRRPS04000");
-
- var curdate = getCurrentDate();
- model.setValue(ipt_appfromyy.attribute("ref") , curdate.substr(0, 4));
- model.setValue(ipt_apptoyy.attribute("ref") , curdate.substr(0, 4));
- model.setValue(cmb_dutinstcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutplceinst"));
-
- if ( DUTY_EDU_YN == "Y" || DUTY_PART_YN == "Y" ){
- cmb_dutinstcd.disabled = false;
- ipt_dutdeptnm.disabled = false;
- ipt_dutteamnm.disabled = false;
- ipt_dutunitnm.disabled = false;
- btn_dept.disabled = false;
- btn_team.disabled = false;
- btn_unit.disabled = false;
- }
- else {
- model.setValue(ipt_dutdeptnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue(ipt_dutdeptcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue(ipt_dutteamnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue(ipt_dutteamcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamcd"));
- model.setValue(ipt_dutunitnm.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitnm"));
- model.setValue(ipt_dutunitcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitcd"));
-
- fCheckDisabled();
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRPS04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/emplinfo"/>
- <submission id="TRRPS04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/educlist"/>
- <submission id="TRRPS04999" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/deptadmin"/>
- </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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- function fCheckAdmin() {
- // 부서교육관리자로 등록된 사람인지 체크
- model.setValue("/root/send/search/instcd", model.getValue("/root/init/emplinfo/dutplceinst"));
- submit("TRRPS04999");
-
- if( model.getValue("/root/init/deptadmin/emplno") == ipt_emplno.value ) {
- btn_search.disabled = false;
- }
- else {
- btn_search.disabled = true;
- }
- model.refresh();
- }
-
- function fCheckDisabled () {
- fCheckAdmin();
-
- cmb_dutinstcd.disabled = true;
-
- if( model.getValue("/root/init/deptadmin/teamyn") == "Y") {
- ipt_dutteamnm.disabled = false;
- ipt_dutunitnm.disabled = false;
- btn_team.disabled = false;
- btn_unit.disabled = false;
- }
- else if (model.getValue("/root/init/deptadmin/unityn") == "Y") {
- ipt_dutunitnm.disabled = false;
- btn_unit.disabled = false;
- }
- else {
- ipt_dutteamnm.disabled = true;
- ipt_dutunitnm.disabled = true;
- btn_team.disabled = true;
- btn_unit.disabled = true;
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1113px; top:32px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appfromyy")) return;
- if(!isRequiredControls("ipt_appftoyy")) return;
- if(!isRequiredControls("cmb_dutinstcd")) return;
- submit("TRRPS04701");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1090px; y1:14px; x2:1090px; y2:71px; "/>
- <line id="line8" class="line_1" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:84px; width:169px; height:13px; ">부서교육목록</caption>
- <caption id="cap_appfromyy" class="search_name" style="left:61px; top:18px; width:101px; height:17px; ">년 도 :</caption>
- <input id="ipt_appfromyy" ref="/root/send/search/appfromyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:135px; top:18px; width:60px; height:19px; text-align:center; "/>
- <caption id="cap_educflag" class="search_name" style="left:375px; top:20px; width:101px; height:17px; ">교육구분 :</caption>
- <select1 id="cmb_educflag" ref="/root/send/search/educflag" class="combo_search" appearance="minimal" style="left:460px; top:20px; width:135px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_init" class="btn2_letter4" style="left:1130px; top:78px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "") {
- grd_educlist.saveExcel(fileName,"부서교육등록관리",false);
- }
- ]]>
- </script>
- </button>
- <input id="ipt_dutdeptnm" ref="/root/send/search/dutdeptnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:135px; top:46px; width:140px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_dutdeptnm.value.getByteLength() == '0' ) {
- ipt_dutdeptcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/search/dutdeptcd" disabled="true" visibility="hidden" style="left:186px; top:46px; width:50px; height:19px; "/>
- <input id="ipt_dutteamnm" ref="/root/send/search/dutteamnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:460px; top:46px; width:135px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_dutteamnm.value.getByteLength() == '0' ) {
- ipt_dutteamcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_dutteamcd" ref="/root/send/search/dutteamcd" disabled="true" visibility="hidden" style="left:510px; top:46px; width:50px; height:19px; "/>
- <button id="btn_unit" class="icon_search" disabled="true" style="left:970px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var unitcd = ipt_dutunitcd.value;
- var unitnm = ipt_dutunitnm.value;
-
- rpsfEducOpenPopUpList("07", ipt_dutunitnm, "", "dutunitcd,dutgunitnm", cmb_dutinstcd.value, "instcd");
-
- if ( DUTY_EDU_YN == "Y" || DUTY_PART_YN == "Y" ){
- // unit이 달라지면 상위 부서도 가져온다..
- model.setValue("/root/send/search/grdunitcd", ipt_dutunitcd.value);
- model.setValue("/root/send/search/posinstcd", cmb_dutinstcd.value);
- model.setValue("/root/send/search/emplno", "" );
- submit("TRRPS04000");
-
- model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
- model.setValue("/root/send/search/dutdeptnm" , model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue("/root/send/search/dutdeptcd" , model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue("/root/send/search/dutteamnm" , model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue("/root/send/search/dutteamcd" , model.getValue("/root/init/emplinfo/dutteamcd"));
- model.setValue("/root/send/search/dutunitnm" , model.getValue("/root/init/emplinfo/dutunitnm"));
- model.setValue("/root/send/search/dutunitcd" , model.getValue("/root/init/emplinfo/dutunitcd"));
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:721px; top:46px; width:86px; height:17px; ">부 서 :</caption>
- <input id="ipt_dutunitnm" ref="/root/send/search/dutunitnm" class="input_search" disabled="true" appearance="input" style="left:805px; top:46px; width:160px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_dutunitnm.value.getByteLength() == '0' ) {
- ipt_dutunitcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_dutunitcd" ref="/root/send/search/dutunitcd" disabled="true" visibility="hidden" style="left:875px; top:46px; width:85px; height:19px; text-align:center; "/>
- <button id="btn_dept" class="icon_search" disabled="true" style="left:279px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpsfEducOpenPopUpList("05", ipt_dutdeptnm, "", "dutdeptcd,dutdeptnm", cmb_dutinstcd.value, "instcd");
- rpsfEducOpenPopUpList("05", ipt_dutdeptnm, "", "dutdeptcd,dutdeptnm", cmb_dutinstcd.value, "instcd");
-
- // 부(실)을 변경하면 과(팀), 부서는 모두 공백으로 변경한다.
- model.setValue("/root/send/search/dutteamnm", "");
- model.setValue("/root/send/search/dutteamcd", "");
- model.setValue("/root/send/search/dutunitnm", "");
- model.setValue("/root/send/search/dutunitcd", "");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:375px; top:46px; width:86px; height:17px; ">과 (팀) :</caption>
- <caption id="caption2" class="search_name" style="left:61px; top:46px; width:86px; height:17px; ">부(실) :</caption>
- <button id="btn_team" class="icon_search" disabled="true" style="left:600px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpsfEducOpenPopUpList("06", ipt_dutteamnm, "", "dutteamcd,dutteamnm", cmb_dutinstcd.value, "instcd");
- // 과(팀)을 변경하면 부서는 모두 공백으로 변경한다.
- model.setValue("/root/send/search/dutunitnm", "");
- model.setValue("/root/send/search/dutunitcd", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_dutinstcd" ref="/root/send/search/dutinstcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:805px; top:20px; width:185px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:721px; top:20px; width:85px; height:17px; ">기 관 :</caption>
- <input id="ipt_apptoyy" ref="/root/send/search/apptoyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:215px; top:18px; width:60px; height:19px; text-align:center; "/>
- <caption id="caption4" style="left:200px; top:22px; width:15px; height:15px; ">~</caption>
- <datagrid id="grd_educlist" nodeset="/root/main/educlist" caption="기관^부(실)코드^부(실)^과(팀)코드^과(팀)^부서코드^부서^교육구분^연간교육계획^OT일정표^부서교육수^외부교육수" colsep="^" colwidth="140, 100, 140, 100, 140, 100, 170, 171, 90, 80, 80, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:103px; width:1195px; height:615px; ">
- <col disabled="true" ref="instcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="deptnm"/>
- <col ref="teamcd" visibility="hidden"/>
- <col ref="teamnm"/>
- <col ref="unitcd" visibility="hidden"/>
- <col ref="unitnm"/>
- <col disabled="true" ref="educflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="yearplan" style="text-align:center; "/>
- <col ref="otplan" style="text-align:center; "/>
- <col ref="depteducnt" style="text-align:center; "/>
- <col ref="outeducnt" style="text-align:center; "/>
- </datagrid>
- <input id="ipt_emplno" ref="/root/send/search/emplno" disabled="true" visibility="hidden" style="left:910px; top:65px; width:85px; height:19px; text-align:center; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|