123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- <?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>SMRPS04300_부서교육관리자등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <deptadmin/>
- </grid>
- </main>
- <send>
- <search>
- <deptnm/>
- <deptcd/>
- <instcd/>
- <instnm/>
- <emplno/>
- </search>
- <save>
- </save>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGetUserAuth();
- fCheckAuth(); // 버튼권한부여
-
- // user정보조회
- model.setValue("/root/send/search/emplno",getUserInfo("userid"));
- submit("TRRPS04000");
-
- model.setValue("/root/send/search/emplno",'');
-
- //misfComboComCdListMulti("Z0007", "cmb_instcd", null, "Y");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
- // user정보조회
- model.setValue("/root/send/search/instcd",model.getValue("/root/init/emplinfo/dutplceinst"));
- model.setValue("/root/send/search/deptnm",model.getValue("/root/init/emplinfo/dutunitnm"));
- model.setValue("/root/send/search/deptcd",model.getValue("/root/init/emplinfo/dutunitcd"));
-
- misfGridInit(grd_deptadmin);
- misfMsterDetailSet(grd_deptadmin,null, "TRRPS04301" ,"Y");
- model.removenode("/root/main/grid/deptadmin");
- grd_deptadmin.selectionMode = "byrow";
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRPS04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/emplinfo"/>
- <submission id="TRRPS04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/grid/deptadmin"/>
- <submission id="TXRPS04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" 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[
- function fCheckAuth() {
- btn_save.disabled = !checkAuth("X") ;
- btn_excel.disabled = !checkAuth("X") ;
-
- if ( DUTY_EDU_YN == "Y" || DUTY_RESP_YN == "Y" ) {
- cmb_instcd.disabled = false;
- }
- }
- ]]>
- </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("cmb_instcd")) return;
-
- submit("TRRPS04301");
- ]]>
- </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>
- <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("cmb_instcd")) return;
-
- misfGridIUD(grd_deptadmin, "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("cmb_instcd")) return;
-
- misfGridIUD(grd_deptadmin, "A");
- grd_deptadmin.valueMatrix(grd_deptadmin.row, grd_deptadmin.colRef("instcd")) = cmb_instcd.value;
- grd_deptadmin.valueMatrix(grd_deptadmin.row, grd_deptadmin.colRef("deptcd")) = ipt_deptcd.value;
- grd_deptadmin.valueMatrix(grd_deptadmin.row, grd_deptadmin.colRef("deptnm")) = ipt_deptnm.value;
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:53px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_deptadmin);
- ]]>
- </script>
- </button>
- <button id="btn_unit" class="icon_search" style="left:650px; top:18px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_deptnm, "", "deptcd,deptnm", cmb_instcd.value, "instcd");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:410px; top:18px; width:86px; height:17px; ">부 서 :</caption>
- <input id="ipt_deptnm" ref="/root/send/search/deptnm" class="input_search" appearance="input" style="left:495px; top:18px; width:150px; 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" disabled="true" style="left:670px; top:18px; width:85px; height:19px; text-align:center; "/>
- <caption id="caption1" class="search_name" style="left:25px; top:18px; width:86px; height:17px; ">기 관 :</caption>
- <datagrid id="grd_deptadmin" nodeset="/root/main/grid/deptadmin" caption="기관^부서^부서^사원번호^이름^변경전사번" colsep="^" colwidth="100, 250, 250, 250, 250, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:78px; width:1194px; height:642px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="emplno" type="inputbutton" _key="true"/>
- <col ref="emplnm"/>
- <col ref="oldemplno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var curdate = getCurrentDate().substr(0,4);
-
- if(grd_deptadmin.col == grd_deptadmin.colRef("emplno") ) {
- rpbfOpenPopUpList("SPRPB00101", grd_deptadmin, "emplno,emplnm", "", "N");
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:110px; top:18px; width:230px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkKeyColumn("grd_deptadmin") == false) return;
-
- model.setValue("/root/send/save",grd_deptadmin.getUpdateData());
- if(submit("TXRPS04301")) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|