123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 |
- <?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>직원 출장비 품의 조회</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>
- <detaillst>
- <chulempdetaillst/>
- </detaillst>
- <lognempinfo>
- <empinfo/>
- </lognempinfo>
- <emplbankinfo/>
- </main>
- <send>
- <srchfrmdd/>
- <srchendd/>
- <srchchulseq/>
- <adminbuseoflag/>
- <adminaffflag/>
- <admingubn/>
- <instcd/>
- <srchchulgubun/>
- <popflag/>
- <sabun/>
- <save>
- <chuldetail/>
- <chullst/>
- </save>
- <tempchulseq/>
- <rownum/>
- </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>
- <temp/>
- <pop4data>
- <popchullist/>
- <chulseq/>
- <yogudeptcd/>
- </pop4data>
- </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="TRRPD08004" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/main/emplbankinfo"/>
- <submission id="TXRPD08004" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
- </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/srchchulgubun", "0");
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- // model.setValue("/root/send/srchfrmdd", getCurrentDate());
- // model.setValue("/root/send/srchendd", getCurrentDate());
- btn_search.dispatch("DOMActivate");
- model.refresh();
- }
- //========================================================================================
- // 직원출장 조회
- //========================================================================================ㄴ
- function fGetChulEmpList(){
- model.setValue("/root/send/popflag", "Y");
- model.removeNodeset("/root/main/list/chulemplist"); //조회시 기존 데이터 삭제
- submit("TRRPD08001");
- model.refresh();
- }
- //========================================================================================
- // 직원출장 상세내역 조회
- //========================================================================================
- function fGetChulEmpDetailList(){
- model.removeNodeset("/root/main/detaillst/chulempdetaillst"); //조회시 기존 데이터 삭제
- submit("TRRPD08002");
- model.refresh();
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="630" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group2" scroll="auto" style="left:0px; top:18px; width:960px; height:592px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:6px; width:955px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:887px; 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:874px; y1:13px; x2:874px; y2:35px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:955px; y2:67px; "/>
- <input id="ipt_fromdd" ref="/root/send/srchfrmdd" class="input_s_essential" navindex="14" inputtype="date" style="left:96px; top:14px; width:90px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:8px; top:15px; width:93px; height:17px; ">조회기간 :</caption>
- <datagrid id="grd_chullist" nodeset="/root/main/list/chulemplist" caption="신청일자^번호^사번^성명^부서명^출장구분^목적" colsep="^" colwidth="85, 70, 76, 80, 120, 73, 413, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:70px; width:955px; height:230px; ">
- <col ref="sysdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="chulseq" style="text-align:center; "/>
- <col ref="chulsabun" style="text-align:center; "/>
- <col ref="name" style="text-align:center; "/>
- <col ref="inorddeptnm" style="text-align:center; "/>
- <col disabled="false" 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" style="text-align:left; "/>
- <col ref="adminbuseo" visibility="hidden"/>
- <col ref="adminaff" visibility="hidden"/>
- <col ref="buseocode" visibility="hidden"/>
- <col ref="chulorgan" visibility="hidden"/>
- <col ref="pumno" 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="dutplcedeptcd" 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 ){
- model.setValue("/root/send/srchchulseq", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulseq"));
- model.setValue("/root/send/rownum", grd_chullist.row);
- fGetChulEmpDetailList();
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:51px; width:180px; height:13px; ">직원출장 신청내역</caption>
- <input id="ipt_enddd" ref="/root/send/srchendd" class="input_s_essential" navindex="14" inputtype="date" style="left:202px; top:14px; width:90px; height:19px; "/>
- <caption id="caption3" style="left:184px; 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, 105, 60, 85, 85, 100, 150, 205, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:330px; width:955px; height:230px; ">
- <col ref="sabun" style="text-align:center; "/>
- <col ref="name" style="text-align:center; "/>
- <col ref="inorddeptnm" style="text-align:center; "/>
- <col ref="jikgeubcode" style="text-align:center; "/>
- <col ref="chulfrdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="chultodate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="chulkeum" type="input" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="chulcon" style="text-align:left; "/>
- <col ref="chulorgan" style="text-align:left; "/>
- <col ref="chulseq" visibility="hidden"/>
- <col ref="upddate" visibility="hidden"/>
- <col ref="sysdate" visibility="hidden"/>
- <col ref="dutplcedeptcd" visibility="hidden"/>
- <col ref="besabun" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- dtg_chuldetaillst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:325px; x2:955px; y2:325px; "/>
- <caption id="caption10" class="tit_2" style="left:0px; top:309px; width:180px; height:13px; ">직원출장 신청 세부내역</caption>
- <caption id="caption11" class="search_name" style="left:305px; top:15px; width:93px; height:17px; ">출장구분 :</caption>
- <select1 id="radio2" ref="/root/send/srchchulgubun" appearance="full" cellspacing="2" cols="5" vcellspacing="3" overflow="visible" style="left:394px; top:14px; width:320px; 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="button1" class="btn4_letter2" style="left:899px; top:565px; width:56px; height:22px; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter6" style="left:794px; top:565px; width:104px; height:22px; ">
- <caption>품의자료생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mastercnt = 0;
- for( var i = 1 ; i < grd_chullist.rows ; i++ ){
- if( grd_chullist.rowStatus(i) == 2 ){
- mastercnt ++;
- }
- }
- var detailcnt = 0;
- for( var a = 1 ; a < dtg_chuldetaillst.rows ; a++ ){
- if( dtg_chuldetaillst.rowStatus(a) == 2 ){
- detailcnt ++;
- }
- }
-
- if( mastercnt > 0 || detailcnt > 0 ){
- messageBox("수정사항 중 저장하지 않은 내역이 있습니다. 저장 후 진행해주세요.", "E999", "");
- return;
- }
- if( grd_chullist.row == ""){
- messageBox("직원출장 신청내역을 선택하여주십시오.", "E999", "");
- return;
- }
-
- opener.javascript.button35.dispatch("DOMActivate");
-
- opener.javascript.model.setValue("/root/pop4data/chulseq", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulseq"));
-
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/naeyong", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulpurpose"));
-
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/usedate" , model.getValue("/root/main/detaillst/chulempdetaillst[1]/chulfrdate"));
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/fromdate" , model.getValue("/root/main/detaillst/chulempdetaillst[1]/chulfrdate"));
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/todate", model.getValue("/root/main/detaillst/chulempdetaillst[1]/chultodate"));
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/custcode", "1000");
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/nabdate", "00000000");
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/yogudeptcd", model.getValue("/root/pop4data/yogudeptcd"));
- opener.javascript.combo1.dispatch("xforms-value-changed");
-
- var cnt = getNodesetCount("/root/main/detaillst/chulempdetaillst");
- var pumamt = 0;
-
- for(var i = 1 ; i <= cnt ; i++ ){
- pumamt = pumamt + parseInt(model.getValue("/root/main/detaillst/chulempdetaillst[" + i + "]/chulkeum"));
- }
-
- opener.javascript.btn_grdaddpaydedulist.dispatch("DOMActivate");
- opener.javascript.model.makeNode("/root/main/grnt/grntlist2");
- opener.javascript.model.makeValue("/root/main/grnt/grntlist2/pumamt", pumamt );
- opener.javascript.model.makeValue("/root/main/grnt/grntlist2/hyubdate", "00000000");
-
- // 업무출장인 경우 국내출장일로 셋팅.
- if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulgubun") == "2" ){
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/yogudeptcd", "4030100000");
- opener.javascript.combo1.dispatch("xforms-value-changed");
-
- model.refresh();
- opener.javascript.model.makeValue("/root/main/grnt/grntlist2/cdacntcd", "51320100");
- opener.javascript.grd_grntpsn1.dispatch("xforms-value-changed");
-
- }
-
- // 거래처
- opener.javascript.ipt_custcd.dispatch("xforms-value-changed");
-
- // 신청 세부내역의 직원이 1명일 경우만 계좌정보 보여주기.
- if( cnt == 1 ){
- model.setValue("/root/send/sabun", model.getValue("/root/main/detaillst/chulempdetaillst[1]/sabun"));
- if( submit("TRRPD08004") ) { // 계좌번호 가져오기
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankno", model.getValue("/root/main/emplbankinfo/bankinfo/transfacntno"));
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankcode", model.getValue("/root/main/emplbankinfo/bankinfo/transfbankcd"));
- }
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankman", model.getValue("/root/main/detaillst/chulempdetaillst[1]/name"));
-
- }else if( cnt > 1 ){
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankno", "");
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankcode", "");
- opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankman", "");
- }
-
- opener.model.refresh();
- window.close();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:737px; top:565px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( grd_chullist.row == ""){
- messageBox("직원출장 신청내역을 선택하여주십시오.", "E999", "");
- return;
- }
-
- // model.setValue("/root/send/save/chulseq", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulseq"));
- // model.setValue("/root/send/save/chulgubun", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulgubun"));
- model.setValue("/root/send/save/chullst" , grd_chullist.getUpdateData());
- model.setValue("/root/send/save/chuldetail" , dtg_chuldetaillst.getUpdateData());
- model.setValue("/root/send/tempchulseq", model.getValue("/root/send/srchchulseq"));
-
- if( submit("TXRPD08004") ){
- messageBox("저장되었습니다.", "I000", "");
- fGetChulEmpList();
- fGetChulEmpDetailList();
- grd_chullist.row = parseInt(model.getValue("/root/send/rownum"));
- grd_chullist.dispatch("onclick");
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:710px; top:15px; width:68px; height:17px; ">기관 :</caption>
- <select1 id="radio1" ref="/root/send/instcd" appearance="full" cellspacing="2" cols="5" vcellspacing="3" overflow="visible" style="left:773px; top:14px; width:110px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:500px; height:12px; ">직원출장 신청조회</caption>
- </xhtml:body>
- </xhtml:html>
|