123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>신규재료물품등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <goodcopy>
- <goodlist/>
- </goodcopy>
- <savemstgood>
- <goodcd/>
- <goodflag/>
- <goodnm/>
- <goodhngnm/>
- <goodengnm/>
- <goodspec/>
- <goodmodel/>
- <asetflag>1</asetflag>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <edicd/>
- <prodcmpycd/>
- <prodcmpynm/>
- <cmt/>
- <m>i</m>
- <instcd/>
- <reqdd/>
- <reqseqno/>
- <updatestatusm>u</updatestatusm>
- </savemstgood>
- </main>
- <target>
- <defaultvalue>
- <goodflag/>
- <goodflagnm/>
- <goodengnm/>
- <goodhngnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpycd/>
- <prodcmpynm/>
- <openergoodmgt/>
- <instcd/>
- <reqdd/>
- <reqseqno/>
- </defaultvalue>
- </target>
- <init>
- <goodflagnm/>
- </init>
- <send>
- <goodcopy>
- <goodflag/>
- <lrgcd/>
- <mdlcd/>
- </goodcopy>
- <goodlist/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC05303" ref="/root/send/goodcopy" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/goodcopy"/>
- <submission id="TXRSC05301" ref="/root/send/goodlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp"/>
- </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[
- function fInitialize()
- {
- model.setValue(opt_goodflag.attribute("ref") ,model.getValue("/root/target/defaultvalue/goodflag"));
- model.setValue(opt_goodengnm.attribute("ref"),model.getValue("/root/target/defaultvalue/goodengnm"));
- model.setValue(opt_goodhngnm.attribute("ref"),model.getValue("/root/target/defaultvalue/goodhngnm"));
- model.setValue(opt_goodspec.attribute("ref") ,model.getValue("/root/target/defaultvalue/goodspec"));
- model.setValue(opt_goodmodel.attribute("ref"),model.getValue("/root/target/defaultvalue/goodmodel"));
- model.setValue(opt_goodflagnm.attribute("ref"),model.getValue("/root/target/defaultvalue/goodflagnm"));
- model.setValue(opt_prodcmpycd.attribute("ref"),model.getValue("/root/target/defaultvalue/prodcmpycd"));
- model.setValue(opt_prodcmpynm.attribute("ref"),model.getValue("/root/target/defaultvalue/prodcmpynm"));
-
- model.setValue(opt_instcd.attribute("ref"),model.getValue("/root/target/defaultvalue/instcd"));
- model.setValue(opt_reqdd.attribute("ref"),model.getValue("/root/target/defaultvalue/reqdd"));
- model.setValue(opt_reqseqno.attribute("ref"),model.getValue("/root/target/defaultvalue/reqseqno"));
-
- model.setValue("/root/main/savemstgood/goodnm",model.getValue(opt_goodengnm.attribute("ref")));
- model.refresh();
-
- }
- function fGoodCdCopy()
- {
- if(model.getValue(opt_goodflag.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- return false;
- }
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
- {
- messageBox("중분류코드를 " ,"C002");
- model.setFocus("ipt_mdlcd");
- return false;
- }
- model.setValue("/root/send/goodcopy/goodflag", model.getValue(opt_goodflag.attribute("ref")));
- model.setValue("/root/send/goodcopy/lrgcd", model.getValue(ipt_lrgcd.attribute("ref")));
- model.setValue("/root/send/goodcopy/mdlcd", model.getValue(ipt_mdlcd.attribute("ref")));
-
- submit("TRRSC05303");
-
- var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
- if(goodcd.length == 0)goodcd = model.getValue(opt_goodflag.attribute("ref")) + model.getValue(ipt_lrgcd.attribute("ref")) + model.getValue(ipt_mdlcd.attribute("ref")) + "0001";
-
- model.setValue(ipt_goodcd.attribute("ref"), goodcd);
- model.refresh();
- }
- function fSaveMstGood()
- {
- if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
- {
- messageBox("물품코드를 " ,"C002");
- model.setFocus("ipt_goodcd");
- return false;
- }
- if(model.getValue(opt_goodflag.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- return false;
- }
- if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
- {
- messageBox("대분류코드를 " ,"C002");
- model.setFocus("ipt_lrgcd");
- return false;
- }
- if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
- {
- messageBox("중분류코드를 " ,"C002");
- model.setFocus("ipt_mdlcd");
- return false;
- }
-
- // 물품 등록을 하기 위한 data를 가지고 있는 node
- model.removenode("/root/send/goodlist");
- model.makeNode("/root/send/goodlist");
-
- var varcopy = instance1.selectNodes("/root/main/savemstgood");
- var rCSV = getNodeListCSV(varcopy)
- model.setValue("/root/send/goodlist", rCSV);
- if(model.getValue("/root/target/defaultvalue/openergoodmgt") != "Y") {
- submit("TXRSC05301");
- }
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- //findChildWindow
- if ( checkOpener() ) {
- opener.javascript.setParameter("SMRSD04510_",rCSV);
- }
- window.close();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="530" pageheight="275" guideline="1,534;2,273;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:510px; height:273px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:30px; width:145px; height:13px; ">신규재료</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:45px; x2:508px; y2:45px; "/>
- <output id="opt_goodflag" ref="/root/main/savemstgood/goodflag" class="input_default" style="left:114px; top:52px; width:25px; height:19px; text-align:center; "/>
- <output id="opt_goodengnm" ref="/root/main/savemstgood/goodengnm" class="input_default" style="left:110px; top:76px; width:398px; height:19px; "/>
- <output id="opt_goodhngnm" ref="/root/main/savemstgood/goodhngnm" class="input_default" style="left:110px; top:101px; width:398px; height:19px; "/>
- <output id="opt_goodspec" ref="/root/main/savemstgood/goodspec" class="input_default" style="left:110px; top:124px; width:230px; height:19px; "/>
- <output id="opt_goodmodel" ref="/root/main/savemstgood/goodmodel" class="input_default" style="left:349px; top:124px; width:159px; height:19px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:174px; width:145px; height:13px; ">신규재료 물품 등록</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:189px; x2:508px; y2:189px; "/>
- <button id="btn_lrgcd" class="icon_search" style="left:171px; top:196px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","opt_goodflag");
- model.refresh();
- model.setFocus("ipt_mdlcd");
- ]]>
- </script>
- </button>
- <input id="ipt_lrgnm" ref="/root/main/savemstgood/lrgnm" class="input_search" style="left:188px; top:195px; width:320px; 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(opt_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref"))
- ,"","lrgcd,lrgnm" ,
- ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
- }else{
- ipt_lrgcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_mdlcd" class="icon_search" style="left:171px; top:222px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","opt_goodflag,ipt_lrgcd,opt_lrgnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_mdlnm" ref="/root/main/savemstgood/mdlnm" class="input_search" style="left:188px; top:220px; width:320px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mdlnm.value != ""){
- rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
- "mdlnm," + model.getValue(opt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlnm.attribute("ref"))
- ,"","mdlcd,mdlnm" ,
- ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,opt_lrgnm");
- }else{
- ipt_mdlcd.value = "";
- }
- model.refresh();
- model.setFocus("ipt_smlcd");
- ]]>
- </script>
- </input>
- <input id="ipt_lrgcd" ref="/root/main/savemstgood/lrgcd" class="input_essential" style="left:110px; top:195px; width:60px; 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(opt_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref")) + ","
- ,"","lrgcd,lrgnm" ,
- ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
- }else{
- 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>
- <input id="ipt_mdlcd" ref="/root/main/savemstgood/mdlcd" class="input_search" style="left:110px; top:220px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mdlcd.value != ""){
- rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
- "mdlcd," + model.getValue(opt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + ","
- ,"","mdlcd,mdlnm" ,
- ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,opt_lrgnm");
- }else{
- ipt_mdlnm.value = "";
- }
- model.refresh();
- model.setFocus("ipt_smlcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_lrgcd");
- else model.setFocus("ipt_smlcd");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="cell_1" style="left:0px; top:219px; width:108px; height:23px; vertical-align:middle; ">중분류</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:195px; width:108px; height:23px; vertical-align:middle; ">대분류</caption>
- <line id="line8" class="line_2" style="x1:0px; y1:73px; x2:508px; y2:73px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:97px; x2:508px; y2:97px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:122px; x2:508px; y2:122px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:145px; x2:508px; y2:145px; "/>
- <line id="line10" class="line_3" style="x1:0px; y1:170px; x2:508px; y2:170px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:217px; x2:508px; y2:217px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:267px; x2:508px; y2:267px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:243px; width:108px; height:23px; vertical-align:middle; ">신규재료 물품코드</caption>
- <input id="ipt_goodcd" ref="/root/main/savemstgood/goodcd" class="input_default" editable="false" style="left:110px; top:245px; width:332px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm","mdlnm," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlcd.attribute("ref"))
- ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,opt_lrgnm");
- model.refresh();
- model.setFocus("ipt_smlcd");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("ipt_lrgcd");
- else model.setFocus("ipt_smlcd");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <line id="line9" class="line_2" style="x1:0px; y1:242px; x2:508px; y2:242px; "/>
- <button id="btn_goodcdcopy" class="btn2_letter4" style="left:444px; top:245px; width:64px; height:19px; ">
- <caption>코드복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGoodCdCopy();
- ]]>
- </script>
- </button>
- <group id="group1" scroll="auto" style="left:1px; top:2px; width:509px; height:27px; ">
- <button id="btn_save" class="btn4_letter4" style="left:372px; top:2px; width:80px; height:22px; ">
- <caption>물품등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveMstGood();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:452px; top:2px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <output id="opt_goodflagnm" ref="/root/init/goodflagnm" class="input_default" style="left:144px; top:52px; width:364px; height:19px; "/>
- <caption id="caption8" style="left:108px; top:55px; width:10px; height:15px; ">(</caption>
- <caption id="caption9" style="left:138px; top:55px; width:10px; height:15px; ">)</caption>
- <output id="opt_prodcmpycd" ref="/root/main/savemstgood/prodcmpycd" class="input_default" style="left:115px; top:149px; width:65px; height:19px; "/>
- <caption id="caption10" style="left:108px; top:152px; width:10px; height:15px; ">(</caption>
- <caption id="caption11" style="left:181px; top:152px; width:10px; height:15px; ">)</caption>
- <output id="opt_prodcmpynm" ref="/root/main/savemstgood/prodcmpynm" appearance="output" style="left:188px; top:149px; width:320px; height:19px; "/>
- <caption id="caption12" style="left:341px; top:126px; width:10px; height:15px; ">/</caption>
- <output id="opt_instcd" ref="/root/main/savemstgood/instcd" class="input_default" visibility="hidden" style="left:15px; top:5px; width:55px; height:19px; text-align:center; "/>
- <output id="opt_reqdd" ref="/root/main/savemstgood/reqdd" class="input_default" visibility="hidden" style="left:75px; top:5px; width:95px; height:19px; text-align:center; "/>
- <output id="opt_reqseqno" ref="/root/main/savemstgood/reqseqno" class="input_default" visibility="hidden" style="left:175px; top:5px; width:50px; height:19px; text-align:center; "/>
- </group>
- <caption id="caption42" class="cell_1" style="left:0px; top:74px; width:108px; height:23px; vertical-align:middle; ">품명(영문)</caption>
- <caption id="caption65" class="cell_1" style="left:0px; top:50px; width:108px; height:23px; vertical-align:middle; ">물품구분</caption>
- <caption id="caption45" class="cell_1" style="left:0px; top:98px; width:108px; height:23px; vertical-align:middle; ">품명(한글)</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:146px; width:108px; height:23px; vertical-align:middle; ">제조회사</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:122px; width:108px; height:23px; vertical-align:middle; ">물품규격/모델</caption>
- </xhtml:body>
- </xhtml:html>
|