123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 |
- <?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>
- <gooddelive>
- <gooddelivelist/>
- </gooddelive>
- </list>
- </main>
- <init>
- <purcflag>
- <label>전체</label>
- <value/>
- <label>구매</label>
- <value>1</value>
- <label>수탁</label>
- <value>2</value>
- <label>가납</label>
- <value>3</value>
- </purcflag>
- </init>
- <send>
- <save>
- <gooddelivelist/>
- </save>
- <gooddelive>
- <instcd/>
- <goodflag/>
- <delivedeptcd/>
- <delivedeptnm/>
- <windeptnm/>
- <windeptcd/>
- <goodnm/>
- <goodcd/>
- <delivefrdd/>
- <delivetodd/>
- <iokindcd/>
- <lrgcd/>
- <lrgnm/>
- <suppcustcd/>
- <suppcustnm/>
- <outaumqty/>
- <outsumamt/>
- <purcflag/>
- </gooddelive>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSO00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddelive" resultref="/root/main/list/gooddelive"/>
- </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/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- model.resetInstanceNode("/root/send");
-
- //rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
-
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
-
- rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","Y","%","","");
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_delivedeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_delivedeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- misfGridInit(grd_gooddelive);
- misfMsterDetailSet(grd_gooddelive,null, "TRRSO00401" ,"N");
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_delivefrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_delivetodd.attribute("ref") ,curdate);
- model.refresh();
- }
- function fCheckRetrieveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드", "I003");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
- {
- messageBox("물품구분", "I003");
- model.setFocus("cmb_goodflag");
- return false;
- }
- if(model.getValue(ipt_delivefrdd.attribute("ref")).length== 0 )
- {
- messageBox("출고일자", "I003");
- model.setFocus("ipt_delivefrdd");
- return false;
- }
- if(model.getValue(ipt_delivetodd.attribute("ref")).length== 0 )
- {
- messageBox("출고일자", "I003");
- model.setFocus("ipt_delivetodd");
- return false;
- }
-
- if(model.getValue(ipt_delivedeptcd.attribute("ref")).length== 0 )
- {
- model.setFocus("ipt_delivedeptcd");
- return false;
- }
-
- }
-
- function fAfterGoodOut() {
- var sumQty = 0;
- var sumAmt = 0;
-
- for(var i = grd_gooddelive.fixedRows; i < grd_gooddelive.rows; i++) {
- sumQty += parseFloat(grd_gooddelive.valueMatrix(i, grd_gooddelive.colRef("delivedeptqty")));
- sumAmt += parseFloat(grd_gooddelive.valueMatrix(i, grd_gooddelive.colRef("winreqamt")));
- }
-
- model.setValue(opt_outqty.attribute("ref"), sumQty);
- model.setValue(opt_outamt.attribute("ref"), sumAmt);
-
- opt_outqty.refresh();
- opt_outamt.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">출고내역 조회</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
- <group id="group6" style="left:0px; top:1px; width:1195px; height:97px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:95px; "/>
- <button id="btn_seach" class="btn1_letter2" navindex="8" style="left:1124px; top:32px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData() == false)return;
- misfGridInit(grd_gooddelive);
- misfMsterDetailRetrieve();
- fAfterGoodOut();
-
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1109px; y1:9px; x2:1109px; y2:77px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:627px; top:4px; width:86px; height:17px; ">물품분류 :</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:9; width:94px; height:17px; ">기관코드 :</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:61; width:86px; height:17px; ">출고부서 :</caption>
- <caption id="caption7" class="search_name" style="left:286px; top:35px; width:88px; height:17px; ">출고일자 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/gooddelive/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_delivefrdd" ref="/root/send/gooddelive/delivefrdd" class="input_s_essential" inputtype="date" style="left:372px; top:34px; width:98px; height:19px; "/>
- <input id="ipt_delivetodd" ref="/root/send/gooddelive/delivetodd" class="input_s_essential" inputtype="date" style="left:489px; top:34px; width:96px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:473px; top:35px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_delivedeptcd" ref="/root/send/gooddelive/delivedeptcd" class="input_s_essential" disabled="true" visibility="hidden" style="left:1035px; top:45px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "delivedeptcd,delivedeptnm" );
- model.refresh();
- model.setFocus("ipt_reqflag");
- ]]>
- </script>
- </input>
- <input id="ipt_delivedeptnm" ref="/root/send/gooddelive/delivedeptnm" class="input_search" disabled="true" style="left:100px; top:60px; width:131px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "delivedeptcd,delivedeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_windeptcd" ref="/root/send/gooddelive/windeptnm" class="input_search" style="left:837px; top:27px; width:169px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "windeptcd,windeptnm" );
- model.refresh();
- model.setFocus("ipt_reqflag");
- ]]>
- </script>
- </input>
- <input id="ipt_windeptnm" ref="/root/send/gooddelive/windeptcd" class="input_search" style="left:712px; top:27px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "windeptcd,windeptnm" );
- model.refresh();
- model.setFocus("ipt_reqflag");
- ]]>
- </script>
- </input>
- <button id="button2" class="icon_search" style="left:817px; top:27px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "windeptcd,windeptnm";
- misfOpenPopUpList("02", ipt_windeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:627px; top:27px; width:86px; height:17px; ">입고부서 :</caption>
- <caption id="caption12" class="search_name" style="left:627px; top:50px; width:86px; height:17px; ">물품코드 :</caption>
- <button id="button3" class="icon_search" style="left:817px; top:50px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm" ref="/root/send/gooddelive/goodnm" class="input_search" style="left:837px; top:50px; width:169px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + ",," + model.getValue(ipt_goodnm.attribute("ref")) + ",," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- }else{
- ipt_goodnm.value = "";
- ipt_goodcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodcd" ref="/root/send/gooddelive/goodcd" class="input_search" imemode="disabled" style="left:712px; top:50px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) + ",,," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- }else{
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:15; top:35; width:93px; height:17px; ">출고유형 :</caption>
- <select1 id="cmb_iokindcd" ref="/root/send/gooddelive/iokindcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:34px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ioflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:286px; top:9px; width:88px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_goodflag" ref="/root/send/gooddelive/goodflag" class="combo_s_essential" appearance="minimal" style="left:371px; top:8px; width:214px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_lrgcd" class="icon_search" style="left:817px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","cmb_goodflag");
- model.refresh();
- model.setFocus("ipt_mdlcd");
- ]]>
- </script>
- </button>
- <input id="ipt_lrgnm" ref="/root/send/gooddelive/lrgnm" class="input_search" style="left:837px; top:4px; width:169px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_lrgnm.value != "")
- {
- rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgnm," + model.getValue(cmb_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref")),"","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
- }else{
- ipt_lrgnm.value = "";
- ipt_lrgcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_lrgcd" ref="/root/send/gooddelive/lrgcd" class="input_search" style="left:712px; top:4px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_lrgcd.value != "")
- {
- rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgcd," + model.getValue(cmb_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref")) +",","","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
- }else{
- ipt_lrgcd.value = "";
- ipt_lrgnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_asetflag");
- else model.setFocus("ipt_mdlcd");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:613px; top:73px; width:101px; height:17px; ">보조거래처 :</caption>
- <input id="ipt_suppcustcd" ref="/root/send/gooddelive/suppcustcd" class="input_search" style="left:712px; top:73px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustcd.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref"))
- ,"","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
- }else{
- ipt_suppcustnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd" class="icon_search" style="left:817px; top:73px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_suppcustnm" ref="/root/send/gooddelive/suppcustnm" class="input_search" style="left:837px; top:73px; width:169px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustnm.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref"))
- ,"","suppcustcd,suppcustnm" ,ipt_suppcustnm,"SPRSD00220","instcd","cmb_instcd");
- }else{
- ipt_suppcustcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_purcflag" ref="/root/send/gooddelive/purcflag" class="combo_default" appearance="minimal" style="left:371px; top:60px; width:214px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/purcflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption18" class="search_name" style="left:286px; top:60px; width:88px; height:17px; ">구매구분 :</caption>
- </group>
- <caption id="caption5" class="tit_2" style="left:5px; top:106px; width:79px; height:13px; ">출고내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:121px; x2:1195; y2:121px; "/>
- <datagrid id="grd_gooddelive" nodeset="/root/main/list/gooddelive/gooddelivelist" caption="출고번호^입고부서^출고유형^출고일자^출고번호^출고순번^물품코드^물품코드^물품명^물품규격^물품모델^출고^출고^단가^금액^청구구분^청구일자^청구번호^청구순번^발주일자^발주번호^입고일자^입고번호^입고순번^출고자" colsep="^" colwidth="114, 93, 59, 19, 17, 19, 93, 26, 184, 60, 60, 30, 39, 90, 90, 63, 73, 63, 63, 72, 60, 78, 55, 59, 80" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:126px; width:1195px; height:608px; ">
- <col ref="dlvno"/>
- <col ref="windeptnm"/>
- <col ref="iokindnm"/>
- <col ref="delivedd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="deliveno" visibility="hidden" style="text-align:center; "/>
- <col ref="deliveseqno" visibility="hidden" style="text-align:center; "/>
- <col ref="goodcd"/>
- <col ref="allsizespecid"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="delivedeptqty" style="text-align:right; "/>
- <col ref="deliveunit"/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="winreqamt" format="#,###" style="text-align:right; "/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqno" style="text-align:center; "/>
- <col ref="reqseqno" style="text-align:center; "/>
- <col ref="purcdmnddd" format="yyyy-mm-dd"/>
- <col ref="purcdmndno" style="text-align:center; "/>
- <col ref="windd" format="yyyy-mm-dd"/>
- <col ref="winno" style="text-align:center; "/>
- <col ref="winseqno" style="text-align:center; "/>
- <col ref="delivepsnnm"/>
- </datagrid>
- <button id="btn_excel" class="btn5_letter3" style="left:1135px; top:100px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_gooddelive,"출고내역조회");
- ]]>
- </script>
- </button>
- <caption id="caption13" style="left:565px; top:100px; width:69px; height:23px; font-weight:bold; vertical-align:middle; ">출고수량 :</caption>
- <caption id="caption14" style="left:755px; top:100px; width:69px; height:23px; font-weight:bold; vertical-align:middle; ">출고금액 :</caption>
- <output id="opt_outqty" ref="/root/send/gooddelive/outaumqty" format="#,###.##" style="left:631px; top:100px; width:77px; height:19px; font-weight:bold; text-align:left; "/>
- <output id="opt_outamt" ref="/root/send/gooddelive/outsumamt" format="#,###.##" style="left:820px; top:100px; width:113px; height:19px; font-weight:bold; text-align:left; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0; y1:25; x2:1195px; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|