1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159 |
- <?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>SMRPS04000_부서교육등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <educlist/>
- </grid>
- <list2>
- <eductrgtmanlist/>
- </list2>
- <list3>
- <emplist/>
- </list3>
- <list4>
- <excellist/>
- </list4>
- </main>
- <send>
- <search>
- <appyy/>
- <educflag/>
- <dutinstcd/>
- <chrgdeptnm/>
- <chrgdeptcd/>
- <chrgteamnm/>
- <chrgteamcd/>
- <chrgunitnm/>
- <chrgunitcd/>
- <emplno/>
- <grdunitcd/>
- <deptcd/>
- <instcd/>
- <posinstcd/>
- </search>
- <emplsearch>
- <instcd/>
- <dutunitcd/>
- <dutunitnm/>
- <frentcodd/>
- <toentcodd/>
- <emplnm/>
- <emplno/>
- <appyy/>
- <depteduccd/>
- <cmcfromdd/>
- <cmctodd/>
- <dutteamcd/>
- <dutteamnm/>
- <dutdeptcd/>
- <dutdeptnm/>
- <eduinstcd/>
- </emplsearch>
- <save>
- </save>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGetUserAuth();
- fCheckAuth();
-
- // user정보조회
- model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
- submit("TRRPS04000");
-
- var curdate = getCurrentDate();
- model.setValue(ipt_appyy.attribute("ref") , curdate.substr(0, 4));
- 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.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"));
- model.refresh();
-
- if ( DUTY_EDU_YN == "Y" || DUTY_RESP_YN == "Y" || DUTY_PART_YN == "Y" ){
- ipt_chrgdeptnm.disabled = false;
- ipt_chrgteamnm.disabled = false;
- ipt_chrgunitnm.disabled = false;
- btn_dept.disabled = false;
- btn_team.disabled = false;
- btn_unit.disabled = false;
-
- ipt_dutdeptnm.disabled = false;
- ipt_dutteamnm.disabled = false;
- ipt_dutunitnm.disabled = false;
- btn_dutdept.disabled = false;
- btn_dutteam.disabled = false;
- btn_dutunit.disabled = false;
- }
- else {
- fCheckDisabled(); // 관리자인지 체크하여 기본 조회부분의 활성화/비활성화를 결정한다.
- }
-
- misfGridInit(grd_educlist);
- grd_educlist.rowHeight(0) = 40;
- misfMsterDetailSet(grd_educlist,null, "TRRPS04001" ,"Y");
-
- rpsEducSetComboList("M01-007,M01-005,M01-007", "cmb_educflag,grd_educlist.medinstvalucd,grd_educlist.educflag", "Y");
- misfComboComCdListMulti("Z0007", "cmb_dutinstcd", null, "Y");
-
- model.removenode("/root/main/grid/educlist");
- model.removenode("/root/main/list2/eductrgtmanlist");
- model.removenode("/root/main/list3/emplist");
- model.makeNode("/root/main/list3");
-
- model.setValue(cmb_dutinstcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutplceinst"));
- model.setValue(ipt_dutunitnm.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitnm"));
- model.setValue(ipt_dutunitcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitcd"));
-
- // cmb_educflag.select(1) ;
- grd_educlist.selectionMode = "byrow";
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- grd_emplist.fixedcellcheckbox(0,grd_emplist.colRef("chk")) = true; // 그리드에 있는 전체선택 체크박스
- grd_eductrgtmanlist.fixedcellcheckbox(0,grd_eductrgtmanlist.colRef("chk")) = true;
- ]]>
- </script>
- <submission id="TRRPS04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" 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="TRRPS04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/grid/educlist"/>
- <submission id="TXRPS04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/educlist" resultref="/root/temp"/>
- <submission id="TRRPS04102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/emplsearch" resultref="/root/main/list2"/>
- <submission id="TRRPS04103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/emplsearch" resultref="/root/main/list3"/>
- <submission id="TRRPS00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/emplsearch" resultref="/root/main/list3"/>
- <submission id="TXRPS04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/eductrgtmanlist" 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"/>
- <script type="javascript">
- <![CDATA[
- var ROW = 0; // 새로 조회되었을때 row를 선택하기 위해서..
-
- function fCheckAuth() {
- btn_save.disabled = !checkAuth("X") ;
- }
-
- 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_save.disabled = false;
- btn_search.disabled = false;
- }
- else {
- btn_save.disabled = true;
- 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;
-
- ipt_dutteamnm.disabled = false;
- ipt_dutunitnm.disabled = false;
- btn_dutteam.disabled = false;
- btn_dutunit.disabled = false;
- }
- else if (model.getValue("/root/init/deptadmin/unityn") == "Y") {
- ipt_chrgunitnm.disabled = false;
- btn_unit.disabled = false;
-
- ipt_dutunitnm.disabled = false;
- btn_dutunit.disabled = false;
- }
- else {
- ipt_chrgteamnm.disabled = true;
- ipt_chrgunitnm.disabled = true;
- btn_team.disabled = true;
- btn_unit.disabled = true;
-
- ipt_dutteamnm.disabled = true;
- ipt_dutunitnm.disabled = true;
- btn_dutteam.disabled = true;
- btn_dutunit.disabled = true;
- }
- model.refresh();
- }
-
- function fEmpListRetrieve() {
- model.setValue("/root/send/emplsearch/appyy", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("appyy")));
- model.setValue("/root/send/emplsearch/depteduccd", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("depteduccd")));
-
- model.removeNodeset("/root/main/list3/emplist");
- submit("TRRPS04103");
- }
-
- function fCheckEmplno( emplno ) {
- for ( var idx = grd_eductrgtmanlist.fixedRows; idx <= grd_eductrgtmanlist.rows; idx++ ) {
- if( grd_eductrgtmanlist.valueMatrix(idx, grd_eductrgtmanlist.colRef("emplno")) == emplno ) {
- messageBox("이미 이수자로 등록되어 있습니다.","I999");
- return true;
- }
- }
- return false;
- }
-
- function fRgstTrgtManList() {
- if(grd_educlist.rows == 1) {
- messageBox("교육내용을", "C002");
- return;
- }
-
- var cnt = 0;
- for(var i=0; i<=grd_emplist.rows; i++) {
- var sChk = grd_emplist.valueMatrix(i, grd_emplist.colRef("chk"));
- if(sChk == "Y") {
- cnt++;
- var sEmplno = model.getValue(grd_emplist.nodeset + "[" + i + "]/emplno");
- var iRowIdx = grd_eductrgtmanlist.findRow(sEmplno, 0, grd_eductrgtmanlist.colRef("emplno"));
-
- if(iRowIdx != -1) continue;
- grd_eductrgtmanlist.addRow(false);
- grd_eductrgtmanlist.addStatus(iRowIdx, "insert");
- fSetTrgtManInfo(grd_eductrgtmanlist.row, i);
- }
- }
- }
-
- function fSetTrgtManInfo(iTrgtManRowIdx, iEmpListRowIdx) {
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/depteduccd", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("depteduccd")) );
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/eduinstcd", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("dutinstcd")) );
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/appyy", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("appyy")) );
-
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/emplno", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/emplno"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/emplnm", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/emplnm"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/prfshipflag", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/prfshipflag"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/prfshipnm", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/prfshipnm"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/dutinstcd", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/dutinstcd"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/dutinstnm", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/dutinstnm"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/dutdeptcd", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/dutdeptcd"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/dutdeptnm", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/dutdeptnm"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/holyordflag", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/holyordflag"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/holyordnm", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/holyordnm"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/grupjoblncd", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/grupjoblncd"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/grupjoblnnm", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/grupjoblnnm"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/njobgradcd", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/njobgradcd"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/njobgradnm", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/njobgradnm"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/anual", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/anual"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/jobkindcd", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/jobkindcd"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/jobkindnm", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/jobkindnm"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/jobrespcd", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/jobrespcd"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/jobrespnm", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/jobrespnm"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/gender", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/gender"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + iTrgtManRowIdx + "]/entcodd", model.getValue(grd_emplist.nodeset + "[" + iEmpListRowIdx + "]/entcodd"));
- }
-
- function fLoadExcel() {
- if(grd_educlist.rows == 1) {
- messageBox("교육내용을", "C002");
- return;
- }
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_loadexcel.loadExcel(fileName);
- grd_loadexcel.rebuild();
-
- var sEmplno = "";
- var iRowIdx = -1;
-
- for(var i=1; i<grd_loadexcel.rows; i++) {
- sEmplno = grd_loadexcel.valueMatrix(i, grd_loadexcel.colRef("emplno"));
-
- if(sEmplno == "") continue;
-
- iRowIdx = grd_eductrgtmanlist.findRow(sEmplno, 0, grd_eductrgtmanlist.colRef("emplno"));
-
- if(iRowIdx != -1) {
- continue;
- }
- else {
- grd_eductrgtmanlist.addRow(false);
-
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + grd_eductrgtmanlist.row + "]/depteduccd", model.getValue(grd_educlist.nodeset + "[" + grd_educlist.row + "]/depteduccd"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + grd_eductrgtmanlist.row + "]/appyy", model.getValue(grd_educlist.nodeset + "[" + grd_educlist.row + "]/appyy"));
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + grd_eductrgtmanlist.row + "]/eduinstcd", model.getValue(grd_educlist.nodeset + "[" + grd_educlist.row + "]/dutinstcd"));
-
- model.setValue(grd_eductrgtmanlist.nodeset + "[" + grd_eductrgtmanlist.row + "]/emplno", model.getValue(grd_loadexcel.nodeset + "[" + i + "]/emplno"));
- }
- }
- model.refresh();
- }
-
- function fSave() {
- model.removenode("/root/send/save");
- model.makeNode("/root/send/save/eductrgtmanlist");
- model.setValue("/root/send/save/eductrgtmanlist",grd_eductrgtmanlist.getUpdateData() );
- model.refresh();
- if( submit("TXRPS04101") ){
- messageBox("","I001");
- fEducTrgtManListRetrieve();
- }
-
- for(var idx = grd_emplist.fixedRows; idx <= grd_emplist.rows; idx++ ) {
- if(grd_emplist.valueMatrix(idx,grd_emplist.colRef("chk")) == 'Y' ) {
- grd_emplist.deleteRow(idx,false);
- idx--;
- }
- }
- model.refresh();
- }
-
- function fEducTrgtManListRetrieve() {
- model.setValue("/root/send/emplsearch/appyy", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("appyy")));
- model.setValue("/root/send/emplsearch/depteduccd", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("depteduccd")));
- model.setValue("/root/send/emplsearch/eduinstcd", grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("dutinstcd")));
-
- submit("TRRPS04102");
- model.refresh();
- }
-
- // 저장하기전에 필수입력값중 빈컬럼이 있는지 체크
- function fCheckColumn() {
- for(var idx = grd_educlist.fixedrows; idx <= grd_educlist.rows; idx++ )
- {
- if( grd_educlist.rowStatus(idx) == '1' || grd_educlist.rowStatus(idx) == '3' ||grd_educlist.rowStatus(idx) == '2' ) {
- // if( grd_educlist.valueMatrix(idx,grd_educlist.colRef("chrgunitnm")) == '' ) {
- // messageBox("부서명은","I003");
- // return false;
- // }
- // else
- if( grd_educlist.valueMatrix(idx,grd_educlist.colRef("educflag")) == '' ) {
- messageBox("교육구분은","I003");
- return false;
- }
- else if( grd_educlist.valueMatrix(idx,grd_educlist.colRef("educnm")) == '' ) {
- messageBox("교육명은","I003");
- return false;
- }
- else if( grd_educlist.valueMatrix(idx,grd_educlist.colRef("educfromdd")) == '' ) {
- messageBox("교육기간(from)은","I003");
- return false;
- }
- else if( grd_educlist.valueMatrix(idx,grd_educlist.colRef("eductodd")) == '' ) {
- messageBox("교육기간(to)은","I003");
- return false;
- }
- else if( grd_educlist.valueMatrix(idx,grd_educlist.colRef("eductime")) == '' ) {
- messageBox("교육시간일정은","I003");
- return false;
- }
- else if( grd_educlist.valueMatrix(idx,grd_educlist.colRef("eductm")) == '' ) {
- messageBox("교육총시간은","I003");
- return false;
- }
- else if( grd_educlist.valueMatrix(idx,grd_educlist.colRef("educplce")) == '' ) {
- messageBox("교육장소는","I003");
- return false;
- }
- return true;
- }
- }
- }
- ]]>
- </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:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1118px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
- submit("TRRPS04001");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1100px; y1:16px; x2:1100px; y2:38px; "/>
- <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:14px; ">부서교육목록</caption>
- <caption id="cap_appyy" class="search_name" style="left:16px; top:18px; width:101px; height:17px; ">년 도 :</caption>
- <input id="ipt_appyy" ref="/root/send/search/appyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:80px; top:18px; width:86px; height:19px; text-align:center; "/>
- <caption id="cap_educflag" class="search_name" style="left:890px; top:18px; width:101px; height:17px; ">교육구분 :</caption>
- <select1 id="cmb_educflag" ref="/root/send/search/educflag" class="combo_search" appearance="minimal" style="left:975px; top:18px; width:100px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_educlist" nodeset="/root/main/grid/educlist" autoresize="true" caption="부서교육코드^연도^주체단위^주체기관코드^부(실)^부서코드^과(팀)^팀코드^부서^유닛코드^교육구분
(부서교육/부서신입교육)^의료기관평가코드^교육명
(직무관련명칭위주)^차수^교육기간
(ex, 2009-01-01~2009-01-01)^교육기간
(ex, 2009-01-01~2009-01-01)^교육시간일정
(ex, 08:00~18:00)^교육총시간
(단위:시간, ex 1.5)^교육장소^신입
인원^재직원
인원^총인원^이수자
인원^강사^예산(단위:원)^교육평가(간략하게 주요사항 기술)^실시기관코드" colsep="^" colwidth="40, 50, 50, 62, 120, 40, 110, 40, 100, 40, 150, 120, 200, 40, 95, 95, 102, 113, 140, 50, 50, 50, 56, 100, 110, 419" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:78px; width:1194px; height:218px; ">
- <col class="input_search" 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 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_s_essential" ref="chrgunitnm" type="output" 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" maxlength="100" _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" format="99:99-99:99" maxlength="20" style="text-align:center; "/>
- <col class="input_s_essential" imemode="disabled" ref="eductm" type="input" 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" style="text-align:center; "/>
- <col class="input_s_essential" ref="oldpsn" type="input" format="####" maxlength="4" style="text-align:center; "/>
- <col class="input_search" ref="totalpsn" format="####" maxlength="4" style="text-align:center; "/>
- <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; "/>
- <col ref="educvalu" type="input" maxlength="300"/>
- <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")));
- }
-
- // var fromdd = grd_educlist.valueMatrix(grd_educlist.row-1,grd_educlist.colRef("educnm")).substr(0,4) ;
- // var todd = grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("educnm")).substr(4,4);
- //
- // if( fromtm != '' && totm != '' ) {
- // var totalsec = getTimeInterval(fromtm,totm); // dateHelper.js 에 있는 함수. 시간차이를 초단위로 반환
- // grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("eductm")) = parseInt(totalsec / 60);
- // }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_educlist.rowStatus(grd_educlist.row) != "0" ) {
- return ;
- }
-
- fEducTrgtManListRetrieve();
- btn_search2.dispatch("DOMActivate");
- ]]>
- </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_educlist, "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;
-
- model.removenode("/root/main/list2");
- model.removenode("/root/main/list3");
- model.removenode("/root/save");
-
- if( grd_educlist.fixedRows == grd_educlist.rows) {
- misfGridIUD(grd_educlist, "A");
- }
- else {
- grd_educlist.insertRow(grd_educlist.fixedRows,"above");
- }
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("appyy")) = ipt_appyy.value;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("mainbdunit")) = "3";
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("dutinstcd")) = ipt_dutinstcd.value;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("chrgdeptnm")) = ipt_chrgdeptnm.value;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("chrgdeptcd")) = ipt_chrgdeptcd.value;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("chrgteamnm")) = ipt_chrgteamnm.value;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("chrgteamcd")) = ipt_chrgteamcd.value;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("chrgunitnm")) = ipt_chrgunitnm.value;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("chrgunitcd")) = ipt_chrgunitcd.value;
-
- // grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("educflag")) = cmb_educflag.value;
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("newpsn")) = "0";
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("oldpsn")) = "0";
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("totalpsn")) = "0";
- grd_educlist.valueMatrix(grd_educlist.row, grd_educlist.colRef("cmpltcurspsnno")) = "0";
-
- model.refresh();
- ]]>
- </script>
- </button>
- <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[
- 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_chrgdeptnm" ref="/root/send/search/chrgdeptnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:274px; top:18px; width:104px; height:19px; ">
- <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" disabled="true" visibility="hidden" style="left:310px; top:25px; width:50px; height:19px; "/>
- <input id="ipt_dutinstcd" ref="/root/send/search/dutinstcd" visibility="hidden" style="left:680px; top:50px; width:50px; height:19px; "/>
- <input id="ipt_chrgteamnm" ref="/root/send/search/chrgteamnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:500px; top:18px; width:113px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_chrgteamnm.value.getByteLength() == '0' ) {
- ipt_chrgteamcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_chrgteamcd" ref="/root/send/search/chrgteamcd" disabled="true" visibility="hidden" style="left:535px; top:30px; width:50px; height:19px; "/>
- <button id="btn_unit" class="icon_search" disabled="true" style="left:840px; top:19px; 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( ipt_chrgunitnm.value != "" ) {
- if ( DUTY_EDU_YN == "Y" || DUTY_RESP_YN == "Y" || DUTY_PART_YN == "Y" ){
- // 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"));
-
- model.refresh();
- }
- 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>
- <caption id="caption3" class="search_name" style="left:655px; top:18px; width:86px; height:17px; ">부 서 :</caption>
- <input id="ipt_chrgunitnm" ref="/root/send/search/chrgunitnm" class="input_search" disabled="true" appearance="input" style="left:720px; top:18px; width:118px; height:19px; ">
- <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:745px; top:30px; width:85px; height:19px; text-align:center; "/>
- <input id="ipt_emplno" ref="/root/send/search/emplno" visibility="hidden" style="left:845px; top:50px; width:90px; height:19px; "/>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:300px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_dutunit" class="icon_search" disabled="true" style="left:801px; top:334px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpsfEducOpenPopUpList("07", ipt_dutunitnm, "", "dutunitcd,dutunitnm", cmb_dutinstcd.value, "instcd");
-
- if( ipt_dutunitnm.value != "" ) {
- if ( DUTY_EDU_YN == "Y" || DUTY_RESP_YN == "Y" || DUTY_PART_YN == "Y" ){
- // unit이 달라지면 상위 부서도 가져온다..
- model.setValue("/root/send/search/grdunitcd", ipt_dutunitcd.value);
- model.setValue("/root/send/search/emplno", "" );
- submit("TRRPS04000");
-
- model.setValue("/root/send/emplsearch/dutdeptnm", model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue("/root/send/emplsearch/dutdeptcd", model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue("/root/send/emplsearch/dutteamnm", model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue("/root/send/emplsearch/dutteamcd", model.getValue("/root/init/emplinfo/dutteamcd"));
-
- model.refresh();
- }
- else {
- fCheckAdmin(); // 관리자인지 체크한다.
-
- // unit이 달라지면 상위 부서도 가져온다..
- model.setValue("/root/send/search/grdunitcd", ipt_dutunitcd.value);
- model.setValue("/root/send/search/emplno", "" );
- submit("TRRPS04000");
-
- // if( !btn_search2.disabled &&
- // model.getValue("/root/send/emplsearch/dutdeptcd") == model.getValue("/root/init/emplinfo/dutdeptcd") &&
- // model.getValue("/root/send/emplsearch/dutteamcd") == model.getValue("/root/init/emplinfo/dutteamcd") ) {
-
- model.setValue("/root/send/emplsearch/dutdeptnm", model.getValue("/root/init/emplinfo/dutdeptnm"));
- model.setValue("/root/send/emplsearch/dutdeptcd", model.getValue("/root/init/emplinfo/dutdeptcd"));
- model.setValue("/root/send/emplsearch/dutteamnm", model.getValue("/root/init/emplinfo/dutteamnm"));
- model.setValue("/root/send/emplsearch/dutteamcd", model.getValue("/root/init/emplinfo/dutteamcd"));
- // }
- /* else {
- messageBox("당신의 관리부서가 아닙니다. 확인바랍니다.","I999");
- ipt_dutunitcd.value = unitcd;
- ipt_dutunitnm.value = unitnm;
- }
- */
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="icon_search" style="left:989px; top:334px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno1, "emplno,emplnm", "", "N");
- if( fCheckEmplno(ipt_emplno1.value) ) ;
- else {
- btn_search2.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_search2" class="btn1_letter2" style="left:1118px; top:321px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var idx = grd_educlist.fixedRows; idx <= grd_educlist.rows; idx++) {
- if( grd_educlist.rowStatus(idx) == 0 ) continue;
- else {
- if(messageBox("변경된 교육이 있습니다. 저장하시겠습니까?","Q999") == '6') {
- if( fCheckColumn() ) {
- var row = grd_educlist.row;
- misfSave("TXRPS04001");
- submit("TRRPS04001");
- grd_educlist.row = row;
- model.refresh();
- }
- }
- else {
- return;
- }
- }
- }
-
- if( grd_educlist.rows == 1 ) {
- messageBox("교육먼저 선택해 주세요.","C999");
- return;
- // model.setValue("/root/send/emplsearch/appyy", ipt_appyy.value);
- // model.removeNodeset("/root/main/list3/emplist");
- // submit("TRRPS00304");
- }
- else {
- fEmpListRetrieve();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_frentcodd" ref="/root/send/emplsearch/frentcodd" class="input_s_essential" inputtype="date" style="left:353px; top:308px; width:88px; height:19px; "/>
- <input id="ipt_toentcodd" ref="/root/send/emplsearch/toentcodd" class="input_s_essential" inputtype="date" style="left:455px; top:308px; width:88px; height:19px; "/>
- <caption id="caption21" class="search_name" style="left:268px; top:310px; width:95px; height:17px; ">입사일자 :</caption>
- <input id="ipt_dutunitnm" ref="/root/send/emplsearch/dutunitnm" class="input_search" disabled="true" navindex="3" style="left:643px; top:333px; width:156px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_dutinstcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption22" style="left:443px; top:308px; width:11px; height:20px; ">~</caption>
- <input id="ipt_dutunitcd" ref="/root/send/emplsearch/dutunitcd" class="input_search" navindex="2" visibility="hidden" maxlength="10" style="left:739px; top:343px; width:58px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_dutinstcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:838px; top:333px; width:110px; height:17px; ">성 명 :</caption>
- <input id="ipt_emplnm" ref="/root/send/emplsearch/emplnm" class="input_search" navindex="3" style="left:914px; top:333px; width:73px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm";
- rpbfValidationCheck("emplno", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <line id="line1" class="line_4" style="x1:1100px; y1:305px; x2:1100px; y2:357px; "/>
- <input id="ipt_emplno1" ref="/root/send/emplsearch/emplno" class="input_search" navindex="2" visibility="visible" maxlength="10" style="left:1008px; top:333px; width:73px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm";
- rpbfValidationCheck("emplnm", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_dutinstcd" ref="/root/send/emplsearch/instcd" class="combo_s_essential" appearance="minimal" style="left:88px; top:308px; width:160px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption17" class="search_name" style="left:570px; top:333px; width:115px; height:17px; ">부 서 :</caption>
- <caption id="caption8" class="search_name" style="left:13px; top:310px; width:85px; height:17px; ">기 관 :</caption>
- <datagrid id="grd_emplist" nodeset="/root/main/list3/emplist" autoresize="true" caption="^사원번호^성명^교직구분코드^직원분류^근무기관코드^근무기관^근무부서코드^근무부서^성직구분코드^직원구분^직군코드^직군^신직급코드^신직급^년차^직종코드^직종^직책코드^직책^성별^입사일자^cmc입사일" colsep="^" colwidth="25, 65, 60, 0, 60, 0, 110, 0, 100, 0, 55, 0, 70, 0, 53, 35, 0, 68, 0, 38, 42, 66, 70" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:0px; top:389px; width:581px; height:344px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col ref="prfshipflag" visibility="hidden"/>
- <col ref="prfshipnm"/>
- <col ref="dutinstcd" visibility="hidden"/>
- <col ref="dutinstnm"/>
- <col ref="dutdeptcd" visibility="hidden"/>
- <col ref="dutdeptnm"/>
- <col ref="holyordflag" visibility="hidden"/>
- <col ref="holyordnm"/>
- <col ref="grupjoblncd" visibility="hidden"/>
- <col ref="grupjoblnnm" visibility="hidden"/>
- <col ref="njobgradcd" visibility="hidden"/>
- <col ref="njobgradnm"/>
- <col ref="anual" style="text-align:right; "/>
- <col ref="jobkindcd" visibility="hidden"/>
- <col ref="jobkindnm"/>
- <col ref="jobrespcd" visibility="hidden"/>
- <col ref="jobrespnm"/>
- <col disabled="true" ref="gender" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="entcodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cmcentcodd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_emplist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("depteduccd")) == "" ) {
- messageBox("교육을","C002");
- return;
- }
-
- var sEmplno = model.getValue(grd_emplist.nodeset + "[" + grd_emplist.row + "]/emplno");
- var iRowIdx = grd_eductrgtmanlist.findRow(sEmplno, 0, grd_eductrgtmanlist.colRef("emplno"));
-
- if(iRowIdx != -1) {
- messageBox("이미 대상자로 등록되어 있습니다.","I999");
- return;
- }
-
- // 직원을 이수자로 등록한다.
- grd_eductrgtmanlist.addRow(false);
- fSetTrgtManInfo(grd_eductrgtmanlist.row, grd_emplist.row);
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_remove" class="btn2_letter3" style="left:528px; top:364px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/list3");
- grd_emplist.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption16" class="tit_2" style="left:0px; top:369px; width:144px; height:13px; ">직원목록</caption>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1005px; top:364px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_eductrgtmanlist);
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:1138px; top:364px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- var rowcnt = grd_eductrgtmanlist.rows;
- for( var i = 1; i < rowcnt; i++ ) {
- if( grd_eductrgtmanlist.valueMatrix(i, grd_eductrgtmanlist.colRef("chk")) == "Y" ) {
- grd_eductrgtmanlist.removeStatus(i, "insert");
- grd_eductrgtmanlist.addStatus(i, "delete");
- }
- }
- */
-
- grd_eductrgtmanlist.addStatus(grd_eductrgtmanlist.row, "delete");
-
- grd_eductrgtmanlist.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption13" class="tit_2" style="left:615px; top:369px; width:169px; height:13px; ">이수자 목록</caption>
- <button id="btn_loadexcel" class="btn2_letter4" style="left:1070px; top:364px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fLoadExcel();
- ]]>
- </script>
- </button>
- <datagrid id="grd_loadexcel" nodeset="/root/main/list4/excellist" visibility="hidden" caption="사번" colsep="^" colwidth="80" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:1065px; top:620px; width:120px; height:96px; ">
- <col ref="emplno" style="text-align:center; "/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:615px; y1:385px; x2:1195px; y2:386px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:385px; x2:581px; y2:386px; "/>
- <img id="btn_addtrgtman" class="icon_right" style="left:584px; top:550px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- for(var idx = grd_educlist.fixedRows; idx <= grd_educlist.rows; idx++) {
- if( grd_educlist.rowStatus(idx) == 0 ) continue;
- else {
- if(messageBox("변경된 교육이 있습니다. 저장하시겠습니까?","Q999") == '6') {
- var row = grd_educlist.row;
- misfSave("TXRPS04001");
- submit("TRRPS04001");
- grd_educlist.row = row;
- model.refresh();
- }
- else {
- return;
- }
- }
- }
-
- if( grd_educlist.valueMatrix(grd_educlist.row,grd_educlist.colRef("depteduccd")) == "" ) {
- messageBox("교육을","C002");
- return;
- }
- var sEmplno = model.getValue(grd_emplist.nodeset + "[" + grd_emplist.row + "]/emplno");
- var iRowIdx = grd_eductrgtmanlist.findRow(sEmplno, 0, grd_eductrgtmanlist.colRef("emplno"));
-
- if(iRowIdx != -1) {
- messageBox("이미 대상자로 등록되어 있습니다.","I999");
- return;
- }
- fRgstTrgtManList();
- model.refresh();
- ]]>
- </script>
- </img>
- <datagrid id="grd_eductrgtmanlist" nodeset="/root/main/list2/eductrgtmanlist" autoresize="true" caption="교육코드^적용년월^^사원번호^성명^교직구분코드^직원분류^근무기관코드^근무기관^근무부서코드^근무부서^성직구분코드^직원구분^직군코드^직군^신직급코드^신직급^현직급발령일^년차^직종코드^직종^직책코드^직책^직책발령일자^성별^입사일자^cmc입사일^교육기관코드" colsep="^" colwidth="72, 72, 25, 65, 60, 0, 60, 0, 110, 0, 100, 0, 54, 0, 70, 0, 53, 91, 35, 0, 67, 0, 40, 89, 41, 66, 69, 100" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:613px; top:389px; width:581px; height:344px; ">
- <col ref="depteduccd" visibility="hidden"/>
- <col ref="appyy" visibility="hidden"/>
- <col checkvalue="Y,N" ref="chk" type="checkbox" visibility="hidden"/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col ref="prfshipflag" visibility="hidden"/>
- <col ref="prfshipnm"/>
- <col ref="dutinstcd" visibility="hidden"/>
- <col ref="dutinstnm"/>
- <col ref="dutdeptcd" visibility="hidden"/>
- <col ref="dutdeptnm"/>
- <col ref="holyordflag" visibility="hidden"/>
- <col ref="holyordnm"/>
- <col ref="grupjoblncd" visibility="hidden"/>
- <col ref="grupjoblnnm" visibility="hidden"/>
- <col ref="njobgradcd" visibility="hidden"/>
- <col ref="njobgradnm"/>
- <col ref="jobgradorddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="anual" style="text-align:right; "/>
- <col ref="jobkindcd" visibility="hidden"/>
- <col ref="jobkindnm"/>
- <col ref="jobrespcd" visibility="hidden"/>
- <col ref="jobrespnm"/>
- <col ref="jobresporddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="gender" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="entcodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cmcentcodd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eduinstcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_eductrgtmanlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_cmctodd" ref="/root/send/emplsearch/cmctodd" class="input_search" visibility="hidden" inputtype="date" style="left:786px; top:308px; width:88px; height:19px; "/>
- <input id="ipt_cmcfromdd" ref="/root/send/emplsearch/cmcfromdd" class="input_search" visibility="hidden" inputtype="date" style="left:683px; top:308px; width:88px; height:19px; "/>
- <caption id="caption28" class="search_name" visibility="hidden" style="left:570px; top:310px; width:118px; height:17px; ">CMC 입사일 :</caption>
- <caption id="caption29" visibility="hidden" style="left:773px; top:310px; width:16px; height:16px; ">~</caption>
- <button id="btn_dept" class="icon_search" disabled="true" style="left:380px; top:19px; 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>
- <caption id="caption1" class="search_name" style="left:425px; top:18px; width:86px; height:17px; ">과(팀) :</caption>
- <caption id="caption2" class="search_name" style="left:200px; top:18px; width:86px; height:17px; ">부(실) :</caption>
- <button id="btn_team" class="icon_search" disabled="true" style="left:615px; top:19px; 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_rowcopy" class="btn2_letter3" style="left:960px; top:53px; 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 {
- grd_educlist.insertRow(grd_educlist.fixedRows,"above");
- row = row+1;
- 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 + "]/mainbdunit" ,model.getValue("/root/main/grid/educlist[" + row + "]/mainbdunit"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/dutinstcd" ,model.getValue("/root/main/grid/educlist[" + row + "]/dutinstcd"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/chrgdeptnm" ,model.getValue("/root/main/grid/educlist[" + row + "]/chrgdeptnm"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/chrgdeptcd" ,model.getValue("/root/main/grid/educlist[" + row + "]/chrgdeptcd"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/chrgteamnm" ,model.getValue("/root/main/grid/educlist[" + row + "]/chrgteamnm"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/chrgteamcd" ,model.getValue("/root/main/grid/educlist[" + row + "]/chrgteamcd"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/chrgunitnm" ,model.getValue("/root/main/grid/educlist[" + row + "]/chrgunitnm"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/chrgunitcd" ,model.getValue("/root/main/grid/educlist[" + row + "]/chrgunitcd"));
- 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 + "]/medinstvalucd" ,model.getValue("/root/main/grid/educlist[" + row + "]/medinstvalucd"));
- 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 + "]/educdg" ,model.getValue("/root/main/grid/educlist[" + row + "]/educdg"));
- 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 + "]/eductime" ,model.getValue("/root/main/grid/educlist[" + row + "]/eductime"));
- 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 + "]/educplce" ,model.getValue("/root/main/grid/educlist[" + row + "]/educplce"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/newpsn" ,model.getValue("/root/main/grid/educlist[" + row + "]/newpsn"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/oldpsn" ,model.getValue("/root/main/grid/educlist[" + row + "]/oldpsn"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/totalpsn" ,model.getValue("/root/main/grid/educlist[" + row + "]/totalpsn"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/cmpltcurspsnno" ,model.getValue("/root/main/grid/educlist[" + row + "]/cmpltcurspsnno"));
- 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 + "]/bugt" ,model.getValue("/root/main/grid/educlist[" + row + "]/bugt"));
- model.setValue("/root/main/grid/educlist[" + grd_educlist.row + "]/educvalu" ,model.getValue("/root/main/grid/educlist[" + row + "]/educvalu"));
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_dutdept" class="icon_search" disabled="true" style="left:230px; top:334px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpsfEducOpenPopUpList("05", ipt_dutdeptnm, "", "dutdeptcd,dutdeptnm", cmb_dutinstcd.value, "instcd");
-
- // 부(실)을 변경하면 과(팀), 부서는 모두 공백으로 변경한다.
- model.setValue("/root/send/emplsearch/dutteamnm", "");
- model.setValue("/root/send/emplsearch/dutteamcd", "");
- model.setValue("/root/send/emplsearch/dutunitnm", "");
- model.setValue("/root/send/emplsearch/dutunitcd", "");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_dutdeptnm" ref="/root/send/emplsearch/dutdeptnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:88px; top:333px; 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>
- <caption id="caption5" class="search_name" style="left:268px; top:333px; width:87px; height:17px; ">과 (팀) :</caption>
- <caption id="caption7" class="search_name" style="left:13px; top:333px; width:86px; height:17px; ">부(실) :</caption>
- <input id="ipt_dutdeptcd" ref="/root/send/emplsearch/dutdeptcd" disabled="true" visibility="hidden" style="left:124px; top:340px; width:50px; height:19px; "/>
- <button id="btn_dutteam" class="icon_search" disabled="true" style="left:523px; top:334px; 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/emplsearch/dutunitnm", "");
- model.setValue("/root/send/emplsearch/dutunitcd", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_dutteamnm" ref="/root/send/emplsearch/dutteamnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:353px; top:333px; width:168px; 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/emplsearch/dutteamcd" disabled="true" visibility="hidden" style="left:388px; top:345px; width:50px; height:19px; "/>
- </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[
- ROW = grd_educlist.row;
- if( fCheckColumn() == false) return;
-
- if(misfSave("TXRPS04001")) {
- var rowcnt = grd_eductrgtmanlist.rows;
- for( var i = 0; i < rowcnt; i++ ) {
- grd_emplist.fixedcellischeck(0, grd_emplist.colRef("chk")) = false; // 전체 체크박스를 초기화
- grd_eductrgtmanlist.fixedcellischeck(i, grd_eductrgtmanlist.colRef("chk")) = false;
- }
- grd_eductrgtmanlist.refresh();
-
- fSave();
- btn_search.dispatch("DOMActivate");
- grd_educlist.row = ROW;
- btn_search2.dispatch("DOMActivate");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|