123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615 |
- <?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>SMRPS04100_부서교육현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <educlist/>
- <filelist/>
- </grid>
- </main>
- <send>
- <search>
- <appyy/>
- <deptcd/>
- <deptnm/>
- <teamnm/>
- <teamcd/>
- <unitnm/>
- <unitcd/>
- <emplno/>
- <instcd/>
- <educcd/>
- <seqno/>
- <posinstcd/>
- <chrgdeptcd/>
- <chrgdeptnm/>
- <chrgteamnm/>
- <chrgteamcd/>
- <chrgunitnm/>
- <chrgunitcd/>
- <grdunitcd/>
- </search>
- <contents>
- <educgoal/>
- <cmt/>
- </contents>
- <save>
- <educlist/>
- </save>
- </send>
- <temp>
- <flag/>
- </temp>
- <init/>
- </root>
- </instance>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.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="TRRPS04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/grid/educlist"/>
- <submission id="TXRPS04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/main/educlist"/>
- <submission id="TRRPS00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/grid/filelist"/>
- <submission id="TXRPS00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- var curdate = getCurrentDate();
- model.setValue(ipt_appyy.attribute("ref") , curdate.substr(0, 4));
-
- // user정보조회
- model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
- submit("TRRPS04000");
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N","N");
- cmb_instcd.value = model.getValue("/root/init/emplinfo/dutplceinst");
-
- model.setValue(ipt_deptnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue(ipt_deptcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue(ipt_teamnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue(ipt_teamcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamcd"));
- model.setValue(ipt_unitnm.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitnm"));
- model.setValue(ipt_unitcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitcd"));
- model.refresh();
-
- if ( DUTY_EDU_YN == "Y" || DUTY_RESP_YN == "Y" || getUserInfo("dutplcecd") == "4020500000" ) {
- ipt_deptnm.disabled = false;
- ipt_teamnm.disabled = false;
- ipt_unitnm.disabled = false;
- btn_dept.disabled = false;
- btn_team.disabled = false;
- btn_unit.disabled = false;
- }
- else {
- fCheckDisabled(); // 관리자인지 체크하여 기본 조회부분의 활성화/비활성화를 결정한다.
- }
-
- //그리드 초기화 작업
- model.removeNodeset(grd_educlist.nodeset);
- model.removeNodeset(grd_attach.nodeset);
- misfMsterDetailSet(grd_educlist, null, "TRRPS04401", "Y");
- // misfMsterDetailSet(grd_attach, grd_educlist, "TRRPS00204", "Y");
-
- grd_educlist.rowHeight(grd_educlist.fixedRows-1) = 50;
- grd_educlist.selectionMode = "byrow";
- model.refresh();
- }
-
- function fCheckAdmin() {
- // 부서교육관리자로 등록된 사람인지 체크
- model.setValue("/root/send/search/instcd", model.getValue("/root/init/emplinfo/dutplceinst"));
- model.setValue("/root/send/search/posinstcd", 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 () {
- 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"));
- model.setValue("/root/send/search/chrgunitnm", model.getValue("/root/init/emplinfo/dutunitnm"));
- model.setValue("/root/send/search/chrgunitcd", model.getValue("/root/init/emplinfo/dutunitcd"));
-
- fCheckAdmin();
-
- if( model.getValue("/root/init/deptadmin/teamyn") == "Y") {
- ipt_teamnm.disabled = false;
- btn_team.disabled = false;
- ipt_unitnm.disabled = false;
- btn_unit.disabled = false;
- }
- else if (model.getValue("/root/init/deptadmin/unityn") == "Y") {
- ipt_unitnm.disabled = false;
- btn_unit.disabled = false;
- }
- else {
- ipt_teamnm.disabled = true;
- ipt_unitnm.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:125px; x2:1195px; y2:125px; "/>
- <caption id="caption29" class="tit_2" style="left:5px; top:111px; width:169px; height:13px; ">부서교육목록</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.setValue("/root/send/contents/educgoal", "");
- model.setValue("/root/send/contents/cmt" , "");
-
- misfMsterDetailRetrieve();
- model.removeNodeset(grd_attach.nodeset);
- model.setValue("/root/send/search/educcd",grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("educcd")));
- submit("TRRPS00204");
- model.refresh();
- }
- ]]>
- </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:105px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_educlist);
- ]]>
- </script>
- </button>
- <input id="ipt_unitnm" ref="/root/send/search/unitnm" class="input_search" disabled="true" appearance="input" style="left:960px; top:9px; width:113px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_unitnm.value.getByteLength() == '0' ) {
- ipt_unitcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_unitcd" ref="/root/send/search/unitcd" disabled="true" visibility="hidden" style="left:990px; top:21px; width:70px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:900px; top:10px; width:86px; height:17px; ">부서 :</caption>
- <input id="ipt_teamnm" ref="/root/send/search/teamnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:739px; top:9px; width:117px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_teamnm.value.getByteLength() == '0' ) {
- ipt_teamcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_teamcd" ref="/root/send/search/teamcd" disabled="true" visibility="hidden" style="left:784px; top:21px; width:50px; height:19px; "/>
- <input id="ipt_deptnm" ref="/root/send/search/deptnm" class="input_search" disabled="true" navindex="3" visibility="visible" style="left:505px; top:9px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_deptnm.value.getByteLength() == '0' ) {
- ipt_deptcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_deptcd" ref="/root/send/search/deptcd" class="input_search" disabled="true" navindex="2" visibility="hidden" maxlength="10" style="left:565px; top:21px; width:45px; height:19px; text-align:center; "/>
- <input id="ipt_emplno" ref="/root/send/search/emplno" visibility="hidden" style="left:890px; top:35px; width:90px; height:19px; "/>
- <button id="btn_unit" class="icon_search" disabled="true" style="left:1075px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var unitcd = ipt_unitcd.value;
- var unitnm = ipt_unitnm.value;
-
- rpsfEducOpenPopUpList("07", ipt_unitnm, "", "unitcd,unitnm", cmb_instcd.value, "instcd");
-
- if ( DUTY_EDU_YN == "Y" || DUTY_RESP_YN == "Y" || getUserInfo("dutplcecd") == "4020500000" ) {
- // unit이 달라지면 상위 부서도 가져온다..
- model.setValue("/root/send/search/posinstcd", cmb_instcd.value);
- model.setValue("/root/send/search/grdunitcd", ipt_unitcd.value);
- model.setValue("/root/send/search/emplno", "" );
- submit("TRRPS04000");
-
- model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
- model.setValue("/root/send/search/deptnm", model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue("/root/send/search/deptcd", model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue("/root/send/search/teamnm", model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue("/root/send/search/teamcd", model.getValue("/root/init/emplinfo/dutteamcd"));
- }
- else {
- fCheckAdmin(); // 관리자인지 체크한다.
-
- // unit이 달라지면 상위 부서도 가져온다..
- model.setValue("/root/send/search/posinstcd", cmb_instcd.value);
- model.setValue("/root/send/search/grdunitcd", ipt_unitcd.value);
- model.setValue("/root/send/search/emplno", "" );
- submit("TRRPS04000");
-
- // if( !btn_search.disabled &&
- // model.getValue("/root/send/search/deptcd") == model.getValue("/root/init/emplinfo/dutdeptcd") &&
- // model.getValue("/root/send/search/teamcd") == model.getValue("/root/init/emplinfo/dutteamcd") ) {
-
- model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
- model.setValue("/root/send/search/deptnm", model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue("/root/send/search/deptcd", model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue("/root/send/search/teamnm", model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue("/root/send/search/teamcd", model.getValue("/root/init/emplinfo/dutteamcd"));
- // }
- /* else {
- messageBox("당신의 관리부서가 아닙니다. 확인바랍니다.","I999");
- ipt_unitcd.value = unitcd;
- ipt_unitnm.value = unitnm;
- }
- */
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_educlist" nodeset="/root/main/grid/educlist" caption="seq^연도^등록기관코드^부(실)^부서코드^과(팀)^팀코드^부서^유닛코드^교육주체
(내부/외부 선택)^교육과정명^교육기간^교육기간^교육총시간
(단위:시간
ex 1.5)^인원^교육장소^강사^주최기관(외부교육만)^총예산 (단위:원)^교육목표^비고^실시기관코드" colsep="^" colwidth="40, 50, 62, 120, 40, 110, 40, 100, 40, 100, 240, 95, 95, 75, 50, 169, 100, 130, 110, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:130px; width:1193px; height:261px; ">
- <col class="input_search" ref="educcd" visibility="hidden"/>
- <col class="input_search" disabled="true" ref="appyy" _key="true" style="text-align:center; "/>
- <col class="input_search" ref="instcd" visibility="hidden" _key="true"/>
- <col class="input_search" ref="deptnm" type="output" visibility="visible" style="text-align:center; "/>
- <col class="input_search" ref="deptcd" visibility="hidden"/>
- <col class="input_search" ref="teamnm" type="output" visibility="visible" style="text-align:center; "/>
- <col class="input_search" ref="teamcd" visibility="hidden"/>
- <col class="input_search" disabled="true" ref="unitnm" type="output" _key="true" style="text-align:center; "/>
- <col class="input_s_essential" ref="unitcd" visibility="hidden" _key="true"/>
- <col class="combo_s_essential" ref="educflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>내부</label>
- <value>I</value>
- </item>
- <item>
- <label>외부</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col class="input_s_essential" ref="educnm" type="input" maxlength="300"/>
- <col class="input_s_essential" ref="educfromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col class="input_s_essential" ref="eductodd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col class="input_s_essential" imemode="alpha" ref="eductm" type="input" maxlength="5" style="text-align:center; "/>
- <col class="input_s_essential" imemode="alpha" ref="psncnt" type="input" maxlength="3" style="text-align:center; "/>
- <col class="input_s_essential" ref="educplce" type="input" style="text-align:left; "/>
- <col class="input_search" ref="lactr" type="input" maxlength="30" style="text-align:left; "/>
- <col class="input_search" ref="chrginstnm" type="input"/>
- <col class="input_search" ref="bugt" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
- <col ref="educgoal" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.setValue("/root/send/contents/educgoal", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("educgoal")));
- model.setValue("/root/send/contents/cmt" , grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("cmt")));
- if( grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("educflag")) == "I" ) {
- grd_educlist.colType(grd_educlist.colRef("chrginstnm"))= "output";
- }
- else {
- grd_educlist.colType(grd_educlist.colRef("chrginstnm"))= "input";
- }
-
- if( grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("educcd")) != "" ) {
- btn_upload.disabled = false;
- btn_delfile.disabled = false;
- }
- else {
- misfGridInit(grd_attach);
- btn_upload.disabled = true;
- btn_delfile.disabled = true;
- }
- model.setValue("/root/send/search/educcd",grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("educcd")) );
- model.refresh();
- submit("TRRPS00204");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("educflag")) == "I" ) {
- grd_educlist.colType(grd_educlist.colRef("chrginstnm"))= "output";
- }
- else {
- grd_educlist.colType(grd_educlist.colRef("chrginstnm"))= "input";
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="search_name" style="left:667px; top:10px; width:86px; height:17px; ">과(팀) :</caption>
- <caption id="caption2" class="search_name" style="left:432px; top:10px; width:86px; height:17px; ">부(실) :</caption>
- <button id="btn_team" class="icon_search" disabled="true" style="left:859px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpsfEducOpenPopUpList("06", ipt_teamnm, "", "teamcd,teamnm", cmb_instcd.value, "instcd");
- // 과(팀)을 변경하면 부서는 모두 공백으로 변경한다.
- model.setValue("/root/send/search/unitnm", "");
- model.setValue("/root/send/search/unitcd", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_dept" class="icon_search" disabled="true" style="left:627px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpsfEducOpenPopUpList("05", ipt_deptnm, "", "deptcd,deptnm", cmb_instcd.value, "instcd");
-
- // 부(실)을 변경하면 과(팀), 부서는 모두 공백으로 변경한다.
- model.setValue("/root/send/search/teamnm", "");
- model.setValue("/root/send/search/teamcd", "");
- model.setValue("/root/send/search/unitnm", "");
- model.setValue("/root/send/search/unitcd", "");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:200px; top:10px; width:86px; height:17px; ">기 관 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:283px; top:9px; width:135px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="tit_2" style="left:0px; top:400px; width:169px; height:14px; ">과정별 교육목표</caption>
- <caption id="caption5" class="tit_2" style="left:0px; top:564px; width:169px; height:13px; ">비고</caption>
- <button id="btn_delrow" class="btn2_letter3" style="left:1071px; top:105px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_educlist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:1017px; top:105px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_educlist, "A");
- misfGridInit(grd_attach);
- btn_upload.disabled = true;
- btn_delfile.disabled = true;
- model.setValue("/root/send/contents/educgoal", "");
- model.setValue("/root/send/contents/cmt" , "");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_rowcopy" class="btn2_letter3" style="left:961px; top:105px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_educlist.row;
- if( grd_educlist.fixedRows == grd_educlist.rows) {
- messageBox("복사할 행이","I004");
- return;
- }
- else {
- misfGridIUD(grd_educlist, "A");
- misfGridInit(grd_attach);
- btn_upload.disabled = true;
- btn_delfile.disabled = true;
-
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/appyy" ,model.getValue("/root/main/grid/educlist[" + row + "]/appyy" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/instcd" ,model.getValue("/root/main/grid/educlist[" + row + "]/instcd" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/deptnm" ,model.getValue("/root/main/grid/educlist[" + row + "]/deptnm" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/deptcd" ,model.getValue("/root/main/grid/educlist[" + row + "]/deptcd" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/teamnm" ,model.getValue("/root/main/grid/educlist[" + row + "]/teamnm" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/teamcd" ,model.getValue("/root/main/grid/educlist[" + row + "]/teamcd" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/unitnm" ,model.getValue("/root/main/grid/educlist[" + row + "]/unitnm" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/unitcd" ,model.getValue("/root/main/grid/educlist[" + row + "]/unitcd" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/educflag" ,model.getValue("/root/main/grid/educlist[" + row + "]/educflag" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/educnm" ,model.getValue("/root/main/grid/educlist[" + row + "]/educnm" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/educfromdd" ,model.getValue("/root/main/grid/educlist[" + row + "]/educfromdd" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/eductodd" ,model.getValue("/root/main/grid/educlist[" + row + "]/eductodd" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/eductm" ,model.getValue("/root/main/grid/educlist[" + row + "]/eductm" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/psncnt" ,model.getValue("/root/main/grid/educlist[" + row + "]/psncnt" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/educplce" ,model.getValue("/root/main/grid/educlist[" + row + "]/educplce" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/lactr" ,model.getValue("/root/main/grid/educlist[" + row + "]/lactr" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/chrginstnm" ,model.getValue("/root/main/grid/educlist[" + row + "]/chrginstnm" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/bugt" ,model.getValue("/root/main/grid/educlist[" + row + "]/bugt" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/educgoal" ,model.getValue("/root/main/grid/educlist[" + row + "]/educgoal" ));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/cmt" ,model.getValue("/root/main/grid/educlist[" + row + "]/cmt" ));
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:415px; x2:1192px; y2:415px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:579px; x2:1192px; y2:579px; "/>
- <caption id="caption7" style="left:30px; top:40px; width:945px; height:60px; font-size:10pt; font-weight:bold; color:#3366ff; ">
- <![CDATA[※ 입력방법
- - 각 부(실), 과(팀), 부서(Unit) 단위로 선택하여 해당 부서에서 주관하는 부서교육(직무교육위주)을 입력하시기 바랍니다.
- - 부서교육목록 화면에서 행추가 버튼을 선택하여 해당 교육과정 및 교육목표를 입력 후 저장버튼을 누릅니다.
- - 과정별 교육일정표 등록은 부서교육목록에서 해당과정을 선택 한 후(한번 클릭) 우측 아래 화면에서 업로드 합니다.
- ]]>
- </caption>
- <button id="btn_delfile" class="btn2_letter4" disabled="true" style="left:1128px; top:559px; width:64px; height:19px; ">
- <caption>파일삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( messageBox("삭제하시겠습니까?","Q999") == '6') {
- var cur_row = grd_attach.row;
- var seqno = model.getValue("/root/main/grid/filelist["+cur_row+"]/seqno");
- model.setValue("/root/send/search/seqno",seqno);
- grd_attach.addStatus(cur_row, "delete");
- if( submit("TXRPS00206") ) {
- grd_attach.deleteRow(cur_row);
- submit("TRRPS00204");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_upload" class="btn5_letter3" disabled="true" style="left:1073px; top:559px; width:53px; height:19px; ">
- <caption>업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grd_educlist.rowStatus(grd_educlist.row ) == '1' || grd_educlist.rowStatus(grd_educlist.row ) == '3' ) {
- messageBox("저장을 먼저 해주세요.","I999");
- return;
- }
-
- // data를 팝업창으로 넘겨 자동으로 조회하기위해 ...
- model.setValue("/root/send/search/educcd", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("educcd")));
-
- ipt_flag.value = "";
- open("SMRPS00250","","20","20","popup", "/root/send/search" ,"/root/send") ;
-
- if( ipt_flag.value == "1") {
- // 첨부파일 조회
- model.removeNodeset(grd_attach.nodeset);
- model.makeNode("/root/send/attach");
- submit("TRRPS00204");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption11" class="tit_2" style="left:882px; top:565px; width:182px; height:13px; ">교육일정표</caption>
- <datagrid id="grd_attach" nodeset="/root/main/grid/filelist" caption="순번^seqno^수정일^파일명^파일경로^파일크기^파일크기^교육코드^년도^기관" colsep="^" colwidth="35, 100, 88, 213, 76, 81, 50, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" tooltip="true" style="left:880px; top:584px; width:311px; height:107px; ">
- <col ref="rownum" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="updatedt" visibility="hidden" format="yyyy-mm-dd"/>
- <col disabled="true" ref="filenm" style="text-align:center; "/>
- <col ref="filepath" visibility="hidden"/>
- <col ref="filesz" format="#,###" style="text-align:center; "/>
- <col ref="bytes"/>
- <col ref="educcd" visibility="hidden"/>
- <col ref="appyy" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var idx = grd_attach.row;
- model.copyNode("/root/send/attach","/root/main/grid/filelist["+idx+"]");
-
- var filepath = model.getValue("/root/send/attach/filepath");
- var filenm = model.getValue("/root/send/attach/filenm");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRRPS00205")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <textarea id="txt_cmt" ref="/root/send/contents/cmt" maxbyte="2000" style="left:3px; top:584px; width:874px; height:107px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(!isRequiredControls("txt_cmt")) return;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("cmt")) = txt_cmt.value;
- if(grd_educlist.rowStatus(grd_educlist.row) == "0" ) {
- grd_educlist.addStatus(grd_educlist.row, "update" );
- }
- model.refresh();
- ]]>
- </script>
- </textarea>
- <textarea id="txt_educgoal" ref="/root/send/contents/educgoal" maxbyte="2000" style="left:3px; top:420px; width:1188px; height:135px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(!isRequiredControls("txt_educgoal")) return;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("educgoal")) = txt_educgoal.value;
- if(grd_educlist.rowStatus(grd_educlist.row) == "0" ) {
- grd_educlist.addStatus(grd_educlist.row, "update" );
- }
- model.refresh();
- ]]>
- </script>
- </textarea>
- <input id="ipt_flag" ref="/root/temp/flag" visibility="hidden" style="left:1010px; top:560px; width:50px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_flag.value == "1") {
- // 첨부파일 조회
- model.removeNodeset(grd_attach.nodeset);
- model.makeNode("/root/send/attach");
- submit("TRRPS00204");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- </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:1136px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_appyy.value == "") {
- messageBox("년도는","I003");
- model.setFocus("ipt_appyy");
- }
- else {
- misfSave("TXRPS04401");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error"){
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|