123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <?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>근무자/실시자 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <dutplst>
- <item>
- <seqno/>
- <basecd/>
- <basenm/>
- <remfact/>
- <deptcd/>
- <orgbasecd/>
- </item>
- </dutplst>
- </main>
- <send>
- <basecd/>
- <savedutp/>
- <srchinstcd/>
- </send>
- <init>
- <deptcd/>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetSuppDeptcd();
- submit("TRAHB01201");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSetSuppDeptcd() {
- var dutplcecd = getUserInfo("dutplcecd");
- //var selectplcecd = getScreenPrestDeptCd();
-
- model.setValue("/root/init/deptcd" , dutplcecd);
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
- }
-
- function fSaveExer() {
- var save = getGridUpdateData(grd_execrlst);
- model.setValue("/root/send/savedutp" , save);
- submit("TXAHB01201");
- }
- ]]>
- </script>
- <submission id="TXAHB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutplst"/>
- <submission id="TRAHB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutplst"/>
- </model>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRAHB01201");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:112px; height:17px; ">실시자코드 :</caption>
- <button id="button61" class="icon_search" style="left:270px; top:9px; width:16px; height:16px; ">
- <caption/>
- </button>
- <input id="ipt_basecd" ref="/root/send/basecd" class="input_search" style="left:130px; top:8px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <button id="btn_gedadd" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_execrlst.addRow();
- var addRow = grd_execrlst.rows -1 ;
- grd_execrlst.valueMatrix(addRow , grd_execrlst.colRef("deptcd")) = model.getValue("/root/init/deptcd");
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_execrlst.row;
- var rowStat = grd_execrlst.rowStatus(row);
- if(rowStat == 1 || rowStat == 3) {
- grd_execrlst.deleteRow(row);
- }else {
- grd_execrlst.rowStatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:120px; height:14px; ">실시자관리</caption>
- <line id="line1" class="line_1" style="x1:3px; y1:73px; x2:1194px; y2:74px; "/>
- <datagrid id="grd_execrlst" nodeset="/root/main/dutplst/item" caption="순번 ^사번^성명^비고^부서코드^원본사원번호^basecdflag^basesuppdeptcd" colsep="^" colwidth="71, 97, 139, 858, 100, 100, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:90px; width:1191px; height:650px; ">
- <col ref="seqno" type="input"/>
- <col ref="basecd" type="input" maxlength="12" _chartype="upper" _key="true"/>
- <col ref="basenm" type="input"/>
- <col ref="remfact" type="input"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="orgbasecd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var col = grd_execrlst.col;
- var row = grd_execrlst.row;
- if(col == grd_execrlst.colRef("basecd")) {
- var count = -1;
- var chkRow = 0;
- var baseCd = grd_execrlst.valueMatrix(row,grd_execrlst.colRef("basecd"));
- //선행검사 중복체크
- while(chkRow >= 0) {
- chkRow = grd_execrlst.findRow(baseCd,chkRow+1,grd_execrlst.colRef("basecd"),false,true);
- count++;
- }
-
- if(count >= 2) {
- messageBox("사번이 ","E006");
- model.resetInstanceNode(grd_execrlst.nodeset + "[" + row + "]");
- return;
- }
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExer();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">근무자/실시자 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|