123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLAP00100_입출고현황.xrw
- * 설 명 : 사용자의 부서, 거래처에 따른 입출고 화면
- * 설 계 자 : 한음미
- * 작 성 자 : 한음미
- * 작 성 일 : 2007.11.14
- * 수정이력 :
- * 기 타 :
- -->
- <?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>입출고현황(TEST)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <goodio>
- <goodiolist>
- <instcd/>
- <posdeptcd/>
- <dutdeptcd/>
- <dutdeptnm/>
- <goodcd/>
- <goodnm/>
- <lotno/>
- <usedd/>
- <usetm/>
- <useid/>
- <usenm/>
- <spec/>
- <requnit/>
- <requnitqty/>
- <useunit/>
- <useunitqty/>
- <unitcost/>
- <winqty/>
- <winamt/>
- <deliveqty/>
- <deliveamt/>
- <stocqty/>
- <stocamt/>
- </goodiolist>
- </goodio>
- </main>
- <send>
- </send>
- <init>
- <seaval/>
- <useflagcd/>
- <dutdept>
- <appdeptcd/>
- </dutdept>
- <deptinfo>
- <cd/>
- </deptinfo>
- <appdeptcd/>
- <delivefromdd/>
- <delivetodd/>
- <custinfo>
- <custlist>
- <instcd/>
- <entrregno/>
- <custnm/>
- </custlist>
- </custinfo>
- <custcd/>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLAF00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptinfo"/>
- <submission id="TRLAA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/dutdept/appdeptcd"/>
- <submission id="TRLAW00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/custinfo/custlist"/>
- <submission id="TRLAP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodio/goodiolist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fExeInitialize() {
- //현재날짜
- var toDay = getCurrentDate();
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/goodiolist");
-
- //--------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/userid", getUserInfo("userid"));
- submit("TRLAF00402", false); // 사용자가 속한 과코드 조회
-
- model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
- submit("TRLAA00103", false); // 부서코드 목록
- submit("TRLAW00802"); // 거래처 목록
-
-
- //-----------------------------------------------
- model.setValue("/root/init/delivefromdd", toDay);
- model.setValue("/root/init/delivetodd", toDay);
- model.setValue("/root/init/useflagcd", "0"); // 검색값(0:물품코드, 1:물품명)
- //-----------------------------------------------------------------
- iMaxCnt = Number(getNodesetCount("/root/init/dutdept/appdeptcd")) + 1;
- model.makeValue("/root/init/dutdept/appdeptcd["+iMaxCnt+"]/cd", "00");
- model.makeValue("/root/init/dutdept/appdeptcd["+iMaxCnt+"]/nm", "전체");
-
- //--------------------------------------------
- model.makeValue("/root/init/appdeptcd", "00");
- model.makeValue("/root/init/custcd", "00");
- // cmb_seadept.select(0);
- // cmb_seacust.select(0);
-
- //--------------------------
- grd_goodappcdlist.refresh();
- model.refresh();
- }
-
-
- /* @group : 입출고현황(Test)
- * @ver : 2008.05.19
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 입출고현황 조회
- */
- function fGetWinDeliveList() {
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/goodiolist");
-
- //-----------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd")); // 과코드
- model.makeValue("/root/send/dutdeptcd", model.getValue("/root/init/appdeptcd")); // 부서코드
- model.makeValue("/root/send/useflagcd", model.getValue("/root/init/useflagcd")); // 사용구분(0:물품코드, 1:물품명)
- model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval")); // 검색값
- model.makeValue("/root/send/delivefromdd", model.getValue("/root/init/delivefromdd")); // 재고 시작일자
- model.makeValue("/root/send/delivetodd", model.getValue("/root/init/delivetodd")); // 재고 종료일자
- model.makeValue("/root/send/custcd", model.getValue("/root/init/custcd")); // 거래처 코드
-
- //-------------------
- submit("TRLAP00101");
- }
-
- /* @group : 입출고현황(Test)
- * @ver : 2008.05.19
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 입출고현황 엑셀파일저장
- */
- function fExeSaveToExcel() {
- var fileName = window.fileDialog("save", ",", false, "입출고현황(Test별)", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- //-------------------
- if (fileName != "") {
- grd_goodappcdlist.saveExcel(fileName);
- }
- }
-
- //----------------------------
- // 검색값 입력 후 Enter키 입력
- function fExeSeaValOnKeyPress() {
-
- if (event.keyCode == "13") {
- model.setValue("/root/init/seaval", ipt_seaval.currentText);
- ipt_seaval.refresh();
-
- //------------------
- fGetWinDeliveList();
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:1194px; height:15px; ">
- <caption id="caption6" class="tit_1" autoresize="true" style="left:0px; top:0px; width:140px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">입출고현황(Test)</caption>
- </group>
- <group id="group3" style="left:0px; top:40; width:1194px; height:679px; ">
- <group id="group2" style="left:0px; top:10; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0; width:1194px; height:35px; "/>
- <line id="line1" class="line_4" style="x1:1108; y1:7; x2:1108; y2:29; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1123; top:7; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetWinDeliveList();
- ]]>
- </script>
- </button>
- <input id="ipt_todd" ref="/root/init/delivetodd" class="input_s_essential" inputtype="date" style="left:993; top:8; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption1" class="search_name" style="left:785px; top:9; width:105px; height:17px; ">사용일자 :</caption>
- <input id="ipt_fromdd" ref="/root/init/delivefromdd" class="input_s_essential" inputtype="date" style="left:875; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption5" class="search_no_b" style="left:978; top:9px; width:12px; height:17px; ">~</caption>
- <caption id="caption3" class="search_name" style="left:2px; top:9; width:105px; height:17px; ">부서 코드 :</caption>
- <select1 id="cmb_seadept" ref="/root/init/appdeptcd" class="combo_search" appearance="minimal" style="left:100px; top:8; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dutdept/appdeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:567px; top:9px; width:103px; height:17px; ">거래처 :</caption>
- <select1 id="cmb_seacust" ref="/root/init/custcd" class="combo_search" appearance="minimal" style="left:645px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/custinfo/custlist">
- <label ref="custnm"/>
- <value ref="entrregno"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:225px; top:9px; width:75px; height:17px; ">검색값 :</caption>
- <input id="ipt_seaval" ref="/root/init/seaval" class="input_search" style="left:406px; top:8px; width:129px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeSeaValOnKeyPress();
- ]]>
- </script>
- </input>
- <select1 id="cbo_seamthdcd" ref="/root/init/useflagcd" disabled="true" appearance="minimal" style="left:304px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>물품코드</label>
- <value>0</value>
- </item>
- <item>
- <label>물품명</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption22" class="tit_2" style="left:5; top:54px; width:82px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">입출고목록</caption>
- <line id="line2" class="line_1" style="x1:0; y1:68; x2:1194px; y2:68px; "/>
- <datagrid id="grd_goodappcdlist" nodeset="/root/main/goodio/goodiolist" caption="instcd^posdeptcd^dutdeptcd^부서^물품코드^물품명^Lot번호^사용일자^사용시간^사용자ID^사용자명^규격^구매
단위^구매
수량^기준
단위^기준
수량^단가^입고^입고^출고^출고^재고^재고|instcd^posdeptcd^dutdeptcd^부서^물품코드^물품명^Lot번호^사용일자^사용시간^사용자ID^사용자명^규격^구매
단위^구매
수량^기준
단위^기준
수량^단가^수량^금액^수량^금액^수량^금액" colsep="^" colwidth="0, 0, 0, 90, 70, 342, 140, 70, 0, 0, 0, 60, 50, 60, 50, 60, 0, 0, 0, 60, 100, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:73px; width:1194px; height:604px; vertical-align:middle; ">
- <col ref="instcd"/>
- <col ref="posdeptcd"/>
- <col ref="dutdeptcd"/>
- <col class="text_center" ref="dutdeptnm"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="lotno"/>
- <col class="text_center" ref="usedd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="usetm"/>
- <col ref="useid"/>
- <col ref="usenm"/>
- <col class="text_center" ref="spec"/>
- <col class="text_center" ref="requnit"/>
- <col class="text_right" ref="requnitqty" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_center" ref="useunit"/>
- <col class="text_right" ref="useunitqty" format="#,###" mask="exclude" showmask="true"/>
- <col ref="unitcost" secretendposition="20" secretmark="*" secretstartposition="0" format="#,###" mask="exclude" showmask="true"/>
- <col ref="winqty"/>
- <col ref="winamt"/>
- <col class="text_right" ref="deliveqty" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="deliveamt" format="#,###" mask="exclude" showmask="true"/>
- <col ref="stocqty"/>
- <col ref="stocamt"/>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:13; width:1194px; height:27; ">
- <line id="line3" class="line_6" style="x1:0px; y1:25; x2:1194; y2:25; "/>
- <button id="btn_excelsave" class="btn6_letter5" navindex="8" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|