123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908 |
- <?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>
- <list>
- <chulemplist>
- <instcd/>
- <chulseq/>
- <upddate/>
- <sysdate/>
- <chulgubun/>
- <chulsabun/>
- <name/>
- <buseocode/>
- <dutplcedeptcd/>
- <inorddeptnm/>
- <chulpurpose/>
- <chulorgan/>
- <pumno/>
- <adminaff/>
- <adminaffdate/>
- <adminaffsabun/>
- <adminbuseo/>
- <adminbuseodate/>
- <adminbuseosabun/>
- </chulemplist>
- </list>
- <chulinfo>
- <chulseq/>
- <upddate/>
- <sysdate/>
- <chulgubun/>
- <chulsabun/>
- <buseocode/>
- <chulpurpose/>
- <chulorgan/>
- <pumno/>
- <adminaff/>
- <adminaffdate/>
- <adminaffsabun/>
- <adminbuseo/>
- <adminbuseodate/>
- <adminbuseosabun/>
- <instcd/>
- <dutplcedeptcd/>
- <inorddeptnm/>
- <name/>
- <newflag/>
- </chulinfo>
- <detaillst>
- <chulempdetaillst/>
- </detaillst>
- <lognempinfo>
- <empinfo/>
- </lognempinfo>
- <empInfolst>
- <empllist/>
- </empInfolst>
- </main>
- <send>
- <srchfrmdd/>
- <srchendd/>
- <srchchulseq/>
- <adminbuseoflag/>
- <adminaffflag/>
- <admingubn/>
- <instcd/>
- <srchchulgubun/>
- <refcond/>
- <emplno/>
- <rownm/>
- <newflag/>
- </send>
- <hidden>
- <item>
- <pumno/>
- </item>
- <savelist>
- <detail/>
- </savelist>
- </hidden>
- <init>
- <chulgubuninfo>
- <chulgubunlist>
- <nm>교육출장</nm>
- <cd>1</cd>
- </chulgubunlist>
- <chulgubunlist>
- <nm>업무출장</nm>
- <cd>2</cd>
- </chulgubunlist>
- <chulgubunlist>
- <nm>QA출장</nm>
- <cd>3</cd>
- </chulgubunlist>
- <chulgubunlist>
- <nm>기타</nm>
- <cd>4</cd>
- </chulgubunlist>
- </chulgubuninfo>
- </init>
- <prntlst/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- initialize();
- ]]>
- </script>
- <submission id="TRRPD08001" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <submission id="TRRPD08002" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/main/detaillst"/>
- <submission id="TXRPD08002" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <submission id="TXRPD08003" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/hidden/savelist" replace="instance" resultref="/root/temp"/>
- <submission id="TXRPD08001" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/temp"/>
- <submission id="TRRPD08003" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/main/lognempinfo"/>
- <submission id="TRRPD08006" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" resultref="/root/main/empInfolst"/>
- </model>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript">
- <![CDATA[
- function initialize(){
- model.resetInstanceNode("/root/main/chulinfo");
- model.removeNodeset("/root/main/list/chulemplist");
- model.removeNodeset("/root/main/detaillst/chulempdetaillst");
- model.setValue("/root/send/srchfrmdd", getCurrentDate());
- model.setValue("/root/send/srchendd", getCurrentDate());
- model.setValue("/root/send/srchchulgubun", "0");
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/refcond", "emplno");
- model.makeValue("/root/send/newflag", "N");
-
- if( submit("TRRPD08003")){ //2011.08.24 cyw 부서장 정보 가져오기.
- var cnt = getNodesetCount("/root/main/lognempinfo/empinfo");
- if( cnt >= 1 ){
- if( model.getValue("/root/main/lognempinfo/empinfo/jobposcd") != "" ){
- btn_buseo.disabled = false;
- btn_buseoCancel.disabled = false;
- if( model.getValue("/root/main/lognempinfo/empinfo/dutplcedeptcd") == "4020300000" ){ //총무팀
- btn_naff.disabled = false;
- btn_naffCancel.disabled = false;
- }else{
- btn_naff.disabled = true;
- btn_naffCancel.disabled = true;
- }
- }else{
- btn_buseo.disabled = true;
- btn_buseoCancel.disabled = true;
- if( model.getValue("/root/main/lognempinfo/empinfo/dutplcedeptcd") == "4020300000" ){ //총무팀
- btn_naff.disabled = false;
- btn_naffCancel.disabled = false;
- }else{
- btn_naff.disabled = true;
- btn_naffCancel.disabled = true;
- }
- }
- }else{
- btn_naff.disabled = true;
- btn_naffCancel.disabled = true;
- btn_buseo.disabled = true;
- btn_buseoCancel.disabled = true;
- }
- }
- model.refresh();
- }
-
- function initItem(){
- model.resetInstanceNode("/root/main/chulinfo");
- model.removeNodeset("/root/main/detaillst/chulempdetaillst");
- model.makeValue("/root/main/chulinfo/chulsabun", getUserId());
- ipt_sabun.dispatch("xforms-value-changed");
- model.makeValue("/root/main/chulinfo/sysdate" , getCurrentDate());
- model.makeValue("/root/main/chulinfo/instcd",getUserInfo("dutplceinstcd"));
- model.makeValue("/root/main/chulinfo/chulgubun", "1");
-
- model.refresh();
- }
-
- //========================================================================================
- // 직원출장 조회
- //========================================================================================ㄴ
- function fGetChulEmpList(){
- cap_ex.visible = false;
- model.removeNodeset("/root/main/list/chulemplist"); //조회시 기존 데이터 삭제
- model.removeNodeset("/root/main/detaillst/chulempdetaillst"); //조회시 기존 데이터 삭제
- model.resetInstanceNode("/root/main/chulinfo");
- submit("TRRPD08001");
- model.refresh();
- }
- //========================================================================================
- // 직원출장 상세내역 조회
- //========================================================================================
- function fGetChulEmpDetailList(){
-
- model.removeNodeset("/root/main/detaillst/chulempdetaillst"); //조회시 기존 데이터 삭제
- submit("TRRPD08002");
- model.refresh();
-
- }
-
- //========================================================================================
- // 출장신청서 출력
- //========================================================================================
- function fPrint()
- {
- model.removeNodeset("/root/prntlst/chulemplist");
- model.removeNodeset("/root/prntlst/chulempdetaillst");
- model.makeNode("/root/prntlst/chulemplist");
- model.makeNode("/root/prntlst/chulempdetaillst");
- model.copyNode("/root/prntlst/chulemplist", "/root/main/list/chulemplist[" + grd_chullist.row + "]");
- for( var i = 1 ; i < dtg_chuldetaillst.rows ; i++ ){
- model.makeNode("/root/prntlst/chulempdetaillst[" + i + "]");
- model.copyNode("/root/prntlst/chulempdetaillst[" + i +"]", "/root/main/detaillst/chulempdetaillst[" + i + "]");
- model.setValue("/root/prntlst/chulempdetaillst[" + i +"]/chulfrdate", dtg_chuldetaillst.labelMatrix( i , dtg_chuldetaillst.colRef("chulfrdate")) );
- model.setValue("/root/prntlst/chulempdetaillst[" + i +"]/chultodate", dtg_chuldetaillst.labelMatrix( i , dtg_chuldetaillst.colRef("chultodate")) );
- }
-
- exeReportPreview("RPRPD08000", "XMLSTR");
- model.refresh();
- }
-
- //========================================================================================
- //부서코드 Help Open
- //========================================================================================
- function fOpenPopupDeptHelp(pControl, pInstance)
- {
- misfOpenPopUpList("02", pControl, "", pInstance);
- model.refresh();
- }
-
- //========================================================================================
- // 총부팀 , 부서장 승인
- //========================================================================================
- function fAdminAprvFlag()
- {
- if( submit("TXRPD08001")){
- messageBox("처리되었습니다.", "I000");
- btn_search.dispatch("DOMActivate");
- grd_chullist.row = parseInt(model.getValue("/root/send/rownm"));
- model.refresh();
- return;
- }
- }
-
- //========================================================================================
- // 데이터 저장 2011.08.18
- //========================================================================================
- function fSaveChulData(){
- model.makeValue("/root/main/chulinfo/newflag", model.getValue("/root/send/newflag") );
- model.copyNode("/root/hidden/savelist", "/root/main/chulinfo" );
-
- model.makeValue("/root/hidden/savelist/detail",dtg_chuldetaillst.getUpdateData());
-
- if (submit("TXRPD08003")) {
- messageBox("저장되었습니다.", "I000");
- btn_search.dispatch("DOMActivate");
-
- if( model.getValue("/root/send/newflag") == "Y" ){
- grd_chullist.row = 1;
- }else if( model.getValue("/root/send/rownm") == "" ){
- grd_chullist.row = 1;
- }else{
- grd_chullist.row = parseInt(model.getValue("/root/send/rownm"));
- }
-
- grd_chullist.dispatch("onclick");
- model.setValue("/root/send/srchchulseq", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulseq"));
- fGetChulEmpDetailList();
- }
- model.refresh();
- }
- //========================================================================================
- // 신청자 조회 POPUP
- //========================================================================================
- function fOpenPopupUserHelp(pCtrl, pInstance){
- misfOpenPopUpList("01", pCtrl, "", pInstance);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:15px; ">
- <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:18px; width:1195px; height:762px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:6px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1108px; top:13px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetChulEmpList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1081px; y1:13px; x2:1081px; y2:35px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:1192px; y2:67px; "/>
- <input id="ipt_fromdd" ref="/root/send/srchfrmdd" class="input_s_essential" navindex="14" inputtype="date" style="left:111px; top:14px; width:110px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:12px; top:15px; width:93px; height:17px; ">조회기간 :</caption>
- <datagrid id="grd_chullist" nodeset="/root/main/list/chulemplist" caption="신청일자^번호^부서장^총무팀^구분^목적^품의번호" colsep="^" colwidth="75, 50, 50, 50, 65, 130, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:73px; width:390px; height:682px; ">
- <col ref="sysdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="chulseq" style="text-align:center; "/>
- <col ref="adminbuseo" style="text-align:center; "/>
- <col ref="adminaff" style="text-align:center; "/>
- <col disabled="true" ref="chulgubun" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/chulgubuninfo/chulgubunlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="chulpurpose"/>
- <col ref="pumno"/>
- <col ref="chulsabun" visibility="hidden"/>
- <col ref="buseocode" visibility="hidden"/>
- <col ref="chulorgan" visibility="hidden"/>
- <col ref="adminaffdate" visibility="hidden"/>
- <col ref="adminaffsabun" visibility="hidden"/>
- <col ref="adminbuseodate" visibility="hidden"/>
- <col ref="adminbuseosabun" visibility="hidden"/>
- <col ref="upddate" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="chulgubun" visibility="hidden"/>
- <col ref="name" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <col ref="inorddeptnm" visibility="hidden"/>
- <col ref="adminaff" visibility="hidden"/>
- <col ref="adminbuseo" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_chullist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_chullist.rows > 1 ){
- group3.disabled = false;
- cap_ex.visible = false;
- btn_add.disabled = false;
- btn_del.disabled = false;
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/adminbuseo") == "Y"){
- btn_buseoCancel.visible = true;
- btn_buseo.visible = false;
- }else{
- btn_buseoCancel.visible = false;
- btn_buseo.visible = true;
- }
-
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/adminaff") == "Y"){
- btn_naffCancel.visible = true;
- btn_naff.visible = false;
- }else{
- btn_naffCancel.visible = false;
- btn_naff.visible = true;
- }
-
- model.copyNode("/root/main/chulinfo", "/root/main/list/chulemplist[" + grd_chullist.row + "]");
- model.setValue("/root/send/srchchulseq", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulseq"));
- model.setValue("/root/send/rownm", grd_chullist.row );
- fGetChulEmpDetailList();
- model.makeValue("/root/send/newflag", "N");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:51px; width:180px; height:13px; ">직원출장 신청내역</caption>
- <button id="btn_savegrntpsn1excel" class="btn2_letter4" visibility="hidden" style="left:1127px; top:46px; 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_chullist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <input id="ipt_enddd" ref="/root/send/srchendd" class="input_s_essential" navindex="14" inputtype="date" style="left:247px; top:14px; width:110px; height:19px; "/>
- <caption id="caption3" style="left:224px; top:13px; width:20px; height:25px; font-size:10pt; font-weight:bold; text-align:center; ">~</caption>
- <datagrid id="dtg_chuldetaillst" nodeset="/root/main/detaillst/chulempdetaillst" caption="사번^성명^부서^시작일자^종료일자^출장지역^장소^금액" colsep="^" colwidth="70, 60, 100, 85, 85, 110, 170, 80, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:394px; top:286px; width:795px; height:469px; ">
- <col ref="sabun" type="inputbutton" style="text-align:center; "/>
- <col ref="name" type="output" style="text-align:center; "/>
- <col ref="inorddeptnm" type="inputbutton" style="text-align:center; "/>
- <col ref="chulfrdate" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="chultodate" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="chulcon" type="input"/>
- <col ref="chulorgan" type="input"/>
- <col ref="chulkeum" type="output" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="chulseq" visibility="hidden"/>
- <col ref="upddate" visibility="hidden"/>
- <col ref="sysdate" visibility="hidden"/>
- <col ref="jikgeubcode" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <col ref="besabun" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- dtg_chuldetaillst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(dtg_chuldetaillst.colAttribute(dtg_chuldetaillst.col, "ref") == "inorddeptnm"){
- fOpenPopupDeptHelp(dtg_chuldetaillst, "dutplcedeptcd,inorddeptnm");
- }
-
- if(dtg_chuldetaillst.colAttribute(dtg_chuldetaillst.col, "ref") == "sabun"){
- fOpenPopupUserHelp(dtg_chuldetaillst, "sabun,name");
- model.setValue("/root/send/emplno", model.getValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/sabun") );
- submit("TRRPD08006");
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/dutplcedeptcd" , model.getValue("/root/main/empInfolst/empllist/dutplcedeptcd"));
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/inorddeptnm" , model.getValue("/root/main/empInfolst/empllist/dutplcedeptnm"));
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(dtg_chuldetaillst.colAttribute(dtg_chuldetaillst.col, "ref") == "sabun"){
- rpbfValidationCheck("EMPLNO", "sabun,name");
-
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/name", model.getValue("/root/init/validation/empllist/emplnm"));
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/dutplcedeptcd" , model.getValue("/root/init/validation/empllist/dutplcedeptcd"))
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/inorddeptnm" , model.getValue("/root/init/validation/empllist/dutplcedeptnm"))
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:394px; y1:280px; x2:1190px; y2:280px; "/>
- <group id="group3" disabled="true" style="left:395px; top:75px; width:795px; height:180px; border-style:sunken; ">
- <caption id="caption4" class="search_name" style="left:23px; top:42px; width:93px; height:17px; ">소 속 :</caption>
- <caption id="caption5" class="search_name" style="left:403px; top:12px; width:88px; height:17px; ">신청일자 :</caption>
- <caption id="caption7" class="search_name" style="left:23px; top:71px; width:93px; height:17px; ">출장목적 :</caption>
- <caption id="caption8" class="search_name" style="left:23px; top:13px; width:93px; height:17px; ">신 청 자 :</caption>
- <caption id="caption9" class="search_name" style="left:403px; top:42px; width:88px; height:17px; ">출장구분 :</caption>
- <input id="ipt_buse" ref="/root/main/chulinfo/dutplcedeptcd" style="left:113px; top:42px; width:100px; height:19px; "/>
- <input id="ipt_sysdd" ref="/root/main/chulinfo/sysdate" inputtype="date" format="yyyy-mm-dd" style="left:495px; top:13px; width:143px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="ipt_sabun" ref="/root/main/chulinfo/chulsabun" style="left:113px; top:13px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- rpbfValidationCheck("EMPLNO", "chulsabun,name");
-
- model.setValue("/root/main/chulinfo/name", model.getValue("/root/init/validation/empllist/emplnm"));
- model.setValue("/root/main/chulinfo/dutplcedeptcd" , model.getValue("/root/init/validation/empllist/dutplcedeptcd"));
- model.setValue("/root/main/chulinfo/inorddeptnm" , model.getValue("/root/init/validation/empllist/dutplcedeptnm"));
- model.refresh();
-
- ]]>
- </script>
- </input>
- <select1 id="radio1" ref="/root/main/chulinfo/chulgubun" appearance="full" cellspacing="10" cols="4" vcellspacing="3" overflow="visible" style="left:496px; top:42px; width:287px; height:21px; border-style:none; ">
- <choices>
- <item>
- <label>교육출장</label>
- <value>1</value>
- </item>
- <item>
- <label>업무출장</label>
- <value>2</value>
- </item>
- <item>
- <label>QA출장</label>
- <value>3</value>
- </item>
- <item>
- <label>기타</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <textarea id="txtea_pose" ref="/root/main/chulinfo/chulpurpose" style="left:28px; top:98px; width:740px; height:64px; padding-left:4; padding-top:4; padding-right:4; padding-bottom:4; "/>
- <button id="btn_depthelp" class="icon_search" style="left:218px; top:43px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupDeptHelp(ipt_buse, "dutplcedeptcd,inorddeptnm");
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/main/chulinfo/inorddeptnm" style="left:239px; top:42px; width:139px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <button id="button8" class="icon_search" disabled="false" style="left:218px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupUserHelp(ipt_sabun, "chulsabun,name");
-
- model.setValue("/root/send/emplno", model.getValue("/root/main/chulinfo/chulsabun"));
-
- submit("TRRPD08006");
- model.setValue("/root/main/chulinfo/dutplcedeptcd" , model.getValue("/root/main/empInfolst/empllist/dutplcedeptcd"));
- model.setValue("/root/main/chulinfo/inorddeptnm" , model.getValue("/root/main/empInfolst/empllist/dutplcedeptnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input4" ref="/root/main/chulinfo/name" style="left:239px; top:13px; width:139px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <select1 id="radio3" ref="/root/main/chulinfo/instcd" appearance="full" cellspacing="30" cols="2" vcellspacing="3" overflow="visible" style="left:496px; top:70px; width:187px; height:21px; border-style:none; ">
- <choices>
- <item>
- <label>본 원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠 곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" style="left:403px; top:71px; width:88px; height:17px; ">기관코드 :</caption>
- </group>
- <caption id="caption10" class="tit_2" style="left:395px; top:264px; width:180px; height:13px; ">직원출장 신청 세부내역</caption>
- <button id="btn_del" class="btn2_letter2" disabled="true" style="left:1147px; top:259px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // alert( dtg_chuldetaillst.rowStatus(dtg_chuldetaillst.row) );
- if( dtg_chuldetaillst.rowStatus(dtg_chuldetaillst.row) == 1 || dtg_chuldetaillst.rowStatus(dtg_chuldetaillst.row) == 3 ){
- dtg_chuldetaillst.removeStatus(dtg_chuldetaillst.row, "insert");
- dtg_chuldetaillst.deleteRow(dtg_chuldetaillst.row);
- }else{
- cap_ex.visible = true;
- misfGridIUD(dtg_chuldetaillst, "D");
- dtg_chuldetaillst.rowStatus(dtg_chuldetaillst.row) = 4;
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter2" disabled="true" style="left:1102px; top:259px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cap_ex.visible = true;
- misfGridIUD(dtg_chuldetaillst, "A");
- dtg_chuldetaillst.rowStatus(dtg_chuldetaillst.row) = 1;
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/chulkeum", "0" );
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/sabun", model.getValue("/root/main/chulinfo/chulsabun") );
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/name", model.getValue("/root/main/chulinfo/name") );
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/inorddeptnm", model.getValue("/root/main/chulinfo/inorddeptnm") );
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/sysdate", model.getValue("/root/main/chulinfo/sysdate") );
-
- // 신청일자 ==> 시작일자, 종료일자
- if( model.getValue("/root/main/chulinfo/sysdate") != "" ){
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/chulfrdate" , model.getValue("/root/main/chulinfo/sysdate"));
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/chultodate", model.getValue("/root/main/chulinfo/sysdate"));
- }else{
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/chulfrdate" , getCurrentDate());
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/chultodate", getCurrentDate());
- }
-
- if( dtg_chuldetaillst.rows > 1){
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/chulcon", model.getValue("/root/main/detaillst/chulempdetaillst[1]/chulcon") );
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/chulorgan", model.getValue("/root/main/detaillst/chulempdetaillst[1]/chulorgan") );
- model.setValue("/root/main/detaillst/chulempdetaillst[" + dtg_chuldetaillst.row + "]/chulkeum", model.getValue("/root/main/detaillst/chulempdetaillst[1]/chulkeum") );
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn6_letter2" style="left:1136px; top:44px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint();
- ]]>
- </script>
- </button>
- <button id="button36" class="btn4_letter2" style="left:1079px; top:44px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var Cnt = getNodesetCount("/root/main/detaillst/chulempdetaillst");
-
- if( Cnt < 1 ){
- messageBox("직원출장 신청 세부내역을 입력해주십시오.", "E999", "");
- return;
- }
-
- if(model.getValue("/root/main/chulinfo/dutplcedeptcd") == "" ){
- messageBox("소속은 필수 입력항목입니다.", "E999", "");
- model.setFocus('ipt_buse', true);
- return;
- }
-
- if( model.getValue("/root/main/chulinfo/sysdate") == "" ){
- messageBox("신청자는 필수 입력항목입니다.", "E999", "");
- model.setFocus('ipt_sabun', true);
- return;
- }
-
- if( model.getValue("/root/main/chulinfo/chulsabun" ) == ""){
- messageBox("신청일자는 필수 입력항목입니다.", "E999", "");
- model.setFocus('ipt_sysdd', true);
- return;
- }
-
- if( model.getValue("/root/main/chulinfo/chulpurpose") == "" ){
- messageBox("출장목적은 필수 입력항목입니다.", "E999", "");
- model.setFocus('txtea_pose', true);
- return;
- }
-
- var num = 0;
- var row = 0;
-
- for( var i = 1; i <= dtg_chuldetaillst.rows-dtg_chuldetaillst.fixedRows; i++ ){
- for( j = 1; j <= dtg_chuldetaillst.rows-dtg_chuldetaillst.fixedRows; j++ ){
- if( model.getValue("/root/main/detaillst/chulempdetaillst[" + i + "]/sabun") == model.getValue("/root/main/detaillst/chulempdetaillst[" + j + "]/sabun") ){
- num++;
- row = i;
- }
- }
-
- if( model.getValue("/root/main/detaillst/chulempdetaillst[" + i + "]/chulcon") == "" ){
- messageBox("출장 [ 지역 ] 정보를 입력해주십시오.", "E999", "");
- return;
- }
-
- if( model.getValue("/root/main/detaillst/chulempdetaillst[" + i + "]/chulorgan") == "" ){
- messageBox("출장 [ 장소 ] 정보를 입력해주십시오.", "E999", "");
- return;
- }
- if( num >1 ){
- messageBox("저장데이터에 중복된 직원정보가 있습니다. \n확인 후 진행해주십시오. " + model.getValue("/root/main/detaillst/chulempdetaillst[" + row + "]/sabun") + " [ " + model.getValue("/root/main/detaillst/chulempdetaillst[" + row + "]/name") + " ] ", "E999", "");
- return;
- }
- num = 0;
- }
-
- fSaveChulData();
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter4" style="left:998px; top:44px; width:56px; height:22px; ">
- <caption>내역삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lstCnt = getNodesetCount("/root/main/list/chulemplist" );
-
- if( lstCnt < 1 ){
- messageBox("삭제할 데이터가 존재하지 않습니다. 확인후 진행하십시오.", "E000");
- return;
- } else {
- if(grd_chullist.row == null || grd_chullist.row == ""){
- messageBox("삭제할 데이터가 존재하지 않습니다. 확인후 진행하십시오.", "E000");
- return;
- }
- }
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/pumno") != "" ){
- messageBox("해당 출장내역에 대한 품의건이 있습니다. 확인 후 진행하십시오.", "E000", "");
- return ;
- }
-
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/adminaff") == "Y" ){
- messageBox("총무팀 승인상태에서는 삭제할 수 없습니다. 총무팀 승인취소 후 진행하십시오.", "E000");
- return;
- }
-
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/adminbuseo") == "Y" ){
- messageBox("부서장 승인상태에서는 삭제할 수 없습니다. 부서장 승인취소 후 진행하십시오.", "E000");
- return;
- }
- var deptcd = getUserInfo("dutplcecd");
- var deptnm = getUserInfo("dutplcenm");
-
- if( model.getValue("/root/main/chulinfo/dutplcedeptcd") != deptcd ){
- messageBox("삭제 권한은 신청자의 소속부서에만 권한이 있습니다. 확인 후 진행하십시오.", "E000");
- return;
- }
- if( messageBox("삭제하시겠습니까", "Q999") == 6 ){
- if(submit("TXRPD08002")){
- messageBox("삭제되었습니다.", "I000");
- model.resetInstanceNode("/root/main/chulinfo");
- model.removeNodeset("/root/main/detaillst/chulempdetaillst");
- btn_search.dispatch("DOMActivate");
- return;
- }
- }else{
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:940px; top:44px; width:56px; height:22px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group3.disabled = false;
- btn_add.disabled = false;
- btn_del.disabled = false;
- initItem();
- model.makeValue("/root/send/newflag", "Y");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_buseo" class="btn3_letter5" style="left:844px; top:44px; width:92px; height:22px; ">
- <caption>부서장승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lstCnt = getNodesetCount("/root/main/list/chulemplist" );
-
- if( lstCnt < 1 ){
- messageBox("신청내역을 조회 후 진행하십시오.", "E000");
- return;
- }
-
- if( model.getValue("/root/send/srchchulseq") == "" ){
- messageBox("선택된 출장내역이 없습니다. 확인 후 승인하십시오.", "E000", "");
- return ;
- }
-
- model.setValue("/root/send/adminbuseoflag", "Y");
- model.setValue("/root/send/admingubn", "1");
- fAdminAprvFlag();
- ]]>
- </script>
- </button>
- <button id="btn_naff" class="btn3_letter5" style="left:725px; top:44px; width:92px; height:22px; ">
- <caption>총무팀승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lstCnt = getNodesetCount("/root/main/list/chulemplist" );
-
- if( lstCnt < 1 ){
- messageBox("신청내역을 조회 후 진행하십시오.", "E000");
- return;
- }
-
- if( model.getValue("/root/send/srchchulseq") == "" ){
- messageBox("선택된 출장내역이 없습니다. 확인 후 승인하십시오.", "E000", "");
- return ;
- }
-
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/adminbuseo") != "Y" ){
- messageBox("부서장 승인 후 진행하십시오.", "E000", "");
- return ;
- }
-
- model.setValue("/root/send/adminaffflag", "Y");
- model.setValue("/root/send/admingubn", "2");
- fAdminAprvFlag();
-
- ]]>
- </script>
- </button>
- <caption id="cap_ex" visibility="hidden" style="left:785px; top:260px; width:310px; height:20px; font-weight:bold; color:#990000; ">※ 세부내역 삭제 시에는 저장버튼을 클릭하십시오.</caption>
- <caption id="caption11" class="search_name" style="left:388px; top:15px; width:93px; height:17px; ">출장구분 :</caption>
- <select1 id="radio2" ref="/root/send/srchchulgubun" appearance="full" cellspacing="10" cols="5" vcellspacing="3" overflow="visible" style="left:478px; top:15px; width:360px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전 체</label>
- <value>0</value>
- </item>
- <item>
- <label>교육출장</label>
- <value>1</value>
- </item>
- <item>
- <label>업무출장</label>
- <value>2</value>
- </item>
- <item>
- <label>QA출장</label>
- <value>3</value>
- </item>
- <item>
- <label>기타</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <button id="btn_naffCancel" class="btn3_letter7" style="left:702px; top:44px; width:116px; height:22px; ">
- <caption>총무팀승인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lstCnt = getNodesetCount("/root/main/list/chulemplist" );
-
- if( lstCnt < 1 ){
- messageBox("신청내역을 조회 후 진행하십시오.", "E000");
- return;
- }
-
- if( model.getValue("/root/send/srchchulseq") == "" ){
- messageBox("선택된 출장내역이 없습니다. 확인 후 진행하십시오.", "E000", "");
- return ;
- }
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/pumno") != "" ){
- messageBox("해당 출장내역에 대한 품의건이 있습니다. 확인 후 진행하십시오.", "E000", "");
- return ;
- }
-
- model.setValue("/root/send/adminaffflag", "N");
- model.setValue("/root/send/admingubn", "2");
- fAdminAprvFlag();
-
- ]]>
- </script>
- </button>
- <button id="btn_buseoCancel" class="btn3_letter7" style="left:821px; top:44px; width:116px; height:22px; ">
- <caption>부서장승인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lstCnt = getNodesetCount("/root/main/list/chulemplist" );
-
- if( lstCnt < 1 ){
- messageBox("신청내역을 조회 후 진행하십시오.", "E000");
- return;
- }
-
- if( model.getValue("/root/send/srchchulseq") == "" ){
- messageBox("선택된 출장내역이 없습니다. 확인 후 진행하십시오.", "E000", "");
- return ;
- }
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/pumno") != "" ){
- messageBox("해당 출장내역에 대한 품의건이 있습니다. 확인 후 진행하십시오.", "E000", "");
- return ;
- }
-
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/adminaff") == "Y" ){
- messageBox("해당 출장내역에 대한 총무팀승인이 풀리지 않았습니다. 확인 후 진행하십시오.", "E000", "");
- return ;
- }
-
- model.setValue("/root/send/adminbuseoflag", "N");
- model.setValue("/root/send/admingubn", "1");
- fAdminAprvFlag();
- ]]>
- </script>
- </button>
- <caption id="caption13" class="search_name" style="left:842px; top:16px; width:88px; height:17px; ">기관코드 :</caption>
- <select1 id="rdo_srinstcd" ref="/root/send/instcd" appearance="full" cellspacing="10" cols="2" vcellspacing="3" overflow="visible" style="left:935px; top:15px; width:120px; height:21px; border-style:none; ">
- <choices>
- <item>
- <label>본 원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠 곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <output id="output1" ref="/root/send/newflag" visibility="hidden" style="left:635px; top:45px; width:55px; height:20px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|