123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="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>교육코드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <rpsmedcdlist/>
- </main>
- <send>
- <appyy/>
- <mainbdunit/>
- <educflag/>
- <instcd/>
- <instnm/>
- <rpsmedcdlist>
- </rpsmedcdlist>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // user 권한체크
- fCheckAuth() ;
-
- /* Grid 초기화 */
- misfGridInit(grd_rpsmedcdlist);
- grd_rpsmedcdlist.rowHeight(0) = 50;
- misfMsterDetailSet(grd_rpsmedcdlist,null, "TRRPS00101" ,"Y");
-
- rpsEducSetComboList("M01-001,M01-002,M01-001,M01-002", "cmb_mainbdunit,cmb_educflag,grd_rpsmedcdlist.mainbdunit,grd_rpsmedcdlist.educflag", "Y", "1,2,3");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- misfGetUserAuth();
- if( DUTY_EDU_YN == 'Y' || getUserInfo("dutplcecd") == "4020503000" ) {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- btn_init.disabled = !checkAuth("X") ;
- }
- }
- ]]>
- </script>
- <submission id="TRRPS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rpsmedcdlist"/>
- <submission id="TXRPS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rpsmedcdlist" resultref="/root/temp"/>
- </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"/>
- </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:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1110px; top:18px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
-
- submit("TRRPS00101");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1073px; y1:18px; x2:1073px; y2:40px; "/>
- <caption id="cap_mainbdunit" class="search_name" style="left:34px; top:18px; width:86px; height:17px; ">주체단위 :</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:73px; x2:1195px; y2:73px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:59px; width:169px; height:13px; ">교육코드 목록</caption>
- <caption id="cap_educflag" class="search_name" style="left:781px; top:18px; width:91px; height:17px; ">교육구분 :</caption>
- <select1 id="cmb_mainbdunit" ref="/root/send/mainbdunit" class="combo_search" appearance="minimal" style="left:121px; top:18px; width:126px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_educflag" ref="/root/send/educflag" class="combo_search" appearance="minimal" style="left:868px; top:18px; width:126px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_rpsmedcdlist" nodeset="/root/main/rpsmedcdlist" autoresize="true" caption="주체단위^주체기관^기관코드^교육구분^교육명^개인신청
가능여부^인사팀
대상자확정^educcd" colsep="^" colwidth="122, 204, 100, 128, 365, 70, 70, 100" dataheight="25" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:77px; width:1194px; height:613px; ">
- <col class="combo_s_essential" ref="mainbdunit" type="combo" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_s_essential" ref="instnm" type="inputbutton" _key="true"/>
- <col ref="instcd" visibility="hidden"/>
- <col class="combo_s_essential" ref="educflag" type="combo" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_s_essential" key="true" ref="educcdnm" type="input"/>
- <col checkvalue="Y,N" ref="indapppossyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="trgtmanrgstyn" type="checkbox"/>
- <col ref="educcd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("instnm"))
- {
- var row = grd_rpsmedcdlist.row;
-
- var recv_list = "instcd,instnm";
- misfOpenPopUpList("03", grd_rpsmedcdlist,"Z0007", recv_list, grd_rpsmedcdlist.valueMatrix(row, grd_rpsmedcdlist.colRef("instcd")), "") ;
- }
-
- if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("chrgdeptnm"))
- {
- var recv_list = "chrgdeptcd,chrgdeptnm";
- misfOpenPopUpList("02", grd_rpsmedcdlist,"", recv_list, grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row, grd_rpsmedcdlist.colRef("instcd")), "instcd") ;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("chrgdeptnm"))
- {
- if(grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row, grd_rpsmedcdlist.colRef("chrgdeptnm")).length == 0){
- grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row, grd_rpsmedcdlist.colRef("chrgdeptcd")) = "";
- }else
- {
- misfValidationCheck("02", "", "chrgdeptcd,chrgdeptnm",grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row, grd_rpsmedcdlist.colRef("instcd")), "instcd" );
- }
- }
-
- // 개인신청가능여부를 클릭하면 인사팀확정 대상자 여부는 클릭이 지워져야 한다.
- else if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("indapppossyn") ) {
- grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row,grd_rpsmedcdlist.colRef("indapppossyn")) = "Y";
- grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row,grd_rpsmedcdlist.colRef("trgtmanrgstyn")) = "N";
- }
-
- // 인사팀확정 대상자 여부를 클릭하면 개인신청가능여부는 클릭이 지워져야 한다.
- else if(grd_rpsmedcdlist.col == grd_rpsmedcdlist.colRef("trgtmanrgstyn") ) {
- grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row,grd_rpsmedcdlist.colRef("indapppossyn")) = "N";
- grd_rpsmedcdlist.valueMatrix(grd_rpsmedcdlist.row,grd_rpsmedcdlist.colRef("trgtmanrgstyn")) = "Y";
- }
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_del" class="btn2_letter3" style="left:1071px; top:53px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
-
- misfGridIUD(grd_rpsmedcdlist, "D");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter3" style="left:1016px; top:53px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
-
- misfGridIUD(grd_rpsmedcdlist, "A");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_instcd" class="search_name" style="left:370px; top:18px; width:86px; height:17px; ">주체기관 :</caption>
- <button id="btn_init" class="btn2_letter4" style="left:1130px; top:53px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_rpsmedcdlist);
- ]]>
- </script>
- </button>
- <button id="button8" class="icon_search" style="left:616px; top:18px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "instcd,instnm";
- misfOpenPopUpList("03", ipt_instnm,"Z0007", recv_list, "", "") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_instnm" ref="/root/send/instnm" class="input_search" appearance="input" style="left:457px; top:18px; width:155px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_instnm.value.getByteLength() == '0' ) {
- ipt_instcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_instcd" ref="/root/send/instcd" disabled="true" visibility="hidden" style="left:637px; top:18px; width:50px; height:19px; "/>
- <caption id="caption1" style="left:10px; top:695px; width:1150px; height:40px; font-size:12pt; font-weight:bold; color:#000080; ">
- <![CDATA[* 개인신청가능여부 : 대상자 등록된 대상자(개인)가 직접 차수를 선택하여 신청하는 교육입니다.
- * 인사팀확정대상자여부 : 인사팀에서 차수를 지정하여 개인을 등록해주는 교육입니다.]]>
- </caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkKeyColumn("grd_rpsmedcdlist") == false) return;
-
- model.setValue("/root/send/rpsmedcdlist",grd_rpsmedcdlist.getUpdateData());
- if( submit("TXRPS00101") ) {
- messageBox("","I001");
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|