123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <?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>
- <delivemst>
- <delivemstlist>
- </delivemstlist>
- </delivemst>
- <delivedtl>
- <delivedtllist>
- </delivedtllist>
- </delivedtl>
- </main>
- <send>
- <search>
- <instcd/>
- <wareflag/>
- <delivedd/>
- <deliveno/>
- <delivedeptcd/>
- <gubun>1</gubun>
- </search>
- </send>
- <init/>
- <hidden/>
- <temp/>
- <popdata>
- <instcd/>
- <wareflag/>
- <wareflagnm/>
- <delivedd/>
- </popdata>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_delivemst);
- misfGridInit(grd_delivedtl);
- misfMsterDetailSet(grd_delivemst, null, "TRRSO20101" ,"N");
- misfMsterDetailSet(grd_delivedtl, grd_delivemst, "TRRSO20102" ,"N");
- //Master 조회를 위한 parameter setting
- model.setValue("/root/send/search/instcd", model.getValue("/root/popdata/instcd"));
- model.setValue("/root/send/search/wareflag", model.getValue("/root/popdata/wareflag"));
- model.setValue("/root/send/search/delivedd", model.getValue("/root/popdata/delivedd"));
- misfMsterDetailRetrieve();
-
- //조회된 자료가 없는 경우 message를 주고 창을 닫는다.
- if(grd_delivemst.rows == 1) {
- messageBox("해당 창고, 일자에 출고내역이 존재하지 않습니다..", "I999", "");
- opener.model.setFocus("ipt_delivedd");
- btn_cancel.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <submission id="TRRSO20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/delivemst"/>
- <submission id="TRRSO20102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/delivedtl"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="790" pageheight="400">
- <line id="line8" class="line_1" style="x1:10px; y1:72px; x2:780px; y2:72px; "/>
- <caption id="caption20" class="tit_2" style="left:11px; top:57px; width:184px; height:13px; ">출고내역</caption>
- <datagrid id="grd_delivemst" nodeset="/root/main/delivemst/delivemstlist" visibility="visible" caption="순번^출고유형^출고부서^" colwidth="40, 59, 206" mergecellsfixedrows="bycolrec" style="left:10px; top:77px; width:325px; height:278px; ">
- <col ref="deliveno" style="text-align:center; "/>
- <col ref="deliveflagnm" style="text-align:center; "/>
- <col ref="delivedeptnm"/>
- <col ref="gubun" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- //Detail 조회를 위한 parameter setting
- model.setValue("/root/send/search/instcd", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/instcd"));
- model.setValue("/root/send/search/delivedd", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/delivedd"));
- model.setValue("/root/send/search/deliveno", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/deliveno"));
- model.setValue("/root/send/search/wareflag", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/wareflag"));
- model.setValue("/root/send/search/delivedeptcd", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/delivedeptcd"));
- model.setValue("/root/send/search/gubun", "1");
-
- misfMsterDetailRetrieve();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- btn_select.dispatch("DOMActivate");
- ]]>
- </script>
- </datagrid>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:10px; top:10px; width:770px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption12" class="search_name" style="left:210px; top:19px; width:80px; height:17px; ">출고일자</caption>
- <output id="opt_title" ref="/root/popdata/delivedd" class="output_fix" format="yyyy-mm-dd" style="left:292px; top:18px; width:93px; height:19px; text-align:center; padding-left:5; "/>
- <datagrid id="grd_delivedtl" nodeset="/root/main/delivedtl/delivedtllist" visibility="visible" caption="품목코드^품목명^출고수량^" colwidth="86, 248, 60" mergecellsfixedrows="bycolrec" rowheader="seq" style="left:336px; top:77px; width:444px; height:278px; ">
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodnm"/>
- <col ref="deliveqty" format="#,###.##" style="text-align:right; "/>
- </datagrid>
- <button id="btn_cancel" class="btn4_letter2" style="left:725px; top:365px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //선택버튼을 click했는지 아닌지를 나타내는 구분값을 opener에 전달한다.
- opener.model.setValue("/root/popdelive/selectyn", "N");
-
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_select" class="btn4_letter2" style="left:665px; top:365px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //선택버튼을 click했는지 아닌지를 나타내는 구분값을 opener에 전달한다.
- opener.model.setValue("/root/popdelive/selectyn", "Y");
-
- //선택한 출고내역을 opener의 조회조건에 setting한다.
- opener.model.setValue("/root/send/search/deliveno", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/deliveno"));
- opener.model.setValue("/root/send/search/delivedeptcd", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/delivedeptcd"));
- opener.model.setValue("/root/send/search/delivedeptnm", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/delivedeptnm"));
- opener.model.setValue("/root/send/search/deliveflag", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/deliveflag"));
- opener.model.refreshpart("/root/send/search/deliveno");
- opener.model.refreshpart("/root/send/search/delivedeptcd");
- opener.model.refreshpart("/root/send/search/delivedeptnm");
- opener.model.refreshpart("/root/send/search/deliveflag");
-
- window.close();
- // 저장할 data의 확인
- //alert( model.getValue("/root/send/delivedtl") );
-
- /* 1) 해당 채용건에 대해 이전에 작업한 적이 없을 경우 : 합격자 data 일괄 가져오기 작업을 실행하시겠습니까?
- 2) 이전에 작업한 적이 있을 경우 : 해당 채용공고에 대한 지원자 정보가 이미 존재합니다.\n\n 기존 data를 모두 삭제하고 합격자 data 일괄 가져오기를 실행하시겠습니까?
- 3) 이미 사번 생성작업에 들어간 경우 : 이미 사번이 생성된 사람이 존재하므로, 작업을 실행할 수 없습니다.
- */
- /*
- if (submit("TRRPE04003")) {
- if ( model.getValue("/root/main/exec/execpossibility/emplcnt") == "1" ) { //사원번호가 생성된 건이 있는 경우
- messageBox("이미 사번이 생성된 사람이 존재하므로, 작업을 진행할 수 없습니다.", "E999", "");
- return;
- } else if ( ( model.getValue("/root/main/exec/execpossibility/emplcnt") == "0" ) &&
- ( model.getValue("/root/main/exec/execpossibility/apntcnt") == "1" ) ) {
- //return : yes=6, no=7
- var rtn = messageBox("해당 채용공고에 대한 지원자 정보가 이미 존재합니다.\n\n기존 data를 모두 삭제하고 합격자 data 일괄 가져오기를", "Q004");
- if ( rtn != 6 ) {
- return;
- }
- } else {
- //return : yes=6, no=7, cancel=2
- var rtn = messageBox("합격자 data 일괄 가져오기 작업을", "Q004");
- if ( rtn != 6 ) {
- return;
- }
- }
- }
-
- if (misfSave("TXRPE04001")) {
- messageBox("작업이 정상적으로", "I001", "");
- btn_cancel.dispatch("onclick");
- }
- */
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:35px; top:19px; width:80px; height:17px; ">창고</caption>
- <output id="opt_apntyy" ref="/root/popdata/wareflagnm" class="output_fix" style="left:90px; top:18px; width:95px; height:19px; text-align:center; padding-left:5; "/>
- </xhtml:body>
- </xhtml:html>
|