123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <?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>
- </main>
- <send>
- <appyy/>
- <educflag/>
- <instcd/>
- <mainbdunit/>
- <educdd/>
- <eductodd/>
- <instnm/>
- <attach>
- </attach>
- <educcd/>
- </send>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면초기화
- finit();
- ]]>
- </script>
- <submission id="TRRPS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rpsdedyylist"/>
- <submission id="TRRPS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dgsend" resultref="/root/main/grid/rpsdeddglist"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
- <script type="javascript">
- <![CDATA[
- //화면초기화
- function finit() {
- /* Grid 초기화 */
- model.removeNodeset(grd_rpsdedyylist.nodeset);
- model.removeNodeset(grd_rpsdeddglist.nodeset);
-
- misfMsterDetailSet(grd_rpsdedyylist,null, "TRRPS00201" ,"Y");
- misfMsterDetailSet(grd_rpsdeddglist, grd_rpsdedyylist, "TRRPS00202" ,"Y");
-
- var curdate = getCurrentDate();
- model.setValue(ipt_appyy.attribute("ref") , curdate.substr(0, 4));
-
- rpsEducSetComboList("M01-001,M01-002", "cmb_mainbdunit,cmb_educflag", "Y");
-
- model.refresh();
- }
-
- function fSetSendValue() {
- model.setValue("/root/send/dgsend/appyy", grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row, grd_rpsdedyylist.colRef("appyy")) );
- model.setValue("/root/send/dgsend/instcd", grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row, grd_rpsdedyylist.colRef("instcd")) );
- model.setValue("/root/send/dgsend/educcd", grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row, grd_rpsdedyylist.colRef("educcd")) );
- model.setValue("/root/send/dgsend/edbasecd", grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row, grd_rpsdedyylist.colRef("edbasecd")) );
- }
-
- function fCheckAppdgDisable() {
- var todate = getCurrentDate();
- var totime = getCurrentTime().substr(0,4);
- for(var idx = grd_rpsdeddglist.fixedRows; idx < grd_rpsdeddglist.rows; idx++) {
- if( grd_rpsdeddglist.valueMatrix(idx, grd_rpsdeddglist.colRef("educappfromdd")) <= todate &&
- todate <= grd_rpsdeddglist.valueMatrix(idx, grd_rpsdeddglist.colRef("educapptodd")) ) {
-
- if (grd_rpsdeddglist.valueMatrix(idx,grd_rpsdeddglist.colRef("educapptodd")) == todate &&
- grd_rpsdeddglist.valueMatrix(idx,grd_rpsdeddglist.colRef("educappendtm")) <= totime ) {
- grd_rpsdeddglist.rowStyle(idx, "all", "background-color") ="#dddddd";
- }
- }
- else if( grd_rpsdeddglist.valueMatrix(idx, grd_rpsdeddglist.colRef("educappfromdd")) > todate ){
-
- }
- else {
- grd_rpsdeddglist.rowStyle(idx, "all", "background-color") ="#dddddd";
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="text-align:center; 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:30px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:63px; "/>
- <line id="line8" class="line_1" style="x1:0px; y1:94px; x2:1195px; y2:94px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:80px; width:169px; height:14px; ">연간교육계획</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:17px; width:90px; height:17px; ">년 도 :</caption>
- <input id="ipt_appyy" ref="/root/send/appyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:100px; top:16px; width:126px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_rpsdedyylist.valueMatrix(grd_rpsdedyylist.row,grd_rpsdedyylist.colRef("appyy")) = ipt_appyy.value;
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:749px; top:19px; width:87px; height:17px; ">주체기관 :</caption>
- <caption id="cap_educlrgcd" class="search_name" style="left:15px; top:43px; width:91px; height:17px; ">교육구분 :</caption>
- <caption id="cap_mainbdunit" class="search_name" style="left:399px; top:19px; width:86px; height:17px; ">주체단위 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:28px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
- submit("TRRPS00201");
- grd_rpsdedyylist.dispatch("onrowchanged");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_educdd" class="search_name" style="left:398px; top:43px; width:87px; height:17px; ">교육년월 :</caption>
- <input id="ipt_educdd" ref="/root/send/educdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:485px; top:43px; width:80px; height:19px; text-align:center; "/>
- <caption id="caption3" style="left:567px; top:43px; width:15px; height:20px; text-align:center; ">~</caption>
- <input id="ipt_eductodd" ref="/root/send/eductodd" class="input_search" inputtype="date" format="yyyy-mm" style="left:585px; top:43px; width:80px; height:19px; text-align:center; "/>
- <button id="btn_init" class="btn2_letter4" visibility="hidden" style="left:1130px; top:74px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_rpsdedyylist);
- ]]>
- </script>
- </button>
- <select1 id="cmb_mainbdunit" ref="/root/send/mainbdunit" class="combo_search" appearance="minimal" style="left:485px; top:19px; width:126px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_educflag" ref="/root/send/educflag" class="combo_search" appearance="minimal" style="left:100px; top:43px; width:126px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_instnm" ref="/root/send/instnm" class="input_search" appearance="input" style="left:835px; top:19px; 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:1015px; top:19px; width:50px; height:19px; "/>
- <button id="button8" class="icon_search" style="left:994px; top:19px; 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>
- <caption id="caption1" class="tit_2" style="left:2px; top:376px; width:170px; height:13px; ">연간 교육훈련비 예산신청</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:390px; x2:1195px; y2:391px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/grid/educlist" autoresize="true" caption="부서교육코드^연도^주체단위^주체기관코드^부서^부서코드^교육구분^의료기관평가코드^교육명^차수^교육기간^교육기간^교육시간^교육
총시간^교육장소^신입
인원^재직원
인원^총인원^등록완료인원^강사^예산^실시기관코드" colsep="^" colwidth="40, 50, 50, 62, 100, 40, 100, 120, 200, 40, 95, 95, 102, 45, 140, 50, 50, 50, 56, 100, 110" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:394px; width:1194px; height:341px; ">
- <col ref="depteduccd" visibility="hidden"/>
- <col class="input_s_essential" ref="appyy" _key="true" style="text-align:center; "/>
- <col class="combo_s_essential" ref="mainbdunit" visibility="hidden"/>
- <col ref="posinstcd" visibility="hidden"/>
- <col class="input_s_essential" ref="chrgunitnm" type="inputbutton" style="text-align:center; "/>
- <col class="input_s_essential" ref="chrgunitcd" visibility="hidden"/>
- <col class="input_s_essential" ref="educflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="medinstvalucd" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_s_essential" ref="educnm" type="input" maxlength="300"/>
- <col class="combo_s_essential" ref="educdg" type="input" visibility="hidden" format="###" maxlength="3" style="text-align:center; "/>
- <col class="input_s_essential" ref="educfromdd" type="inputdate" _key="true" style="text-align:center; "/>
- <col class="input_s_essential" ref="eductodd" type="inputdate" _key="true" style="text-align:center; "/>
- <col class="input_s_essential" ref="eductime" type="input" maxlength="20" style="text-align:center; "/>
- <col class="input_s_essential" ref="eductm" type="input" format="#####" maxlength="5" style="text-align:center; "/>
- <col class="combo_s_essential" ref="educplce" type="input" style="text-align:left; "/>
- <col class="input_s_essential" ref="newpsn" type="input" format="####" maxlength="4"/>
- <col class="input_s_essential" ref="oldpsn" type="input" format="####" maxlength="4"/>
- <col class="input_search" ref="totalpsn" format="####" maxlength="4"/>
- <col class="input_search" ref="cmpltcurspsnno" format="####" maxlength="4" style="color:#ff0000; text-align:center; "/>
- <col class="input_search" ref="lactr" type="input" maxlength="30" style="text-align:left; "/>
- <col class="input_search" ref="bugt" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_educlist.col == grd_educlist.colRef("chrgunitnm")) {
- var recv_list = "chrgunitcd,chrgunitnm";
- misfOpenPopUpList("02", grd_educlist,"", recv_list, grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("posinstcd")), "instcd") ;
-
- // unit이 달라지면 상위 부서도 가져온다..
- model.setValue("/root/send/search/grdunitcd", grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgunitcd")) );
- model.setValue("/root/send/search/emplno", "" );
- submit("TRRPS04000");
-
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgdeptnm")) = model.getValue("/root/init/emplinfo/dutdeptnm");
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgdeptcd")) = model.getValue("/root/init/emplinfo/dutdeptcd");
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgteamnm")) = model.getValue("/root/init/emplinfo/dutteamnm");
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgteamcd")) = model.getValue("/root/init/emplinfo/dutteamcd");
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( grd_educlist.col == grd_educlist.colRef("newpsn") || grd_educlist.col == grd_educlist.colRef("oldpsn") ) {
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("totalpsn"))
- = parseInt(grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("newpsn")))
- + parseInt(grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("oldpsn")));
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fEducTrgtManListRetrieve();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/main/grid/educlist" autoresize="true" caption="부서교육코드^연도^주체단위^주체기관코드^부서^부서코드^교육구분^교육명^교육기간^교육기간^예상인원^교육시간^비고^최종저장일^실시기관코드" colsep="^" colwidth="40, 50, 50, 62, 100, 40, 100, 200, 95, 95, 100, 102, 140, 110" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:99px; width:1194px; height:271px; ">
- <col ref="depteduccd" visibility="hidden"/>
- <col class="input_s_essential" ref="appyy" _key="true" style="text-align:center; "/>
- <col class="combo_s_essential" ref="mainbdunit" visibility="hidden"/>
- <col ref="posinstcd" visibility="hidden"/>
- <col class="input_s_essential" ref="chrgunitnm" type="inputbutton" style="text-align:center; "/>
- <col class="input_s_essential" ref="chrgunitcd" visibility="hidden"/>
- <col class="input_s_essential" ref="educflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_s_essential" ref="educnm" type="input" maxlength="300"/>
- <col class="input_s_essential" ref="educfromdd" type="inputdate" _key="true" style="text-align:center; "/>
- <col class="input_s_essential" ref="eductodd" type="inputdate" _key="true" style="text-align:center; "/>
- <col/>
- <col class="input_s_essential" ref="eductime" type="input" maxlength="20" style="text-align:center; "/>
- <col class="combo_s_essential" ref="educplce" type="input" style="text-align:left; "/>
- <col class="input_search" ref="bugt" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_educlist.col == grd_educlist.colRef("chrgunitnm")) {
- var recv_list = "chrgunitcd,chrgunitnm";
- misfOpenPopUpList("02", grd_educlist,"", recv_list, grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("posinstcd")), "instcd") ;
-
- // unit이 달라지면 상위 부서도 가져온다..
- model.setValue("/root/send/search/grdunitcd", grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgunitcd")) );
- model.setValue("/root/send/search/emplno", "" );
- submit("TRRPS04000");
-
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgdeptnm")) = model.getValue("/root/init/emplinfo/dutdeptnm");
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgdeptcd")) = model.getValue("/root/init/emplinfo/dutdeptcd");
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgteamnm")) = model.getValue("/root/init/emplinfo/dutteamnm");
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("chrgteamcd")) = model.getValue("/root/init/emplinfo/dutteamcd");
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( grd_educlist.col == grd_educlist.colRef("newpsn") || grd_educlist.col == grd_educlist.colRef("oldpsn") ) {
- grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("totalpsn"))
- = parseInt(grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("newpsn")))
- + parseInt(grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("oldpsn")));
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fEducTrgtManListRetrieve();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|