123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663 |
- <?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>SMRPS01500_외부교육부서및인사팀승인</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <rpsmedap/>
- </main>
- <send>
- <init>
- <inoutflag/>
- <appyy/>
- <dutinstcd/>
- <dutunitcd/>
- <dutunitnm/>
- <educfromdd/>
- <eductodd/>
- <emplno/>
- <emplnm/>
- </init>
- <save/>
- </send>
- <init>
- <item>
- <value/>
- <label>전체</label>
- </item>
- <item>
- <value>I</value>
- <label>국내</label>
- </item>
- <item>
- <value>O</value>
- <label>국외</label>
- </item>
- <item1>
- <value>N</value>
- <label>미처리</label>
- </item1>
- <item1>
- <value>Y</value>
- <label>승인</label>
- </item1>
- <item1>
- <value>R</value>
- <label>반려</label>
- </item1>
- </init>
- <temp>
- </temp>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInit()
- {
- model.setValue("/root/send/init/appyy", getCurrentDate().substr(0, 4));
- model.removenode("/root/main/rpsmedap");
- misfComboComCdListMulti("Z0007", "cmb_dutinstcd", null, "Y");
-
- // 기관, 부서, 사원번호에 user session에 있는 내용을 세팅한다.
- model.setValue("/root/send/init/dutunitcd", getUserInfo("dutplcecd"));
- model.setValue("/root/send/init/dutunitnm", getUserInfo("dutplcenm"));
- model.setValue("/root/send/init/dutinstcd", getUserInfo("dutplceinstcd"));
-
- grd_rpsmedap.fixedcellcheckbox(1,13)=true; // 그리드에 있는 전체선택 체크박스
- grd_insa.fixedcellcheckbox(1,13)=true; // 그리드에 있는 전체선택 체크박스
- grd_insa.fixedcellcheckbox(1,16)=true;
-
- var userdeptcd = getUserInfo("dutplcecd");
- if( userdeptcd == '4020500000' || userdeptcd == '4020500300' ) {
- grd_insa.visible = true;
- grd_rpsmedap.visible = false;
- }
- else {
- grd_insa.visible = false;
- grd_rpsmedap.visible = true;
- }
-
- fCheck() ;
- model.refresh();
- }
-
- function fCheck() {
- var userinstcd = getUserInfo("dutplceinstcd");
- var userdeptcd = getUserInfo("dutplcecd");
- if( userinstcd == '001' || (userinstcd == '012' && ( userdeptcd == '4020500000' || userdeptcd == '4020503000' )))
- cmb_dutinstcd.disabled = false;
- else
- cmb_dutinstcd.disabled = true;
-
- if( userdeptcd == '4020500000' || userdeptcd == '4020503000' ) {
- ipt_dutunitcd.disabled = false;
- ipt_dutunitnm.disabled = false;
- ipt_emplno.disabled = false;
- ipt_emplnm.disabled = false;
-
- grd_insa.colDisabled(grd_insa.colRef("deptaprvyn") ) = false;
-
- grd_insa.colDisabled(grd_insa.colRef("lastchk") ) = false;
- grd_insa.colDisabled(grd_insa.colRef("lastaprvyn") ) = false;
- grd_insa.colDisabled(grd_insa.colRef("lastreturn") ) = false;
- grd_insa.colDisabled(grd_insa.colRef("offctouramtpayyn") ) = false;
- }
- else {
- grd_rpsmedap.colDisabled(grd_rpsmedap.colRef("lastchk") ) = true;
- grd_rpsmedap.colDisabled(grd_rpsmedap.colRef("lastaprvyn") ) = true;
- grd_rpsmedap.colDisabled(grd_rpsmedap.colRef("lastreturn") ) = true;
- grd_rpsmedap.colDisabled(grd_rpsmedap.colRef("offctouramtpayyn") ) = true;
-
- grd_rpsmedap.colDisabled(grd_rpsmedap.colRef("deptaprvyn") ) = false;
- }
- model.refresh();
- }
-
- function fSave()
- {
- model.makeNode("/root/send/save");
-
- var userdeptcd = getUserInfo("dutplcecd");
- if( userdeptcd == '4020500000' || userdeptcd == '4020503000' ) {
- model.setValue("/root/send/save", grd_insa.getUpdateData());
- }
- else {
- model.setValue("/root/send/save", grd_rpsmedap.getUpdateData());
- }
-
- if( submit("TXRPS01501") )
- messageBox("","I001");
- }
-
- function fCheckYN( row, col ) {
- if( grd_insa.colRef("deptchk") == col && grd_insa.valueMatrix(row,grd_insa.colRef("deptchk")) == "Y" ) {
- grd_insa.valueMatrix(row,grd_insa.colRef("flagd")) = "D";
- }
- else if( grd_insa.colRef("deptaprvyn") == col ) {
- grd_insa.valueMatrix(row,grd_insa.colRef("flagd")) = "D";
- }
- else if( grd_insa.colRef("deptreturn") == col ) {
- grd_insa.valueMatrix(row,grd_insa.colRef("flagd")) = "D";
- }
-
- else if( grd_insa.colRef("lastchk") == col && grd_insa.valueMatrix(row,grd_insa.colRef("lastchk")) == "Y" ) {
- grd_insa.valueMatrix(row,grd_insa.colRef("flagl")) = "L";
- }
- else if( grd_insa.colRef("lastaprvyn") == col ) {
- grd_insa.valueMatrix(row,grd_insa.colRef("flagl")) = "L";
- }
- else if( grd_insa.colRef("lastreturn") == col ) {
- grd_insa.valueMatrix(row,grd_insa.colRef("flagl")) = "L";
- }
- else {
- ;
- }
-
- }
-
- function fCheckDeptYN( row, col ) {
- if( grd_rpsmedap.colRef("deptchk") == col && grd_rpsmedap.valueMatrix(row,grd_rpsmedap.colRef("deptchk")) == 'Y' ) {
- grd_rpsmedap.valueMatrix(row,grd_rpsmedap.colRef("flagd")) = "D";
- }
- else if( grd_rpsmedap.colRef("deptchk") == col ){
- }
-
- else if( grd_rpsmedap.colRef("deptaprvyn") == col ) {
- grd_rpsmedap.valueMatrix(row,grd_rpsmedap.colRef("flagd")) = "D";
- }
- else if( grd_rpsmedap.colRef("deptreturn") == col ) {
- grd_rpsmedap.valueMatrix(row,grd_rpsmedap.colRef("flagd")) = "D";
- }
-
- else if( grd_rpsmedap.colRef("lastchk") == col && grd_rpsmedap.valueMatrix(row,grd_rpsmedap.colRef("lastchk")) == 'Y' ) {
- grd_rpsmedap.valueMatrix(row,grd_rpsmedap.colRef("flagl")) = "L";
- }
- else if( grd_rpsmedap.colRef("lastchk") == col ) {
- }
- else if( grd_rpsmedap.colRef("lastaprvyn") == col ) {
- grd_rpsmedap.valueMatrix(row,grd_rpsmedap.colRef("flagl")) = "L";
- }
- else if( grd_rpsmedap.colRef("lastreturn") == col ) {
- grd_rpsmedap.valueMatrix(row,grd_rpsmedap.colRef("flagl")) = "L";
- }
- }
- ]]>
- </script>
- <submission id="TRRPS01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/init" resultref="/root/main/rpsmedap"/>
- <submission id="TXRPS01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </model>
- </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:2px; width:1195px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line8" class="line_1" style="x1:0px; y1:87px; x2:1195px; y2:87px; "/>
- <caption id="caption29" class="tit_2" style="left:5px; top:73px; width:169px; height:13px; ">외부교육부서승인</caption>
- <datagrid id="grd_rpsmedap" nodeset="/root/main/rpsmedap" autoresize="true" caption="년도^근무기관^근무부서^사번^성명^주체기관^교육명^교육기간^교육기간^총교육시간^교육장소^과정교육비^부서장^부서장^반려사유^인사팀^인사팀^반려사유^출장비
지급여부^순번^flagd^flagl|년도^근무기관^근무부서^사번^성명^주체기관^교육명^From^To^총교육시간^교육장소^과정교육비^^승인여부^반려사유^^확인여부^반려사유^출장비
지급여부^순번^flagd^flagl" colsep="^" colwidth="60, 72, 60, 65, 60, 100, 180, 95, 95, 73, 80, 80, 30, 60, 150, 30, 60, 150, 60, 60, 50, 50" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:91px; width:1195px; height:614px; ">
- <col class="input_s_essential" ref="appyy" style="text-align:center; "/>
- <col class="input_s_essential" disabled="true" ref="dutinstcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_s_essential" ref="dutdeptnm"/>
- <col class="input_s_essential" ref="emplno" style="text-align:center; "/>
- <col class="input_s_essential" ref="emplnm" style="text-align:center; "/>
- <col class="combo_s_essential" disabled="true" ref="instcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_s_essential" ref="educnm"/>
- <col class="input_s_essential" disabled="true" ref="educfromdd" type="inputdate"/>
- <col class="input_s_essential" disabled="true" ref="eductodd" type="inputdate"/>
- <col ref="eductm" style="text-align:right; "/>
- <col class="input_s_essential" ref="educplce"/>
- <col ref="educamt" format="#,###"/>
- <col checkvalue="Y,N" ref="deptchk" type="checkbox"/>
- <col ref="deptaprvyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/item1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="deptreturn" type="input"/>
- <col checkvalue="Y,N" ref="lastchk" type="checkbox"/>
- <col ref="lastaprvyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/item1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="lastreturn" type="input"/>
- <col checkvalue="Y,N" ref="offctouramtpayyn" type="checkbox"/>
- <col ref="seq" visibility="hidden"/>
- <col ref="flagd" visibility="hidden"/>
- <col ref="flagl" visibility="hidden"/>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- // 인사팀일때 부서장승인여부가 N이면 인사팀 확인과 출장비지급여부를 체크할수 없어야 한다.
- var userdeptcd = getUserInfo("dutplcecd");
- if( userdeptcd == '4020500000' || userdeptcd == '4020503000' ) {
- if( grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("deptaprvyn")) == 'N' ) {
- messageBox("아직 확인하실수","I004");
- grd_rpsmedap.removeStatus(grd_rpsmedap.row,"update");
- grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("offctouramtpayyn")) = "false";
- grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("lastaprvyn")) = "false";
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 셀의 데이터가 변경되었을때 발생하는 이벤트..변경된 데이터가 부서장승인인지, 인사팀 승인인지 구분하기 위해서 필요..
- var row = grd_rpsmedap.row;
- var col = grd_rpsmedap.col;
-
- fCheckDeptYN(row,col);
- ]]>
- </script>
- </datagrid>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/rpsmedap");
- grd_rpsmedap.refresh();
- grd_insa.refresh();
- misfComboComCdListMulti("Z0007,Z0007,Z0007,Z0007,Z0007", "cmb_dutinstcd,grd_rpsmedap.dutinstcd,grd_rpsmedap.instcd,grd_insa.dutinstcd,grd_insa.instcd", null, "Y");
- fCheck() ;
- submit("TRRPS01501");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:58px; "/>
- <caption id="caption1" class="search_name" style="left:40px; top:36px; width:86px; height:17px; ">근무기관 :</caption>
- <input id="ipt_appyy" ref="/root/send/init/appyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:125px; top:11px; width:70px; height:19px; text-align:center; "/>
- <caption id="caption10" class="search_name" style="left:40px; top:10px; width:100px; height:17px; ">년 도 :</caption>
- <caption id="caption2" class="search_name" style="left:385px; top:36px; width:101px; height:17px; ">근 무 부 서 :</caption>
- <select1 id="cmb_dutinstcd" ref="/root/send/init/dutinstcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:125px; top:36px; width:180px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:770px; top:36px; width:89px; height:17px; ">사원번호 :</caption>
- <caption id="caption7" class="search_name" style="left:770px; top:11px; width:91px; height:17px; ">교육년월 :</caption>
- <caption id="caption75" class="search_name" style="left:385px; top:9px; width:99px; height:17px; ">국내외구분 :</caption>
- <select1 id="rdo_inoutflag" ref="/root/send/init/inoutflag" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:485px; top:9px; width:190px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_emplnm" ref="/root/send/init/emplnm" class="input_search" navindex="3" style="left:970px; top:36px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "emplno,emplnm", ipt_emplno.value, "instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- ipt_emplnm.value = ipt_emplnm.currentText;
-
- misfValidationCheck("02", "", "emplno,emplnm", ipt_emplno.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutunitnm" ref="/root/send/init/dutunitnm" class="input_search" disabled="true" navindex="7" style="left:582px; top:36px; width:118px; 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>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutunitcd.value = ipt_dutunitcd.currentText;
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_dutinstcd.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_emplno" ref="/root/send/init/emplno" class="input_search" navindex="2" maxlength="10" style="left:855px; top:36px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "emplno,emplnm", ipt_emplno.value, "instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutunitcd.value = ipt_dutunitcd.currentText;
-
- misfValidationCheck("02", "", "emplno,emplnm", ipt_emplno.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutunitcd" ref="/root/send/init/dutunitcd" class="input_search" disabled="true" style="left:485px; top:36px; width:75px; 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>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutunitcd.value = ipt_dutunitcd.currentText;
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_dutinstcd.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_empl" class="icon_search" style="left:952px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "emplno,emplnm";
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N","Y");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_unit" class="icon_search" disabled="false" style="left:563px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_dutunitnm, "", "dutunitcd,dutunitnm", cmb_dutinstcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_educfromdd" ref="/root/send/init/educfromdd" class="input_search" inputtype="date" style="left:855px; top:11px; width:95px; height:19px; "/>
- <input id="ipt_eductodd" ref="/root/send/init/eductodd" class="input_search" inputtype="date" style="left:970px; top:11px; width:95px; height:19px; "/>
- <caption id="caption100" style="left:955px; top:11px; width:20px; height:20px; ">~</caption>
- <datagrid id="grd_insa" nodeset="/root/main/rpsmedap" visibility="hidden" autoresize="true" caption="년도^근무기관^근무부서^사번^성명^주체기관^교육명^교육기간^교육기간^총교육시간^교육장소^과정교육비^부서장^부서장^반려사유^인사팀^인사팀^반려사유^출장비
지급여부^등록비^교통비^현지
교통비^숙박비^식비^일비^계^순번^flagD^flagL|년도^근무기관^근무부서^사번^성명^주체기관^교육명^From^To^총교육시간^교육장소^과정교육비^^승인여부^반려사유^^확인여부^반려사유^출장비
지급여부^등록비^교통비^현지
교통비^숙박비^식비^일비^계^순번^flagD^flagL" colsep="^" colwidth="60, 72, 60, 65, 60, 100, 180, 95, 95, 73, 80, 80, 30, 60, 150, 30, 60, 150, 60, 60, 60, 60, 60, 60, 60, 70, 60, 50, 50" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:91px; width:1195px; height:615px; ">
- <col class="input_s_essential" ref="appyy" style="text-align:center; "/>
- <col class="input_s_essential" disabled="true" ref="dutinstcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_s_essential" ref="dutdeptnm"/>
- <col class="input_s_essential" ref="emplno" style="text-align:center; "/>
- <col class="input_s_essential" ref="emplnm" style="text-align:center; "/>
- <col class="combo_s_essential" disabled="true" ref="instcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_s_essential" ref="educnm" type="input"/>
- <col class="input_s_essential" disabled="true" ref="educfromdd" type="inputdate"/>
- <col class="input_s_essential" disabled="true" ref="eductodd" type="inputdate"/>
- <col ref="eductm" style="text-align:right; "/>
- <col class="input_s_essential" ref="educplce"/>
- <col ref="educamt" format="#,###"/>
- <col checkvalue="Y,N" ref="deptchk" type="checkbox"/>
- <col ref="deptaprvyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/item1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="deptreturn" type="input"/>
- <col checkvalue="Y,N" ref="lastchk" type="checkbox"/>
- <col ref="lastaprvyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/item1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="lastreturn" type="input"/>
- <col checkvalue="Y,N" ref="offctouramtpayyn" type="checkbox"/>
- <col ref="item1" type="input" format="#,###" maxlength="7" style="text-align:right; "/>
- <col ref="item2" type="input" format="#,###" maxlength="7" style="text-align:right; "/>
- <col ref="item3" type="input" format="#,###" maxlength="7" style="text-align:right; "/>
- <col ref="item4" type="input" format="#,###" maxlength="7" style="text-align:right; "/>
- <col ref="item5" type="input" format="#,###" maxlength="7" style="text-align:right; "/>
- <col ref="item6" type="input" format="#,###" maxlength="7" style="text-align:right; "/>
- <col ref="itemtotal" format="#,###" maxlength="7" style="text-align:right; "/>
- <col ref="seq" visibility="hidden"/>
- <col ref="flagd" visibility="hidden"/>
- <col ref="flagl" visibility="hidden"/>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- // 인사팀일때 부서장승인여부가 N이면 인사팀 확인과 출장비지급여부를 체크할수 없어야 한다.
- var userdeptcd = getUserInfo("dutplcecd");
- if( userdeptcd == '4020500000' || userdeptcd == '4020503000' ) {
- if( grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("deptaprvyn")) == 'N' ) {
- messageBox("아직 확인하실수","I004");
- grd_rpsmedap.removeStatus(grd_rpsmedap.row,"update");
- grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("offctouramtpayyn")) = "false";
- grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("lastaprvyn")) = "false";
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var total = 0;
-
- // 셀의 데이터가 변경되었을때 발생하는 이벤트..변경된 데이터가 부서장승인인지, 인사팀 승인인지 구분하기 위해서 필요..
- var row = grd_insa.row;
- var col = grd_insa.col;
-
- var userdeptcd = getUserInfo("dutplcecd");
- if( userdeptcd == '4020500000' || userdeptcd == '4020503000' ) {
- if( col == grd_insa.colRef("item1") || col == grd_insa.colRef("item2") || col == grd_insa.colRef("item3") ||
- col == grd_insa.colRef("item4") || col == grd_insa.colRef("item5") || col == grd_insa.colRef("item6") ||
- col == grd_insa.colRef("offctouramtpayyn") ) {
- if(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item1")) != "" )
- total = parseInt(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item1"))) + parseInt(total);
- if(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item2")) != "" )
- total = parseInt(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item2"))) + parseInt(total);
- if(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item3")) != "" )
- total = parseInt(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item3"))) + parseInt(total);
- if(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item4")) != "" )
- total = parseInt(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item4"))) + parseInt(total);
- if(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item5")) != "" )
- total = parseInt(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item5"))) + parseInt(total);
- if(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item6")) != "" )
- total = parseInt(grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("item6"))) + parseInt(total);
-
- grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("itemtotal")) = total;
-
- grd_insa.valueMatrix(grd_insa.row,grd_insa.colRef("flagl")) = "L";
- }
- }
-
- fCheckYN(row,col);
-
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn5_letter2" style="left:1108px; top:67px; width:42px; height:19px; ">
- <caption>승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( messageBox("승인 하시겠습니까?","Q999") == '6' ) {
- var userdeptcd = getUserInfo("dutplcecd");
- if( userdeptcd == '4020500000' || userdeptcd == '4020503000' ) {
- for(var i = grd_insa.fixedRows; i < grd_insa.rows; i++){
- if(grd_insa.valueMatrix(i,grd_insa.colRef("deptchk")) == "Y") {
- grd_insa.addStatus(i, "update");
- grd_insa.valueMatrix(i,grd_insa.colRef("flagd")) = "D";
- grd_insa.valueMatrix(i,grd_insa.colRef("deptaprvyn")) = "Y";
- }
- else ;
-
- if(grd_insa.valueMatrix(i,grd_insa.colRef("lastchk")) == "Y") {
- grd_insa.addStatus(i, "update");
- grd_insa.valueMatrix(i,grd_insa.colRef("flagl")) = "L";
- grd_insa.valueMatrix(i,grd_insa.colRef("lastaprvyn")) = "Y";
- }
- else ;
- }
- }
- else {
- for(var i = grd_rpsmedap.fixedRows; i < grd_rpsmedap.rows; i++){
- if(grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("deptchk")) == "Y") {
- grd_rpsmedap.addStatus(i, "update");
- grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("flagd")) = "D";
- grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("deptaprvyn")) = "Y";
- }
- else ;
-
- if(grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("lastchk")) == "Y") {
- grd_rpsmedap.addStatus(i, "update");
- grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("flagl")) = "L";
- grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("lastaprvyn")) = "Y";
- }
- else ;
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" style="left:1151px; top:67px; width:42px; height:19px; ">
- <caption>반려</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( messageBox("반려 하시겠습니까?","Q999") == '6' ) {
- var userdeptcd = getUserInfo("dutplcecd");
- if( userdeptcd == '4020500000' || userdeptcd == '4020503000' ) {
- for(var i = grd_insa.fixedRows; i < grd_insa.rows; i++){
- if(grd_insa.valueMatrix(i,grd_insa.colRef("deptchk")) == "Y") {
- grd_insa.addStatus(i, "update");
- grd_insa.valueMatrix(i,grd_insa.colRef("flagd")) = "D";
- grd_insa.valueMatrix(i,grd_insa.colRef("deptaprvyn")) = "R";
- }
- else if(grd_insa.valueMatrix(i,grd_insa.colRef("lastchk")) == "Y") {
- grd_insa.addStatus(i, "update");
- grd_insa.valueMatrix(i,grd_insa.colRef("flagl")) = "L";
- grd_insa.valueMatrix(i,grd_insa.colRef("lastaprvyn")) = "R";
- }
- else ;
- }
- }
- else {
- for(var i = grd_rpsmedap.fixedRows; i < grd_rpsmedap.rows; i++){
- if(grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("deptchk")) == "Y") {
- grd_rpsmedap.addStatus(i, "update");
- grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("flagd")) = "D";
- grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("deptaprvyn")) = "R";
- }
- else if(grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("lastchk")) == "Y") {
- grd_rpsmedap.addStatus(i, "update");
- grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("flagl")) = "L";
- grd_rpsmedap.valueMatrix(i,grd_rpsmedap.colRef("lastaprvyn")) = "R";
- }
- else ;
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" style="left:1031px; top:67px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- var userdeptcd = getUserInfo("dutplcecd");
- if( userdeptcd == '4020500000' || userdeptcd == '4020503000' ) {
- grd_insa.saveExcel(fileName,"sheetname:sheet1;colhiddenextend:false;rowhiddenextend:false;col_2:label;col_6:label;col_14:label;col_17:label;");
- }
- else {
- grd_rpsmedap.saveExcel(fileName,"sheetname:sheet1;colhiddenextend:false;rowhiddenextend:false;col_2:label;col_6:label;col_14:label;col_17:label;");
- }
- ]]>
- </script>
- </button>
- </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[
- fSave();
- // submit("TRRPS01501");
-
- // 체크된 내용 모두 지우고 flagD와 flagL도 모두 삭제
- for(var i = grd_insa.fixedRows; i < grd_insa.rows; i++) { // grd_insa와 grd_rpsmedap의 data row수는 같으므로 같은 i를 사용한다.
- grd_insa.valueMatrix(i, grd_insa.colRef("deptchk")) = "N";
- grd_insa.valueMatrix(i, grd_insa.colRef("lastchk")) = "N";
- grd_insa.valueMatrix(i, grd_insa.colRef("flagd")) = "";
- grd_insa.valueMatrix(i, grd_insa.colRef("flagl")) = "";
- grd_insa.fixedcellischeck(1,13) = false; // 전체 체크박스를 초기화
- grd_insa.fixedcellischeck(1,16) = false; // 전체 체크박스를 초기화
-
- grd_rpsmedap.valueMatrix(i, grd_rpsmedap.colRef("deptchk")) = "N";
- grd_rpsmedap.valueMatrix(i, grd_rpsmedap.colRef("lastchk")) = "N";
- grd_rpsmedap.valueMatrix(i, grd_rpsmedap.colRef("flagd")) = "";
- grd_rpsmedap.valueMatrix(i, grd_rpsmedap.colRef("flagl")) = "";
- grd_rpsmedap.fixedcellischeck(1,13) = false; // 전체 체크박스를 초기화
- }
- grd_insa.clearStatus();
- grd_rpsmedap.clearStatus();
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|