123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- <?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>SMRPS04100_부서교육현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <educlist/>
- </main>
- <send>
- <search>
- <appyy/>
- <educflag/>
- <dutinstcd/>
- <chrgdeptcd/>
- <chrgdeptnm/>
- <chrgteamnm/>
- <chrgteamcd/>
- <chrgunitnm/>
- <chrgunitcd/>
- <emplno/>
- <grdunitcd/>
- <instcd/>
- <posinstcd/>
- </search>
- </send>
- <temp/>
- <init/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGetUserAuth();
- fCheckAuth();
-
- fInitialize() ;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- }
- ]]>
- </script>
- <submission id="TRRPS04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/emplinfo"/>
- <submission id="TRRPS04999" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/deptadmin"/>
- <submission id="TRRPS04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/depteduclist"/>
- <submission id="TRRPS04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/depteduclist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- // user정보조회
- model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
- submit("TRRPS04000");
-
- var nowyy = new Date();
- ipt_appyy.value = nowyy.getYear(); // 년도설정
- opt_dd.value = "(일자 : " + (nowyy.getMonth()+1) + "월 " + nowyy.getDate() + "일 현재)";
- // getMonth는 0~11까지 리턴한다. 그러므로 +1을 해야 실제 월을 알수있다.
-
- model.setValue(ipt_dutinstcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutplceinst"));
- model.setValue("/root/send/search/posinstcd",model.getValue("/root/init/emplinfo/dutplceinst"));
-
- model.setValue(ipt_chrgdeptnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue(ipt_chrgdeptcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue(ipt_chrgteamnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue(ipt_chrgteamcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamcd"));
- model.setValue(ipt_chrgunitnm.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitnm"));
- model.setValue(ipt_chrgunitcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitcd"));
- model.refresh();
-
- if ( DUTY_EDU_YN == 'Y' || getUserInfo("dutplcecd") == "4020500000" || getUserInfo("dutplcecd") == "4020503000" ) {
- ipt_chrgdeptnm.disabled = false;
- ipt_chrgteamnm.disabled = false;
- ipt_chrgunitnm.disabled = false;
- btn_dept.disabled = false;
- btn_team.disabled = false;
- btn_unit.disabled = false;
- }
- else {
- fCheckDisabled(); // 관리자인지 체크하여 기본 조회부분의 활성화/비활성화를 결정한다.
- }
-
- //그리드 초기화 작업
- model.removeNodeset("/root/main");
-
- misfMsterDetailSet(grd_educlist,null, "TRRPE04201" ,"Y");
- grd_educlist.rowHeight(grd_educlist.fixedRows-1) = 50;
-
- rpsEducSetComboList("M01-007", "cmb_educflag", "Y");
- misfComboCopyItemSet(cmb_educflag, "", grd_educlist, "educflag");
-
- model.refresh();
- }
-
- 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();
-
- if( model.getValue("/root/init/deptadmin/teamyn") == "Y") {
- ipt_chrgteamnm.disabled = false;
- ipt_chrgunitnm.disabled = false;
- btn_team.disabled = false;
- btn_unit.disabled = false;
- }
- else if (model.getValue("/root/init/deptadmin/unityn") == "Y") {
- ipt_chrgunitnm.disabled = false;
- btn_unit.disabled = false;
- }
- else {
- ipt_chrgteamnm.disabled = true;
- ipt_chrgunitnm.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:1px; width:1195px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line8" class="line_1" style="x1:0px; y1:60px; x2:1195px; y2:60px; "/>
- <caption id="caption29" class="tit_2" style="left:5px; top:46px; width:169px; height:14px; ">세부일정</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_appyy.value == "") {
- messageBox("년도는","I003");
- model.setFocus("ipt_appyy");
- }
- else {
- model.removenode("/root/main");
- model.makeNode("/root/main/depteduclist");
- submit("TRRPS04001");
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:30px; "/>
- <caption id="cap_appyy" class="search_name" style="left:20px; top:9px; width:90px; height:17px; ">년 도 :</caption>
- <input id="ipt_appyy" ref="/root/send/search/appyy" class="input_s_essential" inputtype="date" format="yyyy" appearance="input" style="left:102px; top:9px; width:82px; height:19px; text-align:center; "/>
- <button id="button2" class="btn2_letter4" style="left:1130px; top:40px; 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>
- <output id="opt_dd" style="left:980px; top:40px; width:130px; height:19px; "/>
- <input id="ipt_dutinstcd" ref="/root/send/search/dutinstcd" disabled="true" visibility="hidden" style="left:235px; top:40px; width:50px; height:19px; "/>
- <input id="ipt_chrgunitnm" ref="/root/send/search/chrgunitnm" class="input_search" disabled="true" appearance="input" style="left:738px; top:9px; width:113px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_chrgunitnm.value.getByteLength() == '0' ) {
- ipt_chrgunitcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_chrgunitcd" ref="/root/send/search/chrgunitcd" disabled="true" visibility="hidden" style="left:768px; top:20px; width:70px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:678px; top:9px; width:86px; height:17px; ">부서 :</caption>
- <input id="ipt_chrgteamnm" ref="/root/send/search/chrgteamnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:517px; top:9px; width:117px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_chrgteamnm.value.getByteLength() == '0' ) {
- ipt_chrgteamcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_educflag" ref="/root/send/search/educflag" class="combo_search" appearance="minimal" style="left:990px; top:9px; width:95px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_educflag" class="search_name" style="left:905px; top:9px; width:91px; height:17px; ">교육구분 :</caption>
- <input id="ipt_chrgteamcd" ref="/root/send/search/chrgteamcd" disabled="true" visibility="hidden" style="left:562px; top:20px; width:50px; height:19px; "/>
- <input id="ipt_chrgdeptnm" ref="/root/send/search/chrgdeptnm" class="input_search" disabled="true" navindex="3" visibility="visible" style="left:283px; top:9px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_chrgdeptnm.value.getByteLength() == '0' ) {
- ipt_chrgdeptcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_chrgdeptcd" ref="/root/send/search/chrgdeptcd" class="input_search" disabled="true" navindex="2" visibility="hidden" maxlength="10" style="left:343px; top:20px; width:45px; height:19px; text-align:center; "/>
- <input id="ipt_emplno" ref="/root/send/search/emplno" visibility="hidden" style="left:840px; top:40px; width:90px; height:19px; "/>
- <button id="btn_unit" class="icon_search" disabled="true" style="left:853px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var unitcd = ipt_chrgunitcd.value;
- var unitnm = ipt_chrgunitnm.value;
-
- rpsfEducOpenPopUpList("07", ipt_chrgunitnm, "", "chrgunitcd,chrgunitnm", ipt_dutinstcd.value, "instcd");
-
- if ( DUTY_EDU_YN == 'Y' || getUserInfo("dutplcecd") == "4020500000" || getUserInfo("dutplcecd") == "4020503000" ) {
- // unit이 달라지면 상위 부서도 가져온다..
- model.setValue("/root/send/search/grdunitcd", ipt_chrgunitcd.value);
- model.setValue("/root/send/search/emplno", "" );
- submit("TRRPS04000");
-
- model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
- model.setValue("/root/send/search/chrgdeptnm", model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue("/root/send/search/chrgdeptcd", model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue("/root/send/search/chrgteamnm", model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue("/root/send/search/chrgteamcd", model.getValue("/root/init/emplinfo/dutteamcd"));
- }
- else {
- fCheckAdmin(); // 관리자인지 체크한다.
-
- // unit이 달라지면 상위 부서도 가져온다..
- model.setValue("/root/send/search/grdunitcd", ipt_chrgunitcd.value);
- model.setValue("/root/send/search/emplno", "" );
- submit("TRRPS04000");
-
- // if( !btn_search.disabled &&
- // model.getValue("/root/send/search/chrgdeptcd") == model.getValue("/root/init/emplinfo/dutdeptcd") &&
- // model.getValue("/root/send/search/chrgteamcd") == model.getValue("/root/init/emplinfo/dutteamcd") ) {
-
- model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
- model.setValue("/root/send/search/chrgdeptnm", model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue("/root/send/search/chrgdeptcd", model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue("/root/send/search/chrgteamnm", model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue("/root/send/search/chrgteamcd", model.getValue("/root/init/emplinfo/dutteamcd"));
- // }
- /* else {
- messageBox("당신의 관리부서가 아닙니다. 확인바랍니다.","I999");
- ipt_chrgunitcd.value = unitcd;
- ipt_chrgunitnm.value = unitnm;
- }
- */ }
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_educlist" nodeset="/root/main/educlist" autoresize="true" caption="부서교육코드^연도^주체단위^주체기관코드^부(실)^부서코드^과(팀)^팀코드^부서^유닛코드^교육구분^의료기관평가코드^교육명^차수^교육기간^교육기간^교육시간일정^교육
총시간^교육장소^신입
인원^재직원
인원^총인원^이수
인원^강사^예산^실시기관코드" colsep="^" colwidth="40, 50, 50, 62, 120, 40, 110, 40, 100, 40, 100, 120, 240, 40, 95, 95, 102, 45, 169, 50, 50, 50, 50, 100, 110" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:65px; width:1194px; height:660px; ">
- <col class="input_search" ref="depteduccd" visibility="hidden"/>
- <col class="input_search" disabled="true" ref="appyy" _key="true" style="text-align:center; "/>
- <col class="input_search" disabled="true" ref="mainbdunit" visibility="hidden"/>
- <col class="input_search" ref="dutinstcd" visibility="hidden"/>
- <col class="input_search" ref="chrgdeptnm" type="output" visibility="visible" style="text-align:center; "/>
- <col class="input_search" ref="chrgdeptcd" visibility="hidden"/>
- <col class="input_search" ref="chrgteamnm" type="output" visibility="visible" style="text-align:center; "/>
- <col class="input_search" ref="chrgteamcd" visibility="hidden"/>
- <col class="input_search" disabled="true" ref="chrgunitnm" type="output" style="text-align:center; "/>
- <col class="input_s_essential" ref="chrgunitcd" visibility="hidden"/>
- <col class="input_search" disabled="true" ref="educflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_search" disabled="true" ref="medinstvalucd" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_search" disabled="true" ref="educnm" type="input" maxlength="300" _key="true"/>
- <col class="input_search" disabled="true" ref="educdg" type="input" visibility="hidden" format="###" maxlength="3" style="text-align:center; "/>
- <col class="input_search" disabled="true" ref="educfromdd" type="inputdate" _key="true" style="text-align:center; "/>
- <col class="input_search" disabled="true" ref="eductodd" type="inputdate" _key="true" style="text-align:center; "/>
- <col class="input_search" disabled="true" ref="eductime" type="input" format="99:99-99:99" maxlength="20" style="text-align:center; "/>
- <col class="input_search" ref="eductm" style="text-align:center; "/>
- <col class="input_search" disabled="true" ref="educplce" type="input" _key="true" style="text-align:left; "/>
- <col class="input_search" disabled="true" ref="newpsn" type="input" visibility="hidden" format="####" maxlength="4"/>
- <col class="input_search" disabled="true" ref="oldpsn" type="input" visibility="hidden" format="####" maxlength="4"/>
- <col class="input_search" disabled="true" ref="totalpsn" format="####" maxlength="4"/>
- <col class="input_search" disabled="true" ref="cmpltcurspsnno" visibility="hidden" format="####" maxlength="4" style="text-align:center; "/>
- <col class="input_search" disabled="true" ref="lactr" type="input" maxlength="30" style="text-align:left; "/>
- <col class="input_search" disabled="true" ref="bugt" type="input" visibility="hidden" format="#,###" maxlength="10" style="text-align:right; "/>
- </datagrid>
- <caption id="caption1" class="search_name" style="left:445px; top:9px; width:86px; height:17px; ">과(팀) :</caption>
- <caption id="caption2" class="search_name" style="left:210px; top:9px; width:86px; height:17px; ">부(실) :</caption>
- <button id="btn_team" class="icon_search" disabled="true" style="left:637px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpsfEducOpenPopUpList("06", ipt_chrgteamnm, "", "chrgteamcd,chrgteamnm", ipt_dutinstcd.value, "instcd");
- // 과(팀)을 변경하면 부서는 모두 공백으로 변경한다.
- model.setValue("/root/send/search/chrgunitnm", "");
- model.setValue("/root/send/search/chrgunitcd", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_dept" class="icon_search" disabled="true" style="left:405px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpsfEducOpenPopUpList("05", ipt_chrgdeptnm, "", "chrgdeptcd,chrgdeptnm", ipt_dutinstcd.value, "instcd");
-
- // 부(실)을 변경하면 과(팀), 부서는 모두 공백으로 변경한다.
- model.setValue("/root/send/search/chrgteamnm", "");
- model.setValue("/root/send/search/chrgteamcd", "");
- model.setValue("/root/send/search/chrgunitnm", "");
- model.setValue("/root/send/search/chrgunitcd", "");
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|