123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLAF00300_물품코드관리.xrw
- * 설 명 : 물품코드 저장 화면
- * 설 계 자 : 한음미
- * 작 성 자 : 한음미
- * 작 성 일 : 2007.08.06
- * 수정이력 :
- * 기 타 :
- -->
- <?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>SPLAF00300_물품코드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <purccd>
- <purclist>
- <choi/>
- <instcd/>
- <cd/>
- <nm/>
- </purclist>
- <lastPage>
- <lastPage/>
- </lastPage>
- </purccd>
- </main>
- <send>
- <req/>
- <postdeptcd/>
- <todd/>
- <instcd/>
- <goodcd/>
- <page/>
- <itemlimit>100</itemlimit>
- <seaVal/>
- <seamthdcd/>
- </send>
- <init>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- </init>
- <hidden>
- <item>
- </item>
- <paval>1</paval>
- <seaVal/>
- <seamthdcd>0</seamthdcd>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLAF00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/purccd"/>
- </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[
- /* @group : 물품코드관리(팝업)
- * @ver : 2007.07.24 (CMCDEV-0001)
- * @by : 한음미
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 메인화면과의 같은 매핑파일 작업으로 생기는 조건 Function
- */
- function fExeInitialize() {
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/goodcd/goodcdlist");
-
- model.makeValue("/root/send/seamthdcd", "2"); // 0:물품코드, 1:물품명
- model.makeValue("/root/send/useflagcd", "0");
- //----------------------------------------------
- switch (model.getValue("/root/send/cdflagcd")) {
- case "3" : cap_title.text = "검사목록";
- grd_goodlist.caption = "선택^검사코드^검사명";
- break;
- case "6" : cap_title.text = "물품목록";
- grd_goodlist.caption = "선택^물품코드^물품명";
- break;
- case "9" : cap_title.text = "장비목록";
- grd_goodlist.caption = "선택^장비코드^장비명";
- break;
- }
-
- //--------------
- fGetCodeList(1);
- model.refresh();
- }
-
-
- /* @group : 물품코드관리
- * @ver : 2007.08.06 (CMCDEV-0001)
- * @by : 한음미
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 구매팀 물품 목록 선택 Function
- */
- function fExeSelect() {
-
- var sNode = "/root/main/purccd/purclist";
-
- opener.javascript.setParameter("SMLAF00600_cd", model.getValue(sNode+"["+grd_goodlist.row+"]/cd"));
- opener.javascript.setParameter("SMLAF00600_nm", model.getValue(sNode+"["+grd_goodlist.row+"]/nm"));
-
- window.close();
- }
- /* @group : 물품코드관리(팝업)
- * @ver : 2007.07.24 (CMCDEV-0001)
- * @by : 한음미
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 구매팀 물류 정보 보기
- */
- function fGetCodeList(page) {
-
- // 이상 페이지 번호 처리
- if(page == "") page = 1;
- if(page < 1) page = 1;
- if(page > parseInt(cap_lastPage.value)) page = parseInt(cap_lastPage.value);
-
-
- //-------------------------------------------------------------------------------------------
- model.makeValue("/root/send/instcd", opener.javascript.getParameter("SMLAF00600_instcd"));
- model.makeValue("/root/send/posdeptcd", opener.javascript.getParameter("SMLAF00600_posdeptcd"));
- model.makeValue("/root/send/dutdeptcd", opener.javascript.getParameter("SMLAF00600_dutdeptcd"));
- model.makeValue("/root/send/cdflagcd", opener.javascript.getParameter("SMLAF00600_flagcd"));
- model.makeValue("/root/send/seaVal", model.getValue("root/hidden/seaVal"));
- model.makeValue("/root/send/seamthdcd", model.getValue("root/hidden/seamthdcd"));
- model.makeValue("/root/send/page", page);
- model.makeValue("/root/send/itemlimit", "100");
-
- submit("TRLAF00701"); // 구매팀 물품목록 보이기
-
- ipt_paval.value = page;
- }
- /* @group : 물품코드관리(팝업)
- * @ver : 2008.04.15 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 물품코드/품명 검색어 입력 시 처리
- */
- function fExeGoodKeyPress() {
- if (event.keyCode == '13' && ipt_seaVal.currentText != ipt_seaVal.value) {
- model.setValue("root/hidden/seaVal", ipt_seaVal.currentText);
- fGetCodeList(1);
- }
- }
-
- /* @group : 물품코드관리(팝업)
- * @ver : 2008.04.15 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검색 페이지번호 입력 시 처리
- */
- function fExePageKeyPress() {
-
- if(event.keyCode == '13' && ipt_paval.currentText != ipt_paval.value){
- model.setValue("/root/hidden/paval", ipt_paval.currentText);
- ipt_paval.dispatch("xforms-value-changed");
- }
- else if(event.keyCode != 8 && (event.keyCode < 48 || event.keyCode > 57)) {
- event.defaultAction = "cancel";
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="430" pageheight="569" guideline="1,1194;" style="top:0; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group2" style="left:0px; top:0px; width:412px; height:523px; ">
- <datagrid id="grd_goodlist" nodeset="/root/main/purccd/purclist" scroll="auto" autoresize="true" caption="선택^instcd^물품코드^물품명" colsep="^" colwidth="40, 0, 90, 259" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" navindex="3" style="left:0px; top:32px; width:410px; height:489px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="cd"/>
- <col ref="nm"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeSelect();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeSelect();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:410px; y2:27px; "/>
- <choices>
- <item>
- <label>checkbox1</label>
- <value>checkbox1</value>
- </item>
- </choices>
- <caption id="caption3" style="left:110px; top:5px; width:30px; height:15px; "/>
- <caption id="cap_title" class="tit_2" style="left:5px; top:10px; width:113px; height:13; ">검사목록</caption>
- <select1 id="rdo_seamthdcd" ref="/root/hidden/seamthdcd" navindex="1" overflow="visible" appearance="full" cols="2" style="left:185px; top:7px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>코드</label>
- <value>0</value>
- </item>
- <item>
- <label>명칭</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_seaVal" ref="/root/hidden/seaVal" class="input_search" navindex="2" style="left:280px; top:7px; width:130px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeGoodKeyPress();
- ]]>
- </script>
- </input>
- </group>
- <group id="group3" style="left:0px; top:523; width:412; height:30px; ">
- <input id="ipt_paval" ref="/root/hidden/paval" class="input_search" navindex="6" style="left:120px; top:5px; width:65px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetCodeList(model.getValue("/root/hidden/paval"));
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExePageKeyPress();
- ]]>
- </script>
- </input>
- <caption id="cap_lastPage" ref="/root/main/purccd/lastPage/lastPage" style="left:195px; top:5px; width:60px; height:20px; font-size:9pt; font-weight:bold; ">1</caption>
- <caption id="caption4" style="left:187px; top:5px; width:11px; height:20px; font-size:9pt; font-weight:bold; ">/</caption>
- <button id="btn_prntexcel" class="btn3_letter2" navindex="5" style="left:61px; top:4px; width:56px; height:22px; ">
- <caption>이전</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCodeList(parseInt(model.getValue("/root/hidden/paval")) - 1);
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" navindex="7" style="left:295px; top:5px; width:56px; height:22px; ">
- <caption>다음</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCodeList(parseInt(model.getValue("/root/hidden/paval")) + 1);
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter2" navindex="4" style="left:2px; top:4px; width:56px; height:22px; ">
- <caption>처음</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCodeList(1);
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" navindex="8" style="left:354px; top:5px; width:56px; height:22px; ">
- <caption>최종</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCodeList(model.getValue("root/main/purccd/lastPage/lastPage"));
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|