123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SMZHI00200_입고관리.xrw
- * 설 명 : 입고관리
- * 설 계 자 : 서원식
- * 작 성 자 : 서원식
- * 작 성 일 : 2012.11.21
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>입고관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <eqmtinfo>
- <winseq/>
- <instcd/>
- <windd/>
- <winamt/>
- <suplcmpycd/>
- <suplcmpynm/>
- <wintype/>
- <contrbtrcd/>
- <bigo/>
- <contrbtrnm/>
- </eqmtinfo>
- <eqmtlist>
- <item>
- <winseq/>
- <instcd/>
- <windd/>
- <suplcmpycd/>
- <suplcmpynm/>
- <wintype/>
- <winamt/>
- <contrbtrcd/>
- <contrbtrnm/>
- <bigo/>
- </item>
- </eqmtlist>
- <eqmtdetlist>
- <item>
- <winseq/>
- <detlseq/>
- <eqmttype/>
- <prodcmpycd/>
- <prodcmpynm/>
- <modelcd/>
- <itemseq/>
- <qty/>
- <amt/>
- <lrgcd/>
- <midcd/>
- <name/>
- <ostype/>
- <os/>
- <cpucn/>
- <corecnt/>
- <memvol/>
- <moninch/>
- <storvol/>
- <spec/>
- </item>
- </eqmtdetlist>
- </main>
- <send>
- <search>
- <instcd>031</instcd>
- <reqfromdd/>
- <reqtodd/>
- <wintype/>
- <suplcmpycd/>
- <suplcmpynm/>
- <prodcmpycd/>
- <contrbtrnm/>
- </search>
- <searchdet>
- <instcd>031</instcd>
- <wintype/>
- <suplcmpycd/>
- <prodcmpycd/>
- <contrbtrnm/>
- </searchdet>
- <saveEqmtinfo/>
- <saveEqmtdetlist/>
- </send>
- <temp/>
- <init>
- <baseinfo>
- <item>
- <test>
- <cdid>1</cdid>
- <cdnm>
- test1
- </cdnm>
- </test>
- <test>
- <cdid>2</cdid>
- <cdnm>
- test2
- </cdnm>
- </test>
- </item>
- </baseinfo>
- </init>
- </root>
- </instance>
- <submission id="TRZHI00202" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/search" replace="instance" resultref="/root/main/eqmtlist"/>
- <submission id="TRZHI00203" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchdet" replace="instance" resultref="/root/main/eqmtdetlist"/>
- <submission id="TXZHI00201" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtinfo" replace="instance" resultref="/temp"/>
- <submission id="TXZHI00202" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtinfo" replace="instance" resultref="/temp"/>
- <submission id="TXZHI00203" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveEqmtinfo" replace="instance" resultref="/temp"/>
- </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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/irmsweb/js/IrmsCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // fGetBaseInfo(); //기본코드 정보를 조회
- fInitInfo(); //입력항목 초기화
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- * 기본코드 정보를 조회
- */
- function fGetBaseInfo(){
- zbcfGetCodeList(new Array("P0350"), new Array("/root/init/P0350list"));
- }
-
- /*
- * 입력항목 초기화
- */
- function fInitInfo(){
- model.resetInstanceNode("root/send");
- model.resetInstanceNode("/root/main/eqmtinfo");
- model.removeNodeset("/root/main/eqmtlist");
- model.removeNodeset("/root/main/eqmtdetlist");
-
- var cur_date = getCurrentDate();
- model.setValue("/root/send/search/reqfromdd" , cur_date);
- model.setValue("/root/send/search/reqtodd" , cur_date);
- model.setValue("/root/main/eqmtinfo/windd" , cur_date);
- model.refresh();
- }
-
- function fGetList(){
- model.resetInstanceNode("/root/main/eqmtinfo");
- model.removeNodeset("/root/main/eqmtlist");
- model.removeNodeset("/root/main/eqmtdetlist");
-
- submit("TRZHI00202");
- }
-
- function fGetDetlList(){
- model.resetInstanceNode("/root/main/eqmtinfo");
- model.removeNodeset("/root/main/eqmtdetlist");
- model.copyNode("/root/main/eqmtinfo", "/root/main/eqmtlist/item["+ grd_eqmtlist.row+"]");
-
- model.copyNode("/root/send/searchdet/", "/root/main/eqmtinfo");
- submit("TRZHI00203");
- }
-
-
- /*
- * 입고정보 체크
- */
- function fCheckEqmtinfo(){
- if(model.getValue("/root/main/eqmtinfo/instcd") == ""){
- messageBox("입고정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtinfo/instcd") == ""){
- messageBox("입고정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtinfo/windd") == ""){
- messageBox("입고정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtinfo/winamt") == ""){
- messageBox("입고정보", "C001");
- return false;
- }else if(model.getValue("/root/main/eqmtinfo/wintype") == ""){
- messageBox("입고정보", "C001");
- return false;
- }
- return true;
- }
-
- /*
- * 입고 등록
- */
- function fSetEqmtinfo(){
- if(fCheckEqmtinfo()){
- if(model.getValue("/root/main/eqmtinfo/winseq") == ""){
- //입력
- model.makeNode("/root/send/saveEqmtinfo");
- model.copyNode("/root/send/saveEqmtinfo", "/root/main/eqmtinfo");
- if(submit("TXZHI00201")){
- messageBox("입고", "I001");
- }
- }else{
- //수정
- model.removenode("/root/send/saveEqmtinfo");
- model.makeNode("/root/send/saveEqmtinfo");
- model.copyNode("/root/send/saveEqmtinfo", "/root/main/eqmtinfo");
- if(submit("TXZHI00202")){
- messageBox("장비모델정보", "I001");
- return true;
- }
- }
- }
- }
-
- /*
- * 입고 삭제
- */
- function fDelEqmtinfo(){
- if(fCheckEqmtinfo()){
- if(model.getValue("/root/main/eqmtinfo/winseq") != ""){
- model.makeNode("/root/send/saveEqmtinfo");
- model.copyNode("/root/send/saveEqmtinfo", "/root/main/eqmtinfo");
- if(submit("TXZHI00203")){
- messageBox("입고", "I001");
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_tle" style="left:0px; top:0px; width:915px; height:15px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:217px; height:15px; ">입고 관리</caption>
- </group>
- <group id="group1" style="left:0px; top:325px; width:1210px; height:25px; ">
- <button id="btn_new" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1024px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitInfo();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" disabled="false" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1095px; top:2px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fSetEqmtinfo()){
- fGetList();
- }
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" disabled="false" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1154px; top:2px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("입고마스터를", "Q001") != 6) return -1;
- if(fDelEqmtinfo()){
- fGetList();
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" style="left:0px; top:355px; width:1210px; height:395px; ">
- <caption id="caption1" class="tit_2" style="left:0px; top:5px; width:180px; height:15px; ">입고 상세내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:22px; x2:1210px; y2:22px; "/>
- <datagrid id="grd_eqmtdetlist" nodeset="/root/main/eqmtdetlist/item" class="datagrid2" caption="구분^일련번호^제조사코드^제조사명^모델코드^모델명^부품코드^부품명^수량^도입금액^장비대분류^장비중분류^장비명^OS타입^OS명^CPU수^CORE수^메모리용량^모니터인치^저장공간용량^규격" colsep="^" colwidth="50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:1210px; height:365px; ">
- <col ref="eqmttype"/>
- <col ref="winseq"/>
- <col ref="prodcmpycd" type="inputbutton"/>
- <col ref="prodcmpynm"/>
- <col ref="modelcd" type="inputbutton"/>
- <col ref="prodcmpynm"/>
- <col ref="itemseq" type="inputbutton"/>
- <col ref="itemnm" type="inputbutton"/>
- <col ref="qty"/>
- <col ref="amt"/>
- <col ref="lrgcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="midcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="name"/>
- <col ref="ostype" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="os" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="cpucn"/>
- <col ref="corecnt"/>
- <col ref="memvol"/>
- <col ref="moninch"/>
- <col ref="storvol"/>
- <col ref="spec"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_eqmtdetlist.col == grd_eqmtdetlist.colRef("prodcmpycd")){
-
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_add" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1120px; top:0px; width:42px; height:19px; font-family:돋움체; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_eqmtdetlist.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1165px; top:0px; width:42px; height:19px; font-family:돋움체; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_eqmtdetlist, true);
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:100px; width:1210px; height:225px; ">
- <line id="line2" class="line_1" style="x1:765px; y1:15px; x2:1208px; y2:15px; "/>
- <caption id="caption7" class="cell_1" style="left:765px; top:70px; width:65px; height:23px; text-align:left; vertical-align:middle; ">공급처</caption>
- <caption id="caption8" class="cell_1" style="left:765px; top:95px; width:65px; height:23px; text-align:left; vertical-align:middle; ">입고형태</caption>
- <caption id="caption9" class="cell_1" style="left:765px; top:195px; width:65px; height:23px; text-align:left; vertical-align:middle; ">비고</caption>
- <caption id="caption10" class="cell_1" style="left:765px; top:45px; width:65px; height:23px; text-align:left; vertical-align:middle; ">기관코드</caption>
- <caption id="caption11" class="cell_1" style="left:765px; top:120px; width:65px; height:23px; text-align:left; vertical-align:middle; ">입고일자</caption>
- <select1 id="combo3" ref="/root/main/eqmtinfo/instcd" appearance="minimal" style="left:834px; top:47px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_suplcmpynm" ref="/root/main/eqmtinfo/suplcmpynm" style="left:834px; top:71px; width:100px; height:19px; "/>
- <button id="button5" class="icon_search" navindex="5" style="left:940px; top:71px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCmpyCd("SPZHI00200", "nm", ipt_suplcmpynm.currentText, "/root/main/eqmtinfo/suplcmpycd", "/root/main/eqmtinfo/suplcmpynm");
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/main/eqmtinfo/suplcmpycd" style="left:960px; top:71px; width:145px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:765px; top:170px; width:65px; height:23px; text-align:left; vertical-align:middle; ">기부자</caption>
- <input id="ipt_contrbtrcd" ref="/root/main/eqmtinfo/contrbtrcd" style="left:834px; top:170px; width:261px; height:19px; "/>
- <select1 id="combo4" ref="/root/main/eqmtinfo/wintype" appearance="minimal" style="left:834px; top:96px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input7" ref="/root/main/eqmtinfo/windd" inputtype="date" format="yyyy-mm-dd" style="left:834px; top:122px; width:100px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:765px; top:145px; width:65px; height:23px; text-align:left; vertical-align:middle; ">입고금액</caption>
- <input id="input8" ref="/root/main/eqmtinfo/winamt" style="left:834px; top:147px; width:145px; height:19px; "/>
- <datagrid id="grd_eqmtlist" nodeset="/root/main/eqmtlist/item" class="datagrid2" caption="입고일련번호^기관코드^입고일자^공급처코드^공급처명^입고형태^입고금액^기부자코드^비고" colsep="^" colwidth="80, 65, 65, 65, 65, 65, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="21" style="left:0px; top:20px; width:755px; height:200px; font-family:돋움체; ">
- <col ref="winseq"/>
- <col ref="instcd"/>
- <col ref="windd"/>
- <col ref="suplcmpycd"/>
- <col ref="suplcmpynm"/>
- <col ref="wintype"/>
- <col ref="winamt"/>
- <col ref="contrbtrcd"/>
- <col ref="bigo"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetDetlList();
- ]]>
- </script>
- </datagrid>
- <caption id="caption34" class="tit_2" style="left:0px; top:0px; width:130px; height:13px; font-family:돋움체; ">입고 정보</caption>
- <caption id="caption4" class="tit_2" style="left:765px; top:0px; width:130px; height:13px; font-family:돋움체; ">입고 상세정보</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:15px; x2:755px; y2:15px; "/>
- <input id="input1" ref="/root/main/eqmtinfo/winseq" disabled="true" style="left:835px; top:22px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/main/eqmtinfo/bigo" style="left:834px; top:196px; width:261px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:765px; top:20px; width:65px; height:23px; text-align:left; vertical-align:middle; ">입고번호</caption>
- </group>
- <group id="grp_dev" style="left:0px; top:20px; width:1210px; height:75px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:5px; width:1205px; height:65px; "/>
- <caption id="caption3" class="search_name" style="left:5px; top:43px; width:90px; height:17px; ">입고형태</caption>
- <button id="button1" class="btn1_letter2" navindex="15" style="left:1143px; top:25px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetList();
- ]]>
- </script>
- </button>
- <caption id="caption14" class="search_name" style="left:195px; top:15px; width:85px; height:17px; ">입고일자</caption>
- <input id="input6" ref="/root/send/search/reqfromdd" navindex="6" inputtype="date" style="left:275px; top:15px; width:100px; height:19px; "/>
- <caption id="caption18" class="search_name" style="left:5px; top:15px; width:85px; height:17px; ">기관</caption>
- <input id="input14" ref="/root/send/search/reqtodd" navindex="7" inputtype="date" style="left:390px; top:15px; width:100px; height:19px; "/>
- <caption id="caption25" style="left:376px; top:15px; width:15px; height:20px; ">~</caption>
- <select1 id="combo2" ref="/root/send/search/wintype" navindex="9" appearance="minimal" style="left:85px; top:43px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>일반</label>
- <value>A</value>
- </item>
- <item>
- <label>기부</label>
- <value>B</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:195px; top:43px; width:90px; height:17px; ">기부자</caption>
- <caption id="caption15" class="search_name" style="left:680px; top:15px; width:90px; height:17px; ">공급처</caption>
- <input id="ipt_sSuplcmpycd" ref="/root/send/search/suplcmpycd" style="left:750px; top:15px; width:65px; height:19px; "/>
- <button id="button3" class="icon_search" navindex="5" style="left:820px; top:15px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCmpyCd("SPZHI00200", "nm", ipt_sSuplcmpycd.currentText, "/root/send/search/suplcmpycd", "/root/send/search/suplcmpynm");
- ]]>
- </script>
- </button>
- <input id="input11" ref="/root/send/search/suplcmpynm" style="left:840px; top:15px; width:115px; height:19px; "/>
- <select1 id="combo1" ref="/root/send/search/instcd" appearance="minimal" style="left:85px; top:15px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <line id="line15" class="line_4" style="x1:1135px; y1:12px; x2:1135px; y2:62px; font-family:돋움체; border-color:#ffd799; "/>
- <caption id="caption16" class="search_name" style="left:500px; top:15px; width:90px; height:17px; ">제조사</caption>
- <input id="input10" ref="/root/send/search/contrbtrnm" style="left:275px; top:45px; width:100px; height:19px; "/>
- <select1 id="combo5" ref="/root/send/search/prodcmpycd" navindex="9" appearance="minimal" style="left:570px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/item/test">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="group4" style="left:0px; top:755px; width:1210px; height:25px; ">
- <button id="button4" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1083px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitInfo();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter2" disabled="false" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1154px; top:2px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fSetEqmtDetinfo()){
- fInitInfo();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|